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
shadow: 4,
<mask> flexDirection: 'row', <mask> justifyContent: 'center', <mask> alignItems: 'center', <mask> }; <mask> function variantGhost(props: Dict) { <mask> const { colorScheme: c } = props; <mask> if (c === 'gray') { <mask> return { </s> fix: modal styling fix and example fixes for multiple component...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c642b44af2015d657c367dd57bc22fcc2bff7cb2
src/theme/components/button.ts
letterSpacing: 1, fontFamily: 'Roboto',
<mask> }; <mask> }; <mask> const defaultProps = { <mask> fontWeight: 300, <mask> }; <mask> <mask> export default { baseStyle, defaultProps }; </s> fix: modal styling fix and example fixes for multiple components </s> remove borderRadius: 'lg', </s> add borderRadius: 'md', </s> remove import { Button, ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c642b44af2015d657c367dd57bc22fcc2bff7cb2
src/theme/components/text.ts
// import ActionsheetHeader from './ActionsheetHeader'; // import ActionsheetFooter from './ActionsheetFooter';
<mask> import ActionsheetMain from './Actionsheet'; <mask> import ActionsheetItem from './ActionsheetItem'; <mask> import ActionsheetHeader from './ActionsheetHeader'; <mask> import ActionsheetFooter from './ActionsheetFooter'; <mask> import ActionsheetContent from './ActionsheetContent'; <mask> import type { IAc...
[ "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c69a515a204e7faa5a28e9f587b5644c42da536e
src/components/composites/Actionsheet/index.tsx
// ActionsheetTemp.Header = ActionsheetHeader; // ActionsheetTemp.Footer = ActionsheetFooter;
<mask> <mask> const ActionsheetTemp: any = ActionsheetMain; <mask> ActionsheetTemp.Content = ActionsheetContent; <mask> ActionsheetTemp.Item = ActionsheetItem; <mask> ActionsheetTemp.Header = ActionsheetHeader; <mask> ActionsheetTemp.Footer = ActionsheetFooter; <mask> <mask> // To add typings <mask> const Ac...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c69a515a204e7faa5a28e9f587b5644c42da536e
src/components/composites/Actionsheet/index.tsx
<mask> export type { <mask> IActionsheetProps, <mask> IActionsheetContentProps, <mask> IActionsheetItemProps, <mask> IActionsheetHeaderProps, <mask> IActionsheetFooterProps, <mask> } from './types'; </s> fix: remove actionsheet header and footer </s> remove Header: React.MemoExoticComponent< ( ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c69a515a204e7faa5a28e9f587b5644c42da536e
src/components/composites/Actionsheet/index.tsx
// Header: React.MemoExoticComponent< // ( // props: IActionsheetHeaderProps & { ref?: MutableRefObject<any> } // ) => JSX.Element // >; // Footer: React.MemoExoticComponent< // ( // props: IActionsheetFooterProps & { ref?: MutableRefObject<any> } // ) => JSX.Element // >;
<mask> ( <mask> props: IActionsheetItemProps & { ref?: MutableRefObject<any> } <mask> ) => JSX.Element <mask> >; <mask> Header: React.MemoExoticComponent< <mask> ( <mask> props: IActionsheetHeaderProps & { ref?: MutableRefObject<any> } <mask> ) => JSX.Element <mask> >; <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c69a515a204e7faa5a28e9f587b5644c42da536e
src/components/composites/Actionsheet/types.tsx
// // Components; // export * from './components/composites/Accordion'; // export * from './components/composites/Actionsheet'; // export * from './components/composites/Alert'; // export * from './components/composites/AlertDialog'; // export * from './components/composites/AppBar'; // export * from './components/comp...
<mask> // Components; <mask> export * from './components/composites/Accordion'; <mask> export * from './components/composites/Actionsheet'; <mask> export * from './components/composites/Alert'; <mask> export * from './components/composites/AlertDialog'; <mask> export * from './components/composites/AppBar'; <mas...
[ "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// export * from './components/composites/CircularProgress'; // // export * from './components/composites/CloseButton'; // export * from './components/composites/Code'; // export * from './components/composites/Collapse'; // export * from './components/primitives/Column'; // export * from './components/composites/Conta...
<mask> export * from './components/composites/Breadcrumb'; <mask> export * from './components/primitives/Button'; <mask> export * from './components/composites/Center'; <mask> export * from './components/primitives/Checkbox'; <mask> export * from './components/composites/CircularProgress'; <mask> // export * from...
[ "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/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// export * from './components/primitives/Row'; // export * from './components/primitives/Select'; // export * from './components/composites/SimpleGrid'; // export * from './components/composites/Skeleton'; // export * from './components/primitives/Slider'; // export * from './components/composites/Snackbar'; // export...
<mask> export * from './components/composites/PinInput'; <mask> export * from './components/composites/Popover'; <mask> export * from './components/composites/Progress'; <mask> export * from './components/primitives/Radio'; <mask> export * from './components/primitives/Row'; <mask> export * from './components/pri...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "k...
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// // export * from './components/primitives/View'; // export * from './components/primitives/VStack'; // export * from './components/composites/Wrap'; // export * from './components/primitives/ZStack';
<mask> export * from './components/composites/Toast'; <mask> export * from './components/composites/Transitions'; <mask> export * from './components/composites/Typeahead'; <mask> <mask> // export * from './components/primitives/View'; <mask> export * from './components/primitives/VStack'; <mask> export * from '...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// // Hooks // export * from './hooks/useBreakpointValue'; // export * from './hooks/useClipboard'; // export * from './hooks/useColorMode'; // export * from './hooks/useColorModeValue'; // export * from './hooks/useDisclose'; // export * from './hooks/useMediaQuery'; // export * from './hooks/usePopover'; // export * ...
<mask> export * from './components/primitives/VStack'; <mask> export * from './components/composites/Wrap'; <mask> export * from './components/primitives/ZStack'; <mask> <mask> // Hooks <mask> export * from './hooks/useBreakpointValue'; <mask> export * from './hooks/useClipboard'; <mask> export * from './hooks...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// // Theme // export * from './theme/Custom'; // export * from './theme/Mode'; // export * from './theme/Responsive';
<mask> export * from './hooks/useSafeArea'; <mask> export * from './hooks/useContrastText'; <mask> export * from './hooks/useAccessibleColors'; <mask> <mask> // Theme <mask> export * from './theme/Custom'; <mask> export * from './theme/Mode'; <mask> export * from './theme/Responsive'; <mask> <mask> // Commu...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// // Community integrations // export * from './community-integrations/Formik'; // export * from './community-integrations/ReactHookForm';
<mask> export * from './theme/Custom'; <mask> export * from './theme/Mode'; <mask> export * from './theme/Responsive'; <mask> <mask> // Community integrations <mask> export * from './community-integrations/Formik'; <mask> export * from './community-integrations/ReactHookForm'; <mask> <mask> // Examples <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
// // Examples // export * from './examples';
<mask> // Community integrations <mask> export * from './community-integrations/Formik'; <mask> export * from './community-integrations/ReactHookForm'; <mask> <mask> // Examples <mask> export * from './examples'; </s> feat: added interaction feedback for radio, and ref fix </s> remove // Community integrations ...
[ "keep", "keep", "keep", "keep", "replace", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
example/storybook/stories/index.ts
<mask> import React, { useContext } from 'react'; <mask> import { default as Pressable, IPressableProps } from '../Pressable'; <mask> import { mergeRefs } from './../../../utils'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import { Center } from '../../composites/Center'; <mask> import { useFor...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
...themedProps
<mask> }, <mask> _icon, <mask> isInvalid, <mask> size, <mask> ...newProps <mask> } = useThemeProps('Checkbox', { <mask> ...checkboxGroupContext, <mask> ...formControlContext, <mask> ...props, <mask> }); </s> feat: added interaction feedback for radio, and ref fix </s> remo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
<mask> ...checkboxGroupContext, <mask> ...formControlContext, <mask> ...props, <mask> }); <mask> const _ref = React.useRef(); <mask> const mergedRef = mergeRefs([ref, _ref]); <mask> const state = useToggleState({ <mask> ...props, <mask> defaultSelected: props.defaultIsChecked, <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
...themedProps, value: themedProps.value,
<mask> const { inputProps } = groupState <mask> ? // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckboxGroupItem( <mask> { <mask> ...newProps, <mask> value: newProps.value, <mask> }, <mask> groupState.state, <mask> //@ts-ignore...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
ref
<mask> ...newProps, <mask> value: newProps.value, <mask> }, <mask> groupState.state, <mask> //@ts-ignore <mask> mergedRef <mask> ) <mask> : // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckbox( <mask> newProps, <...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
useCheckbox(themedProps, state, ref);
<mask> //@ts-ignore <mask> mergedRef <mask> ) <mask> : // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckbox( <mask> newProps, <mask> state, <mask> //@ts-ignore <mask> mergedRef <mask> ); <mask> <mask> const isCheck...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
const { checked, disabled } = inputProps;
<mask> //@ts-ignore <mask> mergedRef <mask> ); <mask> <mask> const isChecked = inputProps.checked; <mask> const isDisabled = inputProps.disabled; <mask> <mask> const sizedIcon = icon <mask> ? () => <mask> React.cloneElement( <mask> icon, </s> feat: added i...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
return (
<mask> }, <mask> icon.props.children <mask> ) <mask> : null; <mask> const nativeComponent = ( <mask> <Pressable <mask> {...(inputProps as IPressableProps)} <mask> accessibilityRole="checkbox" <mask> > <mask> {({ isPressed }: any) => { </s> feat: add...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
ref={ref}
<mask> return ( <mask> <Pressable <mask> {...(inputProps as IPressableProps)} <mask> accessibilityRole="checkbox" <mask> > <mask> {({ isPressed }: any) => { <mask> return ( </s> feat: added interaction feedback for radio, and ref fix </s> remove const nativeComponent = ( <...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
{...themedProps}
<mask> flexDirection="row" <mask> justifyContent="center " <mask> alignItems="center" <mask> borderRadius="full" <mask> ref={_ref} <mask> {...newProps} <mask> > <mask> <Center> <mask> {/* Interaction Wra...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
{...(checked && _checboxChecked)} {...(disabled && _checkboxDisabled)}
<mask> /> <mask> {/* Checkbox */} <mask> <Center <mask> {..._checkbox} <mask> {...(isChecked && _checboxChecked)} <mask> {...(isDisabled && _checkboxDisabled)} <mask> {...(isInvalid && _checkboxInvalid)} <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
{icon && sizedIcon && checked ? (
<mask> {...(isChecked && _checboxChecked)} <mask> {...(isDisabled && _checkboxDisabled)} <mask> {...(isInvalid && _checkboxInvalid)} <mask> > <mask> {icon && sizedIcon && isChecked ? ( <mask> sizedIcon() <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
opacity={checked ? 1 : 0}
<mask> <Icon <mask> name="check" <mask> size={size} <mask> {..._icon} <mask> opacity={isChecked ? 1 : 0} <mask> /> <mask> )} <mask> </Center> <mask> </Ce...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
<mask> ); <mask> }} <mask> </Pressable> <mask> ); <mask> <mask> return nativeComponent; <mask> }; <mask> <mask> export default React.memo(React.forwardRef(Checkbox)); </s> feat: added interaction feedback for radio, and ref fix </s> remove <> {Platform.OS === 'web' ? ( ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.tsx
const Checkbox = ({ children, icon, ...props }: ICheckboxProps, ref: any) => {
<mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { useCheckbox, useCheckboxGroupItem } from '@react-native-aria/checkbox'; <mask> import { useFocusRing } from '@react-native-aria/focus'; <mask> <mask> const Checkbox = ({ icon, ...props }: ICheckboxProps, ref: any) => { <mask> co...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
...themedProps
<mask> }, <mask> _icon, <mask> isInvalid, <mask> size, <mask> ...newProps <mask> } = useThemeProps('Checkbox', { <mask> ...checkboxGroupContext, <mask> ...formControlContext, <mask> ...props, <mask> }); </s> feat: added interaction feedback for radio, and ref fix
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
...themedProps, value: themedProps.value,
<mask> const { inputProps } = groupState <mask> ? // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckboxGroupItem( <mask> { <mask> ...newProps, <mask> value: newProps.value, <mask> }, <mask> groupState.state, <mask> //@ts-ignore...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
themedProps,
<mask> mergedRef <mask> ) <mask> : // eslint-disable-next-line react-hooks/rules-of-hooks <mask> useCheckbox( <mask> newProps, <mask> state, <mask> //@ts-ignore <mask> mergedRef <mask> ); <mask> </s> feat: added interaction feedback for radio, an...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
const { checked, disabled } = inputProps;
<mask> //@ts-ignore <mask> mergedRef <mask> ); <mask> <mask> const isChecked = inputProps.checked; <mask> const isDisabled = inputProps.disabled; <mask> const sizedIcon = icon <mask> ? () => <mask> React.cloneElement( <mask> icon, <mask> { </s> fe...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
{...themedProps} opacity={disabled ? 0.4 : 1} cursor={disabled ? 'not-allowed' : 'pointer'}
<mask> const component = ( <mask> <Box <mask> flexDirection="row" <mask> alignItems="center" <mask> {...newProps} <mask> opacity={isDisabled ? 0.4 : 1} <mask> cursor={isDisabled ? 'not-allowed' : 'pointer'} <mask> > <mask> <Center> <mask> {/* Interaction B...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
{...(disabled && _iterationBoxDisabled)} {...(disabled && _iterationBoxDisabled)}
<mask> <Box <mask> {..._interactionBox} <mask> {...(isFocusVisible && _iterationBoxFocus)} <mask> {...(isHovered && _iterationBoxHover)} <mask> {...(isDisabled && _iterationBoxDisabled)} <mask> style={{ <mask> // @ts-ignore - only for web" <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
{...(checked && _checkboxChecked)} {...(disabled && _checkboxDisabled)}
<mask> /> <mask> {/* Checkbox */} <mask> <Center <mask> {..._checkbox} <mask> {...(isChecked && _checkboxChecked)} <mask> {...(isDisabled && _checkboxDisabled)} <mask> {...(isInvalid && _checkboxInvalid)} <mask> > <mask> {icon &&...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
{icon && sizedIcon && checked ? (
<mask> {...(isChecked && _checkboxChecked)} <mask> {...(isDisabled && _checkboxDisabled)} <mask> {...(isInvalid && _checkboxInvalid)} <mask> > <mask> {icon && sizedIcon && isChecked ? ( <mask> sizedIcon() <mask> ) : ( <mask> <Icon...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
opacity={checked ? 1 : 0}
<mask> <Icon <mask> name="check" <mask> {..._icon} <mask> size={size} <mask> opacity={isChecked ? 1 : 0} <mask> /> <mask> )} <mask> </Center> <mask> </Center> <mask> {props.children} </s> feat: added...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
{children}
<mask> /> <mask> )} <mask> </Center> <mask> </Center> <mask> {props.children} <mask> </Box> <mask> ); <mask> <mask> return ( <mask> <Box </s> feat: added interaction feedback for radio, and ref fix </s> remove opacity={isChecked ? 1 : 0} <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Checkbox/Checkbox.web.tsx
import { default as Pressable, IPressableProps } from '../Pressable';
<mask> import React from 'react'; <mask> import { <mask> TouchableOpacity, <mask> Platform, <mask> TouchableOpacityProps, <mask> } from 'react-native'; <mask> import Icon from '../Icon'; <mask> import Box from '../Box'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import type { IRadioPr...
[ "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
import { Center } from '../../composites/Center';
<mask> import React from 'react'; <mask> import { default as Pressable, IPressableProps } from '../Pressable'; <mask> import Icon from '../Icon'; <mask> import Box from '../Box'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import type { IRadioProps } from './types'; <mask> import { useRadio } f...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
<mask> import Icon from '../Icon'; <mask> import Box from '../Box'; <mask> import { useThemeProps } from '../../../hooks'; <mask> import type { IRadioProps } from './types'; <mask> import { mergeRefs } from './../../../utils'; <mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { use...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
<mask> import type { IRadioProps } from './types'; <mask> import { mergeRefs } from './../../../utils'; <mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { useRadio } from '@react-native-aria/radio'; <mask> import { VisuallyHidden } from '@react-aria/visually-hidden'; <mask> import ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
<mask> import { useHover } from '@react-native-aria/interactions'; <mask> import { useRadio } from '@react-native-aria/radio'; <mask> import { VisuallyHidden } from '@react-aria/visually-hidden'; <mask> import { RadioContext } from './RadioGroup'; <mask> import { useFocusRing } from '@react-native-aria/focus'; <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
const contextState = React.useContext(RadioContext);
<mask> import { RadioContext } from './RadioGroup'; <mask> import { useFocusRing } from '@react-native-aria/focus'; <mask> <mask> const Radio = ({ icon, children, ...props }: IRadioProps, ref: any) => { <mask> let contextState = React.useContext(RadioContext); <mask> const { <mask> activeColor, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
_interactionBox: { _pressed: _iterationBoxPressed, ..._interactionBox }, _radio: { _checked: _radioChecked, _disabled: _radioDisabled, _invalid: _radioInvalid, ..._radio }, _icon, isInvalid,
<mask> <mask> const Radio = ({ icon, children, ...props }: IRadioProps, ref: any) => { <mask> let contextState = React.useContext(RadioContext); <mask> const { <mask> activeColor, <mask> borderColor, <mask> size, <mask> // isInvalid, <mask> ...newProps <mask> } = useThemeProps('Radi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
...themedProps
<mask> const { <mask> activeColor, <mask> borderColor, <mask> size, <mask> // isInvalid, <mask> ...newProps <mask> } = useThemeProps('Radio', { <mask> ...contextState, <mask> ...props, <mask> }); <mask> </s> feat: added interaction feedback for radio, and ref fix </s> remo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
const { inputProps } = useRadio(props, contextState.state, inputRef); const { disabled, checked } = inputProps;
<mask> ...props, <mask> }); <mask> <mask> const inputRef = React.useRef(null); <mask> let { inputProps } = useRadio(props, contextState.state, inputRef); <mask> <mask> // only calling below function when icon exist. <mask> const sizedIcon = () => <mask> //@ts-ignore <mask> React.cloneE...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
..._icon,
<mask> const sizedIcon = () => <mask> //@ts-ignore <mask> React.cloneElement(icon, { <mask> size, <mask> color: <mask> //@ts-ignore <mask> icon.props.color ?? isSelected <mask> ? inputProps.disabled <mask> ? borderColor <mask> : activeCol...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
<mask> : activeColor <mask> : borderColor, <mask> }); <mask> <mask> let isSelected = contextState.state.selectedValue === props.value; <mask> <mask> const _ref = React.useRef(null); <mask> const { isHovered } = useHover({}, _ref); <mask> const mergedRefs = mergeRefs([_ref, r...
[ "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/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
<Pressable {...(inputProps as IPressableProps)} ref={ref} accessibilityRole="radio" > {({ isPressed }: any) => { return ( <Center flexDirection="row" justifyContent="center " alignItems="center" borderRadius="full" ...
<mask> <mask> const { focusProps, isFocusVisible } = useFocusRing(); <mask> <mask> return ( <mask> <> <mask> {Platform.OS === 'web' ? ( <mask> <Box <mask> // @ts-ignore - RN web supports accessibilityRole="label" <mask> accessibilityRole="label" <mask> ref...
[ "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/c763c8519c4224e8247d398dbd096d8a52b53631
src/components/primitives/Radio/Radio.tsx
import { mode, transparentize } from '../tools';
<mask> import { mode, getColorScheme } from '../tools'; <mask> <mask> const baseStyle = (props: Record<string, any>) => { <mask> const { isInvalid } = props; <mask> const simplifiedColorScheme = getColorScheme(props); <mask> const activeColor = mode( </s> feat: added interaction feedback for radio, and re...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/theme/components/radio.ts
const { colorScheme, theme } = props;
<mask> import { mode, getColorScheme } from '../tools'; <mask> <mask> const baseStyle = (props: Record<string, any>) => { <mask> const { isInvalid } = props; <mask> const simplifiedColorScheme = getColorScheme(props); <mask> const activeColor = mode( <mask> `${simplifiedColorScheme}.500`, <mask> ...
[ "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/theme/components/radio.ts
_text: { ml: 3, fontSize: 'lg', }, _interactionBox: { position: 'absolute', zIndex: -1, borderRadius: 'full', _hover: { bg: transparentize('muted.200', 0.3)(theme), }, _focus: { bg: transparentize(`${colorScheme}.200`, 0.5)(theme), }, ...
<mask> `${simplifiedColorScheme}.500`, <mask> `${simplifiedColorScheme}.200` <mask> )(props); <mask> return { <mask> activeColor, <mask> borderColor: isInvalid <mask> ? mode('danger.500', 'danger.200')(props) <mask> : mode('muted.400', 'muted.600')(props), <mask> }; <mask> };...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c763c8519c4224e8247d398dbd096d8a52b53631
src/theme/components/radio.ts
<mask> import React from 'react'; <mask> import { Button } from 'native-base'; <mask> import { Platform } from 'react-native'; <mask> <mask> export const Example = () => { <mask> const myRef = React.useRef({}); <mask> <mask> React.useEffect(() => { </s> fix: withref example in button </s> remove if (...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c82dcbc72c8c3eafc4ac8426f526aa48821b3843
example/storybook/stories/components/primitives/Button/WithRef.tsx
borderWidth: 1, borderRadius: 4,
<mask> React.useEffect(() => { <mask> const styleObj = { <mask> backgroundColor: '#facc15', <mask> borderColor: '#CA8A04', <mask> borderWidth: '1', <mask> borderRadius: '4', <mask> }; <mask> if (Platform.OS === 'web') { <mask> //@ts-ignore <mask> myRef?.curren...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c82dcbc72c8c3eafc4ac8426f526aa48821b3843
example/storybook/stories/components/primitives/Button/WithRef.tsx
//@ts-ignore myRef?.current?.setNativeProps({ style: styleObj });
<mask> borderColor: '#CA8A04', <mask> borderWidth: '1', <mask> borderRadius: '4', <mask> }; <mask> if (Platform.OS === 'web') { <mask> //@ts-ignore <mask> myRef?.current?.setNativeProps({ style: styleObj }); <mask> } else { <mask> //@ts-ignore <mask> myRef...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c82dcbc72c8c3eafc4ac8426f526aa48821b3843
example/storybook/stories/components/primitives/Button/WithRef.tsx
_text?: Partial<ITextProps>;
<mask> // shadow?: number; <mask> /** <mask> * For providing props to Text inside Box <mask> */ <mask> _text?: ITextProps; <mask> bg?: ResponsiveValue<ColorType | (string & {}) | ILinearGradientProps>; <mask> background?: ResponsiveValue< <mask> ColorType | (string & {}) | ILinearGradientPro...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Box/types.ts
_loading?: Omit<Partial<IButtonProps>, '_loading'>;
<mask> spinnerPlacement?: 'start' | 'end'; <mask> /** <mask> * Props to be passed to the button when isLoading is true. <mask> */ <mask> _loading?: Omit<IButtonProps, '_loading'>; <mask> /** <mask> * Props to be passed to the button when button is disabled. <mask> */ <mask> _disabled?: Om...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_disabled?: Omit<Partial<IButtonProps>, '_disable'>;
<mask> _loading?: Omit<IButtonProps, '_loading'>; <mask> /** <mask> * Props to be passed to the button when button is disabled. <mask> */ <mask> _disabled?: Omit<IButtonProps, '_disable'>; <mask> /** <mask> * Props to be passed to the spinner when isLoading is true. <mask> */ <mask> _spin...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_spinner?: Partial<ISpinnerProps>;
<mask> _disabled?: Omit<IButtonProps, '_disable'>; <mask> /** <mask> * Props to be passed to the spinner when isLoading is true. <mask> */ <mask> _spinner?: ISpinnerProps; <mask> /** <mask> * Props to be passed to the button when button is hovered. <mask> */ <mask> _hover?: Omit<IButtonPr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_hover?: Omit<Partial<IButtonProps>, '_hover'>;
<mask> _spinner?: ISpinnerProps; <mask> /** <mask> * Props to be passed to the button when button is hovered. <mask> */ <mask> _hover?: Omit<IButtonProps, '_hover'>; <mask> /** <mask> * Props to be passed to the button when button is pressed. <mask> */ <mask> _pressed?: Omit<IButtonProps,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_pressed?: Omit<Partial<IButtonProps>, '_pressed'>;
<mask> _hover?: Omit<IButtonProps, '_hover'>; <mask> /** <mask> * Props to be passed to the button when button is pressed. <mask> */ <mask> _pressed?: Omit<IButtonProps, '_pressed'>; <mask> /** <mask> * Props to be passed to the button when button is focused. <mask> */ <mask> _focus?: Omi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_focus?: Omit<Partial<IButtonProps>, '_focus'>;
<mask> _pressed?: Omit<IButtonProps, '_pressed'>; <mask> /** <mask> * Props to be passed to the button when button is focused. <mask> */ <mask> _focus?: Omit<IButtonProps, '_focus'>; <mask> /** <mask> * The right icon element to use in the button. <mask> */ <mask> rightIcon?: JSX.Element ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Button/types.ts
_stack?: Partial<IStackProps>;
<mask> _interactionBox?: Omit<Partial<ICheckboxProps>, '_interactionBox'>; <mask> /** <mask> * Props to be passed to the Stack used inside. <mask> */ <mask> _stack?: IStackProps; <mask> /** <mask> * Function called when the state of the checkbox changes. <mask> */ <mask> onChange?: (isSel...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Checkbox/types.tsx
_checkbox?: Partial<ICheckboxProps>;
<mask> onChange?: (values: any) => any; <mask> /** <mask> * Pass props will be passed to each checkbox. <mask> */ <mask> _checkbox?: ICheckboxProps; <mask> } <mask> export interface ICheckboxContext extends IFormControlContext { <mask> colorScheme?: string; <mask> size?: ResponsiveValue<'sm' | ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Checkbox/types.tsx
_alt?: Partial<ITextProps>;
<mask> ignoreFallback?: boolean; <mask> /** <mask> * Text styling for alt. <mask> */ <mask> _alt?: ITextProps; <mask> /** <mask> * In event there was an error loading the src, specify a fallback JSX Element. <mask> */ <mask> fallbackElement?: JSX.Element | JSX.Element[]; <mask> /** </...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Image/types.ts
_hover?: Omit<Partial<ILinkProps>, '_hover'>;
<mask> isExternal?: boolean; <mask> /** <mask> * Hover props. Accepts all styled system props. <mask> */ <mask> _hover?: Omit<ILinkProps, '_hover'>; <mask> /** <mask> * Ref to be attached to the Link wrapper <mask> */ <mask> wrapperRef?: MutableRefObject<any>; <mask> } </s> fix: adding ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Link/types.ts
_hover?: Partial<IStackProps>;
<mask> ol?: boolean; <mask> /** <mask> * common _hover that is passed to all the children. <mask> */ <mask> _hover?: IStackProps; <mask> /** <mask> * common _focus that is passed to all the children. <mask> */ <mask> _focus?: IStackProps; <mask> /** </s> fix: adding Partial to pseudo ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/List/types.ts
_focus?: Partial<IStackProps>;
<mask> _hover?: IStackProps; <mask> /** <mask> * common _focus that is passed to all the children. <mask> */ <mask> _focus?: IStackProps; <mask> /** <mask> * common _pressed that is passed to all the children. <mask> */ <mask> _pressed?: IStackProps; <mask> /** </s> fix: adding Partia...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/List/types.ts
_pressed?: Partial<IStackProps>;
<mask> _focus?: IStackProps; <mask> /** <mask> * common _pressed that is passed to all the children. <mask> */ <mask> _pressed?: IStackProps; <mask> /** <mask> * Ordered List index starting value. <mask> * @default 0 <mask> */ <mask> start?: number; </s> fix: adding Partial to pseudo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/List/types.ts
_text?: Partial<ITextProps>;
<mask> start?: number; <mask> /** <mask> * Props to style the commonly all the List.Item's text. <mask> */ <mask> _text?: ITextProps; <mask> } <mask> <mask> export interface IListItemProps extends IPressableProps { <mask> /** <mask> * Is ListItem Unordered?. </s> fix: adding Partial to pseu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/List/types.ts
_text?: Partial<Omit<ITextProps, '_text'>>;
<mask> start?: number; <mask> /** <mask> * Props to style the child text. <mask> */ <mask> _text?: Omit<ITextProps, '_text'>; <mask> } <mask> export type IListComponentType = (( <mask> props: IListProps & { ref?: any } <mask> ) => JSX.Element) & { <mask> Item: React.MemoExoticComponent< </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/List/types.ts
_hover?: Omit<Partial<IPressableProps>, '_hover'>;
<mask> onBlur?: () => void; <mask> /** <mask> * Style props to be applied when hovered <mask> */ <mask> _hover?: Omit<IPressableProps, '_hover'>; <mask> /** <mask> * Style props to be applied when pressed <mask> */ <mask> _pressed?: Omit<IPressableProps, '_pressed'>; <mask> /** </s> f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Pressable/types.ts
_pressed?: Omit<Partial<IPressableProps>, '_pressed'>;
<mask> _hover?: Omit<IPressableProps, '_hover'>; <mask> /** <mask> * Style props to be applied when pressed <mask> */ <mask> _pressed?: Omit<IPressableProps, '_pressed'>; <mask> /** <mask> * Style props to be applied when focus <mask> */ <mask> _focus?: Omit<IPressableProps, '_focus'>; <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Pressable/types.ts
_focus?: Omit<Partial<IPressableProps>, '_focus'>;
<mask> _pressed?: Omit<IPressableProps, '_pressed'>; <mask> /** <mask> * Style props to be applied when focus <mask> */ <mask> _focus?: Omit<IPressableProps, '_focus'>; <mask> <mask> /** <mask> * Style props to be applied when disabled <mask> */ <mask> _disabled?: Omit<IPressableProps, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Pressable/types.ts
_disabled?: Omit<Partial<IPressableProps>, '_disabled'>;
<mask> <mask> /** <mask> * Style props to be applied when disabled <mask> */ <mask> _disabled?: Omit<IPressableProps, '_disabled'>; <mask> <mask> /** <mask> * If true, the p will be disabled. <mask> */ <mask> isDisabled?: boolean; </s> fix: adding Partial to pseudo props </s> remove ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Pressable/types.ts
_focusVisible?: Omit<Partial<IPressableProps>, '_focusVisible'>;
<mask> isFocusVisible?: boolean; <mask> /** <mask> * Style props to be applied when focus visible. These styles will be only applied when user is interacting the app using a keyboard. (Web only) <mask> */ <mask> _focusVisible?: Omit<IPressableProps, '_focusVisible'>; <mask> <mask> children?: <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Pressable/types.ts
_item?: Partial<IButtonProps>;
<mask> placeholderTextColor?: ResponsiveValue<IColors | (string & {})>; <mask> /** <mask> * Item props passed here will be passed to each Select.Item component. <mask> */ <mask> _item?: IButtonProps; <mask> /** <mask> * Item props passed here will be passed to the selected Select.Item component....
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Select/types.ts
_selectedItem?: Partial<IButtonProps>;
<mask> _item?: IButtonProps; <mask> /** <mask> * Item props passed here will be passed to the selected Select.Item component. <mask> */ <mask> _selectedItem?: IButtonProps; <mask> /** <mask> * Currently selected value. Useful for controlling the Select state <mask> */ <mask> selectedValue...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Select/types.ts
_hover?: Omit<Partial<ISwitchProps>, '_hover'>;
<mask> colorScheme?: string; <mask> /** <mask> * Props when Switch is hovered. Accepts all the Switch props. <mask> */ <mask> _hover?: Omit<ISwitchProps, '_hover'>; <mask> } <mask> <mask> export type ISwitchProps = InterfaceSwitchProps & CustomProps<'Switch'>; </s> fix: adding Partial to pseudo pr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c84e38416084146d60d54a70fb102f92b3f16aa1
src/components/primitives/Switch/types.ts
.add('Basic', () => <Basic />) .add('Playgroud', () => <Playground />)
<mask> <mask> storiesOf('Checkbox', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Controlled checkbox', () => <ControlledCheckbox />) <mask> .add('Uncontrolled checkbox', () => <UnControlledCheckbox />) <mask> .add('Disabl...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c92c62ddcb21c38ba88bfed711e6229462de0b3d
example/storybook/stories/components/primitives/Checkbox/index.tsx
<mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Controlled checkbox', () => <ControlledCheckbox />) <mask> .add('Uncontrolled checkbox', () => <UnControlledCheckbox />) <mask> .add('Playgroud', () => <Playground />) <mask> .add('Bas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c92c62ddcb21c38ba88bfed711e6229462de0b3d
example/storybook/stories/components/primitives/Checkbox/index.tsx
<Checkbox.Group>
<mask> import { Checkbox, Text } from 'native-base'; <mask> <mask> export default function UnControlledCheckbox() { <mask> return ( <mask> <Checkbox.Group onChange={console.log}> <mask> <Checkbox value="one"> <mask> <Text>Hello world</Text> <mask> </Checkbox> <mask> <Checkbox v...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c92c62ddcb21c38ba88bfed711e6229462de0b3d
example/storybook/stories/components/primitives/Checkbox/uncontrolledCheckbox.tsx
let state = useToggleState({ ...props, defaultSelected: props.defaultIsChecked, isSelected: props.isChecked, });
<mask> ...props, <mask> }); <mask> let _ref = React.useRef(); <mask> const mergedRef = mergeRefs([ref, _ref]); <mask> let state = useToggleState({ ...props, isSelected: props.isChecked }); <mask> let groupState = useContext(CheckboxGroupContext); <mask> const { isHovered } = useHover({}, _ref); ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/c92c62ddcb21c38ba88bfed711e6229462de0b3d
src/components/primitives/Checkbox/Checkbox.tsx
const resolvedProps = usePropsResolution('FormControl', props, { isDisabled: context.isDisabled, isReadOnly: context.isReadOnly, isInvalid: context.isInvalid, // isRequired: context.isRequired, });
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const FormControl = (props: IFormControlProps, ref: any) => { <mask> const { htmlProps, ...context } = useFormControlProvider(props); <mask> const resolvedProps = usePropsResolution('FormControl', props); <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControl.tsx
import { combineContextAndProps } from '../../../utils';
<mask> import { useFormControlContext } from './useFormControl'; <mask> import type { IFormControlErrorMessageProps } from './types'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const FormControlErrorMessage = ( <mask> props: IFormControlErrorMessageProps,...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
props: IFormControlErrorMessageProps,
<mask> import type { IFormControlErrorMessageProps } from './types'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const FormControlErrorMessage = ( <mask> { <mask> children, <mask> _disabled, <mask> rightIcon, <mask> startIcon, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
<mask> ...props <mask> }: IFormControlErrorMessageProps, <mask> ref: any <mask> ) => { <mask> const { _text, _stack, ...resolvedProps } = usePropsResolution( <mask> 'FormControlErrorMessage', <mask> props <mask> ); <mask> <mask> const formControlContext = useFormControlContext(); <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
const combinedProps = combineContextAndProps(formControlContext, props); const { leftIcon, rightIcon, children, _text, _stack, ...resolvedProps } = usePropsResolution('FormControlErrorMessage', combinedProps, { isDisabled: combinedProps.isDisabled, isReadOnly: combinedProps.isReadO...
<mask> ref: any <mask> ) => { <mask> const formControlContext = useFormControlContext(); <mask> if (rightIcon) { <mask> endIcon = rightIcon; <mask> } <mask> if (leftIcon) { <mask> startIcon = leftIcon; </s> fix: tests fixes and corresponding component changes </s> remove const { _text, _sta...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
resolvedProps?.setHasFeedbackText(true);
<mask> ); <mask> } <mask> <mask> React.useEffect(() => { <mask> formControlContext?.setHasFeedbackText(true); <mask> return () => { <mask> formControlContext?.setHasFeedbackText(false); <mask> }; <mask> }); <mask> //TODO: refactor for responsive prop </s> fix: tests fixes and c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
resolvedProps?.setHasFeedbackText(false);
<mask> <mask> React.useEffect(() => { <mask> formControlContext?.setHasFeedbackText(true); <mask> return () => { <mask> formControlContext?.setHasFeedbackText(false); <mask> }; <mask> }); <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
return resolvedProps?.isInvalid ? ( <Box nativeID={resolvedProps?.helpTextId} {...resolvedProps} ref={ref}>
<mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> return null; <mask> } <mask> return formControlContext?.isInvalid ? ( <mask> <Box <mask> nativeID={formControlContext?.helpTextId} <mask> {...resolvedProps} <mask> {...props} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlErrorMessage.tsx
import { combineContextAndProps } from '../../../utils';
<mask> import type { IFormControlHelperTextProps } from './types'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const FormControlHelperText = ( <mask> props: IFormControlHelperTextProps, <mask> ref: any <mask> ) => { <mask> const formControlContext = ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
props: IFormControlHelperTextProps,
<mask> import type { IFormControlHelperTextProps } from './types'; <mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; <mask> <mask> const FormControlHelperText = ( <mask> { children, _disabled, _invalid, ...props }: IFormControlHelperTextProps, <mask> ref: any <mask> ) => {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
const combinedProps = combineContextAndProps(formControlContext, props); const resolvedProps = usePropsResolution( 'FormControlHelperText', combinedProps, { isDisabled: combinedProps.isDisabled, isReadOnly: combinedProps.isReadOnly, isInvalid: combinedProps.isInvalid, // isRequir...
<mask> { children, _disabled, _invalid, ...props }: IFormControlHelperTextProps, <mask> ref: any <mask> ) => { <mask> const formControlContext = useFormControlContext(); <mask> <mask> const resolvedProps = usePropsResolution('FormControlHelperText', props); <mask> <mask> React.useEffect(() => { <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
resolvedProps?.setHasHelpText(true);
<mask> <mask> const resolvedProps = usePropsResolution('FormControlHelperText', props); <mask> <mask> React.useEffect(() => { <mask> formControlContext?.setHasHelpText(true); <mask> return () => { <mask> formControlContext?.setHasHelpText(false); <mask> }; <mask> }); <mask> //TODO:...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
resolvedProps?.setHasHelpText(false);
<mask> <mask> React.useEffect(() => { <mask> formControlContext?.setHasHelpText(true); <mask> return () => { <mask> formControlContext?.setHasHelpText(false); <mask> }; <mask> }); <mask> //TODO: refactor for responsive prop <mask> if (useHasResponsiveProps(props)) { <mask> retur...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
<Box {...resolvedProps} nativeID={resolvedProps?.feedbackId} ref={ref} />
<mask> return null; <mask> } <mask> <mask> return ( <mask> <Box <mask> {...resolvedProps} <mask> nativeID={formControlContext?.feedbackId} <mask> {...props} <mask> ref={ref} <mask> {...(formControlContext?.isInvalid && _invalid)} <mask> {...(formControlContext...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlHelperText.tsx
import { combineContextAndProps } from '../../../utils';
<mask> import type { IFormControlLabelProps } from './types'; <mask> import { mergeRefs } from '../../../utils'; <mask> <mask> const FormControlLabel = ( <mask> { children, ...props }: IFormControlLabelProps, <mask> ref: any <mask> ) => { </s> fix: tests fixes and corresponding component changes </s> remov...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/ca63f94d439a3678f5fee8f3ab7e55153995dda1
src/components/composites/FormControl/FormControlLabel.tsx