@draftbit/core 46.5.2-b58416.2 → 46.6.2

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 (311) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/AvatarEdit.js +15 -4
  3. package/lib/commonjs/components/Banner.js +23 -4
  4. package/lib/commonjs/components/Button.js +36 -13
  5. package/lib/commonjs/components/Carousel.js +30 -8
  6. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -3
  7. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -6
  8. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
  9. package/lib/commonjs/components/Container.js +15 -4
  10. package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
  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/Divider.js +14 -1
  15. package/lib/commonjs/components/FAB.js +18 -4
  16. package/lib/commonjs/components/IconButton.js +19 -4
  17. package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
  18. package/lib/commonjs/components/Portal/Portal.js +27 -3
  19. package/lib/commonjs/components/Portal/PortalConsumer.js +22 -7
  20. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  21. package/lib/commonjs/components/Pressable.js +37 -0
  22. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +9 -1
  23. package/lib/commonjs/components/RadioButton/context.js +1 -1
  24. package/lib/commonjs/components/ScreenContainer.js +20 -4
  25. package/lib/commonjs/components/StarRating.js +23 -4
  26. package/lib/commonjs/components/Surface.js +14 -2
  27. package/lib/commonjs/components/Swiper/Swiper.js +2 -0
  28. package/lib/commonjs/components/TextField.js +76 -28
  29. package/lib/commonjs/components/ToggleButton.js +15 -2
  30. package/lib/commonjs/components/Touchable.js +8 -3
  31. package/lib/commonjs/constants.js +1 -1
  32. package/lib/commonjs/hooks.js +1 -2
  33. package/lib/commonjs/index.js +7 -0
  34. package/lib/commonjs/mappings/Button.js +39 -10
  35. package/lib/commonjs/mappings/FlashList.js +45 -2
  36. package/lib/commonjs/mappings/FlatList.js +12 -0
  37. package/lib/commonjs/mappings/StarRating.js +6 -2
  38. package/lib/commonjs/mappings/Swiper.js +2 -0
  39. package/lib/commonjs/mappings/Touchable.js +47 -7
  40. package/lib/commonjs/styles/overlay.js +1 -3
  41. package/lib/commonjs/utilities.js +1 -2
  42. package/lib/module/components/AnimatedCircularProgress.js +13 -1
  43. package/lib/module/components/AspectRatio.js +18 -1
  44. package/lib/module/components/AvatarEdit.js +15 -4
  45. package/lib/module/components/Banner.js +25 -4
  46. package/lib/module/components/Button.js +36 -13
  47. package/lib/module/components/CardBlock.js +14 -4
  48. package/lib/module/components/CardContainerRating.js +14 -4
  49. package/lib/module/components/CardContainerShortImage.js +18 -4
  50. package/lib/module/components/Checkbox/Checkbox.js +2 -3
  51. package/lib/module/components/Checkbox/CheckboxGroup.js +16 -2
  52. package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -3
  53. package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
  54. package/lib/module/components/Container.js +17 -4
  55. package/lib/module/components/DeprecatedButton.js +4 -28
  56. package/lib/module/components/DeprecatedFAB.js +24 -5
  57. package/lib/module/components/Elevation.js +14 -2
  58. package/lib/module/components/FormRow.js +17 -2
  59. package/lib/module/components/Layout.js +42 -21
  60. package/lib/module/components/NumberInput.js +12 -3
  61. package/lib/module/components/Portal/Portal.js +28 -3
  62. package/lib/module/components/Portal/PortalConsumer.js +22 -7
  63. package/lib/module/components/Portal/PortalHost.js +45 -15
  64. package/lib/module/components/Portal/PortalManager.js +33 -7
  65. package/lib/module/components/Pressable.js +30 -0
  66. package/lib/module/components/ProgressBar.js +39 -7
  67. package/lib/module/components/RadioButton/RadioButton.js +13 -1
  68. package/lib/module/components/RadioButton/RadioButtonGroup.js +16 -2
  69. package/lib/module/components/RadioButton/RadioButtonRow.js +24 -5
  70. package/lib/module/components/RadioButton/context.js +1 -1
  71. package/lib/module/components/Slider.js +21 -4
  72. package/lib/module/components/StepIndicator.js +58 -18
  73. package/lib/module/components/Surface.js +15 -1
  74. package/lib/module/components/Swiper/Swiper.js +2 -0
  75. package/lib/module/components/Switch.js +21 -10
  76. package/lib/module/components/TextField.js +78 -28
  77. package/lib/module/components/Touchable.js +8 -3
  78. package/lib/module/constants.js +1 -2
  79. package/lib/module/index.js +1 -0
  80. package/lib/module/mappings/Button.js +40 -11
  81. package/lib/module/mappings/FieldSearchBarFull.js +4 -1
  82. package/lib/module/mappings/FlashList.js +46 -3
  83. package/lib/module/mappings/FlatList.js +13 -1
  84. package/lib/module/mappings/Swiper.js +3 -1
  85. package/lib/module/mappings/Touchable.js +49 -9
  86. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  87. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
  88. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  89. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
  90. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
  91. package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
  92. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
  93. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  94. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
  95. package/lib/typescript/src/components/Pressable.d.ts +10 -0
  96. package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
  97. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
  98. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
  99. package/lib/typescript/src/components/Touchable.d.ts +5 -6
  100. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  101. package/lib/typescript/src/index.d.ts +1 -0
  102. package/lib/typescript/src/index.d.ts.map +1 -1
  103. package/lib/typescript/src/mappings/Button.d.ts +113 -4
  104. package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
  105. package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
  106. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  107. package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
  108. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
  109. package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
  110. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  111. package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
  112. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
  113. package/lib/typescript/src/styles/overlay.d.ts +1 -1
  114. package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
  115. package/lib/typescript/src/styles/shadow.d.ts +2 -2
  116. package/package.json +6 -6
  117. package/src/components/Button.tsx +14 -4
  118. package/src/components/Checkbox/Checkbox.tsx +5 -7
  119. package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
  120. package/src/components/Checkbox/CheckboxRow.tsx +3 -3
  121. package/src/components/DeprecatedButton.tsx +7 -31
  122. package/src/components/DeprecatedFAB.tsx +5 -5
  123. package/src/components/Pressable.tsx +44 -0
  124. package/src/components/Swiper/Swiper.tsx +3 -0
  125. package/src/components/Touchable.tsx +11 -7
  126. package/src/index.tsx +1 -0
  127. package/src/mappings/Button.ts +41 -10
  128. package/src/mappings/FlashList.ts +82 -30
  129. package/src/mappings/FlatList.ts +16 -0
  130. package/src/mappings/Swiper.ts +4 -0
  131. package/src/mappings/Touchable.ts +53 -6
  132. package/src/styles/overlay.tsx +2 -2
  133. package/src/Provider.js +0 -9
  134. package/src/components/Accordion/AccordionGroup.js +0 -44
  135. package/src/components/Accordion/AccordionItem.js +0 -32
  136. package/src/components/Accordion/index.js +0 -2
  137. package/src/components/ActionSheet/ActionSheet.js +0 -45
  138. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  139. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  140. package/src/components/ActionSheet/index.js +0 -3
  141. package/src/components/AnimatedCircularProgress.js +0 -43
  142. package/src/components/AspectRatio.js +0 -18
  143. package/src/components/AvatarEdit.js +0 -30
  144. package/src/components/Banner.js +0 -109
  145. package/src/components/Button.js +0 -114
  146. package/src/components/Card.js +0 -57
  147. package/src/components/CardBlock.js +0 -54
  148. package/src/components/CardContainer.js +0 -69
  149. package/src/components/CardContainerRating.js +0 -79
  150. package/src/components/CardContainerShortImage.js +0 -33
  151. package/src/components/CardInline.js +0 -36
  152. package/src/components/Carousel.js +0 -68
  153. package/src/components/Checkbox/Checkbox.js +0 -63
  154. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  155. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  156. package/src/components/Checkbox/CheckboxRow.js +0 -78
  157. package/src/components/Checkbox/context.js +0 -14
  158. package/src/components/Checkbox/index.js +0 -3
  159. package/src/components/CircleImage.js +0 -8
  160. package/src/components/CircularProgress.js +0 -81
  161. package/src/components/Config.js +0 -64
  162. package/src/components/Container.js +0 -43
  163. package/src/components/DatePicker/DatePicker.js +0 -377
  164. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  165. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  166. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  167. package/src/components/DeprecatedButton.js +0 -95
  168. package/src/components/DeprecatedCardWrapper.js +0 -18
  169. package/src/components/DeprecatedFAB.js +0 -115
  170. package/src/components/Divider.js +0 -13
  171. package/src/components/Elevation.js +0 -20
  172. package/src/components/FAB.js +0 -46
  173. package/src/components/FieldSearchBarFull.js +0 -53
  174. package/src/components/FormRow.js +0 -19
  175. package/src/components/Header.js +0 -44
  176. package/src/components/HeaderLarge.js +0 -7
  177. package/src/components/HeaderMedium.js +0 -7
  178. package/src/components/HeaderOverline.js +0 -7
  179. package/src/components/IconButton.js +0 -35
  180. package/src/components/Image.js +0 -47
  181. package/src/components/Justification.js +0 -1
  182. package/src/components/Layout.js +0 -50
  183. package/src/components/NumberInput.js +0 -49
  184. package/src/components/Picker/Picker.js +0 -267
  185. package/src/components/Picker/PickerComponent.android.js +0 -69
  186. package/src/components/Picker/PickerComponent.ios.js +0 -79
  187. package/src/components/Picker/PickerComponent.web.js +0 -70
  188. package/src/components/Picker/PickerTypes.js +0 -1
  189. package/src/components/Portal/Portal.js +0 -35
  190. package/src/components/Portal/PortalConsumer.js +0 -27
  191. package/src/components/Portal/PortalHost.js +0 -107
  192. package/src/components/Portal/PortalManager.js +0 -32
  193. package/src/components/ProgressBar.js +0 -118
  194. package/src/components/ProgressCircle.js +0 -13
  195. package/src/components/ProgressIndicator.js +0 -27
  196. package/src/components/RadioButton/RadioButton.js +0 -17
  197. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  198. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  199. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  200. package/src/components/RadioButton/context.js +0 -14
  201. package/src/components/RadioButton/index.js +0 -4
  202. package/src/components/ResizeMode.js +0 -1
  203. package/src/components/Row.js +0 -48
  204. package/src/components/RowBodyIcon.js +0 -8
  205. package/src/components/RowHeadlineImageCaption.js +0 -12
  206. package/src/components/RowHeadlineImageIcon.js +0 -14
  207. package/src/components/SVG.js +0 -13
  208. package/src/components/ScreenContainer.js +0 -34
  209. package/src/components/Slider.js +0 -63
  210. package/src/components/StarRating.js +0 -50
  211. package/src/components/StepIndicator.js +0 -346
  212. package/src/components/Stepper.js +0 -41
  213. package/src/components/Surface.js +0 -32
  214. package/src/components/Swiper/Swiper.js +0 -29
  215. package/src/components/Swiper/SwiperItem.js +0 -9
  216. package/src/components/Swiper/index.js +0 -2
  217. package/src/components/Switch.js +0 -56
  218. package/src/components/Text.js +0 -33
  219. package/src/components/TextField.js +0 -428
  220. package/src/components/ToggleButton.js +0 -39
  221. package/src/components/Touchable.js +0 -12
  222. package/src/components/Touchable.web.js +0 -2
  223. package/src/components/Typography.js +0 -36
  224. package/src/components/useAuthState.js +0 -31
  225. package/src/constants.js +0 -10
  226. package/src/hooks.js +0 -12
  227. package/src/index.js +0 -52
  228. package/src/interfaces/Icon.js +0 -8
  229. package/src/mappings/Accordion.js +0 -41
  230. package/src/mappings/AccordionItem.js +0 -16
  231. package/src/mappings/ActionSheet.js +0 -13
  232. package/src/mappings/ActionSheetCancel.js +0 -19
  233. package/src/mappings/ActionSheetItem.js +0 -23
  234. package/src/mappings/ActivityIndicator.js +0 -58
  235. package/src/mappings/AudioPlayer.js +0 -57
  236. package/src/mappings/AvatarEdit.js +0 -38
  237. package/src/mappings/Banner.js +0 -32
  238. package/src/mappings/BlurView.js +0 -42
  239. package/src/mappings/Button.js +0 -87
  240. package/src/mappings/Card.js +0 -52
  241. package/src/mappings/CardBlock.js +0 -123
  242. package/src/mappings/CardContainer.js +0 -104
  243. package/src/mappings/CardContainerRating.js +0 -126
  244. package/src/mappings/CardContainerShortImage.js +0 -120
  245. package/src/mappings/CardInline.js +0 -52
  246. package/src/mappings/Carousel.js +0 -19
  247. package/src/mappings/Checkbox.js +0 -46
  248. package/src/mappings/CheckboxGroup.js +0 -26
  249. package/src/mappings/CheckboxRow.js +0 -61
  250. package/src/mappings/CircleImage.js +0 -25
  251. package/src/mappings/Container.js +0 -30
  252. package/src/mappings/CustomCode.js +0 -8
  253. package/src/mappings/DatePicker.js +0 -176
  254. package/src/mappings/Divider.js +0 -27
  255. package/src/mappings/FAB.js +0 -37
  256. package/src/mappings/Fetch.js +0 -13
  257. package/src/mappings/FieldSearchBarFull.js +0 -50
  258. package/src/mappings/FlashList.js +0 -33
  259. package/src/mappings/FlatList.js +0 -24
  260. package/src/mappings/HeaderLarge.js +0 -29
  261. package/src/mappings/HeaderMedium.js +0 -55
  262. package/src/mappings/HeaderOverline.js +0 -55
  263. package/src/mappings/Icon.js +0 -32
  264. package/src/mappings/IconButton.js +0 -35
  265. package/src/mappings/Image.js +0 -35
  266. package/src/mappings/ImageBackground.js +0 -29
  267. package/src/mappings/KeyboardAvoidingView.js +0 -41
  268. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  269. package/src/mappings/Layout.js +0 -200
  270. package/src/mappings/LinearGradient.js +0 -77
  271. package/src/mappings/MapCallout.js +0 -21
  272. package/src/mappings/MapMarker.js +0 -47
  273. package/src/mappings/MapView.js +0 -139
  274. package/src/mappings/Modal.js +0 -42
  275. package/src/mappings/NumberInput.js +0 -254
  276. package/src/mappings/Picker.js +0 -148
  277. package/src/mappings/ProgressBar.js +0 -101
  278. package/src/mappings/ProgressCircle.js +0 -109
  279. package/src/mappings/ProgressIndicator.js +0 -181
  280. package/src/mappings/RadioButton.js +0 -51
  281. package/src/mappings/RadioButtonGroup.js +0 -17
  282. package/src/mappings/RadioButtonRow.js +0 -42
  283. package/src/mappings/RowBodyIcon.js +0 -75
  284. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  285. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  286. package/src/mappings/SVG.js +0 -20
  287. package/src/mappings/SafeAreaView.js +0 -33
  288. package/src/mappings/ScrollView.js +0 -31
  289. package/src/mappings/Slider.js +0 -60
  290. package/src/mappings/StarRating.js +0 -43
  291. package/src/mappings/Stepper.js +0 -32
  292. package/src/mappings/Surface.js +0 -14
  293. package/src/mappings/Swiper.js +0 -60
  294. package/src/mappings/SwiperItem.js +0 -8
  295. package/src/mappings/Switch.js +0 -81
  296. package/src/mappings/Text.js +0 -251
  297. package/src/mappings/TextArea.js +0 -274
  298. package/src/mappings/TextField.js +0 -391
  299. package/src/mappings/TextInput.js +0 -402
  300. package/src/mappings/ToggleButton.js +0 -50
  301. package/src/mappings/Touchable.js +0 -17
  302. package/src/mappings/Video.js +0 -81
  303. package/src/mappings/View.js +0 -207
  304. package/src/mappings/WebView.js +0 -88
  305. package/src/styles/DarkTheme.js +0 -26
  306. package/src/styles/DefaultTheme.js +0 -111
  307. package/src/styles/fonts.js +0 -62
  308. package/src/styles/overlay.js +0 -60
  309. package/src/styles/shadow.js +0 -51
  310. package/src/theming.js +0 -3
  311. package/src/utilities.js +0 -102
@@ -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 AvatarEdit = _ref => {
17
16
  let {
18
17
  Icon,
@@ -32,9 +31,10 @@ const AvatarEdit = _ref => {
32
31
  width: size,
33
32
  height: size
34
33
  };
35
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
36
- style: [style, dimensions]
37
- }, rest), /*#__PURE__*/React.createElement(_Touchable.default, {
34
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
35
+ style: [style, dimensions],
36
+ ...rest
37
+ }, /*#__PURE__*/React.createElement(_Touchable.default, {
38
38
  onPress: onPress
39
39
  }, /*#__PURE__*/React.createElement(_CircleImage.default, {
40
40
  source: image,
@@ -56,4 +56,15 @@ const AvatarEdit = _ref => {
56
56
  }))));
57
57
  };
58
58
  var _default = (0, _theming.withTheme)(AvatarEdit);
59
+ exports.default = _default;r: colorStyles.editBackgroundColor,
60
+ borderRadius: size * (3 / 16),
61
+ padding: size * (3 / 32)
62
+ }
63
+ }, /*#__PURE__*/React.createElement(Icon, {
64
+ name: "MaterialIcons/edit",
65
+ color: colorStyles.editIconColor,
66
+ size: size * (3 / 16)
67
+ }))));
68
+ };
69
+ var _default = (0, _theming.withTheme)(AvatarEdit);
59
70
  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
  });
@@ -11,7 +11,6 @@ var _Image = _interopRequireDefault(require("./Image"));
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 screenWidth = _reactNative.Dimensions.get("window").width;
16
15
  function Pager(_ref) {
17
16
  let {
@@ -39,7 +38,6 @@ function Pager(_ref) {
39
38
  }));
40
39
  }
41
40
  function Carousel(_ref2) {
42
- var _data$length;
43
41
  let {
44
42
  data,
45
43
  children,
@@ -47,9 +45,10 @@ function Carousel(_ref2) {
47
45
  style,
48
46
  ...rest
49
47
  } = _ref2;
48
+ var _a;
50
49
  const [index, setIndex] = React.useState(0);
51
50
  const length = React.Children.count(children);
52
- const itemsLength = ((_data$length = data === null || data === void 0 ? void 0 : data.length) !== null && _data$length !== void 0 ? _data$length : 0) + length;
51
+ const itemsLength = ((_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0) + length;
53
52
  const slides = Array.isArray(data) ? data : [];
54
53
  const {
55
54
  width,
@@ -57,9 +56,10 @@ function Carousel(_ref2) {
57
56
  } = _reactNative.StyleSheet.flatten(style || {});
58
57
  const slideWidth = width || screenWidth;
59
58
  const slideHeight = height || 250;
60
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
61
- style: [styles.container, style]
62
- }, rest), /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
59
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
60
+ style: [styles.container, style],
61
+ ...rest
62
+ }, /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
63
63
  pagingEnabled: true,
64
64
  horizontal: true,
65
65
  decelerationRate: "fast",
@@ -87,8 +87,8 @@ function Carousel(_ref2) {
87
87
  }]
88
88
  });
89
89
  }) : null, React.Children.map(children, child => {
90
- var _child$props;
91
- const s = (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.style) || {};
90
+ var _a;
91
+ const s = ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.style) || {};
92
92
  return /*#__PURE__*/React.createElement(_reactNative.View, {
93
93
  style: {
94
94
  width: slideWidth
@@ -127,4 +127,26 @@ const styles = _reactNative.StyleSheet.create({
127
127
  }
128
128
  });
129
129
  var _default = (0, _theming.withTheme)(Carousel);
130
+ exports.default = _default;ate({
131
+ container: {
132
+ backgroundColor: "#eee"
133
+ },
134
+ pager: {
135
+ position: "absolute",
136
+ bottom: 12,
137
+ left: 0,
138
+ right: 0,
139
+ flexDirection: "row",
140
+ justifyContent: "center",
141
+ alignItems: "center"
142
+ },
143
+ bullet: {
144
+ marginHorizontal: 2,
145
+ width: 10,
146
+ height: 10,
147
+ borderRadius: 20,
148
+ backgroundColor: "#000"
149
+ }
150
+ });
151
+ var _default = (0, _theming.withTheme)(Carousel);
130
152
  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
  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); }
@@ -60,7 +58,7 @@ const Checkbox = _ref => {
60
58
  onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
61
59
  }
62
60
  };
63
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({}, rest, {
61
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
64
62
  onPress: handlePress,
65
63
  disabled: disabled,
66
64
  accessibilityState: {
@@ -9,13 +9,11 @@ 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); }
16
15
  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; }
17
- 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); }
18
- let Direction;
16
+ var Direction;
19
17
  exports.Direction = Direction;
20
18
  (function (Direction) {
21
19
  Direction["Row"] = "row";
@@ -73,13 +71,14 @@ const CheckboxGroupRow = _ref => {
73
71
  textStyles,
74
72
  viewStyles
75
73
  } = (0, _utilities.extractStyles)(style);
76
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
74
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
77
75
  onPress: handlePress,
78
76
  style: [styles.mainParent, {
79
77
  flexDirection: direction
80
78
  }, viewStyles],
81
- disabled: disabled
82
- }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
79
+ disabled: disabled,
80
+ ...rest
81
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
83
82
  style: [styles.label, {
84
83
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
85
84
  }, labelContainerStyle]
@@ -118,4 +117,22 @@ const styles = _reactNative.StyleSheet.create({
118
117
  }
119
118
  });
120
119
  var _default = CheckboxGroupRow;
120
+ exports.default = _default;center",
121
+ justifyContent: "space-around",
122
+ paddingStart: 20,
123
+ minHeight: 50,
124
+ paddingEnd: 20,
125
+ display: "flex",
126
+ ..._reactNative.Platform.select({
127
+ web: {
128
+ cursor: "pointer",
129
+ userSelect: "none"
130
+ }
131
+ })
132
+ },
133
+ label: {
134
+ flex: 3
135
+ }
136
+ });
137
+ var _default = CheckboxGroupRow;
121
138
  exports.default = _default;
@@ -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,7 +16,6 @@ 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); }
20
19
  const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
21
20
  const FOCUS_ANIMATION_DURATION = 150;
22
21
  const BLUR_ANIMATION_DURATION = 180;
@@ -91,24 +90,20 @@ const DatePicker = _ref => {
91
90
  focused ? _handleBlur() : _handleFocus();
92
91
  };
93
92
  const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
94
-
95
93
  // const _restoreLabel = () =>
96
94
  // Animated.timing(labeled, {
97
95
  // toValue: 1,
98
96
  // duration: FOCUS_ANIMATION_DURATION,
99
97
  // useNativeDriver: true,
100
98
  // }).start();
101
-
102
99
  // const _minmizeLabel = () =>
103
100
  // Animated.timing(labeled, {
104
101
  // toValue: 0,
105
102
  // duration: BLUR_ANIMATION_DURATION,
106
103
  // useNativeDriver: true,
107
104
  // }).start();
108
-
109
105
  // const _showPlaceholder = () =>
110
106
  // setTimeout(() => setPlaceholder1(placeholder || ""), 50);
111
-
112
107
  const _hidePlaceholder = () => {
113
108
  setPlaceholder1("");
114
109
  };
@@ -251,9 +246,7 @@ const DatePicker = _ref => {
251
246
  const inputStyles = [styles.input, inputStyle, type === "solid" ? {
252
247
  marginHorizontal: 12
253
248
  } : {}];
254
-
255
249
  // const render = (props) => <NativeTextInput {...props} />;
256
-
257
250
  return /*#__PURE__*/React.createElement(_reactNative.View, {
258
251
  style: [styles.container, style]
259
252
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
@@ -263,9 +256,10 @@ const DatePicker = _ref => {
263
256
  pointerEvents: "none"
264
257
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
265
258
  style: [styles.container, style]
266
- }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
259
+ }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
260
+ ...leftIconProps,
267
261
  style: leftIconStyle
268
- })) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
262
+ }) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
269
263
  style: [containerStyle, style ? {
270
264
  height: style.height
271
265
  } : {}, viewStyles]
@@ -314,12 +308,13 @@ const DatePicker = _ref => {
314
308
  opacity: hasActiveOutline ? labeled : 1
315
309
  }],
316
310
  numberOfLines: 1
317
- }, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
311
+ }, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, {
312
+ ...leftIconProps,
318
313
  style: {
319
314
  ...leftIconStyle,
320
315
  marginLeft: type === "solid" ? 16 : 0
321
316
  }
322
- })) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, _extends({
317
+ }) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, {
323
318
  value: formatDate(),
324
319
  placeholder: label ? placeholder1 : placeholder,
325
320
  editable: !disabled,
@@ -328,8 +323,9 @@ const DatePicker = _ref => {
328
323
  onFocus: _handleFocus,
329
324
  onBlur: _handleBlur,
330
325
  underlineColorAndroid: "transparent",
331
- style: [inputStyles, textStyles]
332
- }, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
326
+ style: [inputStyles, textStyles],
327
+ ...props
328
+ })), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
333
329
  name: rightIconName,
334
330
  size: ICON_SIZE,
335
331
  color: colors.light,
@@ -401,4 +397,21 @@ const styles = _reactNative.StyleSheet.create({
401
397
  }
402
398
  });
403
399
  var _default = (0, _theming.withTheme)(DatePicker);
400
+ exports.default = _default; margin: 0,
401
+ textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
402
+ },
403
+ placeholder: {
404
+ position: "absolute",
405
+ left: 0
406
+ },
407
+ pickerContainer: {
408
+ flexDirection: "column",
409
+ width: "100%",
410
+ zIndex: 100
411
+ },
412
+ closeButton: {
413
+ alignSelf: "flex-end"
414
+ }
415
+ });
416
+ var _default = (0, _theming.withTheme)(DatePicker);
404
417
  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,