docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
const ActionsheetFooter = (props: IActionsheetFooterProps, ref?: any) => { const resolvedProps = usePropsResolution('ActionsheetFooter', props);
<mask> import type { IActionsheetFooterProps } from './types'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ActionsheetFooter = ( <mask> { children, ...props }: IActionsheetFooterProps, <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetFooter.tsx
return <Modal.Content {...resolvedProps} ref={ref} />;
<mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Modal.Content {...newProps} ref={ref}> <mask> {children} <mask> </Modal.Content> <mask> ); <mask> }; <mask> <mask> export default memo(forw...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetFooter.tsx
const ActionsheetHeader = (props: IActionsheetHeaderProps, ref?: any) => { const resolvedProps = usePropsResolution('ActionsheetHeader', props);
<mask> import type { IActionsheetHeaderProps } from './types'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ActionsheetHeader = ( <mask> { children, ...props }: IActionsheetHeaderProps, <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetHeader.tsx
<Box justifyContent="center" alignItems="center" {...resolvedProps} ref={ref} />
<mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Box justifyContent="center" alignItems="center" {...newProps} ref={ref}> <mask> {children} <mask> </Box> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(ActionsheetHeade...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetHeader.tsx
const ActionsheetItem = (props: IActionsheetItemProps, ref?: any) => { const resolvedProps = usePropsResolution('ActionsheetItem', props);
<mask> import type { IActionsheetItemProps } from './types'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ActionsheetItem = ( <mask> { children, startIcon, endIcon, spinner, ...props }: IActi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetItem.tsx
return <Button {...resolvedProps} ref={ref} />;
<mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Button <mask> startIcon={startIcon} <mask> endIcon={endIcon} <mask> spinner={spinner} <mask> {...newProps} <mask> ref={ref}...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/composites/Actionsheet/ActionsheetItem.tsx
{ isDisabled, isHovered, isFocused, isPressed, isLoading },
<mask> ...resolvedProps <mask> } = usePropsResolution( <mask> 'Button', <mask> props, <mask> { isDisabled, isHovered, isFocused, isPressed }, <mask> { ignoreProps: ['_spinner'] } <mask> ); <mask> <mask> // const pressableProps = { <mask> // ...resolvedProps, </s> fix: padding f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/primitives/Button/Button.tsx
// focusRingProps.onFocus
<mask> onHoverOut={composeEventHandlers(onHoverOut, hoverProps.onHoverOut)} <mask> // @ts-ignore - web only <mask> onFocus={composeEventHandlers( <mask> composeEventHandlers(onFocus, focusProps.onFocus) <mask> // focusRingProps.onFocu <mask> )} <mask> // @ts-ignore -...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/components/primitives/Button/Button.tsx
const INITIAL_PROP_SPECIFICITY = { [SPECIFICITY_100]: 0, [SPECIFICITY_70]: 0, [SPECIFICITY_60]: 0, [SPECIFICITY_50]: 0, [SPECIFICITY_55]: 0, [SPECIFICITY_40]: 0, [SPECIFICITY_30]: 0, [SPECIFICITY_10]: 0, [SPECIFICITY_1]: 0, };
<mask> SPECIFICITY_10, <mask> SPECIFICITY_1, <mask> ]; <mask> <mask> const pseudoPropsMap: any = { <mask> _web: { dependentOn: 'platform', priority: SPECIFICITY_10 }, <mask> _ios: { dependentOn: 'platform', priority: SPECIFICITY_10 }, <mask> _android: { dependentOn: 'platform', priority: SPECIFICITY_...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/propsFlattenerTest.tsx
export const compareSpecificity = (
<mask> priority: SPECIFICITY_100, <mask> }, <mask> }; <mask> <mask> const compareSpecificity = ( <mask> exisiting: any, <mask> upcoming: any, <mask> ignorebaseTheme?: boolean <mask> // property?: any <mask> ) => { </s> fix: padding fixes and alias prop fix </s> remove export const propsFlatten...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/propsFlattenerTest.tsx
if (!upcoming) return false;
<mask> ) => { <mask> if (!exisiting) return true; <mask> const condition = ignorebaseTheme <mask> ? specificityPrecedence.length - 1 <mask> : specificityPrecedence.length; <mask> for (let index = 0; index < condition; index++) { </s> fix: padding fixes and alias prop fix </s> remove const Actionshe...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/propsFlattenerTest.tsx
...INITIAL_PROP_SPECIFICITY,
<mask> // NOTE: the order is important here. Keep in mind while specificity breakpoints. <mask> const propertySpecity = currentSpecificity <mask> ? { ...currentSpecificity } <mask> : { <mask> [SPECIFICITY_100]: 0, <mask> [SPECIFICITY_70]: 0, <mask> [SPECIFICITY_6...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/propsFlattenerTest.tsx
export const propsFlattener = (
<mask> } <mask> } <mask> }; <mask> <mask> export const propsFlattenerTest = ( <mask> { props, colormode, platform, state, currentSpecificityMap }: any, <mask> priority: number <mask> ) => { <mask> const flattenProps = {}; <mask> </s> fix: padding fixes and alias prop fix </s> remove const compa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/propsFlattenerTest.tsx
const val = incomingProps[prop] || flattenedDefaultProps[prop]; if (!FINAL_SPREAD_PROPS.includes(prop)) {
<mask> const specificity: any = {}; <mask> <mask> SPREAD_PROP_SPECIFICITY_ORDER.forEach((prop) => { <mask> if (prop in flattenedDefaultProps) { <mask> const val = flattenedDefaultProps[prop]; <mask> if (!FINAL_SPREAD_PROPS.includes(prop)) <mask> delete flattenedDefaultProps[prop]; <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
specificity[prop] = incomingSpecifity[prop]; }
<mask> if (!FINAL_SPREAD_PROPS.includes(prop)) { <mask> delete flattenedDefaultProps[prop]; <mask> <mask> SPREAD_PROP_SPECIFICITY_MAP[prop].forEach((newProp: string) => { <mask> if (compareSpecificity(specificity[newProp], specificity[prop])) { <mask> specificity[newProp] = ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
<mask> const val = flattenedDefaultProps[prop]; <mask> if (!FINAL_SPREAD_PROPS.includes(prop)) <mask> delete flattenedDefaultProps[prop]; <mask> <mask> specificity[prop] = incomingSpecifity[prop]; <mask> SPREAD_PROP_SPECIFICITY_MAP[prop].forEach((newProp: string) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
<mask> <mask> // // STEP 4: merge <mask> const defaultStyles = merge( <mask> {}, <mask> flattenProps, <mask> flattenBaseStyle, <mask> flattenVariantStyle, <mask> flattenSizeStyle <mask> ); <mask> const defaultSpecificity = merge( </s> fix: padding fixes and alias prop fix </s> re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
for (const prop in defaultStyles) { delete flattenProps[prop]; }
<mask> flattenSizeStyle <mask> ); <mask> const defaultSpecificity = merge( <mask> {}, <mask> specificityMap, <mask> baseSpecificityMap, </s> fix: padding fixes and alias prop fix </s> remove flattenProps = overrideDefaultProps(flattenProps, defaultStyles); </s> add for (const prop in def...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
flattenProps = propsSpreader( { ...defaultStyles, ...flattenProps }, defaultSpecificity );
<mask> variantSpecificityMap, <mask> sizeSpecificityMap <mask> ); <mask> <mask> flattenProps = propsSpreader(defaultStyles, defaultSpecificity); <mask> <mask> // // STEP 5: linear Grad and contrastText <mask> let ignore: any = []; <mask> if ( <mask> flattenProps.bg?.linearGradient || ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolution.tsx
import { propsFlattener, compareSpecificity } from './propsFlattener';
<mask> import { useColorMode } from '../../core/color-mode'; <mask> import { omitUndefined, extractInObject } from '../../theme/tools'; <mask> import { useContrastText } from '../useContrastText'; <mask> import { useBreakpointResolvedProps } from '../useBreakpointResolvedProps'; <mask> import { propsFlattenerTest ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
const SPREAD_PROP_SPECIFICITY_ORDER = [
<mask> import { useContrastText } from '../useContrastText'; <mask> import { useBreakpointResolvedProps } from '../useBreakpointResolvedProps'; <mask> import { propsFlattenerTest } from './propsFlattenerTest'; <mask> <mask> const specificityOrder = [ <mask> 'p', <mask> 'padding', <mask> 'px', <mask> '...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
const FINAL_SPREAD_PROPS = [ 'paddingTop', 'paddingBottom', 'paddingLeft', 'paddingRight', 'marginTop', 'marginBottom', 'marginLeft', 'marginRight', ]; const MARGIN_MAP: any = {
<mask> 'marginLeft', <mask> 'marginRight', <mask> ]; <mask> <mask> const marginMap: any = { <mask> mx: ['marginRight', 'marginLeft'], <mask> my: ['marginTop', 'marginBottom'], <mask> mt: ['marginTop'], <mask> mb: ['marginBottom'], <mask> mr: ['marginRight'], </s> fix: padding fixes and alias p...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
MARGIN_MAP.margin = [...MARGIN_MAP.mx, ...MARGIN_MAP.my]; MARGIN_MAP.m = MARGIN_MAP.margin; MARGIN_MAP.marginTop = MARGIN_MAP.mt; MARGIN_MAP.marginBottom = MARGIN_MAP.mb; MARGIN_MAP.marginLeft = MARGIN_MAP.ml; MARGIN_MAP.marginRight = MARGIN_MAP.mr;
<mask> mr: ['marginRight'], <mask> ml: ['marginLeft'], <mask> }; <mask> <mask> marginMap.margin = [...marginMap.mx, ...marginMap.my]; <mask> marginMap.m = marginMap.margin; <mask> marginMap.marginTop = marginMap.mt; <mask> marginMap.marginBottom = marginMap.mb; <mask> marginMap.marginLeft = marginMap.ml; ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
const PADDING_MAP: any = {
<mask> marginMap.marginBottom = marginMap.mb; <mask> marginMap.marginLeft = marginMap.ml; <mask> marginMap.marginRight = marginMap.mr; <mask> <mask> const paddingMap: any = { <mask> px: ['paddingRight', 'paddingLeft'], <mask> py: ['paddingTop', 'paddingBottom'], <mask> pt: ['paddingTop'], <mask> pb: [...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
PADDING_MAP.padding = [...PADDING_MAP.px, ...PADDING_MAP.py]; PADDING_MAP.p = PADDING_MAP.padding; PADDING_MAP.paddingTop = PADDING_MAP.pt; PADDING_MAP.paddingBottom = PADDING_MAP.pb; PADDING_MAP.paddingLeft = PADDING_MAP.pl; PADDING_MAP.paddingRight = PADDING_MAP.pr;
<mask> pr: ['paddingRight'], <mask> pl: ['paddingLeft'], <mask> }; <mask> <mask> paddingMap.padding = [...paddingMap.px, ...paddingMap.py]; <mask> paddingMap.p = paddingMap.padding; <mask> paddingMap.paddingTop = paddingMap.pt; <mask> paddingMap.paddingBottom = paddingMap.pb; <mask> paddingMap.paddingLeft...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
const SPREAD_PROP_SPECIFICITY_MAP: any = { ...PADDING_MAP, ...MARGIN_MAP,
<mask> paddingMap.paddingBottom = paddingMap.pb; <mask> paddingMap.paddingLeft = paddingMap.pl; <mask> paddingMap.paddingRight = paddingMap.pr; <mask> <mask> const specificityMaps: any = { <mask> ...paddingMap, <mask> ...marginMap, <mask> }; <mask> <mask> function overrideDefaultProps(userProps: any, de...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
function propsSpreader(incomingProps: any, incomingSpecifity: any) { const flattenedDefaultProps: any = { ...incomingProps }; const specificity: any = {};
<mask> ...paddingMap, <mask> ...marginMap, <mask> }; <mask> <mask> function overrideDefaultProps(userProps: any, defaultProps: any) { <mask> const flattenedUserProps: any = { ...userProps }; <mask> const flattenedDefaultProps: any = { ...defaultProps }; <mask> <mask> specificityOrder.forEach((prop)...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
SPREAD_PROP_SPECIFICITY_ORDER.forEach((prop) => {
<mask> const specificity: any = {}; <mask> <mask> if (prop in flattenedDefaultProps) { <mask> const val = incomingProps[prop] || flattenedDefaultProps[prop]; <mask> if (!FINAL_SPREAD_PROPS.includes(prop)) { <mask> delete flattenedDefaultProps[prop]; </s> fix: padding fixes and alias pr...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
const val = incomingProps[prop] || flattenedDefaultProps[prop]; if (!FINAL_SPREAD_PROPS.includes(prop)) { delete flattenedDefaultProps[prop]; specificity[prop] = incomingSpecifity[prop]; } SPREAD_PROP_SPECIFICITY_MAP[prop].forEach((newProp: string) => { if (compareSpecif...
<mask> }); <mask> } <mask> <mask> if (prop in flattenedDefaultProps) { <mask> const val = flattenedDefaultProps[prop]; <mask> delete flattenedDefaultProps[prop]; <mask> <mask> specificityMaps[prop].forEach((newProp: string) => { <mask> flattenedDefaultProps[newProp] = ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
return merge({}, flattenedDefaultProps);
<mask> }); <mask> } <mask> }); <mask> <mask> return merge({}, flattenedUserProps, flattenedDefaultProps); <mask> } <mask> <mask> /** <mask> * @summary Combines provided porps with component's theme props and resloves them. <mask> * @arg {string} component - Name of the component. </s> fix: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
<mask> const colorModeProps = useColorMode(); <mask> <mask> const componentTheme = get(theme, `components.${component}`, {}); <mask> <mask> // const windowWidth = useWindowDimensions()?.width; <mask> // const currentBreakpoint = React.useMemo( <mask> // () => getClosestBreakpoint(theme.breakpoints,...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
let [flattenProps, specificityMap] = propsFlattener(
<mask> cleanIncomingProps <mask> ); <mask> // STEP 2: flatten them <mask> <mask> let [flattenProps, specificityMap] = propsFlattenerTest( <mask> { <mask> props: incomingWithDefaultProps, <mask> platform: Platform.OS, <mask> colormode: colorModeProps.colorMode, <mask> sta...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
[flattenBaseStyle, baseSpecificityMap] = propsFlattener(
<mask> ...flattenProps, <mask> ...colorModeProps, <mask> }); <mask> <mask> [flattenBaseStyle, baseSpecificityMap] = propsFlattenerTest( <mask> { <mask> props: componentBaseStyle, <mask> platform: Platform.OS, <mask> colormode: colorModeProps....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
[flattenVariantStyle, variantSpecificityMap] = propsFlattener(
<mask> ...flattenProps, <mask> ...colorModeProps, <mask> }); <mask> <mask> [flattenVariantStyle, variantSpecificityMap] = propsFlattenerTest( <mask> { <mask> props: componentVariantProps, <mask> platform: Platform.OS, <mask> colormode: colorM...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
flattenSizeStyle, sizeSpecificityMap;
<mask> <mask> const size = flattenProps.size; <mask> <mask> let componentSizeProps = {}, <mask> flattenSizeStyle; <mask> // Extracting props from size <mask> if (size && componentTheme.sizes && componentTheme.sizes[size]) { <mask> // Type - sizes: {lg: 1}. Refer icon theme <mask> if ( <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
[flattenSizeStyle, sizeSpecificityMap] = propsFlattener(
<mask> flattenProps.size = undefined; <mask> componentSizeProps = componentTheme.sizes[size]; <mask> } <mask> <mask> [flattenSizeStyle] = propsFlattenerTest( <mask> { <mask> props: componentSizeProps, <mask> platform: Platform.OS, <mask> colormode: colorModePr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
{},
<mask> <mask> // // STEP 4: merge <mask> const defaultStyles = merge( <mask> flattenBaseStyle, <mask> flattenVariantStyle, <mask> flattenSizeStyle <mask> ); <mask> <mask> for (const prop in defaultStyles) { </s> fix: padding fixes and alias prop fix </s> remove flattenProps, </s> ad...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
for (const prop in defaultStyles) { delete flattenProps[prop]; } const defaultSpecificity = merge( {}, specificityMap, baseSpecificityMap, variantSpecificityMap, sizeSpecificityMap ); flattenProps = propsSpreader( { ...defaultStyles, ...flattenProps }, defaultSpecificity );
<mask> flattenVariantStyle, <mask> flattenSizeStyle <mask> ); <mask> <mask> flattenProps = overrideDefaultProps(flattenProps, defaultStyles); <mask> <mask> // // STEP 5: linear Grad and contrastText <mask> let ignore: any = []; <mask> if ( <mask> flattenProps.bg?.linearGradient || </s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/6fe387ece700d58535bbd7b012443facf48dfddb
src/hooks/useThemeProps/usePropsResolutionTest.tsx
_backdrop,
<mask> initialFocusRef, <mask> finalFocusRef, <mask> useRNModal, <mask> trapFocus = true, <mask> ...props <mask> }: IPopoverProps, <mask> ref: any <mask> ) => { <mask> const triggerRef = React.useRef(null); <mask> const mergedRef = mergeRefs([triggerRef]); </s> feat: add backdrop ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/706ef1b102b2c22d7968e579d197d5159329ddcc
src/components/composites/Popover/Popover.tsx
<Backdrop onPress={handleClose} bg="transparent" {..._backdrop} />
<mask> visible={isOpen} <mask> style={StyleSheet.absoluteFill} <mask> > <mask> <Popper onClose={handleClose} triggerRef={triggerRef} {...props}> <mask> <Backdrop onPress={handleClose} bg="transparent" /> <mask> <PopoverContext.Provider <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/706ef1b102b2c22d7968e579d197d5159329ddcc
src/components/composites/Popover/Popover.tsx
/** * Props applied on Overlay. */ _backdrop?: any;
<mask> */ <mask> useRNModal?: boolean; <mask> } <mask> <mask> export type IPopoverContentImpl = { <mask> arrowHeight: number; <mask> arrowWidth: number; </s> feat: add backdrop pseudo prop </s> remove <Backdrop onPress={handleClose} bg="transparent" /> </s> add <Backdrop onPre...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/706ef1b102b2c22d7968e579d197d5159329ddcc
src/components/composites/Popover/types.ts
import { NativeBaseProvider, Box, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { NativeBaseProvider, View, Text } from 'native-base'; <mask> function MyComponent() { <mask> return ( <mask> // This would look same on all devices <mask> <View bg="teal.400" height={200} width={200} safeAreaTop={8}> <mask> <Text>NativeBase</Text> ...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Fixed.tsx
<Box bg="teal.400" height={200} width={200} safeAreaTop={8}>
<mask> import { NativeBaseProvider, View, Text } from 'native-base'; <mask> function MyComponent() { <mask> return ( <mask> // This would look same on all devices <mask> <View bg="teal.400" height={200} width={200} safeAreaTop={8}> <mask> <Text>NativeBase</Text> <mask> </View> <mask> ); <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Fixed.tsx
</Box>
<mask> return ( <mask> // This would look same on all devices <mask> <View bg="teal.400" height={200} width={200} safeAreaTop={8}> <mask> <Text>NativeBase</Text> <mask> </View> <mask> ); <mask> } <mask> <mask> export default function () { <mask> return ( </s> fix: removed view from l...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Fixed.tsx
import { NativeBaseProvider, Text, Box } from 'native-base';
<mask> import React from 'react'; <mask> import { NativeBaseProvider, View, Text } from 'native-base'; <mask> function MyComponent() { <mask> return ( <mask> // This would look different on devices with different insets <mask> <View bg="teal.400" height={200} width={200} safeArea> <mask> <Text>Na...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Flexible.tsx
<Box bg="teal.400" height={200} width={200} safeAreaTop>
<mask> import { NativeBaseProvider, View, Text } from 'native-base'; <mask> function MyComponent() { <mask> return ( <mask> // This would look different on devices with different insets <mask> <View bg="teal.400" height={200} width={200} safeArea> <mask> <Text>NativeBase</Text> <mask> </View>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Flexible.tsx
</Box>
<mask> return ( <mask> // This would look different on devices with different insets <mask> <View bg="teal.400" height={200} width={200} safeArea> <mask> <Text>NativeBase</Text> <mask> </View> <mask> ); <mask> } <mask> <mask> export default function () { <mask> return ( </s> fix: rem...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/hooks/useSafeArea/Flexible.tsx
// export * from './components/primitives/View';
<mask> export * from './components/composites/Toast'; <mask> export * from './components/composites/Transitions'; <mask> export * from './components/composites/Typeahead'; <mask> <mask> export * from './components/primitives/View'; <mask> export * from './components/primitives/VStack'; <mask> export * from './c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
example/storybook/stories/index.ts
import { useSafeArea } from '../../../hooks/useSafeArea';
<mask> } from '../../../utils/customProps'; <mask> import type { IBoxProps } from './types'; <mask> <mask> const StyledBox = styled(View)<IBoxProps>( <mask> color, <mask> space, </s> fix: removed view from list of components and added safeAreaView to box </s> remove <StyledBox ref={ref} {...boxProps}> ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/components/primitives/Box/index.tsx
const safeAreaProps = useSafeArea(boxProps);
<mask> <mask> const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => { <mask> const boxProps = useThemeProps('Box', props); <mask> return ( <mask> <StyledBox ref={ref} {...safeAreaProps}> <mask> {React.Children.map(children, (child) => <mask> typeof child === 'string' ? <Text ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/components/primitives/Box/index.tsx
<StyledBox ref={ref} {...safeAreaProps}>
<mask> <mask> const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => { <mask> const boxProps = useThemeProps('Box', props); <mask> return ( <mask> <StyledBox ref={ref} {...boxProps}> <mask> {React.Children.map(children, (child) => <mask> typeof child === 'string' ? <Text {..._...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/components/primitives/Box/index.tsx
SafeAreaProps,
<mask> customPositionProps, <mask> customShadowProps, <mask> customTransformProps, <mask> customTypographyProps, <mask> } from '../../../utils/customProps'; <mask> import type { ITextProps } from './../Text/types'; <mask> <mask> export type IBoxProps = ViewProps & </s> fix: removed view from list of c...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/components/primitives/Box/types.ts
SafeAreaProps &
<mask> FlexboxProps & <mask> TypographyProps & <mask> PositionProps & <mask> BorderProps & <mask> customBorderProps & <mask> customPositionProps & <mask> customExtraProps & <mask> customOutlineProps & <mask> customShadowProps & <mask> customLayoutProps & </s> fix: removed view from list o...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/components/primitives/Box/types.ts
// View,
<mask> useTypeahead, <mask> } from './components/composites'; <mask> <mask> import { <mask> View, <mask> Text, <mask> ITextProps, <mask> Checkbox, <mask> ICheckboxProps, <mask> ICheckboxGroupProps, </s> fix: removed view from list of components and added safeAreaView to box </s> remove View,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/index.tsx
// View,
<mask> Button, <mask> ButtonGroup, <mask> IconButton, <mask> Heading, <mask> View, <mask> Text, <mask> Code, <mask> Checkbox, <mask> Radio, <mask> Column, </s> fix: removed view from list of components and added safeAreaView to box </s> remove View, </s> add // View, </s> remove impo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72449e044d77026a32baa9c8f2ecf3f44917eb58
src/index.tsx
<mask> import React, { Component } from "react"; <mask> import PropTypes from "prop-types"; <mask> import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; <mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import mapPropsToStyleNames from "../utils/mapPropsToStyleNam...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/729f04f45d3b15c600acefbf560d80005c8bcb37
src/basic/Content.js
import mapPropsToStyleNames from "../utils/mapPropsToStyleNames";
<mask> import PropTypes from "prop-types"; <mask> import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; <mask> import { connectStyle } from "native-base-shoutem-theme"; <mask> import variable from "../theme/variables/platform"; <mask> <mask> class Content extends Component { <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/729f04f45d3b15c600acefbf560d80005c8bcb37
src/basic/Content.js
static contextTypes = { theme: PropTypes.object }; constructor(props) { super(props); this.state = { orientation: "portrait" }; } layoutChange(val) { let maxComp = Math.max(variable.deviceWidth, variable.deviceHeight); if (val.width >= maxComp) this.setState({ orientation: "lands...
<mask> import mapPropsToStyleNames from "../utils/mapPropsToStyleNames"; <mask> import variable from "../theme/variables/platform"; <mask> <mask> class Content extends Component { <mask> render() { <mask> const variables = this.context.theme <mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variab...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep"...
https://github.com/GeekyAnts/NativeBase/commit/729f04f45d3b15c600acefbf560d80005c8bcb37
src/basic/Content.js
style: PropTypes.oneOfType([ PropTypes.object, PropTypes.number, PropTypes.array ]), padder: PropTypes.bool, disableKBDismissScroll: PropTypes.bool, enableResetScrollToCoords: PropTypes.bool, keyboardShouldPersistTaps: PropTypes.string
<mask> } <mask> } <mask> <mask> Content.propTypes = { <mask> style: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]), <mask> padder: PropTypes.bool, <mask> disableKBDismissScroll: PropTypes.bool, <mask> enableResetScrollToCoords: PropTypes.bool, <mask> keyboardShouldPersistTaps...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/729f04f45d3b15c600acefbf560d80005c8bcb37
src/basic/Content.js
const StyledContent = connectStyle( "NativeBase.Content", {}, mapPropsToStyleNames )(Content);
<mask> enableResetScrollToCoords: PropTypes.bool, <mask> keyboardShouldPersistTaps: PropTypes.string <mask> }; <mask> <mask> const StyledContent = connectStyle("NativeBase.Content", {}, mapPropsToStyleNames)(Content); <mask> <mask> export { StyledContent as Content }; </s> Changed file Content.js based on b...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/729f04f45d3b15c600acefbf560d80005c8bcb37
src/basic/Content.js
const remainingChildren: JSX.Element[] = [];
<mask> size, <mask> }); <mask> <mask> let Badge = <></>; <mask> let remainingChildren: JSX.Element[] = []; <mask> // Pop Badge from children <mask> React.Children.map(children, (child, key) => { <mask> if ( <mask> typeof child?.type === 'object' && <mask> child?.type.displayNam...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72f06bce524626b909e2ae9dbe540990a42face4
src/components/composites/Avatar/Avatar.tsx
<mask> setError(true); <mask> }} <mask> ref={ref} <mask> /> <mask> ) : remainingChildren.length === 0 ? ( <mask> <Text {..._text}>--</Text> // default alternate <mask> ) : ( <mask> remainingChildren <mask> )} <mask> {Badge} <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72f06bce524626b909e2ae9dbe540990a42face4
src/components/composites/Avatar/Avatar.tsx
remainingChildren.length !== 0 && remainingChildren
<mask> /> <mask> ) : remainingChildren.length === 0 ? ( <mask> <Text {..._text}>--</Text> // default alternate <mask> ) : ( <mask> remainingChildren <mask> )} <mask> {Badge} <mask> </Box> <mask> ); <mask> }; </s> fix: fixed avatar api for no children </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/72f06bce524626b909e2ae9dbe540990a42face4
src/components/composites/Avatar/Avatar.tsx
storiesOf('usePopover', module)
<mask> import { withKnobs } from '@storybook/addon-knobs'; <mask> import Wrapper from './../../components/Wrapper'; <mask> import Usage from './Usage'; <mask> <mask> storiesOf('useClipboard', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
example/storybook/stories/hooks/usePopover/index.tsx
"babel-plugin-transform-remove-console": "^6.9.4",
<mask> "@types/react-native-vector-icons": "^6.4.6", <mask> "@types/styled-components-react-native": "^5.1.0", <mask> "@types/styled-system": "^5.1.9", <mask> "@types/tinycolor2": "^1.4.2", <mask> "commitlint": "^8.3.5", <mask> "eslint": "^7.10.0", <mask> "eslint-config-prettier": "^6...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
package.json
class Tooltip extends React.PureComponent<Props, State> {
<mask> borderColor?: string; <mask> borderWidth?: number; <mask> }; <mask> <mask> class Tooltip extends React.Component<Props, State> { <mask> state = { <mask> isVisible: false, <mask> yOffset: 0, <mask> xOffset: 0, <mask> elementWidth: 0, </s> Fixes for SafeAreaView and minor improvem...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/components/composites/Popover/Tooltip.tsx
import { canUseDom } from '../../../utils/canUseDom';
<mask> import React from 'react'; <mask> import { Animated, Platform } from 'react-native'; <mask> import { canUseDom } from '../../../utils'; <mask> <mask> export const useFadeTransition = ( <mask> duration = 500, <mask> initValue = 0, <mask> finalValue = 1 </s> Fixes for SafeAreaView and minor improve...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/components/composites/Transitions/useFadeTransition.tsx
{ fontSize: parseInt(newProps.size, 10) },
<mask> if (!name) { <mask> return <SVGIcon {...iconProps} />; <mask> } <mask> const flattenedIconStyle: TextStyle = StyleSheet.flatten([ <mask> { fontSize: newProps.size }, <mask> ]); <mask> switch (type) { <mask> case 'AntDesign': <mask> return ( <mask> <AntDesign </s> Fi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/components/primitives/Icon/index.tsx
class NBSlider extends React.PureComponent<
<mask> deltaValue: number; <mask> value: number; <mask> }; <mask> <mask> class NBSlider extends React.Component< <mask> ISliderProps & { <mask> thumbSize?: number; <mask> sliderSize?: number; <mask> activeColor?: string; <mask> }, </s> Fixes for SafeAreaView and minor improvements </s> r...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/components/primitives/Slider/Slider.tsx
import { usePropsConfig } from '../../../hooks/usePropsConfig';
<mask> layout, <mask> flexbox, <mask> border, <mask> } from 'styled-system'; <mask> import { usePropsConfig } from '../../../hooks'; <mask> import { <mask> customBorder, <mask> customBackground, <mask> customOutline, <mask> customLayout, </s> Fixes for SafeAreaView and minor improvements </s> r...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/components/primitives/Text/index.tsx
<mask> ThemeConsumer, <mask> ThemeContext, <mask> ThemeProvider, <mask> } from 'styled-components/native'; <mask> import { SafeAreaView, StyleSheet } from 'react-native'; <mask> import { theme as defaultTheme, ITheme } from './../theme'; <mask> import { <mask> IColorModeProviderProps, <mask> ColorMod...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/NativeBaseProvider.tsx
import SafeAreaView from '../components/primitives/SafeAreaView';
<mask> } from './../color-mode'; <mask> import OverlayProvider from './Overlay/OverlayProvider'; <mask> import PopoverProvider from './Popover/PopoverProvider'; <mask> import View from '../components/primitives/View'; <mask> <mask> const ColoredBackground = ({ children, ...props }: any) => ( <mask> <View {......
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/NativeBaseProvider.tsx
children,
<mask> const { <mask> colorModeManager, <mask> theme = defaultTheme, <mask> disableSafeArea, <mask> ...rest <mask> } = props; <mask> <mask> const styles = StyleSheet.create({ <mask> container: { <mask> flex: 1, </s> Fixes for SafeAreaView and minor improvements </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/NativeBaseProvider.tsx
const Wrapper = disableSafeArea ? View : SafeAreaView;
<mask> disableSafeArea, <mask> ...rest <mask> } = props; <mask> <mask> const styles = StyleSheet.create({ <mask> container: { <mask> flex: 1, <mask> }, <mask> }); <mask> <mask> return ( <mask> <ThemeProvider theme={theme}> <mask> <ColorModeProvider <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/NativeBaseProvider.tsx
<Wrapper bg={useColorModeValue(`gray.50`, `gray.800`)} flex={1}> <OverlayProvider> <PopoverProvider>{children}</PopoverProvider> </OverlayProvider> </Wrapper>
<mask> <ColorModeProvider <mask> colorModeManager={colorModeManager} <mask> options={theme.config} <mask> > <mask> {disableSafeArea ? ( <mask> <ColoredBackground {...rest} /> <mask> ) : ( <mask> <SafeAreaView style={styles.container}> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/NativeBaseProvider.tsx
import { usePropsWithComponentTheme } from './../../hooks/usePropsConfig/usePropsWithComponentTheme';
<mask> import React from 'react'; <mask> import type { AnyStyledComponent } from 'styled-components'; <mask> import styled from 'styled-components/native'; <mask> import { usePropsWithComponentTheme } from './../../hooks/usePropsConfig'; <mask> import type { ComponentTheme } from './../../theme'; <mask> import { ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7342fb0da44b7b1aeab3f07b27907dcf15503f6a
src/core/factory/index.tsx
<DefaultHeader title={this.props.item.title} expanded={this.props.expanded} headerStyle={this.props.headerStyle} icon={this.props.icon} iconStyle={this.props.iconStyle} expandedIcon={this.props.ex...
<mask> <View> <mask> {this.props.renderHeader ? ( <mask> this.props.renderHeader(this.props.item.title) <mask> ) : ( <mask> <DefaultHeader <mask> title={this.props.item.title} <mask> expanded={this.props.expanded} <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/735a298050ee58d0696316cb21b11fcf0b8bf9d2
src/basic/Accordion.js
<DefaultContent content={this.props.item.content} contentStyle={this.props.contentStyle} /> )}
<mask> <AccordionSubItem> <mask> {this.props.renderContent ? ( <mask> this.props.renderContent(this.props.item.content) <mask> ) : ( <mask> <DefaultContent <mask> content={this.props.item.content} <mask> contentStyle={t...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/735a298050ee58d0696316cb21b11fcf0b8bf9d2
src/basic/Accordion.js
componentDidMount() { this.setState({ selected: this.props.expanded }); }
<mask> } <mask> } <mask> render() { <mask> const variables = this.context.theme <mask> ? this.context.theme["@@shoutem.theme/themeStyle"].variables <mask> : variable; </s> Added expanded props to accordion. </s> remove <DefaultContent content={this.props.item...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/735a298050ee58d0696316cb21b11fcf0b8bf9d2
src/basic/Accordion.js
// import React from 'react'; // import { calculateProps } from './../../hooks/usePropsConfig/utils'; // import { NativeBaseProvider, theme } from 'native-base'; // import { renderHook } from '@testing-library/react-hooks';
<mask> import React from 'react'; <mask> import { useCalculateProps } from './../../hooks/usePropsConfig'; <mask> import { NativeBaseProvider, theme } from 'native-base'; <mask> import { renderHook } from '@testing-library/react-hooks'; <mask> <mask> describe('useCalculateProps', () => { <mask> const colorMod...
[ "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/__tests__/hooks/useCalculateProps.test.tsx
// const colorModeProps = { // colorMode: 'light', // toggleColorMode: () => {}, // setColorMode: () => {}, // }; // const wrapper = ({ children }: any) => ( // <NativeBaseProvider>{children}</NativeBaseProvider> // ); test;
<mask> import { NativeBaseProvider, theme } from 'native-base'; <mask> import { renderHook } from '@testing-library/react-hooks'; <mask> <mask> describe('useCalculateProps', () => { <mask> const colorModeProps = { <mask> colorMode: 'light', <mask> toggleColorMode: () => {}, <mask> setColorMode: (...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/__tests__/hooks/useCalculateProps.test.tsx
expect(1).toBe(1); // const { result } = renderHook( // () => calculateProps(theme, colorModeProps, {}, {}, 750), // { wrapper } // ); // expect(result.current).toEqual({ style: {} });
<mask> <NativeBaseProvider>{children}</NativeBaseProvider> <mask> ); <mask> <mask> test('No component theme + no props', () => { <mask> const { result } = renderHook( <mask> () => useCalculateProps(theme, colorModeProps, {}, {}), <mask> { wrapper } <mask> ); <mask> expect(resul...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/__tests__/hooks/useCalculateProps.test.tsx
// test('Only component theme(Badge) + no props', () => { // const componentTheme = (theme as any).components.Badge; // const { result } = renderHook( // () => calculateProps(theme, colorModeProps, componentTheme, {}, 750), // { wrapper } // ); // expect(result.current).toEqual({ // ...
<mask> ); <mask> expect(result.current).toEqual({ style: {} }); <mask> }); <mask> <mask> test('Only component theme(Badge) + no props', () => { <mask> const componentTheme = (theme as any).components.Badge; <mask> const { result } = renderHook( <mask> () => useCalculateProps(theme, co...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep"...
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/__tests__/hooks/useCalculateProps.test.tsx
// test('Component theme(Badge) + some props', () => { // const componentTheme = (theme as any).components.Badge; // const { result } = renderHook( // () => // calculateProps(theme, colorModeProps, componentTheme, { py: 3 }, 750), // { wrapper } // ); // expect(result.current).toEq...
<mask> style: {}, <mask> }); <mask> }); <mask> <mask> test('Component theme(Badge) + some props', () => { <mask> const componentTheme = (theme as any).components.Badge; <mask> const { result } = renderHook( <mask> () => useCalculateProps(theme, colorModeProps, componentTheme, { py: ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/__tests__/hooks/useCalculateProps.test.tsx
export type { IHybridContextProps } from './props';
<mask> export { HybridContext } from './Context'; <mask> export { default as HybridProvider } from './HybridProvider'; <mask> export { useHybridOverlay } from './useHybridOverlay'; <mask> export type { IHybridProps, IHybridContextProps } from './props'; </s> Commented test cases, need to change them </s> remove ex...
[ "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/core/HybridOverlay/index.ts
// disableSafeArea,
<mask> const NativeBaseProvider = (props: NativeBaseProviderProps) => { <mask> const { <mask> colorModeManager, <mask> theme = defaultTheme, <mask> disableSafeArea, <mask> children, <mask> } = props; <mask> // const Wrapper = disableSafeArea ? View : SafeAreaView; <mask> return ( <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/core/NativeBaseProvider.tsx
export { useOverlay } from './Overlay';
<mask> export * from './NativeBaseProvider'; <mask> export * from './extendTheme'; <mask> <mask> export { Overlay, useOverlay } from './Overlay'; <mask> export type { <mask> IOverlayProps, <mask> IOverlayContextProps, <mask> IuseOverlayProps, <mask> } from './Overlay'; </s> Commented test cases, need t...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/74bd0d65cd1984b7bcc76dffaa553f5807815fbf
src/core/index.ts
import { Button, Modal } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, Modal, ScrollView, Text } from 'native-base'; <mask> import { useState } from 'react'; <mask> <mask> export const Example = () => { <mask> const [showModal, setShowModal] = useState(false); <mask> </s> feat: pseudo selector prop for scrollview in mod...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
example/storybook/stories/components/composites/Modal/CustomBackdrop.tsx
<mask> import React, { memo, forwardRef } from 'react'; <mask> import Box, { IBoxProps } from '../../primitives/Box'; <mask> import { usePropsResolution } from '../../../hooks'; <mask> import { ScrollView } from 'react-native'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/ModalBody.tsx
import { ScrollView, IScrollViewProps } from '../../basic/ScrollView';
<mask> import { usePropsResolution } from '../../../hooks'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ModalBody = ( <mask> { <mask> children, </s> feat: pseudo selector prop for scrollview in modal body </s> remove import { ScrollView } from '...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/ModalBody.tsx
const ModalBody = ( { children, _scrollview, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, ref?: any ) => {
<mask> import { usePropsResolution } from '../../../hooks'; <mask> import { ScrollView } from 'react-native'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const ModalBody = ({ children, ...props }: IBoxProps, ref?: any) => { <mask> const resolvedProps = use...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/ModalBody.tsx
<ScrollView {..._scrollview}>
<mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <ScrollView> <mask> <Box {...resolvedProps} ref={ref}> <mask> {children} <mask> </Box> <mask> </ScrollView> <mask> ); </s> feat: pseudo selector prop for scrollview in modal ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/ModalBody.tsx
import type { IScrollViewProps } from '../../basic/ScrollView';
<mask> import type { ResponsiveValue } from '../../../components/types'; <mask> import type { ISizes } from '../../../theme/base/sizes'; <mask> <mask> export interface IModalProps extends IBoxProps<IModalProps> { <mask> /** <mask> * If true, the modal will open. Useful for controllable state behaviour <mas...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/types.ts
props: IBoxProps<IModalProps> & { _scrollview?: IScrollViewProps } & { ref?: MutableRefObject<any>; }
<mask> props: IModalProps & { ref?: MutableRefObject<any> } <mask> ) => JSX.Element) & { <mask> Body: React.MemoExoticComponent< <mask> ( <mask> props: IBoxProps<IModalProps> & { ref?: MutableRefObject<any> } <mask> ) => JSX.Element <mask> >; <mask> CloseButton: React.MemoExoticComponent< ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/7510782de9301721f5409cd18cb023da8d41ead9
src/components/composites/Modal/types.ts
disabledTextColor: PropTypes.string,
<mask> tabs: PropTypes.array, <mask> backgroundColor: PropTypes.string, <mask> activeTextColor: PropTypes.string, <mask> inactiveTextColor: PropTypes.string, <mask> tabStyle: ViewPropTypes.style, <mask> renderTab: PropTypes.func, <mask> underlineStyle: ViewPropTypes.style, <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js
disabledTextColor: variable.tabBarDisabledTextColor,
<mask> activeTextColor: variable.topTabBarActiveTextColor, <mask> inactiveTextColor: variable.topTabBarTextColor, <mask> backgroundColor: null, <mask> tabFontSize: variable.tabFontSize <mask> }; <mask> }, <mask> <mask> renderTabOption(name, page) {}, </s> Adding TabBar disabled...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js
tabFontSize, disabled, disabledTextColor
<mask> activeTabStyle, <mask> textStyle, <mask> activeTextStyle, <mask> tabHeaderStyle, <mask> tabFontSize <mask> ) { <mask> const headerContent = <mask> typeof name !== 'string' ? name.props.children : undefined; <mask> const { activeTextColor, inactiveTextColor } = this.pr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js
const textColor = disabled ? disabledTextColor : isTabActive ? activeTextColor : inactiveTextColor;
<mask> ) { <mask> const headerContent = <mask> typeof name !== 'string' ? name.props.children : undefined; <mask> const { activeTextColor, inactiveTextColor } = this.props; <mask> const textColor = isTabActive ? activeTextColor : inactiveTextColor; <mask> const fontWeight = isTabActive ? '...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js
const isDisabled = disabled == undefined ? false : true;
<mask> typeof name !== 'string' ? name.props.children : undefined; <mask> const { activeTextColor, inactiveTextColor } = this.props; <mask> const textColor = isTabActive ? activeTextColor : inactiveTextColor; <mask> const fontWeight = isTabActive ? 'bold' : 'normal'; <mask> // const fontSize ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js
disabled={isDisabled}
<mask> <Button <mask> style={{ flex: 1 }} <mask> key={name} <mask> onPress={() => onPressHandler(page)} <mask> > <mask> <TabHeading <mask> style={isTabActive ? activeTabStyle : tabStyle} <mask> active={isTabActive} </s> Adding TabB...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/75341ac358a7208c10513da06dc9f9d4d2f795d6
src/basic/Tabs/DefaultTabBar.js