@draftbit/core 46.5.2-b02f9e.2 → 46.6.0

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.
Files changed (143) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/AspectRatio.js +1 -17
  3. package/lib/commonjs/components/Banner.js +23 -4
  4. package/lib/commonjs/components/Button.js +36 -13
  5. package/lib/commonjs/components/CardBlock.js +4 -13
  6. package/lib/commonjs/components/CardContainer.js +13 -4
  7. package/lib/commonjs/components/CardContainerShortImage.js +15 -4
  8. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -3
  9. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +17 -2
  10. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
  11. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
  12. package/lib/commonjs/components/Container.js +15 -4
  13. package/lib/commonjs/components/DatePicker/DatePicker.js +13 -9
  14. package/lib/commonjs/components/DeprecatedButton.js +3 -27
  15. package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
  16. package/lib/commonjs/components/DeprecatedFAB.js +3 -22
  17. package/lib/commonjs/components/Elevation.js +14 -2
  18. package/lib/commonjs/components/FAB.js +18 -4
  19. package/lib/commonjs/components/FieldSearchBarFull.js +1 -2
  20. package/lib/commonjs/components/Image.js +17 -2
  21. package/lib/commonjs/components/Layout.js +40 -19
  22. package/lib/commonjs/components/Picker/Picker.js +9 -4
  23. package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
  24. package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
  25. package/lib/commonjs/components/Portal/PortalConsumer.js +7 -22
  26. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  27. package/lib/commonjs/components/Pressable.js +50 -0
  28. package/lib/commonjs/components/ProgressBar.js +37 -7
  29. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +9 -1
  30. package/lib/commonjs/components/ScreenContainer.js +20 -4
  31. package/lib/commonjs/components/Surface.js +14 -2
  32. package/lib/commonjs/components/Swiper/Swiper.js +2 -0
  33. package/lib/commonjs/components/Switch.js +19 -10
  34. package/lib/commonjs/components/TextField.js +76 -28
  35. package/lib/commonjs/components/ToggleButton.js +15 -2
  36. package/lib/commonjs/components/Touchable.js +23 -5
  37. package/lib/commonjs/constants.js +1 -1
  38. package/lib/commonjs/index.js +7 -0
  39. package/lib/commonjs/mappings/Button.js +39 -10
  40. package/lib/commonjs/mappings/FlashList.js +45 -2
  41. package/lib/commonjs/mappings/FlatList.js +12 -0
  42. package/lib/commonjs/mappings/Swiper.js +2 -0
  43. package/lib/commonjs/mappings/Touchable.js +47 -7
  44. package/lib/commonjs/styles/overlay.js +3 -1
  45. package/lib/module/components/AvatarEdit.js +15 -4
  46. package/lib/module/components/Button.js +36 -13
  47. package/lib/module/components/Carousel.js +32 -8
  48. package/lib/module/components/Checkbox/Checkbox.js +26 -6
  49. package/lib/module/components/Checkbox/CheckboxGroup.js +16 -2
  50. package/lib/module/components/Checkbox/CheckboxGroupRow.js +25 -7
  51. package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
  52. package/lib/module/components/CircularProgress.js +28 -8
  53. package/lib/module/components/DatePicker/DatePicker.js +27 -13
  54. package/lib/module/components/DeprecatedButton.js +24 -30
  55. package/lib/module/components/DeprecatedFAB.js +2 -3
  56. package/lib/module/components/Elevation.js +14 -2
  57. package/lib/module/components/FieldSearchBarFull.js +1 -2
  58. package/lib/module/components/Image.js +18 -2
  59. package/lib/module/components/Layout.js +42 -21
  60. package/lib/module/components/NumberInput.js +12 -3
  61. package/lib/module/components/Picker/Picker.js +10 -4
  62. package/lib/module/components/Picker/PickerComponent.ios.js +36 -11
  63. package/lib/module/components/Picker/PickerComponent.web.js +21 -3
  64. package/lib/module/components/Portal/PortalConsumer.js +22 -7
  65. package/lib/module/components/Pressable.js +30 -0
  66. package/lib/module/components/RadioButton/RadioButtonRow.js +24 -5
  67. package/lib/module/components/ScreenContainer.js +21 -4
  68. package/lib/module/components/Swiper/Swiper.js +2 -0
  69. package/lib/module/components/Switch.js +21 -10
  70. package/lib/module/components/Text.js +50 -4
  71. package/lib/module/components/TextField.js +78 -28
  72. package/lib/module/components/Touchable.js +8 -3
  73. package/lib/module/constants.js +1 -2
  74. package/lib/module/index.js +1 -0
  75. package/lib/module/mappings/Button.js +40 -11
  76. package/lib/module/mappings/FieldSearchBarFull.js +4 -1
  77. package/lib/module/mappings/FlashList.js +46 -3
  78. package/lib/module/mappings/FlatList.js +13 -1
  79. package/lib/module/mappings/StarRating.js +7 -2
  80. package/lib/module/mappings/Swiper.js +3 -1
  81. package/lib/module/mappings/Touchable.js +49 -9
  82. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  83. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
  84. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  85. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
  86. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
  87. package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
  88. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
  89. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  90. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
  91. package/lib/typescript/src/components/Pressable.d.ts +10 -0
  92. package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
  93. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
  94. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
  95. package/lib/typescript/src/components/Touchable.d.ts +5 -6
  96. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  97. package/lib/typescript/src/index.d.ts +1 -0
  98. package/lib/typescript/src/index.d.ts.map +1 -1
  99. package/lib/typescript/src/mappings/Button.d.ts +113 -4
  100. package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
  101. package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
  102. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  103. package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
  104. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
  105. package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
  106. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  107. package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
  108. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
  109. package/lib/typescript/src/styles/overlay.d.ts +1 -1
  110. package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
  111. package/lib/typescript/src/styles/shadow.d.ts +2 -2
  112. package/package.json +7 -7
  113. package/src/components/Button.js +3 -3
  114. package/src/components/Button.tsx +14 -4
  115. package/src/components/Checkbox/Checkbox.js +2 -3
  116. package/src/components/Checkbox/Checkbox.tsx +5 -7
  117. package/src/components/Checkbox/CheckboxGroupRow.js +2 -3
  118. package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
  119. package/src/components/Checkbox/CheckboxRow.js +2 -3
  120. package/src/components/Checkbox/CheckboxRow.tsx +3 -3
  121. package/src/components/DeprecatedButton.js +4 -16
  122. package/src/components/DeprecatedButton.tsx +7 -31
  123. package/src/components/DeprecatedFAB.js +2 -3
  124. package/src/components/DeprecatedFAB.tsx +5 -5
  125. package/src/components/Pressable.js +12 -0
  126. package/src/components/Pressable.tsx +44 -0
  127. package/src/components/Swiper/Swiper.js +2 -2
  128. package/src/components/Swiper/Swiper.tsx +3 -0
  129. package/src/components/Touchable.js +3 -3
  130. package/src/components/Touchable.tsx +11 -7
  131. package/src/index.js +1 -0
  132. package/src/index.tsx +1 -0
  133. package/src/mappings/Button.js +39 -10
  134. package/src/mappings/Button.ts +41 -10
  135. package/src/mappings/FlashList.js +77 -31
  136. package/src/mappings/FlashList.ts +82 -30
  137. package/src/mappings/FlatList.js +13 -1
  138. package/src/mappings/FlatList.ts +16 -0
  139. package/src/mappings/Swiper.js +3 -1
  140. package/src/mappings/Swiper.ts +4 -0
  141. package/src/mappings/Touchable.js +50 -7
  142. package/src/mappings/Touchable.ts +53 -6
  143. package/src/styles/overlay.tsx +2 -2
@@ -12,7 +12,6 @@ var _theming = require("../../theming");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
15
  const AccordionItem = _ref => {
17
16
  let {
18
17
  Icon,
@@ -27,9 +26,10 @@ const AccordionItem = _ref => {
27
26
  textStyles,
28
27
  viewStyles
29
28
  } = (0, _utilities.extractStyles)(style);
30
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
31
- style: [styles.container, viewStyles]
32
- }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
29
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
30
+ style: [styles.container, viewStyles],
31
+ ...rest
32
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
33
33
  style: styles.row
34
34
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
35
35
  name: icon,
@@ -61,4 +61,23 @@ const styles = _reactNative.StyleSheet.create({
61
61
  }
62
62
  });
63
63
  var _default = (0, _theming.withTheme)(AccordionItem);
64
+ exports.default = _default;.StyleSheet.create({
65
+ container: {
66
+ padding: 8
67
+ },
68
+ row: {
69
+ flexDirection: "row",
70
+ alignItems: "center",
71
+ paddingLeft: 8
72
+ },
73
+ item: {
74
+ marginVertical: 6,
75
+ paddingLeft: 8
76
+ },
77
+ content: {
78
+ flex: 1,
79
+ justifyContent: "center"
80
+ }
81
+ });
82
+ var _default = (0, _theming.withTheme)(AccordionItem);
64
83
  exports.default = _default;
@@ -7,6 +7,7 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
11
  const AspectRatio = props => {
11
12
  const [layout, setLayout] = _react.default.useState(null);
12
13
  const {
@@ -33,23 +34,6 @@ const AspectRatio = props => {
33
34
  });
34
35
  }
35
36
  }
36
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
37
- ...props,
38
- style: style,
39
- onLayout: _ref => {
40
- let {
41
- nativeEvent: {
42
- layout: l
43
- }
44
- } = _ref;
45
- return setLayout(l);
46
- }
47
- }, props.children);
48
- };
49
- var _default = AspectRatio;
50
- exports.default = _default; });
51
- }
52
- }
53
37
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
54
38
  style: style,
55
39
  onLayout: _ref => {
@@ -12,7 +12,6 @@ var _theming = require("../theming");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
15
  const ELEVATION = 1;
17
16
  const DEFAULT_MAX_WIDTH = 960;
18
17
  const Banner = _ref => {
@@ -70,7 +69,6 @@ const Banner = _ref => {
70
69
  measured: true
71
70
  });
72
71
  };
73
-
74
72
  // The banner animation has 2 parts:
75
73
  // 1. Blank spacer element which animates its height to move the content
76
74
  // 2. Actual banner which animates its translateY
@@ -80,9 +78,10 @@ const Banner = _ref => {
80
78
  // However we can't animated banner's height directly as it'll also resize the content inside
81
79
  const height = _reactNative.Animated.multiply(position, layout.height);
82
80
  const translateY = _reactNative.Animated.multiply(_reactNative.Animated.add(position, -1), layout.height);
83
- return /*#__PURE__*/React.createElement(_Surface.default, _extends({}, rest, {
81
+ return /*#__PURE__*/React.createElement(_Surface.default, {
82
+ ...rest,
84
83
  style: [styles.container, (0, _shadow.default)(ELEVATION), style]
85
- }), /*#__PURE__*/React.createElement(_reactNative.View, {
84
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
86
85
  style: [styles.wrapper, contentStyle]
87
86
  }, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
88
87
  style: {
@@ -164,4 +163,24 @@ const styles = _reactNative.StyleSheet.create({
164
163
  }
165
164
  });
166
165
  var _default = (0, _theming.withTheme)(Banner);
166
+ exports.default = _default;",
167
+ justifyContent: "flex-start",
168
+ marginHorizontal: 8,
169
+ marginTop: 16,
170
+ marginBottom: 0
171
+ },
172
+ icon: {
173
+ margin: 8
174
+ },
175
+ message: {
176
+ flex: 1,
177
+ margin: 8
178
+ },
179
+ actions: {
180
+ flexDirection: "row",
181
+ justifyContent: "flex-end",
182
+ margin: 8
183
+ }
184
+ });
185
+ var _default = (0, _theming.withTheme)(Banner);
167
186
  exports.default = _default;
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _theming = require("../theming");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
12
  const CONSTANTS = {
14
13
  baseHeight: 42,
15
14
  borderRadius: 4,
@@ -21,10 +20,11 @@ function Base(_ref) {
21
20
  Icon,
22
21
  icon,
23
22
  title,
24
- onPress,
25
23
  loading,
26
24
  disabled,
27
25
  style,
26
+ activeOpacity,
27
+ disabledOpacity,
28
28
  ...props
29
29
  } = _ref;
30
30
  const {
@@ -60,18 +60,18 @@ function Base(_ref) {
60
60
  if (textAlign === "right") {
61
61
  buttonStyles.justifyContent = "flex-end";
62
62
  }
63
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
64
- onPress: onPress,
63
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
65
64
  disabled: disabled || loading,
66
65
  style: _ref2 => {
67
66
  let {
68
67
  pressed
69
68
  } = _ref2;
70
69
  return [styles.base, {
71
- opacity: pressed || disabled ? 0.75 : 1
70
+ opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
72
71
  }, buttonStyles];
73
- }
74
- }, props), loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
72
+ },
73
+ ...props
74
+ }, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
75
75
  size: "small",
76
76
  color: color,
77
77
  style: styles.loading
@@ -90,13 +90,14 @@ const Solid = _ref3 => {
90
90
  theme,
91
91
  ...props
92
92
  } = _ref3;
93
- return /*#__PURE__*/React.createElement(Base, _extends({
93
+ return /*#__PURE__*/React.createElement(Base, {
94
94
  style: [{
95
95
  color: "#FFF",
96
96
  borderRadius: theme.roundness,
97
97
  backgroundColor: theme.colors.primary
98
- }, style]
99
- }, props));
98
+ }, style],
99
+ ...props
100
+ });
100
101
  };
101
102
  const ButtonSolid = (0, _theming.withTheme)(Solid);
102
103
  exports.ButtonSolid = ButtonSolid;
@@ -108,13 +109,14 @@ const Outline = _ref4 => {
108
109
  theme,
109
110
  ...props
110
111
  } = _ref4;
111
- return /*#__PURE__*/React.createElement(Base, _extends({
112
+ return /*#__PURE__*/React.createElement(Base, {
112
113
  style: [styles.outline, {
113
114
  borderRadius: theme.roundness,
114
115
  borderColor: theme.colors.primary,
115
116
  color: theme.colors.primary
116
- }, style]
117
- }, props));
117
+ }, style],
118
+ ...props
119
+ });
118
120
  };
119
121
  const ButtonOutline = (0, _theming.withTheme)(Outline);
120
122
  exports.ButtonOutline = ButtonOutline;
@@ -161,4 +163,25 @@ const styles = _reactNative.StyleSheet.create({
161
163
  }
162
164
  })
163
165
  }
166
+ });ent",
167
+ padding: 0,
168
+ minHeight: undefined
169
+ },
170
+ loading: {
171
+ marginRight: 6
172
+ },
173
+ icon: {
174
+ ..._reactNative.Platform.select({
175
+ web: {
176
+ marginTop: 1,
177
+ marginRight: 4,
178
+ alignSelf: "center"
179
+ },
180
+ default: {
181
+ marginBottom: 2,
182
+ marginRight: 4,
183
+ alignSelf: "center"
184
+ }
185
+ })
186
+ }
164
187
  });
@@ -12,6 +12,7 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
12
12
  var _theming = require("../theming");
13
13
  var _Config = _interopRequireDefault(require("./Config"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
16
  const CardBlock = _ref => {
16
17
  let {
17
18
  image = _Config.default.cardImageUrl,
@@ -48,12 +49,11 @@ const CardBlock = _ref => {
48
49
  const rightDescriptionStyles = [typography.subtitle2, {
49
50
  color: colors.light
50
51
  }];
51
- return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, {
52
+ return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, _extends({
52
53
  style: style,
53
54
  onPress: onPress,
54
- numColumns: numColumns,
55
- ...rest
56
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
55
+ numColumns: numColumns
56
+ }, rest), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
57
57
  style: {
58
58
  backgroundColor: colors.background
59
59
  }
@@ -103,13 +103,4 @@ const CardBlock = _ref => {
103
103
  }, rightDescription) : null) : null));
104
104
  };
105
105
  var _default = (0, _theming.withTheme)(CardBlock);
106
- exports.default = _default;yle: [typography.body2, {
107
- color: colors.medium
108
- }]
109
- }, leftDescription), rightDescription ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
110
- numberOfLines: 1,
111
- style: rightDescriptionStyles
112
- }, rightDescription) : null) : null));
113
- };
114
- var _default = (0, _theming.withTheme)(CardBlock);
115
106
  exports.default = _default;
@@ -13,7 +13,6 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
13
13
  var _theming = require("../theming");
14
14
  var _Config = _interopRequireDefault(require("./Config"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
16
  const ICON_CONTAINER_SIZE = _Config.default.cardIconSize * 2;
18
17
  const ICON_CONTAINER_PADDING = _Config.default.cardIconSize / 2 - 1;
19
18
  const CardContainer = _ref => {
@@ -52,11 +51,12 @@ const CardContainer = _ref => {
52
51
  titleStyle = typography.headline5;
53
52
  break;
54
53
  }
55
- return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, _extends({
54
+ return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, {
56
55
  style: style,
57
56
  onPress: onPress,
58
- numColumns: numColumns
59
- }, rest), /*#__PURE__*/_react.default.createElement(_Elevation.default, {
57
+ numColumns: numColumns,
58
+ ...rest
59
+ }, /*#__PURE__*/_react.default.createElement(_Elevation.default, {
60
60
  style: {
61
61
  elevation,
62
62
  borderRadius: roundness
@@ -126,4 +126,13 @@ const CardContainer = _ref => {
126
126
  })) : null)));
127
127
  };
128
128
  var _default = (0, _theming.withTheme)(CardContainer);
129
+ exports.default = _default;0, _color.default)(colors.strong).alpha(_Config.default.cardIconBackgroundOpacity).rgb().string()
130
+ }
131
+ }, /*#__PURE__*/_react.default.createElement(Icon, {
132
+ name: icon,
133
+ size: _Config.default.cardIconSize,
134
+ color: colors.surface
135
+ })) : null)));
136
+ };
137
+ var _default = (0, _theming.withTheme)(CardContainer);
129
138
  exports.default = _default;
@@ -12,7 +12,6 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
12
12
  var _theming = require("../theming");
13
13
  var _Config = _interopRequireDefault(require("./Config"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
15
  const CardContainerShortImage = _ref => {
17
16
  let {
18
17
  image = _Config.default.squareImageUrl,
@@ -30,10 +29,11 @@ const CardContainerShortImage = _ref => {
30
29
  onPress,
31
30
  ...rest
32
31
  } = _ref;
33
- return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, _extends({
32
+ return /*#__PURE__*/_react.default.createElement(_DeprecatedCardWrapper.default, {
34
33
  style: style,
35
- onPress: onPress
36
- }, rest), /*#__PURE__*/_react.default.createElement(_Elevation.default, {
34
+ onPress: onPress,
35
+ ...rest
36
+ }, /*#__PURE__*/_react.default.createElement(_Elevation.default, {
37
37
  style: {
38
38
  elevation,
39
39
  borderRadius: roundness
@@ -81,4 +81,15 @@ const CardContainerShortImage = _ref => {
81
81
  }))));
82
82
  };
83
83
  var _default = (0, _theming.withTheme)(CardContainerShortImage);
84
+ exports.default = _default; }, subtitle) : null), mode === "right" && /*#__PURE__*/_react.default.createElement(_Image.default, {
85
+ style: {
86
+ aspectRatio
87
+ },
88
+ source: typeof image === "string" ? {
89
+ uri: image
90
+ } : image,
91
+ resizeMode: "cover"
92
+ }))));
93
+ };
94
+ var _default = (0, _theming.withTheme)(CardContainerShortImage);
84
95
  exports.default = _default;
@@ -7,9 +7,7 @@ exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _theming = require("../../theming");
10
- var _Touchable = _interopRequireDefault(require("../Touchable"));
11
10
  var _hooks = require("../../hooks");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
13
  const Checkbox = _ref => {
@@ -58,7 +56,7 @@ const Checkbox = _ref => {
58
56
  onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
59
57
  }
60
58
  };
61
- return /*#__PURE__*/React.createElement(_Touchable.default, {
59
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
62
60
  ...rest,
63
61
  onPress: handlePress,
64
62
  disabled: disabled,
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _context = require("./context");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
12
  const {
14
13
  Provider
15
14
  } = _context.checkboxGroupContext;
@@ -31,7 +30,23 @@ const CheckboxGroup = _ref => {
31
30
  alignItems: "center"
32
31
  });
33
32
  }
34
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
33
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
34
+ style: [{
35
+ minHeight: 40
36
+ }, style],
37
+ ...rest
38
+ }, /*#__PURE__*/React.createElement(Provider, {
39
+ value: {
40
+ values,
41
+ onValueChange,
42
+ direction
43
+ }
44
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
45
+ style: _containerStyle
46
+ }, children)));
47
+ };
48
+ var _default = CheckboxGroup;
49
+ exports.default = _default;s({
35
50
  style: [{
36
51
  minHeight: 40
37
52
  }, style]
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
10
10
  var _Text = _interopRequireDefault(require("../Text"));
11
11
  var _context = require("./context");
12
- var _Touchable = _interopRequireDefault(require("../Touchable"));
13
12
  var _utilities = require("../../utilities");
14
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -73,7 +72,7 @@ const CheckboxGroupRow = _ref => {
73
72
  textStyles,
74
73
  viewStyles
75
74
  } = (0, _utilities.extractStyles)(style);
76
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
75
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
77
76
  onPress: handlePress,
78
77
  style: [styles.mainParent, {
79
78
  flexDirection: direction
@@ -10,7 +10,6 @@ var _lodash = require("lodash");
10
10
  var _utilities = require("../../utilities");
11
11
  var _hooks = require("../../hooks");
12
12
  var _Text = _interopRequireDefault(require("../Text"));
13
- var _Touchable = _interopRequireDefault(require("../Touchable"));
14
13
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
15
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -83,7 +82,7 @@ const CheckboxRow = _ref => {
83
82
  textStyles,
84
83
  viewStyles
85
84
  } = (0, _utilities.extractStyles)(style);
86
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
85
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
87
86
  onPress: handlePress,
88
87
  style: [viewStyles, styles.mainParent, {
89
88
  flexDirection: direction
@@ -11,7 +11,6 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
14
  const Container = _ref => {
16
15
  let {
17
16
  useThemeGutterPadding,
@@ -73,9 +72,10 @@ const Container = _ref => {
73
72
  };
74
73
  const Wrap = elevation ? _Elevation.default : _reactNative.View;
75
74
  if (elevation) containerStyle.elevation = elevation;
76
- return /*#__PURE__*/React.createElement(Wrap, _extends({
77
- style: [containerStyle, style]
78
- }, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
75
+ return /*#__PURE__*/React.createElement(Wrap, {
76
+ style: [containerStyle, style],
77
+ ...rest
78
+ }, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
79
79
  source: typeof backgroundImage === "string" ? {
80
80
  uri: backgroundImage
81
81
  } : backgroundImage,
@@ -90,4 +90,15 @@ const Container = _ref => {
90
90
  }, children));
91
91
  };
92
92
  var _default = (0, _theming.withTheme)(Container);
93
+ exports.default = _default;sizeMode: backgroundImageResizeMode,
94
+ style: {
95
+ flex: 1
96
+ }
97
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
98
+ style: innerStyle
99
+ }, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
100
+ style: innerStyle
101
+ }, children));
102
+ };
103
+ var _default = (0, _theming.withTheme)(Container);
93
104
  exports.default = _default;
@@ -16,6 +16,7 @@ var _utilities = require("../../utilities");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
20
  const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
20
21
  const FOCUS_ANIMATION_DURATION = 150;
21
22
  const BLUR_ANIMATION_DURATION = 180;
@@ -90,20 +91,24 @@ const DatePicker = _ref => {
90
91
  focused ? _handleBlur() : _handleFocus();
91
92
  };
92
93
  const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
94
+
93
95
  // const _restoreLabel = () =>
94
96
  // Animated.timing(labeled, {
95
97
  // toValue: 1,
96
98
  // duration: FOCUS_ANIMATION_DURATION,
97
99
  // useNativeDriver: true,
98
100
  // }).start();
101
+
99
102
  // const _minmizeLabel = () =>
100
103
  // Animated.timing(labeled, {
101
104
  // toValue: 0,
102
105
  // duration: BLUR_ANIMATION_DURATION,
103
106
  // useNativeDriver: true,
104
107
  // }).start();
108
+
105
109
  // const _showPlaceholder = () =>
106
110
  // setTimeout(() => setPlaceholder1(placeholder || ""), 50);
111
+
107
112
  const _hidePlaceholder = () => {
108
113
  setPlaceholder1("");
109
114
  };
@@ -246,7 +251,9 @@ const DatePicker = _ref => {
246
251
  const inputStyles = [styles.input, inputStyle, type === "solid" ? {
247
252
  marginHorizontal: 12
248
253
  } : {}];
254
+
249
255
  // const render = (props) => <NativeTextInput {...props} />;
256
+
250
257
  return /*#__PURE__*/React.createElement(_reactNative.View, {
251
258
  style: [styles.container, style]
252
259
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
@@ -256,10 +263,9 @@ const DatePicker = _ref => {
256
263
  pointerEvents: "none"
257
264
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
258
265
  style: [styles.container, style]
259
- }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
260
- ...leftIconProps,
266
+ }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
261
267
  style: leftIconStyle
262
- }) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
268
+ })) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
263
269
  style: [containerStyle, style ? {
264
270
  height: style.height
265
271
  } : {}, viewStyles]
@@ -308,13 +314,12 @@ const DatePicker = _ref => {
308
314
  opacity: hasActiveOutline ? labeled : 1
309
315
  }],
310
316
  numberOfLines: 1
311
- }, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, {
312
- ...leftIconProps,
317
+ }, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
313
318
  style: {
314
319
  ...leftIconStyle,
315
320
  marginLeft: type === "solid" ? 16 : 0
316
321
  }
317
- }) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, {
322
+ })) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, _extends({
318
323
  value: formatDate(),
319
324
  placeholder: label ? placeholder1 : placeholder,
320
325
  editable: !disabled,
@@ -323,9 +328,8 @@ const DatePicker = _ref => {
323
328
  onFocus: _handleFocus,
324
329
  onBlur: _handleBlur,
325
330
  underlineColorAndroid: "transparent",
326
- style: [inputStyles, textStyles],
327
- ...props
328
- })), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
331
+ style: [inputStyles, textStyles]
332
+ }, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
329
333
  name: rightIconName,
330
334
  size: ICON_SIZE,
331
335
  color: colors.light,
@@ -8,7 +8,6 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _color = _interopRequireDefault(require("color"));
10
10
  var _Config = _interopRequireDefault(require("./Config"));
11
- var _Touchable = _interopRequireDefault(require("./Touchable"));
12
11
  var _Elevation = _interopRequireDefault(require("./Elevation"));
13
12
  var _theming = require("../theming");
14
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -27,7 +26,6 @@ const Button = _ref => {
27
26
  children,
28
27
  onPress,
29
28
  elevation = 0,
30
- style,
31
29
  theme: {
32
30
  colors,
33
31
  disabledOpacity,
@@ -81,41 +79,19 @@ const Button = _ref => {
81
79
  marginRight: -8,
82
80
  width: _Config.default.buttonIconSize
83
81
  }];
84
- const {
85
- margin,
86
- marginEnd,
87
- marginTop,
88
- marginLeft,
89
- marginRight,
90
- marginBottom,
91
- marginHorizontal,
92
- marginVertical,
93
- ...innerStyles
94
- } = _reactNative.StyleSheet.flatten(style || {});
95
- const margins = {
96
- margin,
97
- marginEnd,
98
- marginTop,
99
- marginLeft,
100
- marginRight,
101
- marginBottom,
102
- marginHorizontal,
103
- marginVertical
104
- };
105
82
  return /*#__PURE__*/React.createElement(_Elevation.default, {
106
83
  style: {
107
84
  elevation,
108
- alignSelf: "stretch",
109
- ...margins
85
+ alignSelf: "stretch"
110
86
  }
111
- }, /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
87
+ }, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
112
88
  onPress: onPress,
113
89
  accessibilityState: {
114
90
  disabled
115
91
  },
116
92
  accessibilityRole: "button",
117
93
  disabled: disabled || loading,
118
- style: [styles.button, buttonStyle, innerStyles]
94
+ style: [styles.button, buttonStyle]
119
95
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
120
96
  style: styles.content
121
97
  }, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
@@ -8,7 +8,6 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _theming = require("../theming");
9
9
  var _Touchable = _interopRequireDefault(require("./Touchable"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
11
  const getWidth = numColumns => {
13
12
  switch (numColumns) {
14
13
  case 1:
@@ -28,6 +27,21 @@ const Card = _ref => {
28
27
  ...rest
29
28
  } = _ref;
30
29
  const width = getWidth(numColumns);
30
+ return /*#__PURE__*/_react.default.createElement(_Touchable.default, {
31
+ disabled: !onPress,
32
+ onPress: onPress,
33
+ style: [style, {
34
+ width
35
+ }],
36
+ ...rest
37
+ }, children);
38
+ };
39
+ var _default = (0, _theming.withTheme)(Card);
40
+ exports.default = _default;s,
41
+ style,
42
+ ...rest
43
+ } = _ref;
44
+ const width = getWidth(numColumns);
31
45
  return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
32
46
  disabled: !onPress,
33
47
  onPress: onPress,