docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
customPosition, | <mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask>
<mask> import type { IModalProps, IModalSemiProps } from './props';
<mask> import {
<mask> default as CloseButton,
<mask> ICloseButtonProps,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Modal/index.tsx |
position,
customPosition, | <mask> layout,
<mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
<mask> customLayout
</s> Added position props in all components | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Modal/index.tsx |
PositionProps, | <mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> } from 'styled-system';
<mask> import type {
<mask> customBorderProps,
<mask> customBackgroundProps,
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Modal/props.ts |
PositionProps & | <mask> SpaceProps &
<mask> LayoutProps &
<mask> FlexboxProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
<mask> customBackgroundProps &
</s> Added position props in all components | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Modal/props.ts |
import { border, color, flexbox, layout, space, position } from 'styled-system'; | <mask> import isNil from 'lodash/isNil';
<mask> import React from 'react';
<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,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/index.tsx |
customPosition, | <mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> customFlexBox,
<mask> } from '../../../utils/customProps';
<mask> import type { IWrapProps } from './props';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import Box from '../../primitives/Box';
<mask>
</s> Added position props in all components </s> remove import { space } from 'styled-system';
</s> add </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/index.tsx |
position,
customPosition, | <mask> space,
<mask> layout,
<mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
</s> Added position props in all components | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/index.tsx |
PositionProps, | <mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> } from 'styled-system';
<mask>
<mask> import type {
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/props.ts |
customPositionProps, | <mask> customExtraProps,
<mask> customShadowProps,
<mask> customFlexboxProps,
<mask> } from '../../../utils/customProps';
<mask>
<mask> export type IWrapProps = ViewProps &
<mask> ColorProps &
<mask> SpaceProps &
</s> Added position props in all components | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/props.ts |
PositionProps & | <mask> LayoutProps &
<mask> FlexboxProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
<mask> customBackgroundProps &
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/props.ts |
customPositionProps & | <mask> customLayoutProps &
<mask> customBackgroundProps &
<mask> customFlexboxProps &
<mask> BorderProps & {
<mask> style?: ViewStyle;
<mask> children?: JSX.Element | JSX.Element[];
<mask> direction?: CSS.Property.FlexDirection | undefined;
<mask> align?: CSS.Property.AlignItems | undefined;
<mask> justify?: CSS.Property.JustifyContent | undefined;
</s> Added position props in all components </s> remove export type IIconProps = TypographyProps &
ColorProps &
SpaceProps & {
</s> add export type IIconProps = ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
TypographyProps &
PositionProps &
customBorderProps &
customPositionProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customTypographyProps &
customBackgroundProps &
customTransformProps &
customFlexboxProps &
BorderProps & { </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove export type IStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledStack = styled(View)<IStackProps>(
color,
spacing,
layout,
flexbox,
border
);
</s> add </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/composites/Wrap/props.ts |
customPositionProps, | <mask> customShadowProps,
<mask> customTypographyProps,
<mask> customTransformProps,
<mask> customFlexboxProps,
<mask> } from '../../../utils/customProps';
<mask>
<mask> export type IBoxProps = ViewProps &
<mask> ColorProps &
</s> Added position props in all components | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Box/props.ts |
customPositionProps & | <mask> TypographyProps &
<mask> PositionProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
<mask> customTypographyProps &
</s> Added position props in all components | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Box/props.ts |
position, | <mask> layout,
<mask> space,
<mask> typography,
<mask> } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
</s> Added position props in all components </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/index.tsx |
customPosition, | <mask> customShadow,
<mask> customTypography,
<mask> } from '../../../utils/customProps';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import type { IHeadingProps } from './props';
<mask>
<mask> const StyledHeading = styled(Text)<IHeadingProps>(
<mask> color,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; </s> remove import { space } from 'styled-system';
</s> add | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/index.tsx |
position,
customPosition, | <mask> border,
<mask> typography,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
<mask> customLayout,
</s> Added position props in all components </s> remove const styledIcon = styled(Icon)<IIconProps>(color, space, typography);
</s> add const styledIcon = styled(Icon)<IIconProps>(
color,
space,
layout,
flexbox,
border,
typography,
position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
customTypography
); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/index.tsx |
PositionProps, | <mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> TypographyProps,
<mask> } from 'styled-system';
<mask> import type {
<mask> customBorderProps,
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/props.ts |
customPositionProps, | <mask> customLayoutProps,
<mask> customExtraProps,
<mask> customShadowProps,
<mask> customTypographyProps,
<mask> } from '../../../utils/customProps';
<mask>
<mask> export type IHeadingProps = ColorProps &
<mask> SpaceProps &
<mask> LayoutProps &
<mask> FlexboxProps &
</s> Added position props in all components | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/props.ts |
PositionProps &
customPositionProps & | <mask> FlexboxProps &
<mask> TypographyProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Heading/props.ts |
import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; | <mask> import React from 'react';
<mask> import { StyleSheet, TextStyle } from 'react-native';
<mask> import { color, space, typography } from 'styled-system';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import styled from 'styled-components/native';
<mask> import AntDesign from 'react-native-vector-icons/AntDesign';
<mask> import Entypo from 'react-native-vector-icons/Entypo';
<mask> import EvilIcons from 'react-native-vector-icons/EvilIcons';
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { space } from 'styled-system';
</s> add </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Icon/index.tsx |
const styledIcon = styled(Icon)<IIconProps>(
color,
space,
layout,
flexbox,
border,
typography,
position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
customTypography
); | <mask> );
<mask> }
<mask> };
<mask>
<mask> const styledIcon = styled(Icon)<IIconProps>(color, space, typography);
<mask>
<mask> export default styledIcon;
<mask> export { Path };
<mask> export type { IIconProps, IconType };
<mask> export { createIcon } from './createIcon';
</s> Added position props in all components </s> remove export const VStack = (props: StackProps) => {
</s> add export const VStack = (props: IStackProps) => { </s> remove export const HStack = (props: StackProps) => {
</s> add export const HStack = (props: IStackProps) => { </s> remove return (
<IconButton
icon={
<Icon name="heart-outline" type="Ionicons" size={6} color="white" />
}
/>
);
</s> add return <IconButton icon={<Icon name="heart" size={6} color="white" />} />; </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Icon/index.tsx |
import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; | <mask> import type { TextStyle } from 'react-native';
<mask> import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
<mask>
<mask> export type IconType =
<mask> | 'AntDesign'
<mask> | 'Entypo'
<mask> | 'EvilIcons'
</s> Added position props in all components </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; </s> remove export type IStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledStack = styled(View)<IStackProps>(
color,
spacing,
layout,
flexbox,
border
);
</s> add </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Icon/props.ts |
export type IIconProps = ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
TypographyProps &
PositionProps &
customBorderProps &
customPositionProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customTypographyProps &
customBackgroundProps &
customTransformProps &
customFlexboxProps &
BorderProps & { | <mask> | 'Octicons'
<mask> | 'SimpleLineIcons'
<mask> | 'Zocial';
<mask>
<mask> export type IIconProps = TypographyProps &
<mask> ColorProps &
<mask> SpaceProps & {
<mask> name?: string;
<mask> type?: IconType;
<mask> style?: TextStyle;
<mask> viewBox?: string;
<mask> size?: string | number;
</s> Added position props in all components </s> remove export type IStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledStack = styled(View)<IStackProps>(
color,
spacing,
layout,
flexbox,
border
);
</s> add </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Icon/props.ts |
import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; | <mask> import React from 'react';
<mask> import { View, TouchableWithoutFeedback, StyleSheet } 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,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Link/index.tsx |
<mask> import React from 'react';
<mask> import { View, TouchableWithoutFeedback, StyleSheet } 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,
<mask> customTypography,
<mask> } from '../../../utils/customProps';
<mask> import { addTextAndPropsToStrings } from '../../../utils';
<mask> import type { ILinkProps } from './props';
<mask> import Box from '../Box';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import { useLink } from './useLink';
</s> Added position props in all components </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; </s> remove import { space } from 'styled-system';
</s> add </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; | [
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Link/index.tsx | |
const StyledLink = styled(View)<ILinkProps>({}); | <mask> import Box from '../Box';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import { useLink } from './useLink';
<mask>
<mask> const StyledLink = styled(View)<ILinkProps>(
<mask> color,
<mask> space,
<mask> layout,
<mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
<mask> customLayout,
<mask> customTypography
<mask> );
<mask>
<mask> const addStyleAndPropsToChild = (
<mask> props: any,
<mask> children: JSX.Element[] | JSX.Element,
<mask> IsUnderlined: boolean
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove const styledIcon = styled(Icon)<IIconProps>(color, space, typography);
</s> add const styledIcon = styled(Icon)<IIconProps>(
color,
space,
layout,
flexbox,
border,
typography,
position,
customPosition,
customBorder,
customBackground,
customOutline,
customShadow,
customExtra,
customLayout,
customTypography
); </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Link/index.tsx |
<mask> import React from 'react';
<mask> import { ViewProps, View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import {
<mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
</s> Added position props in all components </s> remove import { ViewProps, View } from 'react-native';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { space } from 'styled-system';
</s> add | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx | |
import { IViewProps, default as View } from '../View'; | <mask> import React from 'react';
<mask> import { ViewProps, View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import {
<mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> border,
<mask> color,
<mask> flexbox,
<mask> layout,
<mask> space as spacing,
<mask> } from 'styled-system';
<mask>
<mask> import { getSpacedChildren } from '../../../utils';
<mask>
<mask> export type IStackProps =
<mask> | ColorProps
<mask> | SpaceProps
</s> Added position props in all components </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add </s> remove import { ViewProps, View } from 'react-native';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import { ViewProps, View } from 'react-native';
</s> add </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx |
<mask> } from 'styled-system';
<mask>
<mask> import { getSpacedChildren } from '../../../utils';
<mask>
<mask> export type IStackProps =
<mask> | ColorProps
<mask> | SpaceProps
<mask> | LayoutProps
<mask> | FlexboxProps
<mask> | BorderProps;
<mask>
<mask> const StyledStack = styled(View)<IStackProps>(
<mask> color,
<mask> spacing,
<mask> layout,
<mask> flexbox,
<mask> border
<mask> );
<mask> type SpaceType = 'gutter' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
<mask>
<mask> export type StackProps = IStackProps &
<mask> ViewProps & {
<mask> children: JSX.Element[] | JSX.Element;
</s> Added position props in all components </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx | |
const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; | <mask> border
<mask> );
<mask> type SpaceType = 'gutter' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
<mask>
<mask> export type StackProps = IStackProps &
<mask> ViewProps & {
<mask> children: JSX.Element[] | JSX.Element;
<mask> divider?: JSX.Element;
<mask> space?: number | SpaceType;
<mask> reversed?: boolean;
<mask> };
<mask>
<mask> const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
<mask> const {
<mask> space,
<mask> children,
</s> Added position props in all components </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove export type IStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledStack = styled(View)<IStackProps>(
color,
spacing,
layout,
flexbox,
border
);
</s> add </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove type ZStackProps = IZStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
};
</s> add const StyledZStack = styled(View)<IZStackProps>({}); </s> remove const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
</s> add const ZStack = ({ children, reversed, ...props }: IZStackProps) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx |
const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { | <mask> space?: number | SpaceType;
<mask> reversed?: boolean;
<mask> };
<mask>
<mask> const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
<mask> const {
<mask> space,
<mask> children,
<mask> divider,
<mask> reversed,
</s> Added position props in all components </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
</s> add const ZStack = ({ children, reversed, ...props }: IZStackProps) => { </s> remove type ZStackProps = IZStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
};
</s> add const StyledZStack = styled(View)<IZStackProps>({}); </s> remove export const VStack = (props: StackProps) => {
</s> add export const VStack = (props: IStackProps) => { </s> remove export const HStack = (props: StackProps) => {
</s> add export const HStack = (props: IStackProps) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx |
export const VStack = (props: IStackProps) => { | <mask> </StyledStack>
<mask> );
<mask> };
<mask>
<mask> export const VStack = (props: StackProps) => {
<mask> return Stack(props);
<mask> };
<mask> export const HStack = (props: StackProps) => {
<mask> return Stack({ ...props, direction: 'row' });
<mask> };
</s> Added position props in all components </s> remove export const HStack = (props: StackProps) => {
</s> add export const HStack = (props: IStackProps) => { </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove return (
<IconButton
icon={
<Icon name="heart-outline" type="Ionicons" size={6} color="white" />
}
/>
);
</s> add return <IconButton icon={<Icon name="heart" size={6} color="white" />} />; </s> remove return (
<IconButton
icon={
<Icon
name="dots-vertical"
type="MaterialCommunityIcons"
size={6}
color="white"
/>
}
/>
);
</s> add return <IconButton icon={<Icon name="more-vert" size={6} color="white" />} />; </s> remove const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
</s> add const ZStack = ({ children, reversed, ...props }: IZStackProps) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx |
export const HStack = (props: IStackProps) => { | <mask>
<mask> export const VStack = (props: StackProps) => {
<mask> return Stack(props);
<mask> };
<mask> export const HStack = (props: StackProps) => {
<mask> return Stack({ ...props, direction: 'row' });
<mask> };
<mask> export default Stack;
</s> Added position props in all components </s> remove export const VStack = (props: StackProps) => {
</s> add export const VStack = (props: IStackProps) => { </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove return (
<IconButton
icon={
<Icon name="heart-outline" type="Ionicons" size={6} color="white" />
}
/>
);
</s> add return <IconButton icon={<Icon name="heart" size={6} color="white" />} />; </s> remove return (
<IconButton
icon={
<Icon
name="dots-vertical"
type="MaterialCommunityIcons"
size={6}
color="white"
/>
}
/>
);
</s> add return <IconButton icon={<Icon name="more-vert" size={6} color="white" />} />; </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Stack/index.tsx |
import { border, color, flexbox, layout, space, position } from 'styled-system'; | <mask> import { StyleSheet, ViewStyle, Switch as RNSwitch } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import isNil from 'lodash/isNil';
<mask> import { useToken, usePropsConfig } from '../../../hooks';
<mask> import { border, color, flexbox, layout, space } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customLayout,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { color, space, typography } from 'styled-system';
</s> add import {
border,
color,
flexbox,
layout,
space,
typography,
position,
} from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
customPosition,
} from '../../../utils/customProps'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/index.tsx |
customPosition, | <mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask> import type { ISwitchProps } from './props';
<mask>
<mask> const StyledNBSwitch = styled(RNSwitch)<ISwitchProps>(
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/index.tsx |
position,
customPosition, | <mask> space,
<mask> layout,
<mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
</s> Added position props in all components | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/index.tsx |
PositionProps, | <mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> } from 'styled-system';
<mask>
<mask> import type {
<mask> customBorderProps,
<mask> customBackgroundProps,
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/props.ts |
customPositionProps, | <mask> customLayoutProps,
<mask> customExtraProps,
<mask> customShadowProps,
<mask> } from '../../../utils/customProps';
<mask>
<mask> export type ISwitchProps = SwitchProps &
<mask> ColorProps &
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/props.ts |
PositionProps &
customPositionProps & | <mask> SpaceProps &
<mask> LayoutProps &
<mask> FlexboxProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
</s> Added position props in all components | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Switch/props.ts |
customPosition, | <mask> customShadow,
<mask> customTypography,
<mask> } from '../../../utils/customProps';
<mask> import type { ITextProps } from './props';
<mask>
<mask> const StyledText = styled(NativeText)<ITextProps>(
<mask> color,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
import {
customBorder,
customBackground,
customOutline,
customLayout,
customExtra,
customShadow,
customTypography,
} from '../../../utils/customProps';
</s> add | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Text/index.tsx |
position,
customPosition, | <mask> border,
<mask> typography,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
<mask> customLayout,
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Text/index.tsx |
customPositionProps, | <mask> customShadowProps,
<mask> customTypographyProps,
<mask> } from '../../../utils/customProps';
<mask> const sizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'];
<mask>
<mask> export type ITextProps = ColorProps &
<mask> SpaceProps &
<mask> PositionProps &
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Text/props.tsx |
PositionProps & | <mask> SpaceProps &
<mask> PositionProps &
<mask> TypographyProps &
<mask> customPositionProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Text/props.tsx |
customPositionProps & | <mask> PositionProps &
<mask> TypographyProps &
<mask> customBorderProps &
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/Text/props.tsx |
position, | <mask> color,
<mask> flexbox,
<mask> layout,
<mask> space,
<mask> } from 'styled-system';
<mask> import { View as RNView, ViewProps } from 'react-native';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
</s> Added position props in all components </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/View/index.tsx |
customPosition, | <mask> customExtra,
<mask> customShadow,
<mask> customTypography,
<mask> } from '../../../utils/customProps';
<mask> import type {
<mask> customBorderProps,
<mask> customBackgroundProps,
</s> Added position props in all components </s> remove import type { ColorProps, SpaceProps, TypographyProps } from 'styled-system';
</s> add import type {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
TypographyProps,
PositionProps,
} from 'styled-system';
import type {
customBorderProps,
customBackgroundProps,
customOutlineProps,
customLayoutProps,
customExtraProps,
customShadowProps,
customTypographyProps,
customTransformProps,
customFlexboxProps,
customPositionProps,
} from '../../../utils/customProps'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/View/index.tsx |
customPositionProps, | <mask> customShadowProps,
<mask> customTypographyProps,
<mask> customTransformProps,
<mask> customFlexboxProps,
<mask> } from '../../../utils/customProps';
<mask>
<mask> export type IViewProps = ViewProps &
<mask> ColorProps &
<mask> SpaceProps &
<mask> LayoutProps &
</s> Added position props in all components | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/View/index.tsx |
customPositionProps & | <mask> customTypographyProps &
<mask> customBackgroundProps &
<mask> customTransformProps &
<mask> customFlexboxProps &
<mask> BorderProps;
<mask>
<mask> const View: any = styled(RNView)<IViewProps>(
<mask> color,
<mask> space,
</s> Added position props in all components </s> remove export type IIconProps = TypographyProps &
ColorProps &
SpaceProps & {
</s> add export type IIconProps = ColorProps &
SpaceProps &
LayoutProps &
FlexboxProps &
TypographyProps &
PositionProps &
customBorderProps &
customPositionProps &
customExtraProps &
customOutlineProps &
customShadowProps &
customLayoutProps &
customTypographyProps &
customBackgroundProps &
customTransformProps &
customFlexboxProps &
BorderProps & { | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/View/index.tsx |
position,
customPosition, | <mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
</s> Added position props in all components | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/View/index.tsx |
import { IViewProps, default as View } from '../View'; | <mask> import React from 'react';
<mask> import { ViewProps, View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import {
<mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
</s> Added position props in all components </s> remove import { ViewProps, View } from 'react-native';
</s> add </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; </s> remove import { space } from 'styled-system';
</s> add | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/ZStack/index.tsx |
<mask> import React from 'react';
<mask> import { ViewProps, View } from 'react-native';
<mask> import styled from 'styled-components/native';
<mask> import {
<mask> BorderProps,
<mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> border,
<mask> color,
<mask> flexbox,
<mask> layout,
<mask> position,
<mask> space as spacing,
<mask> } from 'styled-system';
<mask>
<mask> import { getAbsoluteChildren } from '../../../utils';
<mask>
<mask> export type IZStackProps =
<mask> | ColorProps
<mask> | SpaceProps
</s> Added position props in all components </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import { ViewProps, View } from 'react-native';
</s> add import { IViewProps, default as View } from '../View'; </s> remove import { ViewProps, View } from 'react-native';
</s> add </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove import { View, TouchableWithoutFeedback, StyleSheet } from 'react-native';
</s> add import { TouchableWithoutFeedback, StyleSheet } from 'react-native';
import View from './../View'; | [
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/ZStack/index.tsx | |
export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; | <mask> } from 'styled-system';
<mask>
<mask> import { getAbsoluteChildren } from '../../../utils';
<mask>
<mask> export type IZStackProps =
<mask> | ColorProps
<mask> | SpaceProps
<mask> | LayoutProps
<mask> | FlexboxProps
<mask> | BorderProps;
<mask>
<mask> const StyledZStack = styled(View)<IZStackProps>(
<mask> color,
<mask> spacing,
<mask> layout,
<mask> flexbox,
<mask> border,
<mask> position
<mask> );
<mask>
<mask> type ZStackProps = IZStackProps &
<mask> ViewProps & {
<mask> children: JSX.Element[] | JSX.Element;
<mask> reversed?: boolean;
</s> Added position props in all components </s> remove export type IStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledStack = styled(View)<IStackProps>(
color,
spacing,
layout,
flexbox,
border
);
</s> add </s> remove type ZStackProps = IZStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
};
</s> add const StyledZStack = styled(View)<IZStackProps>({}); </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
position,
space as spacing,
} from 'styled-system';
</s> add </s> remove import {
BorderProps,
ColorProps,
FlexboxProps,
LayoutProps,
SpaceProps,
border,
color,
flexbox,
layout,
space as spacing,
} from 'styled-system';
</s> add import { IViewProps, default as View } from '../View'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/ZStack/index.tsx |
const StyledZStack = styled(View)<IZStackProps>({}); | <mask> border,
<mask> position
<mask> );
<mask>
<mask> type ZStackProps = IZStackProps &
<mask> ViewProps & {
<mask> children: JSX.Element[] | JSX.Element;
<mask> reversed?: boolean;
<mask> };
<mask>
<mask> const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
<mask> return (
<mask> <StyledZStack {...props}>
<mask> {getAbsoluteChildren(children, reversed)}
</s> Added position props in all components </s> remove const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
</s> add const ZStack = ({ children, reversed, ...props }: IZStackProps) => { </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove const StyledBadge = styled(Box)<IBadgeProps>(space);
</s> add const StyledBadge = styled(Box)<IBadgeProps>({}); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/ZStack/index.tsx |
const ZStack = ({ children, reversed, ...props }: IZStackProps) => { | <mask> children: JSX.Element[] | JSX.Element;
<mask> reversed?: boolean;
<mask> };
<mask>
<mask> const ZStack = ({ children, reversed, ...props }: ZStackProps) => {
<mask> return (
<mask> <StyledZStack {...props}>
<mask> {getAbsoluteChildren(children, reversed)}
<mask> </StyledZStack>
<mask> );
</s> Added position props in all components </s> remove type ZStackProps = IZStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
};
</s> add const StyledZStack = styled(View)<IZStackProps>({}); </s> remove export type StackProps = IStackProps &
ViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
};
</s> add const StyledStack = styled(View)<IStackProps>({});
export type IStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
divider?: JSX.Element;
space?: number | SpaceType;
reversed?: boolean;
}; </s> remove export type IZStackProps =
| ColorProps
| SpaceProps
| LayoutProps
| FlexboxProps
| BorderProps;
const StyledZStack = styled(View)<IZStackProps>(
color,
spacing,
layout,
flexbox,
border,
position
);
</s> add export type IZStackProps = IViewProps & {
children: JSX.Element[] | JSX.Element;
reversed?: boolean;
}; </s> remove const Stack = (props: StackProps & { direction?: 'column' | 'row' }) => {
</s> add const Stack = (props: IStackProps & { direction?: 'column' | 'row' }) => { </s> remove const StyledBadge = styled(Box)<IBadgeProps>(space);
</s> add const StyledBadge = styled(Box)<IBadgeProps>({}); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/33358caff6992d51f9beedeaa40d69f5054edab2 | src/components/primitives/ZStack/index.tsx |
import { Badge, HStack, Button, Text } from 'native-base'; | <mask> import React from 'react';
<mask> import { Badge, HStack, Button } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <HStack>
<mask> <Button colorScheme="teal">
</s> Fixes for button and badge theme </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; </s> remove <HStack>
<Badge mx={2} colorScheme="success" variant="solid">
SOLID
</Badge>
<Badge mx={2} colorScheme="success">
SUBTLE
</Badge>
<Badge mx={2} colorScheme="success" variant="outline">
OUTLINE
</Badge>
</HStack>
</s> add <VStack>
{['solid', 'outline', 'subtle'].map((key: any) => (
<HStack>
<Badge m={2}>Default</Badge>
<Badge m={2} colorScheme="success" variant={key}>
SUCCESS
</Badge>
<Badge m={2} colorScheme="danger" variant={key}>
DANGER
</Badge>
<Badge m={2} colorScheme="info" variant={key}>
INFO
</Badge>
</HStack>
))}
</VStack> </s> remove {/* <IconButton
colorScheme="blue"
variant="outline"
icon={<Icon name={'search'} />}
>
<Badge ml={2}>10</Badge>
</IconButton> */}
</s> add </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | example/storybook/stories/components/composites/Badge/composition.tsx |
<mask> <Button colorScheme="teal">
<mask> Notifications
<mask> <Badge ml={2}>10</Badge>
<mask> </Button>
<mask> {/* <IconButton
<mask> colorScheme="blue"
<mask> variant="outline"
<mask> icon={<Icon name={'search'} />}
<mask> >
<mask> <Badge ml={2}>10</Badge>
<mask> </IconButton> */}
<mask> </HStack>
<mask> );
<mask> }
</s> Fixes for button and badge theme </s> remove <HStack>
<Badge mx={2} colorScheme="success" variant="solid">
SOLID
</Badge>
<Badge mx={2} colorScheme="success">
SUBTLE
</Badge>
<Badge mx={2} colorScheme="success" variant="outline">
OUTLINE
</Badge>
</HStack>
</s> add <VStack>
{['solid', 'outline', 'subtle'].map((key: any) => (
<HStack>
<Badge m={2}>Default</Badge>
<Badge m={2} colorScheme="success" variant={key}>
SUCCESS
</Badge>
<Badge m={2} colorScheme="danger" variant={key}>
DANGER
</Badge>
<Badge m={2} colorScheme="info" variant={key}>
INFO
</Badge>
</HStack>
))}
</VStack> </s> remove import { Badge, HStack, Button } from 'native-base';
</s> add import { Badge, HStack, Button, Text } from 'native-base'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | example/storybook/stories/components/composites/Badge/composition.tsx | |
import { Badge, HStack, VStack } from 'native-base'; | <mask> import React from 'react';
<mask> import { Badge, HStack } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <HStack>
<mask> <Badge mx={2} colorScheme="success" variant="solid">
</s> Fixes for button and badge theme </s> remove <HStack>
<Badge mx={2} colorScheme="success" variant="solid">
SOLID
</Badge>
<Badge mx={2} colorScheme="success">
SUBTLE
</Badge>
<Badge mx={2} colorScheme="success" variant="outline">
OUTLINE
</Badge>
</HStack>
</s> add <VStack>
{['solid', 'outline', 'subtle'].map((key: any) => (
<HStack>
<Badge m={2}>Default</Badge>
<Badge m={2} colorScheme="success" variant={key}>
SUCCESS
</Badge>
<Badge m={2} colorScheme="danger" variant={key}>
DANGER
</Badge>
<Badge m={2} colorScheme="info" variant={key}>
INFO
</Badge>
</HStack>
))}
</VStack> </s> remove import { Badge, HStack, Button } from 'native-base';
</s> add import { Badge, HStack, Button, Text } from 'native-base'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | example/storybook/stories/components/composites/Badge/variants.tsx |
<VStack>
{['solid', 'outline', 'subtle'].map((key: any) => (
<HStack>
<Badge m={2}>Default</Badge>
<Badge m={2} colorScheme="success" variant={key}>
SUCCESS
</Badge>
<Badge m={2} colorScheme="danger" variant={key}>
DANGER
</Badge>
<Badge m={2} colorScheme="info" variant={key}>
INFO
</Badge>
</HStack>
))}
</VStack> | <mask> import { Badge, HStack } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <HStack>
<mask> <Badge mx={2} colorScheme="success" variant="solid">
<mask> SOLID
<mask> </Badge>
<mask> <Badge mx={2} colorScheme="success">
<mask> SUBTLE
<mask> </Badge>
<mask> <Badge mx={2} colorScheme="success" variant="outline">
<mask> OUTLINE
<mask> </Badge>
<mask> </HStack>
<mask> );
<mask> }
</s> Fixes for button and badge theme </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; </s> remove import { Badge, HStack, Button } from 'native-base';
</s> add import { Badge, HStack, Button, Text } from 'native-base'; </s> remove {/* <IconButton
colorScheme="blue"
variant="outline"
icon={<Icon name={'search'} />}
>
<Badge ml={2}>10</Badge>
</IconButton> */}
</s> add </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | example/storybook/stories/components/composites/Badge/variants.tsx |
import Icon from '../../../primitives/Icon'; | <mask> import React from 'react';
<mask> import { Icon } from '../../../primitives';
<mask> import { Circle, G } from 'react-native-svg';
<mask>
<mask> export function Default(props: any) {
<mask> return (
<mask> <Icon color={props.color} viewBox="0 0 64 64" size={props.size}>
</s> Fixes for button and badge theme </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/components/primitives/Spinner/variants/default.tsx |
import Icon from '../../../primitives/Icon'; | <mask> import React from 'react';
<mask> import { Icon } from '../../../primitives';
<mask> import { Path } from 'react-native-svg';
<mask>
<mask> export function Dotted(props: any) {
<mask> return (
<mask> <Icon color={props.color} viewBox="0 0 66.238 69" size={props.size}>
</s> Fixes for button and badge theme </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/components/primitives/Spinner/variants/dotted.tsx |
import Icon from '../../../primitives/Icon'; | <mask> import React from 'react';
<mask> import { Icon } from '../../../primitives';
<mask> import { Circle, Ellipse } from 'react-native-svg';
<mask>
<mask> export function MultiColorDotted(props: any) {
<mask> return (
<mask> <Icon color={props.color} viewBox="0 0 74.072 74.072" size={props.size}>
</s> Fixes for button and badge theme </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/components/primitives/Spinner/variants/multiColorDotted.tsx |
import Icon from '../../../primitives/Icon'; | <mask> import React from 'react';
<mask> import { Icon } from '../../../primitives';
<mask> import { Circle, G } from 'react-native-svg';
<mask>
<mask> export function SquareDotted(props: any) {
<mask> return (
<mask> <Icon color={props.color} viewBox="0 0 50 50" size={props.size}>
</s> Fixes for button and badge theme </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/components/primitives/Spinner/variants/squareDotted.tsx |
import Icon from '../../../primitives/Icon'; | <mask> import React from 'react';
<mask> import { Icon } from '../../../primitives';
<mask> import { Path, G } from 'react-native-svg';
<mask>
<mask> export function Stroked(props: any) {
<mask> return (
<mask> <Icon color={props.color} viewBox="0 0 69.672 69.672" size={props.size}>
</s> Fixes for button and badge theme </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Icon } from '../../../primitives';
</s> add import Icon from '../../../primitives/Icon'; </s> remove import { Badge, HStack } from 'native-base';
</s> add import { Badge, HStack, VStack } from 'native-base'; | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/components/primitives/Spinner/variants/stroked.tsx |
bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), | <mask>
<mask> function variantSolid(props: Record<string, any>) {
<mask> let colorScheme = getColorScheme(props);
<mask> return {
<mask> bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
<mask> color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
<mask> borderWidth: 1,
<mask> borderColor: 'transparent',
<mask> };
<mask> }
<mask>
</s> Fixes for button and badge theme </s> remove bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove borderColor: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
</s> add borderColor: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props), </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/badge.ts |
bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), | <mask>
<mask> function variantSubtle(props: Record<string, any>) {
<mask> let colorScheme = getColorScheme(props);
<mask> return {
<mask> bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
<mask> color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
<mask> borderWidth: 1,
<mask> borderColor: 'transparent',
<mask> };
<mask> }
</s> Fixes for button and badge theme </s> remove bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove borderColor: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
</s> add borderColor: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props), </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/badge.ts |
borderColor: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props), | <mask>
<mask> function variantOutline(props: Record<string, any>) {
<mask> let colorScheme = getColorScheme(props);
<mask> return {
<mask> borderColor: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
<mask> color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
<mask> borderWidth: 1,
<mask> };
<mask> }
<mask>
<mask> const variants = {
</s> Fixes for button and badge theme </s> remove bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove color: mode(`gray.600`, `whiteAlpha.900`)(props),
</s> add color: mode(`gray.500`, `whiteAlpha.900`)(props), </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/badge.ts |
color: mode(`gray.500`, `whiteAlpha.900`)(props), | <mask> function variantGhost(props: Dict) {
<mask> const { colorScheme: c } = props;
<mask> if (c === 'gray') {
<mask> return {
<mask> color: mode(`gray.600`, `whiteAlpha.900`)(props),
<mask> };
<mask> }
<mask>
<mask> return {
<mask> color: mode(`${c}.600`, `${c}.200`)(props),
</s> Fixes for button and badge theme </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; </s> remove c === 'gray' ? borderColor : mode(`${c}.600`, `${c}.200`)(props),
</s> add c === 'gray' ? borderColor : mode(`${c}.500`, `${c}.200`)(props), </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), </s> remove borderColor: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
</s> add borderColor: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/button.ts |
color: mode(`${c}.500`, `${c}.200`)(props), | <mask> };
<mask> }
<mask>
<mask> return {
<mask> color: mode(`${c}.600`, `${c}.200`)(props),
<mask> bg: 'transparent',
<mask> };
<mask> }
<mask>
<mask> function variantOutline(props: Dict) {
</s> Fixes for button and badge theme </s> remove color: mode(`gray.600`, `whiteAlpha.900`)(props),
</s> add color: mode(`gray.500`, `whiteAlpha.900`)(props), </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), </s> remove bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove c === 'gray' ? borderColor : mode(`${c}.600`, `${c}.200`)(props),
</s> add c === 'gray' ? borderColor : mode(`${c}.500`, `${c}.200`)(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/button.ts |
c === 'gray' ? borderColor : mode(`${c}.500`, `${c}.200`)(props), | <mask> const borderColor = mode(`gray.200`, `whiteAlpha.300`)(props);
<mask> return {
<mask> border: '1px solid',
<mask> borderColor:
<mask> c === 'gray' ? borderColor : mode(`${c}.600`, `${c}.200`)(props),
<mask> ...variantGhost(props),
<mask> };
<mask> }
<mask>
<mask> type AccessibleColor = {
</s> Fixes for button and badge theme </s> remove color: mode(`gray.600`, `whiteAlpha.900`)(props),
</s> add color: mode(`gray.500`, `whiteAlpha.900`)(props), </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; </s> remove borderColor: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
</s> add borderColor: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props), </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/button.ts |
const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; | <mask> if (c === 'gray')
<mask> return {
<mask> bg: mode(`gray.100`, `whiteAlpha.200`)(props),
<mask> };
<mask> const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
<mask> return {
<mask> bg: mode(bg, `${c}.700`)(props),
<mask> color: mode(color, `gray.800`)(props),
<mask> };
<mask> }
</s> Fixes for button and badge theme </s> remove bg: mode(bg, `${c}.700`)(props),
</s> add bg: mode(bg, `${c}.400`)(props), </s> remove color: mode(`gray.600`, `whiteAlpha.900`)(props),
</s> add color: mode(`gray.500`, `whiteAlpha.900`)(props), </s> remove bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove c === 'gray' ? borderColor : mode(`${c}.600`, `${c}.200`)(props),
</s> add c === 'gray' ? borderColor : mode(`${c}.500`, `${c}.200`)(props), </s> remove bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/button.ts |
bg: mode(bg, `${c}.400`)(props), | <mask> bg: mode(`gray.100`, `whiteAlpha.200`)(props),
<mask> };
<mask> const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
<mask> return {
<mask> bg: mode(bg, `${c}.700`)(props),
<mask> color: mode(color, `gray.800`)(props),
<mask> };
<mask> }
<mask>
<mask> function variantLink(props: Dict) {
</s> Fixes for button and badge theme </s> remove const { bg = `${c}.700`, color = 'white' } = accessibleColorMap[c] || {};
</s> add const { bg = `${c}.500`, color = 'white' } = accessibleColorMap[c] || {}; </s> remove color: mode(`${c}.600`, `${c}.200`)(props),
</s> add color: mode(`${c}.500`, `${c}.200`)(props), </s> remove color: mode(`gray.600`, `whiteAlpha.900`)(props),
</s> add color: mode(`gray.500`, `whiteAlpha.900`)(props), </s> remove bg: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), </s> remove bg: mode(`${colorScheme}.700`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.700`)(props),
</s> add bg: mode(`${colorScheme}.500`, `${colorScheme}.100`)(props),
color: mode(`${colorScheme}.100`, `${colorScheme}.500`)(props), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/335f98d962eea6796654c718d6b884492c14905c | src/theme/components/button.ts |
Center, | <mask> Icon,
<mask> ColorMode,
<mask> useColorModeValue,
<mask> } from 'native-base';
<mask> import type { StorageManager } from 'native-base';
<mask> import { Button } from 'react-native';
<mask> import AsyncStorage from '@react-native-async-storage/async-storage';
</s> fix: position prop in fab </s> remove import type { ViewStyle, TextStyle } from 'react-native';
</s> add </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/Wrapper.tsx |
<Center | <mask>
<mask> function MyWrapper({ children }: any) {
<mask> const { colorMode, toggleColorMode } = useColorMode();
<mask> return (
<mask> <View
<mask> flex={1}
<mask> justifyContent="center"
<mask> alignItems="center"
<mask> bg={useColorModeValue(`gray.50`, `gray.800`)}
<mask> >
</s> fix: position prop in fab </s> remove justifyContent="center"
alignItems="center"
</s> add // justifyContent="center"
// alignItems="center" </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove topRight: { top: 4, right: 4, position: 'absolute' },
topLeft: { top: 4, left: 4, position: 'absolute' },
bottomRight: { bottom: 4, right: 4, position: 'absolute' },
bottomLeft: { bottom: 4, left: 4, position: 'absolute' },
</s> add 'top-right': { top: 4, right: 4, position: 'absolute' },
'top-left': { top: 4, left: 4, position: 'absolute' },
'bottom-right': { bottom: 4, right: 4, position: 'absolute' },
'bottom-left': { bottom: 4, left: 4, position: 'absolute' }, </s> remove </View>
</s> add </Center> </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/Wrapper.tsx |
// justifyContent="center"
// alignItems="center" | <mask> const { colorMode, toggleColorMode } = useColorMode();
<mask> return (
<mask> <View
<mask> flex={1}
<mask> justifyContent="center"
<mask> alignItems="center"
<mask> bg={useColorModeValue(`gray.50`, `gray.800`)}
<mask> >
<mask> <IconButton
<mask> position="absolute"
<mask> top={10}
</s> fix: position prop in fab </s> remove <View
</s> add <Center </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove topRight: { top: 4, right: 4, position: 'absolute' },
topLeft: { top: 4, left: 4, position: 'absolute' },
bottomRight: { bottom: 4, right: 4, position: 'absolute' },
bottomLeft: { bottom: 4, left: 4, position: 'absolute' },
</s> add 'top-right': { top: 4, right: 4, position: 'absolute' },
'top-left': { top: 4, left: 4, position: 'absolute' },
'bottom-right': { bottom: 4, right: 4, position: 'absolute' },
'bottom-left': { bottom: 4, left: 4, position: 'absolute' }, </s> remove </View>
</s> add </Center> </s> remove contrastThreshold: 3,
</s> add contrastThreshold: 7, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/Wrapper.tsx |
</Center> | <mask> />
<mask> }
<mask> />
<mask> {children}
<mask> </View>
<mask> );
<mask> }
<mask>
<mask> export function RenderTestButton() {
<mask> const [state, setState] = React.useState(1);
</s> fix: position prop in fab </s> remove placement={'bottomRight'}
</s> add placement={'bottom-right'} </s> remove <View
</s> add <Center </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove contrastThreshold: 3,
</s> add contrastThreshold: 7, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/Wrapper.tsx |
placement={'bottom-right'} | <mask> export default function () {
<mask> return (
<mask> <>
<mask> <Fab
<mask> placement={'bottomRight'}
<mask> bg="teal.200"
<mask> icon={<Icon name="plus" type="AntDesign" />}
<mask> />
<mask> <Fab
<mask> bg="teal.200"
</s> fix: position prop in fab </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove </View>
</s> add </Center> </s> remove <View
</s> add <Center | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Fab/Basic.tsx |
<Center size={20} bg="red.200"> | <mask> import { Wrap, Center } from 'native-base';
<mask> export default function () {
<mask> return (
<mask> <Wrap spacing={10} align="center" direction="row">
<mask> <Center w="100px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="180px" h="80px" bg="green.200">
</s> add <Center size={20} bg="green.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentAlign.tsx |
<Center size={16} bg="green.200"> | <mask> <Wrap spacing={10} align="center" direction="row">
<mask> <Center w="100px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentAlign.tsx |
<Center size={12} bg="tomato"> | <mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> </s> remove <Center w="180px" h="80px" bg="tomato">
</s> add <Center size={20} bg="tomato"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentAlign.tsx |
<Center size={10} bg="blue.200"> | <mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
<mask> </Wrap>
<mask> );
<mask> }
</s> fix: position prop in fab </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={20} bg="blue.200"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="180px" h="80px" bg="tomato">
</s> add <Center size={20} bg="tomato"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentAlign.tsx |
<Center size={20} bg="red.200"> | <mask> import { Wrap, Center } from 'native-base';
<mask> export default function () {
<mask> return (
<mask> <Wrap spacing={10} justify="center" direction="row">
<mask> <Center w="100px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="180px" h="80px" bg="green.200">
</s> add <Center size={20} bg="green.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentJustify.tsx |
<Center size={16} bg="green.200"> | <mask> <Wrap spacing={10} justify="center" direction="row">
<mask> <Center w="100px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentJustify.tsx |
<Center size={12} bg="tomato"> | <mask> </Center>
<mask> <Center w="100px" h="40px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
</s> fix: position prop in fab | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentJustify.tsx |
<Center size={10} bg="blue.200"> | <mask> </Center>
<mask> <Center w="100px" h="60px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
<mask> </Wrap>
<mask> );
<mask> }
</s> fix: position prop in fab | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/AlignmentJustify.tsx |
<Center size={20} bg="red.200"> | <mask> import { Wrap, Center } from 'native-base';
<mask> export default function () {
<mask> return (
<mask> <Wrap direction="row">
<mask> <Center w="180px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="green.200">
<mask> Box 2
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="100px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="180px" h="80px" bg="green.200">
</s> add <Center size={20} bg="green.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/Basic.tsx |
<Center size={20} bg="green.200"> | <mask> <Wrap direction="row">
<mask> <Center w="180px" h="80px" bg="red.200">
<mask> Box 1
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="tomato">
<mask> Box 3
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> </s> remove <Center w="180px" h="80px" bg="tomato">
</s> add <Center size={20} bg="tomato"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="100px" h="40px" bg="green.200">
</s> add <Center size={16} bg="green.200"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={20} bg="blue.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/Basic.tsx |
<Center size={20} bg="tomato"> | <mask> </Center>
<mask> <Center w="180px" h="80px" bg="green.200">
<mask> Box 2
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
</s> fix: position prop in fab </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={20} bg="blue.200"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="180px" h="80px" bg="green.200">
</s> add <Center size={20} bg="green.200"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/Basic.tsx |
<Center size={20} bg="blue.200"> | <mask> </Center>
<mask> <Center w="180px" h="80px" bg="tomato">
<mask> Box 3
<mask> </Center>
<mask> <Center w="180px" h="80px" bg="blue.200">
<mask> Box 4
<mask> </Center>
<mask> </Wrap>
<mask> );
<mask> }
</s> fix: position prop in fab </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> </s> remove <Center w="180px" h="80px" bg="blue.200">
</s> add <Center size={10} bg="blue.200"> </s> remove <Center w="180px" h="80px" bg="tomato">
</s> add <Center size={20} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> </s> remove <Center w="100px" h="60px" bg="tomato">
</s> add <Center size={12} bg="tomato"> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | example/storybook/stories/components/composites/Wrap/Basic.tsx |
const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); | <mask> import { HStack } from '../../primitives/Stack';
<mask> import type { IFabProps } from './types';
<mask>
<mask> const Fab = (props: IFabProps, ref: any) => {
<mask> const { label, icon, placement, ...newProps } = omitUndefined(props);
<mask>
<mask> const placementProps: any = {
<mask> topRight: { top: 4, right: 4, position: 'absolute' },
<mask> topLeft: { top: 4, left: 4, position: 'absolute' },
<mask> bottomRight: { bottom: 4, right: 4, position: 'absolute' },
</s> fix: position prop in fab </s> remove topRight: { top: 4, right: 4, position: 'absolute' },
topLeft: { top: 4, left: 4, position: 'absolute' },
bottomRight: { bottom: 4, right: 4, position: 'absolute' },
bottomLeft: { bottom: 4, left: 4, position: 'absolute' },
</s> add 'top-right': { top: 4, right: 4, position: 'absolute' },
'top-left': { top: 4, left: 4, position: 'absolute' },
'bottom-right': { bottom: 4, right: 4, position: 'absolute' },
'bottom-left': { bottom: 4, left: 4, position: 'absolute' }, </s> remove import type { ViewStyle, TextStyle } from 'react-native';
</s> add </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove <View
</s> add <Center | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/components/composites/Fab/Fab.tsx |
'top-right': { top: 4, right: 4, position: 'absolute' },
'top-left': { top: 4, left: 4, position: 'absolute' },
'bottom-right': { bottom: 4, right: 4, position: 'absolute' },
'bottom-left': { bottom: 4, left: 4, position: 'absolute' }, | <mask> const Fab = (props: IFabProps, ref: any) => {
<mask> const { label, icon, placement, ...newProps } = omitUndefined(props);
<mask>
<mask> const placementProps: any = {
<mask> topRight: { top: 4, right: 4, position: 'absolute' },
<mask> topLeft: { top: 4, left: 4, position: 'absolute' },
<mask> bottomRight: { bottom: 4, right: 4, position: 'absolute' },
<mask> bottomLeft: { bottom: 4, left: 4, position: 'absolute' },
<mask> };
<mask> return (
<mask> <Button
<mask> variant="unstyled"
<mask> bg="default.200"
</s> fix: position prop in fab </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove <View
</s> add <Center </s> remove justifyContent="center"
alignItems="center"
</s> add // justifyContent="center"
// alignItems="center" </s> remove </View>
</s> add </Center> </s> remove contrastThreshold: 3,
</s> add contrastThreshold: 7, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/components/composites/Fab/Fab.tsx |
placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; | <mask> import type { IIconButtonProps } from '../IconButton';
<mask>
<mask> export type IFabProps = IIconButtonProps & {
<mask> placement?: 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft';
<mask> label?: JSX.Element | string;
<mask> };
</s> fix: position prop in fab </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove import type { ViewStyle, TextStyle } from 'react-native';
</s> add </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove contrastThreshold: 3,
</s> add contrastThreshold: 7, | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/components/composites/Fab/types.tsx |
<mask> import type { ViewStyle, TextStyle } from 'react-native';
<mask> import type { IBoxProps } from '../../primitives';
<mask> export type IKbdProps = IBoxProps & {
<mask> style?: ViewStyle;
<mask> textStyle?: TextStyle;
<mask> children?: JSX.Element | string;
</s> fix: position prop in fab </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove placement?: 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft';
</s> add placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/components/composites/KBD/types.ts | |
export type IKbdProps = IBoxProps; | <mask> import type { ViewStyle, TextStyle } from 'react-native';
<mask> import type { IBoxProps } from '../../primitives';
<mask> export type IKbdProps = IBoxProps & {
<mask> style?: ViewStyle;
<mask> textStyle?: TextStyle;
<mask> children?: JSX.Element | string;
<mask> fontSize?: number;
<mask> shadow?: number;
<mask> };
</s> fix: position prop in fab </s> remove import type { ViewStyle, TextStyle } from 'react-native';
</s> add </s> remove placement?: 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft';
</s> add placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove <Center w="180px" h="80px" bg="red.200">
</s> add <Center size={20} bg="red.200"> | [
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/components/composites/KBD/types.ts |
contrastThreshold: 7, | <mask> 900: string;
<mask> }
<mask>
<mask> const colors = {
<mask> contrastThreshold: 3,
<mask> // Singleton colors
<mask> white: '#FFFFFF',
<mask> black: '#000000',
<mask> lightText: '#FFFFFF',
<mask> darkText: '#27272a',
</s> fix: position prop in fab </s> remove justifyContent="center"
alignItems="center"
</s> add // justifyContent="center"
// alignItems="center" </s> remove const { label, icon, placement, ...newProps } = omitUndefined(props);
</s> add const {
label,
icon,
placement = 'bottom-right',
...newProps
} = omitUndefined(props); </s> remove import type { ViewStyle, TextStyle } from 'react-native';
</s> add </s> remove export type IKbdProps = IBoxProps & {
style?: ViewStyle;
textStyle?: TextStyle;
children?: JSX.Element | string;
fontSize?: number;
shadow?: number;
};
</s> add export type IKbdProps = IBoxProps; </s> remove </View>
</s> add </Center> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/3400b49b846a5c892862c4ad85605fc0fb851393 | src/theme/base/colors.ts |
<Heading>List with Icons</Heading>
<List mt={2} fontSize={24} spacing={4} my={2}> | <mask>
<mask> export default function () {
<mask> return (
<mask> <Box height="50%">
<mask> <Heading color="indigo.500">List with Icons</Heading>
<mask> <List mt={2} fontSize={24} spacing={4}>
<mask> <List.Item>
<mask> <List.Icon
<mask> name="check-circle-outline"
<mask> color="green.400"
<mask> type="MaterialIcons"
</s> fix: updated theme and styling approch </s> remove .add('Default List', () => <DefaultList />)
</s> add .add('Basic', () => <Basic />)
.add('OrderedList', () => <OrderedList />)
.add('UnorderedList', () => <UnorderedList />)
.add('StylingList', () => <StylingList />) </s> remove <Box
style={style}
{...layoutProps}
{...themeProps.listStyle}
{...borderProps}
>
<VStack {...remainingProps}>{children}</VStack>
</Box>
</s> add <VStack style={style} {...newProps}>
{children}
</VStack> </s> remove export default { defaultProps };
</s> add // ListIcon
export const ListIcon = {}; </s> remove return <Icon mr={2} {...props} />;
</s> add const newProps = useThemeProps('List', props);
return <Icon mr={2} {...newProps} />; </s> remove let [, remainingProps, layoutProps, borderProps] = findProps(props);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | example/storybook/stories/components/primitives/List/ListWithIcon.tsx |
import UnorderedList from './UnorderedList';
import StylingList from './StylingList';
import OrderedList from './OrderedList';
import Basic from './Basic'; | <mask> import React from 'react';
<mask> import { storiesOf } from '@storybook/react-native';
<mask> import { withKnobs } from '@storybook/addon-knobs';
<mask> import Wrapper from './../../Wrapper';
<mask> import DefaultList from './DefaultList';
<mask> import ListWithIcon from './ListWithIcon';
<mask> import VirtualizedList from './VirtualizedList';
<mask>
<mask> storiesOf('List', module)
<mask> .addDecorator(withKnobs)
</s> fix: updated theme and styling approch </s> remove import Text from '../Text';
</s> add </s> remove import Box from '../Box';
</s> add </s> remove // import Box from '../Box';
</s> add </s> remove import type { ScrollViewProps, ViewStyle } from 'react-native';
import type {
BorderProps,
ColorProps,
LayoutProps,
SpaceProps,
TypographyProps,
} from 'styled-system';
</s> add import type { ViewStyle } from 'react-native';
import type { IStackProps } from '../Stack'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | example/storybook/stories/components/primitives/List/index.tsx |
.add('Basic', () => <Basic />)
.add('OrderedList', () => <OrderedList />)
.add('UnorderedList', () => <UnorderedList />)
.add('StylingList', () => <StylingList />) | <mask>
<mask> storiesOf('List', module)
<mask> .addDecorator(withKnobs)
<mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
<mask> .add('Default List', () => <DefaultList />)
<mask> .add('List with Icon', () => <ListWithIcon />)
<mask> .add('VirtualizedList ', () => <VirtualizedList />);
</s> fix: updated theme and styling approch </s> remove <Heading color="indigo.500">List with Icons</Heading>
<List mt={2} fontSize={24} spacing={4}>
</s> add <Heading>List with Icons</Heading>
<List mt={2} fontSize={24} spacing={4} my={2}> </s> remove import DefaultList from './DefaultList';
</s> add import UnorderedList from './UnorderedList';
import StylingList from './StylingList';
import OrderedList from './OrderedList';
import Basic from './Basic'; </s> remove let childrenArray = React.Children.toArray(children);
</s> add </s> remove const themeProps = useThemeProps('List', props);
</s> add const { _text, ...newProps } = useThemeProps('List', props); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | example/storybook/stories/components/primitives/List/index.tsx |
const { _text, ...newProps } = useThemeProps('List', props); | <mask> import type { IListProps, IListItemProps } from './types';
<mask> import { useThemeProps } from '../../../hooks';
<mask>
<mask> const List = ({ children, spacing, ...props }: IListProps, ref?: any) => {
<mask> const themeProps = useThemeProps('List', props);
<mask> // add props to children
<mask> let childrenArray = React.Children.toArray(children);
<mask> children = React.Children.map(children, (child: any, ind: number) => {
<mask> if (ind === childrenArray.length - 1) {
<mask> return React.cloneElement(
</s> fix: updated theme and styling approch </s> remove let childrenArray = React.Children.toArray(children);
</s> add </s> remove const themeProps = useThemeProps('List', props);
let childrenArray = React.Children.toArray(children);
</s> add </s> remove let childrenArray = React.Children.toArray(children);
const themeProps = useThemeProps('List', props);
</s> add </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
index: ind,
...themeProps.lastListItemStyle,
py: spacing,
},
child.props.children
);
}
</s> add </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
index: ind,
...themeProps.lastListItemStyle,
...props,
ul: true,
py: spacing,
},
child.props.children
);
}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | src/components/primitives/List/List.tsx |
<mask>
<mask> const List = ({ children, spacing, ...props }: IListProps, ref?: any) => {
<mask> const themeProps = useThemeProps('List', props);
<mask> // add props to children
<mask> let childrenArray = React.Children.toArray(children);
<mask> children = React.Children.map(children, (child: any, ind: number) => {
<mask> if (ind === childrenArray.length - 1) {
<mask> return React.cloneElement(
<mask> child,
<mask> {
</s> fix: updated theme and styling approch </s> remove const themeProps = useThemeProps('List', props);
</s> add const { _text, ...newProps } = useThemeProps('List', props); </s> remove let childrenArray = React.Children.toArray(children);
const themeProps = useThemeProps('List', props);
</s> add </s> remove const themeProps = useThemeProps('List', props);
let childrenArray = React.Children.toArray(children);
</s> add </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
index: ind,
...themeProps.lastListItemStyle,
py: spacing,
},
child.props.children
);
}
</s> add </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
index: ind,
...themeProps.lastListItemStyle,
...props,
ul: true,
py: spacing,
},
child.props.children
);
}
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | src/components/primitives/List/List.tsx | |
<mask> const themeProps = useThemeProps('List', props);
<mask> // add props to children
<mask> let childrenArray = React.Children.toArray(children);
<mask> children = React.Children.map(children, (child: any, ind: number) => {
<mask> if (ind === childrenArray.length - 1) {
<mask> return React.cloneElement(
<mask> child,
<mask> {
<mask> index: ind,
<mask> ...themeProps.lastListItemStyle,
<mask> py: spacing,
<mask> },
<mask> child.props.children
<mask> );
<mask> }
<mask> return React.cloneElement(
<mask> child,
<mask> {
<mask> index: ind,
<mask> py: spacing,
</s> fix: updated theme and styling approch </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
index: ind,
...themeProps.lastListItemStyle,
...props,
ul: true,
py: spacing,
},
child.props.children
);
}
</s> add </s> remove if (ind === childrenArray.length - 1) {
return React.cloneElement(
child,
{
...themeProps.lastListItemStyle,
...child.props,
...props,
ol: true,
py: spacing,
index: ind,
},
child.props.children
);
}
</s> add </s> remove let childrenArray = React.Children.toArray(children);
</s> add </s> remove let childrenArray = React.Children.toArray(children);
const themeProps = useThemeProps('List', props);
</s> add </s> remove const themeProps = useThemeProps('List', props);
let childrenArray = React.Children.toArray(children);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/350242d66ed92b8ff4ef49632737ca45a97c17f4 | src/components/primitives/List/List.tsx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.