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 |
|---|---|---|---|---|
"dev": true,
"optional": true | <mask> },
<mask> "console-control-strings": {
<mask> "version": "1.1.0",
<mask> "bundled": true,
<mask> "dev": true
<mask> },
<mask> "core-util-is": {
<mask> "version": "1.0.2",
<mask> "bundled": true,
<mask> "dev": true,
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
</s> add "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" </s> remove "lodash": "4.17.11",
</s> add "lodash": "^4.17.14", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package-lock.json |
"dev": true,
"optional": true | <mask> },
<mask> "number-is-nan": {
<mask> "version": "1.0.1",
<mask> "bundled": true,
<mask> "dev": true
<mask> },
<mask> "object-assign": {
<mask> "version": "4.1.1",
<mask> "bundled": true,
<mask> "dev": true,
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
</s> add "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" </s> remove "lodash": "4.17.11",
</s> add "lodash": "^4.17.14", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package-lock.json |
"optional": true, | <mask> "version": "1.0.2",
<mask> "bundled": true,
<mask> "dev": true,
<mask> "requires": {
<mask> "code-point-at": "^1.0.0",
<mask> "is-fullwidth-code-point": "^1.0.0",
<mask> "strip-ansi": "^3.0.0"
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
</s> add "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" </s> remove "lodash": "4.17.11",
</s> add "lodash": "^4.17.14", | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package-lock.json |
"integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" | <mask> },
<mask> "opencollective-postinstall": {
<mask> "version": "2.0.2",
<mask> "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz",
<mask> "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
<mask> "dev": true
<mask> },
<mask> "opn": {
<mask> "version": "3.0.3",
<mask> "resolved": "https://registry.npmjs.org/opn/-/opn-3.0.3.tgz",
<mask> "integrity": "sha1-ttmec5n3jWXDuq/+8fsojpuFJDo=",
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "lodash": "4.17.11",
</s> add "lodash": "^4.17.14", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package-lock.json |
},
"dependencies": {
"lodash": {
"version": "4.17.11",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
} | <mask> "requires": {
<mask> "lodash": "4.17.11"
<mask> }
<mask> },
<mask> "react-native-iphone-x-helper": {
<mask> "version": "1.2.1",
<mask> "resolved": "https://registry.npmjs.org/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.2.1.tgz",
<mask> "integrity": "sha512-/VbpIEp8tSNNHIvstuA3Swx610whci1Zpc9mqNkqn14DkMbw+ORviln2u0XyHG1kPvvwTNGZY6QpeFwxYaSdbQ=="
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
</s> add "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "lodash": "4.17.11",
</s> add "lodash": "^4.17.14", | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package-lock.json |
"lodash": "^4.17.14", | <mask> "create-react-class": "^15.6.3",
<mask> "eslint-config-prettier": "^6.0.0",
<mask> "fs-extra": "^2.0.0",
<mask> "jest-react-native": "^18.0.0",
<mask> "lodash": "4.17.11",
<mask> "native-base-shoutem-theme": "GeekyAnts/theme#master",
<mask> "opencollective-postinstall": "^2.0.2",
<mask> "print-message": "^2.1.0",
<mask> "prop-types": "^15.5.10",
<mask> "react-native-drawer": "2.5.1",
</s> run npm i and upgrade lodash to ^4.17.14 (#2774) </s> remove "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
</s> add "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==" </s> remove "dev": true
</s> add "dev": true,
"optional": true </s> remove "dev": true
</s> add "dev": true,
"optional": true | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3d4395f26879131e6340313644bae6b873ecdc35 | package.json |
flex={1} | <mask> <Heading>Typeahead</Heading>
<mask> <Typeahead
<mask> mt={4}
<mask> size="2xl"
<mask> numberOfItems={6}
<mask> data={countries}
<mask> renderItem={(item: any) => {
</s> feat: typeahead and select fixed </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | example/storybook/stories/components/composites/Typeahead/UsingComponent.tsx |
selectedItemBg={'blue.500'}
selectedItemColor={'white'} | <mask> selectedValue={language}
<mask> width={150}
<mask> onValueChange={(itemValue: string) => setLanguage(itemValue)}
<mask> // itemStyle={{ fontSize: 'lg' }}
<mask> selectedItemBg={'teal.400'}
<mask> // isDisabled
<mask> dropdownOpenIcon={
<mask> <Icon name="arrow-drop-up" type="MaterialIcons" size={6} />
<mask> }
<mask> dropdownCloseIcon={
</s> feat: typeahead and select fixed </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | example/storybook/stories/components/primitives/Select/Basic.tsx |
selectedItemColor, | <mask> selectedValue,
<mask> closeMenu,
<mask> selectedItemBg,
<mask> onValueChange,
<mask> itemsList,
<mask> itemStyle,
<mask> },
<mask> } = usePopover();
</s> feat: typeahead and select fixed </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | src/components/primitives/Select/Item.tsx |
<Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> | <mask> closeMenu && closeMenu();
<mask> }
<mask> }}
<mask> >
<mask> <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
<mask> {label}
<mask> </Text>
<mask> </Button>
<mask> );
<mask> }
</s> feat: typeahead and select fixed </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | src/components/primitives/Select/Item.tsx |
selectedItemColor, | <mask> placeholder,
<mask> selectedItemBg,
<mask> isDisabled,
<mask> dropdownIcon,
<mask> dropdownOpenIcon,
<mask> dropdownCloseIcon,
<mask> width,
<mask> ...props
</s> feat: typeahead and select fixed </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | src/components/primitives/Select/index.tsx |
selectedItemColor, | <mask> closeOnSelect: true,
<mask> selectedValue,
<mask> selectedItemBg,
<mask> onValueChange,
<mask> itemsList,
<mask> itemStyle,
<mask> width,
<mask> },
<mask> });
</s> feat: typeahead and select fixed </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | src/components/primitives/Select/index.tsx |
selectedItemColor?: string; | <mask> onValueChange: (itemValue: string, itemIndex?: number) => void;
<mask> itemStyle?: ITextProps;
<mask> selectedItemBg?: string;
<mask> isDisabled?: boolean;
<mask> dropdownIcon?: JSX.Element;
<mask> dropdownOpenIcon?: JSX.Element;
<mask> dropdownCloseIcon?: JSX.Element;
<mask> };
</s> feat: typeahead and select fixed </s> remove selectedItemBg={'teal.400'}
</s> add selectedItemBg={'blue.500'}
selectedItemColor={'white'} </s> remove <Text fontSize="sm" {...textProps} key={`select-item-${value}`}>
</s> add <Text
fontSize="sm"
{...textProps}
key={`select-item-${value}`}
color={selectedValue === value ? selectedItemColor : undefined}
> | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dc42ac1b0a4616a1d555dc7894a37ee74a5c327 | src/components/primitives/Select/props.ts |
const Skeleton = (props: ISkeletonProps, ref: any) => { | <mask> import Box from '../../primitives/Box';
<mask> import type { ISkeletonProps } from './types';
<mask> import { useToken } from '../../../hooks/useToken';
<mask>
<mask> const Skeleton = (allProps: ISkeletonProps, ref: any) => {
<mask> const isDomUsable = canUseDom();
<mask> const {
<mask> children,
<mask> startColor,
<mask> style,
</s> feat: new prop resolution cheanges in skeleton </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); </s> remove let SkeletonTemp: any = SkeletonMain;
</s> add const SkeletonTemp: any = SkeletonMain; </s> remove } = usePropsResolution('Skeleton', allProps);
</s> add } = usePropsResolution('Skeleton', props); </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/Skeleton.tsx |
} = usePropsResolution('Skeleton', props); | <mask> startColor,
<mask> style,
<mask> endColor,
<mask> ...newProps
<mask> } = usePropsResolution('Skeleton', allProps);
<mask> // Setting blink Animation
<mask> const blinkAnim = React.useRef(new Animated.Value(0)).current;
<mask> const tokenisedRadius = useToken('radii', newProps.borderRadius);
<mask> const tokenisedStartColor = useToken('colors', startColor);
<mask>
</s> feat: new prop resolution cheanges in skeleton </s> remove const Skeleton = (allProps: ISkeletonProps, ref: any) => {
</s> add const Skeleton = (props: ISkeletonProps, ref: any) => { </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; </s> remove ...newProps
</s> add _stack,
...resolvedProps </s> remove let computedChildren = [];
</s> add const computedChildren = []; </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/Skeleton.tsx |
const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); | <mask> import { usePropsResolution } from '../../../hooks';
<mask> import type { ISkeletonProps } from './types';
<mask> import Skeleton from './Skeleton';
<mask>
<mask> const SkeletonCircle = (allProps: ISkeletonProps) => {
<mask> const { children, ...props } = allProps;
<mask> const newProps = usePropsResolution('SkeletonCircle', props);
<mask> // Skeleton component with border Radius 999
<mask> return newProps.isLoaded ? children : <Skeleton {...newProps} />;
<mask> };
<mask>
<mask> export default memo(forwardRef(SkeletonCircle));
</s> feat: new prop resolution cheanges in skeleton </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; </s> remove const Skeleton = (allProps: ISkeletonProps, ref: any) => {
</s> add const Skeleton = (props: ISkeletonProps, ref: any) => { </s> remove let SkeletonTemp: any = SkeletonMain;
</s> add const SkeletonTemp: any = SkeletonMain; </s> remove } = usePropsResolution('Skeleton', allProps);
</s> add } = usePropsResolution('Skeleton', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonCircle.tsx |
return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; | <mask> const SkeletonCircle = (allProps: ISkeletonProps) => {
<mask> const { children, ...props } = allProps;
<mask> const newProps = usePropsResolution('SkeletonCircle', props);
<mask> // Skeleton component with border Radius 999
<mask> return newProps.isLoaded ? children : <Skeleton {...newProps} />;
<mask> };
<mask>
<mask> export default memo(forwardRef(SkeletonCircle));
</s> feat: new prop resolution cheanges in skeleton </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; </s> remove const Skeleton = (allProps: ISkeletonProps, ref: any) => {
</s> add const Skeleton = (props: ISkeletonProps, ref: any) => { </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonCircle.tsx |
const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; | <mask> import Box, { IBoxProps } from '../../primitives/Box';
<mask> import Skeleton from './Skeleton';
<mask> import type { ISkeletonTextProps } from './types';
<mask>
<mask> const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
<mask> const { children, ...props } = allProps;
<mask> const {
<mask> space,
<mask> lineHeight,
<mask> startColor,
<mask> endColor,
</s> feat: new prop resolution cheanges in skeleton </s> remove const Skeleton = (allProps: ISkeletonProps, ref: any) => {
</s> add const Skeleton = (props: ISkeletonProps, ref: any) => { </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); </s> remove let SkeletonTemp: any = SkeletonMain;
</s> add const SkeletonTemp: any = SkeletonMain; </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; </s> remove ...newProps
</s> add _stack,
...resolvedProps | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
_stack,
...resolvedProps | <mask> space,
<mask> lineHeight,
<mask> startColor,
<mask> endColor,
<mask> ...newProps
<mask> } = usePropsResolution('SkeletonText', props);
<mask>
<mask> let computedChildren = [];
<mask> //generating an array of skeleton components (same length as noOfLines)
<mask> for (let i = 0; i < newProps.noOfLines; i++) {
</s> feat: new prop resolution cheanges in skeleton </s> remove let computedChildren = [];
</s> add const computedChildren = []; </s> remove for (let i = 0; i < newProps.noOfLines; i++) {
</s> add for (let i = 0; i < resolvedProps.noOfLines; i++) { </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove } = usePropsResolution('Skeleton', allProps);
</s> add } = usePropsResolution('Skeleton', props); </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
const computedChildren = []; | <mask> endColor,
<mask> ...newProps
<mask> } = usePropsResolution('SkeletonText', props);
<mask>
<mask> let computedChildren = [];
<mask> //generating an array of skeleton components (same length as noOfLines)
<mask> for (let i = 0; i < newProps.noOfLines; i++) {
<mask> //check for last line (to change the width of last line)
<mask> if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
<mask> computedChildren.push(
</s> feat: new prop resolution cheanges in skeleton </s> remove for (let i = 0; i < newProps.noOfLines; i++) {
</s> add for (let i = 0; i < resolvedProps.noOfLines; i++) { </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove ...newProps
</s> add _stack,
...resolvedProps </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove } = usePropsResolution('Skeleton', allProps);
</s> add } = usePropsResolution('Skeleton', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
for (let i = 0; i < resolvedProps.noOfLines; i++) { | <mask> } = usePropsResolution('SkeletonText', props);
<mask>
<mask> let computedChildren = [];
<mask> //generating an array of skeleton components (same length as noOfLines)
<mask> for (let i = 0; i < newProps.noOfLines; i++) {
<mask> //check for last line (to change the width of last line)
<mask> if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
<mask> computedChildren.push(
<mask> //Using Skeleton component with required props
<mask> <Skeleton
</s> feat: new prop resolution cheanges in skeleton </s> remove let computedChildren = [];
</s> add const computedChildren = []; </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove ...newProps
</s> add _stack,
...resolvedProps </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { | <mask> let computedChildren = [];
<mask> //generating an array of skeleton components (same length as noOfLines)
<mask> for (let i = 0; i < newProps.noOfLines; i++) {
<mask> //check for last line (to change the width of last line)
<mask> if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
<mask> computedChildren.push(
<mask> //Using Skeleton component with required props
<mask> <Skeleton
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> endColor={endColor}
</s> feat: new prop resolution cheanges in skeleton </s> remove for (let i = 0; i < newProps.noOfLines; i++) {
</s> add for (let i = 0; i < resolvedProps.noOfLines; i++) { </s> remove let computedChildren = [];
</s> add const computedChildren = []; </s> remove ...newProps
</s> add _stack,
...resolvedProps </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} | <mask> if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
<mask> computedChildren.push(
<mask> //Using Skeleton component with required props
<mask> <Skeleton
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> endColor={endColor}
<mask> startColor={startColor}
<mask> h={lineHeight}
<mask> w="75%"
<mask> />
</s> feat: new prop resolution cheanges in skeleton </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove for (let i = 0; i < newProps.noOfLines; i++) {
</s> add for (let i = 0; i < resolvedProps.noOfLines; i++) { </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove let computedChildren = [];
</s> add const computedChildren = []; </s> remove return newProps.isLoaded ? (
</s> add return resolvedProps.isLoaded ? ( | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} | <mask> );
<mask> } else
<mask> computedChildren.push(
<mask> <Skeleton
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> endColor={endColor}
<mask> startColor={startColor}
<mask> h={lineHeight}
<mask> />
<mask> );
</s> feat: new prop resolution cheanges in skeleton </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove return newProps.isLoaded ? (
</s> add return resolvedProps.isLoaded ? ( </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
return resolvedProps.isLoaded ? ( | <mask> h={lineHeight}
<mask> />
<mask> );
<mask> }
<mask> return newProps.isLoaded ? (
<mask> children
<mask> ) : (
<mask> <Box
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> bg={'transparent'}
</s> feat: new prop resolution cheanges in skeleton </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} | <mask> return newProps.isLoaded ? (
<mask> children
<mask> ) : (
<mask> <Box
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> bg={'transparent'}
<mask> {...newProps}
<mask> ref={ref}
<mask> >
<mask> {/* populating computed children with given space */}
</s> feat: new prop resolution cheanges in skeleton </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove return newProps.isLoaded ? (
</s> add return resolvedProps.isLoaded ? ( </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
{...resolvedProps} | <mask> ) : (
<mask> <Box
<mask> borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
<mask> bg={'transparent'}
<mask> {...newProps}
<mask> ref={ref}
<mask> >
<mask> {/* populating computed children with given space */}
<mask> <VStack
<mask> top={0}
</s> feat: new prop resolution cheanges in skeleton </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} </s> remove return newProps.isLoaded ? (
</s> add return resolvedProps.isLoaded ? ( </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
justifyContent={space === undefined ? 'space-between' : 'flex-start'} | <mask> left={0}
<mask> right={0}
<mask> bottom={0}
<mask> position="absolute"
<mask> justifyContent={space == undefined ? 'space-between' : 'flex-start'}
<mask> space={space}
<mask> // spreading props specific for VStack
<mask> {...props._stack}
<mask> overflow="hidden"
<mask> >
</s> feat: new prop resolution cheanges in skeleton </s> remove {...props._stack}
</s> add {..._stack} </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} </s> remove if (i == newProps.noOfLines - 1 && newProps.noOfLines !== 1) {
</s> add if (i === resolvedProps.noOfLines - 1 && resolvedProps.noOfLines !== 1) { </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
{..._stack} | <mask> position="absolute"
<mask> justifyContent={space == undefined ? 'space-between' : 'flex-start'}
<mask> space={space}
<mask> // spreading props specific for VStack
<mask> {...props._stack}
<mask> overflow="hidden"
<mask> >
<mask> {computedChildren}
<mask> </VStack>
<mask> {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> feat: new prop resolution cheanges in skeleton </s> remove justifyContent={space == undefined ? 'space-between' : 'flex-start'}
</s> add justifyContent={space === undefined ? 'space-between' : 'flex-start'} </s> remove {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
</s> add {children ? <Box opacity={0}>{children}</Box> : null} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={resolvedProps.borderRadius ? resolvedProps.borderRadius : 3} </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove borderRadius={newProps.borderRadius ? newProps.borderRadius : 3}
</s> add borderRadius={
resolvedProps.borderRadius ? resolvedProps.borderRadius : 3
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
{children ? <Box opacity={0}>{children}</Box> : null} | <mask> overflow="hidden"
<mask> >
<mask> {computedChildren}
<mask> </VStack>
<mask> {children ? <Box style={{ opacity: 0 }}>{children}</Box> : null}
<mask> </Box>
<mask> );
<mask> };
<mask>
<mask> export default memo(forwardRef(SkeletonText));
</s> feat: new prop resolution cheanges in skeleton </s> remove {...props._stack}
</s> add {..._stack} </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; </s> remove return newProps.isLoaded ? (
</s> add return resolvedProps.isLoaded ? ( </s> remove justifyContent={space == undefined ? 'space-between' : 'flex-start'}
</s> add justifyContent={space === undefined ? 'space-between' : 'flex-start'} </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/SkeletonText.tsx |
const SkeletonTemp: any = SkeletonMain; | <mask> import SkeletonMain from './Skeleton';
<mask> import SkeletonCircle from './SkeletonCircle';
<mask> import SkeletonText from './SkeletonText';
<mask>
<mask> let SkeletonTemp: any = SkeletonMain;
<mask> SkeletonTemp.Circle = SkeletonCircle;
<mask> SkeletonTemp.Text = SkeletonText;
<mask>
<mask> // To add typings
<mask> const Skeleton = SkeletonTemp as ISkeletonComponentType;
</s> feat: new prop resolution cheanges in skeleton </s> remove const SkeletonText = (allProps: IBoxProps & ISkeletonTextProps, ref: any) => {
const { children, ...props } = allProps;
</s> add const SkeletonText = (
{ children, ...props }: IBoxProps & ISkeletonTextProps,
ref: any
) => {
// const { children, ...props } = allProps; </s> remove const SkeletonCircle = (allProps: ISkeletonProps) => {
const { children, ...props } = allProps;
const newProps = usePropsResolution('SkeletonCircle', props);
</s> add const SkeletonCircle = ({ children, ...props }: ISkeletonProps) => {
const resolvedProps = usePropsResolution('SkeletonCircle', props); </s> remove const Skeleton = (allProps: ISkeletonProps, ref: any) => {
</s> add const Skeleton = (props: ISkeletonProps, ref: any) => { </s> remove return newProps.isLoaded ? children : <Skeleton {...newProps} />;
</s> add return resolvedProps.isLoaded ? children : <Skeleton {...resolvedProps} />; </s> remove ...newProps
</s> add _stack,
...resolvedProps | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3dd21a3819570aa8f049d5202d4f72eee2de545a | src/components/composites/Skeleton/index.tsx |
"@react-stately/collections": "^3.3.0",
"@react-stately/tabs": "^3.0.0-alpha.1", | <mask> "@react-native-community/bob": "^0.16.2",
<mask> "@react-native-community/eslint-config": "^2.0.0",
<mask> "@react-native-picker/picker": "^1.9.11",
<mask> "@react-stately/radio": "^3.2.1",
<mask> "@release-it/conventional-changelog": "^1.1.4",
<mask> "@testing-library/react-hooks": "^5.0.3",
<mask> "@testing-library/react-native": "^7.1.0",
<mask> "@types/jest": "^26.0.0",
<mask> "@types/lodash": "^4.14.162",
<mask> "@types/react": "^16.9.19",
</s> fix: add dependencies in package.json </s> remove "@types/react-native": "0.62.13",
</s> add "@types/react-native": "~0.63.2", | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e518f2b3672b0cfa9f567c786b7007fa827cb53 | package.json |
"@types/react-native": "~0.63.2", | <mask> "@testing-library/react-native": "^7.1.0",
<mask> "@types/jest": "^26.0.0",
<mask> "@types/lodash": "^4.14.162",
<mask> "@types/react": "^16.9.19",
<mask> "@types/react-native": "0.62.13",
<mask> "@types/styled-components-react-native": "^5.1.0",
<mask> "@types/styled-system": "^5.1.9",
<mask> "@types/tinycolor2": "^1.4.2",
<mask> "babel-plugin-transform-remove-console": "^6.9.4",
<mask> "commitlint": "^8.3.5",
</s> fix: add dependencies in package.json | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e518f2b3672b0cfa9f567c786b7007fa827cb53 | package.json |
"@react-native-aria/tabs": "^0.2.3", | <mask> "@react-native-aria/checkbox": "^0.2.2",
<mask> "@react-native-aria/focus": "^0.2.4",
<mask> "@react-native-aria/interactions": "^0.2.2",
<mask> "@react-native-aria/radio": "^0.2.2",
<mask> "@react-stately/radio": "^3.2.1",
<mask> "babel-eslint": "^10.1.0",
<mask> "deepmerge": "^4.2.2",
<mask> "expo-constants": "^9.3.5",
</s> fix: add dependencies in package.json </s> remove "@types/react-native": "0.62.13",
</s> add "@types/react-native": "~0.63.2", | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e518f2b3672b0cfa9f567c786b7007fa827cb53 | package.json |
"version": "3.4.18", | <mask> "*.{json,md,html}": [
<mask> "prettier --write"
<mask> ]
<mask> },
<mask> "version": "3.4.17",
<mask> "license": "MIT",
<mask> "private": false,
<mask> "main": "lib/commonjs/index",
<mask> "module": "lib/module/index",
<mask> "types": "lib/typescript/src/index.d.ts",
</s> fix: correcting pakage json and yarn lock </s> remove "react-native-svg": "*",
"react-native-web": "^0.18.0"
</s> add "react-native-svg": "*" </s> remove "react-native-web": "^0.18.9",
</s> add "react-native-web": "^0.17.7", </s> remove "react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "0.70",
</s> add "react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.63.2", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e73550cb9803304e91e2db7b58dcbb4912d7e15 | package.json |
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.63.2", | <mask> "metro-react-native-babel-preset": "^0.64.0",
<mask> "pod-install": "^0.1.0",
<mask> "postinstall-postinstall": "^2.1.0",
<mask> "prettier": "^2.0.5",
<mask> "react": "^18.2.0",
<mask> "react-dom": "^18.2.0",
<mask> "react-native": "0.70",
<mask> "react-native-safe-area-context": "^3.1.9",
<mask> "react-native-svg": "^12.1.0",
<mask> "react-native-web": "^0.18.9",
<mask> "react-test-renderer": "^16.9.0",
<mask> "release-it": "^13.5.8",
</s> fix: correcting pakage json and yarn lock </s> remove "react-native-web": "^0.18.9",
</s> add "react-native-web": "^0.17.7", </s> remove "react-native-svg": "*",
"react-native-web": "^0.18.0"
</s> add "react-native-svg": "*" </s> remove "version": "3.4.17",
</s> add "version": "3.4.18", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e73550cb9803304e91e2db7b58dcbb4912d7e15 | package.json |
"react-native-web": "^0.17.7", | <mask> "react-dom": "^18.2.0",
<mask> "react-native": "0.70",
<mask> "react-native-safe-area-context": "^3.1.9",
<mask> "react-native-svg": "^12.1.0",
<mask> "react-native-web": "^0.18.9",
<mask> "react-test-renderer": "^16.9.0",
<mask> "release-it": "^13.5.8",
<mask> "rollup": "^2.34.1",
<mask> "rollup-plugin-flow": "^1.1.1",
<mask> "typescript": "4.6",
</s> fix: correcting pakage json and yarn lock </s> remove "react-native-svg": "*",
"react-native-web": "^0.18.0"
</s> add "react-native-svg": "*" </s> remove "react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "0.70",
</s> add "react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.63.2", </s> remove "version": "3.4.17",
</s> add "version": "3.4.18", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e73550cb9803304e91e2db7b58dcbb4912d7e15 | package.json |
"react-native-svg": "*" | <mask> "react": "*",
<mask> "react-dom": "*",
<mask> "react-native": "*",
<mask> "react-native-safe-area-context": "*",
<mask> "react-native-svg": "*",
<mask> "react-native-web": "^0.18.0"
<mask> },
<mask> "jest": {
<mask> "preset": "jest-expo",
<mask> "transform": {
<mask> "^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
</s> fix: correcting pakage json and yarn lock </s> remove "react-native-web": "^0.18.9",
</s> add "react-native-web": "^0.17.7", </s> remove "react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "0.70",
</s> add "react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.63.2", </s> remove "version": "3.4.17",
</s> add "version": "3.4.18", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e73550cb9803304e91e2db7b58dcbb4912d7e15 | package.json |
<mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import Text from '../../primitives/Text';
<mask> import type { IToastProps } from './types';
<mask> import { themeTools } from '../../../theme';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const ToastItem = ({ title, offset, ...props }: IToastProps) => {
<mask> let newProps = useThemeProps('Toast', props);
<mask> const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
</s> fix: add title style prop in toast </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { </s> remove const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
'color',
'fontWeight',
'fontStyle',
'fontFamily',
'fontSize',
'textAlign',
]);
</s> add </s> remove import type { IBoxProps } from '../../primitives';
</s> add import type { IBoxProps, ITextProps } from '../../primitives'; </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/ToastItem.tsx | |
const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { | <mask> import type { IToastProps } from './types';
<mask> import { themeTools } from '../../../theme';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const ToastItem = ({ title, offset, ...props }: IToastProps) => {
<mask> let newProps = useThemeProps('Toast', props);
<mask> const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
<mask> 'color',
<mask> 'fontWeight',
<mask> 'fontStyle',
</s> fix: add title style prop in toast </s> remove import { themeTools } from '../../../theme';
</s> add </s> remove const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
'color',
'fontWeight',
'fontStyle',
'fontFamily',
'fontSize',
'textAlign',
]);
</s> add </s> remove import type { IBoxProps } from '../../primitives';
</s> add import type { IBoxProps, ITextProps } from '../../primitives'; </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/ToastItem.tsx |
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const ToastItem = ({ title, offset, ...props }: IToastProps) => {
<mask> let newProps = useThemeProps('Toast', props);
<mask> const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
<mask> 'color',
<mask> 'fontWeight',
<mask> 'fontStyle',
<mask> 'fontFamily',
<mask> 'fontSize',
<mask> 'textAlign',
<mask> ]);
<mask> return (
<mask> <Box ml={offset?.x} mt={offset?.y} {...wrapperProp}>
<mask> <Text {...textProps}>{title}</Text>
<mask> </Box>
<mask> );
</s> fix: add title style prop in toast </s> remove <Box ml={offset?.x} mt={offset?.y} {...wrapperProp}>
<Text {...textProps}>{title}</Text>
</s> add <Box ml={offset?.x} mt={offset?.y} {...newProps}>
<Text {..._title}>{title}</Text> </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { </s> remove import { themeTools } from '../../../theme';
</s> add </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/ToastItem.tsx | |
<Box ml={offset?.x} mt={offset?.y} {...newProps}>
<Text {..._title}>{title}</Text> | <mask> 'fontSize',
<mask> 'textAlign',
<mask> ]);
<mask> return (
<mask> <Box ml={offset?.x} mt={offset?.y} {...wrapperProp}>
<mask> <Text {...textProps}>{title}</Text>
<mask> </Box>
<mask> );
<mask> };
<mask>
<mask> export default React.memo(ToastItem);
</s> fix: add title style prop in toast </s> remove const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
'color',
'fontWeight',
'fontStyle',
'fontFamily',
'fontSize',
'textAlign',
]);
</s> add </s> remove import type { IBoxProps } from '../../primitives';
</s> add import type { IBoxProps, ITextProps } from '../../primitives'; </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/ToastItem.tsx |
_title, | <mask> duration = 2000,
<mask> position = 'bottom',
<mask> offset,
<mask> }: IsetToastProps) => {
<mask> setTimeout(() => {
<mask> closeOverlay();
<mask> }, duration);
</s> fix: add title style prop in toast </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { </s> remove import { themeTools } from '../../../theme';
</s> add </s> remove const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
'color',
'fontWeight',
'fontStyle',
'fontFamily',
'fontSize',
'textAlign',
]);
</s> add </s> remove import type { IBoxProps } from '../../primitives';
</s> add import type { IBoxProps, ITextProps } from '../../primitives'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/hooks.tsx |
setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { | <mask> }: IsetToastProps) => {
<mask> setTimeout(() => {
<mask> closeOverlay();
<mask> }, duration);
<mask> setOverlay(<ToastItem title={title} offset={offset} />, {
<mask> position,
<mask> disableOverlay: true,
<mask> });
<mask> };
<mask> return setToast;
</s> fix: add title style prop in toast </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { </s> remove const [textProps, wrapperProp] = themeTools.extractInObject(newProps, [
'color',
'fontWeight',
'fontStyle',
'fontFamily',
'fontSize',
'textAlign',
]);
</s> add </s> remove import { themeTools } from '../../../theme';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/hooks.tsx |
import type { IBoxProps, ITextProps } from '../../primitives'; | <mask> import type { IBoxProps } from '../../primitives';
<mask>
<mask> export type IToastProps = IBoxProps & IsetToastProps;
<mask> export type IsetToastProps = {
<mask> title?: string;
<mask> duration?: number | 'short' | 'long';
</s> fix: add title style prop in toast </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { </s> remove import { themeTools } from '../../../theme';
</s> add </s> remove <Box ml={offset?.x} mt={offset?.y} {...wrapperProp}>
<Text {...textProps}>{title}</Text>
</s> add <Box ml={offset?.x} mt={offset?.y} {...newProps}>
<Text {..._title}>{title}</Text> | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/types.tsx |
_title?: ITextProps; | <mask> title?: string;
<mask> duration?: number | 'short' | 'long';
<mask> position?: 'top' | 'bottom' | 'center';
<mask> offset?: { x: number; y: number };
<mask> };
</s> fix: add title style prop in toast </s> remove import type { IBoxProps } from '../../primitives';
</s> add import type { IBoxProps, ITextProps } from '../../primitives'; </s> remove setOverlay(<ToastItem title={title} offset={offset} />, {
</s> add setOverlay(<ToastItem title={title} _title={_title} offset={offset} />, { </s> remove <Box ml={offset?.x} mt={offset?.y} {...wrapperProp}>
<Text {...textProps}>{title}</Text>
</s> add <Box ml={offset?.x} mt={offset?.y} {...newProps}>
<Text {..._title}>{title}</Text> </s> remove const ToastItem = ({ title, offset, ...props }: IToastProps) => {
</s> add const ToastItem = ({ title, offset, _title, ...props }: IToastProps) => { | [
"keep",
"keep",
"keep",
"add",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3e890c22d6ae9d0d3fe5febe1422b88dc0aa58ef | src/components/composites/Toast/types.tsx |
const Fab = (props: IFabProps, ref: any) => { | <mask> import type { IFabProps } from './types';
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps';
<mask> import { OverlayContainer } from '@react-native-aria/overlays';
<mask>
<mask> const Fab = (
<mask> { label, icon, renderInPortal = true, ...props }: IFabProps,
<mask> ref: any
<mask> ) => {
<mask> const themeProps = usePropsResolution('FAB', props);
<mask> const { placement, placementProps, ...newProps } = themeProps;
<mask>
<mask> const fabComponent = (
<mask> <Button
</s> feat: new prop resolution cheanges in fab </s> remove const { placement, placementProps, ...newProps } = themeProps;
</s> add const {
label,
icon,
renderInPortal,
placement,
placementProps,
...newProps
} = themeProps; </s> remove const baseStyle = {
shadow: 7,
</s> add const defaultProps = {
renderInPortal: true,
variant: 'solid',
colorScheme: 'primary',
placement: 'bottom-right', </s> remove const defaultProps = {
variant: 'solid',
colorScheme: 'primary',
</s> add const baseStyle = {
shadow: 7, </s> remove placement: 'bottom-right',
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3ea821293222c57b04d2395ee81adcef5e612051 | src/components/composites/Fab/Fab.tsx |
const {
label,
icon,
renderInPortal,
placement,
placementProps,
...newProps
} = themeProps; | <mask> { label, icon, renderInPortal = true, ...props }: IFabProps,
<mask> ref: any
<mask> ) => {
<mask> const themeProps = usePropsResolution('FAB', props);
<mask> const { placement, placementProps, ...newProps } = themeProps;
<mask>
<mask> const fabComponent = (
<mask> <Button
<mask> {...placementProps[placement]}
<mask> ref={ref}
</s> feat: new prop resolution cheanges in fab </s> remove const Fab = (
{ label, icon, renderInPortal = true, ...props }: IFabProps,
ref: any
) => {
</s> add const Fab = (props: IFabProps, ref: any) => { </s> remove const baseStyle = {
shadow: 7,
</s> add const defaultProps = {
renderInPortal: true,
variant: 'solid',
colorScheme: 'primary',
placement: 'bottom-right', </s> remove const defaultProps = {
variant: 'solid',
colorScheme: 'primary',
</s> add const baseStyle = {
shadow: 7, </s> remove placement: 'bottom-right',
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3ea821293222c57b04d2395ee81adcef5e612051 | src/components/composites/Fab/Fab.tsx |
const baseStyle = {
shadow: 7, | <mask> 'top-left': { top: 12, left: 4, position: 'absolute' },
<mask> 'bottom-right': { bottom: 4, right: 4, position: 'absolute' },
<mask> 'bottom-left': { bottom: 4, left: 4, position: 'absolute' },
<mask> };
<mask> const defaultProps = {
<mask> variant: 'solid',
<mask> colorScheme: 'primary',
<mask> rounded: 'full',
<mask> zIndex: 20,
<mask> placementProps,
<mask> px: 4,
<mask> py: 4,
</s> feat: new prop resolution cheanges in fab </s> remove const baseStyle = {
shadow: 7,
</s> add const defaultProps = {
renderInPortal: true,
variant: 'solid',
colorScheme: 'primary',
placement: 'bottom-right', </s> remove placement: 'bottom-right',
</s> add </s> remove const { placement, placementProps, ...newProps } = themeProps;
</s> add const {
label,
icon,
renderInPortal,
placement,
placementProps,
...newProps
} = themeProps; </s> remove const Fab = (
{ label, icon, renderInPortal = true, ...props }: IFabProps,
ref: any
) => {
</s> add const Fab = (props: IFabProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3ea821293222c57b04d2395ee81adcef5e612051 | src/theme/components/fab.ts |
<mask> zIndex: 20,
<mask> placementProps,
<mask> px: 4,
<mask> py: 4,
<mask> placement: 'bottom-right',
<mask> };
<mask> const baseStyle = {
<mask> shadow: 7,
<mask> };
<mask>
</s> feat: new prop resolution cheanges in fab </s> remove const baseStyle = {
shadow: 7,
</s> add const defaultProps = {
renderInPortal: true,
variant: 'solid',
colorScheme: 'primary',
placement: 'bottom-right', </s> remove const defaultProps = {
variant: 'solid',
colorScheme: 'primary',
</s> add const baseStyle = {
shadow: 7, </s> remove const { placement, placementProps, ...newProps } = themeProps;
</s> add const {
label,
icon,
renderInPortal,
placement,
placementProps,
...newProps
} = themeProps; </s> remove const Fab = (
{ label, icon, renderInPortal = true, ...props }: IFabProps,
ref: any
) => {
</s> add const Fab = (props: IFabProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3ea821293222c57b04d2395ee81adcef5e612051 | src/theme/components/fab.ts | |
const defaultProps = {
renderInPortal: true,
variant: 'solid',
colorScheme: 'primary',
placement: 'bottom-right', | <mask> px: 4,
<mask> py: 4,
<mask> placement: 'bottom-right',
<mask> };
<mask> const baseStyle = {
<mask> shadow: 7,
<mask> };
<mask>
<mask> export default { baseStyle, defaultProps };
</s> feat: new prop resolution cheanges in fab </s> remove placement: 'bottom-right',
</s> add </s> remove const defaultProps = {
variant: 'solid',
colorScheme: 'primary',
</s> add const baseStyle = {
shadow: 7, </s> remove const Fab = (
{ label, icon, renderInPortal = true, ...props }: IFabProps,
ref: any
) => {
</s> add const Fab = (props: IFabProps, ref: any) => { </s> remove const { placement, placementProps, ...newProps } = themeProps;
</s> add const {
label,
icon,
renderInPortal,
placement,
placementProps,
...newProps
} = themeProps; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3ea821293222c57b04d2395ee81adcef5e612051 | src/theme/components/fab.ts |
accessibilityLabel="choose multiple items" | <mask> colorScheme="green"
<mask> defaultValue={groupValue}
<mask> onChange={(values) => {
<mask> setGroupValue(values || []);
<mask> }}
<mask> alignItems="flex-start"
<mask> >
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove const Radio = (
{ icon, children, wrapperRef, size, ...props }: IRadioProps,
ref: any
) => {
</s> add const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/FormControlled.tsx |
accessibilityLabel="pick an item" | <mask> <Checkbox.Group
<mask> colorScheme="green"
<mask> defaultValue={groupValue}
<mask> onChange={(values) => {
<mask> setGroupValue(values || []);
<mask> }}
<mask> >
<mask> <Checkbox value="Item 1" my={1}>
<mask> Item 1
</s> fix: radio and checkbox accessibility warnings </s> remove <Checkbox.Group onChange={setGroupValues} value={groupValues}>
</s> add <Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> </s> remove Hello world
</s> add value 1 </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/checkboxGroup.tsx |
<Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> | <mask> export const Example = () => {
<mask> const [groupValues, setGroupValues] = React.useState([]);
<mask>
<mask> return (
<mask> <Checkbox.Group onChange={setGroupValues} value={groupValues}>
<mask> <Checkbox value="one" my={2}>
<mask> One
<mask> </Checkbox>
<mask> <Checkbox value="two">Two</Checkbox>
<mask> </Checkbox.Group>
</s> fix: radio and checkbox accessibility warnings </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove Hello world
</s> add value 1 </s> remove <Checkbox value="two">Hello world</Checkbox>
</s> add <Checkbox value="two">value 2</Checkbox> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/controlledCheckbox.tsx |
<Checkbox.Group accessibilityLabel="choose values"> | <mask> import { Checkbox } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Checkbox.Group>
<mask> <Checkbox value="one" my={2}>
<mask> Hello world
<mask> </Checkbox>
<mask> <Checkbox value="two">Hello world</Checkbox>
<mask> </Checkbox.Group>
</s> fix: radio and checkbox accessibility warnings </s> remove Hello world
</s> add value 1 </s> remove <Checkbox value="two">Hello world</Checkbox>
</s> add <Checkbox value="two">value 2</Checkbox> </s> remove <Checkbox.Group onChange={setGroupValues} value={groupValues}>
</s> add <Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove const Checkbox = (
{ children, icon, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/uncontrolledCheckbox.tsx |
value 1 | <mask> export const Example = () => {
<mask> return (
<mask> <Checkbox.Group>
<mask> <Checkbox value="one" my={2}>
<mask> Hello world
<mask> </Checkbox>
<mask> <Checkbox value="two">Hello world</Checkbox>
<mask> </Checkbox.Group>
<mask> );
<mask> };
</s> fix: radio and checkbox accessibility warnings </s> remove <Checkbox value="two">Hello world</Checkbox>
</s> add <Checkbox value="two">value 2</Checkbox> </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove <Checkbox.Group onChange={setGroupValues} value={groupValues}>
</s> add <Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/uncontrolledCheckbox.tsx |
<Checkbox value="two">value 2</Checkbox> | <mask> <Checkbox.Group>
<mask> <Checkbox value="one" my={2}>
<mask> Hello world
<mask> </Checkbox>
<mask> <Checkbox value="two">Hello world</Checkbox>
<mask> </Checkbox.Group>
<mask> );
<mask> };
</s> fix: radio and checkbox accessibility warnings </s> remove Hello world
</s> add value 1 </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove <Checkbox.Group onChange={setGroupValues} value={groupValues}>
</s> add <Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Checkbox/uncontrolledCheckbox.tsx |
accessibilityLabel="favorite number" | <mask> <Radio.Group
<mask> name="myRadioGroup"
<mask> value={value}
<mask> onChange={(nextValue) => {
<mask> setValue(nextValue);
<mask> }}
<mask> >
<mask> <Radio value="one" my={1}>
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group value={value} onChange={setValue} name="exampleGroup">
</s> add <Radio.Group
value={value}
onChange={setValue}
name="exampleGroup"
accessibilityLabel="pick an option from below"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/controlledRadio.tsx |
<Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> | <mask> import { Radio } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Radio.Group defaultValue="1" name="exampleGroup">
<mask> <Radio colorScheme="emerald" value="1" my={1}>
<mask> emerald
<mask> </Radio>
<mask> <Radio colorScheme="secondary" value="2" my={1}>
<mask> secondary
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/customColor.tsx |
<Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | <mask> import { MaterialCommunityIcons } from '@expo/vector-icons';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
<mask> <Radio
<mask> _text={{ mx: 2 }}
<mask> colorScheme="green"
<mask> value="1"
<mask> icon={<Icon as={<MaterialCommunityIcons name="alien" />} />}
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="select prize"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/customIcon.tsx |
<Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> | <mask> import { Radio } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Radio.Group defaultValue="2" name="exampleGroup">
<mask> <Radio value="1" my={1} isDisabled>
<mask> First
<mask> </Radio>
<mask> <Radio value="2" my={1}>
<mask> Second
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/disabled.tsx |
<Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="select prize"
> | <mask> return (
<mask> <Container>
<mask> <FormControl isRequired isInvalid>
<mask> <FormControl.Label>Select One</FormControl.Label>
<mask> <Radio.Group defaultValue="1" name="exampleGroup">
<mask> <Radio value="1" my={1}>
<mask> First
<mask> </Radio>
<mask> <Radio value="2" my={1}>
<mask> Second
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/formControlled.tsx |
<Radio.Group name="exampleGroup" accessibilityLabel="select an option"> | <mask> import { Radio } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Radio.Group name="exampleGroup">
<mask> <Radio value="test" isInvalid>
<mask> Invalid Radio
<mask> </Radio>
<mask> </Radio.Group>
<mask> );
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove const Radio = (
{ icon, children, wrapperRef, size, ...props }: IRadioProps,
ref: any
) => {
</s> add const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/invalid.tsx |
<Radio.Group
value={value}
onChange={setValue}
name="exampleGroup"
accessibilityLabel="pick an option from below"
> | <mask> const [value, setValue] = useState('');
<mask>
<mask> return (
<mask> <Box display="flex" justifyContent="space-between" alignItems="center">
<mask> <Radio.Group value={value} onChange={setValue} name="exampleGroup">
<mask> <Radio
<mask> colorScheme={text('colorScheme', 'primary')}
<mask> size={select('size', ['sm', 'md', 'lg'], 'md')}
<mask> isDisabled={boolean('isDisabled', false)}
<mask> isInvalid={boolean('isInvalid', false)}
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove {children}
</s> add {props.children} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/playground.tsx |
<Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> | <mask> import { Radio } from 'native-base';
<mask>
<mask> export const Example = () => {
<mask> return (
<mask> <Radio.Group name="exampleGroup" defaultValue="1">
<mask> <Radio value="1" colorScheme="red" size="sm" my={1}>
<mask> Small
<mask> </Radio>
<mask> <Radio value="2" colorScheme="green" size="md" my={1}>
<mask> Medium
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/size.tsx |
accessibilityLabel="pick an option" | <mask> return (
<mask> <Radio.Group
<mask> name="exampleGroup"
<mask> colorScheme="success"
<mask> onChange={(value) => {
<mask> if (value === '2')
<mask> myRef?.current?.setNativeProps({ backgroundColor: '#00de0050' });
<mask> else
<mask> myRef?.current?.setNativeProps({
</s> fix: radio and checkbox accessibility warnings </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group name="exampleGroup" defaultValue="1">
</s> add <Radio.Group
name="exampleGroup"
defaultValue="1"
accessibilityLabel="pick a size"
> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> </s> remove <Radio.Group defaultValue="1" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
name="exampleGroup"
accessibilityLabel="favorite colorscheme"
> </s> remove <Radio.Group defaultValue="1" size="lg" name="exampleGroup">
</s> add <Radio.Group
defaultValue="1"
size="lg"
name="exampleGroup"
accessibilityLabel="pick a choice"
> | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | example/storybook/stories/components/primitives/Radio/withRef.tsx |
const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { | <mask> import { CheckboxGroupContext } from './CheckboxGroup';
<mask> import { useCheckbox, useCheckboxGroupItem } from '@react-native-aria/checkbox';
<mask> import { CheckIcon } from '../Icon/Icons';
<mask>
<mask> const Checkbox = (
<mask> { icon, children, wrapperRef, ...props }: ICheckboxProps,
<mask> ref: any
<mask> ) => {
<mask> const formControlContext = useFormControlContext();
<mask>
<mask> const checkboxGroupContext = React.useContext(CheckboxGroupContext);
<mask> const {
<mask> _interactionBox: { _pressed: _iterationBoxPressed, ..._interactionBox },
</s> fix: radio and checkbox accessibility warnings </s> remove const Checkbox = (
{ children, icon, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove const Radio = (
{ icon, children, wrapperRef, size, ...props }: IRadioProps,
ref: any
) => {
</s> add const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { </s> remove let { groupProps } = useCheckboxGroup(props, state);
</s> add let { groupProps } = useCheckboxGroup(
{ 'aria-label': props.accessibilityLabel, ...props },
state
); </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Checkbox/Checkbox.tsx |
{props.children} | <mask> )}
<mask> </Center>
<mask> </Center>
<mask> {/* Label */}
<mask> {children}
<mask> </Center>
<mask> );
<mask> }}
<mask> </Pressable>
<mask> );
</s> fix: radio and checkbox accessibility warnings </s> remove {children}
</s> add {props.children} </s> remove {children}
</s> add {props.children} </s> remove <Checkbox value="two">Hello world</Checkbox>
</s> add <Checkbox value="two">value 2</Checkbox> </s> remove Hello world
</s> add value 1 </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Checkbox/Checkbox.tsx |
const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { | <mask> import { useCheckbox, useCheckboxGroupItem } from '@react-native-aria/checkbox';
<mask> import { useFocusRing } from '@react-native-aria/focus';
<mask> import { CheckIcon } from '../Icon/Icons';
<mask>
<mask> const Checkbox = (
<mask> { children, icon, wrapperRef, ...props }: ICheckboxProps,
<mask> ref: any
<mask> ) => {
<mask> const formControlContext = useFormControlContext();
<mask> const checkboxGroupContext = React.useContext(CheckboxGroupContext);
<mask> const {
<mask> _interactionBox: {
<mask> _hover: _iterationBoxHover,
</s> fix: radio and checkbox accessibility warnings </s> remove const Checkbox = (
{ icon, children, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove const Radio = (
{ icon, children, wrapperRef, size, ...props }: IRadioProps,
ref: any
) => {
</s> add const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { </s> remove let { groupProps } = useCheckboxGroup(props, state);
</s> add let { groupProps } = useCheckboxGroup(
{ 'aria-label': props.accessibilityLabel, ...props },
state
); </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Checkbox/Checkbox.web.tsx |
{props.children} | <mask> <CheckIcon name="check" {..._icon} opacity={checked ? 1 : 0} />
<mask> )}
<mask> </Center>
<mask> </Center>
<mask> {children}
<mask> </Box>
<mask> );
<mask>
<mask> return (
<mask> <Box
</s> fix: radio and checkbox accessibility warnings </s> remove {children}
</s> add {props.children} </s> remove {children}
</s> add {props.children} </s> remove Hello world
</s> add value 1 </s> remove <Radio.Group value={value} onChange={setValue} name="exampleGroup">
</s> add <Radio.Group
value={value}
onChange={setValue}
name="exampleGroup"
accessibilityLabel="pick an option from below"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Checkbox/Checkbox.web.tsx |
let { groupProps } = useCheckboxGroup(
{ 'aria-label': props.accessibilityLabel, ...props },
state
); | <mask> ref?: any
<mask> ) {
<mask> let { children } = props;
<mask> let state = useCheckboxGroupState(props);
<mask> let { groupProps } = useCheckboxGroup(props, state);
<mask> const formControlContext = useFormControlContext();
<mask> return (
<mask> <CheckboxGroupContext.Provider
<mask> value={{
<mask> size,
</s> fix: radio and checkbox accessibility warnings </s> remove const Checkbox = (
{ children, icon, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove const Checkbox = (
{ icon, children, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove const Radio = (
{ icon, children, wrapperRef, size, ...props }: IRadioProps,
ref: any
) => {
</s> add const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { </s> remove <Checkbox.Group>
</s> add <Checkbox.Group accessibilityLabel="choose values"> </s> remove <Checkbox.Group onChange={setGroupValues} value={groupValues}>
</s> add <Checkbox.Group
onChange={setGroupValues}
value={groupValues}
accessibilityLabel="choose numbers"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Checkbox/CheckboxGroup.tsx |
const Radio = ({ icon, wrapperRef, size, ...props }: IRadioProps, ref: any) => { | <mask> import { RadioContext } from './RadioGroup';
<mask> import { mergeRefs } from '../../../utils';
<mask> import { CircleIcon } from '../Icon/Icons';
<mask>
<mask> const Radio = (
<mask> { icon, children, wrapperRef, size, ...props }: IRadioProps,
<mask> ref: any
<mask> ) => {
<mask> const contextState = React.useContext(RadioContext);
<mask> const {
<mask> _interactionBox: { _pressed: _iterationBoxPressed, ..._interactionBox },
<mask> _radio: {
<mask> _checked: _radioChecked,
</s> fix: radio and checkbox accessibility warnings </s> remove const Checkbox = (
{ icon, children, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove const Checkbox = (
{ children, icon, wrapperRef, ...props }: ICheckboxProps,
ref: any
) => {
</s> add const Checkbox = ({ icon, wrapperRef, ...props }: ICheckboxProps, ref: any) => { </s> remove let { groupProps } = useCheckboxGroup(props, state);
</s> add let { groupProps } = useCheckboxGroup(
{ 'aria-label': props.accessibilityLabel, ...props },
state
); </s> remove <Radio.Group name="exampleGroup">
</s> add <Radio.Group name="exampleGroup" accessibilityLabel="select an option"> </s> remove <Radio.Group defaultValue="2" name="exampleGroup">
</s> add <Radio.Group
defaultValue="2"
name="exampleGroup"
accessibilityLabel="select prize"
> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Radio/Radio.tsx |
{props.children} | <mask> )}
<mask> </Center>
<mask> </Center>
<mask> {/* Label */}
<mask> {children}
<mask> </Center>
<mask> );
<mask> }}
<mask> </Pressable>
<mask> );
</s> fix: radio and checkbox accessibility warnings | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3f5e5a8f6d8fc205e1375fc3ee10c33a95f1fcf8 | src/components/primitives/Radio/Radio.tsx |
...props | <mask> defaultIsOpen,
<mask> initialFocusRef,
<mask> finalFocusRef,
<mask> trapFocus = true,
<mask> ...rest
<mask> }: IPopoverProps,
<mask> ref: any
<mask> ) => {
<mask> const triggerRef = React.useRef(null);
<mask> const mergedRef = mergeRefs([triggerRef]);
</s> feat: new prop resolution cheanges in popover </s> remove const { _icon, ...newProps } = usePropsResolution(
</s> add const { _icon, ...resolvedPorps } = usePropsResolution( </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; </s> remove let PopoverTemp: any = PopoverMain;
</s> add const PopoverTemp: any = PopoverMain; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/Popover.tsx |
const updatedTrigger = () => { | <mask> const handleOpen = React.useCallback(() => {
<mask> setIsOpen(true);
<mask> }, [setIsOpen]);
<mask>
<mask> let updatedTrigger = () => {
<mask> return trigger(
<mask> {
<mask> 'ref': mergedRef,
<mask> 'onPress': handleOpen,
<mask> 'aria-expanded': isOpen ? true : false,
</s> feat: new prop resolution cheanges in popover </s> remove let finalFocusRefCurrentVal = finalFocusRef?.current;
</s> add const finalFocusRefCurrentVal = finalFocusRef?.current; </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const { _icon, ...newProps } = usePropsResolution(
</s> add const { _icon, ...resolvedPorps } = usePropsResolution( </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/Popover.tsx |
<Popper onClose={handleClose} triggerRef={triggerRef} {...props}> | <mask> exit={{ opacity: 0, scale: 0.95, transition: { duration: 100 } }}
<mask> visible={isOpen}
<mask> style={StyleSheet.absoluteFill}
<mask> >
<mask> <Popper onClose={handleClose} triggerRef={triggerRef} {...rest}>
<mask> <Backdrop onPress={handleClose} bg="transparent" />
<mask> <PopoverContext.Provider
<mask> value={{
<mask> onClose: handleClose,
<mask> initialFocusRef,
</s> feat: new prop resolution cheanges in popover </s> remove ...rest
</s> add ...props </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove {...newProps}
{...props}
</s> add {...resolvedProps} </s> remove {...newProps}
</s> add {...resolvedPorps} </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/Popover.tsx |
const resolvedProps = usePropsResolution('PopoverArrow', props); | <mask> import { Popper } from '../Popper';
<mask> import type { IBoxProps } from '../../primitives/Box';
<mask>
<mask> const PopoverArrow = React.forwardRef((props: IBoxProps, ref: any) => {
<mask> const themeProps = usePropsResolution('PopoverArrow', props);
<mask>
<mask> return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
<mask> });
<mask>
<mask> PopoverArrow.displayName = 'PopperArrow';
</s> feat: new prop resolution cheanges in popover </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove let PopoverTemp: any = PopoverMain;
</s> add const PopoverTemp: any = PopoverMain; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverArrow.tsx |
return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; | <mask>
<mask> const PopoverArrow = React.forwardRef((props: IBoxProps, ref: any) => {
<mask> const themeProps = usePropsResolution('PopoverArrow', props);
<mask>
<mask> return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
<mask> });
<mask>
<mask> PopoverArrow.displayName = 'PopperArrow';
<mask>
<mask> export default PopoverArrow;
</s> feat: new prop resolution cheanges in popover </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const { _icon, ...newProps } = usePropsResolution(
</s> add const { _icon, ...resolvedPorps } = usePropsResolution( | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverArrow.tsx |
const resolvedProps = usePropsResolution('PopoverBody', props); | <mask> import { default as Box, IBoxProps } from '../../primitives/Box';
<mask> import { PopoverContext } from './PopoverContext';
<mask>
<mask> const PopoverBody = (props: IBoxProps, ref?: any) => {
<mask> const newProps = usePropsResolution('PopoverBody', props);
<mask> const { setBodyMounted, bodyId } = React.useContext(PopoverContext);
<mask>
<mask> React.useEffect(() => {
<mask> setBodyMounted(true);
<mask> return () => {
</s> feat: new prop resolution cheanges in popover </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove let finalFocusRefCurrentVal = finalFocusRef?.current;
</s> add const finalFocusRefCurrentVal = finalFocusRef?.current; </s> remove let updatedTrigger = () => {
</s> add const updatedTrigger = () => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverBody.tsx |
return <Box nativeID={bodyId} {...resolvedProps} {...props} ref={ref} />; | <mask> setBodyMounted(false);
<mask> };
<mask> }, [setBodyMounted]);
<mask>
<mask> return <Box nativeID={bodyId} {...newProps} {...props} ref={ref} />;
<mask> };
<mask>
<mask> export default React.memo(React.forwardRef(PopoverBody));
</s> feat: new prop resolution cheanges in popover </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove {...newProps}
{...props}
</s> add {...resolvedProps} </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove {...newProps}
</s> add {...resolvedPorps} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverBody.tsx |
const { _icon, ...resolvedPorps } = usePropsResolution( | <mask> props: Omit<IIconButtonProps, 'icon'>,
<mask> ref: any
<mask> ) => {
<mask> const { onClose }: any = React.useContext(PopoverContext);
<mask> const { _icon, ...newProps } = usePropsResolution(
<mask> 'PopoverCloseButton',
<mask> props
<mask> );
<mask>
<mask> return (
</s> feat: new prop resolution cheanges in popover </s> remove ...rest
</s> add ...props </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove let PopoverTemp: any = PopoverMain;
</s> add const PopoverTemp: any = PopoverMain; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverCloseButton.tsx |
{...resolvedPorps} | <mask>
<mask> return (
<mask> <Box position="absolute" right={1} top={1} zIndex={1} ref={ref}>
<mask> <IconButton
<mask> {...newProps}
<mask> icon={<CloseIcon {..._icon} />}
<mask> onPress={onClose}
<mask> />
<mask> </Box>
<mask> );
</s> feat: new prop resolution cheanges in popover </s> remove {...newProps}
{...props}
</s> add {...resolvedProps} </s> remove {...newProps}
</s> add {...resolvedProps} </s> remove return <Box nativeID={bodyId} {...newProps} {...props} ref={ref} />;
</s> add return <Box nativeID={bodyId} {...resolvedProps} {...props} ref={ref} />; </s> remove const { _icon, ...newProps } = usePropsResolution(
</s> add const { _icon, ...resolvedPorps } = usePropsResolution( </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverCloseButton.tsx |
const resolvedProps = usePropsResolution('PopoverContent', props); | <mask> bodyMounted,
<mask> bodyId,
<mask> headerId,
<mask> } = React.useContext(PopoverContext);
<mask> let newProps = usePropsResolution('PopoverContent', props);
<mask>
<mask> const arrowDefaultColor =
<mask> props.bgColor ??
<mask> props.bg ??
<mask> props.backgroundColor ??
</s> feat: new prop resolution cheanges in popover </s> remove newProps.backgroundColor;
</s> add resolvedProps.backgroundColor; </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverContent.tsx |
resolvedProps.backgroundColor; | <mask> const arrowDefaultColor =
<mask> props.bgColor ??
<mask> props.bg ??
<mask> props.backgroundColor ??
<mask> newProps.backgroundColor;
<mask> const color = useToken('colors', arrowDefaultColor);
<mask>
<mask> React.useEffect(() => {
<mask> let finalFocusRefCurrentVal = finalFocusRef?.current;
<mask> if (initialFocusRef && initialFocusRef.current) {
</s> feat: new prop resolution cheanges in popover </s> remove let finalFocusRefCurrentVal = finalFocusRef?.current;
</s> add const finalFocusRefCurrentVal = finalFocusRef?.current; </s> remove let newProps = usePropsResolution('PopoverContent', props);
</s> add const resolvedProps = usePropsResolution('PopoverContent', props); </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverContent.tsx |
const finalFocusRefCurrentVal = finalFocusRef?.current; | <mask> newProps.backgroundColor;
<mask> const color = useToken('colors', arrowDefaultColor);
<mask>
<mask> React.useEffect(() => {
<mask> let finalFocusRefCurrentVal = finalFocusRef?.current;
<mask> if (initialFocusRef && initialFocusRef.current) {
<mask> initialFocusRef.current.focus();
<mask> }
<mask>
<mask> return () => {
</s> feat: new prop resolution cheanges in popover </s> remove newProps.backgroundColor;
</s> add resolvedProps.backgroundColor; </s> remove let updatedTrigger = () => {
</s> add const updatedTrigger = () => { </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverContent.tsx |
const restChildren: any = []; | <mask> callback: onClose,
<mask> });
<mask>
<mask> let arrowElement = null;
<mask> let restChildren: any = [];
<mask> React.Children.forEach(props.children, (child) => {
<mask> if (child.type.displayName === 'PopperArrow') {
<mask> arrowElement = React.cloneElement(child, {
<mask> backgroundColor: child.props.color ?? color,
<mask> });
</s> feat: new prop resolution cheanges in popover </s> remove newProps.backgroundColor;
</s> add resolvedProps.backgroundColor; </s> remove let finalFocusRefCurrentVal = finalFocusRef?.current;
</s> add const finalFocusRefCurrentVal = finalFocusRef?.current; </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove let PopoverTemp: any = PopoverMain;
</s> add const PopoverTemp: any = PopoverMain; </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverContent.tsx |
{...resolvedProps} | <mask> return (
<mask> <Popper.Content
<mask> nativeID={popoverContentId}
<mask> {...accessibilityProps}
<mask> {...newProps}
<mask> {...props}
<mask> ref={ref}
<mask> >
<mask> {arrowElement}
<mask> {restChildren}
</s> feat: new prop resolution cheanges in popover </s> remove return <Box nativeID={bodyId} {...newProps} {...props} ref={ref} />;
</s> add return <Box nativeID={bodyId} {...resolvedProps} {...props} ref={ref} />; </s> remove {...newProps}
</s> add {...resolvedPorps} </s> remove {...newProps}
{...props}
</s> add {...resolvedProps} </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverContent.tsx |
const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; | <mask> import { usePropsResolution } from '../../../hooks';
<mask> import { default as Box, IBoxProps } from '../../primitives/Box';
<mask>
<mask> const PopoverFooter = (props: IBoxProps, ref?: any) => {
<mask> const newProps = usePropsResolution('PopoverFooter', props);
<mask> return <Box {...newProps} {...props} ref={ref} />;
<mask> };
<mask>
<mask> export default memo(forwardRef(PopoverFooter));
</s> feat: new prop resolution cheanges in popover </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove return <Popper.Arrow {...props} {...themeProps} ref={ref} />;
</s> add return <Popper.Arrow {...props} {...resolvedProps} ref={ref} />; </s> remove return <Box nativeID={bodyId} {...newProps} {...props} ref={ref} />;
</s> add return <Box nativeID={bodyId} {...resolvedProps} {...props} ref={ref} />; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverFooter.tsx |
const resolvedProps = usePropsResolution('PopoverHeader', props); | <mask> import { default as Box, IBoxProps } from '../../primitives/Box';
<mask> import { PopoverContext } from './PopoverContext';
<mask>
<mask> const PopoverHeader = (props: IBoxProps, ref?: any) => {
<mask> const newProps = usePropsResolution('PopoverHeader', props);
<mask> const { setHeaderMounted, headerId } = React.useContext(PopoverContext);
<mask>
<mask> React.useEffect(() => {
<mask> setHeaderMounted(true);
<mask> return () => {
</s> feat: new prop resolution cheanges in popover </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove let finalFocusRefCurrentVal = finalFocusRef?.current;
</s> add const finalFocusRefCurrentVal = finalFocusRef?.current; </s> remove let updatedTrigger = () => {
</s> add const updatedTrigger = () => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverHeader.tsx |
{...resolvedProps} | <mask> <Box
<mask> //@ts-ignore
<mask> accessibilityRole={Platform.OS === 'web' ? 'banner' : undefined}
<mask> nativeID={headerId}
<mask> {...newProps}
<mask> {...props}
<mask> ref={ref}
<mask> />
<mask> );
<mask> };
<mask>
</s> feat: new prop resolution cheanges in popover </s> remove return <Box nativeID={bodyId} {...newProps} {...props} ref={ref} />;
</s> add return <Box nativeID={bodyId} {...resolvedProps} {...props} ref={ref} />; </s> remove {...newProps}
</s> add {...resolvedPorps} </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove let updatedTrigger = () => {
</s> add const updatedTrigger = () => { </s> remove {...newProps}
</s> add {...resolvedProps} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/PopoverHeader.tsx |
const PopoverTemp: any = PopoverMain; | <mask> import type { IPopoverComponentType } from './types';
<mask> import PopoverArrow from './PopoverArrow';
<mask> export type { IPopoverProps } from './types';
<mask>
<mask> let PopoverTemp: any = PopoverMain;
<mask> PopoverTemp.Content = PopoverContent;
<mask> PopoverTemp.CloseButton = PopoverCloseButton;
<mask> PopoverTemp.Header = PopoverHeader;
<mask> PopoverTemp.Footer = PopoverFooter;
<mask> PopoverTemp.Body = PopoverBody;
</s> feat: new prop resolution cheanges in popover </s> remove const themeProps = usePropsResolution('PopoverArrow', props);
</s> add const resolvedProps = usePropsResolution('PopoverArrow', props); </s> remove const newProps = usePropsResolution('PopoverFooter', props);
return <Box {...newProps} {...props} ref={ref} />;
</s> add const resolvedProps = usePropsResolution('PopoverFooter', props);
return <Box {...resolvedProps} ref={ref} />; </s> remove const newProps = usePropsResolution('PopoverHeader', props);
</s> add const resolvedProps = usePropsResolution('PopoverHeader', props); </s> remove const newProps = usePropsResolution('PopoverBody', props);
</s> add const resolvedProps = usePropsResolution('PopoverBody', props); </s> remove let restChildren: any = [];
</s> add const restChildren: any = []; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3fbe3c3d7c0553e7a2aea2fe55734ee929060ab8 | src/components/composites/Popover/index.tsx |
import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { | <mask> import React from 'react';
<mask> import { Box, Heading, Divider, Flex } from 'native-base';
<mask> export const Composite = () => {
<mask> return (
<mask> <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<mask> <Heading size="xl">Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
</s> feat: added box composition example </s> remove <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<Heading size="xl">Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
<Flex direction="row">
<Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> </s> remove </Flex>
</s> add </Box> </s> remove <Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> </s> remove .add('Composition using Box', () => <Composite />)
.add('With Ref', () => <WithRef />);
</s> add .add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); </s> remove import { Composite } from './composition';
</s> add import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; | [
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/composition.tsx |
<Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> | <mask> import React from 'react';
<mask> import { Box, Heading, Divider, Flex } from 'native-base';
<mask> export const Composite = () => {
<mask> return (
<mask> <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<mask> <Heading size="xl">Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
<mask> <Flex direction="row">
<mask> <Box width="50%" bg="blue.50" p={4} color="blue.700">
<mask> <Heading size="lg">Sub Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
<mask> </Box>
<mask> <Box width="50%" bg="blue.50" p={4} color="blue.700">
<mask> <Heading size="lg">Sub Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
</s> feat: added box composition example </s> remove import { Box, Heading, Divider, Flex } from 'native-base';
export const Composite = () => {
</s> add import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { </s> remove </Flex>
</s> add </Box> </s> remove <Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> </s> remove .add('Composition using Box', () => <Composite />)
.add('With Ref', () => <WithRef />);
</s> add .add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); </s> remove import { Composite } from './composition';
</s> add import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/composition.tsx |
<Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> | <mask> <Heading size="lg">Sub Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
<mask> </Box>
<mask> <Box width="50%" bg="blue.50" p={4} color="blue.700">
<mask> <Heading size="lg">Sub Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
<mask> </Box>
<mask> </Flex>
<mask> </Box>
<mask> );
<mask> };
</s> feat: added box composition example </s> remove </Flex>
</s> add </Box> </s> remove <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<Heading size="xl">Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
<Flex direction="row">
<Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> </s> remove import { Box, Heading, Divider, Flex } from 'native-base';
export const Composite = () => {
</s> add import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { </s> remove .add('Composition using Box', () => <Composite />)
.add('With Ref', () => <WithRef />);
</s> add .add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); </s> remove import { Composite } from './composition';
</s> add import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/composition.tsx |
</Box> | <mask> <Heading size="lg">Sub Title</Heading>
<mask> <Divider mb={4} borderColor="teal.400" />
<mask> This can be a paragraph of a Story about a wise fox.
<mask> </Box>
<mask> </Flex>
<mask> </Box>
<mask> );
<mask> };
</s> feat: added box composition example </s> remove <Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> </s> remove <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<Heading size="xl">Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
<Flex direction="row">
<Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> </s> remove import { Box, Heading, Divider, Flex } from 'native-base';
export const Composite = () => {
</s> add import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { </s> remove .add('Composition using Box', () => <Composite />)
.add('With Ref', () => <WithRef />);
</s> add .add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); </s> remove import { Composite } from './composition';
</s> add import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/composition.tsx |
import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; | <mask> import { storiesOf } from '@storybook/react-native';
<mask> import { withKnobs } from '@storybook/addon-knobs';
<mask> import { Basic } from './basic';
<mask> import WithRef from './WithRef';
<mask> import { Composite } from './composition';
<mask> import Wrapper from './../../Wrapper';
<mask>
<mask> storiesOf('Box', module)
<mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
</s> feat: added box composition example </s> remove .add('Composition using Box', () => <Composite />)
.add('With Ref', () => <WithRef />);
</s> add .add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); </s> remove import { Box, Heading, Divider, Flex } from 'native-base';
export const Composite = () => {
</s> add import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { </s> remove <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<Heading size="xl">Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
<Flex direction="row">
<Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> </s> remove </Flex>
</s> add </Box> </s> remove <Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/index.tsx |
.add('Composition', () => <Composition />)
.add('With Ref', () => <WithRef />)
.add('Composition Card', () => <CompositionCard />)
.add('Composition Shoes Card', () => <CompositionShoesCard />); | <mask> storiesOf('Box', module)
<mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
<mask> .add('Basic Box', () => <Basic />)
<mask> .add('Composition using Box', () => <Composite />)
<mask> .add('With Ref', () => <WithRef />);
</s> feat: added box composition example </s> remove import { Composite } from './composition';
</s> add import { Composition } from './composition';
import { CompositionCard } from './composition-card';
import { CompositionShoesCard } from './composition-shoes-card'; </s> remove import { Box, Heading, Divider, Flex } from 'native-base';
export const Composite = () => {
</s> add import { Box, Heading, Icon, AspectRatio, Image, Text } from 'native-base';
export const Composition = () => { </s> remove <Box width="100%" bg="blue.50" p={4} color="blue.700" shadow={7}>
<Heading size="xl">Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
<Flex direction="row">
<Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box width={72} bg="gray.50" p={2}>
<Box bg="white" shadow={1}>
<Box>
<AspectRatio ratio={16 / 9}>
<Image
source={{
uri:
'https://www.holidify.com/images/cmsuploads/compressed/Bangalore_citycover_20190613234056.jpg',
}}
alt="image"
/>
</AspectRatio>
<Box
bg="red.500"
_text={{ color: 'white', fontWeight: '700', fontSize: 'xs' }}
position="absolute"
bottom={0}
px={2}
py={1}
>
PHOTOS
</Box>
<Box
p={2}
rounded="full"
justifyContent="center"
alignItems="center"
bg="red.500"
boxSize={10}
position="absolute"
right={0}
m={2}
_text={{
color: 'white',
textAlign: 'center',
fontWeight: '700',
fontSize: '8',
}}
>
27 MAR
</Box> </s> remove </Flex>
</s> add </Box> </s> remove <Box width="50%" bg="blue.50" p={4} color="blue.700">
<Heading size="lg">Sub Title</Heading>
<Divider mb={4} borderColor="teal.400" />
This can be a paragraph of a Story about a wise fox.
</s> add <Box p={4}>
<Heading size="md">Life in the Garden City</Heading>
<Heading size="sm" mt={2} color="red.500" fontWeight="500">
The Silicon Valley of India.
</Heading>
<Text mt={4} lineHeight={6} fontWeight={400}>
Bengaluru (also called Bangalore) is the center of India's high-tech
industry. The city is also known for its parks and nightlife.
</Text>
<Box flexDirection="row" mt={4}>
<Box flexDirection="row" alignItems="center">
<Icon name="access-time" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
6 mins ago
</Text>
</Box>
<Box ml={4} flexDirection="row" alignItems="center">
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" />
<Text ml={1} color="gray.500" fontWeight="500">
39 comments
</Text>
</Box>
</Box> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/4122c906c66ed9c04f9eba98e7e21975867d927e | example/storybook/stories/components/primitives/Box/index.tsx |
const baseStyle = () => { | <mask> import { mode } from './../tools';
<mask>
<mask> const baseStyle = (props: Record<string, any>) => {
<mask> return {
<mask> borderLeftWidth: '0',
<mask> roundedRight: '4',
<mask> bg: mode('gray.50', 'gray.700')(props),
<mask> p: '2',
</s> fix: input right addon design fix </s> remove borderLeftWidth: '0',
roundedRight: '4',
bg: mode('gray.50', 'gray.700')(props),
</s> add // roundedRight: '4', </s> remove borderColor: mode('gray.300', 'gray.600')(props),
</s> add </s> remove color: mode('muted.400', 'muted.500')(props),
fontWeight: 600,
</s> add fontWeight: 400, | [
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/41bedda0f9453741f745c8cb160f8801475b2986 | src/theme/components/inputrightaddon.ts |
// roundedRight: '4', | <mask> import { mode } from './../tools';
<mask>
<mask> const baseStyle = (props: Record<string, any>) => {
<mask> return {
<mask> borderLeftWidth: '0',
<mask> roundedRight: '4',
<mask> bg: mode('gray.50', 'gray.700')(props),
<mask> p: '2',
<mask> borderColor: mode('gray.300', 'gray.600')(props),
<mask> borderWidth: '1',
<mask> _text: {
<mask> color: mode('muted.400', 'muted.500')(props),
</s> fix: input right addon design fix </s> remove import { mode } from './../tools';
const baseStyle = (props: Record<string, any>) => {
</s> add const baseStyle = () => { </s> remove borderColor: mode('gray.300', 'gray.600')(props),
</s> add </s> remove color: mode('muted.400', 'muted.500')(props),
fontWeight: 600,
</s> add fontWeight: 400, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/41bedda0f9453741f745c8cb160f8801475b2986 | src/theme/components/inputrightaddon.ts |
<mask> borderLeftWidth: '0',
<mask> roundedRight: '4',
<mask> bg: mode('gray.50', 'gray.700')(props),
<mask> p: '2',
<mask> borderColor: mode('gray.300', 'gray.600')(props),
<mask> borderWidth: '1',
<mask> _text: {
<mask> color: mode('muted.400', 'muted.500')(props),
<mask> fontWeight: 600,
<mask> },
</s> fix: input right addon design fix </s> remove color: mode('muted.400', 'muted.500')(props),
fontWeight: 600,
</s> add fontWeight: 400, </s> remove borderLeftWidth: '0',
roundedRight: '4',
bg: mode('gray.50', 'gray.700')(props),
</s> add // roundedRight: '4', </s> remove import { mode } from './../tools';
const baseStyle = (props: Record<string, any>) => {
</s> add const baseStyle = () => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/41bedda0f9453741f745c8cb160f8801475b2986 | src/theme/components/inputrightaddon.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.