docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
<mask> {},
<mask> mapPropsToStyleNames
<mask> )(ActionSheetContainer);
<mask>
<mask> export { StyledActionSheetContainer as ActionSheetContainer }; </s> ActionSheet: Fixed as per design guidelines </s> remove items: [],
</s> add items: [] </s> remove FlatList
</s> add FlatList,
Dimensions </s> remove callback: callback,
</s> add callback: callback </s> remove style={{ borderColor: "transparent" }}>
</s> add style={{ borderColor: "transparent", marginLeft: 14 }}
> </s> remove <ListItem
onPress={() => {
this.state.callback(parseInt(index));
this.setState({ modalVisible: false });
}}
style={{ borderColor: "transparent" }}
icon
</s> add <ListItem
onPress={() => {
this.state.callback(parseInt(index));
this.setState({ modalVisible: false });
}}
style={{
borderColor: "transparent",
marginLeft: 14,
height: 50
}}
icon
>
<Left>
<Icon
name={item.icon}
style={{
color: item.iconColor ? item.iconColor : undefined
}}
/>
</Left>
<Body
style={{ borderColor: "transparent", paddingLeft: 7 }} | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca | src/basic/Actionsheet.js | |
accessibilityHidden | <mask> const requiredAsterisk = () => (
<mask> <Text
<mask> //@ts-ignore web only role
<mask> accessibilityRole="presentation"
<mask> aria-hidden
<mask> color={textColor}
<mask> >
<mask> *
<mask> </Text>
<mask> );
</s> feat: add form control test cases </s> remove else if (inputProps['aria-invalid']) updatedBorderColor = errorBorderColor;
</s> add else if (inputProps.accessibilityInvalid)
updatedBorderColor = errorBorderColor; </s> remove 'nativeID': props.nativeID ?? field?.nativeID,
'disabled': props.isDisabled || field?.isDisabled,
'readOnly': props.isReadOnly || field?.isReadOnly,
'required': props.isRequired || field?.isRequired,
'aria-invalid': ariaAttr(props.isInvalid || field?.isInvalid),
'aria-required': ariaAttr(props.isRequired || field?.isRequired),
'aria-readonly': ariaAttr(props.isReadOnly || field?.isReadOnly),
'aria-describedby': ariaDescribedBy || undefined,
</s> add nativeID: props.nativeID ?? field?.nativeID,
disabled: props.isDisabled || field?.isDisabled,
readOnly: props.isReadOnly || field?.isReadOnly,
required: props.isRequired || field?.isRequired,
accessibilityInvalid: ariaAttr(props.isInvalid || field?.isInvalid),
accessibilityRequired: ariaAttr(props.isRequired || field?.isRequired),
accessibilityReadOnly: ariaAttr(props.isReadOnly || field?.isReadOnly),
accessibilityDescribedBy: ariaDescribedBy || undefined, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1ab2a58645f9b36183b8e4459ce38879042c6d72 | src/components/composites/FormControl/FormLabel.tsx |
nativeID: props.nativeID ?? field?.nativeID,
disabled: props.isDisabled || field?.isDisabled,
readOnly: props.isReadOnly || field?.isReadOnly,
required: props.isRequired || field?.isRequired,
accessibilityInvalid: ariaAttr(props.isInvalid || field?.isInvalid),
accessibilityRequired: ariaAttr(props.isRequired || field?.isRequired),
accessibilityReadOnly: ariaAttr(props.isReadOnly || field?.isReadOnly),
accessibilityDescribedBy: ariaDescribedBy || undefined, | <mask> ]);
<mask>
<mask> return {
<mask> ...cleanProps,
<mask> 'nativeID': props.nativeID ?? field?.nativeID,
<mask> 'disabled': props.isDisabled || field?.isDisabled,
<mask> 'readOnly': props.isReadOnly || field?.isReadOnly,
<mask> 'required': props.isRequired || field?.isRequired,
<mask> 'aria-invalid': ariaAttr(props.isInvalid || field?.isInvalid),
<mask> 'aria-required': ariaAttr(props.isRequired || field?.isRequired),
<mask> 'aria-readonly': ariaAttr(props.isReadOnly || field?.isReadOnly),
<mask> 'aria-describedby': ariaDescribedBy || undefined,
<mask> };
<mask> }
<mask>
<mask> export const useFormControlContext = () => {
<mask> return (React.useContext(
</s> feat: add form control test cases </s> remove else if (inputProps['aria-invalid']) updatedBorderColor = errorBorderColor;
</s> add else if (inputProps.accessibilityInvalid)
updatedBorderColor = errorBorderColor; </s> remove aria-hidden
</s> add accessibilityHidden | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1ab2a58645f9b36183b8e4459ce38879042c6d72 | src/components/composites/FormControl/useFormControl.tsx |
else if (inputProps.accessibilityInvalid)
updatedBorderColor = errorBorderColor; | <mask>
<mask> let updatedBorderColor = borderColorFromProps;
<mask> if (isHovered) updatedBorderColor = hoverBorderColor;
<mask> else if (isFocused) updatedBorderColor = focusBorderColor;
<mask> else if (inputProps['aria-invalid']) updatedBorderColor = errorBorderColor;
<mask> const focusStyle = {
<mask> shadow: 3,
<mask> shadowColor: '#2563EB',
<mask> };
<mask>
</s> feat: add form control test cases </s> remove aria-hidden
</s> add accessibilityHidden </s> remove 'nativeID': props.nativeID ?? field?.nativeID,
'disabled': props.isDisabled || field?.isDisabled,
'readOnly': props.isReadOnly || field?.isReadOnly,
'required': props.isRequired || field?.isRequired,
'aria-invalid': ariaAttr(props.isInvalid || field?.isInvalid),
'aria-required': ariaAttr(props.isRequired || field?.isRequired),
'aria-readonly': ariaAttr(props.isReadOnly || field?.isReadOnly),
'aria-describedby': ariaDescribedBy || undefined,
</s> add nativeID: props.nativeID ?? field?.nativeID,
disabled: props.isDisabled || field?.isDisabled,
readOnly: props.isReadOnly || field?.isReadOnly,
required: props.isRequired || field?.isRequired,
accessibilityInvalid: ariaAttr(props.isInvalid || field?.isInvalid),
accessibilityRequired: ariaAttr(props.isRequired || field?.isRequired),
accessibilityReadOnly: ariaAttr(props.isReadOnly || field?.isReadOnly),
accessibilityDescribedBy: ariaDescribedBy || undefined, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1ab2a58645f9b36183b8e4459ce38879042c6d72 | src/components/primitives/Input/index.tsx |
import React, { forwardRef } from 'react'; | <mask> import React from 'react';
<mask> import { View as RNView } from 'react-native';
<mask> import { usePropsResolution } from '../../../hooks';
<mask> import { makeStyledBox } from '../../../utils/styled';
<mask> import type { IViewProps } from './types';
<mask>
</s> fix: added forward ref to view </s> remove };
</s> add }); </s> remove export const View = (props: IViewProps, ref: any) => {
</s> add export const View = forwardRef((props: IViewProps, ref: any) => { | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1bdefd3764da7cb68c65d6fbe00051c6580f3a73 | src/components/basic/View/View.tsx |
export const View = forwardRef((props: IViewProps, ref: any) => { | <mask> import type { IViewProps } from './types';
<mask>
<mask> const StyledView: any = makeStyledBox(RNView);
<mask>
<mask> export const View = (props: IViewProps, ref: any) => {
<mask> const { ...resolvedProps } = usePropsResolution('View', props);
<mask>
<mask> return <StyledView {...resolvedProps} ref={ref} />;
<mask> };
</s> fix: added forward ref to view </s> remove import React from 'react';
</s> add import React, { forwardRef } from 'react'; </s> remove };
</s> add }); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1bdefd3764da7cb68c65d6fbe00051c6580f3a73 | src/components/basic/View/View.tsx |
}); | <mask> export const View = (props: IViewProps, ref: any) => {
<mask> const { ...resolvedProps } = usePropsResolution('View', props);
<mask>
<mask> return <StyledView {...resolvedProps} ref={ref} />;
<mask> };
</s> fix: added forward ref to view </s> remove import React from 'react';
</s> add import React, { forwardRef } from 'react'; </s> remove export const View = (props: IViewProps, ref: any) => {
</s> add export const View = forwardRef((props: IViewProps, ref: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/1bdefd3764da7cb68c65d6fbe00051c6580f3a73 | src/components/basic/View/View.tsx |
keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:'handled', | <mask> automaticallyAdjustContentInsets:false,
<mask> resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},
<mask> ref:function ref(c){
<mask> _this2._scrollview=c;
<mask> _this2._root=c;
<mask> }},
</s> Merged 1414, transpiled, updated version to 2.3.4 </s> remove "version": "2.3.3",
</s> add "version": "2.3.4", </s> remove enableResetScrollToCoords:_propTypes2.default.bool};
</s> add enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string}; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c0f58e5f5c7e8a7620a0f6bbbe46de0d6ba18ce | dist/src/basic/Content.js |
enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string}; | <mask> Content.propTypes={
<mask> style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),
<mask> padder:_propTypes2.default.bool,
<mask> disableKBDismissScroll:_propTypes2.default.bool,
<mask> enableResetScrollToCoords:_propTypes2.default.bool};
<mask>
<mask>
<mask> var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.
<mask>
<mask> Content=StyledContent;
</s> Merged 1414, transpiled, updated version to 2.3.4 </s> remove "version": "2.3.3",
</s> add "version": "2.3.4", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c0f58e5f5c7e8a7620a0f6bbbe46de0d6ba18ce | dist/src/basic/Content.js |
"version": "2.3.4", | <mask> "transformIgnorePatterns": [
<mask> "node_modules/(?!react-native|@shoutem|react-clone-referenced-element)"
<mask> ]
<mask> },
<mask> "version": "2.3.3",
<mask> "license": "Apache-2.0",
<mask> "private": false,
<mask> "dependencies": {
<mask> "blueimp-md5": "^2.5.0",
<mask> "clamp": "^1.0.1",
</s> Merged 1414, transpiled, updated version to 2.3.4 </s> remove enableResetScrollToCoords:_propTypes2.default.bool};
</s> add enableResetScrollToCoords:_propTypes2.default.bool,
keyboardShouldPersistTaps:_propTypes2.default.string}; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c0f58e5f5c7e8a7620a0f6bbbe46de0d6ba18ce | package.json |
"styled-system": "^5.1.5",
"use-subscription": "^1.8.0" | <mask> "react-native-aria": "^0.2.3",
<mask> "react-native-safe-area-context": "^3.3.2",
<mask> "react-native-svg": "^12.1.1",
<mask> "styled-components": "^5.3.3",
<mask> "styled-system": "^5.1.5"
<mask> },
<mask> "devDependencies": {
<mask> "@expo/next-adapter": "^3.1.3",
<mask> "@types/react": "17.0.30",
<mask> "eslint": "7.32.0",
</s> fix: adding style insert removing rnw and adding them to repo </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | next-example/package.json |
"inline-style-prefixer": "^6.0.1", | <mask> "@react-stately/tabs": "3.0.0-alpha.1",
<mask> "@react-stately/toggle": "3.2.1",
<mask> "@types/lodash.has": "^4.5.6",
<mask> "@types/use-subscription": "^1.0.0",
<mask> "lodash.clonedeep": "^4.5.0",
<mask> "lodash.get": "^4.4.2",
<mask> "lodash.has": "^4.5.2",
<mask> "lodash.isempty": "^4.4.0",
<mask> "lodash.isequal": "^4.5.0",
</s> fix: adding style insert removing rnw and adding them to repo </s> remove
// Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
// Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
// Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
// const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
const sheet = createSheet(); //return a sheet object which is being used doesn't create one
sheet.insert(
`/*${queryHash}{}*/${mediaQueryRule}`,
MEDIA_QUERY_STYLESHEET_GROUP
);
</s> add insert(`/*${queryHash}{}*/${mediaQueryRule}`); </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | package.json |
// import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; | <mask> //@ts-ignore
<mask> import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
<mask> //@ts-ignore
<mask> import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
<mask> //@ts-ignore
<mask> import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
<mask> import type {
<mask> DataSet,
<mask> Query,
<mask> UseResponsiveQueryParams,
<mask> UseResponsiveQueryReturnType,
</s> fix: adding style insert removing rnw and adding them to repo </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add </s> remove "styled-system": "^5.1.5"
</s> add "styled-system": "^5.1.5",
"use-subscription": "^1.8.0" </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
<mask> import { getResponsiveStylesImpl, useDimensionsWithEnable } from './common';
<mask> import { ResponsiveQueryContext } from './ResponsiveQueryProvider';
<mask> import React from 'react';
<mask>
<mask> // 1. i18nStyle - Does swapping of ltr styles if enabled by user
<mask>
<mask> // 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
<mask>
<mask> // 3. atomic - God function. Pure and memoizes input/output.
<mask> // This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
<mask> // Input {marginTop: 10}
<mask> // Output {"r-margin-top-[hash]-10": {
<mask> // property: "marginTop",
<mask> // value: "10px",
<mask> // identifier: "r-margin-top-[hash]-10",
<mask> // rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
<mask> // }}
<mask>
<mask> // 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
<mask> // - getTextContent => for ssr style injection
<mask> // - insert => for inserting styles in style tag
<mask> // If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
<mask>
<mask> // Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
<mask> // refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
<mask> // We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
<mask>
<mask> /******************** Implementation after RNW v0.18 ***********************/
<mask>
<mask> /**
<mask> * 1. preprocess:- Handles shadow/text shadow conversion from RN styles to web * styles
<mask> *
</s> fix: adding style insert removing rnw and adding them to repo </s> remove
// Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
// Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
// Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
// const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
const sheet = createSheet(); //return a sheet object which is being used doesn't create one
sheet.insert(
`/*${queryHash}{}*/${mediaQueryRule}`,
MEDIA_QUERY_STYLESHEET_GROUP
);
</s> add insert(`/*${queryHash}{}*/${mediaQueryRule}`); </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask> *
<mask> * This Implementation is based on asumptions that RNW doesn't change the * function or doesn't re-write them. if there is any change in RNW implmentation * it we'll break and needs to be updated.
<mask> *
<mask> */
<mask> const MEDIA_QUERY_STYLESHEET_GROUP = 3;
<mask>
<mask> export const useResponsiveQuery = (
<mask> queries?: UseResponsiveQueryParams
<mask> ): UseResponsiveQueryReturnType => {
<mask> const responsiveQueryContext = React.useContext(ResponsiveQueryContext);
</s> fix: adding style insert removing rnw and adding them to repo </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add </s> remove
// Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
// Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
// Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
// const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
const sheet = createSheet(); //return a sheet object which is being used doesn't create one
sheet.insert(
`/*${queryHash}{}*/${mediaQueryRule}`,
MEDIA_QUERY_STYLESHEET_GROUP
);
</s> add insert(`/*${queryHash}{}*/${mediaQueryRule}`); </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
let styleSheet: any;
const insert = (rule: string) => {
if (typeof window !== 'undefined') {
if (!styleSheet) {
const styleEl = document.createElement('style');
styleEl.type = 'text/css';
styleEl.appendChild(document.createTextNode(''));
document.head.appendChild(styleEl);
styleSheet = styleEl.sheet;
}
styleSheet.insertRule(rule, styleSheet.cssRules.length);
}
}; | <mask> : undefined;
<mask>
<mask> let dataSet: DataSet = {};
<mask>
<mask> if (queries.query) {
<mask> queries.query.forEach((queryRule) => {
<mask> const queryHash = queriesHash + hash(stableHash(queryRule));
<mask> const dataAttribute = getDataAttribute(queryRule);
</s> fix: adding style insert removing rnw and adding them to repo </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; </s> remove
// Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
// Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
// Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
// const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
const sheet = createSheet(); //return a sheet object which is being used doesn't create one
sheet.insert(
`/*${queryHash}{}*/${mediaQueryRule}`,
MEDIA_QUERY_STYLESHEET_GROUP
);
</s> add insert(`/*${queryHash}{}*/${mediaQueryRule}`); </s> remove "styled-system": "^5.1.5"
</s> add "styled-system": "^5.1.5",
"use-subscription": "^1.8.0" | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
//@ts-ignore | <mask> const newStyle = preprocess(flattenQueryStyle);
<mask> const [compiledStyle, compiledOrderedRules] = atomic(newStyle);
<mask> delete compiledStyle.$$css; //removing unnecessary $$css property
<mask> Object.keys(compiledStyle).forEach((key) => {
<mask> const oldIdentifier = compiledStyle[key];
<mask> compiledOrderedRules.forEach(([rules, _order]: any) => {
<mask> // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
</s> fix: adding style insert removing rnw and adding them to repo </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; </s> remove
// Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
// Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
// Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
// const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
const sheet = createSheet(); //return a sheet object which is being used doesn't create one
sheet.insert(
`/*${queryHash}{}*/${mediaQueryRule}`,
MEDIA_QUERY_STYLESHEET_GROUP
);
</s> add insert(`/*${queryHash}{}*/${mediaQueryRule}`); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
insert(`/*${queryHash}{}*/${mediaQueryRule}`); | <mask> });
<mask> });
<mask> if (mediaRules) {
<mask> const mediaQueryRule = getMediaQueryRule(queryRule, mediaRules);
<mask>
<mask> // Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
<mask> // Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
<mask> // Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
<mask>
<mask> // const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
<mask>
<mask> const sheet = createSheet(); //return a sheet object which is being used doesn't create one
<mask>
<mask> sheet.insert(
<mask> `/*${queryHash}{}*/${mediaQueryRule}`,
<mask> MEDIA_QUERY_STYLESHEET_GROUP
<mask> );
<mask> }
<mask> }
<mask> });
<mask> }
<mask>
</s> fix: adding style insert removing rnw and adding them to repo </s> remove // 1. i18nStyle - Does swapping of ltr styles if enabled by user
// 2. createCompileableStyle - Handles shadow/text shadow conversion from RN styles to web styles
// 3. atomic - God function. Pure and memoizes input/output.
// This is a great function, it handles prefixing, converting RN specific styles to web styles and generating the CSS selector
// Input {marginTop: 10}
// Output {"r-margin-top-[hash]-10": {
// property: "marginTop",
// value: "10px",
// identifier: "r-margin-top-[hash]-10",
// rules: [{`.r-margin-top-[hash]-10: {'margin-top': '10px;`} }]
// }}
// 4. styleResolver - holds the reference of sheet object used to inject CSS. This exposes 2 functions.
// - getTextContent => for ssr style injection
// - insert => for inserting styles in style tag
// If we somehow manage to use these functions, we won't need any extra workarounds for ssr initial style injection or CSS declaration order specifictity
// Here issue is that it internally uses a cache to verify if a css rule is inserted using selector name (class name generated by RN web)
// refer line number 121 in `react-native-web/dist/exports/StyleSheet/createOrdererdCSSStyleSheetfile`.
// We can trick this hash id generator by adding a comment on top of our media query rule in this format. /* media-query + data-attr {} */ then it'll start using media-query + data-attr as cache key
</s> add </s> remove const MEDIA_QUERY_STYLESHEET_GROUP = 3;
</s> add </s> remove //@ts-ignore
import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
//@ts-ignore
import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
//@ts-ignore
import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess.js';
</s> add // import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
import { atomic } from '../react-native-web-fucntions/atomic';
import preprocess from '../react-native-web-fucntions/preprocess'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c20eb8a5785b8dd75a861736d7b55d48b65d9ef | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
<mask> //@ts-ignore
<mask> // import createCompileableStyle from 'react-native-web/dist/exports/StyleSheet/createCompileableStyle';
<mask> // //@ts-ignore
<mask> // import i18nStyle from 'react-native-web/dist/exports/StyleSheet/i18nStyle';
<mask>
<mask> //@ts-ignore
<mask> import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
<mask>
<mask> // console.log(Test, 'test');
<mask> // //@ts-ignore
</s> fix: type and removing comment out code </s> remove
// console.log(Test, 'test');
// //@ts-ignore
// import styleResolver from 'react-native-web/dist/exports/StyleSheet';
// import stylesheet from 'react-native-web/dist/exports/StyleSheet';
</s> add </s> remove // import {} from 'react-native-web';
</s> add </s> remove //@ts-ignore
</s> add // @ts-ignore </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add | [
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask> // import i18nStyle from 'react-native-web/dist/exports/StyleSheet/i18nStyle';
<mask>
<mask> //@ts-ignore
<mask> import { atomic } from 'react-native-web/dist/exports/StyleSheet/compiler';
<mask>
<mask> // console.log(Test, 'test');
<mask> // //@ts-ignore
<mask> // import styleResolver from 'react-native-web/dist/exports/StyleSheet';
<mask> // import stylesheet from 'react-native-web/dist/exports/StyleSheet';
<mask> //@ts-ignore
<mask> import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
<mask> //@ts-ignore
<mask> import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess';
<mask> // import {} from 'react-native-web';
</s> fix: type and removing comment out code </s> remove //@ts-ignore
// import createCompileableStyle from 'react-native-web/dist/exports/StyleSheet/createCompileableStyle';
// //@ts-ignore
// import i18nStyle from 'react-native-web/dist/exports/StyleSheet/i18nStyle';
</s> add </s> remove // import {} from 'react-native-web';
</s> add </s> remove //@ts-ignore
</s> add // @ts-ignore </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask> //@ts-ignore
<mask> import { createSheet } from 'react-native-web/dist/exports/StyleSheet/dom';
<mask> //@ts-ignore
<mask> import preprocess from 'react-native-web/dist/exports/StyleSheet/preprocess';
<mask> // import {} from 'react-native-web';
<mask> import type {
<mask> DataSet,
<mask> Query,
<mask> UseResponsiveQueryParams,
<mask> UseResponsiveQueryReturnType,
</s> fix: type and removing comment out code </s> remove
// console.log(Test, 'test');
// //@ts-ignore
// import styleResolver from 'react-native-web/dist/exports/StyleSheet';
// import stylesheet from 'react-native-web/dist/exports/StyleSheet';
</s> add </s> remove //@ts-ignore
</s> add // @ts-ignore </s> remove //@ts-ignore
// import createCompileableStyle from 'react-native-web/dist/exports/StyleSheet/createCompileableStyle';
// //@ts-ignore
// import i18nStyle from 'react-native-web/dist/exports/StyleSheet/i18nStyle';
</s> add </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
// @ts-ignore | <mask> UseResponsiveQueryReturnType,
<mask> GetResponsiveStylesParams,
<mask> } from './types';
<mask> import { StyleSheet } from 'react-native';
<mask> //@ts-ignore
<mask> import stableHash from 'stable-hash';
<mask> import hash from './hash';
<mask> import type { GetResponsiveStylesReturnType } from './types';
<mask> import { useStableMemo } from './useStableMemo';
<mask> import { getResponsiveStylesImpl, useDimensionsWithEnable } from './common';
</s> fix: type and removing comment out code </s> remove // import {} from 'react-native-web';
</s> add </s> remove
// console.log(Test, 'test');
// //@ts-ignore
// import styleResolver from 'react-native-web/dist/exports/StyleSheet';
// import stylesheet from 'react-native-web/dist/exports/StyleSheet';
</s> add </s> remove //@ts-ignore
// import createCompileableStyle from 'react-native-web/dist/exports/StyleSheet/createCompileableStyle';
// //@ts-ignore
// import i18nStyle from 'react-native-web/dist/exports/StyleSheet/i18nStyle';
</s> add </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { </s> remove // console.log(' hello query');
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
<mask> ]
<mask> : undefined;
<mask>
<mask> let dataSet: DataSet = {};
<mask> // console.log(' hello query');
<mask>
<mask> if (queries.query) {
<mask> queries.query.forEach((queryRule) => {
<mask> const queryHash = queriesHash + hash(stableHash(queryRule));
<mask> const dataAttribute = getDataAttribute(queryRule);
</s> fix: type and removing comment out code </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove console.log('flattenQueryStyle', flattenQueryStyle);
// const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
</s> add </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask>
<mask> let mediaRules = '';
<mask>
<mask> const flattenQueryStyle = StyleSheet.flatten(queryRule.style);
<mask> console.log('flattenQueryStyle', flattenQueryStyle);
<mask> // const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
<mask> const newStyle = preprocess(flattenQueryStyle);
<mask> console.log('newStyle', newStyle);
<mask> // console.log(
<mask> // '*** i18nStyle',
<mask> // flattenQueryStyle,
</s> fix: type and removing comment out code </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add </s> remove // console.log(' hello query');
</s> add </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove // const myOwnStyleSheet = StyleSheet.create({});
// console.log(myOwnStyleSheet, 'hello 222');
// stylesheet.getSheet().textContent +
// `/*${queryHash}{}*/${mediaQueryRule}`;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask> const flattenQueryStyle = StyleSheet.flatten(queryRule.style);
<mask> console.log('flattenQueryStyle', flattenQueryStyle);
<mask> // const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
<mask> const newStyle = preprocess(flattenQueryStyle);
<mask> console.log('newStyle', newStyle);
<mask> // console.log(
<mask> // '*** i18nStyle',
<mask> // flattenQueryStyle,
<mask> // i18nStyle(flattenQueryStyle)
<mask> // );
<mask> // console.log(
<mask> // '*** createCompileableStyle',
<mask> // i18nStyle(flattenQueryStyle),
<mask> // newStyle
<mask> // );
<mask>
<mask> // const results = atomic(flattenQueryStyle);
<mask> const [compiledStyle, compiledOrderedRules] = atomic(newStyle);
<mask> // console.log('*** atomic', compiledOrderedRules);
<mask> delete compiledStyle.$$css;
<mask> Object.keys(compiledStyle).forEach((key) => {
<mask> const oldIdentifier = compiledStyle[key];
</s> fix: type and removing comment out code </s> remove console.log('flattenQueryStyle', flattenQueryStyle);
// const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
</s> add </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove // const myOwnStyleSheet = StyleSheet.create({});
// console.log(myOwnStyleSheet, 'hello 222');
// stylesheet.getSheet().textContent +
// `/*${queryHash}{}*/${mediaQueryRule}`;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
<mask> // );
<mask>
<mask> // const results = atomic(flattenQueryStyle);
<mask> const [compiledStyle, compiledOrderedRules] = atomic(newStyle);
<mask> // console.log('*** atomic', compiledOrderedRules);
<mask> delete compiledStyle.$$css;
<mask> Object.keys(compiledStyle).forEach((key) => {
<mask> const oldIdentifier = compiledStyle[key];
<mask> compiledOrderedRules.forEach(([rules, order]) => {
<mask> // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
</s> fix: type and removing comment out code </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove // console.log(' hello query');
</s> add </s> remove console.log('flattenQueryStyle', flattenQueryStyle);
// const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
compiledOrderedRules.forEach(([rules, _order]: any) => { | <mask> // console.log('*** atomic', compiledOrderedRules);
<mask> delete compiledStyle.$$css;
<mask> Object.keys(compiledStyle).forEach((key) => {
<mask> const oldIdentifier = compiledStyle[key];
<mask> compiledOrderedRules.forEach(([rules, order]) => {
<mask> // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
<mask> const newRule = rules[0].replace(
<mask> '.' + oldIdentifier,
<mask> newIdentifier
<mask> );
</s> fix: type and removing comment out code </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add </s> remove // console.log(' hello query');
</s> add </s> remove // const myOwnStyleSheet = StyleSheet.create({});
// console.log(myOwnStyleSheet, 'hello 222');
// stylesheet.getSheet().textContent +
// `/*${queryHash}{}*/${mediaQueryRule}`;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
<mask>
<mask> mediaRules += newRule;
<mask> });
<mask> });
<mask>
<mask> // Object.keys(results).forEach((key) => {
<mask> // const oldIdentifier = results[key].identifier;
<mask>
<mask> // // if (process.env.NODE_ENV !== 'production') {
<mask> // // dataSet[dataAttribute] =
<mask> // // oldIdentifier + ' ' + dataSet[dataAttribute];
<mask> // // }
<mask>
<mask> // compiledOrderedRules.forEach(([rules, order]) => {
<mask>
<mask> // rules.forEach((oldRule: string) => {
<mask> // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
<mask> // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
<mask> // mediaRules += newRule;
<mask> // });
<mask>
<mask> // // if (sheet != null) {
<mask> // // rules.forEach((rule) => {
<mask> // // sheet.insert(rule, order);
<mask> // // });
<mask> // // }
<mask>
<mask> // // results[key].rules.forEach((oldRule: string) => {
<mask> // // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
<mask> // // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
<mask> // // mediaRules += newRule;
<mask> // // });
<mask> // });
<mask>
<mask> // console.log(stylesheet.getSheet(), 'style sheet here');
<mask>
<mask> if (mediaRules) {
<mask> const mediaQueryRule = getMediaQueryRule(queryRule, mediaRules);
<mask>
<mask> // Here by prepending the /*${queryHash}{}*/ comment, we're kind of tricking the regex used by rn-web to verify if a rule is inserted or not.
<mask> // Looks safe to me, just need to keep a check if there are any implementation changes in createStyleSheet file in rn-web in future.
</s> fix: type and removing comment out code </s> remove compiledOrderedRules.forEach(([rules, order]) => {
</s> add compiledOrderedRules.forEach(([rules, _order]: any) => { </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove // const myOwnStyleSheet = StyleSheet.create({});
// console.log(myOwnStyleSheet, 'hello 222');
// stylesheet.getSheet().textContent +
// `/*${queryHash}{}*/${mediaQueryRule}`;
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add </s> remove const sheet = createSheet();
</s> add const sheet = createSheet(); //return a sheet object which is being used doesn't create one | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
const sheet = createSheet(); //return a sheet object which is being used doesn't create one | <mask> // Second argument defines the order of the insertion. DataSet and class selectors have same CSS specificity so we need to make sure that media rules have higher precedence. Max precendence in RN web is around 2.2 so 3 ensures styles will be appended later
<mask>
<mask> // const stylesheetText = `/*${queryHash}{}*/${mediaQueryRule}`;
<mask>
<mask> const sheet = createSheet();
<mask>
<mask> sheet.insert(
<mask> `/*${queryHash}{}*/${mediaQueryRule}`,
<mask> MEDIA_QUERY_STYLESHEET_GROUP
<mask> );
</s> fix: type and removing comment out code </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove // const myOwnStyleSheet = StyleSheet.create({});
// console.log(myOwnStyleSheet, 'hello 222');
// stylesheet.getSheet().textContent +
// `/*${queryHash}{}*/${mediaQueryRule}`;
</s> add </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add </s> remove // console.log(' hello query');
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts |
<mask> sheet.insert(
<mask> `/*${queryHash}{}*/${mediaQueryRule}`,
<mask> MEDIA_QUERY_STYLESHEET_GROUP
<mask> );
<mask> // const myOwnStyleSheet = StyleSheet.create({});
<mask> // console.log(myOwnStyleSheet, 'hello 222');
<mask> // stylesheet.getSheet().textContent +
<mask> // `/*${queryHash}{}*/${mediaQueryRule}`;
<mask> }
<mask> }
<mask> });
<mask> }
<mask>
</s> fix: type and removing comment out code </s> remove const sheet = createSheet();
</s> add const sheet = createSheet(); //return a sheet object which is being used doesn't create one </s> remove
// Object.keys(results).forEach((key) => {
// const oldIdentifier = results[key].identifier;
// // if (process.env.NODE_ENV !== 'production') {
// // dataSet[dataAttribute] =
// // oldIdentifier + ' ' + dataSet[dataAttribute];
// // }
// compiledOrderedRules.forEach(([rules, order]) => {
// rules.forEach((oldRule: string) => {
// // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// mediaRules += newRule;
// });
// // if (sheet != null) {
// // rules.forEach((rule) => {
// // sheet.insert(rule, order);
// // });
// // }
// // results[key].rules.forEach((oldRule: string) => {
// // // Rule returned by atomic has css selectors, so we'll replace it with data-attr selector
// // const newRule = oldRule.replace('.' + oldIdentifier, newIdentifier);
// // mediaRules += newRule;
// // });
// });
// console.log(stylesheet.getSheet(), 'style sheet here');
</s> add </s> remove console.log('newStyle', newStyle);
// console.log(
// '*** i18nStyle',
// flattenQueryStyle,
// i18nStyle(flattenQueryStyle)
// );
// console.log(
// '*** createCompileableStyle',
// i18nStyle(flattenQueryStyle),
// newStyle
// );
// const results = atomic(flattenQueryStyle);
</s> add </s> remove console.log('flattenQueryStyle', flattenQueryStyle);
// const newStyle = createCompileableStyle(i18nStyle(flattenQueryStyle));
</s> add </s> remove // console.log('*** atomic', compiledOrderedRules);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1c376aced426efae7e19244a8a4a5589a96a70fb | src/utils/useResponsiveQuery/useResponsiveQuery.web.ts | |
CloseButton, | <mask> Alert,
<mask> AlertDescription,
<mask> AlertTitle,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> Box,
<mask> VStack,
<mask> } from 'native-base';
<mask>
<mask> export default function () {
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/composition.tsx |
{/* <CloseButton /> */} | <mask> <AlertDescription>
<mask> Thanks for submitting your application. Our team will get back to you
<mask> soon.
<mask> </AlertDescription>
<mask>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask>
<mask> <Alert status="success">
<mask> <AlertIcon />
<mask> <Box flex={1}>
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/composition.tsx |
<CloseButton position="absolute" right="8px" /> | <mask> Your application has been received. We will review your application
<mask> and respond within the next 48 hours.
<mask> </AlertDescription>
<mask> </Box>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> </VStack>
<mask> );
<mask> }
</s> Fixes for box position and removed AlertCloseButton </s> remove
<AlertCloseButton />
</s> add {/* <CloseButton /> */} </s> remove <AlertCloseButton />
</s> add <CloseButton /> </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/composition.tsx |
CloseButton, | <mask> Alert,
<mask> AlertDescription,
<mask> AlertTitle,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> } from 'native-base';
<mask> import { select } from '@storybook/addon-knobs';
<mask>
<mask> export default function () {
<mask> return (
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/knobEnabled.tsx |
<CloseButton position="absolute" right="8px" /> | <mask> >
<mask> <AlertIcon />
<mask> <AlertTitle>Error Alert</AlertTitle>
<mask> <AlertDescription>description goes here </AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> );
<mask> }
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add <CloseButton /> </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove
<AlertCloseButton />
</s> add {/* <CloseButton /> */} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/knobEnabled.tsx |
import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; | <mask> import React from 'react';
<mask> import {
<mask> Stack,
<mask> AlertDescription,
<mask> Alert,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <Stack space={3} mx={3}>
<mask> <Alert status="error">
</s> Fixes for box position and removed AlertCloseButton </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/status.tsx |
<mask> <Stack space={3} mx={3}>
<mask> <Alert status="error">
<mask> <AlertIcon />
<mask> <AlertDescription>There was an error.</AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask>
<mask> <Alert status="success">
<mask> <AlertIcon />
<mask> <AlertDescription>Data uploaded to the server.</AlertDescription>
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/status.tsx | |
<mask>
<mask> <Alert status="success">
<mask> <AlertIcon />
<mask> <AlertDescription>Data uploaded to the server.</AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask>
<mask> <Alert status="warning">
<mask> <AlertIcon />
<mask> <AlertDescription>Your account is about expire</AlertDescription>
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/status.tsx | |
<mask>
<mask> <Alert status="warning">
<mask> <AlertIcon />
<mask> <AlertDescription>Your account is about expire</AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask>
<mask> <Alert status="default">
<mask> <AlertIcon />
<mask> <AlertDescription>NativeBase is going live soon.</AlertDescription>
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/status.tsx | |
<mask>
<mask> <Alert status="default">
<mask> <AlertIcon />
<mask> <AlertDescription>NativeBase is going live soon.</AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> </Stack>
<mask> );
<mask> }
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton /> </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/status.tsx | |
CloseButton, | <mask> Alert,
<mask> AlertDescription,
<mask> AlertTitle,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> Box,
<mask> } from 'native-base';
<mask> export default function () {
<mask> return (
<mask> <Box mx={3}>
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/usage.tsx |
<CloseButton /> | <mask> <Alert status="error">
<mask> <AlertIcon />
<mask> <AlertTitle>Error Alert</AlertTitle>
<mask> <AlertDescription>description goes here</AlertDescription>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> </Box>
<mask> );
<mask> }
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/usage.tsx |
import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; | <mask> import React from 'react';
<mask> import {
<mask> Alert,
<mask> Stack,
<mask> AlertTitle,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> } from 'native-base';
<mask>
<mask> export default function () {
<mask> return (
<mask> <Stack space={4} mx={3}>
<mask> <Alert variant="solid" status="success">
</s> Fixes for box position and removed AlertCloseButton </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/variant.tsx |
<mask> <Stack space={4} mx={3}>
<mask> <Alert variant="solid" status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Solid Variant</AlertTitle>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> <Alert variant="left-accent" status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Left Accent Variant</AlertTitle>
<mask> <AlertCloseButton />
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/variant.tsx | |
<mask> </Alert>
<mask> <Alert variant="left-accent" status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Left Accent Variant</AlertTitle>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> <Alert variant="top-accent" status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Top Accent Variant</AlertTitle>
<mask> <AlertCloseButton />
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/variant.tsx | |
<mask> </Alert>
<mask> <Alert variant="top-accent" status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Top Accent Variant</AlertTitle>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> <Alert status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Default/Subtle Variant</AlertTitle>
<mask> <AlertCloseButton />
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/variant.tsx | |
<mask> </Alert>
<mask> <Alert status="success">
<mask> <AlertIcon />
<mask> <AlertTitle>Alert Default/Subtle Variant</AlertTitle>
<mask> <AlertCloseButton />
<mask> </Alert>
<mask> </Stack>
<mask> );
<mask> }
</s> Fixes for box position and removed AlertCloseButton </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove <AlertCloseButton />
</s> add <CloseButton /> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/composites/Alert/variant.tsx | |
CloseButton, | <mask> VStack,
<mask> Alert,
<mask> AlertIcon,
<mask> AlertDescription,
<mask> AlertCloseButton,
<mask> } from 'native-base';
<mask>
<mask> export default function () {
<mask> const { closeOverlay, setOverlay } = useOverlay();
<mask>
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | example/storybook/stories/components/primitives/Overlay/Usage.tsx |
<mask> export { default as Alert } from './Alert';
<mask> export { AlertContext } from './Context';
<mask> export { default as AlertCloseButton } from './AlertCloseButton';
<mask> export { default as AlertDescription } from './AlertDescription';
<mask> export { default as AlertIcon } from './AlertIcon';
<mask> export { default as AlertTitle } from './AlertTitle';
<mask> export type { IAlertProps, IAlertContext } from './props';
</s> Fixes for box position and removed AlertCloseButton </s> remove export {
Alert,
AlertTitle,
AlertDescription,
AlertIcon,
AlertCloseButton,
} from './Alert';
</s> add export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/composites/Alert/index.tsx | |
export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; | <mask>
<mask> export { default as IconButton } from './IconButton';
<mask> export type { IIconButtonProps } from './IconButton';
<mask>
<mask> export {
<mask> Alert,
<mask> AlertTitle,
<mask> AlertDescription,
<mask> AlertIcon,
<mask> AlertCloseButton,
<mask> } from './Alert';
<mask> export type { IAlertProps } from './Alert';
<mask>
<mask> export { Avatar, AvatarBadge, AvatarGroup } from './Avatar';
<mask>
<mask> export {
</s> Fixes for box position and removed AlertCloseButton </s> remove export { default as AlertCloseButton } from './AlertCloseButton';
</s> add </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/composites/index.ts |
position, | <mask> layout,
<mask> space,
<mask> typography,
<mask> } from 'styled-system';
<mask> import {
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
</s> Fixes for box position and removed AlertCloseButton </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/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Box/index.tsx |
customPosition, | <mask> customExtra,
<mask> customShadow,
<mask> customTypography,
<mask> } from '../../../utils/customProps';
<mask> import type { IBoxProps } from './props';
<mask>
<mask> const StyledBox = styled(View)<IBoxProps>(
<mask> color,
</s> Fixes for box position and removed AlertCloseButton </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 AlertCloseButton,
</s> add CloseButton, </s> remove export { default as AlertCloseButton } from './AlertCloseButton';
</s> add | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Box/index.tsx |
position, | <mask> layout,
<mask> flexbox,
<mask> border,
<mask> typography,
<mask> customPosition,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
</s> Fixes for box position and removed AlertCloseButton </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/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Box/index.tsx |
customPosition, | <mask> position,
<mask> typography,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
</s> Fixes for box position and removed AlertCloseButton </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Box/index.tsx |
import { border, color, flexbox, layout, space, position } from 'styled-system'; | <mask> import React, { forwardRef } from 'react';
<mask> import { TouchableOpacity, TouchableOpacityProps } 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,
</s> Fixes for box position and removed AlertCloseButton </s> remove import {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/index.tsx |
customPosition, | <mask> customOutline,
<mask> customLayout,
<mask> customExtra,
<mask> customShadow,
<mask> } from '../../../utils/customProps';
<mask> import Text from '../../primitives/Text';
<mask> import { usePropsConfig } from '../../../hooks';
<mask> import { themeTools } from '../../../theme';
</s> Fixes for box position and removed AlertCloseButton </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 {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; </s> remove import {
Alert,
Stack,
AlertTitle,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Alert, Stack, AlertTitle, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/index.tsx |
position,
customPosition, | <mask> flexbox,
<mask> border,
<mask> customBorder,
<mask> customBackground,
<mask> customOutline,
<mask> customShadow,
<mask> customExtra,
</s> Fixes for box position and removed AlertCloseButton </s> remove import { border, color, flexbox, layout, space } from 'styled-system';
</s> add import { border, color, flexbox, layout, space, position } from 'styled-system'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/index.tsx |
'left',
'top',
'bottom',
'right',
'position', | <mask> 'marginX',
<mask> 'my',
<mask> 'marginY',
<mask> ]);
<mask>
<mask> let [
<mask> additionalButtonProps,
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add </s> remove <AlertCloseButton />
</s> add </s> remove
<AlertCloseButton />
</s> add {/* <CloseButton /> */} </s> remove <AlertCloseButton />
</s> add <CloseButton position="absolute" right="8px" /> </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/index.tsx |
PositionProps, | <mask> ColorProps,
<mask> FlexboxProps,
<mask> LayoutProps,
<mask> SpaceProps,
<mask> } from 'styled-system';
<mask> import type { AccessibilityRole, AccessibilityState } from 'react-native';
<mask>
<mask> export type IButtonAccessibilityProps = {
<mask> accessible?: boolean;
</s> Fixes for box position and removed AlertCloseButton </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 export {
Alert,
AlertTitle,
AlertDescription,
AlertIcon,
AlertCloseButton,
} from './Alert';
</s> add export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; </s> remove export { default as AlertCloseButton } from './AlertCloseButton';
</s> add | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/props.ts |
<mask> customExtraProps &
<mask> customOutlineProps &
<mask> customShadowProps &
<mask> customLayoutProps &
<mask> BorderProps &
<mask> IButtonAccessibilityProps & {
<mask> style?: ViewStyle;
<mask> children?: any;
<mask> highlight?: number | 0 | 1 | 0.5 | 0.25 | 0.75;
<mask> colorScheme?: string;
</s> Fixes for box position and removed AlertCloseButton </s> remove export {
Alert,
AlertTitle,
AlertDescription,
AlertIcon,
AlertCloseButton,
} from './Alert';
</s> add export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; </s> remove export { default as AlertCloseButton } from './AlertCloseButton';
</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 {
Stack,
AlertDescription,
Alert,
AlertIcon,
AlertCloseButton,
} from 'native-base';
</s> add import { Stack, AlertDescription, Alert, AlertIcon } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/components/primitives/Button/props.ts | |
<mask> IIconButtonProps,
<mask> Variants,
<mask> AlertTitle,
<mask> AlertDescription,
<mask> AlertCloseButton,
<mask> AlertIcon,
<mask> Alert,
<mask> IAlertProps,
<mask> AspectRatio,
<mask> IAspectRatioProps,
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove export {
Alert,
AlertTitle,
AlertDescription,
AlertIcon,
AlertCloseButton,
} from './Alert';
</s> add export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/index.tsx | |
<mask> AppBar,
<mask> Alert,
<mask> AlertTitle,
<mask> AlertDescription,
<mask> AlertCloseButton,
<mask> AlertIcon,
<mask> AspectRatio,
<mask> Avatar,
<mask> AvatarBadge,
<mask> AvatarGroup,
</s> Fixes for box position and removed AlertCloseButton </s> remove AlertCloseButton,
</s> add </s> remove export {
Alert,
AlertTitle,
AlertDescription,
AlertIcon,
AlertCloseButton,
} from './Alert';
</s> add export { Alert, AlertTitle, AlertDescription, AlertIcon } from './Alert'; </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, </s> remove AlertCloseButton,
</s> add CloseButton, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1cf4688667e32f654d35a18052346dfd5e245daf | src/index.tsx | |
connectStyle:_theme.connectStyle, | <mask> Fab:_Fab.Fab,
<mask> Tabs:_Tabs.Tabs,
<mask> Subtitle:_Subtitle.Subtitle,
<mask> StyleProvider:_theme.StyleProvider,
<mask> getTheme:_components2.default,
<mask> variables:_platform2.default};
<mask> //# sourceMappingURL=index.js.map </s> floating label fix for onFocus </s> remove marginTop:2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
</s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/backward/index.js |
toValue:-22, | <mask> }},{key:'floatUp',value:function floatUp()
<mask>
<mask> {
<mask> _reactNative.Animated.timing(this.state.topAnim,{
<mask> toValue:-5,
<mask> duration:150}).
<mask> start();
<mask> _reactNative.Animated.timing(this.state.opacAnim,{
<mask> toValue:0.7,
<mask> duration:150}).
</s> floating label fix for onFocus </s> remove toValue: -5,
</s> add toValue: -22, </s> remove if (this.state.text) {
</s> add if (this.state.isFocused) { </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js |
if(this.state.isFocused){ | <mask>
<mask> label,labelProps){
<mask> var newLabel=[];
<mask> if(this.props.floatingLabel){
<mask> if(this.state.text){
<mask> newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
<mask>
<mask>
<mask> labelProps,{
<mask> key:'newFLabel',
</s> floating label fix for onFocus </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
</s> remove Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.View=exports.TabContent=exports.STabs=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Gravatar=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.Button=exports.Drawer=exports.StyleProvider=exports.variables=exports.getTheme=exports.Swipeout=undefined;var _theme=require('@shoutem/theme');
</s> add Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.View=exports.TabContent=exports.STabs=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Gravatar=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=exports.Swipeout=undefined;var _theme=require('@shoutem/theme'); </s> remove newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
</s> add newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); </s> remove newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps)));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
</s> add newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},value:this.state.text,key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js |
float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
| <mask>
<mask>
<mask> labelProps,{
<mask> key:'newFLabel',
<mask> float:true})));
<mask>
<mask>
<mask> this.floatUp();
<mask> }else{
<mask> newLabel.push(label);
</s> floating label fix for onFocus </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove marginTop: 2,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js |
<mask> }else{
<mask> newLabel.push(label);
<mask> this.floatBack();
<mask> }
<mask> }else if(this.state.text){
<mask> newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
<mask>
<mask>
<mask> labelProps,{
<mask> key:'newLabel',
<mask> focused:true})));
<mask>
<mask>
<mask> }else{
<mask> newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
<mask>
<mask>
<mask> labelProps,{
</s> floating label fix for onFocus </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
</s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
</s> add newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js | |
newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); | <mask> }
<mask> });
<mask> if(this.props.floatingLabel&&icon.length){
<mask> newChildren.push(_react2.default.createElement(_Icon.Icon,_extends({key:'i1'},iconProps,{style:{top:6}})));
<mask> newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))));
<mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
<mask> }else
<mask> if(this.props.floatingLabel){
<mask> newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps)));
<mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
<mask> }else
</s> floating label fix for onFocus </s> remove newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps)));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
</s> add newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},value:this.state.text,key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js |
newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},value:this.state.text,key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); | <mask> newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))));
<mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
<mask> }else
<mask> if(this.props.floatingLabel){
<mask> newChildren.push(this.props.floatingLabel?_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?15:0,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))):_react2.default.createElement(_Label.Label,{style:{width:this.state.text?0:undefined,marginLeft:this.props.last?null:15}},this.renderLabel(label,labelProps)));
<mask> newChildren.push(_react2.default.createElement(_Input.Input,_extends({ref:function ref(c){return _this2._inputRef=c;},key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
<mask> }else
<mask> if(this.props.stackedLabel&&icon.length){
<mask> newChildren.push(_react2.default.createElement(_reactNative.View,{key:'s',style:{flexDirection:'row',flex:1,width:_platform2.default.deviceWidth-15}},_react2.default.createElement(_Icon.Icon,_extends({key:'s1'},iconProps,{style:{marginTop:36}})),_react2.default.createElement(_reactNative.View,{style:{flexDirection:'column'}},_react2.default.createElement(_Label.Label,_extends({key:'s2'},labelProps)),_react2.default.createElement(_Input.Input,_extends({key:'s3'},inputProps,{style:{width:_platform2.default.deviceWidth-40}})))));
<mask>
<mask> }else
</s> floating label fix for onFocus </s> remove newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,{style:{fontSize:this.state.text?13:undefined}},this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}})));
</s> add newChildren.push(_react2.default.createElement(_reactNative.Animated.View,{key:'float',style:{position:'absolute',left:this.props.last?22:22,right:0,top:this.state.topAnim,opacity:this.state.opacAnim,paddingTop:_reactNative.Platform.OS==='ios'?undefined:undefined,paddingBottom:_reactNative.Platform.OS==='ios'?undefined:12}},_react2.default.createElement(_Label.Label,labelProps,this.renderLabel(label,labelProps))));
newChildren.push(_react2.default.createElement(_Input.Input,_extends({key:'l2'},inputProps,{onFocus:function onFocus(){_this2.setState({isFocused:true});inputProps.onFocus&&inputProps.onFocus();},onBlur:function onBlur(){!_this2.state.text.length&&_this2.setState({isFocused:false});inputProps.onBlur&&inputProps.onBlur();},onChangeText:function onChangeText(text){_this2.setState({text:text});inputProps.onChangeText&&inputProps.onChangeText(text);}}))); </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove marginTop: 2,
</s> add </s> remove marginTop:2,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/basic/Item.js |
Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.View=exports.TabContent=exports.STabs=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Gravatar=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=exports.Swipeout=undefined;var _theme=require('@shoutem/theme'); | <mask> Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.View=exports.TabContent=exports.STabs=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Gravatar=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.Button=exports.Drawer=exports.StyleProvider=exports.variables=exports.getTheme=exports.Swipeout=undefined;var _theme=require('@shoutem/theme');
<mask> var _lodash=require('lodash');
<mask> var _reactNativeEasyGrid=require('react-native-easy-grid');
<mask> var _Gravatar=require('./backward/Widgets/Gravatar');
<mask> var _init=require('./init');var _init2=_interopRequireDefault(_init);
<mask> var _components=require('./theme/components');var _components2=_interopRequireDefault(_components);
</s> floating label fix for onFocus </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove marginTop: 2,
</s> add </s> remove marginTop:2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
| [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/index.js |
connectStyle=_theme.connectStyle;exports. | <mask> getTheme=_components2.default;exports.
<mask> variables=_platform2.default;exports.
<mask> StyleProvider=_theme.StyleProvider;exports.
<mask> Drawer=_Drawer2.default;exports.
<mask> Button=_Button.Button;exports.
<mask> IconNB=_IconNB.IconNB;exports.
<mask> Icon=_Icon.Icon;exports.
<mask> Header=_Header.Header;exports.
<mask> Form=_Form.Form;exports.
</s> floating label fix for onFocus </s> remove marginTop: 2,
</s> add </s> remove marginTop:2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
| [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/index.js |
top:5, | <mask> '.stackedLabel':{
<mask> 'NativeBase.Label':{
<mask> paddingLeft:null},
<mask>
<mask> 'NativeBase.Input':{
<mask> paddingLeft:null,
<mask> marginLeft:platform==='ios'?undefined:-5},
</s> floating label fix for onFocus </s> remove top:8,
</s> add top:10, </s> remove marginTop:2,
</s> add </s> remove marginTop: 2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/theme/components/Form.js |
top:10, | <mask>
<mask> '.floatingLabel':{
<mask> 'NativeBase.Input':{
<mask> paddingLeft:null,
<mask> top:8,
<mask> marginLeft:platform==='ios'?undefined:-5},
<mask>
<mask> 'NativeBase.Label':{
<mask> left:0,
<mask> top:8},
</s> floating label fix for onFocus </s> remove marginTop:2,
</s> add </s> remove marginTop: 2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/theme/components/Form.js |
marginTop:15, | <mask> 'NativeBase.Label':{
<mask> left:0,
<mask> top:8},
<mask>
<mask> marginLeft:15},
<mask>
<mask> '.regular':{
<mask> 'NativeBase.Label':{
</s> floating label fix for onFocus </s> remove top:8,
</s> add top:10, </s> remove marginTop: 2,
</s> add </s> remove marginTop:2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/theme/components/Form.js |
<mask> alignSelf:'center'},
<mask>
<mask> 'NativeBase.Input':{
<mask> alignSelf:'center',
<mask> marginTop:2,
<mask> lineHeight:24,
<mask> height:variables.searchBarHeight},
<mask>
<mask> alignSelf:'center',
<mask> alignItems:'center',
</s> floating label fix for onFocus </s> remove top:8,
</s> add top:10, </s> remove marginTop: 2,
</s> add </s> remove toValue:-5,
</s> add toValue:-22, </s> remove if(this.state.text){
</s> add if(this.state.isFocused){ | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | dist/src/theme/components/Header.js | |
import { StyleProvider, connectStyle } from '@shoutem/theme'; | <mask> import { Col, Row, Grid } from 'react-native-easy-grid';
<mask> import { StyleProvider } from '@shoutem/theme';
<mask> import getTheme from '../theme/components';
<mask> import setDefaultThemeStyle from '../init';
<mask> import variables from '../theme/variables/platform';
<mask> import Drawer from '../basic/Drawer';
<mask> import { Header } from './Widgets/Header';
</s> floating label fix for onFocus </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove toValue: -5,
</s> add toValue: -22, </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/backward/index.js |
connectStyle, | <mask> Fab,
<mask> Tabs,
<mask> Subtitle,
<mask> StyleProvider,
<mask> getTheme,
<mask> variables,
<mask> };
</s> floating label fix for onFocus </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove toValue:-5,
</s> add toValue:-22, | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/backward/index.js |
toValue: -22, | <mask> }
<mask>
<mask> floatUp() {
<mask> Animated.timing(this.state.topAnim, {
<mask> toValue: -5,
<mask> duration: 150,
<mask> }).start();
<mask> Animated.timing(this.state.opacAnim, {
<mask> toValue: 0.7,
<mask> duration: 150,
</s> floating label fix for onFocus </s> remove toValue:-5,
</s> add toValue:-22, </s> remove top: 8,
</s> add top: 10, </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js |
if (this.state.isFocused) { | <mask>
<mask> renderLabel(label, labelProps) {
<mask> const newLabel = [];
<mask> if (this.props.floatingLabel) {
<mask> if (this.state.text) {
<mask> newLabel.push(React.createElement(
<mask> Label,
<mask> {
<mask> ...labelProps,
<mask> key: 'newFLabel',
</s> floating label fix for onFocus </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove toValue: -5,
</s> add toValue: -22, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js |
style: {
fontSize: 15,
lineHeight: 30,
...labelProps.style,
} | <mask> ...labelProps,
<mask> key: 'newFLabel',
<mask> float: true,
<mask> }
<mask> ));
<mask> this.floatUp();
<mask> } else {
<mask> newLabel.push(label);
<mask> this.floatBack();
</s> floating label fix for onFocus </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove if (this.state.text) {
</s> add if (this.state.isFocused) { </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove float:true})));
</s> add float:true,
style:_extends({
fontSize:15,
lineHeight:30},
labelProps.style)})));
</s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js |
<mask> } else {
<mask> newLabel.push(label);
<mask> this.floatBack();
<mask> }
<mask> } else if (this.state.text) {
<mask> newLabel.push(React.createElement(
<mask> Label,
<mask> {
<mask> ...labelProps,
<mask> key: 'newLabel',
<mask> focused: true,
<mask> }
<mask> ));
<mask> } else {
<mask> newLabel.push(React.createElement(
<mask> Label,
<mask> {
<mask> ...labelProps,
</s> floating label fix for onFocus </s> remove if (this.state.text) {
</s> add if (this.state.isFocused) { </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js | |
newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | <mask> }
<mask> });
<mask> if(this.props.floatingLabel && icon.length) {
<mask> newChildren.push(<Icon key="i1" {...iconProps} style={{ top: 6 }} />);
<mask> newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
<mask> newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
<mask> }
<mask> else if (this.props.floatingLabel) {
<mask> newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
<mask> newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
<mask> }
</s> floating label fix for onFocus </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove top: 8,
</s> add top: 10, </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js |
newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | <mask> newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
<mask> newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
<mask> }
<mask> else if (this.props.floatingLabel) {
<mask> newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
<mask> newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
<mask> }
<mask> else if (this.props.stackedLabel && icon.length) {
<mask> newChildren.push(<View key="s" style={{ flexDirection: 'row', flex: 1, width: variables.deviceWidth - 15 }}><Icon key="s1" {...iconProps} style={{ marginTop: 36 }} /><View style={{ flexDirection: 'column' }}><Label key="s2" {...labelProps}></Label><Input key="s3" {...inputProps} style={{ width: variables.deviceWidth - 40 }} /></View></View>);
<mask>
<mask> }
</s> floating label fix for onFocus </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove top: 8,
</s> add top: 10, </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/basic/Item.js |
import { StyleProvider, connectStyle } from '@shoutem/theme'; | <mask> import { StyleProvider } from '@shoutem/theme';
<mask> import { keys } from 'lodash';
<mask> import { Col, Row, Grid } from 'react-native-easy-grid';
<mask> import { Gravatar } from './backward/Widgets/Gravatar';
<mask> import setDefaultThemeStyle from './init';
<mask> import getTheme from './theme/components';
</s> floating label fix for onFocus </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove } else if (this.state.text) {
newLabel.push(React.createElement(
Label,
{
...labelProps,
key: 'newLabel',
focused: true,
}
));
</s> add </s> remove toValue: -5,
</s> add toValue: -22, </s> remove }else if(this.state.text){
newLabel.push(_react2.default.createElement(_Label.Label,_extends({},
labelProps,{
key:'newLabel',
focused:true})));
</s> add | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/index.js |
connectStyle, | <mask> variables,
<mask> StyleProvider,
<mask> Drawer,
<mask> Button,
<mask> IconNB,
<mask> Icon,
<mask> Header,
<mask> Form,
</s> floating label fix for onFocus </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove import { StyleProvider } from '@shoutem/theme';
</s> add import { StyleProvider, connectStyle } from '@shoutem/theme'; </s> remove toValue:-5,
</s> add toValue:-22, | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/index.js |
top: 5, | <mask> },
<mask> },
<mask> '.stackedLabel': {
<mask> 'NativeBase.Label': {
<mask> paddingLeft: null,
<mask> },
<mask> 'NativeBase.Input': {
<mask> paddingLeft: null,
<mask> marginLeft: (platform === 'ios') ? undefined : -5,
</s> floating label fix for onFocus </s> remove top: 8,
</s> add top: 10, </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove marginTop: 2,
</s> add </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/theme/components/Form.js |
top: 10, | <mask> },
<mask> '.floatingLabel': {
<mask> 'NativeBase.Input': {
<mask> paddingLeft: null,
<mask> top: 8,
<mask> marginLeft: (platform === 'ios') ? undefined : -5,
<mask> },
<mask> 'NativeBase.Label': {
<mask> left: 0,
<mask> top: 8,
</s> floating label fix for onFocus </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove marginTop: 2,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/theme/components/Form.js |
marginTop: 15, | <mask> top: 8,
<mask> },
<mask> marginLeft: 15,
<mask> },
<mask> '.regular': {
<mask> 'NativeBase.Label': {
<mask> left: 0,
<mask> },
</s> floating label fix for onFocus </s> remove top: 8,
</s> add top: 10, </s> remove marginTop: 2,
</s> add </s> remove newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 22 : 22, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps} >{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/theme/components/Form.js |
<mask> alignSelf: 'center',
<mask> },
<mask> 'NativeBase.Input': {
<mask> alignSelf: 'center',
<mask> marginTop: 2,
<mask> lineHeight: 24,
<mask> height: variables.searchBarHeight,
<mask> },
<mask> alignSelf: 'center',
<mask> alignItems: 'center',
</s> floating label fix for onFocus </s> remove top: 8,
</s> add top: 10, </s> remove newChildren.push((this.props.floatingLabel) ? <Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label style={{fontSize: (this.state.text) ? 13 : undefined}}>{this.renderLabel(label, labelProps)}</Label></Animated.View> : <Label style={{width: (this.state.text) ? 0 : undefined, marginLeft: (this.props.last) ? null : 15}}>{this.renderLabel(label, labelProps)}</Label>);
newChildren.push(<Input ref={(c) => this._inputRef = c} key="l2" {...inputProps} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />);
</s> add newChildren.push(<Animated.View key="float" style={{ position: 'absolute', left: (this.props.last) ? 15 : 0, right: 0, top: this.state.topAnim, opacity: this.state.opacAnim, paddingTop: (Platform.OS === 'ios') ? undefined : undefined, paddingBottom: (Platform.OS === 'ios') ? undefined : 12 }}><Label {...labelProps}>{this.renderLabel(label, labelProps)}</Label></Animated.View>);
newChildren.push(<Input ref={(c) => this._inputRef = c} value={this.state.text} key="l2" {...inputProps} onFocus={() => {this.setState({ isFocused: true }); (inputProps.onFocus) && inputProps.onFocus()}} onBlur={() => {!(this.state.text.length) && this.setState({ isFocused: false }); (inputProps.onBlur) && inputProps.onBlur()}} onChangeText={text => {this.setState({ text }); (inputProps.onChangeText) && inputProps.onChangeText(text) }} />); | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d1e602a8b39f885d7a6af3fbd20b31209e09151 | src/theme/components/Header.js | |
color: variables.toolbarTextColor, | <mask> alignSelf: "center",
<mask> alignItems: "center",
<mask> ".transparent": {
<mask> "NativeBase.Text": {
<mask> color: variables.toolbarBtnColor,
<mask> fontWeight: "600",
<mask> },
<mask> "NativeBase.Icon": {
<mask> color: variables.toolbarBtnColor,
<mask> },
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove toolbarTextColor: platform === "ios" ? "#000" : "#fff",
</s> add toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/components/Header.js |
color: variables.toolbarTextColor, | <mask> marginRight: 5,
<mask> marginLeft: 2,
<mask> },
<mask> "NativeBase.Text": {
<mask> color: variables.toolbarBtnColor,
<mask> fontSize: 17,
<mask> marginLeft: 2,
<mask> lineHeight: 21,
<mask> },
<mask> "NativeBase.IconNB": {
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove toolbarTextColor: platform === "ios" ? "#000" : "#fff",
</s> add toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/components/Header.js |
color: variables.toolbarTextColor, | <mask> marginRight: 2,
<mask> marginLeft: 2,
<mask> },
<mask> "NativeBase.Text": {
<mask> color: variables.toolbarBtnColor,
<mask> fontSize: 17,
<mask> top: platform === "ios" ? undefined : -1.5,
<mask> },
<mask> backgroundColor: "transparent",
<mask> borderColor: null,
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove toolbarTextColor: platform === "ios" ? "#000" : "#fff",
</s> add toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/components/Header.js |
color: variables.toolbarTextColor, | <mask> marginRight: 2,
<mask> marginLeft: 5,
<mask> },
<mask> "NativeBase.Text": {
<mask> color: variables.toolbarBtnColor,
<mask> fontSize: 17,
<mask> lineHeight: 21,
<mask> },
<mask> "NativeBase.IconNB": {
<mask> color: variables.toolbarBtnColor,
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove toolbarTextColor: platform === "ios" ? "#000" : "#fff",
</s> add toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/components/Header.js |
color: variables.toolbarTextColor, | <mask> marginLeft: 2,
<mask> marginRight: 2,
<mask> },
<mask> "NativeBase.Text": {
<mask> color: variables.toolbarBtnColor,
<mask> fontSize: 17,
<mask> top: platform === "ios" ? undefined : -1.5,
<mask> },
<mask> backgroundColor: "transparent",
<mask> borderColor: null,
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove toolbarTextColor: platform === "ios" ? "#000" : "#fff",
</s> add toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/components/Header.js |
toolbarTextColor: platform === "ios" ? "#007aff" : "#fff", | <mask> toolbarInputColor: platform === "ios" ? "#CECDD2" : "#fff",
<mask> searchBarHeight: platform === "ios" ? 30 : 40,
<mask> searchBarInputHeight: platform === "ios" ? 30 : 50,
<mask> toolbarInverseBg: "#222",
<mask> toolbarTextColor: platform === "ios" ? "#000" : "#fff",
<mask> toolbarDefaultBorder: platform === "ios" ? "#a7a6ab" : "#3F51B5",
<mask> iosStatusbar: platform === "ios" ? "dark-content" : "light-content",
<mask> get statusBarColor() {
<mask> return color(this.toolbarDefaultBg)
<mask> .darken(0.2)
</s> Header text color
uses 'toolbarTextColor' instead of 'toolbarBtnColor' </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, </s> remove color: variables.toolbarBtnColor,
</s> add color: variables.toolbarTextColor, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1d92737e149e0b2d38d4fa735e8ffceda36c4bd3 | src/theme/variables/platform.js |
export * from './components/primitives/ButtonGroup'; | <mask> // export * from './components/composites/Breadcrumb';
<mask> export * from './components/primitives/Button';
<mask> export * from './components/composites/Center';
<mask> export * from './components/primitives/Checkbox';
<mask> // export * from './components/composites/CircularProgress';
<mask> // export * from './components/composites/CloseButton';
</s> fix: added storybook examples for buttongroup separately </s> remove warning: 900,
</s> add warning: 500, </s> remove danger: 900,
error: 900,
</s> add danger: 500,
error: 500, </s> remove amber: 900,
orange: 900,
red: 900,
</s> add amber: 500,
orange: 500,
red: 500, </s> remove rose: 900,
pink: 900,
</s> add rose: 500,
pink: 500, | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e4b1712cf96b2197cb3ea666800f7098f776081 | example/storybook/stories/index.ts |
rose: 500,
pink: 500, | <mask> return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
<mask> }
<mask>
<mask> const themeColorsThresholdShades: any = {
<mask> rose: 900,
<mask> pink: 900,
<mask> fuchsia: 800,
<mask> purple: 700,
<mask> violet: 600,
<mask> indigo: 500,
<mask> blue: 400,
</s> fix: added storybook examples for buttongroup separately </s> remove amber: 900,
orange: 900,
red: 900,
</s> add amber: 500,
orange: 500,
red: 500, </s> remove warning: 900,
</s> add warning: 500, </s> remove danger: 900,
error: 900,
</s> add danger: 500,
error: 500, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e4b1712cf96b2197cb3ea666800f7098f776081 | src/hooks/useContrastText.ts |
amber: 500,
orange: 500,
red: 500, | <mask> emerald: 300,
<mask> green: 400,
<mask> lime: 600,
<mask> yellow: 800,
<mask> amber: 900,
<mask> orange: 900,
<mask> red: 900,
<mask> warmGray: 500,
<mask> trueGray: 500,
<mask> gray: 500,
<mask> coolGray: 500,
<mask> blueGray: 500,
</s> fix: added storybook examples for buttongroup separately </s> remove danger: 900,
error: 900,
</s> add danger: 500,
error: 500, </s> remove warning: 900,
</s> add warning: 500, </s> remove rose: 900,
pink: 900,
</s> add rose: 500,
pink: 500, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e4b1712cf96b2197cb3ea666800f7098f776081 | src/hooks/useContrastText.ts |
danger: 500,
error: 500, | <mask> gray: 500,
<mask> coolGray: 500,
<mask> blueGray: 500,
<mask> dark: 500,
<mask> danger: 900,
<mask> error: 900,
<mask> success: 400,
<mask> warning: 900,
<mask> muted: 500,
<mask> primary: 500,
<mask> info: 400,
</s> fix: added storybook examples for buttongroup separately </s> remove warning: 900,
</s> add warning: 500, </s> remove amber: 900,
orange: 900,
red: 900,
</s> add amber: 500,
orange: 500,
red: 500, </s> remove rose: 900,
pink: 900,
</s> add rose: 500,
pink: 500, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e4b1712cf96b2197cb3ea666800f7098f776081 | src/hooks/useContrastText.ts |
warning: 500, | <mask> dark: 500,
<mask> danger: 900,
<mask> error: 900,
<mask> success: 400,
<mask> warning: 900,
<mask> muted: 500,
<mask> primary: 500,
<mask> info: 400,
<mask> secondary: 500,
<mask> light: 500,
</s> fix: added storybook examples for buttongroup separately </s> remove danger: 900,
error: 900,
</s> add danger: 500,
error: 500, </s> remove amber: 900,
orange: 900,
red: 900,
</s> add amber: 500,
orange: 500,
red: 500, </s> remove rose: 900,
pink: 900,
</s> add rose: 500,
pink: 500, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/1e4b1712cf96b2197cb3ea666800f7098f776081 | src/hooks/useContrastText.ts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.