react95-native-rabbl 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/commonjs/components/TextInput/TextInput.js +2 -1
- package/dist/commonjs/components/TextInput/TextInput.js.map +1 -1
- package/dist/module/components/TextInput/TextInput.js +2 -1
- package/dist/module/components/TextInput/TextInput.js.map +1 -1
- package/dist/typescript/src/components/TextInput/TextInput.d.ts +3 -2
- package/dist/typescript/src/components/TextInput/TextInput.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/TextInput/TextInput.tsx +3 -0
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ const TextInput = ({
|
|
|
17
17
|
defaultValue,
|
|
18
18
|
disabled,
|
|
19
19
|
style = {},
|
|
20
|
+
inputStyle = {},
|
|
20
21
|
theme,
|
|
21
22
|
value,
|
|
22
23
|
variant = 'default',
|
|
@@ -41,7 +42,7 @@ const TextInput = ({
|
|
|
41
42
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
42
43
|
style: [styles.input, {
|
|
43
44
|
backgroundColor: getBackgroundColor()
|
|
44
|
-
}, textStyles.regular, disabled && hasValue ? textStyles.disabled : textStyles.default],
|
|
45
|
+
}, textStyles.regular, disabled && hasValue ? textStyles.disabled : textStyles.default, inputStyle],
|
|
45
46
|
placeholderTextColor: theme.materialTextDisabled,
|
|
46
47
|
defaultValue: defaultValue,
|
|
47
48
|
value: value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_theming","_styles","_styleElements","_jsxRuntime","e","__esModule","default","TextInput","defaultValue","disabled","style","theme","value","variant","rest","hasValue","isFlat","getBackgroundColor","flatLight","material","canvas","textStyles","builtTextStyles","jsxs","View","styles","wrapper","padding","children","jsx","Border","input","backgroundColor","regular","placeholderTextColor","materialTextDisabled","editable","StyleSheet","create","minHeight","blockSizes","md","justifyContent","flex","paddingHorizontal","_default","exports","withTheme"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_theming","_styles","_styleElements","_jsxRuntime","e","__esModule","default","TextInput","defaultValue","disabled","style","inputStyle","theme","value","variant","rest","hasValue","isFlat","getBackgroundColor","flatLight","material","canvas","textStyles","builtTextStyles","jsxs","View","styles","wrapper","padding","children","jsx","Border","input","backgroundColor","regular","placeholderTextColor","materialTextDisabled","editable","StyleSheet","create","minHeight","blockSizes","md","justifyContent","flex","paddingHorizontal","_default","exports","withTheme"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAoD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAYpD;;AAEA,MAAMG,SAAS,GAAGA,CAAC;EACjBC,YAAY;EACZC,QAAQ;EACRC,KAAK,GAAG,CAAC,CAAC;EACVC,UAAU,GAAG,CAAC,CAAC;EACfC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;MAAA;MAAA,GACIM;IAAI,CACT,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,OAAO,EAAE;IACPa,SAAS,EAAEC,kBAAU,CAACC,EAAE;IACxBC,cAAc,EAAE;EAClB,CAAC;EACDX,KAAK,EAAE;IACLY,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzC,OAAA,GAEY,IAAA0C,kBAAS,EAACzC,SAAS,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@ const TextInput = ({
|
|
|
12
12
|
defaultValue,
|
|
13
13
|
disabled,
|
|
14
14
|
style = {},
|
|
15
|
+
inputStyle = {},
|
|
15
16
|
theme,
|
|
16
17
|
value,
|
|
17
18
|
variant = 'default',
|
|
@@ -36,7 +37,7 @@ const TextInput = ({
|
|
|
36
37
|
}), /*#__PURE__*/_jsx(NativeTextInput, {
|
|
37
38
|
style: [styles.input, {
|
|
38
39
|
backgroundColor: getBackgroundColor()
|
|
39
|
-
}, textStyles.regular, disabled && hasValue ? textStyles.disabled : textStyles.default],
|
|
40
|
+
}, textStyles.regular, disabled && hasValue ? textStyles.disabled : textStyles.default, inputStyle],
|
|
40
41
|
placeholderTextColor: theme.materialTextDisabled,
|
|
41
42
|
defaultValue: defaultValue,
|
|
42
43
|
value: value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","TextInput","NativeTextInput","withTheme","blockSizes","builtTextStyles","Border","jsx","_jsx","jsxs","_jsxs","defaultValue","disabled","style","theme","value","variant","rest","hasValue","isFlat","getBackgroundColor","flatLight","material","canvas","textStyles","styles","wrapper","padding","children","input","backgroundColor","regular","default","placeholderTextColor","materialTextDisabled","editable","create","minHeight","md","justifyContent","flex","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EAEJC,UAAU,EACVC,SAAS,IAAIC,eAAe,QAEvB,cAAc;AAGrB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,UAAU,EAAEC,eAAe,QAAQ,qBAAqB;AACjE,SAASC,MAAM,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","TextInput","NativeTextInput","withTheme","blockSizes","builtTextStyles","Border","jsx","_jsx","jsxs","_jsxs","defaultValue","disabled","style","inputStyle","theme","value","variant","rest","hasValue","isFlat","getBackgroundColor","flatLight","material","canvas","textStyles","styles","wrapper","padding","children","input","backgroundColor","regular","default","placeholderTextColor","materialTextDisabled","editable","create","minHeight","md","justifyContent","flex","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EAEJC,UAAU,EACVC,SAAS,IAAIC,eAAe,QAEvB,cAAc;AAGrB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,UAAU,EAAEC,eAAe,QAAQ,qBAAqB;AACjE,SAASC,MAAM,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYpD;;AAEA,MAAMT,SAAS,GAAGA,CAAC;EACjBU,YAAY;EACZC,QAAQ;EACRC,KAAK,GAAG,CAAC,CAAC;EACVC,UAAU,GAAG,CAAC,CAAC;EACfC,KAAK;EACLC,KAAK;EACLC,OAAO,GAAG,SAAS;EACnB,GAAGC;AACE,CAAC,KAAK;EACX,MAAMC,QAAQ,GAAG,CAAC,EAAEH,KAAK,IAAIL,YAAY,CAAC;EAE1C,MAAMS,MAAM,GAAGH,OAAO,KAAK,MAAM;EAEjC,MAAMI,kBAAkB,GAA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ignoreList":[]}
|
|
@@ -5,12 +5,13 @@ type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
|
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
style?: StyleProp<ViewStyle>;
|
|
8
|
+
inputStyle?: StyleProp<ViewStyle>;
|
|
8
9
|
theme: Theme;
|
|
9
10
|
value?: string;
|
|
10
11
|
variant?: 'default' | 'flat';
|
|
11
12
|
};
|
|
12
|
-
declare const _default: React.ComponentType<Pick<Props, "disabled" | "variant" | keyof import("react-native").TextInputProps | keyof React.RefAttributes<NativeTextInput>> & {
|
|
13
|
+
declare const _default: React.ComponentType<Pick<Props, "disabled" | "variant" | keyof import("react-native").TextInputProps | "inputStyle" | keyof React.RefAttributes<NativeTextInput>> & {
|
|
13
14
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<Theme> | undefined;
|
|
14
|
-
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & (({ defaultValue, disabled, style, theme, value, variant, ...rest }: Props) => React.JSX.Element), {}>;
|
|
15
|
+
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & (({ defaultValue, disabled, style, inputStyle, theme, value, variant, ...rest }: Props) => React.JSX.Element), {}>;
|
|
15
16
|
export default _default;
|
|
16
17
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EAET,SAAS,IAAI,eAAe,EAC5B,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMzC,KAAK,KAAK,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,eAAe,CAAC,GAAG;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,CAAC;;;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EAET,SAAS,IAAI,eAAe,EAC5B,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMzC,KAAK,KAAK,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,eAAe,CAAC,GAAG;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,CAAC;;;6MAaC,KAAK;AAgDR,wBAAoC"}
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
|
|
|
17
17
|
defaultValue?: string;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
style?: StyleProp<ViewStyle>;
|
|
20
|
+
inputStyle?: StyleProp<ViewStyle>;
|
|
20
21
|
theme: Theme;
|
|
21
22
|
value?: string;
|
|
22
23
|
variant?: 'default' | 'flat';
|
|
@@ -28,6 +29,7 @@ const TextInput = ({
|
|
|
28
29
|
defaultValue,
|
|
29
30
|
disabled,
|
|
30
31
|
style = {},
|
|
32
|
+
inputStyle = {},
|
|
31
33
|
theme,
|
|
32
34
|
value,
|
|
33
35
|
variant = 'default',
|
|
@@ -56,6 +58,7 @@ const TextInput = ({
|
|
|
56
58
|
},
|
|
57
59
|
textStyles.regular,
|
|
58
60
|
disabled && hasValue ? textStyles.disabled : textStyles.default,
|
|
61
|
+
inputStyle,
|
|
59
62
|
]}
|
|
60
63
|
placeholderTextColor={theme.materialTextDisabled}
|
|
61
64
|
defaultValue={defaultValue}
|