@draftbit/core 46.5.2-b58416.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 (138) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/Banner.js +23 -4
  3. package/lib/commonjs/components/Button.js +36 -13
  4. package/lib/commonjs/components/CardContainer.js +13 -4
  5. package/lib/commonjs/components/CardContainerShortImage.js +15 -4
  6. package/lib/commonjs/components/Checkbox/Checkbox.js +22 -6
  7. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +17 -2
  8. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
  9. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
  10. package/lib/commonjs/components/Container.js +15 -4
  11. package/lib/commonjs/components/DeprecatedButton.js +3 -27
  12. package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
  13. package/lib/commonjs/components/DeprecatedFAB.js +1 -2
  14. package/lib/commonjs/components/Elevation.js +14 -2
  15. package/lib/commonjs/components/FAB.js +18 -4
  16. package/lib/commonjs/components/FieldSearchBarFull.js +1 -2
  17. package/lib/commonjs/components/Image.js +17 -2
  18. package/lib/commonjs/components/Layout.js +40 -19
  19. package/lib/commonjs/components/Picker/Picker.js +9 -4
  20. package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
  21. package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
  22. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  23. package/lib/commonjs/components/Pressable.js +50 -0
  24. package/lib/commonjs/components/ProgressBar.js +37 -7
  25. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +9 -1
  26. package/lib/commonjs/components/ScreenContainer.js +20 -4
  27. package/lib/commonjs/components/StepIndicator.js +57 -18
  28. package/lib/commonjs/components/Surface.js +14 -2
  29. package/lib/commonjs/components/Swiper/Swiper.js +2 -0
  30. package/lib/commonjs/components/Switch.js +19 -10
  31. package/lib/commonjs/components/TextField.js +76 -28
  32. package/lib/commonjs/components/ToggleButton.js +15 -2
  33. package/lib/commonjs/components/Touchable.js +23 -5
  34. package/lib/commonjs/index.js +7 -0
  35. package/lib/commonjs/mappings/Button.js +39 -10
  36. package/lib/commonjs/mappings/FlashList.js +45 -2
  37. package/lib/commonjs/mappings/FlatList.js +12 -0
  38. package/lib/commonjs/mappings/Swiper.js +2 -0
  39. package/lib/commonjs/mappings/Touchable.js +47 -7
  40. package/lib/module/components/AvatarEdit.js +15 -4
  41. package/lib/module/components/Button.js +36 -13
  42. package/lib/module/components/Carousel.js +32 -8
  43. package/lib/module/components/Checkbox/Checkbox.js +26 -6
  44. package/lib/module/components/Checkbox/CheckboxGroup.js +16 -2
  45. package/lib/module/components/Checkbox/CheckboxGroupRow.js +25 -7
  46. package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
  47. package/lib/module/components/CircularProgress.js +28 -8
  48. package/lib/module/components/DatePicker/DatePicker.js +27 -13
  49. package/lib/module/components/DeprecatedButton.js +24 -30
  50. package/lib/module/components/DeprecatedFAB.js +2 -3
  51. package/lib/module/components/Elevation.js +14 -2
  52. package/lib/module/components/FieldSearchBarFull.js +1 -2
  53. package/lib/module/components/Image.js +18 -2
  54. package/lib/module/components/Layout.js +42 -21
  55. package/lib/module/components/NumberInput.js +12 -3
  56. package/lib/module/components/Picker/Picker.js +10 -4
  57. package/lib/module/components/Picker/PickerComponent.ios.js +36 -11
  58. package/lib/module/components/Picker/PickerComponent.web.js +21 -3
  59. package/lib/module/components/Portal/PortalConsumer.js +22 -7
  60. package/lib/module/components/Pressable.js +30 -0
  61. package/lib/module/components/RadioButton/RadioButtonRow.js +24 -5
  62. package/lib/module/components/ScreenContainer.js +21 -4
  63. package/lib/module/components/Swiper/Swiper.js +2 -0
  64. package/lib/module/components/Switch.js +21 -10
  65. package/lib/module/components/Text.js +50 -4
  66. package/lib/module/components/TextField.js +78 -28
  67. package/lib/module/components/Touchable.js +8 -3
  68. package/lib/module/constants.js +1 -2
  69. package/lib/module/index.js +1 -0
  70. package/lib/module/mappings/Button.js +40 -11
  71. package/lib/module/mappings/FieldSearchBarFull.js +4 -1
  72. package/lib/module/mappings/FlashList.js +46 -3
  73. package/lib/module/mappings/FlatList.js +13 -1
  74. package/lib/module/mappings/StarRating.js +7 -2
  75. package/lib/module/mappings/Swiper.js +3 -1
  76. package/lib/module/mappings/Touchable.js +49 -9
  77. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  78. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
  79. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  80. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
  81. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
  82. package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
  83. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
  84. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  85. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
  86. package/lib/typescript/src/components/Pressable.d.ts +10 -0
  87. package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
  88. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
  89. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
  90. package/lib/typescript/src/components/Touchable.d.ts +5 -6
  91. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  92. package/lib/typescript/src/index.d.ts +1 -0
  93. package/lib/typescript/src/index.d.ts.map +1 -1
  94. package/lib/typescript/src/mappings/Button.d.ts +113 -4
  95. package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
  96. package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
  97. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  98. package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
  99. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
  100. package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
  101. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  102. package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
  103. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
  104. package/lib/typescript/src/styles/overlay.d.ts +1 -1
  105. package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
  106. package/lib/typescript/src/styles/shadow.d.ts +2 -2
  107. package/package.json +7 -7
  108. package/src/components/Button.js +3 -3
  109. package/src/components/Button.tsx +14 -4
  110. package/src/components/Checkbox/Checkbox.js +2 -3
  111. package/src/components/Checkbox/Checkbox.tsx +5 -7
  112. package/src/components/Checkbox/CheckboxGroupRow.js +2 -3
  113. package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
  114. package/src/components/Checkbox/CheckboxRow.js +2 -3
  115. package/src/components/Checkbox/CheckboxRow.tsx +3 -3
  116. package/src/components/DeprecatedButton.js +4 -16
  117. package/src/components/DeprecatedButton.tsx +7 -31
  118. package/src/components/DeprecatedFAB.js +2 -3
  119. package/src/components/DeprecatedFAB.tsx +5 -5
  120. package/src/components/Pressable.js +12 -0
  121. package/src/components/Pressable.tsx +44 -0
  122. package/src/components/Swiper/Swiper.js +2 -2
  123. package/src/components/Swiper/Swiper.tsx +3 -0
  124. package/src/components/Touchable.js +3 -3
  125. package/src/components/Touchable.tsx +11 -7
  126. package/src/index.js +1 -0
  127. package/src/index.tsx +1 -0
  128. package/src/mappings/Button.js +39 -10
  129. package/src/mappings/Button.ts +41 -10
  130. package/src/mappings/FlashList.js +77 -31
  131. package/src/mappings/FlashList.ts +82 -30
  132. package/src/mappings/FlatList.js +13 -1
  133. package/src/mappings/FlatList.ts +16 -0
  134. package/src/mappings/Swiper.js +3 -1
  135. package/src/mappings/Swiper.ts +4 -0
  136. package/src/mappings/Touchable.js +50 -7
  137. package/src/mappings/Touchable.ts +53 -6
  138. 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;
@@ -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
  });
@@ -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,12 +7,9 @@ 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
- 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
13
  const Checkbox = _ref => {
17
14
  let {
18
15
  Icon,
@@ -36,7 +33,6 @@ const Checkbox = _ref => {
36
33
  setInternalValue(status);
37
34
  }
38
35
  }, [status]);
39
-
40
36
  // This special logic is to handle weird APIs like Airtable that return
41
37
  // true or undefined for a boolean
42
38
  const previousDefaultValue = (0, _hooks.usePrevious)(defaultValue);
@@ -60,7 +56,8 @@ const Checkbox = _ref => {
60
56
  onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
61
57
  }
62
58
  };
63
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
59
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
60
+ ...rest,
64
61
  onPress: handlePress,
65
62
  disabled: disabled,
66
63
  accessibilityState: {
@@ -72,7 +69,7 @@ const Checkbox = _ref => {
72
69
  width: size,
73
70
  height: size
74
71
  }]
75
- }), /*#__PURE__*/React.createElement(Icon, {
72
+ }, /*#__PURE__*/React.createElement(Icon, {
76
73
  style: styles.icon,
77
74
  name: internalValue ? checkedIcon : uncheckedIcon,
78
75
  size: size,
@@ -106,4 +103,23 @@ const styles = _reactNative.StyleSheet.create({
106
103
  }
107
104
  });
108
105
  var _default = Checkbox;
106
+ exports.default = _default; styles = _reactNative.StyleSheet.create({
107
+ container: {
108
+ borderRadius: 18
109
+ },
110
+ fillContainer: {
111
+ alignItems: "center",
112
+ justifyContent: "center"
113
+ },
114
+ icon: {
115
+ alignSelf: "center"
116
+ },
117
+ fill: {
118
+ borderRadius: 5,
119
+ width: 30,
120
+ height: 30,
121
+ alignSelf: "center"
122
+ }
123
+ });
124
+ var _default = Checkbox;
109
125
  exports.default = _default;
@@ -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;
@@ -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,
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _color = _interopRequireDefault(require("color"));
10
10
  var _Config = _interopRequireDefault(require("./Config"));
11
11
  var _Text = _interopRequireDefault(require("./Text"));
12
- var _Touchable = _interopRequireDefault(require("./Touchable"));
13
12
  var _Elevation = _interopRequireDefault(require("./Elevation"));
14
13
  var _theming = require("../theming");
15
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -107,7 +106,7 @@ const FAB = _ref => {
107
106
  style: [{
108
107
  elevation
109
108
  }, style]
110
- }, /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
109
+ }, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
111
110
  onPress: onPress,
112
111
  accessibilityState: {
113
112
  disabled
@@ -11,7 +11,6 @@ var _theming = require("../theming");
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
  /* directly copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx#L62 */
16
15
  const Elevation = _ref => {
17
16
  let {
@@ -28,11 +27,24 @@ const Elevation = _ref => {
28
27
  colors
29
28
  } = theme;
30
29
  const borderRadius = radius;
31
- return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
30
+ return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
31
+ ...rest,
32
32
  style: [{
33
33
  borderRadius,
34
34
  backgroundColor: colors.surface
35
35
  }, elevation ? (0, _shadow.default)(elevation) : null, style]
36
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
37
+ style: {
38
+ overflow: "hidden",
39
+ borderRadius
40
+ }
41
+ }, children));
42
+ };
43
+ var _default = (0, _theming.withTheme)(Elevation);
44
+ exports.default = _default;
45
+ borderRadius,
46
+ backgroundColor: colors.surface
47
+ }, elevation ? (0, _shadow.default)(elevation) : null, style]
36
48
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
37
49
  style: {
38
50
  overflow: "hidden",
@@ -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 FAB = _ref => {
14
13
  let {
15
14
  onPress,
@@ -33,7 +32,7 @@ const FAB = _ref => {
33
32
  borderRadius: size / 2,
34
33
  overflow: "hidden"
35
34
  }, style]
36
- }, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
35
+ }, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
37
36
  onPress: onPress,
38
37
  disabled: loading || disabled,
39
38
  android_ripple: {
@@ -51,8 +50,9 @@ const FAB = _ref => {
51
50
  borderRadius: size / 2,
52
51
  backgroundColor
53
52
  }];
54
- }
55
- }, props), /*#__PURE__*/React.createElement(_reactNative.View, null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
53
+ },
54
+ ...props
55
+ }, /*#__PURE__*/React.createElement(_reactNative.View, null, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
56
56
  style: size > 50 ? {
57
57
  marginTop: 2,
58
58
  marginLeft: 2
@@ -79,4 +79,18 @@ const styles = _reactNative.StyleSheet.create({
79
79
  }
80
80
  });
81
81
  var _default = (0, _theming.withTheme)(FAB);
82
+ exports.default = _default; styles = _reactNative.StyleSheet.create({
83
+ button: {
84
+ backgroundColor: "#5a45ff",
85
+ justifyContent: "center",
86
+ alignItems: "center",
87
+ ..._reactNative.Platform.select({
88
+ web: {
89
+ cursor: "pointer",
90
+ userSelect: "none"
91
+ }
92
+ })
93
+ }
94
+ });
95
+ var _default = (0, _theming.withTheme)(FAB);
82
96
  exports.default = _default;