docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
<mask> const a: AllProps<StyledProps> = { <mask> flexDir: 'column', <mask> }; <mask> <mask> console.log('hhf ', a); <mask> <mask> // type SpaceProps = { <mask> // [key in keyof typeof space]?: SpaceType; <mask> // }; <mask> <mask> // type LayoutProps = { </s> fix: generate type from styled system </s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/399b9c1a5e30a61446aa461baec356bfde07f512
src/theme/types.ts
it('should convert px to absolute on native', () => {
<mask> import theme from '../base'; <mask> import { platformSpecificSpaceUnits } from './utils'; <mask> <mask> describe('platform units on native', () => { <mask> it('converts px to absolute on native', () => { <mask> Platform.OS = 'ios'; <mask> const newTheme = { ...theme }; <mask> newTheme.spac...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/39a523f71d0793792f24329d55006d22ecf45419
src/theme/tools/platformUnits.test.js
it('should convert rem to absolute on native', () => {
<mask> const convertedTheme = platformSpecificSpaceUnits(newTheme); <mask> expect(convertedTheme.space).toEqual({ xs: 1 }); <mask> }); <mask> <mask> it('converts rem to absolute on native', () => { <mask> Platform.OS = 'ios'; <mask> const newTheme = { ...theme }; <mask> newTheme.space =...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/39a523f71d0793792f24329d55006d22ecf45419
src/theme/tools/platformUnits.test.js
it('should not convert px to rem on web', () => { Platform.OS = 'web'; const newTheme = { ...theme }; newTheme.space = { xs: '23px' }; const convertedTheme = platformSpecificSpaceUnits(newTheme); expect(convertedTheme.space).toEqual({ xs: '23px' }); }); it('should convert absolute to rem on w...
<mask> }); <mask> }); <mask> <mask> describe('platform units on web', () => { <mask> it('converts absolute to rem on web', () => { <mask> Platform.OS = 'web'; <mask> const newTheme = { ...theme }; <mask> newTheme.space = { xs: 23 }; <mask> const convertedTheme = platformSpecificSpaceUnits(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/39a523f71d0793792f24329d55006d22ecf45419
src/theme/tools/platformUnits.test.js
// If platform is web, we need to convert absolute unit to rem. e.g. 16 to 1rem
<mask> const isAbsolute = typeof val === 'number'; <mask> const isPx = !isAbsolute && val.endsWith('px'); <mask> const isRem = !isAbsolute && val.endsWith('rem'); <mask> <mask> // If platform is web, we need to convert px unit to rem and absolute unit to rem. e.g. 16px to 1rem and ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/39a523f71d0793792f24329d55006d22ecf45419
src/theme/tools/utils.ts
if (isAbsolute) {
<mask> const isRem = !isAbsolute && val.endsWith('rem'); <mask> <mask> // If platform is web, we need to convert px unit to rem and absolute unit to rem. e.g. 16px to 1rem and 16 to 1rem. <mask> if (isWeb) { <mask> if (isPx) { <mask> newScale[scaleKey] = convertAbsol...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/39a523f71d0793792f24329d55006d22ecf45419
src/theme/tools/utils.ts
} = usePropsResolution( 'Checkbox', { ...combinedProps, ...inputProps }, { isInvalid, isReadOnly, isIndeterminate, isDisabled, isChecked, isHovered, isPressed, isFocused, } );
<mask> onHoverOut, <mask> onFocus, <mask> onBlur, <mask> ...resolvedProps <mask> } = usePropsResolution('Checkbox', inputProps, { <mask> isInvalid, <mask> isReadOnly, <mask> isIndeterminate, <mask> isDisabled, <mask> isChecked, <mask> isHovered,...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Checkbox/Checkbox.tsx
{ size, _checkbox, colorScheme, ...props }: ICheckboxGroupProps,
<mask> null <mask> ); <mask> <mask> function CheckboxGroup( <mask> { size, colorScheme, ...props }: ICheckboxGroupProps, <mask> ref?: any <mask> ) { <mask> const { children } = props; <mask> const state = useCheckboxGroupState(props); <mask> const { groupProps } = useCheckboxGroup( </s> feat: ad...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Checkbox/CheckboxGroup.tsx
..._checkbox,
<mask> value={{ <mask> size, <mask> colorScheme, <mask> ...formControlContext, <mask> state, <mask> }} <mask> > <mask> <Box alignItems="flex-start" {...groupProps} {...props} ref={ref}> </s> feat: added new pseudo prop for RadioGroup and CheckboxGroup </s> ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Checkbox/CheckboxGroup.tsx
/** * Pass props will be passed to each checkbox. */ _checkbox?: ICheckboxProps;
<mask> * The callback fired when any children Checkbox is checked or unchecked. <mask> */ <mask> onChange?: (values: any) => any; <mask> } <mask> export interface ICheckboxContext extends IFormControlContext { <mask> colorScheme?: string; <mask> size?: ResponsiveValue<'sm' | 'md' | 'lg'>; </s> feat:...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Checkbox/types.tsx
const combinedProps = combineContextAndProps( { ...formControlContext, ...contextState }, props );
<mask> ref: any <mask> ) => { <mask> const formControlContext = useFormControlContext(); <mask> const contextState = React.useContext(RadioContext); <mask> <mask> const combinedProps = combineContextAndProps(formControlContext, props); <mask> <mask> const inputRef = React.useRef(null); <mask> con...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/Radio.tsx
const combinedProps = combineContextAndProps( { ...formControlContext, ...contextState }, props );
<mask> ) => { <mask> const formControlContext = useFormControlContext(); <mask> const contextState = React.useContext(RadioContext); <mask> <mask> const combinedProps = combineContextAndProps(formControlContext, props); <mask> <mask> const inputRef = React.useRef(null); <mask> const radioState = use...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/Radio.web.tsx
{ size, colorScheme, _radio, ...props }: IRadioGroupProps,
<mask> ); <mask> }); <mask> <mask> const RadioGroup = ( <mask> { size, colorScheme, ...props }: IRadioGroupProps, <mask> ref: any <mask> ) => { <mask> const formControlContext = useFormControlContext(); <mask> <mask> const state = useRadioGroupState(props); </s> feat: added new pseudo prop for Ra...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/RadioGroup.tsx
..._radio,
<mask> size, <mask> colorScheme, <mask> state, <mask> }; <mask> }, [size, colorScheme, formControlContext, state, _radio]); <mask> <mask> const radioGroupProps = React.useMemo( <mask> () => radioGroupState.radioGroupProps, </s> feat: added new pseudo prop for RadioGroup and Check...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/RadioGroup.tsx
}, [size, colorScheme, formControlContext, state, _radio]);
<mask> size, <mask> colorScheme, <mask> state, <mask> }; <mask> }, [size, colorScheme, formControlContext, state]); <mask> <mask> const radioGroupProps = React.useMemo( <mask> () => radioGroupState.radioGroupProps, <mask> // eslint-disable-next-line react-hooks/exhaustive-dep...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/RadioGroup.tsx
/** * Pass props will be passed to each radio. */ _radio?: IRadioProps;
<mask> * The callback fired when any children radio is checked or unchecked. <mask> */ <mask> onChange?: IRadioGroupOnChangeHandler; <mask> } <mask> export interface IRadioContext extends IFormControlContext { <mask> colorScheme?: string; <mask> size?: ResponsiveValue<ISizes | (string & {}) | number>...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a3ac9edcd2fffc1c26da5ecc62615af0d2df284
src/components/primitives/Radio/types.tsx
"node_modules", ".git"
<mask> { <mask> "ignore_dirs": [ <mask> ".git", <mask> "node_modules" <mask> ] <mask> } </s> Fixed SafeAreaView application on Header, Footer and Content components (#2972) Fixes #2291 - Added SafeAreaView to Header, Content and Footer - Removed unused state and methods for calculating padding/m...
[ "keep", "keep", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
.watchmanconfig
import getStyle from '../utils/getStyle';
<mask> <mask> import variable from '../theme/variables/platform'; <mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames'; <mask> <mask> class Content extends Component { <mask> static contextTypes = { <mask> theme: PropTypes.object <mask> }; <mask> </s> Fixed SafeAreaView applicati...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
<mask> static contextTypes = { <mask> theme: PropTypes.object <mask> }; <mask> <mask> constructor(props) { <mask> super(props); <mask> this.state = { <mask> orientation: 'portrait' <mask> }; <mask> } <mask> <mask> layoutChange(val) { <mask> const maxComp = Math.max(var...
[ "keep", "keep", "keep", "keep", "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/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
const containerStyle = { flex: 1, backgroundColor: getStyle(style).backgroundColor };
<mask> keyboardShouldPersistTaps, <mask> padder, <mask> style <mask> } = this.props; <mask> const containerStyle = { flex: 1 }; <mask> const variables = this.context.theme <mask> ? this.context.theme['@@shoutem.theme/themeStyle'].variables <mask> : variable; <mask> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
return (
<mask> const variables = this.context.theme <mask> ? this.context.theme['@@shoutem.theme/themeStyle'].variables <mask> : variable; <mask> <mask> return variables.isIphoneX ? ( <mask> <SafeAreaView style={containerStyle}> <mask> <KeyboardAwareScrollView <mask> automat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
<mask> this._scrollview = c; <mask> this._root = c; <mask> }} <mask> {...this.props} <mask> style={style} <mask> contentContainerStyle={[ <mask> { padding: padder ? variables.contentPadding : undefined }, <mask> contentConta...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
<mask> > <mask> {children} <mask> </KeyboardAwareScrollView> <mask> </SafeAreaView> <mask> ) : ( <mask> <KeyboardAwareScrollView <mask> automaticallyAdjustContentInsets={false} <mask> resetScrollToCoords={disableKBDismissScroll ? null : { x: 0, y: 0 }} ...
[ "keep", "keep", "keep", "keep", "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/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Content.js
import { View, ViewPropTypes, SafeAreaView } from 'react-native';
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { View, ViewPropTypes } from 'react-native'; <mask> import { connectStyle } from 'native-base-shoutem-theme'; <mask> <mask> import variable from '../theme/variables/platform'; <mask> import mapPropsToStyleN...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
<mask> import PropTypes from 'prop-types'; <mask> import { View, ViewPropTypes } from 'react-native'; <mask> import { connectStyle } from 'native-base-shoutem-theme'; <mask> <mask> import variable from '../theme/variables/platform'; <mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames'; <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
import getStyle from '../utils/getStyle';
<mask> <mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames'; <mask> <mask> class Footer extends Component { <mask> static contextTypes = { <mask> theme: PropTypes.object </s> Fixed SafeAreaView application on Header, Footer and Content components (#2972) Fixes #2291 - Added SafeAre...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
<mask> class Footer extends Component { <mask> static contextTypes = { <mask> theme: PropTypes.object <mask> }; <mask> constructor(props) { <mask> super(props); <mask> this.state = { <mask> orientation: <mask> variable.deviceHeight > variable.deviceWidth ? 'portrait' : 'landscap...
[ "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", "re...
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
<mask> const height = oldHeight + InsetValues.bottomInset; <mask> return height; <mask> } <mask> <mask> calculatePadder(mode, inSet) { <mask> const { style } = this.props; <mask> let inset = null; <mask> if (inSet !== undefined) { <mask> inset = inSet; <mask> } else { <mask...
[ "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", "re...
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
return ( <SafeAreaView style={{ backgroundColor: getStyle(style).backgroundColor }} > <View ref={c => (this._root = c)} {...this.props} /> </SafeAreaView>
<mask> return bottomPadder; <mask> } <mask> render() { <mask> const { style } = this.props; <mask> const variables = this.context.theme <mask> ? this.context.theme['@@shoutem.theme/themeStyle'].variables <mask> : variable; <mask> return variables.isIphoneX ? ( <mask> <View...
[ "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", "re...
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Footer.js
<mask> /* eslint-disable no-nested-ternary */ <mask> /* eslint-disable no-unneeded-ternary */ <mask> import { get } from 'lodash'; <mask> import { connectStyle } from 'native-base-shoutem-theme'; <mask> import PropTypes from 'prop-types'; <mask> import React, { Component } from 'react'; <mask> import { View, Sta...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
import { View, StatusBar, ViewPropTypes, SafeAreaView } from 'react-native';
<mask> import { get } from 'lodash'; <mask> import { connectStyle } from 'native-base-shoutem-theme'; <mask> import PropTypes from 'prop-types'; <mask> import React, { Component } from 'react'; <mask> import { View, StatusBar, StyleSheet, ViewPropTypes } from 'react-native'; <mask> <mask> import mapPropsToStyle...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
import getStyle from '../utils/getStyle';
<mask> import { View, StatusBar, ViewPropTypes, SafeAreaView } from 'react-native'; <mask> <mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames'; <mask> import variable from '../theme/variables/platform'; <mask> <mask> class Header extends Component { <mask> static contextTypes = { </s> Fi...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
<mask> static contextTypes = { <mask> theme: PropTypes.object <mask> }; <mask> <mask> constructor(props) { <mask> super(props); <mask> this.state = { <mask> orientation: 'portrait' <mask> }; <mask> } <mask> <mask> layoutChange(val) { <mask> const maxComp = Math.max(var...
[ "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", "re...
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
<mask> style, <mask> transparent, <mask> translucent <mask> } = this.props; <mask> const { orientation } = this.state; <mask> const variables = this.context.theme <mask> ? this.context.theme['@@shoutem.theme/themeStyle'].variables <mask> : variable; <mask> const pl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
<View>
<mask> : variable; <mask> const platformStyle = variables.platformStyle; <mask> <mask> return ( <mask> <View onLayout={e => this.layoutChange(e.nativeEvent.layout)}> <mask> <StatusBar <mask> backgroundColor={ <mask> androidStatusBarColor <mask> ?...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
<SafeAreaView style={{ backgroundColor: getStyle(style).backgroundColor }} >
<mask> : variables.iosStatusbar <mask> } <mask> translucent={transparent ? true : translucent} <mask> /> <mask> {variables.isIphoneX ? ( <mask> <View <mask> ref={c => (this._root = c)} <mask> {...this.props} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
</SafeAreaView>
<mask> ]} <mask> /> <mask> ) : ( <mask> <View ref={c => (this._root = c)} {...this.props} /> <mask> )} <mask> </View> <mask> ); <mask> } <mask> } <mask> </s> Fixed SafeAreaView application on Header, Footer and Content components (#2972) Fixes #22...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a4965c579c7cb53f9d2621a74b39e0f97cd04fd
src/basic/Header.js
<mask> import styled from 'styled-components/native'; <mask> import { Box, Image, Text } from '../../primitives'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import type { IAvatarProps } from './types'; <mask> import AvatarBadge from './Badge'; <mask> import AvatarGroup from './Group'; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a6730aba250421e46e815aafbc16d8944e61685
src/components/composites/Avatar/Avatar.tsx
<mask> {children} <mask> </StyledAvatar> <mask> ); <mask> }; <mask> Avatar.Badge = React.memo(AvatarBadge); <mask> Avatar.Group = React.memo(AvatarGroup); <mask> export default Avatar; </s> Fixes for cyclic dependency in Avatar </s> remove import AvatarBadge from './Badge'; import AvatarGroup from '...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3a6730aba250421e46e815aafbc16d8944e61685
src/components/composites/Avatar/Avatar.tsx
// @ts-ignore Avatar.Badge = AvatarBadge; // @ts-ignore Avatar.Group = AvatarGroup; export { Avatar };
<mask> import Avatar from './Avatar'; <mask> import AvatarBadge from './Badge'; <mask> import AvatarGroup from './Group'; <mask> export type { IAvatarProps, IAvatarBadgeProps } from './types'; </s> Fixes for cyclic dependency in Avatar </s> remove import AvatarBadge from './Badge'; import AvatarGroup from './Group...
[ "keep", "keep", "keep", "add" ]
https://github.com/GeekyAnts/NativeBase/commit/3a6730aba250421e46e815aafbc16d8944e61685
src/components/composites/Avatar/index.tsx
useColorModeValue,
<mask> Center, <mask> HStack, <mask> Stack, <mask> } from 'native-base'; <mask> export const Composition = () => { <mask> return ( <mask> <Box width={72} bg={useColorModeValue('gray.50', 'gray.700')} shadow={4}> <mask> <Box> </s> fix: box example made presentable </s> remove <Box width={7...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
<Box width={72} bg={useColorModeValue('gray.50', 'gray.700')} shadow={4}>
<mask> Stack, <mask> } from 'native-base'; <mask> export const Composition = () => { <mask> return ( <mask> <Box width={72} bg="gray.50" shadow={4}> <mask> <Box> <mask> <AspectRatio ratio={16 / 9}> <mask> <Image <mask> source={{ <mask> uri: </s> fix: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
<Stack p={4} space={4}>
<mask> > <mask> 27 MAR <mask> </Center> <mask> </Box> <mask> <Stack p={4} space={3}> <mask> <Stack space={2}> <mask> <Heading size="md">Life in the Garden City</Heading> <mask> <Heading size="sm" color="red.500" fontWeight="500"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
<Heading size="sm">Life in the Garden City</Heading> <Heading size="xs" color={useColorModeValue('red.500', 'red.300')} fontWeight="500" >
<mask> </Center> <mask> </Box> <mask> <Stack p={4} space={3}> <mask> <Stack space={2}> <mask> <Heading size="md">Life in the Garden City</Heading> <mask> <Heading size="sm" color="red.500" fontWeight="500"> <mask> The Silicon Valley of India. <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
<Icon name="access-time" color="gray.500" size="sm" />
<mask> industry. The city is also known for its parks and nightlife. <mask> </Text> <mask> <HStack alignItems="center" space={4} justifyContent="space-between"> <mask> <HStack alignItems="center"> <mask> <Icon name="access-time" color="gray.500" /> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
<Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" size="sm" />
<mask> 6 mins ago <mask> </Text> <mask> </HStack> <mask> <HStack alignItems="center"> <mask> <Icon name="ios-chatbubbles" type="Ionicons" color="gray.500" /> <mask> <Text ml={1} color="gray.500" fontWeight="500"> <mask> 39 commen...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3ac7d711ebdf10413b6d8b7aa2b93ef8b15f584c
example/storybook/stories/components/primitives/Box/composition.tsx
['success', 'green', 'error', 'red', 'warning'], 'error' )} colorScheme={select( 'colorScheme',
<mask> status={select( <mask> 'status', <mask> [ <mask> 'success', <mask> 'green', <mask> 'error', <mask> 'red', <mask> 'warning', </s> fix: alert to material design changes </s> remove <Box minW="100%" maxW="100%" ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/knobEnabled.tsx
<CloseButton position="absolute" right="8px" size="xs" />
<mask> > <mask> <Alert.Icon /> <mask> <Alert.Title>Error Alert</Alert.Title> <mask> <Alert.Description>description goes here </Alert.Description> <mask> <CloseButton position="absolute" right="8px" /> <mask> </Alert> <mask> ); <mask> } </s> fix: alert to material design change...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/knobEnabled.tsx
<Alert status="error" colorScheme="error" variant={key} key={key}>
<mask> return ( <mask> <HStack> <mask> {['subtle', 'solid', 'outline'].map((key: any) => ( <mask> <Stack space={3} mx={3}> <mask> <Alert status="error" variant={key} key={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is an error alert</Alert.Title> <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/status.tsx
<Alert status="warning" colorScheme="warning" variant={key}>
<mask> <Alert status="error" variant={key} key={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is an error alert</Alert.Title> <mask> </Alert> <mask> <Alert status="warning" variant={key}> <mask> <Alert.Icon /> <mask> <Alert.Titl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/status.tsx
<Alert status="info" colorScheme="info" variant={key}>
<mask> <Alert status="warning" variant={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is a warning alert</Alert.Title> <mask> </Alert> <mask> <Alert status="info" variant={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/status.tsx
<Alert status="success" colorScheme="success" variant={key}>
<mask> <Alert status="info" variant={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is an info alert</Alert.Title> <mask> </Alert> <mask> <Alert status="success" variant={key}> <mask> <Alert.Icon /> <mask> <Alert.Title>This is a ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/status.tsx
<Alert.Title>Alert Title</Alert.Title>
<mask> return ( <mask> <Box mx={3}> <mask> <Alert> <mask> <Alert.Icon /> <mask> <Alert.Title>Error Alert</Alert.Title> <mask> <Alert.Description>description goes here</Alert.Description> <mask> </Alert> <mask> </Box> <mask> ); <mask> } </s> fix: alert to materi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
example/storybook/stories/components/composites/Alert/usage.tsx
const { status, variant, iconColor, textColor, colorScheme, ...newProps } = useThemeProps('Alert', props);
<mask> const Alert = ( <mask> { children, _text, action, ...props }: IAlertProps, <mask> ref: any <mask> ) => { <mask> const { status, variant, iconColor, textColor, ...newProps } = useThemeProps( <mask> 'Alert', <mask> props <mask> ); <mask> <mask> return ( <mask> <AlertContext.Provid...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/Alert.tsx
colorScheme,
<mask> status, <mask> variant, <mask> iconColor, <mask> textColor, <mask> }} <mask> > <mask> <Box _text={_text} {...newProps} ref={ref}> <mask> {children} </s> fix: alert to material design changes </s> remove <Box minW="100%" maxW="...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/Alert.tsx
<Box _text={_text} {...newProps} ref={ref}>
<mask> iconColor, <mask> textColor, <mask> }} <mask> > <mask> <Box <mask> minW="100%" <mask> maxW="100%" <mask> position="relative" <mask> flexDirection="row" <mask> alignItems="center" <mask> justifyContent="flex-start" <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/Alert.tsx
import { useThemeProps } from '../../../hooks';
<mask> import React from 'react'; <mask> import { Box, Icon } from '../../primitives'; <mask> import type { IAlertContext } from './index'; <mask> import { AlertContext } from './Context'; <mask> import { omitUndefined } from '../../../theme/tools/utils'; <mask> <mask> const AlertIcon = ({ children, ...props }:...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/AlertIcon.tsx
let newProps = useThemeProps('AlertIcon', props); newProps = omitUndefined(newProps);
<mask> import { AlertContext } from './Context'; <mask> import { omitUndefined } from '../../../theme/tools/utils'; <mask> <mask> const AlertIcon = ({ children, ...props }: any) => { <mask> const newProps = omitUndefined(props); <mask> const { status, iconColor }: IAlertContext = React.useContext(AlertContex...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/AlertIcon.tsx
<Icon name={getIconName()} color={iconColor} {...newProps} />
<mask> // TODO: Refactor this and move alignSelf to Icon component. <mask> return ( <mask> <Box alignSelf="center"> <mask> {children || ( <mask> <Icon <mask> name={getIconName()} <mask> type="MaterialIcons" <mask> size={8} <mask> mr={4} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/AlertIcon.tsx
<Text color={textColor} {...newProps} {..._text}>
<mask> const AlertTitle = ({ children, _text, ...props }: { _text?: any } & any) => { <mask> const newProps = useThemeProps('AlertTitle', props); <mask> const { textColor }: IAlertContext = React.useContext(AlertContext); <mask> return ( <mask> <Text mr={2} color={textColor} {...newProps} {..._text}> <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/AlertTitle.tsx
colorScheme?: string;
<mask> style?: any; <mask> status?: 'info' | 'warning' | 'success' | 'error' | string; <mask> children?: JSX.Element | JSX.Element[] | any; <mask> variant?: <mask> | 'subtle' <mask> | 'solid' <mask> | 'left-accent' </s> fix: alert to material design changes </s> remove `${status}.500`, ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/components/composites/Alert/types.tsx
let { theme, colorScheme, variant } = props;
<mask> import { mode, getColor, getColorScheme, transparentize } from '../tools'; <mask> <mask> function getBg(props: Record<string, any>) { <mask> let { theme, status, variant } = props; <mask> <mask> status = getColorScheme(props, status); <mask> const lightBg = <mask> variant === 'solid' <mask> ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
colorScheme = getColorScheme(props, colorScheme);
<mask> <mask> function getBg(props: Record<string, any>) { <mask> let { theme, status, variant } = props; <mask> <mask> status = getColorScheme(props, status); <mask> const lightBg = <mask> variant === 'solid' <mask> ? getColor(theme, `${status}.400`, status) <mask> : getColor(theme, `$...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
? getColor(theme, `${colorScheme}.400`, colorScheme) : getColor(theme, `${colorScheme}.100`, colorScheme);
<mask> <mask> status = getColorScheme(props, status); <mask> const lightBg = <mask> variant === 'solid' <mask> ? getColor(theme, `${status}.400`, status) <mask> : getColor(theme, `${status}.100`, status); <mask> const darkBg = transparentize( <mask> `${status}.500`, <mask> varian...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
`${colorScheme}.500`,
<mask> variant === 'solid' <mask> ? getColor(theme, `${status}.400`, status) <mask> : getColor(theme, `${status}.100`, status); <mask> const darkBg = transparentize( <mask> `${status}.500`, <mask> variant === 'solid' ? 0.8 : 0.5 <mask> )(theme); <mask> return mode(lightBg, darkBg)(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme, theme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> return mode(lightBg, darkBg)(props); <mask> } <mask> <mask> const variantSubtle = (props: Record<string, any>) => { <mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${st...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
iconColor: mode(`${colorScheme}.500`, `${colorScheme}.200`)(props),
<mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: mode( <mask> getColor(theme, `${status}.600`, status), <mask> getColor(th...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
getColor(theme, `${colorScheme}.600`, colorScheme), getColor(theme, `${colorScheme}.300`, colorScheme)
<mask> return { <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: mode( <mask> getColor(theme, `${status}.600`, status), <mask> getColor(theme, `${status}.300`, status) <mask> )(props), <mask> }; <mask> }; <mask> <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme, theme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> }; <mask> }; <mask> <mask> const variantOutline = (props: Record<string, any>) => { <mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 1, <mask> borderColor: mode(`${status}.600`, `${status}.500`)(props), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
borderColor: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), iconColor: mode(`${colorScheme}.500`, `${colorScheme}.500`)(props), textColor: getColor(theme, `${colorScheme}.700`, colorScheme),
<mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 1, <mask> borderColor: mode(`${status}.600`, `${status}.500`)(props), <mask> iconColor: mode(`${status}.500`, `${status}.500`)(props), <mask> textColor: getColor(theme, `...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme, theme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> textColor: getColor(theme, `${status}.700`, status), <mask> }; <mask> }; <mask> const variantOutlineLight = (props: Record<string, any>) => { <mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 1, <mask> borderColor...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
borderColor: transparentize(`${colorScheme}.600`, 0.2)(theme), iconColor: mode(`${colorScheme}.500`, `${colorScheme}.200`)(props), textColor: getColor(theme, `${colorScheme}.900`, colorScheme),
<mask> let { status, theme } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 1, <mask> borderColor: transparentize(`${status}.600`, 0.2)(theme), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: getColor(theme, `${...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> }; <mask> }; <mask> <mask> const variantSolid = (props: Record<string, any>) => { <mask> let { status } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 6, <mask> borderColor: 'transparent', <mask> bg: getBg(props), <mask> iconColor: ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
iconColor: mode(`white`, `${colorScheme}.300`)(props), textColor: mode('white', `${colorScheme}.200`)(props),
<mask> return { <mask> borderWidth: 6, <mask> borderColor: 'transparent', <mask> bg: getBg(props), <mask> iconColor: mode(`white`, `${status}.300`)(props), <mask> textColor: mode('white', `${status}.200`)(props), <mask> }; <mask> }; <mask> const variantLeftAccent = (props: Record<string...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> textColor: mode('white', `${status}.200`)(props), <mask> }; <mask> }; <mask> const variantLeftAccent = (props: Record<string, any>) => { <mask> let { status } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 4, <mask> bg: getBg(props), <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
iconColor: mode(`${colorScheme}.500`, `${colorScheme}.200`)(props), textColor: mode(`${colorScheme}.600`, `${colorScheme}.300`)(props),
<mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 4, <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: mode(`${status}.600`, `${status}.300`)(props), <mask> borderColor: 'transparent', <mask> b...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
borderLeftColor: mode(`${colorScheme}.600`, `${colorScheme}.300`)(props),
<mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: mode(`${status}.600`, `${status}.300`)(props), <mask> borderColor: 'transparent', <mask> borderLeftColor: mode(`${status}.600`, `${status}.300`)(props), <mask> }; <mask> }; <mask> co...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
let { colorScheme } = props; colorScheme = getColorScheme(props, colorScheme);
<mask> borderLeftColor: mode(`${status}.600`, `${status}.300`)(props), <mask> }; <mask> }; <mask> const variantTopAccent = (props: Record<string, any>) => { <mask> let { status } = props; <mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 4, <mask> borderColo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
borderTopColor: mode(`${colorScheme}.600`, `${colorScheme}.300`)(props),
<mask> status = getColorScheme(props, status); <mask> return { <mask> borderWidth: 4, <mask> borderColor: 'transparent', <mask> borderTopColor: mode(`${status}.600`, `${status}.300`)(props), <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
iconColor: mode(`${colorScheme}.500`, `${colorScheme}.200`)(props), textColor: mode(`${colorScheme}.600`, `${colorScheme}.300`)(props),
<mask> borderWidth: 4, <mask> borderColor: 'transparent', <mask> borderTopColor: mode(`${status}.600`, `${status}.300`)(props), <mask> bg: getBg(props), <mask> iconColor: mode(`${status}.500`, `${status}.200`)(props), <mask> textColor: mode(`${status}.600`, `${status}.300`)(props), <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
minW: '100%', maxW: '100%', position: 'relative', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', flexWrap: 'wrap', colorScheme: 'primary',
<mask> }; <mask> <mask> export const Alert = { <mask> defaultProps: { <mask> status: 'primary', <mask> variant: 'subtle', <mask> p: 4, <mask> borderRadius: 'lg', <mask> }, <mask> variants, </s> fix: alert to material design changes </s> remove p: 4, borderRadius: 'lg', </s> ad...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
px: 4, py: 3, borderRadius: 'md', shadow: 2,
<mask> export const Alert = { <mask> defaultProps: { <mask> status: 'primary', <mask> variant: 'subtle', <mask> p: 4, <mask> borderRadius: 'lg', <mask> }, <mask> variants, <mask> }; <mask> <mask> // AlertTitle </s> fix: alert to material design changes </s> remove status: 'primary...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
mr: 2, }, }; // AlertIcon export const AlertIcon = { defaultProps: { type: 'MaterialIcons', size: 8, mr: 2,
<mask> defaultProps: { <mask> fontSize: 'md', <mask> fontWeight: 'semibold', <mask> }, <mask> }; <mask> <mask> // AlertDescription <mask> export const AlertDescription = { <mask> defaultProps: { </s> fix: alert to material design changes </s> remove p: 4, borderRadius: 'lg', </s> add ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/alert.ts
import { Alert, AlertDescription, AlertTitle, AlertIcon } from './alert';
<mask> ActionsheetFooter, <mask> ActionsheetItem, <mask> } from './actionsheet'; <mask> import { Select, SelectItem } from './select'; <mask> import { Alert, AlertDescription, AlertTitle } from './alert'; <mask> import Avatar from './avatar'; <mask> import AvatarBadge from './avatar-badge'; <mask> import Ba...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/index.ts
AlertIcon,
<mask> Alert, <mask> AlertDescription, <mask> AlertTitle, <mask> Avatar, <mask> AvatarBadge, <mask> Badge, <mask> Breadcrumb, <mask> Button, <mask> Center, </s> fix: alert to material design changes </s> remove import { Alert, AlertDescription, AlertTitle } from './alert'; </s> add import {...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3bc2811f3138c1e521d26244149ff5c27dd98e26
src/theme/components/index.ts
import React, { RefObject, useEffect, ReactNode } from 'react';
<mask> import React from 'react'; <mask> import type { Modal as ModalType } from 'react-native'; <mask> import { <mask> KeyboardAvoidingView, <mask> Modal as RNModal, <mask> Platform, </s> fix: modal focus - v3 modal focus behaviour on web </s> remove <Box ref={ref} nativeID={id} h="100%"> ...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3c1a76b8d2352db83bd35caa7e030eb96cd1f8a7
src/components/composites/Modal/index.tsx
import { FocusScope } from '@react-aria/focus';
<mask> import { useOverlay } from '../../../core/Overlay'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { <mask> customBackground, <mask> customBorder, <mask> customExtra, </s> fix: modal focus - v3 modal focus behaviour on web </s> remove import React from 'react'; </s> add import...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3c1a76b8d2352db83bd35caa7e030eb96cd1f8a7
src/components/composites/Modal/index.tsx
<FocusScope contain restoreFocus={!(finalFocusRef && finalFocusRef.current)} autoFocus={!(initialFocusRef && initialFocusRef.current)} > <Box ref={ref} nativeID={id} h="100%"> <ModalWeb init...
<mask> () => { <mask> isOpen && Platform.OS === 'web' <mask> ? setOverlay( <mask> <ModalContext.Provider value={value}> <mask> <Box ref={ref} nativeID={id} h="100%"> <mask> {modalChildren} <mask> </Box> <mask> </ModalContext.P...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3c1a76b8d2352db83bd35caa7e030eb96cd1f8a7
src/components/composites/Modal/index.tsx
colorScheme="emerald"
<mask> import { IconButton, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <IconButton <mask> colorScheme="blue" <mask> variant="outline" <mask> icon={<Icon name={'search'} />} <mask> /> <mask> ); <mask> } </s> fix: updated examples as per ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Basic.tsx
colorScheme="emerald"
<mask> <mask> export default function () { <mask> return ( <mask> <IconButton <mask> colorScheme="blue" <mask> variant="solid" <mask> onPress={() => console.log('IconButton pressed')} <mask> icon={ <mask> <Icon viewBox="0 0 200 200" color="blue.300" size={10} strokeWidth=...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/SVGIcon.tsx
import { Stack, IconButton, Icon } from 'native-base';
<mask> import React from 'react'; <mask> import { HStack, IconButton, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <HStack space={4}> <mask> {[8, 10, 12].map((size: any) => ( <mask> <IconButton </s> fix: updated examples as per Docs </s> remove <H...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Sizes.tsx
<Stack space={4}> {['sm', 'md', 'lg'].map((size: any) => (
<mask> import React from 'react'; <mask> import { HStack, IconButton, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <HStack space={4}> <mask> {[8, 10, 12].map((size: any) => ( <mask> <IconButton <mask> key={size} <mask> size={size}...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Sizes.tsx
<mask> return ( <mask> <HStack space={4}> <mask> {[8, 10, 12].map((size: any) => ( <mask> <IconButton <mask> key={size} <mask> size={size} <mask> variant="solid" <mask> colorScheme="blue" <mask> icon={<Icon name={'menu'} />} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Sizes.tsx
colorScheme="emerald" icon={<Icon name={'menu'} color="white" />}
<mask> <IconButton <mask> key={size} <mask> size={size} <mask> variant="solid" <mask> colorScheme="blue" <mask> icon={<Icon name={'menu'} />} <mask> /> <mask> ))} <mask> </HStack> <mask> ); <mask> } </s> fix: updated examples as p...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Sizes.tsx
</Stack>
<mask> colorScheme="blue" <mask> icon={<Icon name={'menu'} />} <mask> /> <mask> ))} <mask> </HStack> <mask> ); <mask> } </s> fix: updated examples as per Docs </s> remove colorScheme="blue" icon={<Icon name={'menu'} />} </s> add colorScheme=...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Sizes.tsx
import { Stack, IconButton, Icon } from 'native-base';
<mask> import React from 'react'; <mask> import { HStack, IconButton, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <HStack space={4}> <mask> {['outline', 'solid', 'ghost'].map((variant: any) => ( <mask> <IconButton </s> fix: updated examples as per Do...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Variant.tsx
<Stack space={4}>
<mask> import React from 'react'; <mask> import { HStack, IconButton, Icon } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <HStack space={4}> <mask> {['outline', 'solid', 'ghost'].map((variant: any) => ( <mask> <IconButton <mask> key={variant} <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/IconButton/Variant.tsx
<mask> borderColor="cyan.400" <mask> /> <mask> <Button <mask> onPress={() => { <mask> // @ts-ignore <mask> inputRef?.current?.focus(); <mask> }} <mask> > <mask> Set Focus <mask> </Button> </s> fix: updated examples as per Docs </s> r...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/factory/ref.tsx
<mask> import { Factory } from 'native-base'; <mask> import { Image, View, TouchableOpacity, Text } from 'react-native'; <mask> <mask> export default function () { <mask> const FactoryImage = Factory(Image); <mask> const FactoryView = Factory(View); <mask> const NBTouchable = Factory(TouchableOpacity); <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/composites/factory/usage.tsx
<mask> <mask> export default function () { <mask> return ( <mask> <> <mask> <Icon name="menu" /> <mask> <Icon type="Ionicons" name="md-checkmark-circle" /> <mask> <Icon name="stepforward" type="AntDesign" /> <mask> </> <mask> ); <mask> } </s> fix: updated examples as per Docs <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/3d3eb2427377f0ca798a3b1fdcec70b68d254dae
example/storybook/stories/components/primitives/Icon/Basic.tsx