@janiscommerce/ui-native 1.15.1 → 1.15.3

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.
@@ -18,7 +18,7 @@ var InputType;
18
18
  InputType["amountTotal"] = "numeric";
19
19
  InputType["numeric"] = "numeric";
20
20
  })(InputType || (InputType = {}));
21
- const Input = forwardRef(({ type, variant = 'default', totalValue, placeholder, onChangeText, ...props }, ref) => {
21
+ const Input = forwardRef(({ style, type, variant = 'default', totalValue, placeholder, onChangeText, ...props }, ref) => {
22
22
  const [value, setValue] = useState('');
23
23
  const isPlaceholderBeingShown = !value;
24
24
  const isAmountTotalVariant = variant === 'amountTotal';
@@ -39,6 +39,7 @@ const Input = forwardRef(({ type, variant = 'default', totalValue, placeholder,
39
39
  alignItems: 'center',
40
40
  flexDirection: 'row',
41
41
  position: 'relative',
42
+ width: '100%',
42
43
  },
43
44
  input: {
44
45
  color: palette.black.main,
@@ -91,8 +92,8 @@ const Input = forwardRef(({ type, variant = 'default', totalValue, placeholder,
91
92
  </Typography>);
92
93
  };
93
94
  return (<TouchableWithoutFeedback onPress={handlePress}>
94
- <View style={styles.container} {...props}>
95
- <BaseInput testID="input" style={styles.input} ref={inputRef} value={value} keyboardType={resolvedKeyboardType} onChangeText={changeTextCb}/>
95
+ <View style={[styles.container, style]}>
96
+ <BaseInput testID="input" style={styles.input} ref={inputRef} value={value} keyboardType={resolvedKeyboardType} onChangeText={changeTextCb} {...props}/>
96
97
  {renderPlaceholder()}
97
98
  {isAmountTotalVariant && (<Typography style={styles.totalValue} type="display">
98
99
  {`/${totalValue?.toString()}`}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janiscommerce/ui-native",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "description": "components library for Janis app",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",