@draftbit/core 46.4.4-dc9728.2 → 46.4.4-e5ebcf.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 (435) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +25 -5
  2. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +18 -3
  3. package/lib/commonjs/components/Checkbox/CheckboxRow.js +24 -6
  4. package/lib/commonjs/components/Checkbox/context.js +1 -1
  5. package/lib/commonjs/components/CircleImage.js +16 -2
  6. package/lib/commonjs/components/CircularProgress.js +15 -7
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +8 -18
  8. package/lib/commonjs/components/DeprecatedButton.js +22 -4
  9. package/lib/commonjs/components/DeprecatedCardWrapper.js +17 -2
  10. package/lib/commonjs/components/DeprecatedFAB.js +22 -4
  11. package/lib/commonjs/components/Divider.js +16 -2
  12. package/lib/commonjs/components/Elevation.js +15 -3
  13. package/lib/commonjs/components/FAB.js +20 -5
  14. package/lib/commonjs/components/FormRow.js +17 -3
  15. package/lib/commonjs/components/IconButton.js +22 -5
  16. package/lib/commonjs/components/Image.js +16 -3
  17. package/lib/commonjs/components/Layout.js +40 -19
  18. package/lib/commonjs/components/NumberInput.js +13 -2
  19. package/lib/commonjs/components/Picker/Picker.js +5 -5
  20. package/lib/commonjs/components/Picker/PickerComponent.ios.js +42 -13
  21. package/lib/commonjs/components/Picker/PickerComponent.web.js +24 -5
  22. package/lib/commonjs/components/Portal/PortalHost.js +27 -15
  23. package/lib/commonjs/components/ProgressBar.js +23 -7
  24. package/lib/commonjs/components/RadioButton/RadioButton.js +14 -3
  25. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +11 -2
  26. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +24 -6
  27. package/lib/commonjs/components/ScreenContainer.js +23 -5
  28. package/lib/commonjs/components/Slider.js +24 -5
  29. package/lib/commonjs/components/StarRating.js +25 -5
  30. package/lib/commonjs/components/StepIndicator.js +34 -16
  31. package/lib/commonjs/components/Stepper.js +8 -3
  32. package/lib/commonjs/components/Surface.js +14 -3
  33. package/lib/commonjs/components/Switch.js +23 -10
  34. package/lib/commonjs/components/Text.js +42 -8
  35. package/lib/commonjs/components/TextField.js +68 -31
  36. package/lib/commonjs/components/ToggleButton.js +18 -3
  37. package/lib/commonjs/components/Touchable.js +16 -2
  38. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  39. package/lib/commonjs/mappings/DatePicker.js +0 -13
  40. package/lib/commonjs/mappings/Stepper.js +1 -1
  41. package/lib/commonjs/mappings/TextArea.js +14 -3
  42. package/lib/commonjs/mappings/TextField.js +15 -5
  43. package/lib/commonjs/mappings/TextInput.js +15 -4
  44. package/lib/module/components/DatePicker/DatePicker.js +8 -17
  45. package/lib/module/components/Picker/Picker.js +2 -2
  46. package/lib/module/components/Stepper.js +7 -3
  47. package/lib/module/components/Text.js +6 -2
  48. package/lib/module/components/TextField.js +5 -1
  49. package/lib/module/mappings/AudioPlayer.js +33 -3
  50. package/lib/module/mappings/DatePicker.js +1 -14
  51. package/lib/module/mappings/Stepper.js +2 -2
  52. package/lib/module/mappings/TextArea.js +15 -4
  53. package/lib/module/mappings/TextField.js +15 -5
  54. package/lib/module/mappings/TextInput.js +16 -5
  55. package/lib/typescript/src/Provider.d.ts +1 -0
  56. package/lib/typescript/src/Provider.d.ts.map +1 -0
  57. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  58. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  59. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  60. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  61. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  62. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  63. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  64. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  65. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  66. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  67. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  68. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  69. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  70. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  71. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  72. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  73. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  74. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  75. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  76. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  77. package/lib/typescript/src/components/Banner.d.ts +1 -0
  78. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  79. package/lib/typescript/src/components/Button.d.ts +1 -0
  80. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  81. package/lib/typescript/src/components/Card.d.ts +1 -0
  82. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  83. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  84. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  85. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  86. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  87. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  88. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  89. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  90. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  91. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  92. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  93. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  94. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  95. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  96. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  97. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  98. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  100. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  102. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  103. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  104. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  105. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  106. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  107. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  108. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  109. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  110. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Config.d.ts +1 -0
  112. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  113. package/lib/typescript/src/components/Container.d.ts +1 -0
  114. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  115. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -4
  116. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  117. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  118. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  119. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  121. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  122. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  123. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  124. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  125. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  126. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  127. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  128. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  129. package/lib/typescript/src/components/Divider.d.ts +1 -0
  130. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  131. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  132. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  133. package/lib/typescript/src/components/FAB.d.ts +1 -0
  134. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  135. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  136. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  137. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  138. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  139. package/lib/typescript/src/components/Header.d.ts +1 -0
  140. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  141. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  142. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  143. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  144. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  145. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  146. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  147. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  148. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  149. package/lib/typescript/src/components/Image.d.ts +1 -0
  150. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Justification.d.ts +1 -0
  152. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Layout.d.ts +1 -0
  154. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  155. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  156. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  158. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  160. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  162. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  164. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  166. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  167. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  168. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  169. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  170. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  172. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  174. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  175. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  176. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  177. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  178. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  179. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  180. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  181. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  182. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  183. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  184. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  185. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  188. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  189. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  190. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  191. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  192. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  193. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  194. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Row.d.ts +1 -0
  196. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  197. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  198. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  199. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  200. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  201. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  202. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  203. package/lib/typescript/src/components/SVG.d.ts +1 -0
  204. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  205. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  206. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Slider.d.ts +1 -0
  208. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  209. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  210. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  211. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  212. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  214. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  215. package/lib/typescript/src/components/Surface.d.ts +1 -0
  216. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  217. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  218. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  219. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  220. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  221. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  222. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  223. package/lib/typescript/src/components/Switch.d.ts +1 -0
  224. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  225. package/lib/typescript/src/components/Text.d.ts +3 -1
  226. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  227. package/lib/typescript/src/components/TextField.d.ts +3 -1
  228. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  229. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  230. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  232. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  233. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  234. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  235. package/lib/typescript/src/components/Typography.d.ts +1 -0
  236. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  237. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  238. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  239. package/lib/typescript/src/constants.d.ts +1 -0
  240. package/lib/typescript/src/constants.d.ts.map +1 -0
  241. package/lib/typescript/src/hooks.d.ts +1 -0
  242. package/lib/typescript/src/hooks.d.ts.map +1 -0
  243. package/lib/typescript/src/index.d.ts +1 -0
  244. package/lib/typescript/src/index.d.ts.map +1 -0
  245. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  246. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  247. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  248. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  249. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  250. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  251. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  252. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  253. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  254. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  255. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  256. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  257. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  258. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  259. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  260. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  261. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  262. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  263. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  264. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  265. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  266. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  267. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  268. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  269. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  270. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  271. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  272. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  273. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  274. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  275. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  276. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  277. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  278. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  279. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  280. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  281. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  282. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  283. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  284. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  285. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  286. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  287. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  288. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  289. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  290. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  291. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  292. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  293. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  294. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  295. package/lib/typescript/src/mappings/DatePicker.d.ts +1 -42
  296. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  297. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  298. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  299. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  300. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  301. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  302. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  303. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  304. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  305. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  306. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  307. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  308. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  309. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  310. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  311. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  312. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  313. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  314. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  315. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  316. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  317. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  318. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  319. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  320. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  321. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  322. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  323. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  324. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  325. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  326. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  327. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  328. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  329. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  330. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  331. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  332. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  333. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  334. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  335. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  336. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  337. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  338. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  339. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  340. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  341. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  342. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  343. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  344. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  345. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  346. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  347. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  348. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  349. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  350. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  351. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  352. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  353. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  354. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  355. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  356. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  357. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  358. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  359. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  360. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  361. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  362. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  363. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  364. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  365. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  366. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  367. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  368. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  369. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  370. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  371. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  372. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  373. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  374. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  375. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  376. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  377. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  378. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  379. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  380. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  381. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  382. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  383. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  384. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  385. package/lib/typescript/src/mappings/TextField.d.ts +25 -4
  386. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  387. package/lib/typescript/src/mappings/TextInput.d.ts +23 -2
  388. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  389. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  390. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  391. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  392. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  393. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  394. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  395. package/lib/typescript/src/mappings/View.d.ts +1 -0
  396. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  397. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  398. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  399. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  400. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  401. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  402. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  403. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  404. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  405. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  406. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  407. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  408. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  409. package/lib/typescript/src/theming.d.ts +1 -0
  410. package/lib/typescript/src/theming.d.ts.map +1 -0
  411. package/lib/typescript/src/utilities.d.ts +1 -0
  412. package/lib/typescript/src/utilities.d.ts.map +1 -0
  413. package/package.json +15 -5
  414. package/src/components/DatePicker/DatePicker.js +8 -14
  415. package/src/components/DatePicker/DatePicker.tsx +7 -23
  416. package/src/components/Picker/Picker.js +1 -1
  417. package/src/components/Picker/Picker.tsx +2 -2
  418. package/src/components/Stepper.js +5 -3
  419. package/src/components/Stepper.tsx +5 -5
  420. package/src/components/Text.js +8 -2
  421. package/src/components/Text.tsx +6 -1
  422. package/src/components/TextField.js +6 -1
  423. package/src/components/TextField.tsx +7 -1
  424. package/src/mappings/AudioPlayer.js +39 -2
  425. package/src/mappings/AudioPlayer.ts +41 -1
  426. package/src/mappings/DatePicker.js +1 -21
  427. package/src/mappings/DatePicker.ts +0 -23
  428. package/src/mappings/Stepper.js +5 -2
  429. package/src/mappings/Stepper.ts +5 -1
  430. package/src/mappings/TextArea.js +15 -4
  431. package/src/mappings/TextArea.ts +15 -3
  432. package/src/mappings/TextField.js +15 -5
  433. package/src/mappings/TextField.ts +15 -5
  434. package/src/mappings/TextInput.js +16 -5
  435. package/src/mappings/TextInput.ts +16 -4
@@ -15,8 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
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
-
20
18
  const IconButton = _ref => {
21
19
  let {
22
20
  Icon,
@@ -31,7 +29,7 @@ const IconButton = _ref => {
31
29
  ...props
32
30
  } = _ref;
33
31
  const iconColor = customColor || theme.colors.primary;
34
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
32
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
35
33
  onPress: onPress,
36
34
  disabled: disabled || loading,
37
35
  style: _ref2 => {
@@ -45,8 +43,9 @@ const IconButton = _ref => {
45
43
  alignItems: "center",
46
44
  justifyContent: "center"
47
45
  }, style];
48
- }
49
- }, props), /*#__PURE__*/React.createElement(_reactNative.View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
46
+ },
47
+ ...props
48
+ }, /*#__PURE__*/React.createElement(_reactNative.View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
50
49
  name: icon,
51
50
  size: size - 2,
52
51
  color: iconColor
@@ -71,4 +70,22 @@ const styles = _reactNative.StyleSheet.create({
71
70
 
72
71
  var _default = (0, _theming.withTheme)(IconButton);
73
72
 
73
+ exports.default = _default;) : null));
74
+ };
75
+
76
+ const styles = _reactNative.StyleSheet.create({
77
+ container: {
78
+ alignItems: "center",
79
+ justifyContent: "center",
80
+ ..._reactNative.Platform.select({
81
+ web: {
82
+ cursor: "pointer",
83
+ userSelect: "none"
84
+ }
85
+ })
86
+ }
87
+ });
88
+
89
+ var _default = (0, _theming.withTheme)(IconButton);
90
+
74
91
  exports.default = _default;
@@ -15,8 +15,7 @@ var _AspectRatio = _interopRequireDefault(require("./AspectRatio"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
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
+ /* README: Internal Image component used for stuff like Card. DO NOT EXPORT! */
20
19
  const generateDimensions = _ref => {
21
20
  let {
22
21
  aspectRatio,
@@ -77,13 +76,27 @@ const Image = _ref2 => {
77
76
  height,
78
77
  aspectRatio
79
78
  }]
80
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, _extends({}, props, {
79
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, { ...props,
81
80
  source: imageSource,
82
81
  resizeMode: resizeMode,
83
82
  style: [style, {
84
83
  height: "100%",
85
84
  width: "100%"
86
85
  }]
86
+ }));
87
+ }
88
+
89
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Image, { ...props,
90
+ source: source,
91
+ resizeMode: resizeMode,
92
+ style: style
93
+ });
94
+ };
95
+
96
+ var _default = Image;
97
+ exports.default = _default; height: "100%",
98
+ width: "100%"
99
+ }]
87
100
  })));
88
101
  }
89
102
 
@@ -18,8 +18,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
18
18
 
19
19
  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; }
20
20
 
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
-
23
21
  function Center(_ref) {
24
22
  let {
25
23
  width = 240,
@@ -29,15 +27,16 @@ function Center(_ref) {
29
27
  style,
30
28
  ...rest
31
29
  } = _ref;
32
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
30
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
33
31
  style: [{
34
32
  justifyContent: "center",
35
33
  alignItems: "center",
36
34
  width,
37
35
  height,
38
36
  backgroundColor: bgColor
39
- }, style]
40
- }, rest), children);
37
+ }, style],
38
+ ...rest
39
+ }, children);
41
40
  }
42
41
 
43
42
  function Circle(_ref2) {
@@ -49,7 +48,7 @@ function Circle(_ref2) {
49
48
  ...rest
50
49
  } = _ref2;
51
50
  const borderRadius = 1000;
52
- return /*#__PURE__*/React.createElement(Center, _extends({
51
+ return /*#__PURE__*/React.createElement(Center, {
53
52
  width: size,
54
53
  height: size,
55
54
  bgColor: bgColor,
@@ -57,8 +56,9 @@ function Circle(_ref2) {
57
56
  backgroundColor: bgColor,
58
57
  borderRadius,
59
58
  overflow: "hidden"
60
- }]
61
- }, rest), children);
59
+ }],
60
+ ...rest
61
+ }, children);
62
62
  }
63
63
 
64
64
  function Square(_ref3) {
@@ -69,12 +69,13 @@ function Square(_ref3) {
69
69
  style,
70
70
  ...rest
71
71
  } = _ref3;
72
- return /*#__PURE__*/React.createElement(Center, _extends({
72
+ return /*#__PURE__*/React.createElement(Center, {
73
73
  style: style,
74
74
  width: size,
75
75
  height: size,
76
- bgColor: bgColor
77
- }, rest), children);
76
+ bgColor: bgColor,
77
+ ...rest
78
+ }, children);
78
79
  }
79
80
 
80
81
  function Row(_ref4) {
@@ -85,14 +86,14 @@ function Row(_ref4) {
85
86
  style,
86
87
  ...rest
87
88
  } = _ref4;
88
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
89
- style: [style, // style goes first b/c we can't override these
90
- {
89
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
90
+ style: [style, {
91
91
  alignItems,
92
92
  flexDirection: "row",
93
93
  justifyContent: justifyContent
94
- }]
95
- }, rest), children);
94
+ }],
95
+ ...rest
96
+ }, children);
96
97
  }
97
98
 
98
99
  function Spacer(_ref5) {
@@ -105,17 +106,37 @@ function Spacer(_ref5) {
105
106
  style,
106
107
  ...rest
107
108
  } = _ref5;
108
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
109
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
109
110
  style: [style, {
110
111
  paddingRight: right,
111
112
  paddingTop: top,
112
113
  paddingLeft: left,
113
114
  paddingBottom: bottom
114
- }]
115
- }, rest), children);
115
+ }],
116
+ ...rest
117
+ }, children);
116
118
  }
117
119
 
118
120
  function Stack(_ref6) {
121
+ let {
122
+ children,
123
+ justifyContent = "flex-start",
124
+ alignItems = "flex-start",
125
+ style,
126
+ ...rest
127
+ } = _ref6;
128
+ return (
129
+ /*#__PURE__*/
130
+ // style must go first since we don't want justifyContent, alignItems overridden
131
+ React.createElement(_reactNative.View, {
132
+ style: [style, {
133
+ justifyContent,
134
+ alignItems
135
+ }],
136
+ ...rest
137
+ }, children)
138
+ );
139
+ }ck(_ref6) {
119
140
  let {
120
141
  children,
121
142
  justifyContent = "flex-start",
@@ -15,8 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
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
-
20
18
  const NumberInput = _ref => {
21
19
  let {
22
20
  onChangeText,
@@ -69,6 +67,19 @@ const NumberInput = _ref => {
69
67
  handleChangeText(nextStringNumberValue);
70
68
  } // eslint-disable-next-line react-hooks/exhaustive-deps
71
69
 
70
+ }, [value]);
71
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
72
+ keyboardType: "numeric",
73
+ value: currentStringNumberValue,
74
+ onChangeText: handleChangeText,
75
+ ...props
76
+ });
77
+ };
78
+
79
+ var _default = NumberInput;
80
+ exports.default = _default;lue);
81
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
82
+
72
83
  }, [value]);
73
84
  return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, _extends({
74
85
  keyboardType: "numeric",
@@ -284,10 +284,6 @@ const Picker = _ref => {
284
284
  );
285
285
  };
286
286
 
287
- var _default = (0, _theming.withTheme)(Picker);
288
-
289
- exports.default = _default;
290
-
291
287
  const styles = _reactNative.StyleSheet.create({
292
288
  marginsContainer: {
293
289
  alignSelf: "stretch",
@@ -357,4 +353,8 @@ const styles = _reactNative.StyleSheet.create({
357
353
  maxWidth: deviceWidth,
358
354
  maxHeight: deviceHeight
359
355
  }
360
- });
356
+ });
357
+
358
+ var _default = (0, _theming.withTheme)(Picker);
359
+
360
+ exports.default = _default;
@@ -33,11 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
33
 
34
34
  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; }
35
35
 
36
- 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); }
37
-
38
36
  const Picker = _ref => {
39
- var _options$find$label, _options$find;
40
-
41
37
  let {
42
38
  Icon,
43
39
  style,
@@ -51,6 +47,9 @@ const Picker = _ref => {
51
47
  },
52
48
  ...props
53
49
  } = _ref;
50
+
51
+ var _a, _b;
52
+
54
53
  const {
55
54
  viewStyles: {
56
55
  borderRadius,
@@ -92,24 +91,23 @@ const Picker = _ref => {
92
91
  };
93
92
 
94
93
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
95
- 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);
94
+ 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);
96
95
  return /*#__PURE__*/React.createElement(_reactNative.View, {
97
96
  style: [styles.container, viewStyles]
98
97
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
99
98
  disabled: disabled,
100
99
  onPress: toggleVisibility
101
- }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
100
+ }, /*#__PURE__*/React.createElement(_TextField.default, { ...props,
102
101
  value: String(selectedLabel),
103
- placeholder: placeholder // @ts-ignore
104
- ,
105
- ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
106
- ,
102
+ placeholder: placeholder,
103
+ // @ts-ignore
104
+ ref: textField,
107
105
  disabled: disabled,
108
- pointerEvents: "none" // @ts-expect-error
109
- ,
106
+ pointerEvents: "none",
107
+ // @ts-expect-error
110
108
  style: stylesWithoutMargin,
111
109
  Icon: Icon
112
- }))), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
110
+ })), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
113
111
  style: [styles.picker, {
114
112
  backgroundColor: colors.divider
115
113
  }]
@@ -157,4 +155,35 @@ const styles = _reactNative.StyleSheet.create({
157
155
 
158
156
  var _default = (0, _theming.withTheme)(Picker);
159
157
 
158
+ exports.default = _default;ent(_picker.Picker.Item, {
159
+ label: o.label,
160
+ value: o.value,
161
+ key: o.value
162
+ })))))));
163
+ };
164
+
165
+ const styles = _reactNative.StyleSheet.create({
166
+ container: {
167
+ alignSelf: "stretch"
168
+ },
169
+ picker: {
170
+ position: "absolute",
171
+ bottom: 0,
172
+ left: 0,
173
+ right: 0,
174
+ flexDirection: "row",
175
+ justifyContent: "center"
176
+ },
177
+ pickerContainer: {
178
+ backgroundColor: "white",
179
+ flexDirection: "column",
180
+ width: "100%"
181
+ },
182
+ closeButton: {
183
+ alignSelf: "flex-end"
184
+ }
185
+ });
186
+
187
+ var _default = (0, _theming.withTheme)(Picker);
188
+
160
189
  exports.default = _default;
@@ -27,11 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  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; }
29
29
 
30
- 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); }
31
-
32
30
  const Picker = _ref => {
33
- var _options$find$label, _options$find;
34
-
35
31
  let {
36
32
  style,
37
33
  options,
@@ -41,6 +37,9 @@ const Picker = _ref => {
41
37
  onValueChange: onValueChangeOverride = () => {},
42
38
  ...props
43
39
  } = _ref;
40
+
41
+ var _a, _b;
42
+
44
43
  const {
45
44
  viewStyles: {
46
45
  borderRadius,
@@ -87,7 +86,7 @@ const Picker = _ref => {
87
86
  };
88
87
 
89
88
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
90
- 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);
89
+ 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);
91
90
  return /*#__PURE__*/React.createElement(_Touchable.default, {
92
91
  disabled: disabled,
93
92
  onPress: toggleFocus,
@@ -112,6 +111,26 @@ const Picker = _ref => {
112
111
  key: o.value
113
112
  }))), /*#__PURE__*/React.createElement(_reactNative.View, {
114
113
  pointerEvents: "none"
114
+ }, /*#__PURE__*/React.createElement(_TextField.default, { ...props,
115
+ value: selectedLabel,
116
+ placeholder: placeholder,
117
+ // @ts-ignore
118
+ ref: textField,
119
+ disabled: disabled,
120
+ // @ts-expect-error
121
+ style: stylesWithoutMargin
122
+ }))));
123
+ };
124
+
125
+ const styles = _reactNative.StyleSheet.create({
126
+ container: {
127
+ alignSelf: "stretch"
128
+ }
129
+ });
130
+
131
+ var _default = (0, _theming.withTheme)(Picker);
132
+
133
+ exports.default = _default; pointerEvents: "none"
115
134
  }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
116
135
  value: selectedLabel,
117
136
  placeholder: placeholder // @ts-ignore
@@ -17,8 +17,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
 
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
22
20
  const PortalContext = /*#__PURE__*/React.createContext(null);
23
21
  /**
24
22
  * Portal host renders all of its children `Portal` elements.
@@ -51,11 +49,11 @@ class PortalHost extends React.Component {
51
49
  constructor() {
52
50
  super(...arguments);
53
51
 
54
- _defineProperty(this, "setManager", manager => {
52
+ this.setManager = manager => {
55
53
  this.manager = manager;
56
- });
54
+ };
57
55
 
58
- _defineProperty(this, "mount", children => {
56
+ this.mount = children => {
59
57
  const key = this.nextKey++;
60
58
 
61
59
  if (this.manager) {
@@ -69,9 +67,9 @@ class PortalHost extends React.Component {
69
67
  }
70
68
 
71
69
  return key;
72
- });
70
+ };
73
71
 
74
- _defineProperty(this, "update", (key, children) => {
72
+ this.update = (key, children) => {
75
73
  if (this.manager) {
76
74
  this.manager.update(key, children);
77
75
  } else {
@@ -89,9 +87,9 @@ class PortalHost extends React.Component {
89
87
  this.queue.push(op);
90
88
  }
91
89
  }
92
- });
90
+ };
93
91
 
94
- _defineProperty(this, "unmount", key => {
92
+ this.unmount = key => {
95
93
  if (this.manager) {
96
94
  this.manager.unmount(key);
97
95
  } else {
@@ -100,13 +98,10 @@ class PortalHost extends React.Component {
100
98
  key
101
99
  });
102
100
  }
103
- });
104
-
105
- _defineProperty(this, "nextKey", 0);
106
-
107
- _defineProperty(this, "queue", []);
101
+ };
108
102
 
109
- _defineProperty(this, "manager", void 0);
103
+ this.nextKey = 0;
104
+ this.queue = [];
110
105
  }
111
106
 
112
107
  componentDidMount() {
@@ -152,6 +147,23 @@ class PortalHost extends React.Component {
152
147
 
153
148
  }
154
149
 
150
+ exports.default = PortalHost;
151
+ PortalHost.displayName = "Portal.Host";
152
+
153
+ const styles = _reactNative.StyleSheet.create({
154
+ container: {
155
+ flex: 1
156
+ }
157
+ }); style: styles.container,
158
+ collapsable: false,
159
+ pointerEvents: "box-none"
160
+ }, this.props.children), /*#__PURE__*/React.createElement(_PortalManager.default, {
161
+ ref: this.setManager
162
+ }));
163
+ }
164
+
165
+ }
166
+
155
167
  exports.default = PortalHost;
156
168
 
157
169
  _defineProperty(PortalHost, "displayName", "Portal.Host");
@@ -13,10 +13,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
 
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
-
18
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
-
20
16
  const INDETERMINATE_WIDTH_FACTOR = 0.3;
21
17
  const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
22
18
 
@@ -24,7 +20,7 @@ class ProgressBar extends _react.Component {
24
20
  constructor(props) {
25
21
  super(props);
26
22
 
27
- _defineProperty(this, "handleLayout", event => {
23
+ this.handleLayout = event => {
28
24
  const {
29
25
  width = 150,
30
26
  onLayout
@@ -39,7 +35,7 @@ class ProgressBar extends _react.Component {
39
35
  if (onLayout) {
40
36
  onLayout(event);
41
37
  }
42
- });
38
+ };
43
39
 
44
40
  const {
45
41
  progress: progressP = 0,
@@ -93,7 +89,6 @@ class ProgressBar extends _react.Component {
93
89
  _reactNative.Animated[animationType](this.state.progress, { ...animationConfig,
94
90
  toValue: progress,
95
91
  velocity: 0,
96
- //adjust this value if animation fails - velocity is required
97
92
  useNativeDriver
98
93
  }).start();
99
94
  } else {
@@ -165,6 +160,27 @@ class ProgressBar extends _react.Component {
165
160
  })
166
161
  }]
167
162
  };
163
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
164
+ style: [containerStyle, style],
165
+ onLayout: this.handleLayout,
166
+ ...restProps
167
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
168
+ style: progressStyle
169
+ }), children);
170
+ }
171
+
172
+ }
173
+
174
+ exports.default = ProgressBar;h / (_reactNative.I18nManager.isRTL ? 2 : -2), 0]
175
+ })
176
+ }, {
177
+ // Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
178
+ scaleX: this.state.progress.interpolate({
179
+ inputRange: [0, 1],
180
+ outputRange: [0.0001, 1]
181
+ })
182
+ }]
183
+ };
168
184
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
169
185
  style: [containerStyle, style],
170
186
  onLayout: this.handleLayout
@@ -21,8 +21,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
- 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); }
25
-
26
24
  const RadioButton = _ref => {
27
25
  let {
28
26
  Icon,
@@ -51,7 +49,20 @@ const RadioButton = _ref => {
51
49
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
52
50
  };
53
51
 
54
- return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
52
+ return /*#__PURE__*/React.createElement(_IconButton.default, {
53
+ Icon: Icon,
54
+ icon: isSelected ? selectedIcon : unselectedIcon,
55
+ color: isSelected ? color : unselectedColor,
56
+ disabled: disabled,
57
+ onPress: handlePress,
58
+ size: size,
59
+ style: style,
60
+ ...rest
61
+ });
62
+ };
63
+
64
+ var _default = RadioButton;
65
+ exports.default = _default;turn /*#__PURE__*/React.createElement(_IconButton.default, _extends({
55
66
  Icon: Icon,
56
67
  icon: isSelected ? selectedIcon : unselectedIcon,
57
68
  color: isSelected ? color : unselectedColor,
@@ -17,8 +17,6 @@ var _RadioButtonGroup = _interopRequireDefault(require("./RadioButtonGroup"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- 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); }
21
-
22
20
  const RadioButtonFieldGroup = _ref => {
23
21
  let {
24
22
  label,
@@ -35,6 +33,17 @@ const RadioButtonFieldGroup = _ref => {
35
33
  fontSize: theme.typography.headline4.fontSize,
36
34
  color: theme.typography.headline4.color
37
35
  }, labelStyle]
36
+ }, label), /*#__PURE__*/_react.default.createElement(_RadioButtonGroup.default, {
37
+ theme: theme,
38
+ ...rest
39
+ }, children));
40
+ };
41
+
42
+ var _default = (0, _theming.withTheme)(RadioButtonFieldGroup);
43
+
44
+ exports.default = _default; fontSize: theme.typography.headline4.fontSize,
45
+ color: theme.typography.headline4.color
46
+ }, labelStyle]
38
47
  }, label), /*#__PURE__*/_react.default.createElement(_RadioButtonGroup.default, _extends({
39
48
  theme: theme
40
49
  }, rest), children));