@draftbit/core 47.1.1-ee131b.2 → 47.2.1-a33ddf.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 (1058) hide show
  1. package/lib/commonjs/Provider.js +2 -1
  2. package/lib/commonjs/Provider.js.map +1 -0
  3. package/lib/commonjs/components/Accordion/AccordionGroup.js +2 -1
  4. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -0
  5. package/lib/commonjs/components/Accordion/AccordionItem.js +2 -1
  6. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -0
  7. package/lib/commonjs/components/Accordion/index.js +2 -1
  8. package/lib/commonjs/components/Accordion/index.js.map +1 -0
  9. package/lib/commonjs/components/ActionSheet/ActionSheet.js +2 -1
  10. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -0
  11. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +2 -1
  12. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -0
  13. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +2 -1
  14. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -0
  15. package/lib/commonjs/components/ActionSheet/index.js +2 -1
  16. package/lib/commonjs/components/ActionSheet/index.js.map +1 -0
  17. package/lib/commonjs/components/AnimatedCircularProgress.js +2 -1
  18. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -0
  19. package/lib/commonjs/components/AspectRatio.js +2 -1
  20. package/lib/commonjs/components/AspectRatio.js.map +1 -0
  21. package/lib/commonjs/components/AvatarEdit.js +2 -1
  22. package/lib/commonjs/components/AvatarEdit.js.map +1 -0
  23. package/lib/commonjs/components/Banner.js +2 -1
  24. package/lib/commonjs/components/Banner.js.map +1 -0
  25. package/lib/commonjs/components/BottomSheet/BottomSheet.js +89 -0
  26. package/lib/commonjs/components/BottomSheet/BottomSheet.js.map +1 -0
  27. package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +424 -0
  28. package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js.map +1 -0
  29. package/lib/commonjs/components/BottomSheet/index.js +14 -0
  30. package/lib/commonjs/components/BottomSheet/index.js.map +1 -0
  31. package/lib/commonjs/components/Button.js +2 -1
  32. package/lib/commonjs/components/Button.js.map +1 -0
  33. package/lib/commonjs/components/Card.js +2 -1
  34. package/lib/commonjs/components/Card.js.map +1 -0
  35. package/lib/commonjs/components/Checkbox/Checkbox.js +2 -1
  36. package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -0
  37. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +2 -1
  38. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -0
  39. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +2 -1
  40. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -0
  41. package/lib/commonjs/components/Checkbox/CheckboxRow.js +25 -7
  42. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -0
  43. package/lib/commonjs/components/Checkbox/context.js +2 -1
  44. package/lib/commonjs/components/Checkbox/context.js.map +1 -0
  45. package/lib/commonjs/components/Checkbox/index.js +2 -1
  46. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  47. package/lib/commonjs/components/CircleImage.js +2 -1
  48. package/lib/commonjs/components/CircleImage.js.map +1 -0
  49. package/lib/commonjs/components/CircularProgress.js +2 -1
  50. package/lib/commonjs/components/CircularProgress.js.map +1 -0
  51. package/lib/commonjs/components/Config.js +2 -1
  52. package/lib/commonjs/components/Config.js.map +1 -0
  53. package/lib/commonjs/components/Container.js +2 -1
  54. package/lib/commonjs/components/Container.js.map +1 -0
  55. package/lib/commonjs/components/DatePicker/DatePicker.js +16 -2
  56. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -0
  57. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +2 -1
  58. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -0
  59. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +2 -1
  60. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -0
  61. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +2 -1
  62. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -0
  63. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +109 -0
  64. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js.map +1 -0
  65. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +34 -0
  66. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js.map +1 -0
  67. package/lib/commonjs/components/DeckSwiper/index.js +21 -0
  68. package/lib/commonjs/components/DeckSwiper/index.js.map +1 -0
  69. package/lib/commonjs/components/DeprecatedButton.js +2 -1
  70. package/lib/commonjs/components/DeprecatedButton.js.map +1 -0
  71. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -1
  72. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -0
  73. package/lib/commonjs/components/DeprecatedFAB.js +2 -1
  74. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -0
  75. package/lib/commonjs/components/Divider.js +2 -1
  76. package/lib/commonjs/components/Divider.js.map +1 -0
  77. package/lib/commonjs/components/Elevation.js +2 -1
  78. package/lib/commonjs/components/Elevation.js.map +1 -0
  79. package/lib/commonjs/components/FAB.js +2 -1
  80. package/lib/commonjs/components/FAB.js.map +1 -0
  81. package/lib/commonjs/components/FieldSearchBarFull.js +2 -1
  82. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -0
  83. package/lib/commonjs/components/FormRow.js +2 -1
  84. package/lib/commonjs/components/FormRow.js.map +1 -0
  85. package/lib/commonjs/components/IconButton.js +2 -1
  86. package/lib/commonjs/components/IconButton.js.map +1 -0
  87. package/lib/commonjs/components/Image.js +2 -1
  88. package/lib/commonjs/components/Image.js.map +1 -0
  89. package/lib/commonjs/components/Justification.js +3 -3
  90. package/lib/commonjs/components/Justification.js.map +1 -0
  91. package/lib/commonjs/components/Layout.js +2 -1
  92. package/lib/commonjs/components/Layout.js.map +1 -0
  93. package/lib/commonjs/components/{HeaderLarge.js → Markdown.js} +18 -25
  94. package/lib/commonjs/components/Markdown.js.map +1 -0
  95. package/lib/commonjs/components/NumberInput.js +13 -12
  96. package/lib/commonjs/components/NumberInput.js.map +1 -0
  97. package/lib/commonjs/components/Picker/Picker.js +46 -26
  98. package/lib/commonjs/components/Picker/Picker.js.map +1 -0
  99. package/lib/commonjs/components/Picker/PickerComponent.android.js +2 -1
  100. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -0
  101. package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -1
  102. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -0
  103. package/lib/commonjs/components/Picker/PickerComponent.web.js +2 -1
  104. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -0
  105. package/lib/commonjs/components/Picker/PickerTypes.js +2 -1
  106. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -0
  107. package/lib/commonjs/components/Portal/Portal.js +2 -1
  108. package/lib/commonjs/components/Portal/Portal.js.map +1 -0
  109. package/lib/commonjs/components/Portal/PortalConsumer.js +2 -23
  110. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -0
  111. package/lib/commonjs/components/Portal/PortalHost.js +2 -2
  112. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -0
  113. package/lib/commonjs/components/Portal/PortalManager.js +2 -1
  114. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -0
  115. package/lib/commonjs/components/Pressable.js +2 -1
  116. package/lib/commonjs/components/Pressable.js.map +1 -0
  117. package/lib/commonjs/components/ProgressBar.js +2 -1
  118. package/lib/commonjs/components/ProgressBar.js.map +1 -0
  119. package/lib/commonjs/components/ProgressCircle.js +2 -1
  120. package/lib/commonjs/components/ProgressCircle.js.map +1 -0
  121. package/lib/commonjs/components/ProgressIndicator.js +2 -1
  122. package/lib/commonjs/components/ProgressIndicator.js.map +1 -0
  123. package/lib/commonjs/components/RadioButton/RadioButton.js +2 -1
  124. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -0
  125. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +2 -1
  126. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -0
  127. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +2 -1
  128. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -0
  129. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +2 -1
  130. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -0
  131. package/lib/commonjs/components/RadioButton/context.js +2 -1
  132. package/lib/commonjs/components/RadioButton/context.js.map +1 -0
  133. package/lib/commonjs/components/RadioButton/index.js +2 -1
  134. package/lib/commonjs/components/RadioButton/index.js.map +1 -0
  135. package/lib/commonjs/components/ResizeMode.js +3 -3
  136. package/lib/commonjs/components/ResizeMode.js.map +1 -0
  137. package/lib/commonjs/components/Row.js +2 -1
  138. package/lib/commonjs/components/Row.js.map +1 -0
  139. package/lib/commonjs/components/RowBodyIcon.js +2 -1
  140. package/lib/commonjs/components/RowBodyIcon.js.map +1 -0
  141. package/lib/commonjs/components/RowHeadlineImageCaption.js +2 -1
  142. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -0
  143. package/lib/commonjs/components/RowHeadlineImageIcon.js +2 -1
  144. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -0
  145. package/lib/commonjs/components/SVG.js +2 -1
  146. package/lib/commonjs/components/SVG.js.map +1 -0
  147. package/lib/commonjs/components/ScreenContainer.js +4 -2
  148. package/lib/commonjs/components/ScreenContainer.js.map +1 -0
  149. package/lib/commonjs/components/Shadow.js +56 -0
  150. package/lib/commonjs/components/Shadow.js.map +1 -0
  151. package/lib/commonjs/components/Slider.js +2 -1
  152. package/lib/commonjs/components/Slider.js.map +1 -0
  153. package/lib/commonjs/components/StarRating.js +2 -1
  154. package/lib/commonjs/components/StarRating.js.map +1 -0
  155. package/lib/commonjs/components/StepIndicator.js +2 -1
  156. package/lib/commonjs/components/StepIndicator.js.map +1 -0
  157. package/lib/commonjs/components/Stepper.js +2 -1
  158. package/lib/commonjs/components/Stepper.js.map +1 -0
  159. package/lib/commonjs/components/Surface.js +3 -2
  160. package/lib/commonjs/components/Surface.js.map +1 -0
  161. package/lib/commonjs/components/Swiper/Swiper.js +2 -1
  162. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -0
  163. package/lib/commonjs/components/Swiper/SwiperItem.js +2 -1
  164. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -0
  165. package/lib/commonjs/components/Swiper/index.js +2 -1
  166. package/lib/commonjs/components/Swiper/index.js.map +1 -0
  167. package/lib/commonjs/components/Switch.js +2 -1
  168. package/lib/commonjs/components/Switch.js.map +1 -0
  169. package/lib/commonjs/components/TabView/TabView.js +117 -0
  170. package/lib/commonjs/components/TabView/TabView.js.map +1 -0
  171. package/lib/commonjs/components/TabView/TabViewItem.js +26 -0
  172. package/lib/commonjs/components/TabView/TabViewItem.js.map +1 -0
  173. package/lib/commonjs/components/TabView/index.js +21 -0
  174. package/lib/commonjs/components/TabView/index.js.map +1 -0
  175. package/lib/commonjs/components/Table/Table.js +123 -0
  176. package/lib/commonjs/components/Table/Table.js.map +1 -0
  177. package/lib/commonjs/components/Table/TableCell.js +50 -0
  178. package/lib/commonjs/components/Table/TableCell.js.map +1 -0
  179. package/lib/commonjs/components/Table/TableCommon.js +31 -0
  180. package/lib/commonjs/components/Table/TableCommon.js.map +1 -0
  181. package/lib/commonjs/components/Table/TableRow.js +62 -0
  182. package/lib/commonjs/components/Table/TableRow.js.map +1 -0
  183. package/lib/commonjs/components/Table/index.js +28 -0
  184. package/lib/commonjs/components/Table/index.js.map +1 -0
  185. package/lib/commonjs/components/Text.js +2 -2
  186. package/lib/commonjs/components/Text.js.map +1 -0
  187. package/lib/commonjs/components/TextField.js +2 -1
  188. package/lib/commonjs/components/TextField.js.map +1 -0
  189. package/lib/commonjs/components/ToggleButton.js +2 -1
  190. package/lib/commonjs/components/ToggleButton.js.map +1 -0
  191. package/lib/commonjs/components/Touchable.js +2 -1
  192. package/lib/commonjs/components/Touchable.js.map +1 -0
  193. package/lib/commonjs/components/Touchable.web.js +2 -1
  194. package/lib/commonjs/components/Touchable.web.js.map +1 -0
  195. package/lib/commonjs/components/Typography.js +2 -1
  196. package/lib/commonjs/components/Typography.js.map +1 -0
  197. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +41 -0
  198. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js.map +1 -0
  199. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js +33 -0
  200. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js.map +1 -0
  201. package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js +6 -0
  202. package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js.map +1 -0
  203. package/lib/commonjs/components/YoutubePlayer/index.js +14 -0
  204. package/lib/commonjs/components/YoutubePlayer/index.js.map +1 -0
  205. package/lib/commonjs/components/useAuthState.js +2 -1
  206. package/lib/commonjs/components/useAuthState.js.map +1 -0
  207. package/lib/commonjs/constants.js +2 -1
  208. package/lib/commonjs/constants.js.map +1 -0
  209. package/lib/commonjs/hooks.js +2 -1
  210. package/lib/commonjs/hooks.js.map +1 -0
  211. package/lib/commonjs/index.js +75 -57
  212. package/lib/commonjs/index.js.map +1 -0
  213. package/lib/commonjs/interfaces/Icon.js +2 -1
  214. package/lib/commonjs/interfaces/Icon.js.map +1 -0
  215. package/lib/commonjs/mappings/Accordion.js +3 -1
  216. package/lib/commonjs/mappings/Accordion.js.map +1 -0
  217. package/lib/commonjs/mappings/AccordionItem.js +3 -1
  218. package/lib/commonjs/mappings/AccordionItem.js.map +1 -0
  219. package/lib/commonjs/mappings/ActionSheet.js +3 -1
  220. package/lib/commonjs/mappings/ActionSheet.js.map +1 -0
  221. package/lib/commonjs/mappings/ActionSheetCancel.js +3 -1
  222. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -0
  223. package/lib/commonjs/mappings/ActionSheetItem.js +3 -1
  224. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -0
  225. package/lib/commonjs/mappings/ActivityIndicator.js +2 -1
  226. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -0
  227. package/lib/commonjs/mappings/AudioPlayer.js +2 -1
  228. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -0
  229. package/lib/commonjs/mappings/AvatarEdit.js +2 -1
  230. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -0
  231. package/lib/commonjs/mappings/Banner.js +2 -1
  232. package/lib/commonjs/mappings/Banner.js.map +1 -0
  233. package/lib/commonjs/mappings/BlurView.js +2 -1
  234. package/lib/commonjs/mappings/BlurView.js.map +1 -0
  235. package/lib/commonjs/mappings/BottomSheet.js +71 -0
  236. package/lib/commonjs/mappings/BottomSheet.js.map +1 -0
  237. package/lib/commonjs/mappings/Button.js +2 -1
  238. package/lib/commonjs/mappings/Button.js.map +1 -0
  239. package/lib/commonjs/mappings/Card.js +2 -1
  240. package/lib/commonjs/mappings/Card.js.map +1 -0
  241. package/lib/commonjs/mappings/CardBlock.js +2 -1
  242. package/lib/commonjs/mappings/CardBlock.js.map +1 -0
  243. package/lib/commonjs/mappings/CardContainer.js +2 -1
  244. package/lib/commonjs/mappings/CardContainer.js.map +1 -0
  245. package/lib/commonjs/mappings/CardContainerRating.js +2 -1
  246. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -0
  247. package/lib/commonjs/mappings/CardContainerShortImage.js +2 -1
  248. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -0
  249. package/lib/commonjs/mappings/CardInline.js +2 -1
  250. package/lib/commonjs/mappings/CardInline.js.map +1 -0
  251. package/lib/commonjs/mappings/Carousel.js +2 -1
  252. package/lib/commonjs/mappings/Carousel.js.map +1 -0
  253. package/lib/commonjs/mappings/Checkbox.js +2 -1
  254. package/lib/commonjs/mappings/Checkbox.js.map +1 -0
  255. package/lib/commonjs/mappings/CheckboxGroup.js +2 -1
  256. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -0
  257. package/lib/commonjs/mappings/CheckboxRow.js +2 -1
  258. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -0
  259. package/lib/commonjs/mappings/CircleImage.js +2 -1
  260. package/lib/commonjs/mappings/CircleImage.js.map +1 -0
  261. package/lib/commonjs/mappings/Container.js +2 -1
  262. package/lib/commonjs/mappings/Container.js.map +1 -0
  263. package/lib/commonjs/mappings/CustomCode.js +2 -1
  264. package/lib/commonjs/mappings/CustomCode.js.map +1 -0
  265. package/lib/commonjs/mappings/DatePicker.js +10 -3
  266. package/lib/commonjs/mappings/DatePicker.js.map +1 -0
  267. package/lib/commonjs/mappings/DeckSwiper.js +56 -0
  268. package/lib/commonjs/mappings/DeckSwiper.js.map +1 -0
  269. package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
  270. package/lib/commonjs/mappings/DeckSwiperCard.js.map +1 -0
  271. package/lib/commonjs/mappings/Divider.js +2 -1
  272. package/lib/commonjs/mappings/Divider.js.map +1 -0
  273. package/lib/commonjs/mappings/FAB.js +2 -1
  274. package/lib/commonjs/mappings/FAB.js.map +1 -0
  275. package/lib/commonjs/mappings/Fetch.js +2 -1
  276. package/lib/commonjs/mappings/Fetch.js.map +1 -0
  277. package/lib/commonjs/mappings/FieldSearchBarFull.js +2 -1
  278. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -0
  279. package/lib/commonjs/mappings/FlashList.js +4 -9
  280. package/lib/commonjs/mappings/FlashList.js.map +1 -0
  281. package/lib/commonjs/mappings/FlatList.js +2 -1
  282. package/lib/commonjs/mappings/FlatList.js.map +1 -0
  283. package/lib/commonjs/mappings/HeaderLarge.js +2 -1
  284. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -0
  285. package/lib/commonjs/mappings/HeaderMedium.js +2 -1
  286. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -0
  287. package/lib/commonjs/mappings/HeaderOverline.js +2 -1
  288. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -0
  289. package/lib/commonjs/mappings/Icon.js +2 -1
  290. package/lib/commonjs/mappings/Icon.js.map +1 -0
  291. package/lib/commonjs/mappings/IconButton.js +2 -1
  292. package/lib/commonjs/mappings/IconButton.js.map +1 -0
  293. package/lib/commonjs/mappings/Image.js +2 -1
  294. package/lib/commonjs/mappings/Image.js.map +1 -0
  295. package/lib/commonjs/mappings/ImageBackground.js +2 -1
  296. package/lib/commonjs/mappings/ImageBackground.js.map +1 -0
  297. package/lib/commonjs/mappings/KeyboardAvoidingView.js +2 -1
  298. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -0
  299. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +2 -1
  300. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -0
  301. package/lib/commonjs/mappings/Layout.js +2 -1
  302. package/lib/commonjs/mappings/Layout.js.map +1 -0
  303. package/lib/commonjs/mappings/LinearGradient.js +3 -1
  304. package/lib/commonjs/mappings/LinearGradient.js.map +1 -0
  305. package/lib/commonjs/mappings/MapCallout.js +3 -1
  306. package/lib/commonjs/mappings/MapCallout.js.map +1 -0
  307. package/lib/commonjs/mappings/MapMarker.js +18 -1
  308. package/lib/commonjs/mappings/MapMarker.js.map +1 -0
  309. package/lib/commonjs/mappings/MapView.js +8 -1
  310. package/lib/commonjs/mappings/MapView.js.map +1 -0
  311. package/lib/commonjs/mappings/Markdown.js +28 -0
  312. package/lib/commonjs/mappings/Markdown.js.map +1 -0
  313. package/lib/commonjs/mappings/Modal.js +2 -1
  314. package/lib/commonjs/mappings/Modal.js.map +1 -0
  315. package/lib/commonjs/mappings/NumberInput.js +2 -1
  316. package/lib/commonjs/mappings/NumberInput.js.map +1 -0
  317. package/lib/commonjs/mappings/Picker.js +7 -1
  318. package/lib/commonjs/mappings/Picker.js.map +1 -0
  319. package/lib/commonjs/mappings/ProgressBar.js +2 -1
  320. package/lib/commonjs/mappings/ProgressBar.js.map +1 -0
  321. package/lib/commonjs/mappings/ProgressCircle.js +2 -1
  322. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -0
  323. package/lib/commonjs/mappings/ProgressIndicator.js +2 -1
  324. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -0
  325. package/lib/commonjs/mappings/RadioButton.js +2 -1
  326. package/lib/commonjs/mappings/RadioButton.js.map +1 -0
  327. package/lib/commonjs/mappings/RadioButtonGroup.js +2 -1
  328. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -0
  329. package/lib/commonjs/mappings/RadioButtonRow.js +2 -1
  330. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -0
  331. package/lib/commonjs/mappings/RowBodyIcon.js +2 -1
  332. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -0
  333. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +2 -1
  334. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -0
  335. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +2 -1
  336. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -0
  337. package/lib/commonjs/mappings/SVG.js +2 -1
  338. package/lib/commonjs/mappings/SVG.js.map +1 -0
  339. package/lib/commonjs/mappings/SafeAreaView.js +2 -1
  340. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -0
  341. package/lib/commonjs/mappings/ScrollView.js +2 -1
  342. package/lib/commonjs/mappings/ScrollView.js.map +1 -0
  343. package/lib/commonjs/mappings/Shadow.js +103 -0
  344. package/lib/commonjs/mappings/Shadow.js.map +1 -0
  345. package/lib/commonjs/mappings/Slider.js +2 -1
  346. package/lib/commonjs/mappings/Slider.js.map +1 -0
  347. package/lib/commonjs/mappings/StarRating.js +2 -1
  348. package/lib/commonjs/mappings/StarRating.js.map +1 -0
  349. package/lib/commonjs/mappings/Stepper.js +2 -1
  350. package/lib/commonjs/mappings/Stepper.js.map +1 -0
  351. package/lib/commonjs/mappings/Surface.js +2 -1
  352. package/lib/commonjs/mappings/Surface.js.map +1 -0
  353. package/lib/commonjs/mappings/Swiper.js +3 -1
  354. package/lib/commonjs/mappings/Swiper.js.map +1 -0
  355. package/lib/commonjs/mappings/SwiperItem.js +4 -2
  356. package/lib/commonjs/mappings/SwiperItem.js.map +1 -0
  357. package/lib/commonjs/mappings/Switch.js +2 -1
  358. package/lib/commonjs/mappings/Switch.js.map +1 -0
  359. package/lib/commonjs/mappings/TabView.js +75 -0
  360. package/lib/commonjs/mappings/TabView.js.map +1 -0
  361. package/lib/commonjs/mappings/TabViewItem.js +38 -0
  362. package/lib/commonjs/mappings/TabViewItem.js.map +1 -0
  363. package/lib/commonjs/mappings/Table.js +141 -0
  364. package/lib/commonjs/mappings/Table.js.map +1 -0
  365. package/lib/commonjs/mappings/Text.js +2 -1
  366. package/lib/commonjs/mappings/Text.js.map +1 -0
  367. package/lib/commonjs/mappings/TextArea.js +3 -1
  368. package/lib/commonjs/mappings/TextArea.js.map +1 -0
  369. package/lib/commonjs/mappings/TextField.js +3 -1
  370. package/lib/commonjs/mappings/TextField.js.map +1 -0
  371. package/lib/commonjs/mappings/TextInput.js +2 -1
  372. package/lib/commonjs/mappings/TextInput.js.map +1 -0
  373. package/lib/commonjs/mappings/ToggleButton.js +2 -1
  374. package/lib/commonjs/mappings/ToggleButton.js.map +1 -0
  375. package/lib/commonjs/mappings/Touchable.js +2 -1
  376. package/lib/commonjs/mappings/Touchable.js.map +1 -0
  377. package/lib/commonjs/mappings/Video.js +2 -1
  378. package/lib/commonjs/mappings/Video.js.map +1 -0
  379. package/lib/commonjs/mappings/View.js +2 -1
  380. package/lib/commonjs/mappings/View.js.map +1 -0
  381. package/lib/commonjs/mappings/WebView.js +2 -1
  382. package/lib/commonjs/mappings/WebView.js.map +1 -0
  383. package/lib/commonjs/mappings/YoutubePlayer.js +39 -0
  384. package/lib/commonjs/mappings/YoutubePlayer.js.map +1 -0
  385. package/lib/commonjs/styles/DarkTheme.js +2 -1
  386. package/lib/commonjs/styles/DarkTheme.js.map +1 -0
  387. package/lib/commonjs/styles/DefaultTheme.js +2 -1
  388. package/lib/commonjs/styles/DefaultTheme.js.map +1 -0
  389. package/lib/commonjs/styles/fonts.js +2 -1
  390. package/lib/commonjs/styles/fonts.js.map +1 -0
  391. package/lib/commonjs/styles/overlay.js +2 -1
  392. package/lib/commonjs/styles/overlay.js.map +1 -0
  393. package/lib/commonjs/styles/shadow.js +2 -1
  394. package/lib/commonjs/styles/shadow.js.map +1 -0
  395. package/lib/commonjs/theming.js +2 -1
  396. package/lib/commonjs/theming.js.map +1 -0
  397. package/lib/commonjs/utilities.js +11 -2
  398. package/lib/commonjs/utilities.js.map +1 -0
  399. package/lib/module/Provider.js +2 -1
  400. package/lib/module/Provider.js.map +1 -0
  401. package/lib/module/components/Accordion/AccordionGroup.js +2 -1
  402. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -0
  403. package/lib/module/components/Accordion/AccordionItem.js +2 -1
  404. package/lib/module/components/Accordion/AccordionItem.js.map +1 -0
  405. package/lib/module/components/Accordion/index.js +2 -1
  406. package/lib/module/components/Accordion/index.js.map +1 -0
  407. package/lib/module/components/ActionSheet/ActionSheet.js +2 -1
  408. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -0
  409. package/lib/module/components/ActionSheet/ActionSheetCancel.js +2 -1
  410. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -0
  411. package/lib/module/components/ActionSheet/ActionSheetItem.js +2 -1
  412. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -0
  413. package/lib/module/components/ActionSheet/index.js +2 -1
  414. package/lib/module/components/ActionSheet/index.js.map +1 -0
  415. package/lib/module/components/AnimatedCircularProgress.js +2 -1
  416. package/lib/module/components/AnimatedCircularProgress.js.map +1 -0
  417. package/lib/module/components/AspectRatio.js +2 -1
  418. package/lib/module/components/AspectRatio.js.map +1 -0
  419. package/lib/module/components/AvatarEdit.js +2 -1
  420. package/lib/module/components/AvatarEdit.js.map +1 -0
  421. package/lib/module/components/Banner.js +2 -1
  422. package/lib/module/components/Banner.js.map +1 -0
  423. package/lib/module/components/BottomSheet/BottomSheet.js +81 -0
  424. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
  425. package/lib/module/components/BottomSheet/BottomSheetComponent.js +430 -0
  426. package/lib/module/components/BottomSheet/BottomSheetComponent.js.map +1 -0
  427. package/lib/module/components/BottomSheet/index.js +2 -0
  428. package/lib/module/components/BottomSheet/index.js.map +1 -0
  429. package/lib/module/components/Button.js +2 -1
  430. package/lib/module/components/Button.js.map +1 -0
  431. package/lib/module/components/Card.js +2 -1
  432. package/lib/module/components/Card.js.map +1 -0
  433. package/lib/module/components/Checkbox/Checkbox.js +2 -1
  434. package/lib/module/components/Checkbox/Checkbox.js.map +1 -0
  435. package/lib/module/components/Checkbox/CheckboxGroup.js +2 -1
  436. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -0
  437. package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -1
  438. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -0
  439. package/lib/module/components/Checkbox/CheckboxRow.js +2 -1
  440. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -0
  441. package/lib/module/components/Checkbox/context.js +2 -1
  442. package/lib/module/components/Checkbox/context.js.map +1 -0
  443. package/lib/module/components/Checkbox/index.js +2 -1
  444. package/lib/module/components/Checkbox/index.js.map +1 -0
  445. package/lib/module/components/CircleImage.js +2 -1
  446. package/lib/module/components/CircleImage.js.map +1 -0
  447. package/lib/module/components/CircularProgress.js +2 -1
  448. package/lib/module/components/CircularProgress.js.map +1 -0
  449. package/lib/module/components/Config.js +2 -1
  450. package/lib/module/components/Config.js.map +1 -0
  451. package/lib/module/components/Container.js +2 -1
  452. package/lib/module/components/Container.js.map +1 -0
  453. package/lib/module/components/DatePicker/DatePicker.js +17 -3
  454. package/lib/module/components/DatePicker/DatePicker.js.map +1 -0
  455. package/lib/module/components/DatePicker/DatePickerComponent.js +2 -1
  456. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -0
  457. package/lib/module/components/DatePicker/DatePickerComponent.web.js +2 -1
  458. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -0
  459. package/lib/module/components/DatePicker/DatePickerComponentType.js +2 -1
  460. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -0
  461. package/lib/module/components/DeckSwiper/DeckSwiper.js +101 -0
  462. package/lib/module/components/DeckSwiper/DeckSwiper.js.map +1 -0
  463. package/lib/module/components/DeckSwiper/DeckSwiperCard.js +26 -0
  464. package/lib/module/components/DeckSwiper/DeckSwiperCard.js.map +1 -0
  465. package/lib/module/components/DeckSwiper/index.js +3 -0
  466. package/lib/module/components/DeckSwiper/index.js.map +1 -0
  467. package/lib/module/components/DeprecatedButton.js +2 -1
  468. package/lib/module/components/DeprecatedButton.js.map +1 -0
  469. package/lib/module/components/DeprecatedCardWrapper.js +2 -1
  470. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -0
  471. package/lib/module/components/DeprecatedFAB.js +2 -1
  472. package/lib/module/components/DeprecatedFAB.js.map +1 -0
  473. package/lib/module/components/Divider.js +2 -1
  474. package/lib/module/components/Divider.js.map +1 -0
  475. package/lib/module/components/Elevation.js +2 -1
  476. package/lib/module/components/Elevation.js.map +1 -0
  477. package/lib/module/components/FAB.js +2 -1
  478. package/lib/module/components/FAB.js.map +1 -0
  479. package/lib/module/components/FieldSearchBarFull.js +2 -1
  480. package/lib/module/components/FieldSearchBarFull.js.map +1 -0
  481. package/lib/module/components/FormRow.js +2 -1
  482. package/lib/module/components/FormRow.js.map +1 -0
  483. package/lib/module/components/IconButton.js +2 -1
  484. package/lib/module/components/IconButton.js.map +1 -0
  485. package/lib/module/components/Image.js +2 -1
  486. package/lib/module/components/Image.js.map +1 -0
  487. package/lib/module/components/Justification.js +2 -1
  488. package/lib/module/components/Justification.js.map +1 -0
  489. package/lib/module/components/Layout.js +2 -1
  490. package/lib/module/components/Layout.js.map +1 -0
  491. package/lib/module/components/Markdown.js +21 -0
  492. package/lib/module/components/Markdown.js.map +1 -0
  493. package/lib/module/components/NumberInput.js +13 -12
  494. package/lib/module/components/NumberInput.js.map +1 -0
  495. package/lib/module/components/Picker/Picker.js +47 -27
  496. package/lib/module/components/Picker/Picker.js.map +1 -0
  497. package/lib/module/components/Picker/PickerComponent.android.js +2 -1
  498. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -0
  499. package/lib/module/components/Picker/PickerComponent.ios.js +2 -1
  500. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -0
  501. package/lib/module/components/Picker/PickerComponent.web.js +2 -1
  502. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -0
  503. package/lib/module/components/Picker/PickerTypes.js +2 -1
  504. package/lib/module/components/Picker/PickerTypes.js.map +1 -0
  505. package/lib/module/components/Portal/Portal.js +2 -1
  506. package/lib/module/components/Portal/Portal.js.map +1 -0
  507. package/lib/module/components/Portal/PortalConsumer.js +2 -8
  508. package/lib/module/components/Portal/PortalConsumer.js.map +1 -0
  509. package/lib/module/components/Portal/PortalHost.js +2 -2
  510. package/lib/module/components/Portal/PortalHost.js.map +1 -0
  511. package/lib/module/components/Portal/PortalManager.js +2 -1
  512. package/lib/module/components/Portal/PortalManager.js.map +1 -0
  513. package/lib/module/components/Pressable.js +2 -1
  514. package/lib/module/components/Pressable.js.map +1 -0
  515. package/lib/module/components/ProgressBar.js +2 -1
  516. package/lib/module/components/ProgressBar.js.map +1 -0
  517. package/lib/module/components/ProgressCircle.js +2 -1
  518. package/lib/module/components/ProgressCircle.js.map +1 -0
  519. package/lib/module/components/ProgressIndicator.js +2 -1
  520. package/lib/module/components/ProgressIndicator.js.map +1 -0
  521. package/lib/module/components/RadioButton/RadioButton.js +2 -1
  522. package/lib/module/components/RadioButton/RadioButton.js.map +1 -0
  523. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +2 -1
  524. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -0
  525. package/lib/module/components/RadioButton/RadioButtonGroup.js +2 -1
  526. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -0
  527. package/lib/module/components/RadioButton/RadioButtonRow.js +2 -1
  528. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -0
  529. package/lib/module/components/RadioButton/context.js +2 -1
  530. package/lib/module/components/RadioButton/context.js.map +1 -0
  531. package/lib/module/components/RadioButton/index.js +2 -1
  532. package/lib/module/components/RadioButton/index.js.map +1 -0
  533. package/lib/module/components/ResizeMode.js +2 -1
  534. package/lib/module/components/ResizeMode.js.map +1 -0
  535. package/lib/module/components/Row.js +2 -1
  536. package/lib/module/components/Row.js.map +1 -0
  537. package/lib/module/components/RowBodyIcon.js +2 -1
  538. package/lib/module/components/RowBodyIcon.js.map +1 -0
  539. package/lib/module/components/RowHeadlineImageCaption.js +2 -1
  540. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -0
  541. package/lib/module/components/RowHeadlineImageIcon.js +2 -1
  542. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -0
  543. package/lib/module/components/SVG.js +2 -1
  544. package/lib/module/components/SVG.js.map +1 -0
  545. package/lib/module/components/ScreenContainer.js +4 -2
  546. package/lib/module/components/ScreenContainer.js.map +1 -0
  547. package/lib/module/components/Shadow.js +48 -0
  548. package/lib/module/components/Shadow.js.map +1 -0
  549. package/lib/module/components/Slider.js +2 -1
  550. package/lib/module/components/Slider.js.map +1 -0
  551. package/lib/module/components/StarRating.js +2 -1
  552. package/lib/module/components/StarRating.js.map +1 -0
  553. package/lib/module/components/StepIndicator.js +2 -1
  554. package/lib/module/components/StepIndicator.js.map +1 -0
  555. package/lib/module/components/Stepper.js +2 -1
  556. package/lib/module/components/Stepper.js.map +1 -0
  557. package/lib/module/components/Surface.js +3 -2
  558. package/lib/module/components/Surface.js.map +1 -0
  559. package/lib/module/components/Swiper/Swiper.js +2 -1
  560. package/lib/module/components/Swiper/Swiper.js.map +1 -0
  561. package/lib/module/components/Swiper/SwiperItem.js +2 -1
  562. package/lib/module/components/Swiper/SwiperItem.js.map +1 -0
  563. package/lib/module/components/Swiper/index.js +2 -1
  564. package/lib/module/components/Swiper/index.js.map +1 -0
  565. package/lib/module/components/Switch.js +2 -1
  566. package/lib/module/components/Switch.js.map +1 -0
  567. package/lib/module/components/TabView/TabView.js +108 -0
  568. package/lib/module/components/TabView/TabView.js.map +1 -0
  569. package/lib/module/components/TabView/TabViewItem.js +21 -0
  570. package/lib/module/components/TabView/TabViewItem.js.map +1 -0
  571. package/lib/module/components/TabView/index.js +3 -0
  572. package/lib/module/components/TabView/index.js.map +1 -0
  573. package/lib/module/components/Table/Table.js +115 -0
  574. package/lib/module/components/Table/Table.js.map +1 -0
  575. package/lib/module/components/Table/TableCell.js +42 -0
  576. package/lib/module/components/Table/TableCell.js.map +1 -0
  577. package/lib/module/components/Table/TableCommon.js +22 -0
  578. package/lib/module/components/Table/TableCommon.js.map +1 -0
  579. package/lib/module/components/Table/TableRow.js +54 -0
  580. package/lib/module/components/Table/TableRow.js.map +1 -0
  581. package/lib/module/components/Table/index.js +4 -0
  582. package/lib/module/components/Table/index.js.map +1 -0
  583. package/lib/module/components/Text.js +2 -2
  584. package/lib/module/components/Text.js.map +1 -0
  585. package/lib/module/components/TextField.js +2 -1
  586. package/lib/module/components/TextField.js.map +1 -0
  587. package/lib/module/components/ToggleButton.js +2 -1
  588. package/lib/module/components/ToggleButton.js.map +1 -0
  589. package/lib/module/components/Touchable.js +2 -1
  590. package/lib/module/components/Touchable.js.map +1 -0
  591. package/lib/module/components/Touchable.web.js +2 -1
  592. package/lib/module/components/Touchable.web.js.map +1 -0
  593. package/lib/module/components/Typography.js +2 -1
  594. package/lib/module/components/Typography.js.map +1 -0
  595. package/lib/module/components/YoutubePlayer/YoutubePlayer.js +33 -0
  596. package/lib/module/components/YoutubePlayer/YoutubePlayer.js.map +1 -0
  597. package/lib/module/components/YoutubePlayer/YoutubePlayer.native.js +25 -0
  598. package/lib/module/components/YoutubePlayer/YoutubePlayer.native.js.map +1 -0
  599. package/lib/module/components/YoutubePlayer/YoutubePlayerProps.js +2 -0
  600. package/lib/module/components/YoutubePlayer/YoutubePlayerProps.js.map +1 -0
  601. package/lib/module/components/YoutubePlayer/index.js +2 -0
  602. package/lib/module/components/YoutubePlayer/index.js.map +1 -0
  603. package/lib/module/components/useAuthState.js +2 -1
  604. package/lib/module/components/useAuthState.js.map +1 -0
  605. package/lib/module/constants.js +2 -1
  606. package/lib/module/constants.js.map +1 -0
  607. package/lib/module/hooks.js +2 -1
  608. package/lib/module/hooks.js.map +1 -0
  609. package/lib/module/index.js +9 -9
  610. package/lib/module/index.js.map +1 -0
  611. package/lib/module/interfaces/Icon.js +2 -1
  612. package/lib/module/interfaces/Icon.js.map +1 -0
  613. package/lib/module/mappings/Accordion.js +4 -2
  614. package/lib/module/mappings/Accordion.js.map +1 -0
  615. package/lib/module/mappings/AccordionItem.js +4 -2
  616. package/lib/module/mappings/AccordionItem.js.map +1 -0
  617. package/lib/module/mappings/ActionSheet.js +4 -2
  618. package/lib/module/mappings/ActionSheet.js.map +1 -0
  619. package/lib/module/mappings/ActionSheetCancel.js +4 -2
  620. package/lib/module/mappings/ActionSheetCancel.js.map +1 -0
  621. package/lib/module/mappings/ActionSheetItem.js +4 -2
  622. package/lib/module/mappings/ActionSheetItem.js.map +1 -0
  623. package/lib/module/mappings/ActivityIndicator.js +2 -1
  624. package/lib/module/mappings/ActivityIndicator.js.map +1 -0
  625. package/lib/module/mappings/AudioPlayer.js +2 -1
  626. package/lib/module/mappings/AudioPlayer.js.map +1 -0
  627. package/lib/module/mappings/AvatarEdit.js +2 -1
  628. package/lib/module/mappings/AvatarEdit.js.map +1 -0
  629. package/lib/module/mappings/Banner.js +2 -1
  630. package/lib/module/mappings/Banner.js.map +1 -0
  631. package/lib/module/mappings/BlurView.js +2 -1
  632. package/lib/module/mappings/BlurView.js.map +1 -0
  633. package/lib/module/mappings/BottomSheet.js +64 -0
  634. package/lib/module/mappings/BottomSheet.js.map +1 -0
  635. package/lib/module/mappings/Button.js +2 -1
  636. package/lib/module/mappings/Button.js.map +1 -0
  637. package/lib/module/mappings/Card.js +2 -1
  638. package/lib/module/mappings/Card.js.map +1 -0
  639. package/lib/module/mappings/CardBlock.js +2 -1
  640. package/lib/module/mappings/CardBlock.js.map +1 -0
  641. package/lib/module/mappings/CardContainer.js +2 -1
  642. package/lib/module/mappings/CardContainer.js.map +1 -0
  643. package/lib/module/mappings/CardContainerRating.js +2 -1
  644. package/lib/module/mappings/CardContainerRating.js.map +1 -0
  645. package/lib/module/mappings/CardContainerShortImage.js +2 -1
  646. package/lib/module/mappings/CardContainerShortImage.js.map +1 -0
  647. package/lib/module/mappings/CardInline.js +2 -1
  648. package/lib/module/mappings/CardInline.js.map +1 -0
  649. package/lib/module/mappings/Carousel.js +2 -1
  650. package/lib/module/mappings/Carousel.js.map +1 -0
  651. package/lib/module/mappings/Checkbox.js +2 -1
  652. package/lib/module/mappings/Checkbox.js.map +1 -0
  653. package/lib/module/mappings/CheckboxGroup.js +2 -1
  654. package/lib/module/mappings/CheckboxGroup.js.map +1 -0
  655. package/lib/module/mappings/CheckboxRow.js +2 -1
  656. package/lib/module/mappings/CheckboxRow.js.map +1 -0
  657. package/lib/module/mappings/CircleImage.js +2 -1
  658. package/lib/module/mappings/CircleImage.js.map +1 -0
  659. package/lib/module/mappings/Container.js +2 -1
  660. package/lib/module/mappings/Container.js.map +1 -0
  661. package/lib/module/mappings/CustomCode.js +2 -1
  662. package/lib/module/mappings/CustomCode.js.map +1 -0
  663. package/lib/module/mappings/DatePicker.js +11 -4
  664. package/lib/module/mappings/DatePicker.js.map +1 -0
  665. package/lib/module/mappings/DeckSwiper.js +49 -0
  666. package/lib/module/mappings/DeckSwiper.js.map +1 -0
  667. package/lib/module/mappings/DeckSwiperCard.js +16 -0
  668. package/lib/module/mappings/DeckSwiperCard.js.map +1 -0
  669. package/lib/module/mappings/Divider.js +2 -1
  670. package/lib/module/mappings/Divider.js.map +1 -0
  671. package/lib/module/mappings/FAB.js +2 -1
  672. package/lib/module/mappings/FAB.js.map +1 -0
  673. package/lib/module/mappings/Fetch.js +2 -1
  674. package/lib/module/mappings/Fetch.js.map +1 -0
  675. package/lib/module/mappings/FieldSearchBarFull.js +2 -1
  676. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -0
  677. package/lib/module/mappings/FlashList.js +5 -10
  678. package/lib/module/mappings/FlashList.js.map +1 -0
  679. package/lib/module/mappings/FlatList.js +2 -1
  680. package/lib/module/mappings/FlatList.js.map +1 -0
  681. package/lib/module/mappings/HeaderLarge.js +2 -1
  682. package/lib/module/mappings/HeaderLarge.js.map +1 -0
  683. package/lib/module/mappings/HeaderMedium.js +2 -1
  684. package/lib/module/mappings/HeaderMedium.js.map +1 -0
  685. package/lib/module/mappings/HeaderOverline.js +2 -1
  686. package/lib/module/mappings/HeaderOverline.js.map +1 -0
  687. package/lib/module/mappings/Icon.js +2 -1
  688. package/lib/module/mappings/Icon.js.map +1 -0
  689. package/lib/module/mappings/IconButton.js +2 -1
  690. package/lib/module/mappings/IconButton.js.map +1 -0
  691. package/lib/module/mappings/Image.js +2 -1
  692. package/lib/module/mappings/Image.js.map +1 -0
  693. package/lib/module/mappings/ImageBackground.js +2 -1
  694. package/lib/module/mappings/ImageBackground.js.map +1 -0
  695. package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
  696. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -0
  697. package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
  698. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -0
  699. package/lib/module/mappings/Layout.js +2 -1
  700. package/lib/module/mappings/Layout.js.map +1 -0
  701. package/lib/module/mappings/LinearGradient.js +4 -2
  702. package/lib/module/mappings/LinearGradient.js.map +1 -0
  703. package/lib/module/mappings/MapCallout.js +4 -2
  704. package/lib/module/mappings/MapCallout.js.map +1 -0
  705. package/lib/module/mappings/MapMarker.js +19 -2
  706. package/lib/module/mappings/MapMarker.js.map +1 -0
  707. package/lib/module/mappings/MapView.js +9 -2
  708. package/lib/module/mappings/MapView.js.map +1 -0
  709. package/lib/module/mappings/Markdown.js +21 -0
  710. package/lib/module/mappings/Markdown.js.map +1 -0
  711. package/lib/module/mappings/Modal.js +2 -1
  712. package/lib/module/mappings/Modal.js.map +1 -0
  713. package/lib/module/mappings/NumberInput.js +2 -1
  714. package/lib/module/mappings/NumberInput.js.map +1 -0
  715. package/lib/module/mappings/Picker.js +8 -2
  716. package/lib/module/mappings/Picker.js.map +1 -0
  717. package/lib/module/mappings/ProgressBar.js +2 -1
  718. package/lib/module/mappings/ProgressBar.js.map +1 -0
  719. package/lib/module/mappings/ProgressCircle.js +2 -1
  720. package/lib/module/mappings/ProgressCircle.js.map +1 -0
  721. package/lib/module/mappings/ProgressIndicator.js +2 -1
  722. package/lib/module/mappings/ProgressIndicator.js.map +1 -0
  723. package/lib/module/mappings/RadioButton.js +2 -1
  724. package/lib/module/mappings/RadioButton.js.map +1 -0
  725. package/lib/module/mappings/RadioButtonGroup.js +2 -1
  726. package/lib/module/mappings/RadioButtonGroup.js.map +1 -0
  727. package/lib/module/mappings/RadioButtonRow.js +2 -1
  728. package/lib/module/mappings/RadioButtonRow.js.map +1 -0
  729. package/lib/module/mappings/RowBodyIcon.js +2 -1
  730. package/lib/module/mappings/RowBodyIcon.js.map +1 -0
  731. package/lib/module/mappings/RowHeadlineImageCaption.js +2 -1
  732. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -0
  733. package/lib/module/mappings/RowHeadlineImageIcon.js +2 -1
  734. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -0
  735. package/lib/module/mappings/SVG.js +2 -1
  736. package/lib/module/mappings/SVG.js.map +1 -0
  737. package/lib/module/mappings/SafeAreaView.js +2 -1
  738. package/lib/module/mappings/SafeAreaView.js.map +1 -0
  739. package/lib/module/mappings/ScrollView.js +2 -1
  740. package/lib/module/mappings/ScrollView.js.map +1 -0
  741. package/lib/module/mappings/Shadow.js +96 -0
  742. package/lib/module/mappings/Shadow.js.map +1 -0
  743. package/lib/module/mappings/Slider.js +2 -1
  744. package/lib/module/mappings/Slider.js.map +1 -0
  745. package/lib/module/mappings/StarRating.js +2 -1
  746. package/lib/module/mappings/StarRating.js.map +1 -0
  747. package/lib/module/mappings/Stepper.js +2 -1
  748. package/lib/module/mappings/Stepper.js.map +1 -0
  749. package/lib/module/mappings/Surface.js +2 -1
  750. package/lib/module/mappings/Surface.js.map +1 -0
  751. package/lib/module/mappings/Swiper.js +4 -2
  752. package/lib/module/mappings/Swiper.js.map +1 -0
  753. package/lib/module/mappings/SwiperItem.js +5 -3
  754. package/lib/module/mappings/SwiperItem.js.map +1 -0
  755. package/lib/module/mappings/Switch.js +2 -1
  756. package/lib/module/mappings/Switch.js.map +1 -0
  757. package/lib/module/mappings/TabView.js +68 -0
  758. package/lib/module/mappings/TabView.js.map +1 -0
  759. package/lib/module/mappings/TabViewItem.js +31 -0
  760. package/lib/module/mappings/TabViewItem.js.map +1 -0
  761. package/lib/module/mappings/Table.js +134 -0
  762. package/lib/module/mappings/Table.js.map +1 -0
  763. package/lib/module/mappings/Text.js +2 -1
  764. package/lib/module/mappings/Text.js.map +1 -0
  765. package/lib/module/mappings/TextArea.js +4 -2
  766. package/lib/module/mappings/TextArea.js.map +1 -0
  767. package/lib/module/mappings/TextField.js +3 -1
  768. package/lib/module/mappings/TextField.js.map +1 -0
  769. package/lib/module/mappings/TextInput.js +2 -1
  770. package/lib/module/mappings/TextInput.js.map +1 -0
  771. package/lib/module/mappings/ToggleButton.js +2 -1
  772. package/lib/module/mappings/ToggleButton.js.map +1 -0
  773. package/lib/module/mappings/Touchable.js +2 -1
  774. package/lib/module/mappings/Touchable.js.map +1 -0
  775. package/lib/module/mappings/Video.js +2 -1
  776. package/lib/module/mappings/Video.js.map +1 -0
  777. package/lib/module/mappings/View.js +2 -1
  778. package/lib/module/mappings/View.js.map +1 -0
  779. package/lib/module/mappings/WebView.js +2 -1
  780. package/lib/module/mappings/WebView.js.map +1 -0
  781. package/lib/module/mappings/YoutubePlayer.js +32 -0
  782. package/lib/module/mappings/YoutubePlayer.js.map +1 -0
  783. package/lib/module/styles/DarkTheme.js +2 -1
  784. package/lib/module/styles/DarkTheme.js.map +1 -0
  785. package/lib/module/styles/DefaultTheme.js +2 -1
  786. package/lib/module/styles/DefaultTheme.js.map +1 -0
  787. package/lib/module/styles/fonts.js +2 -1
  788. package/lib/module/styles/fonts.js.map +1 -0
  789. package/lib/module/styles/overlay.js +2 -1
  790. package/lib/module/styles/overlay.js.map +1 -0
  791. package/lib/module/styles/shadow.js +2 -1
  792. package/lib/module/styles/shadow.js.map +1 -0
  793. package/lib/module/theming.js +2 -1
  794. package/lib/module/theming.js.map +1 -0
  795. package/lib/module/utilities.js +8 -1
  796. package/lib/module/utilities.js.map +1 -0
  797. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +20 -0
  798. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
  799. package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +170 -0
  800. package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts.map +1 -0
  801. package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
  802. package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
  803. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
  804. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  805. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +21 -0
  806. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -0
  807. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +12 -0
  808. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +1 -0
  809. package/lib/typescript/src/components/DeckSwiper/index.d.ts +3 -0
  810. package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +1 -0
  811. package/lib/typescript/src/components/Markdown.d.ts +8 -0
  812. package/lib/typescript/src/components/Markdown.d.ts.map +1 -0
  813. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  814. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  815. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
  816. package/lib/typescript/src/components/Shadow.d.ts +24 -0
  817. package/lib/typescript/src/components/Shadow.d.ts.map +1 -0
  818. package/lib/typescript/src/components/TabView/TabView.d.ts +26 -0
  819. package/lib/typescript/src/components/TabView/TabView.d.ts.map +1 -0
  820. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +11 -0
  821. package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +1 -0
  822. package/lib/typescript/src/components/TabView/index.d.ts +3 -0
  823. package/lib/typescript/src/components/TabView/index.d.ts.map +1 -0
  824. package/lib/typescript/src/components/Table/Table.d.ts +19 -0
  825. package/lib/typescript/src/components/Table/Table.d.ts.map +1 -0
  826. package/lib/typescript/src/components/Table/TableCell.d.ts +9 -0
  827. package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -0
  828. package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
  829. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
  830. package/lib/typescript/src/components/{HeaderLarge.d.ts → Table/TableRow.d.ts} +7 -10
  831. package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -0
  832. package/lib/typescript/src/components/Table/index.d.ts +4 -0
  833. package/lib/typescript/src/components/Table/index.d.ts.map +1 -0
  834. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts +5 -0
  835. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts.map +1 -0
  836. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts +5 -0
  837. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts.map +1 -0
  838. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +8 -0
  839. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts.map +1 -0
  840. package/lib/typescript/src/components/YoutubePlayer/index.d.ts +2 -0
  841. package/lib/typescript/src/components/YoutubePlayer/index.d.ts.map +1 -0
  842. package/lib/typescript/src/index.d.ts +7 -8
  843. package/lib/typescript/src/index.d.ts.map +1 -1
  844. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  845. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -1
  846. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  847. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -1
  848. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  849. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
  850. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  851. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
  852. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  853. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
  854. package/lib/typescript/src/mappings/BottomSheet.d.ts +115 -0
  855. package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -0
  856. package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
  857. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  858. package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
  859. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
  860. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +15 -0
  861. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
  862. package/lib/typescript/src/mappings/FlashList.d.ts +0 -6
  863. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  864. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  865. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -1
  866. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  867. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
  868. package/lib/typescript/src/mappings/MapMarker.d.ts +33 -0
  869. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
  870. package/lib/typescript/src/mappings/MapView.d.ts +12 -0
  871. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
  872. package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
  873. package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
  874. package/lib/typescript/src/mappings/Picker.d.ts +10 -0
  875. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -1
  876. package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
  877. package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
  878. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  879. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  880. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  881. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -1
  882. package/lib/typescript/src/mappings/TabView.d.ts +123 -0
  883. package/lib/typescript/src/mappings/TabView.d.ts.map +1 -0
  884. package/lib/typescript/src/mappings/TabViewItem.d.ts +25 -0
  885. package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -0
  886. package/lib/typescript/src/mappings/Table.d.ts +337 -0
  887. package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
  888. package/lib/typescript/src/mappings/TextArea.d.ts +1 -0
  889. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  890. package/lib/typescript/src/mappings/TextField.d.ts +1 -1
  891. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  892. package/lib/typescript/src/mappings/YoutubePlayer.d.ts +27 -0
  893. package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -0
  894. package/lib/typescript/src/utilities.d.ts +2 -0
  895. package/lib/typescript/src/utilities.d.ts.map +1 -1
  896. package/package.json +21 -19
  897. package/src/components/BottomSheet/BottomSheet.js +56 -0
  898. package/src/components/BottomSheet/BottomSheet.tsx +120 -0
  899. package/src/components/BottomSheet/BottomSheetComponent.js +437 -0
  900. package/src/components/BottomSheet/BottomSheetComponent.tsx +895 -0
  901. package/src/components/BottomSheet/index.js +1 -0
  902. package/src/components/BottomSheet/index.ts +1 -0
  903. package/src/components/DatePicker/DatePicker.js +8 -3
  904. package/src/components/DatePicker/DatePicker.tsx +10 -1
  905. package/src/components/DeckSwiper/DeckSwiper.js +65 -0
  906. package/src/components/DeckSwiper/DeckSwiper.tsx +136 -0
  907. package/src/components/DeckSwiper/DeckSwiperCard.js +20 -0
  908. package/src/components/DeckSwiper/DeckSwiperCard.tsx +37 -0
  909. package/src/components/DeckSwiper/index.js +2 -0
  910. package/src/components/DeckSwiper/index.tsx +2 -0
  911. package/src/components/Markdown.js +10 -0
  912. package/src/components/Markdown.tsx +22 -0
  913. package/src/components/NumberInput.js +10 -10
  914. package/src/components/NumberInput.tsx +12 -12
  915. package/src/components/Picker/Picker.js +41 -21
  916. package/src/components/Picker/Picker.tsx +54 -25
  917. package/src/components/ScreenContainer.js +2 -1
  918. package/src/components/ScreenContainer.tsx +2 -1
  919. package/src/components/Shadow.js +25 -0
  920. package/src/components/Shadow.tsx +74 -0
  921. package/src/components/Surface.js +1 -1
  922. package/src/components/Surface.tsx +1 -1
  923. package/src/components/TabView/TabView.js +54 -0
  924. package/src/components/TabView/TabView.tsx +147 -0
  925. package/src/components/TabView/TabViewItem.js +11 -0
  926. package/src/components/TabView/TabViewItem.tsx +25 -0
  927. package/src/components/TabView/index.js +2 -0
  928. package/src/components/TabView/index.tsx +2 -0
  929. package/src/components/Table/Table.js +93 -0
  930. package/src/components/Table/Table.tsx +176 -0
  931. package/src/components/Table/TableCell.js +31 -0
  932. package/src/components/Table/TableCell.tsx +63 -0
  933. package/src/components/Table/TableCommon.js +12 -0
  934. package/src/components/Table/TableCommon.ts +40 -0
  935. package/src/components/Table/TableRow.js +37 -0
  936. package/src/components/Table/TableRow.tsx +77 -0
  937. package/src/components/Table/index.js +3 -0
  938. package/src/components/Table/index.tsx +3 -0
  939. package/src/components/YoutubePlayer/YoutubePlayer.js +20 -0
  940. package/src/components/YoutubePlayer/YoutubePlayer.native.js +9 -0
  941. package/src/components/YoutubePlayer/YoutubePlayer.native.tsx +27 -0
  942. package/src/components/YoutubePlayer/YoutubePlayer.tsx +36 -0
  943. package/src/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  944. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +8 -0
  945. package/src/components/YoutubePlayer/index.js +1 -0
  946. package/src/components/YoutubePlayer/index.ts +1 -0
  947. package/src/index.js +7 -8
  948. package/src/index.tsx +13 -8
  949. package/src/mappings/Accordion.js +10 -1
  950. package/src/mappings/Accordion.ts +10 -0
  951. package/src/mappings/AccordionItem.js +2 -1
  952. package/src/mappings/AccordionItem.ts +2 -0
  953. package/src/mappings/ActionSheet.js +5 -1
  954. package/src/mappings/ActionSheet.ts +10 -1
  955. package/src/mappings/ActionSheetCancel.js +5 -1
  956. package/src/mappings/ActionSheetCancel.ts +5 -0
  957. package/src/mappings/ActionSheetItem.js +5 -1
  958. package/src/mappings/ActionSheetItem.ts +5 -0
  959. package/src/mappings/BottomSheet.js +63 -0
  960. package/src/mappings/BottomSheet.ts +77 -0
  961. package/src/mappings/DatePicker.js +8 -2
  962. package/src/mappings/DatePicker.ts +8 -1
  963. package/src/mappings/DeckSwiper.js +52 -0
  964. package/src/mappings/DeckSwiper.ts +61 -0
  965. package/src/mappings/DeckSwiperCard.js +23 -0
  966. package/src/mappings/DeckSwiperCard.ts +24 -0
  967. package/src/mappings/FlashList.js +9 -9
  968. package/src/mappings/FlashList.ts +9 -9
  969. package/src/mappings/LinearGradient.js +6 -1
  970. package/src/mappings/LinearGradient.ts +6 -0
  971. package/src/mappings/MapCallout.js +6 -1
  972. package/src/mappings/MapCallout.ts +6 -0
  973. package/src/mappings/MapMarker.js +21 -1
  974. package/src/mappings/MapMarker.ts +26 -0
  975. package/src/mappings/MapView.js +7 -1
  976. package/src/mappings/MapView.ts +10 -0
  977. package/src/mappings/Markdown.js +25 -0
  978. package/src/mappings/Markdown.ts +32 -0
  979. package/src/mappings/Picker.js +6 -1
  980. package/src/mappings/Picker.ts +6 -0
  981. package/src/mappings/Shadow.js +101 -0
  982. package/src/mappings/Shadow.ts +110 -0
  983. package/src/mappings/Swiper.js +10 -1
  984. package/src/mappings/Swiper.ts +10 -0
  985. package/src/mappings/SwiperItem.js +2 -1
  986. package/src/mappings/SwiperItem.ts +5 -1
  987. package/src/mappings/TabView.js +75 -0
  988. package/src/mappings/TabView.ts +85 -0
  989. package/src/mappings/TabViewItem.js +30 -0
  990. package/src/mappings/TabViewItem.ts +38 -0
  991. package/src/mappings/Table.js +150 -0
  992. package/src/mappings/Table.ts +170 -0
  993. package/src/mappings/TextArea.js +10 -1
  994. package/src/mappings/TextArea.ts +10 -0
  995. package/src/mappings/TextField.js +9 -0
  996. package/src/mappings/TextField.ts +9 -0
  997. package/src/mappings/YoutubePlayer.js +31 -0
  998. package/src/mappings/YoutubePlayer.ts +37 -0
  999. package/src/utilities.js +9 -0
  1000. package/src/utilities.ts +19 -0
  1001. package/lib/commonjs/components/CardBlock.js +0 -106
  1002. package/lib/commonjs/components/CardContainer.js +0 -129
  1003. package/lib/commonjs/components/CardContainerRating.js +0 -133
  1004. package/lib/commonjs/components/CardContainerShortImage.js +0 -84
  1005. package/lib/commonjs/components/CardInline.js +0 -91
  1006. package/lib/commonjs/components/Carousel.js +0 -130
  1007. package/lib/commonjs/components/Header.js +0 -82
  1008. package/lib/commonjs/components/HeaderMedium.js +0 -38
  1009. package/lib/commonjs/components/HeaderOverline.js +0 -39
  1010. package/lib/module/components/CardBlock.js +0 -98
  1011. package/lib/module/components/CardContainer.js +0 -121
  1012. package/lib/module/components/CardContainerRating.js +0 -125
  1013. package/lib/module/components/CardContainerShortImage.js +0 -76
  1014. package/lib/module/components/CardInline.js +0 -82
  1015. package/lib/module/components/Carousel.js +0 -120
  1016. package/lib/module/components/Header.js +0 -72
  1017. package/lib/module/components/HeaderLarge.js +0 -28
  1018. package/lib/module/components/HeaderMedium.js +0 -28
  1019. package/lib/module/components/HeaderOverline.js +0 -29
  1020. package/lib/typescript/src/components/CardBlock.d.ts +0 -21
  1021. package/lib/typescript/src/components/CardBlock.d.ts.map +0 -1
  1022. package/lib/typescript/src/components/CardContainer.d.ts +0 -23
  1023. package/lib/typescript/src/components/CardContainer.d.ts.map +0 -1
  1024. package/lib/typescript/src/components/CardContainerRating.d.ts +0 -24
  1025. package/lib/typescript/src/components/CardContainerRating.d.ts.map +0 -1
  1026. package/lib/typescript/src/components/CardContainerShortImage.d.ts +0 -19
  1027. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +0 -1
  1028. package/lib/typescript/src/components/CardInline.d.ts +0 -20
  1029. package/lib/typescript/src/components/CardInline.d.ts.map +0 -1
  1030. package/lib/typescript/src/components/Carousel.d.ts +0 -15
  1031. package/lib/typescript/src/components/Carousel.d.ts.map +0 -1
  1032. package/lib/typescript/src/components/Header.d.ts +0 -20
  1033. package/lib/typescript/src/components/Header.d.ts.map +0 -1
  1034. package/lib/typescript/src/components/HeaderLarge.d.ts.map +0 -1
  1035. package/lib/typescript/src/components/HeaderMedium.d.ts +0 -17
  1036. package/lib/typescript/src/components/HeaderMedium.d.ts.map +0 -1
  1037. package/lib/typescript/src/components/HeaderOverline.d.ts +0 -17
  1038. package/lib/typescript/src/components/HeaderOverline.d.ts.map +0 -1
  1039. package/src/components/CardBlock.js +0 -54
  1040. package/src/components/CardBlock.tsx +0 -127
  1041. package/src/components/CardContainer.js +0 -69
  1042. package/src/components/CardContainer.tsx +0 -165
  1043. package/src/components/CardContainerRating.js +0 -79
  1044. package/src/components/CardContainerRating.tsx +0 -175
  1045. package/src/components/CardContainerShortImage.js +0 -33
  1046. package/src/components/CardContainerShortImage.tsx +0 -101
  1047. package/src/components/CardInline.js +0 -36
  1048. package/src/components/CardInline.tsx +0 -93
  1049. package/src/components/Carousel.js +0 -68
  1050. package/src/components/Carousel.tsx +0 -134
  1051. package/src/components/Header.js +0 -44
  1052. package/src/components/Header.tsx +0 -105
  1053. package/src/components/HeaderLarge.js +0 -7
  1054. package/src/components/HeaderLarge.tsx +0 -40
  1055. package/src/components/HeaderMedium.js +0 -7
  1056. package/src/components/HeaderMedium.tsx +0 -41
  1057. package/src/components/HeaderOverline.js +0 -7
  1058. package/src/components/HeaderOverline.tsx +0 -42
@@ -0,0 +1 @@
1
+ export { default as BottomSheet } from "./BottomSheet";
@@ -0,0 +1 @@
1
+ export { default as BottomSheet } from "./BottomSheet";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput, } from "react-native";
2
+ import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput, Keyboard, } from "react-native";
3
3
  import { useSafeAreaInsets } from "react-native-safe-area-context";
4
4
  import dateFormat from "dateformat";
5
5
  import { withTheme } from "../../theming";
@@ -25,7 +25,7 @@ const MONTHS = [
25
25
  "November",
26
26
  "December",
27
27
  ];
28
- const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disabledOpacity }, date, onDateChange = () => { }, defaultValue, disabled = false, mode = "date", format, type = "underline", leftIconName, rightIconName, leftIconMode = "inset", label, labelSize, labelColor, placeholder, borderColor: inputBorderColor, borderColorActive: inputBorderColorActive, ...props }) => {
28
+ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disabledOpacity }, date, onDateChange = () => { }, defaultValue, disabled = false, mode = "date", format, type = "underline", leftIconName, rightIconName, leftIconMode = "inset", label, labelSize, labelColor, placeholder, borderColor: inputBorderColor, borderColorActive: inputBorderColorActive, autoDismissKeyboard = true, ...props }) => {
29
29
  const [value, setValue] = React.useState(date || defaultValue);
30
30
  React.useEffect(() => {
31
31
  if (defaultValue != null) {
@@ -113,6 +113,11 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
113
113
  clearTimeout(_showPlaceholder());
114
114
  };
115
115
  }, [focused, label, placeholder]);
116
+ React.useEffect(() => {
117
+ if (pickerVisible && autoDismissKeyboard) {
118
+ Keyboard.dismiss();
119
+ }
120
+ }, [pickerVisible, autoDismissKeyboard]);
116
121
  const _handleFocus = () => {
117
122
  if (disabled) {
118
123
  return;
@@ -132,7 +137,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
132
137
  ? labelSize
133
138
  : typography.caption.fontSize;
134
139
  const hasActiveOutline = focused;
135
- let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
140
+ let inputTextColor, activeColor, underlineColor, borderColor = inputBorderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
136
141
  inputTextColor = colors.strong;
137
142
  if (disabled) {
138
143
  activeColor = colors.light;
@@ -12,6 +12,7 @@ import {
12
12
  I18nManager,
13
13
  LayoutChangeEvent,
14
14
  TextInput as NativeTextInput,
15
+ Keyboard,
15
16
  } from "react-native";
16
17
  import { useSafeAreaInsets } from "react-native-safe-area-context";
17
18
 
@@ -55,6 +56,7 @@ type Props = {
55
56
  rightIconName?: string;
56
57
  borderColor?: string;
57
58
  borderColorActive?: string;
59
+ autoDismissKeyboard?: boolean;
58
60
  } & IconSlot &
59
61
  TextInputProps;
60
62
 
@@ -93,6 +95,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
93
95
  placeholder,
94
96
  borderColor: inputBorderColor,
95
97
  borderColorActive: inputBorderColorActive,
98
+ autoDismissKeyboard = true,
96
99
  ...props
97
100
  }) => {
98
101
  const [value, setValue] = React.useState<any>(date || defaultValue);
@@ -204,6 +207,12 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
204
207
  };
205
208
  }, [focused, label, placeholder]);
206
209
 
210
+ React.useEffect(() => {
211
+ if (pickerVisible && autoDismissKeyboard) {
212
+ Keyboard.dismiss();
213
+ }
214
+ }, [pickerVisible, autoDismissKeyboard]);
215
+
207
216
  const _handleFocus = () => {
208
217
  if (disabled) {
209
218
  return;
@@ -232,7 +241,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
232
241
  let inputTextColor,
233
242
  activeColor,
234
243
  underlineColor,
235
- borderColor,
244
+ borderColor = inputBorderColor,
236
245
  placeholderColor,
237
246
  containerStyle: StyleProp<ViewStyle>,
238
247
  backgroundColor,
@@ -0,0 +1,65 @@
1
+ import React from "react";
2
+ import { StyleSheet, View } from "react-native";
3
+ import DeckSwiperComponent from "react-native-deck-swiper";
4
+ const DeckSwiper = ({ onIndexChanged, onEndReached, startCardIndex = 0, infiniteSwiping = false, verticalEnabled = true, horizontalEnabled = true, visibleCardCount = 1, data, keyExtractor, renderItem, style, children, }) => {
5
+ //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
6
+ if ((data && !renderItem) || (renderItem && !data)) {
7
+ throw new Error("'renderItem' and 'data' need to both be provided to lazily render. Either remove them entirley or include both");
8
+ }
9
+ if (data && renderItem && children) {
10
+ console.warn("'children' of DeckSwiper ignored due to usage of 'data' and 'renderItem'");
11
+ }
12
+ const childrenArray = React.useMemo(() => React.Children.toArray(children), [children]);
13
+ // an array of indices based on children count
14
+ const cardsFillerData = React.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
15
+ const cardsData = data || cardsFillerData;
16
+ const renderCard = (card, index) => {
17
+ if (renderItem) {
18
+ return renderItem({ item: card, index });
19
+ }
20
+ else {
21
+ return React.createElement(React.Fragment, null, childrenArray[index]);
22
+ }
23
+ };
24
+ const renderFirstCard = () => {
25
+ if (cardsData.length) {
26
+ return renderCard(cardsData[0], 0);
27
+ }
28
+ return undefined;
29
+ };
30
+ const cardKeyExtractor = (card) => {
31
+ if (keyExtractor) {
32
+ return keyExtractor(card);
33
+ }
34
+ else {
35
+ return card === null || card === void 0 ? void 0 : card.toString();
36
+ }
37
+ };
38
+ /**
39
+ * By default react-native-deck-swiper positions everything with absolute position.
40
+ * To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
41
+ *
42
+ *
43
+ * Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
44
+ * To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
45
+ * This effectivley makes the default height of the container be the height of the first card.
46
+ */
47
+ return (React.createElement(View, null,
48
+ React.createElement(View, { style: styles.containerHeightFiller }, renderFirstCard()),
49
+ React.createElement(DeckSwiperComponent, { cards: cardsData, renderCard: renderCard, keyExtractor: cardKeyExtractor, containerStyle: StyleSheet.flatten([styles.cardsContainer, style]), cardStyle: styles.card, onSwiped: onIndexChanged, onSwipedAll: onEndReached, cardIndex: startCardIndex, infinite: infiniteSwiping, verticalSwipe: verticalEnabled, horizontalSwipe: horizontalEnabled, showSecondCard: visibleCardCount > 1, stackSize: visibleCardCount, backgroundColor: "transparent", cardVerticalMargin: 0, cardHorizontalMargin: 0 })));
50
+ };
51
+ const styles = StyleSheet.create({
52
+ cardsContainer: {
53
+ position: "absolute",
54
+ },
55
+ card: {
56
+ left: 0,
57
+ right: 0,
58
+ width: "auto",
59
+ height: "auto",
60
+ },
61
+ containerHeightFiller: {
62
+ opacity: 0.0,
63
+ },
64
+ });
65
+ export default DeckSwiper;
@@ -0,0 +1,136 @@
1
+ import React from "react";
2
+ import { StyleProp, ViewStyle, StyleSheet, View } from "react-native";
3
+ import DeckSwiperComponent from "react-native-deck-swiper";
4
+
5
+ export interface DeckSwiperProps<T> {
6
+ onIndexChanged?: (index: number) => void;
7
+ onEndReached?: () => void;
8
+ startCardIndex?: number;
9
+ infiniteSwiping?: boolean;
10
+ verticalEnabled?: boolean;
11
+ horizontalEnabled?: boolean;
12
+ visibleCardCount?: number;
13
+ data?: Array<T>;
14
+ keyExtractor?: (item: T) => string;
15
+ renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;
16
+ style?: StyleProp<ViewStyle>;
17
+ }
18
+
19
+ const DeckSwiper = <T extends object>({
20
+ onIndexChanged,
21
+ onEndReached,
22
+ startCardIndex = 0,
23
+ infiniteSwiping = false,
24
+ verticalEnabled = true,
25
+ horizontalEnabled = true,
26
+ visibleCardCount = 1,
27
+ data,
28
+ keyExtractor,
29
+ renderItem,
30
+ style,
31
+ children,
32
+ }: React.PropsWithChildren<DeckSwiperProps<T>>) => {
33
+ //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
34
+ if ((data && !renderItem) || (renderItem && !data)) {
35
+ throw new Error(
36
+ "'renderItem' and 'data' need to both be provided to lazily render. Either remove them entirley or include both"
37
+ );
38
+ }
39
+
40
+ if (data && renderItem && children) {
41
+ console.warn(
42
+ "'children' of DeckSwiper ignored due to usage of 'data' and 'renderItem'"
43
+ );
44
+ }
45
+
46
+ const childrenArray = React.useMemo(
47
+ () => React.Children.toArray(children),
48
+ [children]
49
+ );
50
+
51
+ // an array of indices based on children count
52
+ const cardsFillerData = React.useMemo(
53
+ () => Array.from(Array(childrenArray.length).keys()),
54
+ [childrenArray]
55
+ );
56
+
57
+ const cardsData = data || cardsFillerData;
58
+
59
+ const renderCard = (card: any, index: number): JSX.Element => {
60
+ if (renderItem) {
61
+ return renderItem({ item: card, index });
62
+ } else {
63
+ return <>{childrenArray[index]}</>;
64
+ }
65
+ };
66
+
67
+ const renderFirstCard = (): JSX.Element | undefined => {
68
+ if (cardsData.length) {
69
+ return renderCard(cardsData[0], 0);
70
+ }
71
+ return undefined;
72
+ };
73
+
74
+ const cardKeyExtractor = (card: any) => {
75
+ if (keyExtractor) {
76
+ return keyExtractor(card);
77
+ } else {
78
+ return card?.toString();
79
+ }
80
+ };
81
+
82
+ /**
83
+ * By default react-native-deck-swiper positions everything with absolute position.
84
+ * To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
85
+ *
86
+ *
87
+ * Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
88
+ * To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
89
+ * This effectivley makes the default height of the container be the height of the first card.
90
+ */
91
+
92
+ return (
93
+ <View>
94
+ <View style={styles.containerHeightFiller}>{renderFirstCard()}</View>
95
+ <DeckSwiperComponent
96
+ cards={cardsData as any[]}
97
+ renderCard={renderCard}
98
+ keyExtractor={cardKeyExtractor}
99
+ containerStyle={
100
+ StyleSheet.flatten([styles.cardsContainer, style]) as
101
+ | object
102
+ | undefined
103
+ }
104
+ cardStyle={styles.card as object | undefined}
105
+ onSwiped={onIndexChanged}
106
+ onSwipedAll={onEndReached}
107
+ cardIndex={startCardIndex}
108
+ infinite={infiniteSwiping}
109
+ verticalSwipe={verticalEnabled}
110
+ horizontalSwipe={horizontalEnabled}
111
+ showSecondCard={visibleCardCount > 1}
112
+ stackSize={visibleCardCount}
113
+ backgroundColor="transparent"
114
+ cardVerticalMargin={0}
115
+ cardHorizontalMargin={0}
116
+ />
117
+ </View>
118
+ );
119
+ };
120
+
121
+ const styles = StyleSheet.create({
122
+ cardsContainer: {
123
+ position: "absolute",
124
+ },
125
+ card: {
126
+ left: 0,
127
+ right: 0,
128
+ width: "auto",
129
+ height: "auto",
130
+ },
131
+ containerHeightFiller: {
132
+ opacity: 0.0,
133
+ },
134
+ });
135
+
136
+ export default DeckSwiper;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ import { withTheme } from "../../theming";
4
+ const DeckSwiperCard = ({ style, children, theme }) => (React.createElement(View, { style: [
5
+ styles.card,
6
+ {
7
+ backgroundColor: theme.colors.background,
8
+ borderColor: theme.colors.divider,
9
+ },
10
+ style,
11
+ ] }, children));
12
+ const styles = StyleSheet.create({
13
+ card: {
14
+ alignItems: "center",
15
+ justifyContent: "center",
16
+ padding: 20,
17
+ borderWidth: 2,
18
+ },
19
+ });
20
+ export default withTheme(DeckSwiperCard);
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import { View, StyleSheet, StyleProp, ViewStyle } from "react-native";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
+ import { withTheme } from "../../theming";
5
+
6
+ export interface DeckSwiperCardProps {
7
+ style?: StyleProp<ViewStyle>;
8
+ theme: Theme;
9
+ }
10
+
11
+ const DeckSwiperCard: React.FC<
12
+ React.PropsWithChildren<DeckSwiperCardProps>
13
+ > = ({ style, children, theme }) => (
14
+ <View
15
+ style={[
16
+ styles.card,
17
+ {
18
+ backgroundColor: theme.colors.background,
19
+ borderColor: theme.colors.divider,
20
+ },
21
+ style,
22
+ ]}
23
+ >
24
+ {children}
25
+ </View>
26
+ );
27
+
28
+ const styles = StyleSheet.create({
29
+ card: {
30
+ alignItems: "center",
31
+ justifyContent: "center",
32
+ padding: 20,
33
+ borderWidth: 2,
34
+ },
35
+ });
36
+
37
+ export default withTheme(DeckSwiperCard);
@@ -0,0 +1,2 @@
1
+ export { default as DeckSwiper } from "./DeckSwiper";
2
+ export { default as DeckSwiperCard } from "./DeckSwiperCard";
@@ -0,0 +1,2 @@
1
+ export { default as DeckSwiper } from "./DeckSwiper";
2
+ export { default as DeckSwiperCard } from "./DeckSwiperCard";
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { StyleSheet } from "react-native";
3
+ import MarkdownComponent from "react-native-markdown-display";
4
+ const Markdown = ({ children, style, }) => {
5
+ return (
6
+ //'body' style applies to all markdown components
7
+ //@ts-ignore TS does not like the type of this named style for some reason
8
+ React.createElement(MarkdownComponent, { style: { body: StyleSheet.flatten(style) } }, children));
9
+ };
10
+ export default Markdown;
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { StyleProp, ViewStyle, StyleSheet } from "react-native";
3
+ import MarkdownComponent from "react-native-markdown-display";
4
+
5
+ type MarkdownProps = {
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+
9
+ const Markdown: React.FC<React.PropsWithChildren<MarkdownProps>> = ({
10
+ children,
11
+ style,
12
+ }) => {
13
+ return (
14
+ //'body' style applies to all markdown components
15
+ //@ts-ignore TS does not like the type of this named style for some reason
16
+ <MarkdownComponent style={{ body: StyleSheet.flatten(style) }}>
17
+ {children}
18
+ </MarkdownComponent>
19
+ );
20
+ };
21
+
22
+ export default Markdown;
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
2
2
  import { TextInput } from "react-native";
3
3
  import { isString, isNumber, isNaN } from "lodash";
4
4
  const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
5
- const [currentStringNumberValue, setCurrentStringNumberValue] = useState("0");
5
+ const [currentStringNumberValue, setCurrentStringNumberValue] = useState("");
6
6
  const formatValueToStringNumber = (valueToFormat) => {
7
7
  if (valueToFormat != null) {
8
8
  if (isString(valueToFormat) && valueToFormat !== "") {
@@ -20,16 +20,8 @@ const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
20
20
  return valueToFormat.toString();
21
21
  }
22
22
  }
23
- return "0";
23
+ return "";
24
24
  };
25
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
26
- useEffect(() => {
27
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
28
- if (currentStringNumberValue !== defaultStringNumberValue) {
29
- setCurrentStringNumberValue(defaultStringNumberValue);
30
- }
31
- // eslint-disable-next-line react-hooks/exhaustive-deps
32
- }, []);
33
25
  const handleChangeText = (newValue) => {
34
26
  const newStringNumberValue = formatValueToStringNumber(newValue);
35
27
  const number = parseFloat(newStringNumberValue);
@@ -44,6 +36,14 @@ const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
44
36
  }
45
37
  // eslint-disable-next-line react-hooks/exhaustive-deps
46
38
  }, [value]);
39
+ // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
40
+ useEffect(() => {
41
+ const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
42
+ if (currentStringNumberValue !== defaultStringNumberValue) {
43
+ setCurrentStringNumberValue(defaultStringNumberValue);
44
+ }
45
+ // eslint-disable-next-line react-hooks/exhaustive-deps
46
+ }, []);
47
47
  return (React.createElement(TextInput, { keyboardType: "numeric", value: currentStringNumberValue, onChangeText: handleChangeText, ...props }));
48
48
  };
49
49
  export default NumberInput;
@@ -14,7 +14,7 @@ const NumberInput: FC<Props> = ({
14
14
  defaultValue,
15
15
  ...props
16
16
  }) => {
17
- const [currentStringNumberValue, setCurrentStringNumberValue] = useState("0");
17
+ const [currentStringNumberValue, setCurrentStringNumberValue] = useState("");
18
18
 
19
19
  const formatValueToStringNumber = (valueToFormat?: number | string) => {
20
20
  if (valueToFormat != null) {
@@ -31,19 +31,9 @@ const NumberInput: FC<Props> = ({
31
31
  }
32
32
  }
33
33
 
34
- return "0";
34
+ return "";
35
35
  };
36
36
 
37
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
38
- useEffect(() => {
39
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
40
-
41
- if (currentStringNumberValue !== defaultStringNumberValue) {
42
- setCurrentStringNumberValue(defaultStringNumberValue);
43
- }
44
- // eslint-disable-next-line react-hooks/exhaustive-deps
45
- }, []);
46
-
47
37
  const handleChangeText = (newValue: string) => {
48
38
  const newStringNumberValue = formatValueToStringNumber(newValue);
49
39
  const number = parseFloat(newStringNumberValue);
@@ -62,6 +52,16 @@ const NumberInput: FC<Props> = ({
62
52
  // eslint-disable-next-line react-hooks/exhaustive-deps
63
53
  }, [value]);
64
54
 
55
+ // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
56
+ useEffect(() => {
57
+ const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
58
+
59
+ if (currentStringNumberValue !== defaultStringNumberValue) {
60
+ setCurrentStringNumberValue(defaultStringNumberValue);
61
+ }
62
+ // eslint-disable-next-line react-hooks/exhaustive-deps
63
+ }, []);
64
+
65
65
  return (
66
66
  <TextInput
67
67
  keyboardType="numeric"
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { View, StyleSheet, Text, Platform, Dimensions, } from "react-native";
2
+ import { View, StyleSheet, Text, Platform, Dimensions, Keyboard, } from "react-native";
3
3
  import { omit, pickBy, identity, isObject } from "lodash";
4
4
  import { SafeAreaView } from "react-native-safe-area-context";
5
5
  import { Picker as NativePicker } from "@react-native-picker/picker";
@@ -32,10 +32,13 @@ function normalizeOptions(options) {
32
32
  }
33
33
  const { width: deviceWidth, height: deviceHeight } = Dimensions.get("screen");
34
34
  const isIos = Platform.OS === "ios";
35
+ const isWeb = Platform.OS === "web";
35
36
  const unstyledColor = "rgba(165, 173, 183, 1)";
36
37
  const disabledColor = "rgb(240, 240, 240)";
37
38
  const errorColor = "rgba(255, 69, 100, 1)";
38
- const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style, placeholder, value, disabled = false, theme, assistiveText, label, iconColor = unstyledColor, iconSize = 24, leftIconMode = "inset", leftIconName, placeholderTextColor = unstyledColor, rightIconName, type = "solid", }) => {
39
+ //Empty string for 'value' is treated as a non-value
40
+ //reason: Draftbit uses empty string as initial value for string state*/
41
+ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style, placeholder, value, disabled = false, assistiveText, label, iconColor = unstyledColor, iconSize = 24, leftIconMode = "inset", leftIconName, placeholderTextColor = unstyledColor, rightIconName, type = "solid", autoDismissKeyboard = true, }) => {
39
42
  var _a, _b;
40
43
  const androidPickerRef = React.useRef(undefined);
41
44
  const [internalValue, setInternalValue] = React.useState(value || defaultValue);
@@ -44,12 +47,15 @@ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style,
44
47
  setPickerVisible(!pickerVisible);
45
48
  };
46
49
  React.useEffect(() => {
47
- if (value != null) {
50
+ if (value != null && value !== "") {
48
51
  setInternalValue(value);
49
52
  }
53
+ else if (value === "") {
54
+ setInternalValue(undefined);
55
+ }
50
56
  }, [value]);
51
57
  React.useEffect(() => {
52
- if (defaultValue != null) {
58
+ if (defaultValue != null && defaultValue !== "") {
53
59
  setInternalValue(defaultValue);
54
60
  }
55
61
  }, [defaultValue]);
@@ -59,11 +65,26 @@ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style,
59
65
  (_a = androidPickerRef === null || androidPickerRef === void 0 ? void 0 : androidPickerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
60
66
  }
61
67
  }, [pickerVisible, androidPickerRef]);
62
- const normalizedOptions = normalizeOptions(options);
63
- const pickerOptions = placeholder
64
- ? [{ value: placeholder, label: placeholder }, ...normalizedOptions]
65
- : normalizedOptions;
66
- const { colors } = theme;
68
+ React.useEffect(() => {
69
+ if (pickerVisible && autoDismissKeyboard) {
70
+ Keyboard.dismiss();
71
+ }
72
+ }, [pickerVisible, autoDismissKeyboard]);
73
+ const normalizedOptions = React.useMemo(() => normalizeOptions(options), [options]);
74
+ //Underlying Picker component defaults selection to first element when value is not provided (or undefined)
75
+ //Placholder must be the 1st option in order to allow selection of the 'actual' 1st option
76
+ const pickerOptions = React.useMemo(() => placeholder
77
+ ? [{ label: placeholder, value: placeholder }, ...normalizedOptions]
78
+ : normalizedOptions, [placeholder, normalizedOptions]);
79
+ //When no placeholder is provided then first item should be marked selected to reflect underlying Picker internal state
80
+ if (!placeholder &&
81
+ pickerOptions.length &&
82
+ !internalValue &&
83
+ internalValue !== pickerOptions[0].value //Prevent infinite state changes incase first value is falsy
84
+ ) {
85
+ onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(pickerOptions[0].value, 0);
86
+ setInternalValue(pickerOptions[0].value);
87
+ }
67
88
  const { viewStyles, textStyles } = extractStyles(style);
68
89
  const additionalBorderStyles = ["backgroundColor"];
69
90
  const additionalMarginStyles = [
@@ -158,10 +179,14 @@ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style,
158
179
  ...(disabled ? { color: unstyledColor } : {}),
159
180
  };
160
181
  const handleValueChange = (newValue, itemIndex) => {
161
- if (!placeholder || itemIndex > 0) {
182
+ if (newValue !== "" && newValue !== placeholder) {
162
183
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue, itemIndex);
184
+ setInternalValue(newValue);
185
+ }
186
+ else if (newValue === placeholder) {
187
+ onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange("", 0);
188
+ setInternalValue(undefined);
163
189
  }
164
- setInternalValue(newValue);
165
190
  };
166
191
  return (
167
192
  /* marginsContainer */
@@ -183,16 +208,11 @@ const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style,
183
208
  rightIcon)),
184
209
  assistiveTextLabel),
185
210
  isIos && pickerVisible ? (React.createElement(Portal, null,
186
- React.createElement(View, { style: [
187
- styles.iosPicker,
188
- {
189
- backgroundColor: colors.divider,
190
- },
191
- ] },
192
- React.createElement(SafeAreaView, { style: styles.iosSafeArea },
211
+ React.createElement(SafeAreaView, { style: styles.iosPicker },
212
+ React.createElement(View, { style: styles.iosPickerContent },
193
213
  React.createElement(Button, { Icon: Icon, type: "text", onPress: togglePickerVisible, style: styles.iosButton }, "Close"),
194
214
  React.createElement(NativePicker, { style: styles.iosNativePicker, selectedValue: internalValue, onValueChange: handleValueChange }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value })))))))) : null,
195
- !isIos && pickerVisible ? (React.createElement(NativePicker, { enabled: pickerVisible, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
215
+ !isIos && (pickerVisible || isWeb) ? (React.createElement(NativePicker, { enabled: !disabled, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
196
216
  };
197
217
  const styles = StyleSheet.create({
198
218
  marginsContainer: {
@@ -239,9 +259,9 @@ const styles = StyleSheet.create({
239
259
  width: "100%",
240
260
  maxWidth: deviceWidth,
241
261
  maxHeight: deviceHeight,
242
- },
243
- iosSafeArea: {
244
262
  backgroundColor: "white",
263
+ },
264
+ iosPickerContent: {
245
265
  flexDirection: "column",
246
266
  width: "100%",
247
267
  maxWidth: deviceWidth,