@draftbit/core 46.4.4-fe82de.2 → 46.5.1-c6140a.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 (430) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/AnimatedCircularProgress.js +1 -12
  3. package/lib/commonjs/components/AspectRatio.js +1 -17
  4. package/lib/commonjs/components/Button.js +33 -10
  5. package/lib/commonjs/components/Carousel.js +2 -1
  6. package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
  7. package/lib/commonjs/components/CircleImage.js +15 -1
  8. package/lib/commonjs/components/CircularProgress.js +26 -8
  9. package/lib/commonjs/components/Config.js +3 -3
  10. package/lib/commonjs/components/Container.js +15 -4
  11. package/lib/commonjs/components/DatePicker/DatePicker.js +10 -9
  12. package/lib/commonjs/components/Elevation.js +14 -2
  13. package/lib/commonjs/components/Picker/Picker.js +8 -8
  14. package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
  15. package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
  16. package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
  17. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  18. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  19. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  20. package/lib/commonjs/components/StepIndicator.js +1 -1
  21. package/lib/commonjs/components/Stepper.js +8 -5
  22. package/lib/commonjs/hooks.js +1 -2
  23. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  24. package/lib/commonjs/mappings/DatePicker.js +12 -12
  25. package/lib/commonjs/mappings/Stepper.js +1 -1
  26. package/lib/commonjs/mappings/TextArea.js +14 -3
  27. package/lib/commonjs/mappings/TextField.js +14 -4
  28. package/lib/commonjs/mappings/TextInput.js +14 -3
  29. package/lib/commonjs/utilities.js +1 -1
  30. package/lib/module/components/CardBlock.js +14 -4
  31. package/lib/module/components/CardContainer.js +14 -4
  32. package/lib/module/components/Carousel.js +6 -1
  33. package/lib/module/components/Config.js +3 -3
  34. package/lib/module/components/DatePicker/DatePicker.js +10 -9
  35. package/lib/module/components/FieldSearchBarFull.js +1 -2
  36. package/lib/module/components/FormRow.js +17 -2
  37. package/lib/module/components/IconButton.js +21 -4
  38. package/lib/module/components/Image.js +18 -2
  39. package/lib/module/components/Picker/Picker.js +5 -5
  40. package/lib/module/components/Picker/PickerComponent.android.js +2 -2
  41. package/lib/module/components/Picker/PickerComponent.ios.js +2 -2
  42. package/lib/module/components/Picker/PickerComponent.web.js +2 -2
  43. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  44. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  45. package/lib/module/components/StepIndicator.js +1 -1
  46. package/lib/module/components/Stepper.js +8 -7
  47. package/lib/module/mappings/AudioPlayer.js +33 -3
  48. package/lib/module/mappings/DatePicker.js +12 -12
  49. package/lib/module/mappings/Stepper.js +2 -2
  50. package/lib/module/mappings/TextArea.js +15 -4
  51. package/lib/module/mappings/TextField.js +14 -4
  52. package/lib/module/mappings/TextInput.js +15 -4
  53. package/lib/module/utilities.js +1 -1
  54. package/lib/typescript/src/Provider.d.ts +1 -0
  55. package/lib/typescript/src/Provider.d.ts.map +1 -0
  56. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  57. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  58. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  59. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  60. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  61. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  62. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  63. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  64. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  65. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  66. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  67. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  68. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  69. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  70. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  71. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  72. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  73. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  74. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  75. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  76. package/lib/typescript/src/components/Banner.d.ts +1 -0
  77. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  78. package/lib/typescript/src/components/Button.d.ts +1 -0
  79. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  80. package/lib/typescript/src/components/Card.d.ts +1 -0
  81. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  82. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  83. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  84. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  85. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  86. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  87. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  88. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  89. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  90. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  91. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  92. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  93. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  94. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  95. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  96. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  97. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  98. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  99. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  100. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  101. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  102. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  103. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  104. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  105. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  106. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  107. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  108. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  109. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  110. package/lib/typescript/src/components/Config.d.ts +1 -0
  111. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  112. package/lib/typescript/src/components/Container.d.ts +1 -0
  113. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  114. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +4 -3
  115. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  116. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  117. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  118. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  119. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  121. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  122. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  123. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  124. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  125. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  126. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  127. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  128. package/lib/typescript/src/components/Divider.d.ts +1 -0
  129. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  130. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  131. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  132. package/lib/typescript/src/components/FAB.d.ts +1 -0
  133. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  134. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  135. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  136. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  137. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  138. package/lib/typescript/src/components/Header.d.ts +1 -0
  139. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  140. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  141. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  142. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  143. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  144. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  145. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  146. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  147. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  148. package/lib/typescript/src/components/Image.d.ts +1 -0
  149. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  150. package/lib/typescript/src/components/Justification.d.ts +1 -0
  151. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  152. package/lib/typescript/src/components/Layout.d.ts +1 -0
  153. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  154. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  155. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  156. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  157. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  158. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  159. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  160. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  161. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  162. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  163. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  164. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  165. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  166. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  167. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  168. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  169. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  170. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  171. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  172. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  173. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  174. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  175. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  176. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  177. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  178. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  179. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  180. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  181. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  182. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  183. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  184. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  185. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  188. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  189. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  190. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  191. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  192. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  193. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  194. package/lib/typescript/src/components/Row.d.ts +1 -0
  195. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  196. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  197. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  198. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  199. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  200. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  201. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  202. package/lib/typescript/src/components/SVG.d.ts +1 -0
  203. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  204. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  205. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  206. package/lib/typescript/src/components/Slider.d.ts +1 -0
  207. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  208. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  209. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  210. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  211. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  212. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  213. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  214. package/lib/typescript/src/components/Surface.d.ts +1 -0
  215. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  216. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  217. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  218. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  219. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  220. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  221. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  222. package/lib/typescript/src/components/Switch.d.ts +1 -0
  223. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  224. package/lib/typescript/src/components/Text.d.ts +1 -0
  225. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  226. package/lib/typescript/src/components/TextField.d.ts +1 -0
  227. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  228. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  229. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  230. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  231. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  232. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  233. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  234. package/lib/typescript/src/components/Typography.d.ts +1 -0
  235. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  236. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  237. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  238. package/lib/typescript/src/constants.d.ts +1 -0
  239. package/lib/typescript/src/constants.d.ts.map +1 -0
  240. package/lib/typescript/src/hooks.d.ts +1 -0
  241. package/lib/typescript/src/hooks.d.ts.map +1 -0
  242. package/lib/typescript/src/index.d.ts +1 -0
  243. package/lib/typescript/src/index.d.ts.map +1 -0
  244. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  245. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  246. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  247. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  248. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  249. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  250. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  251. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  252. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  253. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  254. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  255. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  256. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  257. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  258. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  259. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  260. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  261. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  262. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  263. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  264. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  265. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  266. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  267. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  268. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  269. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  270. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  271. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  272. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  273. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  274. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  275. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  276. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  277. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  278. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  279. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  280. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  281. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  282. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  283. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  284. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  285. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  286. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  287. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  288. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  289. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  290. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  291. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  292. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  293. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  294. package/lib/typescript/src/mappings/DatePicker.d.ts +12 -11
  295. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  296. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  297. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  298. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  299. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  300. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  301. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  302. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  303. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  304. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  305. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  306. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  307. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  308. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  309. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  310. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  311. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  312. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  313. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  314. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  315. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  316. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  317. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  318. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  319. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  320. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  321. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  322. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  323. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  324. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  325. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  326. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  327. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  328. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  329. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  330. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  331. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  332. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  333. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  334. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  335. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  336. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  337. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  338. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  339. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  340. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  341. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  342. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  343. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  344. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  345. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  346. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  347. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  348. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  349. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  350. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  351. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  352. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  353. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  354. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  355. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  356. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  357. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  358. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  359. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  360. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  361. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  362. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  363. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  364. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  365. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  366. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  367. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  368. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  369. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  370. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  371. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  372. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  373. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  374. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  375. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  376. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  377. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  378. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  379. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  380. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  381. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  382. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  383. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  384. package/lib/typescript/src/mappings/TextField.d.ts +23 -2
  385. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  386. package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
  387. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  388. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  389. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  390. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  391. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  392. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  393. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  394. package/lib/typescript/src/mappings/View.d.ts +1 -0
  395. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  396. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  397. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  398. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  399. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  400. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  401. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  402. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  403. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  404. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  405. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  406. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  407. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  408. package/lib/typescript/src/theming.d.ts +1 -0
  409. package/lib/typescript/src/theming.d.ts.map +1 -0
  410. package/lib/typescript/src/utilities.d.ts +1 -0
  411. package/lib/typescript/src/utilities.d.ts.map +1 -0
  412. package/package.json +15 -5
  413. package/src/components/DatePicker/DatePicker.js +10 -7
  414. package/src/components/DatePicker/DatePicker.tsx +12 -10
  415. package/src/components/Picker/Picker.js +1 -1
  416. package/src/components/Picker/Picker.tsx +2 -2
  417. package/src/components/Stepper.js +5 -3
  418. package/src/components/Stepper.tsx +5 -5
  419. package/src/mappings/AudioPlayer.js +39 -2
  420. package/src/mappings/AudioPlayer.ts +41 -1
  421. package/src/mappings/DatePicker.js +13 -14
  422. package/src/mappings/DatePicker.ts +13 -14
  423. package/src/mappings/Stepper.js +5 -2
  424. package/src/mappings/Stepper.ts +5 -1
  425. package/src/mappings/TextArea.js +15 -4
  426. package/src/mappings/TextArea.ts +15 -3
  427. package/src/mappings/TextField.js +14 -4
  428. package/src/mappings/TextField.ts +14 -4
  429. package/src/mappings/TextInput.js +15 -4
  430. package/src/mappings/TextInput.ts +15 -3
@@ -20,7 +20,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
20
20
  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; }
21
21
  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); }
22
22
  const Picker = _ref => {
23
- var _options$find;
23
+ var _options$find$label, _options$find;
24
24
  let {
25
25
  Icon,
26
26
  style,
@@ -74,7 +74,7 @@ const Picker = _ref => {
74
74
  };
75
75
 
76
76
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
77
- const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) ?? selectedValue);
77
+ const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
78
78
  return /*#__PURE__*/React.createElement(_reactNative.View, {
79
79
  style: [styles.container, viewStyles]
80
80
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
@@ -15,9 +15,7 @@ var _Touchable = _interopRequireDefault(require("../Touchable"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  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); }
17
17
  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; }
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
18
  const Picker = _ref => {
20
- var _options$find;
21
19
  let {
22
20
  style,
23
21
  options,
@@ -27,6 +25,7 @@ const Picker = _ref => {
27
25
  onValueChange: onValueChangeOverride = () => {},
28
26
  ...props
29
27
  } = _ref;
28
+ var _a, _b;
30
29
  const {
31
30
  viewStyles: {
32
31
  borderRadius,
@@ -71,7 +70,7 @@ const Picker = _ref => {
71
70
  };
72
71
 
73
72
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
74
- const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) ?? selectedValue);
73
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
75
74
  return /*#__PURE__*/React.createElement(_Touchable.default, {
76
75
  disabled: disabled,
77
76
  onPress: toggleFocus,
@@ -96,6 +95,24 @@ const Picker = _ref => {
96
95
  key: o.value
97
96
  }))), /*#__PURE__*/React.createElement(_reactNative.View, {
98
97
  pointerEvents: "none"
98
+ }, /*#__PURE__*/React.createElement(_TextField.default, {
99
+ ...props,
100
+ value: selectedLabel,
101
+ placeholder: placeholder,
102
+ // @ts-ignore
103
+ ref: textField,
104
+ disabled: disabled,
105
+ // @ts-expect-error
106
+ style: stylesWithoutMargin
107
+ }))));
108
+ };
109
+ const styles = _reactNative.StyleSheet.create({
110
+ container: {
111
+ alignSelf: "stretch"
112
+ }
113
+ });
114
+ var _default = (0, _theming.withTheme)(Picker);
115
+ exports.default = _default;pointerEvents: "none"
99
116
  }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
100
117
  value: selectedLabel,
101
118
  placeholder: placeholder
@@ -8,27 +8,24 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  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); }
10
10
  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; }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
11
  /**
15
12
  * Portal host is the component which actually renders all Portals.
16
13
  */
17
14
  class PortalManager extends React.PureComponent {
18
15
  constructor() {
19
16
  super(...arguments);
20
- _defineProperty(this, "state", {
17
+ this.state = {
21
18
  portals: []
22
- });
23
- _defineProperty(this, "mount", (key, children) => {
19
+ };
20
+ this.mount = (key, children) => {
24
21
  this.setState(state => ({
25
22
  portals: [...state.portals, {
26
23
  key,
27
24
  children
28
25
  }]
29
26
  }));
30
- });
31
- _defineProperty(this, "update", (key, children) => this.setState(state => ({
27
+ };
28
+ this.update = (key, children) => this.setState(state => ({
32
29
  portals: state.portals.map(item => {
33
30
  if (item.key === key) {
34
31
  return {
@@ -38,6 +35,35 @@ class PortalManager extends React.PureComponent {
38
35
  }
39
36
  return item;
40
37
  })
38
+ }));
39
+ this.unmount = key => this.setState(state => ({
40
+ portals: state.portals.filter(item => item.key !== key)
41
+ }));
42
+ }
43
+ render() {
44
+ return this.state.portals.map(_ref => {
45
+ let {
46
+ key,
47
+ children
48
+ } = _ref;
49
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
50
+ key: key,
51
+ collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */,
52
+ pointerEvents: "box-none",
53
+ style: _reactNative.StyleSheet.absoluteFill
54
+ }, children);
55
+ });
56
+ }
57
+ }
58
+ exports.default = PortalManager;tate.portals.map(item => {
59
+ if (item.key === key) {
60
+ return {
61
+ ...item,
62
+ children
63
+ };
64
+ }
65
+ return item;
66
+ })
41
67
  })));
42
68
  _defineProperty(this, "unmount", key => this.setState(state => ({
43
69
  portals: state.portals.filter(item => item.key !== key)
@@ -34,7 +34,7 @@ const RadioButton = _ref => {
34
34
  } = (0, _context.useRadioButtonGroupContext)();
35
35
  const realValue = (0, _utilities.getValueForRadioButton)(value);
36
36
  const realContextValue = (0, _utilities.getValueForRadioButton)(contextValue);
37
- const isSelected = selected ?? realContextValue === realValue;
37
+ const isSelected = selected !== null && selected !== void 0 ? selected : realContextValue === realValue;
38
38
  const handlePress = () => {
39
39
  onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
40
40
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
@@ -63,7 +63,7 @@ const RadioButtonRow = _ref => {
63
63
  } = (0, _context.useRadioButtonGroupContext)();
64
64
  const realValue = (0, _utilities.getValueForRadioButton)(value);
65
65
  const realContextValue = (0, _utilities.getValueForRadioButton)(contextValue);
66
- const isSelected = selected ?? realContextValue === realValue;
66
+ const isSelected = selected !== null && selected !== void 0 ? selected : realContextValue === realValue;
67
67
  const handlePress = () => {
68
68
  onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
69
69
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
@@ -235,7 +235,7 @@ class StepIndicator extends _react.Component {
235
235
  stepStatus: this.getStepStatus(position)
236
236
  }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
237
237
  style: indicatorLabelStyle
238
- }, `${position + 1}`));
238
+ }, "".concat(position + 1)));
239
239
  });
240
240
  _defineProperty(this, "getStepStatus", stepPosition => {
241
241
  const {
@@ -9,6 +9,7 @@ var _reactNative = require("react-native");
9
9
  var _lodash = require("lodash");
10
10
  var _theming = require("../theming");
11
11
  var _IconButton = _interopRequireDefault(require("./IconButton"));
12
+ var _utilities = require("../utilities");
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
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); }
14
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; }
@@ -19,7 +20,6 @@ const Stepper = _ref => {
19
20
  value: valueProp,
20
21
  defaultValue,
21
22
  style,
22
- typeStyle,
23
23
  iconSize = 24,
24
24
  iconColor,
25
25
  onChange,
@@ -29,7 +29,11 @@ const Stepper = _ref => {
29
29
  },
30
30
  Icon
31
31
  } = _ref;
32
- const [value, setValue] = (0, _react.useState)(defaultValue ?? 0);
32
+ const {
33
+ viewStyles,
34
+ textStyles
35
+ } = (0, _utilities.extractStyles)(style);
36
+ const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
33
37
  const isValidValue = valueArg => valueArg >= min && valueArg <= max;
34
38
  const handlePlusOrMinus = type => {
35
39
  const newValue = type === "plus" ? value + 1 : value - 1;
@@ -47,7 +51,7 @@ const Stepper = _ref => {
47
51
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
48
52
  style: [{
49
53
  flexDirection: "row"
50
- }, style]
54
+ }, viewStyles]
51
55
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
52
56
  Icon: Icon,
53
57
  icon: "MaterialIcons/remove",
@@ -64,7 +68,7 @@ const Stepper = _ref => {
64
68
  alignSelf: "center",
65
69
  color: colors.medium,
66
70
  marginHorizontal: 8
67
- }, typeStyle]
71
+ }, textStyles]
68
72
  }, value), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
69
73
  Icon: Icon,
70
74
  icon: "MaterialIcons/add",
@@ -78,5 +82,4 @@ const Stepper = _ref => {
78
82
  }));
79
83
  };
80
84
  var _default = (0, _theming.withTheme)(Stepper);
81
- exports.default = _default;g.withTheme)(Stepper);
82
85
  exports.default = _default;
@@ -10,12 +10,11 @@ function usePrevious(value) {
10
10
  // The ref object is a generic container whose current property is mutable
11
11
  // and can hold any value, similar to an instance property on a class
12
12
  const ref = _react.default.useRef();
13
-
14
13
  // Store current value in ref
15
14
  _react.default.useEffect(() => {
16
15
  ref.current = value;
17
16
  }, [value]);
18
-
19
17
  // Return previous value (happens before update in useEffect above)
20
18
  return ref.current;
19
+ }
21
20
  }
@@ -10,7 +10,17 @@ const SEED_DATA = {
10
10
  tag: "AudioPlayer",
11
11
  description: "Given a source URL, plays sounds & audio!",
12
12
  category: _types.COMPONENT_TYPES.media,
13
- layout: {},
13
+ stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
14
+ layout: {
15
+ backgroundColor: "#eee",
16
+ paddingLeft: 16,
17
+ paddingRight: 16,
18
+ paddingTop: 8,
19
+ paddingBottom: 8,
20
+ borderRadius: 24,
21
+ flexDirection: "row",
22
+ alignItems: "center"
23
+ },
14
24
  props: {
15
25
  source: {
16
26
  group: _types.GROUPS.data,
@@ -21,7 +31,27 @@ const SEED_DATA = {
21
31
  defaultValue: "https://static.draftbit.com/audio/intro-to-draftbit-audio.mp3",
22
32
  formType: _types.FORM_TYPES.sourceUrl,
23
33
  propType: _types.PROP_TYPES.OBJECT
24
- }
34
+ },
35
+ sliderColor: (0, _types.createColorProp)({
36
+ label: "Thumb Color",
37
+ defaultValue: "strong"
38
+ }),
39
+ completedTrackColor: (0, _types.createColorProp)({
40
+ label: "Completed Track Color",
41
+ defaultValue: "background"
42
+ }),
43
+ remainingTrackColor: (0, _types.createColorProp)({
44
+ label: "Remaining Track Color",
45
+ defaultValue: "light"
46
+ }),
47
+ trackThumbSize: (0, _types.createNumberProp)({
48
+ label: "Thumb Size",
49
+ defaultValue: 24
50
+ }),
51
+ playIconColor: (0, _types.createColorProp)({
52
+ label: "Play Icon Color",
53
+ defaultValue: "strong"
54
+ })
25
55
  }
26
56
  };
27
57
  exports.SEED_DATA = SEED_DATA;
@@ -6,6 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.SEED_DATA = void 0;
7
7
  var _types = require("@draftbit/types");
8
8
  const SEED_DATA_PROPS = {
9
+ mode: {
10
+ label: "Mode",
11
+ description: "Choose between date, time and datetime",
12
+ defaultValue: "date",
13
+ editable: true,
14
+ required: true,
15
+ formType: _types.FORM_TYPES.flatArray,
16
+ propType: _types.PROP_TYPES.STRING,
17
+ options: ["date", "time", "datetime"],
18
+ group: _types.GROUPS.basic
19
+ },
9
20
  label: {
10
21
  label: "Label",
11
22
  description: "The label to be displayed on the picker",
@@ -22,17 +33,6 @@ const SEED_DATA_PROPS = {
22
33
  labelColor: (0, _types.createColorProp)({
23
34
  label: "Label Color"
24
35
  }),
25
- mode: {
26
- label: "Mode",
27
- description: "Choose between date, time and datetime",
28
- defaultValue: "date",
29
- editable: true,
30
- required: true,
31
- formType: _types.FORM_TYPES.flatArray,
32
- propType: _types.PROP_TYPES.STRING,
33
- options: ["date", "time", "datetime"],
34
- group: _types.GROUPS.basic
35
- },
36
36
  borderColor: (0, _types.createColorProp)({
37
37
  label: "Border Color"
38
38
  }),
@@ -156,7 +156,7 @@ const SEED_DATA = [{
156
156
  category: _types.COMPONENT_TYPES.input,
157
157
  layout: null,
158
158
  triggers: [_types.Triggers.OnDateChange],
159
- StylesPanelSections: [_types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Size, _types.StylesPanelSections.Typography],
159
+ StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
160
160
  props: {
161
161
  ...SEED_DATA_PROPS,
162
162
  type: {
@@ -10,7 +10,7 @@ const SEED_DATA = [{
10
10
  tag: "Stepper",
11
11
  description: "A component used to control the quantity of something",
12
12
  category: _types.COMPONENT_TYPES.control,
13
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
13
+ stylesPanelSections: [_types.StylesPanelSections.Typography, ..._types.BLOCK_STYLES_SECTIONS],
14
14
  layout: {},
15
15
  triggers: [_types.Triggers.OnChange],
16
16
  props: {
@@ -65,6 +65,17 @@ const SEED_DATA = {
65
65
  formType: _types.FORM_TYPES.boolean,
66
66
  propType: _types.PROP_TYPES.BOOLEAN
67
67
  },
68
+ blurOnSubmit: {
69
+ group: _types.GROUPS.advanced,
70
+ label: "Blur On Submit",
71
+ description: "If true, the text field will blur when submitted. ",
72
+ editable: true,
73
+ required: false,
74
+ defaultValue: null,
75
+ formType: _types.FORM_TYPES.boolean,
76
+ propType: _types.PROP_TYPES.BOOLEAN
77
+ },
78
+ disabled: (0, _types.createDisabledProp)(),
68
79
  caretHidden: {
69
80
  group: _types.GROUPS.advanced,
70
81
  label: "Hide Caret",
@@ -86,12 +97,12 @@ const SEED_DATA = {
86
97
  propType: _types.PROP_TYPES.BOOLEAN
87
98
  },
88
99
  editable: {
89
- group: _types.GROUPS.advanced,
90
- label: "Editable",
100
+ group: _types.GROUPS.data,
101
+ label: "Editable?",
91
102
  description: "If false, the text is not editable",
92
103
  editable: true,
93
104
  required: false,
94
- defaultValue: true,
105
+ defaultValue: null,
95
106
  formType: _types.FORM_TYPES.boolean,
96
107
  propType: _types.PROP_TYPES.BOOLEAN
97
108
  },
@@ -68,7 +68,7 @@ const SEED_DATA_PROPS = {
68
68
  propType: _types.PROP_TYPES.BOOLEAN
69
69
  },
70
70
  disabled: {
71
- group: _types.GROUPS.basic,
71
+ group: _types.GROUPS.data,
72
72
  label: "Disabled",
73
73
  description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
74
74
  formType: _types.FORM_TYPES.boolean,
@@ -78,12 +78,22 @@ const SEED_DATA_PROPS = {
78
78
  required: false
79
79
  },
80
80
  editable: {
81
- group: _types.GROUPS.advanced,
82
- label: "Editable",
81
+ group: _types.GROUPS.data,
82
+ label: "Editable?",
83
83
  description: "If false, the text is not editable",
84
84
  editable: true,
85
85
  required: false,
86
- defaultValue: true,
86
+ defaultValue: null,
87
+ formType: _types.FORM_TYPES.boolean,
88
+ propType: _types.PROP_TYPES.BOOLEAN
89
+ },
90
+ blurOnSubmit: {
91
+ group: _types.GROUPS.advanced,
92
+ label: "Blur On Submit",
93
+ description: "If true, the text field will blur when submitted. ",
94
+ editable: true,
95
+ required: false,
96
+ defaultValue: null,
87
97
  formType: _types.FORM_TYPES.boolean,
88
98
  propType: _types.PROP_TYPES.BOOLEAN
89
99
  },
@@ -148,12 +148,12 @@ const SEED_DATA = [{
148
148
  propType: _types.PROP_TYPES.BOOLEAN
149
149
  },
150
150
  editable: {
151
- group: _types.GROUPS.advanced,
152
- label: "Editable",
151
+ group: _types.GROUPS.data,
152
+ label: "Editable?",
153
153
  description: "If false, the text is not editable",
154
154
  editable: true,
155
155
  required: false,
156
- defaultValue: true,
156
+ defaultValue: null,
157
157
  formType: _types.FORM_TYPES.boolean,
158
158
  propType: _types.PROP_TYPES.BOOLEAN
159
159
  },
@@ -222,6 +222,16 @@ const SEED_DATA = [{
222
222
  formType: _types.FORM_TYPES.string,
223
223
  propType: _types.PROP_TYPES.STRING
224
224
  },
225
+ blurOnSubmit: {
226
+ group: _types.GROUPS.advanced,
227
+ label: "Blur On Submit",
228
+ description: "If true, the text field will blur when submitted. ",
229
+ editable: true,
230
+ required: false,
231
+ defaultValue: null,
232
+ formType: _types.FORM_TYPES.boolean,
233
+ propType: _types.PROP_TYPES.BOOLEAN
234
+ },
225
235
  returnKeyType: {
226
236
  group: _types.GROUPS.advanced,
227
237
  label: "Return Key Type",
@@ -287,6 +297,7 @@ const SEED_DATA = [{
287
297
  formType: _types.FORM_TYPES.number,
288
298
  propType: _types.PROP_TYPES.NUMBER
289
299
  },
300
+ disabled: (0, _types.createDisabledProp)(),
290
301
  scrollEnabled: {
291
302
  group: _types.GROUPS.basic,
292
303
  label: "Scroll Enabled",
@@ -88,6 +88,6 @@ function getValueForRadioButton(value) {
88
88
  } else if ((0, _lodash.isNumber)(value)) {
89
89
  return String(value);
90
90
  } else {
91
- throw new Error(`Invalid value: ${value}`);
91
+ throw new Error("Invalid value: ".concat(value));
92
92
  }
93
93
  }
@@ -1,4 +1,3 @@
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
  import React from "react";
3
2
  import { View, Text } from "react-native";
4
3
  import Image from "./Image";
@@ -42,11 +41,12 @@ const CardBlock = _ref => {
42
41
  const rightDescriptionStyles = [typography.subtitle2, {
43
42
  color: colors.light
44
43
  }];
45
- return /*#__PURE__*/React.createElement(Card, _extends({
44
+ return /*#__PURE__*/React.createElement(Card, {
46
45
  style: style,
47
46
  onPress: onPress,
48
- numColumns: numColumns
49
- }, rest), /*#__PURE__*/React.createElement(View, {
47
+ numColumns: numColumns,
48
+ ...rest
49
+ }, /*#__PURE__*/React.createElement(View, {
50
50
  style: {
51
51
  backgroundColor: colors.background
52
52
  }
@@ -95,4 +95,14 @@ const CardBlock = _ref => {
95
95
  style: rightDescriptionStyles
96
96
  }, rightDescription) : null) : null));
97
97
  };
98
+ export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
99
+ numberOfLines: 1,
100
+ style: [typography.body2, {
101
+ color: colors.medium
102
+ }]
103
+ }, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
104
+ numberOfLines: 1,
105
+ style: rightDescriptionStyles
106
+ }, rightDescription) : null) : null));
107
+ };
98
108
  export default withTheme(CardBlock);
@@ -1,4 +1,3 @@
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
  import React from "react";
3
2
  import { View, Text } from "react-native";
4
3
  import color from "color";
@@ -45,11 +44,12 @@ const CardContainer = _ref => {
45
44
  titleStyle = typography.headline5;
46
45
  break;
47
46
  }
48
- return /*#__PURE__*/React.createElement(Card, _extends({
47
+ return /*#__PURE__*/React.createElement(Card, {
49
48
  style: style,
50
49
  onPress: onPress,
51
- numColumns: numColumns
52
- }, rest), /*#__PURE__*/React.createElement(Elevation, {
50
+ numColumns: numColumns,
51
+ ...rest
52
+ }, /*#__PURE__*/React.createElement(Elevation, {
53
53
  style: {
54
54
  elevation,
55
55
  borderRadius: roundness
@@ -118,4 +118,14 @@ const CardContainer = _ref => {
118
118
  color: colors.surface
119
119
  })) : null)));
120
120
  };
121
+ export default withTheme(CardContainer);ONTAINER_PADDING,
122
+ borderRadius: ICON_CONTAINER_SIZE,
123
+ backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
124
+ }
125
+ }, /*#__PURE__*/React.createElement(Icon, {
126
+ name: icon,
127
+ size: Config.cardIconSize,
128
+ color: colors.surface
129
+ })) : null)));
130
+ };
121
131
  export default withTheme(CardContainer);
@@ -117,7 +117,12 @@ const styles = StyleSheet.create({
117
117
  backgroundColor: "#000"
118
118
  }
119
119
  });
120
- export default withTheme(Carousel);#eee"
120
+ export default withTheme(Carousel);gth
121
+ }));
122
+ }
123
+ const styles = StyleSheet.create({
124
+ container: {
125
+ backgroundColor: "#eee"
121
126
  },
122
127
  pager: {
123
128
  position: "absolute",
@@ -19,13 +19,13 @@ const getFilters = options => {
19
19
  height
20
20
  } = options;
21
21
  const filters = ["c_scale", "q_auto", "dpr_auto"];
22
- if (width) filters.push(`w_${width}`);
23
- if (height) filters.push(`h_${height}`);
22
+ if (width) filters.push("w_".concat(width));
23
+ if (height) filters.push("h_".concat(height));
24
24
  return filters.join(",");
25
25
  };
26
26
  const buildImageUrl = (options, name) => {
27
27
  const filters = getFilters(options);
28
- return ["https://res.cloudinary.com/altos/image/upload", filters, `${name}.png`].join("/");
28
+ return ["https://res.cloudinary.com/altos/image/upload", filters, "".concat(name, ".png")].join("/");
29
29
  };
30
30
  const getExtension = () => {
31
31
  return Platform.OS === "web" ? ".svg" : ".png";
@@ -56,6 +56,7 @@ const DatePicker = _ref => {
56
56
  width: 0
57
57
  });
58
58
  const {
59
+ viewStyles,
59
60
  textStyles
60
61
  } = extractStyles(style);
61
62
  const getValidDate = () => {
@@ -69,12 +70,12 @@ const DatePicker = _ref => {
69
70
  let newDate = getValidDate();
70
71
  if (format) return dateFormat(newDate, format);
71
72
  if (mode === "time") {
72
- return `${newDate.toLocaleTimeString()}`;
73
+ return "".concat(newDate.toLocaleTimeString());
73
74
  }
74
75
  if (mode === "datetime") {
75
- return `${newDate.toLocaleString()}`;
76
+ return "".concat(newDate.toLocaleString());
76
77
  }
77
- return `${MONTHS[newDate.getMonth()]} ${newDate.getDate()}, ${newDate.getFullYear()}`;
78
+ return "".concat(MONTHS[newDate.getMonth()], " ").concat(newDate.getDate(), ", ").concat(newDate.getFullYear());
78
79
  };
79
80
  const toggleVisibility = async () => {
80
81
  setPickerVisible(!pickerVisible);
@@ -147,7 +148,7 @@ const DatePicker = _ref => {
147
148
  };
148
149
  const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
149
150
  const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
150
- const MAXIMIZED_LABEL_FONT_SIZE = (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontSize) || typography.subtitle1.fontSize;
151
+ const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
151
152
  const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
152
153
  const hasActiveOutline = focused;
153
154
  let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
@@ -160,7 +161,7 @@ const DatePicker = _ref => {
160
161
  backgroundColor = colors.divider;
161
162
  } else {
162
163
  activeColor = inputBorderColorActive || colors.primary;
163
- placeholderColor = borderColor = inputBorderColor || colors.light;
164
+ placeholderColor = inputBorderColor || colors.light;
164
165
  underlineColor = inputBorderColor || colors.light;
165
166
  backgroundColor = colors.background;
166
167
  }
@@ -240,7 +241,7 @@ const DatePicker = _ref => {
240
241
  };
241
242
  const inputStyles = [styles.input, inputStyle, type === "solid" ? {
242
243
  marginHorizontal: 12
243
- } : {}, textStyles];
244
+ } : {}];
244
245
 
245
246
  // const render = (props) => <NativeTextInput {...props} />;
246
247
 
@@ -258,7 +259,7 @@ const DatePicker = _ref => {
258
259
  })) : null, /*#__PURE__*/React.createElement(View, {
259
260
  style: [containerStyle, style ? {
260
261
  height: style.height
261
- } : {}]
262
+ } : {}, viewStyles]
262
263
  }, type === "underline" ?
263
264
  /*#__PURE__*/
264
265
  // When type === 'flat', render an underline
@@ -300,7 +301,7 @@ const DatePicker = _ref => {
300
301
  style: [styles.placeholder, type === "solid" ? {
301
302
  paddingHorizontal: 12
302
303
  } : {}, labelStyle, {
303
- color: labelColor || placeholder,
304
+ color: labelColor || placeholderColor,
304
305
  opacity: hasActiveOutline ? labeled : 1
305
306
  }],
306
307
  numberOfLines: 1
@@ -318,7 +319,7 @@ const DatePicker = _ref => {
318
319
  onFocus: _handleFocus,
319
320
  onBlur: _handleBlur,
320
321
  underlineColorAndroid: "transparent",
321
- style: inputStyles
322
+ style: [inputStyles, textStyles]
322
323
  }, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
323
324
  name: rightIconName,
324
325
  size: ICON_SIZE,
@@ -46,7 +46,6 @@ const FieldSearchBarFull = _ref => {
46
46
  lineHeight,
47
47
  ...typeStyles
48
48
  } = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
49
-
50
49
  const handleChangeText = newValue => {
51
50
  setInternalValue(newValue);
52
51
  if (onChange) {
@@ -84,4 +83,4 @@ const styles = StyleSheet.create({
84
83
  alignItems: "center"
85
84
  }
86
85
  });
87
- export default withTheme(FieldSearchBarFull);
86
+ export default withTheme(FieldSearchBarFull);;