docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
sequencelengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
function variantSolid({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> } <mask> <mask> function variantSolid({ colorScheme }: Dict) { <mask> return { <mask> _text: { <mask> color: 'text.50', <mask> }, <mask> _icon: { </s> feat: updated icon size tokens and iconButton theme </s> remove function variantSolid(props: Dict) { const { colorScheme } = props; </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove function variantSubtle({ colorScheme }: Dict) { </s> add function variantSubtle({ colorScheme }: Record<string, any>) { </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove function variantLink({ colorScheme }: Dict) { </s> add function variantLink({ colorScheme }: Record<string, any>) { </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
<mask> }, <mask> _spinner: { <mask> color: 'text.50', <mask> }, <mask> _disabled: { <mask> opacity: '40', <mask> }, <mask> _loading: { <mask> opacity: '40', <mask> }, <mask> _light: { <mask> bg: `${colorScheme}.600`, <mask> _hover: { <mask> bg: `${colorScheme}.700`, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove // _loading: { // opacity: '80', // }, // _disabled: { // opacity: '50', // }, </s> add _loading: { opacity: '40', }, _disabled: { opacity: '40', }, </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
function variantSubtle({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> } <mask> <mask> function variantSubtle({ colorScheme }: Dict) { <mask> return { <mask> _text: { <mask> color: `${colorScheme}.900`, <mask> }, <mask> _icon: { </s> feat: updated icon size tokens and iconButton theme </s> remove function variantSolid({ colorScheme }: Dict) { </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove function variantLink({ colorScheme }: Dict) { </s> add function variantLink({ colorScheme }: Record<string, any>) { </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
<mask> }, <mask> _spinner: { <mask> color: `${colorScheme}.900`, <mask> }, <mask> _disabled: { <mask> opacity: '40', <mask> }, <mask> _loading: { <mask> opacity: '40', <mask> }, <mask> _light: { <mask> bg: `${colorScheme}.100`, <mask> _hover: { <mask> bg: `${colorScheme}.200`, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, }, </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove // _loading: { // opacity: '80', // }, // _disabled: { // opacity: '50', // }, </s> add _loading: { opacity: '40', }, _disabled: { opacity: '40', },
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
function variantLink({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> } <mask> <mask> function variantLink({ colorScheme }: Dict) { <mask> return { <mask> _icon: { <mask> color: `${colorScheme}.600`, <mask> }, <mask> _spinner: { </s> feat: updated icon size tokens and iconButton theme </s> remove function variantUnstyled() { return {}; </s> add function variantLink({ colorScheme }: Record<string, any>) { return { _spinner: { color: `${colorScheme}.600`, }, _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { _icon: { color: `${colorScheme}.700`, }, }, _pressed: { _icon: { color: `${colorScheme}.800`, }, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { _icon: { color: `${colorScheme}.400`, }, }, _pressed: { _icon: { color: `${colorScheme}.300`, }, }, }, }; </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove function variantSolid({ colorScheme }: Dict) { </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove function variantSubtle({ colorScheme }: Dict) { </s> add function variantSubtle({ colorScheme }: Record<string, any>) { </s> remove function variantGhost({ colorScheme }: Dict) { </s> add function variantGhost({ colorScheme }: Record<string, any>) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
<mask> }, <mask> _spinner: { <mask> color: `${colorScheme}.600`, <mask> }, <mask> _disabled: { <mask> opacity: '40', <mask> }, <mask> _loading: { <mask> opacity: '40', <mask> }, <mask> _hover: { <mask> _text: { <mask> textDecorationLine: 'underline', <mask> }, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove // _loading: { // opacity: '80', // }, // _disabled: { // opacity: '50', // }, </s> add _loading: { opacity: '40', }, _disabled: { opacity: '40', }, </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
<mask> }, <mask> }; <mask> } <mask> <mask> function variantUnstyled() { <mask> return {}; <mask> } <mask> <mask> const variants = { <mask> ghost: variantGhost, <mask> outline: variantOutline, <mask> solid: variantSolid, <mask> subtle: variantSubtle, </s> feat: updated icon size tokens and iconButton theme </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove unstyled: variantUnstyled, </s> add unstyled: {}, </s> remove function variantUnstyled() { return {}; </s> add function variantLink({ colorScheme }: Record<string, any>) { return { _spinner: { color: `${colorScheme}.600`, }, _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { _icon: { color: `${colorScheme}.700`, }, }, _pressed: { _icon: { color: `${colorScheme}.800`, }, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { _icon: { color: `${colorScheme}.400`, }, }, _pressed: { _icon: { color: `${colorScheme}.300`, }, }, }, }; </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, }, </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
unstyled: {},
<mask> outline: variantOutline, <mask> solid: variantSolid, <mask> subtle: variantSubtle, <mask> link: variantLink, <mask> unstyled: variantUnstyled, <mask> }; <mask> <mask> const sizes = { <mask> lg: { <mask> px: '4', </s> feat: updated icon size tokens and iconButton theme </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove function variantUnstyled() { return {}; } </s> add </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', }, </s> remove function variantUnstyled() { return {}; </s> add function variantLink({ colorScheme }: Record<string, any>) { return { _spinner: { color: `${colorScheme}.600`, }, _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { _icon: { color: `${colorScheme}.700`, }, }, _pressed: { _icon: { color: `${colorScheme}.800`, }, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { _icon: { color: `${colorScheme}.400`, }, }, _pressed: { _icon: { color: `${colorScheme}.300`, }, }, }, }; </s> remove p: 2, </s> add p: '2.5', _icon: { size: 'md', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
size: 'md',
<mask> _text: { <mask> fontSize: 'md', <mask> }, <mask> _icon: { <mask> size: 'xs', <mask> }, <mask> }, <mask> md: { <mask> px: '3', <mask> py: '2', </s> feat: updated icon size tokens and iconButton theme </s> remove size: 'xxs', </s> add size: 'sm', </s> remove size: 'xs', </s> add size: 'sm', </s> remove size: 'xxs', </s> add size: 'xs', </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
size: 'sm',
<mask> _text: { <mask> fontSize: 'sm', <mask> }, <mask> _icon: { <mask> size: 'xs', <mask> }, <mask> }, <mask> sm: { <mask> px: '2', <mask> py: '2', </s> feat: updated icon size tokens and iconButton theme </s> remove size: 'xxs', </s> add size: 'sm', </s> remove size: 'xs', </s> add size: 'md', </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove size: 'xxs', </s> add size: 'xs', </s> remove p: 2, </s> add p: '2.5', _icon: { size: 'md', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
size: 'sm',
<mask> _text: { <mask> fontSize: 'xs', <mask> }, <mask> _icon: { <mask> size: 'xxs', <mask> }, <mask> }, <mask> xs: { <mask> px: '3', <mask> py: '2', </s> feat: updated icon size tokens and iconButton theme </s> remove size: 'xs', </s> add size: 'md', </s> remove size: 'xs', </s> add size: 'sm', </s> remove size: 'xxs', </s> add size: 'xs', </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
size: 'xs',
<mask> _text: { <mask> fontSize: '2xs', <mask> }, <mask> _icon: { <mask> size: 'xxs', <mask> }, <mask> }, <mask> }; <mask> <mask> const defaultProps = { </s> feat: updated icon size tokens and iconButton theme </s> remove size: 'xxs', </s> add size: 'sm', </s> remove size: 'xs', </s> add size: 'md', </s> remove size: 'xs', </s> add size: 'sm', </s> remove variant: 'link', </s> add variant: 'solid', </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
variant: 'solid',
<mask> }, <mask> }; <mask> <mask> const defaultProps = { <mask> variant: 'link', <mask> size: 'md', <mask> colorScheme: 'primary', <mask> }; <mask> <mask> export const ButtonGroup = { </s> feat: updated icon size tokens and iconButton theme </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove size: 'xxs', </s> add size: 'xs', </s> remove 'xxs': 2, 'xs': 4, 'sm': 6, 'md': 8, 'lg': 10, 'xl': 12, '2xl': 16, '3xl': 20, '4xl': 24, '5xl': 32, '6xl': 64, </s> add '2xs': 2, 'xs': 3, 'sm': 4, 'md': 5, 'lg': 6, 'xl': 7, '2xl': 8, '3xl': 9, '4xl': 10, '5xl': 12, '6xl': 16, </s> remove p: 2, </s> add p: '2.5', _icon: { size: 'md', },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/button.ts
import { mode } from './../tools';
<mask> import { Dict, mode, transparentize } from './../tools'; <mask> import { Platform } from 'react-native'; <mask> <mask> const baseStyle = (props: any) => { <mask> const { primary } = props.theme.colors; <mask> const focusRing = <mask> Platform.OS === 'web' </s> feat: updated icon size tokens and iconButton theme </s> remove import { Dict, mode } from './../tools'; </s> add import { mode } from './../tools'; </s> remove const focusRing = Platform.OS === 'web' ? { boxShadow: `${primary[400]} 0px 0px 0px 3px` } : {}; </s> add const focusRing = mode( { boxShadow: `${primary[400]} 0px 0px 0px 2px`, }, { boxShadow: `${primary[500]} 0px 0px 0px 2px`, } )(props); </s> remove import { IconButton, Box, Center, VStack } from 'native-base'; </s> add import { IconButton, Center, VStack } from 'native-base'; </s> remove {['sm', 'md', 'lg'].map((size: any) => ( <Box> <IconButton size={size} variant="solid" _icon={{ as: MaterialIcons, name: 'menu', }} /> </Box> </s> add {['xs', 'sm', 'md', 'lg'].map((size: any) => ( <IconButton size={size} _icon={{ as: MaterialIcons, name: 'menu', }} /> </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50',
[ "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
const focusRing = mode( { boxShadow: `${primary[400]} 0px 0px 0px 2px`, }, { boxShadow: `${primary[500]} 0px 0px 0px 2px`, } )(props);
<mask> import { Platform } from 'react-native'; <mask> <mask> const baseStyle = (props: any) => { <mask> const { primary } = props.theme.colors; <mask> const focusRing = <mask> Platform.OS === 'web' <mask> ? { boxShadow: `${primary[400]} 0px 0px 0px 3px` } <mask> : {}; <mask> <mask> return { <mask> borderRadius: 'sm', <mask> _web: { <mask> cursor: props.isDisabled </s> feat: updated icon size tokens and iconButton theme </s> remove borderRadius: 'sm', </s> add borderRadius: 'sm', // '4px' flexDirection: 'row', justifyContent: 'center', alignItems: 'center', </s> remove import { Dict, mode, transparentize } from './../tools'; import { Platform } from 'react-native'; </s> add import { mode } from './../tools'; </s> remove import { Dict, mode } from './../tools'; </s> add import { mode } from './../tools'; </s> remove import { IconButton, Box, Center, VStack } from 'native-base'; </s> add import { IconButton, Center, VStack } from 'native-base'; </s> remove style: props.variant !== 'unstyled' ? { ...focusRing } : {}, </s> add _web: { outlineWidth: '0', style: { ...focusRing }, }, }, _loading: { opacity: '40',
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
borderRadius: 'sm', // '4px' flexDirection: 'row', justifyContent: 'center', alignItems: 'center',
<mask> ? { boxShadow: `${primary[400]} 0px 0px 0px 3px` } <mask> : {}; <mask> <mask> return { <mask> borderRadius: 'sm', <mask> _web: { <mask> cursor: props.isDisabled <mask> ? 'not-allowed' <mask> : props.isLoading <mask> ? 'default' </s> feat: updated icon size tokens and iconButton theme </s> remove const focusRing = Platform.OS === 'web' ? { boxShadow: `${primary[400]} 0px 0px 0px 3px` } : {}; </s> add const focusRing = mode( { boxShadow: `${primary[400]} 0px 0px 0px 2px`, }, { boxShadow: `${primary[500]} 0px 0px 0px 2px`, } )(props); </s> remove style: props.variant !== 'unstyled' ? { ...focusRing } : {}, </s> add _web: { outlineWidth: '0', style: { ...focusRing }, }, }, _loading: { opacity: '40', </s> remove opacity: 0.5, </s> add opacity: '40', </s> remove size: 'xs', </s> add size: 'sm', </s> remove function variantUnstyled() { return {}; } </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_web: { outlineWidth: '0', style: { ...focusRing }, }, }, _loading: { opacity: '40',
<mask> ? 'default' <mask> : 'pointer', <mask> }, <mask> _focusVisible: { <mask> style: props.variant !== 'unstyled' ? { ...focusRing } : {}, <mask> }, <mask> _disabled: { <mask> opacity: 0.5, <mask> }, <mask> }; </s> feat: updated icon size tokens and iconButton theme </s> remove opacity: 0.5, </s> add opacity: '40', </s> remove borderRadius: 'sm', </s> add borderRadius: 'sm', // '4px' flexDirection: 'row', justifyContent: 'center', alignItems: 'center', </s> remove // _loading: { // opacity: '80', // }, // _disabled: { // opacity: '50', // }, </s> add _loading: { opacity: '40', }, _disabled: { opacity: '40', }, </s> remove const focusRing = Platform.OS === 'web' ? { boxShadow: `${primary[400]} 0px 0px 0px 3px` } : {}; </s> add const focusRing = mode( { boxShadow: `${primary[400]} 0px 0px 0px 2px`, }, { boxShadow: `${primary[500]} 0px 0px 0px 2px`, } )(props); </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
opacity: '40',
<mask> _focusVisible: { <mask> style: props.variant !== 'unstyled' ? { ...focusRing } : {}, <mask> }, <mask> _disabled: { <mask> opacity: 0.5, <mask> }, <mask> }; <mask> }; <mask> <mask> function variantGhost(props: Dict) { </s> feat: updated icon size tokens and iconButton theme </s> remove style: props.variant !== 'unstyled' ? { ...focusRing } : {}, </s> add _web: { outlineWidth: '0', style: { ...focusRing }, }, }, _loading: { opacity: '40', </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove function variantGhost({ colorScheme }: Dict) { </s> add function variantGhost({ colorScheme }: Record<string, any>) { </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) { </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
function variantGhost({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> }; <mask> <mask> function variantGhost(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> bg: 'transparent', <mask> _web: { <mask> outlineWidth: 0, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove function variantSolid(props: Dict) { const { colorScheme } = props; </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove opacity: 0.5, </s> add opacity: '40',
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, },
<mask> <mask> function variantGhost(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> bg: 'transparent', <mask> _web: { <mask> outlineWidth: 0, <mask> }, <mask> _hover: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), <mask> 0.5 <mask> )(props.theme), <mask> }, <mask> _focusVisible: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), <mask> 0.5 <mask> )(props.theme), <mask> }, <mask> _pressed: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), <mask> 0.6 <mask> )(props.theme), <mask> }, <mask> }; <mask> } <mask> <mask> function variantOutline(props: Dict) { </s> feat: updated icon size tokens and iconButton theme </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) { </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove function variantSolid(props: Dict) { const { colorScheme } = props; </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, },
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
function variantOutline({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> } <mask> <mask> function variantOutline(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> borderWidth: '1', <mask> borderColor: `${colorScheme}.300`, <mask> _icon: { <mask> color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), </s> feat: updated icon size tokens and iconButton theme </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove function variantOutline({ colorScheme }: Dict) { </s> add function variantOutline({ colorScheme }: Record<string, any>) { </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, },
<mask> <mask> function variantOutline(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> borderWidth: '1', <mask> borderColor: `${colorScheme}.300`, <mask> _icon: { <mask> color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), <mask> }, <mask> _web: { <mask> outlineWidth: 0, <mask> }, <mask> _hover: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), <mask> 0.5 <mask> )(props.theme), <mask> }, <mask> _focusVisible: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), <mask> 0.5 <mask> )(props.theme), <mask> }, <mask> _pressed: { <mask> bg: transparentize( <mask> mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), <mask> 0.6 <mask> )(props.theme), <mask> }, <mask> }; <mask> } <mask> <mask> function variantSolid(props: Dict) { </s> feat: updated icon size tokens and iconButton theme </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove function variantOutline(props: Dict) { const { colorScheme } = props; </s> add function variantOutline({ colorScheme }: Record<string, any>) { </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove function variantSolid(props: Dict) { const { colorScheme } = props; </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, },
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
function variantSolid({ colorScheme }: Record<string, any>) {
<mask> }, <mask> }; <mask> } <mask> <mask> function variantSolid(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> bg: `${colorScheme}.500`, <mask> _web: { <mask> outlineWidth: 0, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) { </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove function variantOutline(props: Dict) { const { colorScheme } = props; </s> add function variantOutline({ colorScheme }: Record<string, any>) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_icon: { color: 'text.50',
<mask> <mask> function variantSolid(props: Dict) { <mask> const { colorScheme } = props; <mask> return { <mask> bg: `${colorScheme}.500`, <mask> _web: { <mask> outlineWidth: 0, <mask> }, <mask> _disabled: { <mask> bg: mode(`trueGray.300`, `trueGray.600`)(props), <mask> }, <mask> _hover: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _pressed: { </s> feat: updated icon size tokens and iconButton theme </s> remove _hover: { </s> add _light: { </s> remove function variantSolid(props: Dict) { const { colorScheme } = props; </s> add function variantSolid({ colorScheme }: Record<string, any>) { </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove }, _pressed: { bg: `${colorScheme}.700`, }, _focus: { </s> add _hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, _dark: {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_light: {
<mask> }, <mask> _disabled: { <mask> bg: mode(`trueGray.300`, `trueGray.600`)(props), <mask> }, <mask> _hover: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _pressed: { <mask> bg: `${colorScheme}.700`, <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove }, _pressed: { bg: `${colorScheme}.700`, }, _focus: { </s> add _hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, _dark: { </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, _dark: {
<mask> bg: mode(`trueGray.300`, `trueGray.600`)(props), <mask> }, <mask> _hover: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _pressed: { <mask> bg: `${colorScheme}.700`, <mask> }, <mask> _focus: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _icon: { <mask> color: mode('gray.50', 'gray.800')(props), <mask> }, </s> feat: updated icon size tokens and iconButton theme </s> remove _hover: { </s> add _light: { </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, }, </s> remove bg: `${colorScheme}.500`, _web: { outlineWidth: 0, }, _disabled: { bg: mode(`trueGray.300`, `trueGray.600`)(props), </s> add _icon: { color: 'text.50', </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
_hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, }; } function variantSubtle({ colorScheme }: Record<string, any>) { return { _text: { color: `${colorScheme}.900`,
<mask> }, <mask> }, <mask> _dark: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _icon: { <mask> color: `${colorScheme}.900`, <mask> }, <mask> _light: { <mask> bg: `${colorScheme}.100`, </s> feat: updated icon size tokens and iconButton theme </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, }, </s> remove _disabled: { opacity: '40', }, _loading: { opacity: '40', }, </s> add </s> remove }, _pressed: { bg: `${colorScheme}.700`, }, _focus: { </s> add _hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, _dark: { </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove _hover: { </s> add _light: {
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, },
<mask> _focus: { <mask> bg: `${colorScheme}.600`, <mask> }, <mask> _icon: { <mask> color: mode('gray.50', 'gray.800')(props), <mask> }, <mask> }; <mask> } <mask> <mask> function variantUnstyled() { </s> feat: updated icon size tokens and iconButton theme </s> remove }, _pressed: { bg: `${colorScheme}.700`, }, _focus: { </s> add _hover: { bg: `${colorScheme}.700`, }, _pressed: { bg: `${colorScheme}.800`, }, }, _dark: { </s> remove function variantUnstyled() { return {}; </s> add function variantLink({ colorScheme }: Record<string, any>) { return { _spinner: { color: `${colorScheme}.600`, }, _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { _icon: { color: `${colorScheme}.700`, }, }, _pressed: { _icon: { color: `${colorScheme}.800`, }, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { _icon: { color: `${colorScheme}.400`, }, }, _pressed: { _icon: { color: `${colorScheme}.300`, }, }, }, }; </s> remove bg: 'transparent', _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, }, </s> remove borderWidth: '1', borderColor: `${colorScheme}.300`, _icon: { color: mode(`${colorScheme}.500`, `${colorScheme}.300`)(props), }, _web: { outlineWidth: 0, }, _hover: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _focusVisible: { bg: transparentize( mode(`${colorScheme}.200`, `${colorScheme}.400`)(props), 0.5 )(props.theme), }, _pressed: { bg: transparentize( mode(`${colorScheme}.300`, `${colorScheme}.500`)(props), 0.6 )(props.theme), </s> add borderWidth: '1px', _light: { borderColor: 'muted.300', _icon: { color: `${colorScheme}.600`, }, _hover: { bg: `${colorScheme}.600:alpha.10`, }, _pressed: { bg: `${colorScheme}.600:alpha.20`, }, }, _dark: { borderColor: 'muted.700', _icon: { color: `${colorScheme}.500`, }, _hover: { bg: `${colorScheme}.500:alpha.10`, }, _pressed: { bg: `${colorScheme}.500:alpha.20`, },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
function variantLink({ colorScheme }: Record<string, any>) { return { _spinner: { color: `${colorScheme}.600`, }, _light: { _icon: { color: `${colorScheme}.600`, }, _hover: { _icon: { color: `${colorScheme}.700`, }, }, _pressed: { _icon: { color: `${colorScheme}.800`, }, }, }, _dark: { _icon: { color: `${colorScheme}.500`, }, _hover: { _icon: { color: `${colorScheme}.400`, }, }, _pressed: { _icon: { color: `${colorScheme}.300`, }, }, }, };
<mask> }, <mask> }; <mask> } <mask> <mask> function variantUnstyled() { <mask> return {}; <mask> } <mask> <mask> const variants = { <mask> ghost: variantGhost, <mask> outline: variantOutline, </s> feat: updated icon size tokens and iconButton theme </s> remove function variantUnstyled() { return {}; } </s> add </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove unstyled: variantUnstyled, </s> add unstyled: {}, </s> remove color: mode('gray.50', 'gray.800')(props), </s> add color: `${colorScheme}.900`, }, _light: { bg: `${colorScheme}.100`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.300`, }, }, _dark: { bg: `${colorScheme}.300`, _hover: { bg: `${colorScheme}.200`, }, _pressed: { bg: `${colorScheme}.100`, }, </s> remove function variantGhost(props: Dict) { const { colorScheme } = props; </s> add function variantGhost({ colorScheme }: Record<string, any>) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
subtle: variantSubtle, link: variantLink, unstyled: {},
<mask> const variants = { <mask> ghost: variantGhost, <mask> outline: variantOutline, <mask> solid: variantSolid, <mask> unstyled: variantUnstyled, <mask> }; <mask> <mask> const defaultProps = { <mask> variant: 'ghost', <mask> size: 'md', <mask> colorScheme: 'primary', <mask> }; <mask> <mask> const sizes = { <mask> lg: { <mask> p: 3, </s> feat: updated icon size tokens and iconButton theme </s> remove unstyled: variantUnstyled, </s> add unstyled: {}, </s> remove function variantUnstyled() { return {}; } </s> add </s> remove variant: 'link', </s> add variant: 'solid', </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', },
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
p: '3', _icon: { size: 'lg', },
<mask> }; <mask> <mask> const sizes = { <mask> lg: { <mask> p: 3, <mask> }, <mask> md: { <mask> p: 2, <mask> }, <mask> sm: { </s> feat: updated icon size tokens and iconButton theme </s> remove p: 2, </s> add p: '2.5', _icon: { size: 'md', }, </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove unstyled: variantUnstyled, </s> add unstyled: {}, </s> remove 'xxs': 2, 'xs': 4, 'sm': 6, 'md': 8, 'lg': 10, 'xl': 12, '2xl': 16, '3xl': 20, '4xl': 24, '5xl': 32, '6xl': 64, </s> add '2xs': 2, 'xs': 3, 'sm': 4, 'md': 5, 'lg': 6, 'xl': 7, '2xl': 8, '3xl': 9, '4xl': 10, '5xl': 12, '6xl': 16,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
p: '2.5', _icon: { size: 'md', },
<mask> lg: { <mask> p: 3, <mask> }, <mask> md: { <mask> p: 2, <mask> }, <mask> sm: { <mask> p: 1, <mask> }, <mask> }; </s> feat: updated icon size tokens and iconButton theme </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', }, </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove size: 'xs', </s> add size: 'sm', </s> remove size: 'xs', </s> add size: 'md',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', },
<mask> md: { <mask> p: 2, <mask> }, <mask> sm: { <mask> p: 1, <mask> }, <mask> }; <mask> <mask> export default { <mask> baseStyle, </s> feat: updated icon size tokens and iconButton theme </s> remove p: 2, </s> add p: '2.5', _icon: { size: 'md', }, </s> remove p: 3, </s> add p: '3', _icon: { size: 'lg', }, </s> remove 'xxs': 2, 'xs': 4, 'sm': 6, 'md': 8, 'lg': 10, 'xl': 12, '2xl': 16, '3xl': 20, '4xl': 24, '5xl': 32, '6xl': 64, </s> add '2xs': 2, 'xs': 3, 'sm': 4, 'md': 5, 'lg': 6, 'xl': 7, '2xl': 8, '3xl': 9, '4xl': 10, '5xl': 12, '6xl': 16, </s> remove size: 'xs', </s> add size: 'md',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', };
<mask> }; <mask> <mask> export default { <mask> baseStyle, <mask> variants, <mask> sizes, <mask> defaultProps, <mask> }; </s> feat: updated icon size tokens and iconButton theme </s> remove 'xxs': 2, 'xs': 4, 'sm': 6, 'md': 8, 'lg': 10, 'xl': 12, '2xl': 16, '3xl': 20, '4xl': 24, '5xl': 32, '6xl': 64, </s> add '2xs': 2, 'xs': 3, 'sm': 4, 'md': 5, 'lg': 6, 'xl': 7, '2xl': 8, '3xl': 9, '4xl': 10, '5xl': 12, '6xl': 16, </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove variant: 'link', </s> add variant: 'solid', </s> remove function variantGhost({ colorScheme }: Dict) { </s> add function variantGhost({ colorScheme }: Record<string, any>) { </s> remove opacity: 0.5, </s> add opacity: '40',
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon-button.ts
'2xs': 2, 'xs': 3, 'sm': 4, 'md': 5, 'lg': 6, 'xl': 7, '2xl': 8, '3xl': 9, '4xl': 10, '5xl': 12, '6xl': 16,
<mask> }; <mask> }; <mask> <mask> const sizes = { <mask> 'xxs': 2, <mask> 'xs': 4, <mask> 'sm': 6, <mask> 'md': 8, <mask> 'lg': 10, <mask> 'xl': 12, <mask> '2xl': 16, <mask> '3xl': 20, <mask> '4xl': 24, <mask> '5xl': 32, <mask> '6xl': 64, <mask> }; <mask> <mask> const defaultProps = { size: 'md' }; <mask> export default { baseStyle, sizes, defaultProps }; </s> feat: updated icon size tokens and iconButton theme </s> remove p: 1, </s> add p: '2', _icon: { size: 'sm', }, }, xs: { p: '1.5', _icon: { size: 'xs', }, </s> remove variant: 'link', </s> add variant: 'solid', </s> remove unstyled: variantUnstyled, }; const defaultProps = { variant: 'ghost', size: 'md', colorScheme: 'primary', </s> add subtle: variantSubtle, link: variantLink, unstyled: {}, </s> remove size: 'xxs', </s> add size: 'xs',
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b3f2e442117bda6a442a50706792b7927d1547cc
src/theme/components/icon.ts
if(child && child.type == Thumbnail)
<mask> <mask> thumbnailPresent() { <mask> var thumbnailComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Thumbnail) <mask> thumbnailComponentPresent = true; <mask> }) <mask> <mask> return thumbnailComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == InputGroup) </s> add if(child && child.type == InputGroup) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == CheckBox)
<mask> <mask> checkBoxPresent() { <mask> var checkBoxComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == CheckBox) <mask> checkBoxComponentPresent = true; <mask> }) <mask> <mask> return checkBoxComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Radio)
<mask> <mask> radioPresent() { <mask> var radioComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Radio) <mask> radioComponentPresent = true; <mask> }) <mask> <mask> return radioComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Icon)
<mask> <mask> iconPresent() { <mask> var iconComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Icon) <mask> iconComponentPresent = true; <mask> }) <mask> return iconComponentPresent; <mask> } <mask> </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == InputGroup) </s> add if(child && child.type == InputGroup) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Picker)
<mask> <mask> pickerPresent() { <mask> var pickerComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Picker) <mask> pickerComponentPresent = true; <mask> }) <mask> <mask> return pickerComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Badge)
<mask> <mask> badgePresent() { <mask> var badgeComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Badge) <mask> badgeComponentPresent = true; <mask> }) <mask> <mask> return badgeComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == InputGroup)
<mask> <mask> inputPresent() { <mask> var inputComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == InputGroup) <mask> inputComponentPresent = true; <mask> }) <mask> return inputComponentPresent; <mask> } <mask> </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Button)
<mask> <mask> buttonPresent() { <mask> var buttonComponentPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Button) <mask> buttonComponentPresent = true; <mask> }) <mask> <mask> return buttonComponentPresent; <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == InputGroup) </s> add if(child && child.type == InputGroup) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Image && !Array.isArray(this.props.children)) {
<mask> <mask> getChildProps(child) { <mask> var defaultProps = {}; <mask> <mask> if(child.type == Image && !Array.isArray(this.props.children)) { <mask> defaultProps = { <mask> resizeMode: 'stretch', <mask> style: this.getInitialStyle().fullImage <mask> } <mask> } </s> fix null child bug in listItem </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == Picker) { </s> add else if(child && child.type == Picker) { </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == Button) {
<mask> resizeMode: 'stretch', <mask> style: this.getInitialStyle().fullImage <mask> } <mask> } <mask> else if(child.type == Button) { <mask> defaultProps = { <mask> small: true, <mask> style: this.getInitialStyle().itemButton <mask> } <mask> } </s> fix null child bug in listItem </s> remove else if(child.type == InputGroup) { </s> add else if(child && child.type == InputGroup) { </s> remove if(child.type == Image && !Array.isArray(this.props.children)) { </s> add if(child && child.type == Image && !Array.isArray(this.props.children)) { </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == InputGroup) {
<mask> small: true, <mask> style: this.getInitialStyle().itemButton <mask> } <mask> } <mask> else if(child.type == InputGroup) { <mask> <mask> defaultProps = { <mask> style: { <mask> borderColor:(this.props.children.props.success) ? <mask> this.getTheme().inputSuccessBorderColor : </s> fix null child bug in listItem </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Picker) { </s> add else if(child && child.type == Picker) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == Text) {
<mask> }, <mask> foregroundColor: this.getContextForegroundColor() <mask> } <mask> } <mask> else if(child.type == Text) { <mask> if (this.props.itemDivider) { <mask> defaultProps = { <mask> style: this.getInitialStyle().dividerItemText <mask> } <mask> } else { </s> fix null child bug in listItem </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == Picker) { </s> add else if(child && child.type == Picker) { </s> remove else if(child.type == InputGroup) { </s> add else if(child && child.type == InputGroup) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == Icon) {
<mask> } <mask> <mask> } <mask> } <mask> else if(child.type == Icon) { <mask> defaultProps = { <mask> style: this.getInitialStyle().itemIcon <mask> } <mask> } <mask> else if(child.type == Picker) { </s> fix null child bug in listItem </s> remove else if(child.type == Picker) { </s> add else if(child && child.type == Picker) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) { </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == InputGroup) { </s> add else if(child && child.type == InputGroup) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == Picker) {
<mask> defaultProps = { <mask> style: this.getInitialStyle().itemIcon <mask> } <mask> } <mask> else if(child.type == Picker) { <mask> defaultProps = { <mask> style: { <mask> flex: .45, <mask> alignSelf: 'flex-end', <mask> paddingVertical: 5, </s> fix null child bug in listItem </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Thumbnail) { </s> add else if(child && child.type == Thumbnail) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) { </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == InputGroup) { </s> add else if(child && child.type == InputGroup) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
else if(child && child.type == Thumbnail) {
<mask> color: '#7a7a7a' <mask> } <mask> } <mask> } <mask> else if(child.type == Thumbnail) { <mask> defaultProps = { <mask> style: this.getInitialStyle().thumbnail <mask> } <mask> } <mask> else { </s> fix null child bug in listItem </s> remove else if(child.type == Icon) { </s> add else if(child && child.type == Icon) { </s> remove else if(child.type == Text) { </s> add else if(child && child.type == Text) { </s> remove else if(child.type == Button) { </s> add else if(child && child.type == Button) { </s> remove else if(child.type == Picker) { </s> add else if(child && child.type == Picker) { </s> remove else if(child.type == InputGroup) { </s> add else if(child && child.type == InputGroup) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == Text && child.props.note)
<mask> notePresent() { <mask> <mask> var notePresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == Text && child.props.note) <mask> notePresent = true; <mask> }) <mask> return notePresent; <mask> <mask> } </s> fix null child bug in listItem </s> remove if(child.type == Thumbnail) </s> add if(child && child.type == Thumbnail) </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
if(child && child.type == InputGroup && child.props.inset)
<mask> insetPresent() { <mask> <mask> var insetPresent = false; <mask> React.Children.forEach(this.props.children, function (child) { <mask> if(child.type == InputGroup && child.props.inset) <mask> insetPresent = true; <mask> }) <mask> <mask> return insetPresent; <mask> </s> fix null child bug in listItem </s> remove if(child.type == Button) </s> add if(child && child.type == Button) </s> remove if(child.type == CheckBox) </s> add if(child && child.type == CheckBox) </s> remove if(child.type == Radio) </s> add if(child && child.type == Radio) </s> remove if(child.type == Icon) </s> add if(child && child.type == Icon) </s> remove if(child.type == Picker) </s> add if(child && child.type == Picker)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b42cc4cdeee7b4dc94281a7e6cc17a607df58b32
Components/Widgets/ListItem.js
<HStack mx={{ base: 'auto', md: '0' }} space={2}>
<mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <HStack mx={{ base: 'auto', md: 0 }} space={2}> <mask> <Avatar <mask> bg="teal.600" <mask> source={{ <mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
bg="lightBlue.400"
<mask> export const Example = () => { <mask> return ( <mask> <HStack mx={{ base: 'auto', md: 0 }} space={2}> <mask> <Avatar <mask> bg="teal.600" <mask> source={{ <mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', <mask> }} <mask> > <mask> NB </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
<Avatar.Badge bg="green.500" />
<mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', <mask> }} <mask> > <mask> NB <mask> <Avatar.Badge bg={'red.200'} /> <mask> </Avatar> <mask> <Avatar <mask> bg="red.600" <mask> source={{ <mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="red.600" </s> add bg="amber.500" </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
bg="amber.500"
<mask> NB <mask> <Avatar.Badge bg={'red.200'} /> <mask> </Avatar> <mask> <Avatar <mask> bg="red.600" <mask> source={{ <mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', <mask> }} <mask> > <mask> NB </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <Avatar.Badge bg={'red.200'} /> </s> add <Avatar.Badge bg="green.500" /> </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
<Avatar.Badge bg="green.500" />
<mask> uri: 'https://alpha.nativebase.io/img/native-base-icon.png', <mask> }} <mask> > <mask> NB <mask> <Avatar.Badge borderColor="papayawhip" bg="tomato" /> <mask> </Avatar> <mask> </HStack> <mask> ); <mask> }; </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <Avatar.Badge bg={'red.200'} /> </s> add <Avatar.Badge bg="green.500" /> </s> remove bg="red.600" </s> add bg="amber.500" </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar> </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="teal.600" </s> add bg="lightBlue.400"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarBadge.tsx
bg="green.500"
<mask> export const Example = () => { <mask> return ( <mask> <Avatar.Group size="lg" max={3}> <mask> <Avatar <mask> bg="teal.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1369921787568422915/hoyvrUpc_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
bg="lightBlue.500"
<mask> > <mask> SS <mask> </Avatar> <mask> <Avatar <mask> bg="red.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1309797238651060226/18cm6VhQ_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="red.600" </s> add bg="cyan.500" </s> remove bg="blue.600" </s> add bg="cyan.500" </s> remove bg="amber.600" </s> add bg="amber.500" </s> remove bg="green.600" </s> add bg="amber.500" </s> remove bg="red.600" </s> add bg="indigo.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
bg="indigo.500"
<mask> > <mask> AK <mask> </Avatar> <mask> <Avatar <mask> bg="cyan.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1352844693151731713/HKO7cnlW_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="cyan.600" </s> add bg="purple.600" </s> remove bg="yellow.600" </s> add bg="pink.600" </s> remove bg="red.600" </s> add bg="indigo.500" </s> remove bg="blue.600" </s> add bg="indigo.500" </s> remove bg="red.600" </s> add bg="lightBlue.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
<HStack mx={{ base: 'auto', md: '0' }} space={2}>
<mask> import { Avatar, HStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <HStack mx={{ base: 'auto', md: 0 }} space={2}> <mask> <Avatar <mask> bg="teal.600" <mask> mr={1} <mask> source={{ uri: 'https://bit.ly/broken-link' }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/Fallback.tsx
bg="green.500" mr='1'
<mask> export const Example = () => { <mask> return ( <mask> <HStack mx={{ base: 'auto', md: 0 }} space={2}> <mask> <Avatar <mask> bg="teal.600" <mask> mr={1} <mask> source={{ uri: 'https://bit.ly/broken-link' }} <mask> > <mask> RS <mask> </Avatar> <mask> <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" </s> add bg="green.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/Fallback.tsx
<Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}>
<mask> source={{ uri: 'https://bit.ly/broken-link' }} <mask> > <mask> RS <mask> </Avatar> <mask> <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> <mask> MR <mask> </Avatar> <mask> <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> <mask> </HStack> <mask> ); </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar> </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove bg="green.600" </s> add bg="amber.500" </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove <Avatar.Badge bg={'red.200'} /> </s> add <Avatar.Badge bg="green.500" />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/Fallback.tsx
<Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar>
<mask> </Avatar> <mask> <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> <mask> MR <mask> </Avatar> <mask> <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> <mask> </HStack> <mask> ); <mask> }; </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove <Avatar.Badge bg={'red.200'} /> </s> add <Avatar.Badge bg="green.500" /> </s> remove bg="green.600" </s> add bg="amber.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/Fallback.tsx
bg="green.500"
<mask> space={1} <mask> alignItems={{ base: 'center', md: 'flex-start' }} <mask> > <mask> <Avatar <mask> bg="teal.600" <mask> size="xs" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="teal.600" </s> add bg="green.500" </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1'
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="cyan.500"
<mask> > <mask> SS <mask> </Avatar> <mask> <Avatar <mask> bg="red.600" <mask> size="sm" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/929409889788510208/gRr2f7rZ_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove bg="blue.600" </s> add bg="cyan.500" </s> remove bg="red.600" </s> add bg="indigo.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="amber.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="indigo.500"
<mask> > <mask> HS <mask> </Avatar> <mask> <Avatar <mask> bg="blue.600" <mask> size="md" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1352844693151731713/HKO7cnlW_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="blue.600" </s> add bg="cyan.500" </s> remove bg="red.600" </s> add bg="indigo.500" </s> remove bg="cyan.600" </s> add bg="indigo.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="lightBlue.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="amber.500"
<mask> > <mask> RS <mask> </Avatar> <mask> <Avatar <mask> bg="green.600" <mask> size="lg" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1309797238651060226/18cm6VhQ_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="amber.600" </s> add bg="amber.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar> </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="pink.600"
<mask> > <mask> AK <mask> </Avatar> <mask> <Avatar <mask> bg="yellow.600" <mask> size="xl" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1177303899243343872/B0sUJIH0_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="cyan.600" </s> add bg="indigo.500" </s> remove bg="blue.600" </s> add bg="cyan.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove bg="amber.600" </s> add bg="amber.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="purple.600"
<mask> > <mask> GG <mask> </Avatar> <mask> <Avatar <mask> bg="cyan.600" <mask> size="2xl" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1320985200663293952/lE_Kg6vr_400x400.jpg', <mask> }} </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="red.600" </s> add bg="indigo.500" </s> remove bg="cyan.600" </s> add bg="indigo.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove bg="amber.600" </s> add bg="amber.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/size.tsx
bg="green.500"
<mask> export const Example = () => { <mask> return ( <mask> <HStack space={2}> <mask> <Avatar <mask> bg="teal.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1188747996843761665/8CiUdKZW_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="teal.600" </s> add bg="lightBlue.400" </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" mr={1} </s> add bg="green.500" mr='1' </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/usage.tsx
bg="cyan.500"
<mask> > <mask> SS <mask> </Avatar> <mask> <Avatar <mask> bg="blue.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1177303899243343872/B0sUJIH0_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="blue.600" </s> add bg="indigo.500" </s> remove bg="yellow.600" </s> add bg="pink.600" </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove bg="red.600" </s> add bg="cyan.500" </s> remove bg="amber.600" </s> add bg="amber.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/usage.tsx
bg="indigo.500"
<mask> > <mask> GG <mask> </Avatar> <mask> <Avatar <mask> bg="red.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1352844693151731713/HKO7cnlW_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="cyan.600" </s> add bg="purple.600" </s> remove bg="cyan.600" </s> add bg="indigo.500" </s> remove bg="blue.600" </s> add bg="indigo.500" </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove bg="red.600" </s> add bg="cyan.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/usage.tsx
bg="amber.500"
<mask> > <mask> RS <mask> </Avatar> <mask> <Avatar <mask> bg="amber.600" <mask> source={{ <mask> uri: <mask> 'https://pbs.twimg.com/profile_images/1309797238651060226/18cm6VhQ_400x400.jpg', <mask> }} <mask> > </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove bg="green.600" </s> add bg="amber.500" </s> remove bg="red.600" </s> add bg="lightBlue.500" </s> remove <Avatar bg="red.600" source={{ uri: 'https://bit.ly/broken-link' }}> </s> add <Avatar bg="amber.500" source={{ uri: 'https://bit.ly/broken-link' }}> </s> remove bg="red.600" </s> add bg="indigo.500" </s> remove bg="blue.600" </s> add bg="cyan.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
example/storybook/stories/components/composites/Avatar/usage.tsx
_text: { fontSize: fontSize, },
<mask> function getSize(size: any, fontSize: string) { <mask> return { <mask> width: size, <mask> height: size, <mask> fontSize: fontSize, <mask> }; <mask> } <mask> <mask> const sizes = { <mask> '2xs': getSize('4', 'xs'), </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove '2xs': getSize('4', 'xs'), 'xs': getSize('6', 'sm'), 'sm': getSize('8', 'md'), 'md': getSize('12', 'lg'), </s> add 'xs': getSize('6', '2xs'), 'sm': getSize('8', 'xs'), 'md': getSize('12', 'md'), </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove bg="teal.600" </s> add bg="green.500" </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
src/theme/components/avatar.ts
'xs': getSize('6', '2xs'), 'sm': getSize('8', 'xs'), 'md': getSize('12', 'md'),
<mask> }; <mask> } <mask> <mask> const sizes = { <mask> '2xs': getSize('4', 'xs'), <mask> 'xs': getSize('6', 'sm'), <mask> 'sm': getSize('8', 'md'), <mask> 'md': getSize('12', 'lg'), <mask> 'lg': getSize('16', 'xl'), <mask> 'xl': getSize('24', '2xl'), <mask> '2xl': getSize('32', '3xl'), <mask> 'full': getSize('100%', '4xl'), <mask> }; </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove 'xl': getSize('24', '2xl'), '2xl': getSize('32', '3xl'), 'full': getSize('100%', '4xl'), </s> add 'xl': getSize('24', '3xl'), '2xl': getSize('32', '5xl'), </s> remove fontSize: fontSize, </s> add _text: { fontSize: fontSize, }, </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}> </s> remove <HStack mx={{ base: 'auto', md: 0 }} space={2}> </s> add <HStack mx={{ base: 'auto', md: '0' }} space={2}>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
src/theme/components/avatar.ts
'xl': getSize('24', '3xl'), '2xl': getSize('32', '5xl'),
<mask> 'xs': getSize('6', 'sm'), <mask> 'sm': getSize('8', 'md'), <mask> 'md': getSize('12', 'lg'), <mask> 'lg': getSize('16', 'xl'), <mask> 'xl': getSize('24', '2xl'), <mask> '2xl': getSize('32', '3xl'), <mask> 'full': getSize('100%', '4xl'), <mask> }; <mask> <mask> const defaultProps = { <mask> size: 'md', <mask> }; </s> Fix/avatar design (#4055) * fix: colors mapping fixed * fix: avatar design and typography size fix * Update Fallback.tsx * Update AvatarBadge.tsx Co-authored-by: Rohit Singh <[email protected]> </s> remove '2xs': getSize('4', 'xs'), 'xs': getSize('6', 'sm'), 'sm': getSize('8', 'md'), 'md': getSize('12', 'lg'), </s> add 'xs': getSize('6', '2xs'), 'sm': getSize('8', 'xs'), 'md': getSize('12', 'md'), </s> remove fontSize: fontSize, </s> add _text: { fontSize: fontSize, }, </s> remove <Avatar.Badge borderColor="papayawhip" bg="tomato" /> </s> add <Avatar.Badge bg="green.500" /> </s> remove <Avatar bg="green.600" source={{ uri: 'https://bit.ly/broken-link' }} /> </s> add <Avatar bg="lightBlue.400" source={{ uri: 'https://bit.ly/broken-link' }}> -- </Avatar> </s> remove bg="teal.600" </s> add bg="green.500"
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b456614de0ad551f9593e7ccac8e2d7fd4857763
src/theme/components/avatar.ts
platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
<mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = undefined; <mask> const isIphoneX = <mask> platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); <mask> <mask> export default { <mask> platformStyle, <mask> platform, <mask> </s> iPhoneX family height issue fixed </s> remove platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); </s> add platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896); </s> remove platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); </s> add platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b509691fd4e917ac8e4dd4e7bcd243c69d211e78
src/theme/variables/commonColor.js
platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
<mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = "material"; <mask> const isIphoneX = <mask> platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); <mask> <mask> export default { <mask> platformStyle, <mask> platform, <mask> </s> iPhoneX family height issue fixed </s> remove platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); </s> add platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896); </s> remove platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); </s> add platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b509691fd4e917ac8e4dd4e7bcd243c69d211e78
src/theme/variables/material.js
platform === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896);
<mask> const deviceWidth = Dimensions.get("window").width; <mask> const platform = Platform.OS; <mask> const platformStyle = undefined; <mask> const isIphoneX = <mask> platform === "ios" && (deviceHeight === 812 || deviceHeight === 896); <mask> <mask> export default { <mask> platformStyle, <mask> platform, <mask> </s> iPhoneX family height issue fixed
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b509691fd4e917ac8e4dd4e7bcd243c69d211e78
src/theme/variables/platform.js
<Avatar.Group _avatar={{ size: 'lg' }} max={3}>
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Center> <mask> <Avatar.Group size="lg" max={3}> <mask> <Avatar <mask> bg="green.500" <mask> source={{ <mask> uri: <mask> 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80', </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const defaultProps = { ml: space, </s> add const spacingProps = { ml: isVertical ? 0 : space, mt: isVertical ? space : 0, </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution( </s> remove <Avatar bg={plusAvatarBg} {...defaultProps} {...props}> </s> add <Avatar {...spacingProps} {..._avatar} {..._hiddenAvatarPlaceholder}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
example/storybook/stories/components/composites/Avatar/AvatarGroup.tsx
import { Box, Image } from '../../primitives';
<mask> import React, { memo, forwardRef } from 'react'; <mask> import { Box, Image, Text } from '../../primitives'; <mask> import { usePropsResolution } from '../../../hooks/useThemeProps'; <mask> import type { IAvatarProps } from './types'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const Avatar = ({ children, ...props }: IAvatarProps, ref: any) => { </s> feat: api improvement avatar, added vertical avatargroup support </s> remove import Flex from '../../primitives/Flex'; </s> add import Box from '../../primitives/Box'; </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution( </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove function baseStyle(props: Record<string, any>) { </s> add function baseStyle({ isVertical, ...props }: Record<string, any>) {
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
const { _text, _image, source, ...resolvedProps } = usePropsResolution(
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const Avatar = ({ children, ...props }: IAvatarProps, ref: any) => { <mask> const [error, setError] = React.useState(false); <mask> const { _text, source, style, ...resolvedProps } = usePropsResolution( <mask> 'Avatar', <mask> props <mask> ); <mask> <mask> let Badge = <></>; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove import { Box, Image, Text } from '../../primitives'; </s> add import { Box, Image } from '../../primitives'; </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove React.Children.map(children, (child, key) => { </s> add React.Children.map(children, (child) => { </s> remove import Flex from '../../primitives/Flex'; </s> add import Box from '../../primitives/Box';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
React.Children.map(children, (child) => {
<mask> <mask> let Badge = <></>; <mask> const remainingChildren: JSX.Element[] = []; <mask> // Pop Badge from children <mask> React.Children.map(children, (child, key) => { <mask> if ( <mask> typeof child?.type === 'object' && <mask> child?.type.displayName === 'AvatarBadge' <mask> ) { <mask> Badge = child; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove remainingChildren.push( typeof child === 'string' || typeof child === 'number' ? ( <Text key={'avatar-children-' + key} {..._text}> {child} </Text> ) : ( child ) ); </s> add remainingChildren.push(child); </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution( </s> remove plusAvatarBg?: string, props?: any </s> add _hiddenAvatarPlaceholder?: Object, _avatar?: any, isVertical?: Boolean </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
remainingChildren.push(child);
<mask> child?.type.displayName === 'AvatarBadge' <mask> ) { <mask> Badge = child; <mask> } else { <mask> remainingChildren.push( <mask> typeof child === 'string' || typeof child === 'number' ? ( <mask> <Text key={'avatar-children-' + key} {..._text}> <mask> {child} <mask> </Text> <mask> ) : ( <mask> child <mask> ) <mask> ); <mask> } <mask> }); <mask> <mask> const imageFitStyle: any = { height: '100%', width: '100%' }; <mask> //TODO: refactor for responsive prop </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove React.Children.map(children, (child, key) => { </s> add React.Children.map(children, (child) => { </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
<mask> ); <mask> } <mask> }); <mask> <mask> const imageFitStyle: any = { height: '100%', width: '100%' }; <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( </s> feat: api improvement avatar, added vertical avatargroup support </s> remove remainingChildren.push( typeof child === 'string' || typeof child === 'number' ? ( <Text key={'avatar-children-' + key} {..._text}> {child} </Text> ) : ( child ) ); </s> add remainingChildren.push(child); </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
<Box _text={_text} {...resolvedProps}>
<mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Box {...resolvedProps}> <mask> {source && !error ? ( <mask> <Image <mask> borderRadius={resolvedProps.borderRadius} <mask> source={source} <mask> alt={'--'} </s> feat: api improvement avatar, added vertical avatargroup support </s> remove borderRadius={resolvedProps.borderRadius} </s> add </s> remove alt={'--'} _alt={_text} style={[style, imageFitStyle]} </s> add </s> remove <Flex flexDirection="row-reverse" ref={ref}> {getAvatarGroupChildren(children, space, max, bg, { borderColor, borderWidth, ...props, })} </Flex> </s> add <Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box> </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
<mask> return ( <mask> <Box {...resolvedProps}> <mask> {source && !error ? ( <mask> <Image <mask> borderRadius={resolvedProps.borderRadius} <mask> source={source} <mask> alt={'--'} <mask> _alt={_text} <mask> style={[style, imageFitStyle]} <mask> onError={() => { </s> feat: api improvement avatar, added vertical avatargroup support </s> remove alt={'--'} _alt={_text} style={[style, imageFitStyle]} </s> add </s> remove <Box {...resolvedProps}> </s> add <Box _text={_text} {...resolvedProps}> </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove React.Children.map(children, (child, key) => { </s> add React.Children.map(children, (child) => {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
<mask> {source && !error ? ( <mask> <Image <mask> borderRadius={resolvedProps.borderRadius} <mask> source={source} <mask> alt={'--'} <mask> _alt={_text} <mask> style={[style, imageFitStyle]} <mask> onError={() => { <mask> setError(true); <mask> }} <mask> ref={ref} <mask> /> </s> feat: api improvement avatar, added vertical avatargroup support </s> remove borderRadius={resolvedProps.borderRadius} </s> add </s> remove <Box {...resolvedProps}> </s> add <Box _text={_text} {...resolvedProps}> </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove <Avatar.Group size="lg" max={3}> </s> add <Avatar.Group _avatar={{ size: 'lg' }} max={3}>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
{..._image}
<mask> onError={() => { <mask> setError(true); <mask> }} <mask> ref={ref} <mask> /> <mask> ) : ( <mask> remainingChildren.length !== 0 && remainingChildren <mask> )} </s> feat: api improvement avatar, added vertical avatargroup support </s> remove alt={'--'} _alt={_text} style={[style, imageFitStyle]} </s> add </s> remove borderRadius={resolvedProps.borderRadius} </s> add </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove <Avatar bg={plusAvatarBg} {...defaultProps} {...props}> </s> add <Avatar {...spacingProps} {..._avatar} {..._hiddenAvatarPlaceholder}> </s> remove const defaultProps = { ml: space, </s> add const spacingProps = { ml: isVertical ? 0 : space, mt: isVertical ? space : 0,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Avatar.tsx
const resolvedProps = usePropsResolution('AvatarBadge', props);
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const AvatarBadge = memo( <mask> forwardRef((props: IAvatarBadgeProps, ref?: any) => { <mask> const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove import { Box, Image, Text } from '../../primitives'; </s> add import { Box, Image } from '../../primitives'; </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution(
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Badge.tsx
return <Box {...resolvedProps} ref={ref} />;
<mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Box <mask> position="absolute" <mask> right={0} <mask> bottom={0} <mask> {...newProps} <mask> width={boxSize || 3} <mask> height={boxSize || 3} <mask> ref={ref} <mask> /> <mask> ); <mask> }) <mask> ); <mask> <mask> AvatarBadge.displayName = 'AvatarBadge'; <mask> export default AvatarBadge as (props: IAvatarBadgeProps, ref?: any) => any; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove remainingChildren.push( typeof child === 'string' || typeof child === 'number' ? ( <Text key={'avatar-children-' + key} {..._text}> {child} </Text> ) : ( child ) ); </s> add remainingChildren.push(child); </s> remove <Flex flexDirection="row-reverse" ref={ref}> {getAvatarGroupChildren(children, space, max, bg, { borderColor, borderWidth, ...props, })} </Flex> </s> add <Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Badge.tsx
import Box from '../../primitives/Box';
<mask> import React, { memo, forwardRef } from 'react'; <mask> import Flex from '../../primitives/Flex'; <mask> import { usePropsResolution } from '../../../hooks/useThemeProps'; <mask> import isNil from 'lodash.isnil'; <mask> import type { IAvatarGroupProps } from './types'; <mask> import { default as Avatar } from './Avatar'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove import { Box, Image, Text } from '../../primitives'; </s> add import { Box, Image } from '../../primitives'; </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution( </s> remove borderWidth: 2, borderColor: mode('gray.50', 'gray.800')(props), bg: mode('gray.600', 'gray.100')(props), </s> add flexDirection: isVertical ? 'column-reverse' : 'row-reverse',
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
_hiddenAvatarPlaceholder?: Object, _avatar?: any, isVertical?: Boolean
<mask> const getAvatarGroupChildren = ( <mask> children?: JSX.Element[] | JSX.Element, <mask> space?: number, <mask> max?: number, <mask> plusAvatarBg?: string, <mask> props?: any <mask> ) => { <mask> let childrenArray: any = React.Children.toArray(children); <mask> let plusAvatars: number = 0; <mask> if (!isNil(max) && max < childrenArray.length && max > 0) { <mask> plusAvatars = childrenArray.length - max; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const defaultProps = { ml: space, </s> add const spacingProps = { ml: isVertical ? 0 : space, mt: isVertical ? space : 0, </s> remove React.Children.map(children, (child, key) => { </s> add React.Children.map(children, (child) => { </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution(
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
const spacingProps = { ml: isVertical ? 0 : space, mt: isVertical ? space : 0,
<mask> plusAvatars = childrenArray.length - max; <mask> childrenArray = childrenArray.slice(0, max); <mask> } <mask> const trailingChildren = childrenArray.slice(1); <mask> const defaultProps = { <mask> ml: space, <mask> }; <mask> return [ <mask> plusAvatars > 0 ? ( <mask> <Avatar bg={plusAvatarBg} {...defaultProps} {...props}> <mask> {'+ ' + plusAvatars} </s> feat: api improvement avatar, added vertical avatargroup support </s> remove <Avatar bg={plusAvatarBg} {...defaultProps} {...props}> </s> add <Avatar {...spacingProps} {..._avatar} {..._hiddenAvatarPlaceholder}> </s> remove plusAvatarBg?: string, props?: any </s> add _hiddenAvatarPlaceholder?: Object, _avatar?: any, isVertical?: Boolean </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove remainingChildren.push( typeof child === 'string' || typeof child === 'number' ? ( <Text key={'avatar-children-' + key} {..._text}> {child} </Text> ) : ( child ) ); </s> add remainingChildren.push(child); </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution(
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
<Avatar {...spacingProps} {..._avatar} {..._hiddenAvatarPlaceholder}>
<mask> ml: space, <mask> }; <mask> return [ <mask> plusAvatars > 0 ? ( <mask> <Avatar bg={plusAvatarBg} {...defaultProps} {...props}> <mask> {'+ ' + plusAvatars} <mask> </Avatar> <mask> ) : null, <mask> React.Children.map( <mask> trailingChildren.reverse(), </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const defaultProps = { ml: space, </s> add const spacingProps = { ml: isVertical ? 0 : space, mt: isVertical ? space : 0, </s> remove remainingChildren.push( typeof child === 'string' || typeof child === 'number' ? ( <Text key={'avatar-children-' + key} {..._text}> {child} </Text> ) : ( child ) ); </s> add remainingChildren.push(child); </s> remove plusAvatarBg?: string, props?: any </s> add _hiddenAvatarPlaceholder?: Object, _avatar?: any, isVertical?: Boolean </s> remove <Flex flexDirection="row-reverse" ref={ref}> {getAvatarGroupChildren(children, space, max, bg, { borderColor, borderWidth, ...props, })} </Flex> </s> add <Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
..._avatar, ...spacingProps,
<mask> return React.cloneElement( <mask> child, <mask> { <mask> key: `avatar-group-child-${index}`, <mask> ...props, <mask> ...defaultProps, <mask> ...child.props, <mask> }, <mask> child.props.children <mask> ); <mask> } </s> feat: api improvement avatar, added vertical avatargroup support </s> remove ...props, </s> add ..._avatar, </s> remove <Flex flexDirection="row-reverse" ref={ref}> {getAvatarGroupChildren(children, space, max, bg, { borderColor, borderWidth, ...props, })} </Flex> </s> add <Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box> </s> remove export default { baseStyle }; </s> add export default { baseStyle, defaultProps: { isVertical: false, }, };
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
..._avatar,
<mask> ), <mask> React.cloneElement( <mask> childrenArray[0], <mask> { <mask> ...props, <mask> ...childrenArray[0].props, <mask> }, <mask> childrenArray[0].props.children <mask> ), <mask> ]; </s> feat: api improvement avatar, added vertical avatargroup support </s> remove ...props, ...defaultProps, </s> add ..._avatar, ...spacingProps, </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove export default { baseStyle }; </s> add export default { baseStyle, defaultProps: { isVertical: false, }, };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props);
<mask> ), <mask> ]; <mask> }; <mask> <mask> const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { <mask> const { children, ...props } = allProps; <mask> const { borderColor, borderWidth, bg, space, max } = usePropsResolution( <mask> 'AvatarGroup', <mask> props <mask> ); <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove const { boxSize, ...newProps } = usePropsResolution('AvatarBadge', props); </s> add const resolvedProps = usePropsResolution('AvatarBadge', props); </s> remove const { _text, source, style, ...resolvedProps } = usePropsResolution( </s> add const { _text, _image, source, ...resolvedProps } = usePropsResolution( </s> remove <Flex flexDirection="row-reverse" ref={ref}> {getAvatarGroupChildren(children, space, max, bg, { borderColor, borderWidth, ...props, })} </Flex> </s> add <Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box> </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx
<Box {...resolvedProps} ref={ref}> {getAvatarGroupChildren( children, space, max, _hiddenAvatarPlaceholder, _avatar, isVertical )} </Box>
<mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return ( <mask> <Flex flexDirection="row-reverse" ref={ref}> <mask> {getAvatarGroupChildren(children, space, max, bg, { <mask> borderColor, <mask> borderWidth, <mask> ...props, <mask> })} <mask> </Flex> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(AvatarGroup)); </s> feat: api improvement avatar, added vertical avatargroup support </s> remove const AvatarGroup = (allProps: IAvatarGroupProps, ref: any) => { const { children, ...props } = allProps; const { borderColor, borderWidth, bg, space, max } = usePropsResolution( 'AvatarGroup', props ); </s> add const AvatarGroup = ({ children, ...props }: IAvatarGroupProps, ref: any) => { const { max, _avatar, _hiddenAvatarPlaceholder, isVertical, space, ...resolvedProps } = usePropsResolution('AvatarGroup', props); </s> remove const imageFitStyle: any = { height: '100%', width: '100%' }; </s> add </s> remove return ( <Box position="absolute" right={0} bottom={0} {...newProps} width={boxSize || 3} height={boxSize || 3} ref={ref} /> ); </s> add return <Box {...resolvedProps} ref={ref} />; </s> remove export default { baseStyle }; </s> add export default { baseStyle, defaultProps: { isVertical: false, }, }; </s> remove ...props, ...defaultProps, </s> add ..._avatar, ...spacingProps,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/b5676d18e9be13ed3dfcd4f1742c5f0424342218
src/components/composites/Avatar/Group.tsx