@draftbit/core 46.4.4-c96c31.2 → 46.4.4-ca1193.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 (438) hide show
  1. package/lib/commonjs/components/AnimatedCircularProgress.js +2 -12
  2. package/lib/commonjs/components/CardContainer.js +5 -15
  3. package/lib/commonjs/components/CardContainerRating.js +5 -15
  4. package/lib/commonjs/components/CardContainerShortImage.js +5 -17
  5. package/lib/commonjs/components/Carousel.js +2 -2
  6. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +6 -24
  7. package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -24
  8. package/lib/commonjs/components/CircularProgress.js +7 -15
  9. package/lib/commonjs/components/DatePicker/DatePicker.js +8 -18
  10. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -17
  11. package/lib/commonjs/components/Elevation.js +3 -15
  12. package/lib/commonjs/components/Picker/PickerComponent.android.js +5 -24
  13. package/lib/commonjs/components/Picker/PickerComponent.web.js +5 -24
  14. package/lib/commonjs/components/ProgressBar.js +7 -23
  15. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +6 -24
  16. package/lib/commonjs/components/ScreenContainer.js +5 -23
  17. package/lib/commonjs/components/StepIndicator.js +16 -34
  18. package/lib/commonjs/components/Stepper.js +1 -2
  19. package/lib/commonjs/components/Text.js +10 -40
  20. package/lib/commonjs/components/TextField.js +30 -63
  21. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  22. package/lib/commonjs/mappings/DatePicker.js +0 -13
  23. package/lib/commonjs/mappings/DatePickerInput.js +91 -0
  24. package/lib/commonjs/mappings/StarRating.js +2 -6
  25. package/lib/commonjs/mappings/TextArea.js +14 -3
  26. package/lib/commonjs/mappings/TextField.js +14 -4
  27. package/lib/commonjs/mappings/TextInput.js +14 -3
  28. package/lib/module/components/Accordion/AccordionItem.js +5 -26
  29. package/lib/module/components/Banner.js +4 -24
  30. package/lib/module/components/Button.js +11 -32
  31. package/lib/module/components/CardBlock.js +5 -15
  32. package/lib/module/components/Carousel.js +12 -36
  33. package/lib/module/components/Checkbox/CheckboxGroupRow.js +6 -24
  34. package/lib/module/components/Checkbox/CheckboxRow.js +6 -24
  35. package/lib/module/components/Checkbox/context.js +1 -1
  36. package/lib/module/components/CircularProgress.js +7 -15
  37. package/lib/module/components/DatePicker/DatePicker.js +16 -42
  38. package/lib/module/components/DeprecatedFAB.js +4 -22
  39. package/lib/module/components/Image.js +3 -18
  40. package/lib/module/components/Layout.js +21 -43
  41. package/lib/module/components/Picker/Picker.js +6 -13
  42. package/lib/module/components/Portal/PortalConsumer.js +8 -8
  43. package/lib/module/components/Portal/PortalHost.js +15 -26
  44. package/lib/module/components/RadioButton/RadioButton.js +2 -15
  45. package/lib/module/components/RadioButton/RadioButtonGroup.js +3 -17
  46. package/lib/module/components/RadioButton/RadioButtonRow.js +6 -24
  47. package/lib/module/components/RadioButton/context.js +1 -1
  48. package/lib/module/components/Stepper.js +1 -2
  49. package/lib/module/components/Surface.js +2 -16
  50. package/lib/module/components/Switch.js +10 -23
  51. package/lib/module/components/TextField.js +30 -62
  52. package/lib/module/mappings/AudioPlayer.js +33 -3
  53. package/lib/module/mappings/DatePicker.js +1 -14
  54. package/lib/module/mappings/DatePickerInput.js +82 -0
  55. package/lib/module/mappings/FieldSearchBarFull.js +1 -4
  56. package/lib/module/mappings/StarRating.js +2 -7
  57. package/lib/module/mappings/TextArea.js +15 -4
  58. package/lib/module/mappings/TextField.js +14 -4
  59. package/lib/module/mappings/TextInput.js +15 -4
  60. package/lib/typescript/src/Provider.d.ts +1 -0
  61. package/lib/typescript/src/Provider.d.ts.map +1 -0
  62. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  63. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  64. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  65. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  66. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  67. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  68. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  69. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  70. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  71. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  72. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  73. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  74. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  75. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  76. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  77. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  78. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  79. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  80. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  81. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  82. package/lib/typescript/src/components/Banner.d.ts +1 -0
  83. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  84. package/lib/typescript/src/components/Button.d.ts +1 -0
  85. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  86. package/lib/typescript/src/components/Card.d.ts +1 -0
  87. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  88. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  89. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  90. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  91. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  92. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  93. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  94. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  95. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  96. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  97. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  98. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  99. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  100. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  101. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  102. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  103. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  104. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  105. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  106. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  107. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  108. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  109. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  110. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  111. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  112. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  113. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  114. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  115. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  116. package/lib/typescript/src/components/Config.d.ts +1 -0
  117. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  118. package/lib/typescript/src/components/Container.d.ts +1 -0
  119. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -4
  121. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  122. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  123. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  124. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  125. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  126. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  127. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  128. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  129. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  130. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  131. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  132. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  133. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  134. package/lib/typescript/src/components/Divider.d.ts +1 -0
  135. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  136. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  137. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  138. package/lib/typescript/src/components/FAB.d.ts +1 -0
  139. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  140. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  141. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  142. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  143. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  144. package/lib/typescript/src/components/Header.d.ts +1 -0
  145. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  146. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  147. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  148. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  149. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  150. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  151. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  152. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  153. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  154. package/lib/typescript/src/components/Image.d.ts +1 -0
  155. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  156. package/lib/typescript/src/components/Justification.d.ts +1 -0
  157. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  158. package/lib/typescript/src/components/Layout.d.ts +1 -0
  159. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  160. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  161. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  162. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  163. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  164. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  165. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  166. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  167. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  168. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  169. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  170. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  171. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  172. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  173. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  174. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  175. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  176. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  177. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  178. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  179. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  180. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  181. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  182. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  183. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  184. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  185. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  188. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  189. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  190. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  191. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  192. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  193. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  194. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  195. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  196. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  197. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  198. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  199. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  200. package/lib/typescript/src/components/Row.d.ts +1 -0
  201. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  202. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  203. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  204. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  205. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  206. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  207. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  208. package/lib/typescript/src/components/SVG.d.ts +1 -0
  209. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  210. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  211. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  212. package/lib/typescript/src/components/Slider.d.ts +1 -0
  213. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  214. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  215. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  216. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  217. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  218. package/lib/typescript/src/components/Stepper.d.ts +1 -0
  219. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  220. package/lib/typescript/src/components/Surface.d.ts +1 -0
  221. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  222. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  223. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  224. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  225. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  226. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  227. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  228. package/lib/typescript/src/components/Switch.d.ts +1 -0
  229. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  230. package/lib/typescript/src/components/Text.d.ts +1 -0
  231. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  232. package/lib/typescript/src/components/TextField.d.ts +1 -0
  233. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  234. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  235. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  236. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  237. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  238. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  239. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  240. package/lib/typescript/src/components/Typography.d.ts +1 -0
  241. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  242. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  243. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  244. package/lib/typescript/src/constants.d.ts +1 -0
  245. package/lib/typescript/src/constants.d.ts.map +1 -0
  246. package/lib/typescript/src/hooks.d.ts +1 -0
  247. package/lib/typescript/src/hooks.d.ts.map +1 -0
  248. package/lib/typescript/src/index.d.ts +1 -0
  249. package/lib/typescript/src/index.d.ts.map +1 -0
  250. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  251. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  252. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  253. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  254. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  255. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  256. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  257. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  258. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  259. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  260. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  261. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  262. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  263. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  264. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  265. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  266. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  267. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  268. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  269. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  270. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  271. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  272. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  273. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  274. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  275. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  276. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  277. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  278. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  279. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  280. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  281. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  282. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  283. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  284. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  285. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  286. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  287. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  288. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  289. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  290. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  291. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  292. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  293. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  294. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  295. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  296. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  297. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  298. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  299. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  300. package/lib/typescript/src/mappings/DatePicker.d.ts +1 -42
  301. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  302. package/lib/typescript/src/mappings/DatePickerInput.d.ts +87 -0
  303. package/lib/typescript/src/mappings/DatePickerInput.d.ts.map +1 -0
  304. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  305. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  306. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  307. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  308. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  309. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  310. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  311. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  312. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  313. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  314. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  315. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  316. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  317. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  318. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  319. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  320. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  321. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  322. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  323. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  324. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  325. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  326. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  327. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  328. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  329. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  330. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  331. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  332. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  333. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  334. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  335. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  336. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  337. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  338. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  339. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  340. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  341. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  342. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  343. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  344. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  345. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  346. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  347. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  348. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  349. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  350. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  351. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  352. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  353. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  354. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  355. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  356. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  357. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  358. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  359. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  360. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  361. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  362. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  363. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  364. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  365. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  366. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  367. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  368. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  369. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  370. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  371. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  372. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  373. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  374. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  375. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  376. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  377. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  378. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  379. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  380. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  381. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  382. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  383. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  384. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  385. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  386. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  387. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  388. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  389. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  390. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  391. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  392. package/lib/typescript/src/mappings/TextField.d.ts +23 -2
  393. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  394. package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
  395. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  396. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  397. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  398. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  399. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  400. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  401. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  402. package/lib/typescript/src/mappings/View.d.ts +1 -0
  403. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  404. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  405. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  406. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  407. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  408. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  409. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  410. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  411. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  412. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  413. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  414. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  415. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  416. package/lib/typescript/src/theming.d.ts +1 -0
  417. package/lib/typescript/src/theming.d.ts.map +1 -0
  418. package/lib/typescript/src/utilities.d.ts +1 -0
  419. package/lib/typescript/src/utilities.d.ts.map +1 -0
  420. package/package.json +15 -5
  421. package/src/components/Carousel.js +2 -2
  422. package/src/components/Carousel.tsx +2 -2
  423. package/src/components/DatePicker/DatePicker.js +8 -14
  424. package/src/components/DatePicker/DatePicker.tsx +7 -23
  425. package/src/components/Stepper.js +0 -1
  426. package/src/components/Stepper.tsx +1 -1
  427. package/src/mappings/AudioPlayer.js +39 -2
  428. package/src/mappings/AudioPlayer.ts +41 -1
  429. package/src/mappings/DatePicker.js +1 -21
  430. package/src/mappings/DatePicker.ts +0 -23
  431. package/src/mappings/DatePickerInput.js +93 -0
  432. package/src/mappings/DatePickerInput.ts +104 -0
  433. package/src/mappings/TextArea.js +15 -4
  434. package/src/mappings/TextArea.ts +15 -3
  435. package/src/mappings/TextField.js +14 -4
  436. package/src/mappings/TextField.ts +14 -4
  437. package/src/mappings/TextInput.js +15 -4
  438. package/src/mappings/TextInput.ts +15 -3
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+
8
+ var _types = require("@draftbit/types");
9
+
10
+ const SEED_DATA_PROPS = {
11
+ locale: {
12
+ label: "Locale",
13
+ description: "Locale for the datepicker. Must be a valid Locale",
14
+ formType: _types.FORM_TYPES.string,
15
+ propType: _types.PROP_TYPES.STRING,
16
+ defaultValue: "en",
17
+ editable: true,
18
+ required: false,
19
+ group: _types.GROUPS.basic
20
+ },
21
+ label: {
22
+ label: "Label",
23
+ description: "The label to be displayed on the picker",
24
+ formType: _types.FORM_TYPES.string,
25
+ propType: _types.PROP_TYPES.STRING,
26
+ defaultValue: "Date",
27
+ editable: true,
28
+ required: true,
29
+ group: _types.GROUPS.data
30
+ },
31
+ calendarIcon: {
32
+ label: "Icon",
33
+ description: "The icon to display on the right",
34
+ formType: _types.FORM_TYPES.icon,
35
+ propType: _types.PROP_TYPES.STRING,
36
+ defaultValue: "calendar",
37
+ editable: true,
38
+ required: false,
39
+ group: _types.GROUPS.basic
40
+ },
41
+ mode: {
42
+ label: "Mode",
43
+ description: "Choose between date, time and datetime",
44
+ defaultValue: "date",
45
+ editable: true,
46
+ required: true,
47
+ formType: _types.FORM_TYPES.flatArray,
48
+ propType: _types.PROP_TYPES.STRING,
49
+ options: ["date", "time", "datetime"],
50
+ group: _types.GROUPS.basic
51
+ },
52
+ disabled: {
53
+ label: "Disabled",
54
+ description: "Whether the picker should be disabled. Will prevent selection and show a greyed out state.",
55
+ formType: _types.FORM_TYPES.boolean,
56
+ propType: _types.PROP_TYPES.BOOLEAN,
57
+ defaultValue: false,
58
+ editable: true,
59
+ required: false,
60
+ group: _types.GROUPS.data
61
+ },
62
+ fieldName: { ..._types.FIELD_NAME,
63
+ handlerPropName: "onDateChange",
64
+ valuePropName: "date",
65
+ defaultValue: "date"
66
+ }
67
+ };
68
+ const SEED_DATA = [{
69
+ name: "Date Picker",
70
+ tag: "DatePickerInput",
71
+ packageName: "react-native-paper-dates",
72
+ description: "A component used to select a date from a visual calendar",
73
+ category: _types.COMPONENT_TYPES.input,
74
+ layout: null,
75
+ triggers: [_types.Triggers.OnDateChange],
76
+ StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Size],
77
+ props: { ...SEED_DATA_PROPS,
78
+ type: {
79
+ label: "Appearance",
80
+ description: "Type of Datepicker",
81
+ formType: _types.FORM_TYPES.flatArray,
82
+ propType: _types.PROP_TYPES.STRING,
83
+ defaultValue: "solid",
84
+ options: ["solid", "underline"],
85
+ editable: true,
86
+ required: true,
87
+ group: _types.GROUPS.basic
88
+ }
89
+ }
90
+ }];
91
+ exports.SEED_DATA = SEED_DATA;
@@ -25,7 +25,9 @@ const SEED_DATA = {
25
25
  }),
26
26
  fieldName: (0, _types.createFieldNameProp)({
27
27
  defaultValue: "ratingValue",
28
+ // this is the name of the variable declared on the screen in Draftbit
28
29
  handlerPropName: "onPress",
30
+ // the change handler prop in this component
29
31
  valuePropName: "rating" // the value prop in this component
30
32
 
31
33
  }),
@@ -50,10 +52,4 @@ const SEED_DATA = {
50
52
  })
51
53
  }
52
54
  };
53
- exports.SEED_DATA = SEED_DATA;pes.createColorProp)({
54
- label: "Inactive Color",
55
- defaultValue: "divider"
56
- })
57
- }
58
- };
59
55
  exports.SEED_DATA = SEED_DATA;
@@ -67,6 +67,17 @@ const SEED_DATA = {
67
67
  formType: _types.FORM_TYPES.boolean,
68
68
  propType: _types.PROP_TYPES.BOOLEAN
69
69
  },
70
+ blurOnSubmit: {
71
+ group: _types.GROUPS.advanced,
72
+ label: "Blur On Submit",
73
+ description: "If true, the text field will blur when submitted. ",
74
+ editable: true,
75
+ required: false,
76
+ defaultValue: null,
77
+ formType: _types.FORM_TYPES.boolean,
78
+ propType: _types.PROP_TYPES.BOOLEAN
79
+ },
80
+ disabled: (0, _types.createDisabledProp)(),
70
81
  caretHidden: {
71
82
  group: _types.GROUPS.advanced,
72
83
  label: "Hide Caret",
@@ -88,12 +99,12 @@ const SEED_DATA = {
88
99
  propType: _types.PROP_TYPES.BOOLEAN
89
100
  },
90
101
  editable: {
91
- group: _types.GROUPS.advanced,
92
- label: "Editable",
102
+ group: _types.GROUPS.data,
103
+ label: "Editable?",
93
104
  description: "If false, the text is not editable",
94
105
  editable: true,
95
106
  required: false,
96
- defaultValue: true,
107
+ defaultValue: null,
97
108
  formType: _types.FORM_TYPES.boolean,
98
109
  propType: _types.PROP_TYPES.BOOLEAN
99
110
  },
@@ -70,7 +70,7 @@ const SEED_DATA_PROPS = {
70
70
  propType: _types.PROP_TYPES.BOOLEAN
71
71
  },
72
72
  disabled: {
73
- group: _types.GROUPS.basic,
73
+ group: _types.GROUPS.data,
74
74
  label: "Disabled",
75
75
  description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
76
76
  formType: _types.FORM_TYPES.boolean,
@@ -80,12 +80,22 @@ const SEED_DATA_PROPS = {
80
80
  required: false
81
81
  },
82
82
  editable: {
83
- group: _types.GROUPS.advanced,
84
- label: "Editable",
83
+ group: _types.GROUPS.data,
84
+ label: "Editable?",
85
85
  description: "If false, the text is not editable",
86
86
  editable: true,
87
87
  required: false,
88
- defaultValue: true,
88
+ defaultValue: null,
89
+ formType: _types.FORM_TYPES.boolean,
90
+ propType: _types.PROP_TYPES.BOOLEAN
91
+ },
92
+ blurOnSubmit: {
93
+ group: _types.GROUPS.advanced,
94
+ label: "Blur On Submit",
95
+ description: "If true, the text field will blur when submitted. ",
96
+ editable: true,
97
+ required: false,
98
+ defaultValue: null,
89
99
  formType: _types.FORM_TYPES.boolean,
90
100
  propType: _types.PROP_TYPES.BOOLEAN
91
101
  },
@@ -149,12 +149,12 @@ const SEED_DATA = [{
149
149
  propType: _types.PROP_TYPES.BOOLEAN
150
150
  },
151
151
  editable: {
152
- group: _types.GROUPS.advanced,
153
- label: "Editable",
152
+ group: _types.GROUPS.data,
153
+ label: "Editable?",
154
154
  description: "If false, the text is not editable",
155
155
  editable: true,
156
156
  required: false,
157
- defaultValue: true,
157
+ defaultValue: null,
158
158
  formType: _types.FORM_TYPES.boolean,
159
159
  propType: _types.PROP_TYPES.BOOLEAN
160
160
  },
@@ -223,6 +223,16 @@ const SEED_DATA = [{
223
223
  formType: _types.FORM_TYPES.string,
224
224
  propType: _types.PROP_TYPES.STRING
225
225
  },
226
+ blurOnSubmit: {
227
+ group: _types.GROUPS.advanced,
228
+ label: "Blur On Submit",
229
+ description: "If true, the text field will blur when submitted. ",
230
+ editable: true,
231
+ required: false,
232
+ defaultValue: null,
233
+ formType: _types.FORM_TYPES.boolean,
234
+ propType: _types.PROP_TYPES.BOOLEAN
235
+ },
226
236
  returnKeyType: {
227
237
  group: _types.GROUPS.advanced,
228
238
  label: "Return Key Type",
@@ -288,6 +298,7 @@ const SEED_DATA = [{
288
298
  formType: _types.FORM_TYPES.number,
289
299
  propType: _types.PROP_TYPES.NUMBER
290
300
  },
301
+ disabled: (0, _types.createDisabledProp)(),
291
302
  scrollEnabled: {
292
303
  group: _types.GROUPS.basic,
293
304
  label: "Scroll Enabled",
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { Pressable, StyleSheet, View } from "react-native";
3
5
  import Text from "../Text";
@@ -18,10 +20,9 @@ const AccordionItem = _ref => {
18
20
  textStyles,
19
21
  viewStyles
20
22
  } = extractStyles(style);
21
- return /*#__PURE__*/React.createElement(Pressable, {
22
- style: [styles.container, viewStyles],
23
- ...rest
24
- }, /*#__PURE__*/React.createElement(View, {
23
+ return /*#__PURE__*/React.createElement(Pressable, _extends({
24
+ style: [styles.container, viewStyles]
25
+ }, rest), /*#__PURE__*/React.createElement(View, {
25
26
  style: styles.row
26
27
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
27
28
  name: icon,
@@ -35,28 +36,6 @@ const AccordionItem = _ref => {
35
36
  }, label))));
36
37
  };
37
38
 
38
- const styles = StyleSheet.create({
39
- container: {
40
- padding: 8
41
- },
42
- row: {
43
- flexDirection: "row",
44
- alignItems: "center",
45
- paddingLeft: 8
46
- },
47
- item: {
48
- marginVertical: 6,
49
- paddingLeft: 8
50
- },
51
- content: {
52
- flex: 1,
53
- justifyContent: "center"
54
- }
55
- });
56
- export default withTheme(AccordionItem);xtStyles
57
- }, label))));
58
- };
59
-
60
39
  const styles = StyleSheet.create({
61
40
  container: {
62
41
  padding: 8
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { Button, Text, View, StyleSheet, Animated } from "react-native";
3
5
  import Surface from "./Surface";
@@ -72,9 +74,9 @@ const Banner = _ref => {
72
74
 
73
75
  const height = Animated.multiply(position, layout.height);
74
76
  const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
75
- return /*#__PURE__*/React.createElement(Surface, { ...rest,
77
+ return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
76
78
  style: [styles.container, shadow(ELEVATION), style]
77
- }, /*#__PURE__*/React.createElement(View, {
79
+ }), /*#__PURE__*/React.createElement(View, {
78
80
  style: [styles.wrapper, contentStyle]
79
81
  }, /*#__PURE__*/React.createElement(Animated.View, {
80
82
  style: {
@@ -153,26 +155,4 @@ const styles = StyleSheet.create({
153
155
  margin: 8
154
156
  }
155
157
  });
156
- export default withTheme(Banner);00%"
157
- },
158
- content: {
159
- flexDirection: "row",
160
- justifyContent: "flex-start",
161
- marginHorizontal: 8,
162
- marginTop: 16,
163
- marginBottom: 0
164
- },
165
- icon: {
166
- margin: 8
167
- },
168
- message: {
169
- flex: 1,
170
- margin: 8
171
- },
172
- actions: {
173
- flexDirection: "row",
174
- justifyContent: "flex-end",
175
- margin: 8
176
- }
177
- });
178
158
  export default withTheme(Banner);
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { Text, Pressable, Platform, StyleSheet, ActivityIndicator } from "react-native";
3
5
  import { withTheme } from "../theming";
@@ -55,7 +57,7 @@ function Base(_ref) {
55
57
  buttonStyles.justifyContent = "flex-end";
56
58
  }
57
59
 
58
- return /*#__PURE__*/React.createElement(Pressable, {
60
+ return /*#__PURE__*/React.createElement(Pressable, _extends({
59
61
  onPress: onPress,
60
62
  disabled: disabled || loading,
61
63
  style: _ref2 => {
@@ -65,9 +67,8 @@ function Base(_ref) {
65
67
  return [styles.base, {
66
68
  opacity: pressed || disabled ? 0.75 : 1
67
69
  }, buttonStyles];
68
- },
69
- ...props
70
- }, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
70
+ }
71
+ }, props), loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
71
72
  size: "small",
72
73
  color: color,
73
74
  style: styles.loading
@@ -87,14 +88,13 @@ const Solid = _ref3 => {
87
88
  theme,
88
89
  ...props
89
90
  } = _ref3;
90
- return /*#__PURE__*/React.createElement(Base, {
91
+ return /*#__PURE__*/React.createElement(Base, _extends({
91
92
  style: [{
92
93
  color: "#FFF",
93
94
  borderRadius: theme.roundness,
94
95
  backgroundColor: theme.colors.primary
95
- }, style],
96
- ...props
97
- });
96
+ }, style]
97
+ }, props));
98
98
  };
99
99
 
100
100
  const ButtonSolid = withTheme(Solid);
@@ -108,14 +108,13 @@ const Outline = _ref4 => {
108
108
  theme,
109
109
  ...props
110
110
  } = _ref4;
111
- return /*#__PURE__*/React.createElement(Base, {
111
+ return /*#__PURE__*/React.createElement(Base, _extends({
112
112
  style: [styles.outline, {
113
113
  borderRadius: theme.roundness,
114
114
  borderColor: theme.colors.primary,
115
115
  color: theme.colors.primary
116
- }, style],
117
- ...props
118
- });
116
+ }, style]
117
+ }, props));
119
118
  };
120
119
 
121
120
  const ButtonOutline = withTheme(Outline);
@@ -162,24 +161,4 @@ const styles = StyleSheet.create({
162
161
  }
163
162
  })
164
163
  }
165
- });ndColor: "transparent",
166
- padding: 0,
167
- minHeight: undefined
168
- },
169
- loading: {
170
- marginRight: 6
171
- },
172
- icon: { ...Platform.select({
173
- web: {
174
- marginTop: 1,
175
- marginRight: 4,
176
- alignSelf: "center"
177
- },
178
- default: {
179
- marginBottom: 2,
180
- marginRight: 4,
181
- alignSelf: "center"
182
- }
183
- })
184
- }
185
164
  });
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import React from "react";
2
4
  import { View, Text } from "react-native";
3
5
  import Image from "./Image";
@@ -45,12 +47,11 @@ const CardBlock = _ref => {
45
47
  const rightDescriptionStyles = [typography.subtitle2, {
46
48
  color: colors.light
47
49
  }];
48
- return /*#__PURE__*/React.createElement(Card, {
50
+ return /*#__PURE__*/React.createElement(Card, _extends({
49
51
  style: style,
50
52
  onPress: onPress,
51
- numColumns: numColumns,
52
- ...rest
53
- }, /*#__PURE__*/React.createElement(View, {
53
+ numColumns: numColumns
54
+ }, rest), /*#__PURE__*/React.createElement(View, {
54
55
  style: {
55
56
  backgroundColor: colors.background
56
57
  }
@@ -100,15 +101,4 @@ const CardBlock = _ref => {
100
101
  }, rightDescription) : null) : null));
101
102
  };
102
103
 
103
- export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
104
- numberOfLines: 1,
105
- style: [typography.body2, {
106
- color: colors.medium
107
- }]
108
- }, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
109
- numberOfLines: 1,
110
- style: rightDescriptionStyles
111
- }, rightDescription) : null) : null));
112
- };
113
-
114
104
  export default withTheme(CardBlock);
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { withTheme } from "../theming";
3
5
  import { ScrollView, View, StyleSheet, Dimensions } from "react-native";
@@ -31,6 +33,8 @@ function Pager(_ref) {
31
33
  }
32
34
 
33
35
  function Carousel(_ref2) {
36
+ var _data$length;
37
+
34
38
  let {
35
39
  data,
36
40
  children,
@@ -38,12 +42,9 @@ function Carousel(_ref2) {
38
42
  style,
39
43
  ...rest
40
44
  } = _ref2;
41
-
42
- var _a;
43
-
44
45
  const [index, setIndex] = React.useState(0);
45
46
  const length = React.Children.count(children);
46
- const itemsLength = ((_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0) + length;
47
+ const itemsLength = ((_data$length = data === null || data === void 0 ? void 0 : data.length) !== null && _data$length !== void 0 ? _data$length : 0) + length;
47
48
  const slides = Array.isArray(data) ? data : [];
48
49
  const {
49
50
  width,
@@ -51,10 +52,9 @@ function Carousel(_ref2) {
51
52
  } = StyleSheet.flatten(style || {});
52
53
  const slideWidth = width || screenWidth;
53
54
  const slideHeight = height || 250;
54
- return /*#__PURE__*/React.createElement(View, {
55
- style: [styles.container, style],
56
- ...rest
57
- }, /*#__PURE__*/React.createElement(ScrollView, {
55
+ return /*#__PURE__*/React.createElement(View, _extends({
56
+ style: [styles.container, style]
57
+ }, rest), /*#__PURE__*/React.createElement(ScrollView, {
58
58
  pagingEnabled: true,
59
59
  horizontal: true,
60
60
  decelerationRate: "fast",
@@ -82,9 +82,9 @@ function Carousel(_ref2) {
82
82
  }]
83
83
  });
84
84
  }) : null, React.Children.map(children, child => {
85
- var _a;
85
+ var _child$props;
86
86
 
87
- const s = ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.style) || {};
87
+ const s = (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.style) || {};
88
88
  return /*#__PURE__*/React.createElement(View, {
89
89
  style: {
90
90
  width: slideWidth
@@ -103,31 +103,7 @@ function Carousel(_ref2) {
103
103
 
104
104
  const styles = StyleSheet.create({
105
105
  container: {
106
- backgroundColor: "#eeeeee"
107
- },
108
- pager: {
109
- position: "absolute",
110
- bottom: 12,
111
- left: 0,
112
- right: 0,
113
- flexDirection: "row",
114
- justifyContent: "center",
115
- alignItems: "center"
116
- },
117
- bullet: {
118
- marginHorizontal: 2,
119
- width: 10,
120
- height: 10,
121
- borderRadius: 20,
122
- backgroundColor: "#000000"
123
- }
124
- });
125
- export default withTheme(Carousel);));
126
- }
127
-
128
- const styles = StyleSheet.create({
129
- container: {
130
- backgroundColor: "#eeeeee"
106
+ backgroundColor: "#eee"
131
107
  },
132
108
  pager: {
133
109
  position: "absolute",
@@ -143,7 +119,7 @@ const styles = StyleSheet.create({
143
119
  width: 10,
144
120
  height: 10,
145
121
  borderRadius: 20,
146
- backgroundColor: "#000000"
122
+ backgroundColor: "#000"
147
123
  }
148
124
  });
149
125
  export default withTheme(Carousel);
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { StyleSheet, View, Platform } from "react-native";
3
5
  import Checkbox from "./Checkbox";
@@ -6,7 +8,7 @@ import { useCheckboxGroupContext } from "./context";
6
8
  import { Direction as GroupDirection } from "./context";
7
9
  import Touchable from "../Touchable";
8
10
  import { extractStyles } from "../../utilities";
9
- export var Direction;
11
+ export let Direction;
10
12
 
11
13
  (function (Direction) {
12
14
  Direction["Row"] = "row";
@@ -69,14 +71,13 @@ const CheckboxGroupRow = _ref => {
69
71
  textStyles,
70
72
  viewStyles
71
73
  } = extractStyles(style);
72
- return /*#__PURE__*/React.createElement(Touchable, {
74
+ return /*#__PURE__*/React.createElement(Touchable, _extends({
73
75
  onPress: handlePress,
74
76
  style: [styles.mainParent, {
75
77
  flexDirection: direction
76
78
  }, viewStyles],
77
- disabled: disabled,
78
- ...rest
79
- }, /*#__PURE__*/React.createElement(View, {
79
+ disabled: disabled
80
+ }, rest), /*#__PURE__*/React.createElement(View, {
80
81
  style: [styles.label, {
81
82
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
82
83
  }, labelContainerStyle]
@@ -115,23 +116,4 @@ const styles = StyleSheet.create({
115
116
  flex: 3
116
117
  }
117
118
  });
118
- export default CheckboxGroupRow;create({
119
- mainParent: {
120
- alignItems: "center",
121
- justifyContent: "space-around",
122
- paddingStart: 20,
123
- minHeight: 50,
124
- paddingEnd: 20,
125
- display: "flex",
126
- ...Platform.select({
127
- web: {
128
- cursor: "pointer",
129
- userSelect: "none"
130
- }
131
- })
132
- },
133
- label: {
134
- flex: 3
135
- }
136
- });
137
119
  export default CheckboxGroupRow;
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { StyleSheet, View, Platform } from "react-native";
3
5
  import { isString } from "lodash";
@@ -6,7 +8,7 @@ import { usePrevious } from "../../hooks";
6
8
  import Text from "../Text";
7
9
  import Touchable from "../Touchable";
8
10
  import Checkbox from "./Checkbox";
9
- export var Direction;
11
+ export let Direction;
10
12
 
11
13
  (function (Direction) {
12
14
  Direction["Row"] = "row";
@@ -78,14 +80,13 @@ const CheckboxRow = _ref => {
78
80
  textStyles,
79
81
  viewStyles
80
82
  } = extractStyles(style);
81
- return /*#__PURE__*/React.createElement(Touchable, {
83
+ return /*#__PURE__*/React.createElement(Touchable, _extends({
82
84
  onPress: handlePress,
83
85
  style: [viewStyles, styles.mainParent, {
84
86
  flexDirection: direction
85
87
  }],
86
- disabled: disabled,
87
- ...rest
88
- }, /*#__PURE__*/React.createElement(View, {
88
+ disabled: disabled
89
+ }, rest), /*#__PURE__*/React.createElement(View, {
89
90
  style: [styles.label, {
90
91
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
91
92
  }, labelContainerStyle]
@@ -122,23 +123,4 @@ const styles = StyleSheet.create({
122
123
  flex: 3
123
124
  }
124
125
  });
125
- export default CheckboxRow;heet.create({
126
- mainParent: {
127
- alignItems: "center",
128
- justifyContent: "space-around",
129
- paddingStart: 20,
130
- minHeight: 50,
131
- paddingEnd: 20,
132
- display: "flex",
133
- ...Platform.select({
134
- web: {
135
- cursor: "pointer",
136
- userSelect: "none"
137
- }
138
- })
139
- },
140
- label: {
141
- flex: 3
142
- }
143
- });
144
126
  export default CheckboxRow;
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from "react";
2
- export var Direction;
2
+ export let Direction;
3
3
 
4
4
  (function (Direction) {
5
5
  Direction["Horizontal"] = "horizontal";