react-native-molecules 0.5.0-beta.25 → 0.5.0-beta.27

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.
@@ -246,6 +246,7 @@ const Chip = (
246
246
  borderless
247
247
  {...rest}
248
248
  disabled={disabled}
249
+ onPress={onPress}
249
250
  accessibilityLabel={accessibilityLabel}
250
251
  accessibilityState={accessibilityState}
251
252
  ref={actionsRef}
@@ -83,7 +83,7 @@ export type TextInputOutlineCompoundProps = {
83
83
  style?: StyleProp<ViewStyle>;
84
84
  };
85
85
 
86
- export type TextInputSize = 'lg' | 'md' | 'sm';
86
+ export type TextInputSize = 'xs' | 'lg' | 'md' | 'sm';
87
87
 
88
88
  export type TextInputVariant = 'flat' | 'outlined' | 'plain';
89
89
 
@@ -45,12 +45,16 @@ const getInputMinHeightDefault = (variant: string, size: string) => {
45
45
  return 56;
46
46
  case variant === 'outlined' && size === 'sm':
47
47
  return 48;
48
+ case variant === 'outlined' && size === 'xs':
49
+ return 40;
48
50
  case variant === 'flat' && size === 'lg':
49
51
  return 64;
50
52
  case variant === 'flat' && size === 'md':
51
53
  return 56;
52
54
  case variant === 'flat' && size === 'sm':
53
55
  return 52;
56
+ case variant === 'flat' && size === 'xs':
57
+ return 48;
54
58
  default:
55
59
  return 0;
56
60
  }
@@ -112,6 +116,9 @@ const textInputStylesDefault = StyleSheet.create(theme => ({
112
116
  sm: {
113
117
  ...theme.typescale.bodyMedium,
114
118
  },
119
+ xs: {
120
+ ...theme.typescale.bodyMedium,
121
+ },
115
122
  },
116
123
  variant: {
117
124
  flat: {
@@ -212,6 +219,9 @@ const textInputLabelStylesDefault = StyleSheet.create(theme => ({
212
219
  sm: {
213
220
  ...theme.typescale.bodyMedium,
214
221
  },
222
+ xs: {
223
+ ...theme.typescale.bodyMedium,
224
+ },
215
225
  },
216
226
 
217
227
  variant: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-molecules",
3
- "version": "0.5.0-beta.25",
3
+ "version": "0.5.0-beta.27",
4
4
  "author": "Thet Aung <thetaung.dev@gmail.com>",
5
5
  "license": "MIT",
6
6
  "main": "index.ts",