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
expect(inputElement.props.style[0].fontSize).toBe( defaultTheme.fontSizes.xs );
<mask> ); <mask> const inputElement = getByTestId('test'); <mask> expect(inputElement.props.style.borderBottomWidth).toBe(1); <mask> // as input of 'sm' size is mapped to 'xs' fontsize <mask> expect(inputElement.props.style.fontSize).toBe(defaultTheme.fontSizes.xs); <mask> }); <mask> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/279a66f10cfdfb856c63326f01e9aba2a17fbf46
src/hooks/useThemeProps/usePropsResolution.test.tsx
FormControl,
<mask> InputRightAddon, <mask> Stack, <mask> Center, <mask> Heading, <mask> Button, <mask> Icon, <mask> } from 'native-base'; <mask> </s> fix: removed errormessage from input and added form control example </s> remove import Text from '../Text'; </s> add </s> remove _errorMessageBaseProps, ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
example/storybook/stories/components/primitives/Input/example.tsx
<mask> <Input <mask> placeholder="errorBorderColor Example" <mask> isInvalid <mask> errorBorderColor="yellow.400" <mask> errorMessage="This is an Error Message" <mask> /> <mask> </Stack> <mask> ); <mask> }; </s> fix: removed errormessage from input and added f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
example/storybook/stories/components/primitives/Input/example.tsx
FormControlled,
<mask> InputAddons, <mask> InputElements, <mask> PasswordInput, <mask> ControlledInput, <mask> FocusErrorBorderColor, <mask> } from './example'; <mask> <mask> storiesOf('Input', module) <mask> .addDecorator(withKnobs) </s> fix: removed errormessage from input and added form control example </s> r...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
example/storybook/stories/components/primitives/Input/index.tsx
<mask> customShadow, <mask> customTypography, <mask> } from '../../../utils/customProps'; <mask> import Box from '../Box'; <mask> import Text from '../Text'; <mask> import Flex from '../Flex'; <mask> import type { IInputProps } from './types'; <mask> import { InputRightAddon, InputGroup, InputLeftAddon } fr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/index.tsx
<mask> const Input = ( <mask> { <mask> style, <mask> placeholder, <mask> errorMessage, <mask> _errorMessage, <mask> // isRequired, <mask> isFullWidth, <mask> onFocus, <mask> onBlur, <mask> ariaLabel, </s> fix: removed errormessage from input and added form control examp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/index.tsx
<mask> focusBorderColor, <mask> errorBorderColor, <mask> hoverBorderColor, <mask> borderBottomWidth, <mask> _errorMessageBaseProps, <mask> ...newProps <mask> } = useThemeProps('Input', { ...formControlContext, ...props }); <mask> <mask> const computedProps = { <mask> display: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/index.tsx
<mask> {InputRightElement} <mask> </Flex> <mask> ) : null} <mask> </Box> <mask> <mask> {isInvalid && errorMessage ? ( <mask> <Text ml={2} {..._errorMessageBaseProps} {..._errorMessage}> <mask> {errorMessage} <mask> </Text> <mask> ) : n...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/index.tsx
<mask> placeholder?: string; <mask> isInvalid?: boolean; <mask> variant?: string; <mask> isDisabled?: boolean; <mask> errorMessage?: string; <mask> successMessage?: string; <mask> size?: string; <mask> isRequired?: boolean; <mask> isReadOnly?: boolean; <mask> isFullWidt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/types.ts
<mask> isReadOnly?: boolean; <mask> isFullWidth?: boolean; <mask> focusBorderColor?: string; <mask> errorBorderColor?: string; <mask> _errorMessage?: ITextProps; <mask> ariaLabel?: string; <mask> InputLeftElement?: JSX.Element | JSX.Element[]; <mask> InputRightElement?: JSX.Eleme...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/components/primitives/Input/types.ts
<mask> : mode('gray.300', 'gray.600')(props), <mask> hoverBorderColor: 'default.500', <mask> focusBorderColor: mode('default.600', 'default.400')(props), <mask> errorBorderColor: mode('danger.600', 'danger.200')(props), <mask> _errorMessageBaseProps: { color: mode('danger.600', 'danger.200')(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2855ba993602d5ac5ba602be2a67820778675dfd
src/theme/components/input.ts
_dragIndicatorWrapper: {
<mask> height: 1, <mask> width: 10, <mask> borderRadius: 2, <mask> }, <mask> _dragArea: { <mask> pt: 3, <mask> pb: 3, <mask> mt: -2, <mask> width: '100%', <mask> alignItems: 'center', </s> fix: change pseduo prop for actionsheet content </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/289d34f6e92f9a8af930b82c306d0b6a80717be6
src/theme/components/actionsheet.ts
collapsable: false,
<mask> mt: -2, <mask> width: '100%', <mask> alignItems: 'center', <mask> }, <mask> _dragIndicatorWrapperOffSet: { <mask> py: 2, <mask> collapsable: false, <mask> }, <mask> }), </s> fix: change pseduo prop for actionsheet content </s> remove _draggableArea: { </...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/289d34f6e92f9a8af930b82c306d0b6a80717be6
src/theme/components/actionsheet.ts
_dragIndicatorWrapperOffSet: {
<mask> mt: -2, <mask> width: '100%', <mask> alignItems: 'center', <mask> }, <mask> _draggableArea: { <mask> py: 2, <mask> }, <mask> }), <mask> }; <mask> </s> fix: change pseduo prop for actionsheet content </s> remove _dragArea: { </s> add _dragIndicatorWrapper...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/289d34f6e92f9a8af930b82c306d0b6a80717be6
src/theme/components/actionsheet.ts
collapsable: false,
<mask> }, <mask> _dragIndicatorWrapperOffSet: { <mask> py: 2, <mask> }, <mask> }), <mask> }; <mask> </s> fix: change pseduo prop for actionsheet content </s> remove _draggableArea: { </s> add _dragIndicatorWrapperOffSet: { </s> remove // ActionsheetHeader export const ActionsheetH...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/289d34f6e92f9a8af930b82c306d0b6a80717be6
src/theme/components/actionsheet.ts
<mask> defaultProps: { <mask> variant: 'unstyled', <mask> }, <mask> }; <mask> <mask> // ActionsheetHeader <mask> export const ActionsheetHeader = { <mask> baseStyle: { <mask> justifyContent: 'center', <mask> alignItems: 'center', <mask> }, <mask> }; </s> fix: change pseduo prop for act...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/289d34f6e92f9a8af930b82c306d0b6a80717be6
src/theme/components/actionsheet.ts
import React, {Component} from 'react';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Component} from 'react-native'; <mask> import lightTheme from '../Themes/light'; <mask> <mask> export default class NativeBaseComponent extends Component { <mask> static contextTypes = { <mask> theme: React.PropTypes.object </s> impo...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Base/NativeBaseComponent.js
import React from 'react'; import {Text} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class BadgeNB extends NativeBaseComponent { <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Badge.js
import React from 'react'; import { Text, TouchableOpacity } from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, { Text, TouchableOpacity } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Icon from './Icon'; <mask> import _ from 'lodash'; ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Button.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class CardNB extends NativeBaseComponent { <mask> </...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Card.js
import React from 'react'; import {Image} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Image} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Icon from './Icon'; <mask> import Text from './Text'; <mask> import V...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/CardItem.js
import React from 'react';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Checkbox from 'react-native-checkbox'; <mask> <mask> export default class Che...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/CheckBox.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View } from 'react-native'; <mask> import Header from './Header'; <mask> import Content from './Content'; <mask> import Footer from './Footer'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import _ from 'lodas...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Container.js
import React from 'react'; import {ScrollView} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {ScrollView } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class Content extends NativeBaseCompone...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Content.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class Footer extends NativeBaseComponent { <mask> <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Footer.js
import React from 'react'; import {Text} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class H1NB extends NativeBaseComponent { </s...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/H1.js
import React from 'react'; import {Text} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class H2NB extends NativeBaseComponent { </s...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/H2.js
import React from 'react'; import {Text} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class H3NB extends NativeBaseComponent { </s...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/H3.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class Header extends NativeBaseComponent { <mask> <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Header.js
import React from 'react';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Icon from 'react-native-vector-icons/Ionicons'; <mask> <mask> export default ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Icon.js
import React from 'react'; import {View, TextInput} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View, TextInput} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class Input extends NativeBaseComponent { <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Input.js
import React from 'react'; import {Text, View, PixelRatio} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text, View, PixelRatio } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import Icon from './Icon'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Input from './Inpu...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/InputGroup.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import _ from 'lodash'; <mask> <mask> export default class ListNB extends Na...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/List.js
import React from 'react'; import {Image} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Image} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import Icon from './Icon'; <mask> import Text from './Text'; <mask> import V...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/ListItem.js
import React from 'react'; import {Picker} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Picker} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class PickerNB extends NativeBaseComponent { <mask> ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Picker.js
import React from 'react'; import {Switch} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Switch} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> export default class SwitchNB extends NativeBaseComponent { <mask> ...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Switch.js
import React from 'react'; import {Text} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> <mask> <mask> export default class TextNB extends NativeBaseComponent { <...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Text.js
import React from 'react'; import {Image} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Image} from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> import computeProps from '../../Utils/computeProps'; <mask> import _ from 'lodash'; <mask> <mask> export default class ThumbnailNB exte...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Thumbnail.js
import React from 'react'; import {Text, View } from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {Text, View } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> <mask> <mask> export default class Title extends NativeBaseComponent { <mask> </s> import React from react instead of react...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/Title.js
import React from 'react'; import {View} from 'react-native';
<mask> /* @flow */ <mask> 'use strict'; <mask> <mask> import React, {View } from 'react-native'; <mask> import NativeBaseComponent from '../Base/NativeBaseComponent'; <mask> <mask> <mask> export default class ViewNB extends NativeBaseComponent { <mask> </s> import React from react instead of react-native,...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28a0fde00460f70be952664de48fde02eb5a61a1
Components/Widgets/View.js
import { FormControl, Checkbox, Stack, Text } from 'native-base';
<mask> import React from 'react'; <mask> import { FormControl, Input, Stack, Text } from 'native-base'; <mask> <mask> export default function () { <mask> return ( <mask> <Stack width="90%" space={4}> <mask> <Text bold underline> </s> fix: updated example, integrated select, checkbox, radio nd inpu...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
Default:
<mask> export default function () { <mask> return ( <mask> <Stack width="90%" space={4}> <mask> <Text bold underline> <mask> Custom style for disable: <mask> </Text> <mask> <FormControl isDisabled> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
<FormControl.Label>Favorite framework</FormControl.Label> <Checkbox p={2} value="1" /> <FormControl.HelperText>
<mask> <Text bold underline> <mask> Custom style for disable: <mask> </Text> <mask> <FormControl isDisabled> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mask> Favorite framework <mask> </FormControl.Label> <mask> <Input p={2} ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
Custom style for disable:
<mask> </FormControl.HelperText> <mask> <FormControl.ErrorMessage>Something is wrong.</FormControl.ErrorMessage> <mask> </FormControl> <mask> <Text bold underline> <mask> Custom style for invalid: <mask> </Text> <mask> <FormControl isRequired isInvalid> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
<FormControl isDisabled> <FormControl.Label _disabled={{ _text: { color: 'gray.400', fontWeight: 'bold', }, }} >
<mask> </FormControl> <mask> <Text bold underline> <mask> Custom style for invalid: <mask> </Text> <mask> <FormControl isRequired isInvalid> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mask> Favorite framework <mask> </FormContr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
<Checkbox p={2} value="1" /> <FormControl.HelperText _disabled={{ borderLeftWidth: 1, px: 1, pl: 2, borderColor: 'gray.400', }} >
<mask> <FormControl isRequired isInvalid> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mask> Favorite framework <mask> </FormControl.Label> <mask> <Input p={2} placeholder="Is it react?" /> <mask> <FormControl.HelperText _disabled={{ backgro...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
Custom style for invalid:
<mask> </FormControl.HelperText> <mask> <FormControl.ErrorMessage>Something is wrong.</FormControl.ErrorMessage> <mask> </FormControl> <mask> <Text bold underline> <mask> Custom style for disable as well as invalid: <mask> </Text> <mask> <FormControl isRequired isI...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
<FormControl isRequired isInvalid> <FormControl.Label _invalid={{ _text: { color: 'rose.500', fontWeight: 'bold', }, }} >
<mask> </FormControl> <mask> <Text bold underline> <mask> Custom style for disable as well as invalid: <mask> </Text> <mask> <FormControl isRequired isInvalid isDisabled> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mask> Favorite framewo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
<Checkbox p={2} value="1" /> <FormControl.HelperText _invalid={{ _text: { color: 'red.400', underline: true, }, }} >
<mask> <FormControl isRequired isInvalid isDisabled> <mask> <FormControl.Label _invalid={{ backgroundColor: '#FED7D7' }}> <mask> Favorite framework <mask> </FormControl.Label> <mask> <Input p={2} placeholder="Is it react?" /> <mask> <FormControl.HelperText _disabled...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
example/storybook/stories/components/composites/FormControl/CustomStyle.tsx
{ children, _disabled, ...props }: IFormControlErrorMessageProps,
<mask> IFormControlContext, <mask> } from './types'; <mask> <mask> const FormErrorMessage = ( <mask> { children, ...props }: IFormControlErrorMessageProps, <mask> ref: any <mask> ) => { <mask> const { isInvalid }: IFormControlContext = React.useContext( <mask> FormControlContext <mask> ); </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormErrorMessage.tsx
const { isDisabled, isInvalid }: IFormControlContext = React.useContext(
<mask> const FormErrorMessage = ( <mask> { children, ...props }: IFormControlErrorMessageProps, <mask> ref: any <mask> ) => { <mask> const { isInvalid }: IFormControlContext = React.useContext( <mask> FormControlContext <mask> ); <mask> <mask> return isInvalid ? ( <mask> <Box {...props} _te...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormErrorMessage.tsx
<Box _text={{ fontSize: 'xs', color: 'red.400' }} {...props} {...(isDisabled && _disabled)} ref={ref} >
<mask> FormControlContext <mask> ); <mask> <mask> return isInvalid ? ( <mask> <Box {...props} _text={{ fontSize: 'xs', color: 'red.400' }} ref={ref}> <mask> {children} <mask> </Box> <mask> ) : null; <mask> }; <mask> </s> fix: updated example, integrated select, checkbox, radio nd i...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormErrorMessage.tsx
<mask> <mask> const FormHelperText = ( <mask> { <mask> children, <mask> style, <mask> _disabled, <mask> _focus, <mask> _invalid, <mask> color, <mask> ...props </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove _focus, </s> add </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormHelperText.tsx
<mask> { <mask> children, <mask> style, <mask> _disabled, <mask> _focus, <mask> _invalid, <mask> color, <mask> ...props <mask> }: IFormControlHelperTextProps, <mask> ref: any </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove style, </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormHelperText.tsx
<mask> const mutedColor = useColorModeValue('gray.400', 'gray.500'); <mask> <mask> return ( <mask> <Box <mask> {...props} <mask> ref={ref} <mask> _text={{ <mask> fontSize: 'xs', <mask> color: color ?? mutedColor, <mask> }} <mask> style={[style, isInvalid...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormHelperText.tsx
{...props} ref={ref} {...(isInvalid && _invalid)} {...(isDisabled && _disabled)}
<mask> _text={{ <mask> fontSize: 'xs', <mask> color: color ?? mutedColor, <mask> }} <mask> style={[style, isInvalid && _invalid, isDisabled && _disabled]} <mask> > <mask> {children} <mask> </Box> <mask> ); <mask> }; </s> fix: updated example, integrated sele...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormHelperText.tsx
{ children, _disabled, _invalid, ...props }: IFormControlLabelProps,
<mask> import { FormControlContext } from './FormControl'; <mask> import type { IFormControlLabelProps, IFormControlContext } from './types'; <mask> <mask> const FormLabel = ( <mask> { <mask> children, <mask> style, <mask> _disabled, <mask> _focus, <mask> _invalid, <mask> ...props ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormLabel.tsx
_text={{ fontSize: 'md' }}
<mask> flexDirection="row" <mask> justifyContent="flex-start" <mask> {...props} <mask> ref={ref} <mask> {...(isInvalid && _invalid)} <mask> {...(isDisabled && _disabled)} <mask> > </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove _t...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormLabel.tsx
{...(isInvalid && _invalid)} {...(isDisabled && _disabled)}
<mask> flexDirection="row" <mask> justifyContent="flex-start" <mask> {...props} <mask> ref={ref} <mask> _text={{ fontSize: 'md' }} <mask> style={[style, isInvalid && _invalid, isDisabled && _disabled]} <mask> > <mask> {children} <mask> {isRequired && required...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/FormLabel.tsx
// _focus?: any;
<mask> }; <mask> export type IFormControlLabelProps = IFormControlProps & { <mask> style?: any; <mask> _disabled?: any; <mask> _focus?: any; <mask> _invalid?: any; <mask> }; <mask> export type IFormControlErrorMessageProps = IFormControlProps; <mask> export type IFormControlHelperTextProps = IFormContr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/types.tsx
export type IFormControlErrorMessageProps = IFormControlProps & { _disabled?: any; };
<mask> _disabled?: any; <mask> _focus?: any; <mask> _invalid?: any; <mask> }; <mask> export type IFormControlErrorMessageProps = IFormControlProps; <mask> export type IFormControlHelperTextProps = IFormControlProps & { <mask> style?: any; <mask> _disabled?: any; <mask> _focus?: any; <mask> _inva...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/types.tsx
// _focus?: any;
<mask> export type IFormControlErrorMessageProps = IFormControlProps; <mask> export type IFormControlHelperTextProps = IFormControlProps & { <mask> style?: any; <mask> _disabled?: any; <mask> _focus?: any; <mask> _invalid?: any; <mask> }; <mask> <mask> export type FormControlComponentType = (( <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/composites/FormControl/types.tsx
...newProps, value: newProps.value,
<mask> let { inputProps } = groupState <mask> ? // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckboxGroupItem( <mask> { <mask> ...props, <mask> value: props.value, <mask> }, <mask> groupState.state, <mask> //@ts-ignore <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Checkbox/Checkbox.tsx
newProps,
<mask> mergedRef <mask> ) <mask> : // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckbox( <mask> props, <mask> state, <mask> //@ts-ignore <mask> mergedRef <mask> ); <mask> </s> fix: updated example, integrated select, checkbo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Checkbox/Checkbox.tsx
import { FormControlContext, IFormControlContext, } from '../../composites/FormControl';
<mask> import { themeTools } from '../../../theme'; <mask> import { useHover } from '@react-native-aria/interactions'; <mask> <mask> const StyledInput = styled(TextInput)<IInputProps>( <mask> flex, <mask> color, <mask> space, </s> fix: updated example, integrated select, checkbox, radio nd input </s> re...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Input/index.tsx
<mask> <mask> const Input = ( <mask> { <mask> style, <mask> isInvalid, <mask> isDisabled, <mask> placeholder, <mask> <mask> errorMessage, <mask> _errorMessage, <mask> // isRequired, </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove isRead...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Input/index.tsx
<mask> <mask> errorMessage, <mask> _errorMessage, <mask> // isRequired, <mask> isReadOnly, <mask> isFullWidth, <mask> onFocus, <mask> onBlur, <mask> ariaLabel, <mask> accessibilityLabel, </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Input/index.tsx
const formControlContext: IFormControlContext = React.useContext( FormControlContext );
<mask> ...props <mask> }: IInputProps, <mask> ref: any <mask> ) => { <mask> const layoutProps = { <mask> w, <mask> width, <mask> m, </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove { children, ...props }: IFormControlErrorMessageProps, </s> add { ch...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Input/index.tsx
isInvalid, isDisabled, isReadOnly,
<mask> placeholderColor = placeholderTextColor; <mask> } <mask> const { <mask> borderColor: borderColorFromProps, <mask> fontSize, <mask> borderWidth, <mask> focusBorderColor, </s> fix: updated example, integrated select, checkbox, radio nd input </s> remove { children, style,...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Input/index.tsx
{...(isDisabled && _isDisabled)}
<mask> }} <mask> {...(Platform.OS === 'ios' && _ios)} <mask> {...(Platform.OS === 'android' && _android)} <mask> {...(Platform.OS === 'web' && _web)} <mask> {...(isInvalid && _isInvalid)} <mask> {...(isHovered && _hover)} <mask> > <mask> {updatedChildren} <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/28cc00ac4c94ce0b5ccd0623c6d5efb396f106b2
src/components/primitives/Select/Select.tsx
<Alert status="warning" colorScheme="danger">
<mask> import { Alert, Box } from 'native-base'; <mask> export default function () { <mask> return ( <mask> <Box mx={3}> <mask> <Alert> <mask> <Alert.Icon /> <mask> <Alert.Title>Alert Title</Alert.Title> <mask> <Alert.Description>description goes here</Alert.Description> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
example/storybook/stories/components/composites/Alert/usage.tsx
<Alert variant="solid" colorScheme="teal">
<mask> <mask> export default function () { <mask> return ( <mask> <Stack space={4} mx={3}> <mask> <Alert variant="solid" status="teal"> <mask> <Alert.Icon /> <mask> <Alert.Title>Alert Solid Variant</Alert.Title> <mask> </Alert> <mask> <Alert variant="left-accent" status...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
example/storybook/stories/components/composites/Alert/variant.tsx
let { theme, colorScheme, status, variant } = props;
<mask> import { mode, getColor, getColorScheme, transparentize } from '../tools'; <mask> <mask> function getBg(props: Record<string, any>) { <mask> let { theme, colorScheme, variant } = props; <mask> <mask> colorScheme = getColorScheme(props, colorScheme); <mask> const lightBg = <mask> variant === '...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> <mask> function getBg(props: Record<string, any>) { <mask> let { theme, colorScheme, variant } = props; <mask> <mask> colorScheme = getColorScheme(props, colorScheme); <mask> const lightBg = <mask> variant === 'solid' <mask> ? getColor(theme, `${colorScheme}.400`, colorScheme) <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status, theme } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> return mode(lightBg, darkBg)(props); <mask> } <mask> <mask> const variantSubtle = (props: Record<string, any>) => { <mask> let { colorScheme, theme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> bg: getBg(props), <mask> iconColor: mode(`${colo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status, theme } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> }; <mask> }; <mask> <mask> const variantOutline = (props: Record<string, any>) => { <mask> let { colorScheme, theme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> borderWidth: 1, <mask> borderColor: mode(`${colorScheme}.600`, `${colorScheme}.5...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status, theme } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> textColor: getColor(theme, `${colorScheme}.700`, colorScheme), <mask> }; <mask> }; <mask> const variantOutlineLight = (props: Record<string, any>) => { <mask> let { colorScheme, theme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> borderWidth: 1...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> }; <mask> }; <mask> <mask> const variantSolid = (props: Record<string, any>) => { <mask> let { colorScheme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> borderWidth: 6, <mask> borderColor: 'transparent', <mask> bg: getBg(props), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> textColor: mode('white', `${colorScheme}.200`)(props), <mask> }; <mask> }; <mask> const variantLeftAccent = (props: Record<string, any>) => { <mask> let { colorScheme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> borderWidth: 4, <mask> bg:...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
let { colorScheme, status } = props; colorScheme = getColorScheme( props, colorScheme != 'primary' ? colorScheme : status );
<mask> borderLeftColor: mode(`${colorScheme}.600`, `${colorScheme}.300`)(props), <mask> }; <mask> }; <mask> const variantTopAccent = (props: Record<string, any>) => { <mask> let { colorScheme } = props; <mask> colorScheme = getColorScheme(props, colorScheme); <mask> return { <mask> borderWidth: ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29ad576ab23db06f8ec0b3eaf76a08402cb52da4
src/theme/components/alert.ts
* The size of the avatar.
<mask> * The image source of the avatar. <mask> */ <mask> source?: ImageSourcePropType; <mask> /** <mask> * The size of the avatar <mask> * @default md <mask> */ <mask> size?: ThemeComponentSizeType<'Avatar'>; <mask> /** <mask> * For providing props to Image component inside Avatar ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29c7f94aab0faddb9574b35fc951fcf179a1a26d
src/components/composites/Avatar/types.tsx
* For providing props to Image component inside the Avatar.
<mask> * @default md <mask> */ <mask> size?: ThemeComponentSizeType<'Avatar'>; <mask> /** <mask> * For providing props to Image component inside Avatar <mask> */ <mask> _image?: Partial<IImageProps>; <mask> /** <mask> * ref to be attached to Avatar wrapper <mask> */ </s> fix: conten...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29c7f94aab0faddb9574b35fc951fcf179a1a26d
src/components/composites/Avatar/types.tsx
* ref to be attached to the Avatar wrapper.
<mask> * For providing props to Image component inside Avatar <mask> */ <mask> _image?: Partial<IImageProps>; <mask> /** <mask> * ref to be attached to Avatar wrapper <mask> */ <mask> wrapperRef?: MutableRefObject<any>; <mask> } <mask> <mask> export interface IAvatarBadgeProps </s> fix: co...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29c7f94aab0faddb9574b35fc951fcf179a1a26d
src/components/composites/Avatar/types.tsx
"sideEffects": false,
<mask> { <mask> "name": "native-base", <mask> "description": "Essential cross-platform UI components for React Native", <mask> "keywords": [ <mask> "android", <mask> "ios", <mask> "react", <mask> "native", <mask> "react-native", </s> fix: optimise bundle for tree shaking </s> remove ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29d6c26bf94ef3e610aa19e7289dd904967969aa
package.json
"module": "lib/module/index",
<mask> "version": "3.2.2-rc.3", <mask> "license": "MIT", <mask> "private": false, <mask> "main": "lib/commonjs/index", <mask> "module": "dist/bundle.web.js", <mask> "types": "lib/typescript/src/index.d.ts", <mask> "react-native": "src/index", <mask> "source": "src/index", <mask> "typings": "l...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29d6c26bf94ef3e610aa19e7289dd904967969aa
package.json
"commonjs"
<mask> "source": "src", <mask> "output": "lib", <mask> "targets": [ <mask> [ <mask> "commonjs", <mask> { <mask> "configFile": true <mask> } <mask> ], <mask> [ <mask> "module", <mask> { <mask> "configFile": true </s> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29d6c26bf94ef3e610aa19e7289dd904967969aa
package.json
"module"
<mask> "configFile": true <mask> } <mask> ], <mask> [ <mask> "module", <mask> { <mask> "configFile": true <mask> } <mask> ], <mask> "typescript" <mask> ] <mask> }, <mask> "dependencies": { </s> fix: optimise bundle for tre...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/29d6c26bf94ef3e610aa19e7289dd904967969aa
package.json
export const Example = () => {
<mask> import React from 'react'; <mask> import { AspectRatio, Box } from 'native-base'; <mask> <mask> const Example = () => { <mask> return ( <mask> <AspectRatio height={200} ratio={{ base: 4 / 3, md: 16 / 9 }}> <mask> <Box bg="red.400" /> <mask> </AspectRatio> <mask> ); </s> fix: aspectra...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2af1eda43e0ac52088754b7b208d7fd4c583c7ca
example/storybook/stories/components/composites/AspectRatio/Basic.tsx
<mask> <Box bg="red.400" /> <mask> </AspectRatio> <mask> ); <mask> }; <mask> <mask> export default Example; </s> fix: aspectratio example breaking docs build automation </s> remove export default Example; </s> add </s> remove const Example = () => { </s> add export const Example = () => { </s> re...
[ "keep", "keep", "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/2af1eda43e0ac52088754b7b208d7fd4c583c7ca
example/storybook/stories/components/composites/AspectRatio/Basic.tsx
export const Example = () => {
<mask> import React from 'react'; <mask> import { AspectRatio, Image } from 'native-base'; <mask> const Example = () => { <mask> return ( <mask> <AspectRatio <mask> ratio={{ base: 3 / 4, md: 9 / 10 }} <mask> height={{ base: 200, md: 400 }} <mask> > </s> fix: aspectratio example breaking d...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2af1eda43e0ac52088754b7b208d7fd4c583c7ca
example/storybook/stories/components/composites/AspectRatio/EmbedImage.tsx
<mask> /> <mask> </AspectRatio> <mask> ); <mask> }; <mask> export default Example; </s> fix: aspectratio example breaking docs build automation </s> remove export default Example; </s> add </s> remove const Example = () => { </s> add export const Example = () => { </s> remove const Example = () =>...
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/2af1eda43e0ac52088754b7b208d7fd4c583c7ca
example/storybook/stories/components/composites/AspectRatio/EmbedImage.tsx
import { Example as Basic } from './Basic'; import { Example as EmbedImage } from './EmbedImage';
<mask> import React from 'react'; <mask> import { storiesOf } from '@storybook/react-native'; <mask> import { withKnobs } from '@storybook/addon-knobs'; <mask> import Wrapper from './../../Wrapper'; <mask> import Basic from './Basic'; <mask> import EmbedImage from './EmbedImage'; <mask> <mask> storiesOf('Aspec...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2af1eda43e0ac52088754b7b208d7fd4c583c7ca
example/storybook/stories/components/composites/AspectRatio/index.tsx
segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5", segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff", segmentTextColor:platform==="ios"?"#007aff":"#fff", segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5", segmentBorderColor:platform==="ios"?"#007aff":"#fff", segmentBorderColorMain:platform...
<mask> checkboxSize:20, <mask> checkboxTickColor:"#fff", <mask> <mask> <mask> segmentBackgroundColor:"#3F51B5", <mask> segmentActiveBackgroundColor:"#fff", <mask> segmentTextColor:"#fff", <mask> segmentActiveTextColor:"#3F51B5", <mask> segmentBorderColor:"#fff", <mask> segmentBorderColorMain:"#3F51B5", <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
brandPrimary:platform==="ios"?"#007aff":"#3F51B5",
<mask> <mask> cardDefaultBg:"#fff", <mask> <mask> <mask> brandPrimary:"#2874F0", <mask> brandInfo:"#62B1F6", <mask> brandSuccess:"#5cb85c", <mask> brandDanger:"#d9534f", <mask> brandWarning:"#f0ad4e", <mask> brandDark:"#000", </s> Modified color values to standard ones in variable files </s> remove brandP...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> }, <mask> <mask> <mask> footerHeight:isIphoneX?89:55, <mask> footerDefaultBg:"#2874F0", <mask> footerPaddingBottom:isIphoneX?34:0, <mask> <mask> <mask> tabBarTextColor:"#8bb3f4", <mask> tabBarTextSize:platform==="ios"?14:11, </s> Modified color values to standard ones in variable files </s> remove...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
tabBarTextColor:platform==="ios"?"#737373":"#bfc6ea",
<mask> footerDefaultBg:"#2874F0", <mask> footerPaddingBottom:isIphoneX?34:0, <mask> <mask> <mask> tabBarTextColor:"#8bb3f4", <mask> tabBarTextSize:platform==="ios"?14:11, <mask> activeTab:platform==="ios"?"#007aff":"#fff", <mask> sTabBarActiveTextColor:"#007aff", <mask> tabBarActiveTextColor:"#fff", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
tabBarActiveTextColor:platform==="ios"?"#2874F0":"#fff", tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",
<mask> tabBarTextColor:"#8bb3f4", <mask> tabBarTextSize:platform==="ios"?14:11, <mask> activeTab:platform==="ios"?"#007aff":"#fff", <mask> sTabBarActiveTextColor:"#007aff", <mask> tabBarActiveTextColor:"#fff", <mask> tabActiveBgColor:platform==="ios"?"#1569f4":undefined, <mask> <mask> <mask> tabDefaultBg:"#2...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9", topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff", topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff", topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",
<mask> tabBarActiveTextColor:"#fff", <mask> tabActiveBgColor:platform==="ios"?"#1569f4":undefined, <mask> <mask> <mask> tabDefaultBg:"#2874F0", <mask> topTabBarTextColor:"#b3c7f9", <mask> topTabBarActiveTextColor:"#fff", <mask> topTabBarBorderColor:"#fff", <mask> topTabBarActiveBorderColor:"#fff", <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
toolbarBtnColor:platform==="ios"?"#007aff":"#fff", toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",
<mask> topTabBarBorderColor:"#fff", <mask> topTabBarActiveBorderColor:"#fff", <mask> <mask> <mask> toolbarBtnColor:"#fff", <mask> toolbarDefaultBg:"#2874F0", <mask> toolbarHeight:platform==="ios"?isIphoneX?88:64:56, <mask> toolbarSearchIconSize:platform==="ios"?20:23, <mask> toolbarInputColor:platform==="ios...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js
toolbarBtnTextColor:platform==="ios"?"#000":"#fff", iosStatusbar:"dark-content", toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",
<mask> toolbarSearchIconSize:platform==="ios"?20:23, <mask> toolbarInputColor:platform==="ios"?"#CECDD2":"#fff", <mask> searchBarHeight:platform==="ios"?30:40, <mask> searchBarInputHeight:platform==="ios"?30:50, <mask> toolbarBtnTextColor:"#fff", <mask> iosStatusbar:"light-content", <mask> toolbarDefaultBorder:"...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/2bfd1bd0523371468998c076e10cf738f789ba81
dist/src/theme/variables/commonColor.js