docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
sequencelengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
const Box = ({ children, ...props }: IBoxProps, ref: any) => {
// TextProps that contain all the props related to text and gets added to child text components using addTextAndPropsToStrings() method
let [textProps, remainingProps] = themeTools.extractInObject(props, [
'fontWeight',
'fontFamily',
'fontSize',
'color',
'textDecoration',
'txtDecor',
'wordBreak',
'textOverflow',
'textTransform',
'whiteSpace',
'overflowWrap',
]);
const boxProps = useThemeProps('Box', remainingProps); | <mask> customTypography,
<mask> customLayout
<mask> );
<mask>
<mask> const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => {
<mask> const boxProps = useThemeProps('Box', props);
<mask> return (
<mask> <StyledBox ref={ref} {...boxProps}>
<mask> {React.Children.map(children, (child) =>
<mask> typeof child === 'string' ? <Text {..._text}>{child}</Text> : child
<mask> )}
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove {React.Children.map(children, (child) =>
typeof child === 'string' ? <Text {..._text}>{child}</Text> : child
)}
</s> add {addTextAndPropsToStrings(children, textProps)} </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => {
</s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
</s> add </s> remove <Box
width="100%"
bg="orange.300"
p={4}
shadow={4}
_text={{ fontSize: 'lg' }}
>
</s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> </s> remove import Text from './../Text';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Box/index.tsx |
{addTextAndPropsToStrings(children, textProps)} | <mask> const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => {
<mask> const boxProps = useThemeProps('Box', props);
<mask> return (
<mask> <StyledBox ref={ref} {...boxProps}>
<mask> {React.Children.map(children, (child) =>
<mask> typeof child === 'string' ? <Text {..._text}>{child}</Text> : child
<mask> )}
<mask> </StyledBox>
<mask> );
<mask> };
<mask>
<mask> export type { IBoxProps };
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => {
const boxProps = useThemeProps('Box', props);
</s> add const Box = ({ children, ...props }: IBoxProps, ref: any) => {
// TextProps that contain all the props related to text and gets added to child text components using addTextAndPropsToStrings() method
let [textProps, remainingProps] = themeTools.extractInObject(props, [
'fontWeight',
'fontFamily',
'fontSize',
'color',
'textDecoration',
'txtDecor',
'wordBreak',
'textOverflow',
'textTransform',
'whiteSpace',
'overflowWrap',
]);
const boxProps = useThemeProps('Box', remainingProps); </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => {
</s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
</s> add </s> remove <Box
width="100%"
bg="orange.300"
p={4}
shadow={4}
_text={{ fontSize: 'lg' }}
>
</s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> </s> remove import Text from './../Text';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Box/index.tsx |
<mask> PositionProps,
<mask> SpaceProps,
<mask> TypographyProps,
<mask> } from 'styled-system';
<mask> import type { ITextProps } from './../Text/types';
<mask> import type {
<mask> customBackgroundProps,
<mask> customBorderProps,
<mask> customExtraProps,
<mask> customFlexboxProps,
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system';
import {
customBackground,
customBorder,
customExtra,
customLayout,
customOutline,
customPosition,
customShadow,
} from '../../../utils/customProps';
</s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove import Text from './../Text';
</s> add </s> remove import { useThemeProps } from '../../../hooks/useThemeProps';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove <Box
width="100%"
bg="orange.300"
p={4}
shadow={4}
_text={{ fontSize: 'lg' }}
>
</s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Box/types.ts |
|
<mask> BorderProps & {
<mask> style?: ViewStyle;
<mask> children?: JSX.Element | JSX.Element[] | string | any;
<mask> shadow?: number;
<mask> _text?: ITextProps;
<mask> };
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => {
</s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove import { useThemeProps } from '../../../hooks/useThemeProps';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove {React.Children.map(children, (child) =>
typeof child === 'string' ? <Text {..._text}>{child}</Text> : child
)}
</s> add {addTextAndPropsToStrings(children, textProps)} </s> remove <Box
width="100%"
bg="orange.300"
p={4}
shadow={4}
_text={{ fontSize: 'lg' }}
>
</s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Box/types.ts |
|
import { border, color, flexbox, layout, space } from 'styled-system'; | <mask> import React from 'react';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, position, space } from 'styled-system';
<mask> import {
<mask> customBackground,
<mask> customBorder,
<mask> customExtra,
<mask> customLayout,
<mask> customOutline,
<mask> customPosition,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask> import type { IButtonGroupProps } from './types';
<mask>
<mask> const StyledButtonGroup = styled.View<IButtonGroupProps>(
<mask> color,
<mask> space,
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
</s> add </s> remove import Text from './../Text';
</s> add </s> remove import { useThemeProps } from '../../../hooks/useThemeProps';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove import type { ITextProps } from './../Text/types';
</s> add | [
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Button/ButtonGroup.tsx |
<mask> space,
<mask> layout,
<mask> flexbox,
<mask> border,
<mask> position,
<mask> customPosition,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
<mask> customLayout,
<mask> { flexDirection: 'row', flexWrap: 'wrap' }
<mask> );
<mask>
<mask> export const ButtonGroup = React.memo(
<mask> ({ children, spacing, ...props }: IButtonGroupProps) => {
</s> Revert "Merge branch 'feat/api-review' into v3-dev"
This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing
changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system';
import {
customBackground,
customBorder,
customExtra,
customLayout,
customOutline,
customPosition,
customShadow,
} from '../../../utils/customProps';
</s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => {
</s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove import Text from './../Text';
</s> add </s> remove {React.Children.map(children, (child) =>
typeof child === 'string' ? <Text {..._text}>{child}</Text> : child
)}
</s> add {addTextAndPropsToStrings(children, textProps)} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90 | src/components/primitives/Button/ButtonGroup.tsx |
|
<mask> import React, { memo, forwardRef } from 'react';
<mask> import Box from '../Box';
<mask> import type { IInputProps } from './types';
<mask> import InputBase from './InputBase';
<mask> import { useFormControl } from '../../composites/FormControl';
<mask> import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
<mask> import { useHover } from '@react-native-aria/interactions';
</s> descoupling Input component - 1 </s> remove </Box>
</s> add </Stack> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/Input.tsx |
|
import { Stack } from '../Stack'; | <mask> import { useHover } from '@react-native-aria/interactions';
<mask> import { extractInObject, stylingProps } from '../../../theme/tools/utils';
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps';
<mask> import { mergeRefs } from '../../../utils';
<mask>
<mask> const Input = (
<mask> { isHovered: isHoveredProp, isFocused: isFocusedProp, ...props }: IInputProps,
<mask> ref: any
</s> descoupling Input component - 1 </s> remove import Box from '../Box';
</s> add </s> remove </Box>
</s> add </Stack> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/Input.tsx |
_stack, | <mask> rightElement,
<mask> onFocus,
<mask> onBlur,
<mask> wrapperRef,
<mask> ...resolvedProps
<mask> } = usePropsResolution(
<mask> 'Input',
<mask> {
</s> descoupling Input component - 1 </s> remove import Box from '../Box';
</s> add </s> remove </Box>
</s> add </Stack> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/Input.tsx |
<Stack {..._stack} {...layoutProps} ref={mergeRefs([_ref, wrapperRef])}> | <mask> return null;
<mask> }
<mask> if (InputLeftElement || InputRightElement || leftElement || rightElement) {
<mask> return (
<mask> <Box
<mask> display="flex"
<mask> flexDirection="row"
<mask> alignItems="center"
<mask> justifyContent="space-between"
<mask> overflow="hidden"
<mask> {...layoutProps}
<mask> ref={mergeRefs([_ref, wrapperRef])}
<mask> >
<mask> {InputLeftElement || leftElement
<mask> ? InputLeftElement || leftElement
<mask> : null}
<mask> <InputBase
<mask> InputLeftElement={InputLeftElement}
</s> descoupling Input component - 1 </s> remove </Box>
</s> add </Stack> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} </s> remove import Box from '../Box';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/Input.tsx |
</Stack> | <mask> />
<mask> {InputRightElement || rightElement
<mask> ? InputRightElement || rightElement
<mask> : null}
<mask> </Box>
<mask> );
<mask> } else {
<mask> return (
<mask> <InputBase
<mask> inputProps={inputProps}
</s> descoupling Input component - 1 </s> remove <Box
display="flex"
flexDirection="row"
alignItems="center"
justifyContent="space-between"
overflow="hidden"
{...layoutProps}
ref={mergeRefs([_ref, wrapperRef])}
>
</s> add <Stack {..._stack} {...layoutProps} ref={mergeRefs([_ref, wrapperRef])}> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} </s> remove import Box from '../Box';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/Input.tsx |
webInputBase, | <mask> fontFamily,
<mask> fontWeight,
<mask> fontStyle,
<mask> ...resolvedProps
<mask> } = usePropsResolution(
<mask> 'Input',
<mask> {
<mask> ...inputThemeProps,
</s> descoupling Input component - 1 </s> remove import Box from '../Box';
</s> add </s> remove </Box>
</s> add </Stack> </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/InputBase.tsx |
style={Platform.OS === 'web' ? webInputBase : {}} | <mask> cursor: isDisabled ? 'not-allowed' : 'auto',
<mask> }
<mask> : {})}
<mask> ref={mergeRefs([ref, _ref, wrapperRef])}
<mask> style={Platform.OS === 'web' ? { outline: 'none' } : {}}
<mask> />
<mask> );
<mask> };
<mask>
<mask> export default memo(forwardRef(InputBase));
</s> descoupling Input component - 1 </s> remove </Box>
</s> add </Stack> </s> remove <Box
display="flex"
flexDirection="row"
alignItems="center"
justifyContent="space-between"
overflow="hidden"
{...layoutProps}
ref={mergeRefs([_ref, wrapperRef])}
>
</s> add <Stack {..._stack} {...layoutProps} ref={mergeRefs([_ref, wrapperRef])}> </s> remove import Box from '../Box';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/components/primitives/Input/InputBase.tsx |
webInputBase: {
outline: 'none',
},
_stack: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
overflow: 'hidden',
}, | <mask> overflow: 'auto',
<mask> lineHeight: 'lg', // Todo: Move to _web inside size so that sm and xs don't have this much height
<mask> },
<mask> };
<mask> };
<mask>
<mask> function roundedStyle(props: Record<string, any>) {
<mask> return {
<mask> borderRadius: '25',
</s> descoupling Input component - 1 </s> remove style={Platform.OS === 'web' ? { outline: 'none' } : {}}
</s> add style={Platform.OS === 'web' ? webInputBase : {}} </s> remove </Box>
</s> add </Stack> </s> remove import Box from '../Box';
</s> add </s> remove <Box
display="flex"
flexDirection="row"
alignItems="center"
justifyContent="space-between"
overflow="hidden"
{...layoutProps}
ref={mergeRefs([_ref, wrapperRef])}
>
</s> add <Stack {..._stack} {...layoutProps} ref={mergeRefs([_ref, wrapperRef])}> | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a42c43a6a4dd1d837b582358a4aeeb3587d093bc | src/theme/components/input.ts |
_react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:208}},
item.props.label)), | <mask> _this5.props.onValueChange(item.props.value);
<mask> _this5.setState({current:item.props.label});
<mask> },__source:{fileName:_jsxFileName,lineNumber:197}},
<mask>
<mask> _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
<mask> item.props.label),
<mask>
<mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
<mask> item.props.value===_this5.props.selectedValue?
<mask> _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
<mask>
</s> Committing transpiled files after pull from branch development </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
</s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:212}}, </s> remove _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
</s> add _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:214}}): </s> remove _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
</s> add _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:216}})));},__source:{fileName:_jsxFileName,lineNumber:194}}))))); </s> remove return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:228}}));
</s> add return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:230}})); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a50a7ee1e5724de4d6b569487f1fe2a305c38863 | dist/src/basic/Picker.ios.js |
_react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:212}}, | <mask>
<mask> _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
<mask> item.props.label),
<mask>
<mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
<mask> item.props.value===_this5.props.selectedValue?
<mask> _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
<mask>
<mask> _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
<mask>
</s> Committing transpiled files after pull from branch development </s> remove _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
</s> add _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:214}}): </s> remove _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
item.props.label),
</s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:208}},
item.props.label)), </s> remove _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
</s> add _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:216}})));},__source:{fileName:_jsxFileName,lineNumber:194}}))))); </s> remove return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:228}}));
</s> add return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:230}})); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a50a7ee1e5724de4d6b569487f1fe2a305c38863 | dist/src/basic/Picker.ios.js |
_react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:214}}): | <mask> item.props.label),
<mask>
<mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
<mask> item.props.value===_this5.props.selectedValue?
<mask> _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
<mask>
<mask> _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
<mask>
<mask>
<mask>
</s> Committing transpiled files after pull from branch development </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
</s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:212}}, </s> remove _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
</s> add _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:216}})));},__source:{fileName:_jsxFileName,lineNumber:194}}))))); </s> remove _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
item.props.label),
</s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:208}},
item.props.label)), </s> remove return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:228}}));
</s> add return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:230}})); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a50a7ee1e5724de4d6b569487f1fe2a305c38863 | dist/src/basic/Picker.ios.js |
_react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:216}})));},__source:{fileName:_jsxFileName,lineNumber:194}}))))); | <mask> _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
<mask> item.props.value===_this5.props.selectedValue?
<mask> _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
<mask>
<mask> _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
<mask>
<mask>
<mask>
<mask>
<mask>
</s> Committing transpiled files after pull from branch development </s> remove _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
</s> add _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:214}}): </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
</s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:212}}, </s> remove _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
item.props.label),
</s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:208}},
item.props.label)), </s> remove return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:228}}));
</s> add return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:230}})); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a50a7ee1e5724de4d6b569487f1fe2a305c38863 | dist/src/basic/Picker.ios.js |
return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:230}})); | <mask>
<mask>
<mask> PickerNB.Item=(0,_createReactClass2.default)({displayName:"Item",
<mask> render:function render(){
<mask> return _react2.default.createElement(_reactNative.Picker.Item,_extends({},this.props(),{__source:{fileName:_jsxFileName,lineNumber:228}}));
<mask> }});
<mask>
<mask>
<mask> PickerNB.propTypes=_extends({},
<mask> _reactNative.ViewPropTypes,{
</s> Committing transpiled files after pull from branch development </s> remove _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:214}})));},__source:{fileName:_jsxFileName,lineNumber:194}})))));
</s> add _react2.default.createElement(_Radio.Radio,{selected:false,__source:{fileName:_jsxFileName,lineNumber:216}})));},__source:{fileName:_jsxFileName,lineNumber:194}}))))); </s> remove _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:212}}):
</s> add _react2.default.createElement(_Radio.Radio,{selected:true,__source:{fileName:_jsxFileName,lineNumber:214}}): </s> remove _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:210}},
</s> add _react2.default.createElement(_Right.Right,{__source:{fileName:_jsxFileName,lineNumber:212}}, </s> remove _react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:207}},
item.props.label),
</s> add _react2.default.createElement(_Left.Left,{__source:{fileName:_jsxFileName,lineNumber:207}},
_react2.default.createElement(_Text.Text,{style:_this5.props.itemTextStyle,__source:{fileName:_jsxFileName,lineNumber:208}},
item.props.label)), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a50a7ee1e5724de4d6b569487f1fe2a305c38863 | dist/src/basic/Picker.ios.js |
const Link = (props: ILinkProps, ref: any) => { | <mask> import { mergeRefs } from '../../../utils';
<mask> import { Pressable } from '../Pressable';
<mask> import { useHover } from '@react-native-aria/interactions';
<mask>
<mask> const Link = (
<mask> { href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
<mask> ref: any
<mask> ) => {
<mask> let { _hover, children, _text, ...remainingProps } = usePropsResolution(
<mask> 'Link',
<mask> props
<mask> );
<mask> const _ref = React.useRef(null);
<mask> const { isHovered } = useHover({}, _ref);
<mask> const { linkProps } = useLink({ href, onPress, isExternal, _ref });
<mask>
<mask> const linkTextProps = {
</s> feat: new prop resolution changes in link </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove const baseStyle = {
width: 'auto',
height: 'auto',
</s> add const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
const {
isUnderlined,
children,
_text,
href,
onPress,
isExternal,
...resolvedProps
} = usePropsResolution('Link', props, { isHovered }); | <mask> const Link = (props: ILinkProps, ref: any) => {
<mask> const _ref = React.useRef(null);
<mask> const { isHovered } = useHover({}, _ref);
<mask> const { linkProps } = useLink({ href, onPress, isExternal, _ref });
<mask>
<mask> const linkTextProps = {
<mask> textDecorationLine: isUnderlined ? 'underline' : 'none',
<mask> ..._text,
</s> feat: new prop resolution changes in link </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { </s> remove const baseStyle = {
width: 'auto',
height: 'auto',
</s> add const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove {...remainingProps}
</s> add {...resolvedProps} | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
<mask> const linkTextProps = {
<mask> textDecorationLine: isUnderlined ? 'underline' : 'none',
<mask> ..._text,
<mask> };
<mask> function getHoverProps() {
<mask> let hoverTextProps = {
<mask> ...linkTextProps,
<mask> ..._hover?._text,
<mask> };
<mask> return {
<mask> ...hoverTextProps,
<mask> };
<mask> }
<mask> return (
<mask> <>
<mask> {/* On web we render Link in anchor tag */}
<mask> {Platform.OS === 'web' ? (
<mask> <Box
</s> feat: new prop resolution changes in link </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove const baseStyle = {
width: 'auto',
height: 'auto',
</s> add const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
|
{...resolvedProps} | <mask> {/* On web we render Link in anchor tag */}
<mask> {Platform.OS === 'web' ? (
<mask> <Box
<mask> {...linkProps}
<mask> {...remainingProps}
<mask> _text={linkTextProps}
<mask> {...(isHovered && getHoverProps())}
<mask> ref={mergeRefs([ref, _ref])}
<mask> flexDirection="row"
<mask> >
</s> feat: new prop resolution changes in link </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove {...(isHovered && getHoverProps())}
</s> add </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
<mask> <Box
<mask> {...linkProps}
<mask> {...remainingProps}
<mask> _text={linkTextProps}
<mask> {...(isHovered && getHoverProps())}
<mask> ref={mergeRefs([ref, _ref])}
<mask> flexDirection="row"
<mask> >
<mask> {children}
<mask> </Box>
</s> feat: new prop resolution changes in link </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
|
{...resolvedProps} | <mask> </Box>
<mask> ) : (
<mask> <Pressable
<mask> {...linkProps}
<mask> {...remainingProps}
<mask> ref={ref}
<mask> flexDirection="row"
<mask> >
<mask> {React.Children.map(children, (child) =>
<mask> typeof child === 'string' ? (
</s> feat: new prop resolution changes in link </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> </s> remove {...(isHovered && getHoverProps())}
</s> add </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
<Text {...resolvedProps._text} {...linkTextProps}> | <mask> flexDirection="row"
<mask> >
<mask> {React.Children.map(children, (child) =>
<mask> typeof child === 'string' ? (
<mask> <Text {...remainingProps._text} {...linkTextProps}>
<mask> {child}
<mask> </Text>
<mask> ) : (
<mask> child
<mask> )
</s> feat: new prop resolution changes in link </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove {...remainingProps}
</s> add {...resolvedProps} </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { </s> remove const baseStyle = {
width: 'auto',
height: 'auto',
</s> add const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/components/primitives/Link/index.tsx |
const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; | <mask> const baseStyle = {
<mask> width: 'auto',
<mask> height: 'auto',
<mask> };
<mask>
<mask> export default {
<mask> baseStyle,
<mask> };
</s> feat: new prop resolution changes in link </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> | [
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/theme/components/link.ts |
defaultProps: {
isUnderlined: true,
}, | <mask>
<mask> export default {
<mask> baseStyle,
<mask> };
</s> feat: new prop resolution changes in link </s> remove const baseStyle = {
width: 'auto',
height: 'auto',
</s> add const baseStyle = (props: Record<string, any>) => {
const { isUnderlined } = props;
return {
_text: {
textDecorationLine: isUnderlined ? 'underline' : 'none',
},
width: 'auto',
height: 'auto',
}; </s> remove function getHoverProps() {
let hoverTextProps = {
...linkTextProps,
..._hover?._text,
};
return {
...hoverTextProps,
};
}
</s> add </s> remove const Link = (
{ href, isUnderlined = false, onPress, isExternal, ...props }: ILinkProps,
ref: any
) => {
let { _hover, children, _text, ...remainingProps } = usePropsResolution(
'Link',
props
);
</s> add const Link = (props: ILinkProps, ref: any) => { </s> remove <Text {...remainingProps._text} {...linkTextProps}>
</s> add <Text {...resolvedProps._text} {...linkTextProps}> | [
"keep",
"keep",
"add",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a5f0b21f3c7f86f23fed4e01bb42d67a60d8d4ab | src/theme/components/link.ts |
TouchableNativeFeedback,
StyleSheet | <mask> import {
<mask> TouchableOpacity,
<mask> Platform,
<mask> View,
<mask> TouchableNativeFeedback
<mask> } from "react-native";
<mask> import { connectStyle } from "native-base-shoutem-theme";
<mask> import variable from "./../theme/variables/platform";
<mask> import { Text } from "./Text";
<mask> import computeProps from "../Utils/computeProps";
</s> Attempt to fix issue - Ripple/Highlight effect on a rounded Button does not respect border radius
Alternate PR for #1528 </s> remove return (
<TouchableNativeFeedback
ref={c => (this._root = c)}
onPress={this.props.onPress}
{...this.prepareRootProps()}
>
<View {...this.prepareRootProps()}>{children}</View>
</TouchableNativeFeedback>
);
</s> add if(this.props.rounded){
let buttonStyle = { ...this.prepareRootProps().style };
let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
return (
<View style={[buttonStyle, { paddingTop: undefined, paddingBottom: undefined,flex:buttonFlex }]} >
<TouchableNativeFeedback
ref={c => (this._root = c)}
background={
this.props.androidRippleColor
? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
}
{ ...this.prepareRootProps() }
>
<View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height,flexGrow:buttonFlex }]}>
{children}
</View>
</TouchableNativeFeedback>
</View >
);
} else {
return (
<TouchableNativeFeedback
ref={c => (this._root = c)}
onPress={this.props.onPress}
{...this.prepareRootProps()}
>
<View {...this.prepareRootProps()}>{children}</View>
</TouchableNativeFeedback>
);
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6431656e46bdd73d087344938dff654f73cfc16 | src/basic/Button.js |
if(this.props.rounded){
let buttonStyle = { ...this.prepareRootProps().style };
let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
return (
<View style={[buttonStyle, { paddingTop: undefined, paddingBottom: undefined,flex:buttonFlex }]} >
<TouchableNativeFeedback
ref={c => (this._root = c)}
background={
this.props.androidRippleColor
? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
}
{ ...this.prepareRootProps() }
>
<View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height,flexGrow:buttonFlex }]}>
{children}
</View>
</TouchableNativeFeedback>
</View >
);
} else {
return (
<TouchableNativeFeedback
ref={c => (this._root = c)}
onPress={this.props.onPress}
{...this.prepareRootProps()}
>
<View {...this.prepareRootProps()}>{children}</View>
</TouchableNativeFeedback>
);
} | <mask> {children}
<mask> </TouchableOpacity>
<mask> );
<mask> } else {
<mask> return (
<mask> <TouchableNativeFeedback
<mask> ref={c => (this._root = c)}
<mask> onPress={this.props.onPress}
<mask> {...this.prepareRootProps()}
<mask> >
<mask> <View {...this.prepareRootProps()}>{children}</View>
<mask> </TouchableNativeFeedback>
<mask> );
<mask> }
<mask> }
<mask> }
<mask>
<mask> Button.propTypes = {
</s> Attempt to fix issue - Ripple/Highlight effect on a rounded Button does not respect border radius
Alternate PR for #1528 </s> remove TouchableNativeFeedback
</s> add TouchableNativeFeedback,
StyleSheet | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6431656e46bdd73d087344938dff654f73cfc16 | src/basic/Button.js |
const styles = StyleSheet.create({
childContainer: {
flexShrink: 1,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center'
},
});
| <mask> small: PropTypes.bool,
<mask> active: PropTypes.bool
<mask> };
<mask>
<mask> const StyledButton = connectStyle(
<mask> "NativeBase.Button",
<mask> {},
<mask> mapPropsToStyleNames
</s> Attempt to fix issue - Ripple/Highlight effect on a rounded Button does not respect border radius
Alternate PR for #1528 </s> remove return (
<TouchableNativeFeedback
ref={c => (this._root = c)}
onPress={this.props.onPress}
{...this.prepareRootProps()}
>
<View {...this.prepareRootProps()}>{children}</View>
</TouchableNativeFeedback>
);
</s> add if(this.props.rounded){
let buttonStyle = { ...this.prepareRootProps().style };
let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;
return (
<View style={[buttonStyle, { paddingTop: undefined, paddingBottom: undefined,flex:buttonFlex }]} >
<TouchableNativeFeedback
ref={c => (this._root = c)}
background={
this.props.androidRippleColor
? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)
: TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)
}
{ ...this.prepareRootProps() }
>
<View style={[styles.childContainer, { paddingTop: buttonStyle.paddingTop, paddingBottom: buttonStyle.paddingBottom, height: buttonStyle.height,flexGrow:buttonFlex }]}>
{children}
</View>
</TouchableNativeFeedback>
</View >
);
} else {
return (
<TouchableNativeFeedback
ref={c => (this._root = c)}
onPress={this.props.onPress}
{...this.prepareRootProps()}
>
<View {...this.prepareRootProps()}>{children}</View>
</TouchableNativeFeedback>
);
} </s> remove TouchableNativeFeedback
</s> add TouchableNativeFeedback,
StyleSheet | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6431656e46bdd73d087344938dff654f73cfc16 | src/basic/Button.js |
interface ScrollableTab {
goToPage?: Function;
activeTab?: number;
tabs?: Array<any>;
backgroundColor?: string;
activeTextColor?: string;
inactiveTextColor?: string;
scrollOffset?: number;
style?: ReactNative.ViewStyle;
tabStyle?: ReactNative.ViewStyle;
tabsContainerStyle?: ReactNative.ViewStyle;
renderTab?: Function;
underlineStyle?: ReactNative.ViewStyle;
onScroll?: Function;
}
| <mask> tweenHandler?: Function;
<mask> type?: "overlay" | "static" | "displace";
<mask> }
<mask> /**
<mask> * see Widget Tabs.js
<mask> */
<mask> interface Tabs {
</s> Fix for issue #1517
Issue : Typescript declaration file missing ScrollableTab | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6546fb6cd19d8b6614eb48a11d7d2c7adf4457d | index.d.ts |
renderTabBar?: Function; | <mask> */
<mask> interface Tabs {
<mask> tabBarPosition?: "top" | "bottom";
<mask> edgeHitWidth?: number;
<mask> springTension?: number;
<mask> springFriction?: number;
</s> Fix for issue #1517
Issue : Typescript declaration file missing ScrollableTab | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6546fb6cd19d8b6614eb48a11d7d2c7adf4457d | index.d.ts |
* NativeBase.ScrollableTab
*/
export class ScrollableTab extends React.Component<NativeBase.ScrollableTab, any> { }
/** | <mask> */
<mask> export class Drawer extends React.Component<NativeBase.Drawer, any> {}
<mask> /**
<mask> * NativeBase.Tabs
<mask> *
<mask> * Tabs are a horizontal region of buttons or links that allow for a consistent navigation experience between screens.
<mask> * It can contain any combination of text and icons, and is a popular method for enabling mobile navigation.
<mask> */
<mask> export class Tabs extends React.Component<NativeBase.Tabs, any> {}
</s> Fix for issue #1517
Issue : Typescript declaration file missing ScrollableTab | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6546fb6cd19d8b6614eb48a11d7d2c7adf4457d | index.d.ts |
onClose?: (reason: "user" | "timeout") => any; | <mask> buttonText?: string;
<mask> position: "top" | "bottom" | "center";
<mask> type?: "danger" | "success" | "warning";
<mask> duration?: number;
<mask> onClose?: Function;
<mask> textStyle?: object;
<mask> }): void;
<mask> }
<mask> }
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove onClose();
</s> add onClose(reason); </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | index.d.ts |
<mask> // If we have a toast already open, cut off its close timeout so that it won't affect *this* toast.
<mask> if (this.closeTimeout) {
<mask> clearTimeout(this.closeTimeout)
<mask> }
<mask> const duration = (config.duration > 0) ? config.duration : 1500;
<mask> // Set the toast to close after the duration.
<mask> this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
<mask> // Fade the toast in now.
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 1,
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove onClose();
</s> add onClose(reason); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
|
if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} | <mask> clearTimeout(this.closeTimeout)
<mask> }
<mask> const duration = (config.duration > 0) ? config.duration : 1500;
<mask> // Set the toast to close after the duration.
<mask> this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
<mask> // Fade the toast in now.
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 1,
<mask> duration: 200
<mask> }).start();
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove onClose();
</s> add onClose(reason); </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
closeModal(reason) { | <mask> toValue: 1,
<mask> duration: 200
<mask> }).start();
<mask> }
<mask> closeModal() {
<mask> this.setState({
<mask> modalVisible: false
<mask> });
<mask> const { onClose } = this.state;
<mask> if(onClose && typeof onClose === "function") {
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove onClose();
</s> add onClose(reason); </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
onClose(reason); | <mask> modalVisible: false
<mask> });
<mask> const { onClose } = this.state;
<mask> if(onClose && typeof onClose === "function") {
<mask> onClose();
<mask> }
<mask> }
<mask> closeToast() {
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 0,
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
closeToast(reason) { | <mask> if(onClose && typeof onClose === "function") {
<mask> onClose();
<mask> }
<mask> }
<mask> closeToast() {
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 0,
<mask> duration: 200
<mask> }).start(this.closeModal.bind(this));
<mask> }
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove onClose();
</s> add onClose(reason); </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
}).start(this.closeModal.bind(this, reason)); | <mask> closeToast() {
<mask> Animated.timing(this.state.fadeAnim, {
<mask> toValue: 0,
<mask> duration: 200
<mask> }).start(this.closeModal.bind(this));
<mask> }
<mask> render() {
<mask> if (this.state.modalVisible) {
<mask> return (
<mask> <Animated.View style={this.getToastStyle()}>
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove closeToast() {
</s> add closeToast(reason) { </s> remove onClose();
</s> add onClose(reason); </s> remove closeModal() {
</s> add closeModal(reason) { </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
onPress={() => this.closeToast('user')} | <mask> <Text style={this.state.textStyle}>{this.state.text}</Text>
<mask> {this.state.buttonText && (
<mask> <Button
<mask> style={this.state.buttonStyle}
<mask> onPress={() => this.closeToast()}
<mask> >
<mask> <Text style={this.state.buttonTextStyle}>
<mask> {this.state.buttonText}
<mask> </Text>
<mask> </Button>
</s> Add the reason of toast was closed and if duration is 0 disable dismiss timeout </s> remove }).start(this.closeModal.bind(this));
</s> add }).start(this.closeModal.bind(this, reason)); </s> remove onClose?: Function;
</s> add onClose?: (reason: "user" | "timeout") => any; </s> remove this.closeTimeout = setTimeout(this.closeToast.bind(this), duration);
</s> add if (config.duration !== 0) {
const duration = (config.duration > 0) ? config.duration : 1500;
this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);
} </s> remove const duration = (config.duration > 0) ? config.duration : 1500;
</s> add </s> remove closeToast() {
</s> add closeToast(reason) { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a6ef698b51a4f7bc54ba0d1b7fa4e0258fdf9aa2 | src/basic/ToastContainer.js |
import type { IActionsheetProps } from './types'; | <mask> import React from 'react';
<mask> import { default as Modal, ModalOverlay } from '../Modal';
<mask> import type { IActionsheetProps } from './props';
<mask> import { omitUndefined } from '../../../theme/tools/utils';
<mask>
<mask> const Actionsheet = ({ children, ...props }: IActionsheetProps) => {
<mask> const { isOpen, disableOverlay, onClose, ...newProps } = omitUndefined(props);
<mask> return (
</s> Changed props file to types </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; </s> remove import type { IFabProps } from './props';
</s> add import type { IFabProps } from './types'; </s> remove import type { IActionsheetFooterProps } from './props';
</s> add import type { IActionsheetFooterProps } from './types'; </s> remove import type { IActionsheetContentProps } from './props';
</s> add import type { IActionsheetContentProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/Actionsheet.tsx |
import type { IActionsheetContentProps } from './types'; | <mask> import React from 'react';
<mask> import { ModalContent } from '../Modal';
<mask> import type { IActionsheetContentProps } from './props';
<mask>
<mask> const ActionsheetContent = ({
<mask> children,
<mask> ...props
<mask> }: IActionsheetContentProps) => {
</s> Changed props file to types </s> remove import type { IActionsheetFooterProps } from './props';
</s> add import type { IActionsheetFooterProps } from './types'; </s> remove import type { IActionsheetProps } from './props';
</s> add import type { IActionsheetProps } from './types'; </s> remove import type { ITabsProps } from './props';
</s> add import type { ITabsProps } from './types'; </s> remove import type { ISlideFadeProps } from './props';
</s> add import type { ISlideFadeProps } from './types'; </s> remove import type { IFadeProps } from './props';
</s> add import type { IFadeProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/ActionsheetContent.tsx |
import type { IActionsheetFooterProps } from './types'; | <mask> import React from 'react';
<mask> import { ModalContent } from '../Modal';
<mask> import type { IActionsheetFooterProps } from './props';
<mask>
<mask> const ActionsheetFooter = ({ children, ...props }: IActionsheetFooterProps) => {
<mask> return (
<mask> <ModalContent m={3} p={2} mb={6} borderRadius="lg" {...props}>
<mask> {children}
</s> Changed props file to types </s> remove import type { IActionsheetContentProps } from './props';
</s> add import type { IActionsheetContentProps } from './types'; </s> remove import type { IActionsheetProps } from './props';
</s> add import type { IActionsheetProps } from './types'; </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/ActionsheetFooter.tsx |
import type { IActionsheetHeaderProps } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import type { IActionsheetHeaderProps } from './props';
<mask> import { omitUndefined } from '../../../theme/tools/utils';
<mask>
<mask> const ActionsheetHeader = ({ children, ...props }: IActionsheetHeaderProps) => {
<mask> const newProps = omitUndefined(props);
<mask> return (
</s> Changed props file to types </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; </s> remove import type { IActionsheetProps } from './props';
</s> add import type { IActionsheetProps } from './types'; </s> remove import type { IFabProps } from './props';
</s> add import type { IFabProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { ITabProps, ITabsContextProps } from './props';
</s> add import type { ITabProps, ITabsContextProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/ActionsheetHeader.tsx |
import type { IActionsheetItemProps } from './types'; | <mask> import React from 'react';
<mask> import Button from '../../primitives/Button';
<mask> import type { IActionsheetItemProps } from './props';
<mask> import { omitUndefined } from '../../../theme/tools/utils';
<mask>
<mask> const ActionsheetItem = ({ children, ...props }: IActionsheetItemProps) => {
<mask> const newProps = omitUndefined(props);
<mask> return (
</s> Changed props file to types </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetProps } from './props';
</s> add import type { IActionsheetProps } from './types'; </s> remove import type { IFabProps } from './props';
</s> add import type { IFabProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { ITabProps, ITabsContextProps } from './props';
</s> add import type { ITabProps, ITabsContextProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/ActionsheetItem.tsx |
} from './types'; | <mask> IActionsheetContentProps,
<mask> IActionsheetFooterProps,
<mask> IActionsheetHeaderProps,
<mask> IActionsheetItemProps,
<mask> } from './props';
</s> Changed props file to types </s> remove } from './props';
</s> add } from './types'; </s> remove } from './props';
</s> add } from './types'; </s> remove } from './props';
</s> add } from './types'; </s> remove
import type { IModalProps, IModalSemiProps } from './props';
</s> add </s> remove customShadow,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Actionsheet/index.tsx |
import type { IAlertProps } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IAlertProps } from './props';
<mask> import { AlertContext } from './Context';
<mask>
<mask> const Alert = ({ children, ...props }: IAlertProps) => {
<mask> const { status, variant, iconColor, textColor, ...newProps } = useThemeProps(
<mask> 'Alert',
</s> Changed props file to types </s> remove import type { ITabsProps } from './props';
</s> add import type { ITabsProps } from './types'; </s> remove import type { IScaleFadeProps } from './props';
</s> add import type { IScaleFadeProps } from './types'; </s> remove import type { IAvatarBadgeProps } from './props';
</s> add import type { IAvatarBadgeProps } from './types'; </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; </s> remove import type { ISlideFadeProps } from './props';
</s> add import type { ISlideFadeProps } from './types'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Alert/Alert.tsx |
export type { IAlertProps, IAlertContext } from './types'; | <mask> export { AlertContext } from './Context';
<mask> export { default as AlertDescription } from './AlertDescription';
<mask> export { default as AlertIcon } from './AlertIcon';
<mask> export { default as AlertTitle } from './AlertTitle';
<mask> export type { IAlertProps, IAlertContext } from './props';
</s> Changed props file to types </s> remove export { default as NumberIncrementStepper } from './NumberIncrementStepper';
export { default as NumberDecrementStepper } from './NumberDecrementStepper';
</s> add </s> remove export { default as NumberInput } from './NumberInput';
</s> add </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; </s> remove export type { IFabProps } from './props';
</s> add export type { IFabProps } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Alert/index.tsx |
import type { IAvatarProps } from './types'; | <mask> import React from 'react';
<mask> import styled from 'styled-components/native';
<mask> import { Box, Image, Text } from '../../primitives';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IAvatarProps } from './props';
<mask>
<mask> const initials = (name: string) => {
<mask> const [firstName, lastName] = name.split(' ');
<mask> return firstName && lastName
<mask> ? `${firstName.charAt(0)}${lastName.charAt(0)}`
</s> Changed props file to types </s> remove import type { ISimpleGridProps } from './props';
</s> add import type { ISimpleGridProps } from './types'; </s> remove import type { IKbdProps } from './props';
</s> add import type { IKbdProps } from './types'; </s> remove import { useThemeProps } from '../../../hooks';
import type { ISkeletonTextProps } from './props';
</s> add import type { ISkeletonTextProps } from './types'; </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICodeProps } from './props';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Avatar/Avatar.tsx |
import type { IAvatarBadgeProps } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IAvatarBadgeProps } from './props';
<mask>
<mask> const AvatarBadge = (props: IAvatarBadgeProps) => {
<mask> const { boxSize, ...newProps } = useThemeProps('AvatarBadge', props);
<mask> return (
<mask> <Box
</s> Changed props file to types </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { IFabProps } from './props';
</s> add import type { IFabProps } from './types'; </s> remove import type { IAlertProps } from './props';
</s> add import type { IAlertProps } from './types'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Avatar/Badge.tsx |
import type { IAvatarProps } from './types'; | <mask> import React from 'react';
<mask> import Flex from '../../primitives/Flex';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import isNil from 'lodash/isNil';
<mask> import type { IAvatarProps } from './props';
<mask> import { default as Avatar } from './Avatar';
<mask>
<mask> const getAvatarGroupChildren = (
<mask> children?: JSX.Element[] | JSX.Element,
<mask> spacing?: number,
</s> Changed props file to types </s> remove import isNil from 'lodash/isNil';
</s> add </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import { color, border } from 'styled-system';
import { useThemeProps, useTheme } from '../../../hooks';
</s> add import { border, color } from 'styled-system';
import { useTheme, useThemeProps } from '../../../hooks'; </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Avatar/Group.tsx |
export type { IAvatarProps, IAvatarBadgeProps } from './types'; | <mask> export { default as Avatar } from './Avatar';
<mask> export { default as AvatarBadge } from './Badge';
<mask> export { default as AvatarGroup } from './Group';
<mask> export type { IAvatarProps, IAvatarBadgeProps } from './props';
</s> Changed props file to types </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; </s> remove export { default as NumberIncrementStepper } from './NumberIncrementStepper';
export { default as NumberDecrementStepper } from './NumberDecrementStepper';
</s> add </s> remove export type { IFabProps } from './props';
</s> add export type { IFabProps } from './types'; </s> remove export type { IAlertProps, IAlertContext } from './props';
</s> add export type { IAlertProps, IAlertContext } from './types'; | [
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Avatar/index.tsx |
import type { IBadgeProps } from './types'; | <mask> import React from 'react';
<mask> import styled from 'styled-components/native';
<mask> import Box from '../../primitives/Box';
<mask> import type { IBadgeProps } from './props';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const StyledBadge = styled(Box)<IBadgeProps>({});
<mask>
<mask> const Badge = ({ children, style, ...props }: IBadgeProps) => {
</s> Changed props file to types </s> remove import Box from '../../primitives/Box';
import type { ICodeProps } from './props';
</s> add </s> remove import type { ITabsProps } from './props';
</s> add import type { ITabsProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import Box from '../../primitives/Box';
</s> add | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Badge/index.tsx |
import type { IBreadcrumbProps } from './types'; | <mask> import React from 'react';
<mask> import Flex from '../../primitives/Flex';
<mask> import type { IBreadcrumbProps } from './props';
<mask>
<mask> const BreadcrumbItem = (
<mask> props: IBreadcrumbProps & { isCurrentPage?: boolean }
<mask> ) => {
<mask> const { children, isCurrentPage, ...remainingProps } = props;
</s> Changed props file to types </s> remove import { useThemeProps } from '../../../hooks';
export { default as BreadcrumbItem } from './BreadcrumbItem';
export { BreadcrumbLink };
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import type { ISkeletonProps } from './props';
</s> add import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/BreadcrumbItem.tsx |
<mask> import React from 'react';
<mask> import isNil from 'lodash/isNil';
<mask> import Text from '../../primitives/Text';
<mask>
<mask> export const getBreadcrumbSeparator = (
<mask> children: JSX.Element[] | JSX.Element | any,
<mask> separator: string | JSX.Element | JSX.Element[] | any,
</s> Changed props file to types </s> remove import get from 'lodash/get';
</s> add import { Box, IBoxProps, ITextProps, Text } from '../../primitives'; </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import { color, border } from 'styled-system';
import { useThemeProps, useTheme } from '../../../hooks';
</s> add import { border, color } from 'styled-system';
import { useTheme, useThemeProps } from '../../../hooks'; </s> remove import type { IFormLabelProps, IFormControlContext } from './props';
</s> add import type { IFormLabelProps, IFormControlContext } from './types'; </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/BreadcrumbSeparator.tsx |
|
<Text mx={spacing ?? 2}>{separator}</Text> | <mask> return children;
<mask> }
<mask> const separatorElement = separator ? (
<mask> typeof separator === 'string' ? (
<mask> <Text mx={!isNil(spacing) ? spacing : 2}>{separator}</Text>
<mask> ) : (
<mask> React.cloneElement(separator, {
<mask> mx: !isNil(spacing) ? spacing : 2,
<mask> })
<mask> )
</s> Changed props file to types </s> remove mx: !isNil(spacing) ? spacing : 2,
</s> add mx: spacing ?? 2, </s> remove <Text mx={!isNil(spacing) ? spacing : 2}>{'/'}</Text>
</s> add <Text mx={spacing ?? 2}>{'/'}</Text> </s> remove import type { ITabsContextProps, ITabViewProps } from './props';
</s> add import type { ITabsContextProps, ITabViewProps } from './types'; </s> remove import type { ISimpleGridProps } from './props';
</s> add import type { ISimpleGridProps } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/BreadcrumbSeparator.tsx |
mx: spacing ?? 2, | <mask> typeof separator === 'string' ? (
<mask> <Text mx={!isNil(spacing) ? spacing : 2}>{separator}</Text>
<mask> ) : (
<mask> React.cloneElement(separator, {
<mask> mx: !isNil(spacing) ? spacing : 2,
<mask> })
<mask> )
<mask> ) : (
<mask> <Text mx={!isNil(spacing) ? spacing : 2}>{'/'}</Text>
<mask> );
</s> Changed props file to types </s> remove <Text mx={!isNil(spacing) ? spacing : 2}>{separator}</Text>
</s> add <Text mx={spacing ?? 2}>{separator}</Text> </s> remove <Text mx={!isNil(spacing) ? spacing : 2}>{'/'}</Text>
</s> add <Text mx={spacing ?? 2}>{'/'}</Text> </s> remove import type { ITabsContextProps, ITabViewProps } from './props';
</s> add import type { ITabsContextProps, ITabViewProps } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { ISimpleGridProps } from './props';
</s> add import type { ISimpleGridProps } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/BreadcrumbSeparator.tsx |
<Text mx={spacing ?? 2}>{'/'}</Text> | <mask> mx: !isNil(spacing) ? spacing : 2,
<mask> })
<mask> )
<mask> ) : (
<mask> <Text mx={!isNil(spacing) ? spacing : 2}>{'/'}</Text>
<mask> );
<mask> let result: any = [];
<mask> if (children && children.length > 1) {
<mask> result = children.reduce(
<mask> (r: any[], a: any) => r.concat(a, separatorElement),
</s> Changed props file to types </s> remove mx: !isNil(spacing) ? spacing : 2,
</s> add mx: spacing ?? 2, </s> remove <Text mx={!isNil(spacing) ? spacing : 2}>{separator}</Text>
</s> add <Text mx={spacing ?? 2}>{separator}</Text> </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/BreadcrumbSeparator.tsx |
import { useThemeProps } from '../../../hooks'; | <mask> import React from 'react';
<mask> import { Flex, Link as BreadcrumbLink } from '../../primitives';
<mask> import type { IBreadcrumbProps } from './props';
<mask> import { extractInObject } from '../../../theme/tools';
<mask> import { getBreadcrumbSeparator } from './BreadcrumbSeparator';
<mask> import { useThemeProps } from '../../../hooks';
<mask> export { default as BreadcrumbItem } from './BreadcrumbItem';
<mask> export { BreadcrumbLink };
</s> Changed props file to types </s> remove import { useThemeProps } from '../../../hooks';
export { default as BreadcrumbItem } from './BreadcrumbItem';
export { BreadcrumbLink };
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import { ITypeaheadProps, layoutPropsList } from './props';
</s> add import { ITypeaheadProps, layoutPropsList } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks';
import { Box, View, IBoxProps } from '../../primitives';
</s> add import { Box, IBoxProps, View } from '../../primitives';
import type { IModalProps, IModalSemiProps } from './types'; | [
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/index.tsx |
import { Flex, Link as BreadcrumbLink } from '../../primitives'; | <mask> import React from 'react';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import { extractInObject } from '../../../theme/tools';
<mask> import { getBreadcrumbSeparator } from './BreadcrumbSeparator';
<mask> import type { IBreadcrumbProps } from './types';
<mask>
<mask> const Breadcrumb = ({
</s> Changed props file to types </s> remove import { useThemeProps } from '../../../hooks';
export { default as BreadcrumbItem } from './BreadcrumbItem';
export { BreadcrumbLink };
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import { Flex, Link as BreadcrumbLink } from '../../primitives';
import type { IBreadcrumbProps } from './props';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove import { ITypeaheadProps, layoutPropsList } from './props';
</s> add import { ITypeaheadProps, layoutPropsList } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { ITabsProps } from './props';
</s> add import type { ITabsProps } from './types'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/index.tsx |
import type { IBreadcrumbProps } from './types'; | <mask> import { Flex, Link as BreadcrumbLink } from '../../primitives';
<mask> import type { IBreadcrumbProps } from './props';
<mask> import { extractInObject } from '../../../theme/tools';
<mask> import { getBreadcrumbSeparator } from './BreadcrumbSeparator';
<mask> import { useThemeProps } from '../../../hooks';
<mask> export { default as BreadcrumbItem } from './BreadcrumbItem';
<mask> export { BreadcrumbLink };
<mask>
<mask> const Breadcrumb = ({
<mask> style,
<mask> children,
<mask> separator,
</s> Changed props file to types </s> remove import { Flex, Link as BreadcrumbLink } from '../../primitives';
import type { IBreadcrumbProps } from './props';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove import { ITypeaheadProps, layoutPropsList } from './props';
</s> add import { ITypeaheadProps, layoutPropsList } from './types'; </s> remove import type { IBreadcrumbProps } from './props';
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { IKbdProps } from './props';
</s> add import type { IKbdProps } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Breadcrumb/index.tsx |
<mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import type { ICenterProps } from './props';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { View } from 'react-native';
<mask>
<mask> const Center = (props: ICenterProps, ref: any) => {
<mask> let newProps = useThemeProps('Center', props);
<mask> return (
</s> Changed props file to types </s> remove import type { IAvatarBadgeProps } from './props';
</s> add import type { IAvatarBadgeProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { IKbdProps } from './props';
</s> add import type { IKbdProps } from './types'; | [
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/Center.tsx |
|
import { useThemeProps } from '../../../hooks';
import Box from '../../primitives/Box';
import type { ICenterProps } from './types'; | <mask> import React from 'react';
<mask> import type { View } from 'react-native';
<mask>
<mask> const Center = (props: ICenterProps, ref: any) => {
<mask> let newProps = useThemeProps('Center', props);
<mask> return (
<mask> <Box
<mask> ref={ref}
</s> Changed props file to types </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add </s> remove import type { IAvatarBadgeProps } from './props';
</s> add import type { IAvatarBadgeProps } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { IKbdProps } from './props';
</s> add import type { IKbdProps } from './types'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/Center.tsx |
import type { ICircleProps } from './types'; | <mask> import React from 'react';
<mask> import Center from './Center';
<mask> import type { ICircleProps } from './props';
<mask>
<mask> const Circle = ({ style, size, ...props }: ICircleProps) => {
<mask> return (
<mask> <Center
<mask> rounded="100"
</s> Changed props file to types </s> remove import type { ISquareProps } from './props';
</s> add import type { ISquareProps } from './types'; </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/Circle.tsx |
import type { ISquareProps } from './types'; | <mask> import React from 'react';
<mask> import Center from './Center';
<mask> import type { ISquareProps } from './props';
<mask>
<mask> const Square = ({ style, size, ...props }: ISquareProps) => {
<mask> return (
<mask> <Center
<mask> size={size}
</s> Changed props file to types </s> remove import type { ICircleProps } from './props';
</s> add import type { ICircleProps } from './types'; </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; </s> remove export { default as Square } from './Square';
</s> add </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/Square.tsx |
<mask> export { default as Center } from './Center';
<mask> export { default as Square } from './Square';
<mask> export { default as Circle } from './Circle';
<mask> export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> Changed props file to types </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; </s> remove export { default as NumberIncrementStepper } from './NumberIncrementStepper';
export { default as NumberDecrementStepper } from './NumberDecrementStepper';
</s> add </s> remove export type { IFabProps } from './props';
</s> add export type { IFabProps } from './types'; </s> remove export type { IAvatarProps, IAvatarBadgeProps } from './props';
</s> add export type { IAvatarProps, IAvatarBadgeProps } from './types'; | [
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/index.tsx |
|
export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; | <mask> export { default as Center } from './Center';
<mask> export { default as Square } from './Square';
<mask> export { default as Circle } from './Circle';
<mask> export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> Changed props file to types </s> remove export { default as Square } from './Square';
</s> add </s> remove export { default as NumberIncrementStepper } from './NumberIncrementStepper';
export { default as NumberDecrementStepper } from './NumberDecrementStepper';
</s> add </s> remove export type { IFabProps } from './props';
</s> add export type { IFabProps } from './types'; </s> remove export type { IAvatarProps, IAvatarBadgeProps } from './props';
</s> add export type { IAvatarProps, IAvatarBadgeProps } from './types'; | [
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Center/index.tsx |
import { Animated, Easing, StyleSheet, ViewStyle } from 'react-native'; | <mask> import React from 'react';
<mask> import { ViewStyle, StyleSheet, Animated, Easing } from 'react-native';
<mask> import { Box, IBoxProps, ITextProps, Text } from '../../primitives';
<mask> import styled from 'styled-components/native';
<mask> import { color, border } from 'styled-system';
<mask> import { useThemeProps, useTheme } from '../../../hooks';
<mask> import { canUseDom } from '../../../utils';
<mask> import get from 'lodash/get';
</s> Changed props file to types </s> remove import { color, border } from 'styled-system';
import { useThemeProps, useTheme } from '../../../hooks';
</s> add import { border, color } from 'styled-system';
import { useTheme, useThemeProps } from '../../../hooks'; </s> remove import get from 'lodash/get';
</s> add import { Box, IBoxProps, ITextProps, Text } from '../../primitives'; </s> remove
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks';
import { Box, View, IBoxProps } from '../../primitives';
</s> add import { Box, IBoxProps, View } from '../../primitives';
import type { IModalProps, IModalSemiProps } from './types'; </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/CircularProgress/index.tsx |
import { border, color } from 'styled-system';
import { useTheme, useThemeProps } from '../../../hooks'; | <mask> import React from 'react';
<mask> import { ViewStyle, StyleSheet, Animated, Easing } from 'react-native';
<mask> import { Box, IBoxProps, ITextProps, Text } from '../../primitives';
<mask> import styled from 'styled-components/native';
<mask> import { color, border } from 'styled-system';
<mask> import { useThemeProps, useTheme } from '../../../hooks';
<mask> import { canUseDom } from '../../../utils';
<mask> import get from 'lodash/get';
<mask>
<mask> type sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
<mask>
</s> Changed props file to types </s> remove import get from 'lodash/get';
</s> add import { Box, IBoxProps, ITextProps, Text } from '../../primitives'; </s> remove import { ViewStyle, StyleSheet, Animated, Easing } from 'react-native';
import { Box, IBoxProps, ITextProps, Text } from '../../primitives';
</s> add import { Animated, Easing, StyleSheet, ViewStyle } from 'react-native'; </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import isNil from 'lodash/isNil';
</s> add </s> remove
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks';
import { Box, View, IBoxProps } from '../../primitives';
</s> add import { Box, IBoxProps, View } from '../../primitives';
import type { IModalProps, IModalSemiProps } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/CircularProgress/index.tsx |
import { Box, IBoxProps, ITextProps, Text } from '../../primitives'; | <mask> import styled from 'styled-components/native';
<mask> import { color, border } from 'styled-system';
<mask> import { useThemeProps, useTheme } from '../../../hooks';
<mask> import { canUseDom } from '../../../utils';
<mask> import get from 'lodash/get';
<mask>
<mask> type sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
<mask>
<mask> export type ICircularProgressProps = IBoxProps & {
<mask> style?: ViewStyle;
</s> Changed props file to types </s> remove import { color, border } from 'styled-system';
import { useThemeProps, useTheme } from '../../../hooks';
</s> add import { border, color } from 'styled-system';
import { useTheme, useThemeProps } from '../../../hooks'; </s> remove import { ViewStyle, StyleSheet, Animated, Easing } from 'react-native';
import { Box, IBoxProps, ITextProps, Text } from '../../primitives';
</s> add import { Animated, Easing, StyleSheet, ViewStyle } from 'react-native'; </s> remove import isNil from 'lodash/isNil';
</s> add </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; </s> remove import Box from '../../primitives/Box';
import { useThemeProps } from '../../../hooks';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/CircularProgress/index.tsx |
<mask> import React from 'react';
<mask> import Icon from '../../primitives/Icon';
<mask> import {
<mask> default as IconButton,
<mask> IIconButtonProps,
<mask> } from '../../composites/IconButton';
<mask>
</s> Changed props file to types </s> remove import { Flex, Link as BreadcrumbLink } from '../../primitives';
import type { IBreadcrumbProps } from './props';
</s> add import { useThemeProps } from '../../../hooks'; </s> remove import { useThemeProps } from '../../../hooks';
export { default as BreadcrumbItem } from './BreadcrumbItem';
export { BreadcrumbLink };
</s> add import type { IBreadcrumbProps } from './types'; </s> remove import type { IPopoverProps } from './props';
</s> add </s> remove import type { IAvatarProps } from './props';
</s> add import type { IAvatarProps } from './types'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/CloseButton/index.tsx |
|
import Icon from '../../primitives/Icon'; | <mask> default as IconButton,
<mask> IIconButtonProps,
<mask> } from '../../composites/IconButton';
<mask>
<mask> export type ICloseButtonProps = IIconButtonProps;
<mask>
<mask> const CloseButton = (props: ICloseButtonProps) => {
</s> Changed props file to types </s> remove import Icon from '../../primitives/Icon';
</s> add </s> remove import type { IPopoverProps } from './props';
</s> add </s> remove import type { IFabProps } from './props';
</s> add import type { IFabProps } from './types'; </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/CloseButton/index.tsx |
<mask> import React from 'react';
<mask> import { Platform } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import Box from '../../primitives/Box';
<mask> import type { ICodeProps } from './props';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const StyledCode = styled(Box)<ICodeProps>({});
<mask>
<mask> const Code = ({ style, ...props }: ICodeProps) => {
</s> Changed props file to types </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; </s> remove import type { ISlideFadeProps } from './props';
</s> add import type { ISlideFadeProps } from './types'; </s> remove import type { IScaleFadeProps } from './props';
</s> add import type { IScaleFadeProps } from './types'; </s> remove import type { ISkeletonProps } from './props';
</s> add import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Code/index.tsx |
|
import Box from '../../primitives/Box';
import type { ICodeProps } from './types'; | <mask> import styled from 'styled-components/native';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const StyledCode = styled(Box)<ICodeProps>({});
<mask>
<mask> const Code = ({ style, ...props }: ICodeProps) => {
<mask> let newProps = useThemeProps('Code', props);
</s> Changed props file to types </s> remove import Box from '../../primitives/Box';
import type { ICodeProps } from './props';
</s> add </s> remove import type { IKbdProps } from './props';
</s> add import type { IKbdProps } from './types'; </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; </s> remove import Box from '../../primitives/Box';
</s> add | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Code/index.tsx |
<mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IContainerProps } from './props';
<mask>
<mask> const Container = ({ children, centerContent, ...props }: IContainerProps) => {
<mask> const newProps = useThemeProps('Container', props);
</s> Changed props file to types </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import { useThemeProps } from '../../../hooks';
import type { ISkeletonTextProps } from './props';
</s> add import type { ISkeletonTextProps } from './types'; </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Container/index.tsx |
|
import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IContainerProps } from './props';
<mask>
<mask> const Container = ({ children, centerContent, ...props }: IContainerProps) => {
<mask> const newProps = useThemeProps('Container', props);
<mask> return (
<mask> <Box
</s> Changed props file to types </s> remove import Box from '../../primitives/Box';
</s> add </s> remove import type { IAvatarBadgeProps } from './props';
</s> add import type { IAvatarBadgeProps } from './types'; </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Container/index.tsx |
import { useThemeProps } from '../../../hooks'; | <mask> import { View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space } from 'styled-system';
<mask> import {
<mask> customBackground,
<mask> customBorder,
<mask> customExtra,
</s> Changed props file to types </s> remove customBorder,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; </s> remove customBorder,
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Divider/index.tsx |
<mask> import { View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
</s> Changed props file to types </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customBorder,
</s> add </s> remove customBorder,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Divider/index.tsx |
|
customBorder, | <mask> import { border, color, flexbox, layout, space } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask>
<mask> import type { IDividerProps } from './props';
</s> Changed props file to types </s> remove customBorder,
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customBorder,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Divider/index.tsx |
customLayout,
customOutline, | <mask> customBackground,
<mask> customBorder,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask> import type { IDividerProps } from './types';
<mask>
</s> Changed props file to types </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove
import type { IDividerProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add import type { IDividerProps } from './types'; </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customOutline,
customLayout,
</s> add customBorder, | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Divider/index.tsx |
import type { IDividerProps } from './types'; | <mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask>
<mask> import type { IDividerProps } from './props';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const StyledDivider = styled(View)<IDividerProps>(
<mask> color,
<mask> space,
<mask> layout,
</s> Changed props file to types </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove import type { IWrapProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customOutline,
customLayout,
</s> add customBorder, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Divider/index.tsx |
import type { IFabProps } from './types'; | <mask> import React from 'react';
<mask> import { omitUndefined } from '../../../theme/tools/utils';
<mask> import IconButton from '../IconButton';
<mask> import type { IFabProps } from './props';
<mask>
<mask> const Fab = (props: IFabProps) => {
<mask> const { placement, ...newProps } = omitUndefined(props);
<mask>
<mask> const placementProps: any = {
</s> Changed props file to types </s> remove import type { IActionsheetProps } from './props';
</s> add import type { IActionsheetProps } from './types'; </s> remove import type { IActionsheetHeaderProps } from './props';
</s> add import type { IActionsheetHeaderProps } from './types'; </s> remove import type { IActionsheetItemProps } from './props';
</s> add import type { IActionsheetItemProps } from './types'; </s> remove import type { IAvatarBadgeProps } from './props';
</s> add import type { IAvatarBadgeProps } from './types'; </s> remove import type { ITabProps, ITabsContextProps } from './props';
</s> add import type { ITabProps, ITabsContextProps } from './types'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Fab/Fab.tsx |
export type { IFabProps } from './types'; | <mask> export { default as Fab } from './Fab';
<mask> // export { default as FabList } from './FabList';
<mask> // export { default as FabItem } from './FabItem';
<mask> export type { IFabProps } from './props';
</s> Changed props file to types </s> remove export type { ICenterProps, ICircleProps, ISquareProps } from './props';
</s> add export { default as Square } from './Square';
export type { ICenterProps, ICircleProps, ISquareProps } from './types'; </s> remove export { default as NumberIncrementStepper } from './NumberIncrementStepper';
export { default as NumberDecrementStepper } from './NumberDecrementStepper';
</s> add </s> remove export type { IAvatarProps, IAvatarBadgeProps } from './props';
</s> add export type { IAvatarProps, IAvatarBadgeProps } from './types'; </s> remove export type { IAlertProps, IAlertContext } from './props';
</s> add export type { IAlertProps, IAlertContext } from './types'; | [
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Fab/index.tsx |
import type { IFormControlProps } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import type { IFormControlProps } from './props';
<mask>
<mask> export const FormControlContext = React.createContext({});
<mask>
<mask> const FormControl = ({
<mask> children,
</s> Changed props file to types </s> remove import type { IFormErrorMessageProps, IFormControlContext } from './props';
</s> add import type { IFormErrorMessageProps, IFormControlContext } from './types'; </s> remove import type { IFormLabelProps, IFormControlContext } from './props';
</s> add import type { IFormLabelProps, IFormControlContext } from './types'; </s> remove import type { IFormHelperTextProps, IFormControlContext } from './props';
</s> add import type { IFormHelperTextProps, IFormControlContext } from './types'; </s> remove import type { IContainerProps } from './props';
</s> add import Box from '../../primitives/Box';
import type { IContainerProps } from './types'; </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/FormControl/FormControl.tsx |
import type { IFormErrorMessageProps, IFormControlContext } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { FormControlContext } from './FormControl';
<mask> import type { IFormErrorMessageProps, IFormControlContext } from './props';
<mask>
<mask> const FormErrorMessage = ({ children, ...props }: IFormErrorMessageProps) => {
<mask> const { isInvalid }: IFormControlContext = React.useContext(
<mask> FormControlContext
<mask> );
</s> Changed props file to types </s> remove import type { IFormLabelProps, IFormControlContext } from './props';
</s> add import type { IFormLabelProps, IFormControlContext } from './types'; </s> remove import type { IFormHelperTextProps, IFormControlContext } from './props';
</s> add import type { IFormHelperTextProps, IFormControlContext } from './types'; </s> remove import type { ITabsContextProps, ITabBarProps } from './props';
</s> add import type { ITabsContextProps, ITabBarProps } from './types'; </s> remove import type { IFormControlProps } from './props';
</s> add import type { IFormControlProps } from './types'; </s> remove import type { ITabsProps } from './props';
</s> add import type { ITabsProps } from './types'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/FormControl/FormErrorMessage.tsx |
import type { IFormHelperTextProps, IFormControlContext } from './types'; | <mask> import React from 'react';
<mask> import Box from '../../primitives/Box';
<mask> import { useToken } from '../../../hooks';
<mask> import { FormControlContext } from './FormControl';
<mask> import type { IFormHelperTextProps, IFormControlContext } from './props';
<mask>
<mask> const FormHelperText = ({
<mask> children,
<mask> style,
<mask> _disabled,
</s> Changed props file to types </s> remove import type { IFormLabelProps, IFormControlContext } from './props';
</s> add import type { IFormLabelProps, IFormControlContext } from './types'; </s> remove import type { IFormErrorMessageProps, IFormControlContext } from './props';
</s> add import type { IFormErrorMessageProps, IFormControlContext } from './types'; </s> remove import type { IFormControlProps } from './props';
</s> add import type { IFormControlProps } from './types'; </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICodeProps } from './props';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/FormControl/FormHelperText.tsx |
import type { IFormLabelProps, IFormControlContext } from './types'; | <mask> import Box from '../../primitives/Box';
<mask> import Text from '../../primitives/Text';
<mask> import { useToken } from '../../../hooks';
<mask> import { FormControlContext } from './FormControl';
<mask> import type { IFormLabelProps, IFormControlContext } from './props';
<mask>
<mask> const FormLabel = ({
<mask> children,
<mask> style,
<mask> _disabled,
</s> Changed props file to types </s> remove import type { IFormHelperTextProps, IFormControlContext } from './props';
</s> add import type { IFormHelperTextProps, IFormControlContext } from './types'; </s> remove import type { IFormErrorMessageProps, IFormControlContext } from './props';
</s> add import type { IFormErrorMessageProps, IFormControlContext } from './types'; </s> remove import type { IFormControlProps } from './props';
</s> add import type { IFormControlProps } from './types'; </s> remove import type { IBadgeProps } from './props';
</s> add import type { IBadgeProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICodeProps } from './props';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/FormControl/FormLabel.tsx |
} from './types'; | <mask> IFormLabelProps,
<mask> IFormErrorMessageProps,
<mask> IFormHelperTextProps,
<mask> IFormControlContext,
<mask> } from './props';
</s> Changed props file to types </s> remove import type { IFormLabelProps, IFormControlContext } from './props';
</s> add import type { IFormLabelProps, IFormControlContext } from './types'; </s> remove import type { IFormHelperTextProps, IFormControlContext } from './props';
</s> add import type { IFormHelperTextProps, IFormControlContext } from './types'; </s> remove import type { IFormErrorMessageProps, IFormControlContext } from './props';
</s> add import type { IFormErrorMessageProps, IFormControlContext } from './types'; </s> remove } from './props';
</s> add } from './types'; </s> remove } from './props';
</s> add } from './types'; | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/FormControl/index.tsx |
import type { IKbdProps } from './types'; | <mask> import React from 'react';
<mask> import { Platform } from 'react-native';
<mask> import { Box, Text } from '../../primitives';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import type { IKbdProps } from './props';
<mask>
<mask> const Kbd = ({ style, textStyle, children, ...props }: IKbdProps) => {
<mask> let newProps = useThemeProps('Kbd', props);
<mask> let { fontWeight, fontSize, lineHeight, ...viewProps } = newProps;
<mask> const textProps = { fontWeight, fontSize, lineHeight };
</s> Changed props file to types </s> remove import { useThemeProps } from '../../../hooks';
import type { ISkeletonTextProps } from './props';
</s> add import type { ISkeletonTextProps } from './types'; </s> remove import Box from '../../primitives/Box';
import type { ICenterProps } from './props';
import { useThemeProps } from '../../../hooks';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/KBD/index.tsx |
import type { Modal as ModalType } from 'react-native'; | <mask> import React from 'react';
<mask> import {
<mask> KeyboardAvoidingView,
<mask> Modal as RNModal,
<mask> Platform,
</s> Changed props file to types </s> remove TouchableOpacity,
</s> add </s> remove import type { Modal as ModalType } from 'react-native';
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove customBorder,
</s> add | [
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
<mask> import React from 'react';
<mask> import {
<mask> KeyboardAvoidingView,
<mask> Modal as RNModal,
<mask> TouchableOpacity,
<mask> Platform,
<mask> } from 'react-native';
<mask> import type { Modal as ModalType } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> Changed props file to types </s> remove import type { Modal as ModalType } from 'react-native';
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove customBorder,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
|
TouchableOpacity, | <mask> Modal as RNModal,
<mask> Platform,
<mask> } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, position, space } from 'styled-system';
<mask> import { useOverlay } from '../../../core/Overlay';
<mask> import { useThemeProps } from '../../../hooks';
<mask> import {
</s> Changed props file to types </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove import type { Modal as ModalType } from 'react-native';
</s> add </s> remove TouchableOpacity,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
<mask> Modal as RNModal,
<mask> TouchableOpacity,
<mask> Platform,
<mask> } from 'react-native';
<mask> import type { Modal as ModalType } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space, position } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
</s> Changed props file to types </s> remove TouchableOpacity,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove customBorder,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
|
import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; | <mask> Platform,
<mask> } from 'react-native';
<mask> import type { Modal as ModalType } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space, position } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
</s> Changed props file to types </s> remove import type { Modal as ModalType } from 'react-native';
</s> add </s> remove customBorder,
</s> add </s> remove TouchableOpacity,
</s> add </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; </s> remove customBorder,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
<mask> import type { Modal as ModalType } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import { border, color, flexbox, layout, space, position } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
</s> Changed props file to types </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks'; </s> remove import type { Modal as ModalType } from 'react-native';
</s> add </s> remove customBorder,
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customBorder,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
|
customBorder, | <mask> import { border, color, flexbox, layout, space, position } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> customPosition,
<mask> } from '../../../utils/customProps';
<mask>
</s> Changed props file to types </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customBorder,
</s> add </s> remove customBorder,
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove import { border, color, flexbox, layout, space, position } from 'styled-system';
</s> add import { border, color, flexbox, layout, position, space } from 'styled-system';
import { useThemeProps } from '../../../hooks'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
customLayout,
customOutline, | <mask> customBackground,
<mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> customPosition,
<mask> } from '../../../utils/customProps';
<mask>
<mask> import type { IModalProps, IModalSemiProps } from './props';
<mask> import {
</s> Changed props file to types </s> remove
import type { IModalProps, IModalSemiProps } from './props';
</s> add </s> remove customShadow,
</s> add </s> remove customOutline,
customLayout,
</s> add customBorder, </s> remove customOutline,
customLayout,
</s> add customBorder, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
customShadow, | <mask> customExtra,
<mask> customLayout,
<mask> customOutline,
<mask> customPosition,
<mask> } from '../../../utils/customProps';
<mask> import {
<mask> default as CloseButton,
<mask> ICloseButtonProps,
<mask> } from '../../composites/CloseButton';
<mask> import { Box, IBoxProps, View } from '../../primitives';
</s> Changed props file to types </s> remove
import type { IModalProps, IModalSemiProps } from './props';
</s> add </s> remove
import { useOverlay } from '../../../core/Overlay';
import { useThemeProps } from '../../../hooks';
import { Box, View, IBoxProps } from '../../primitives';
</s> add import { Box, IBoxProps, View } from '../../primitives';
import type { IModalProps, IModalSemiProps } from './types'; </s> remove customShadow,
</s> add customLayout,
customOutline, </s> remove customShadow,
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/a7311fb216d2447b48a17e3ca2ae13afdf78c7b5 | src/components/composites/Modal/index.tsx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.