@draftbit/core 48.5.5-ee2f75.2 → 48.5.6

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 (864) hide show
  1. package/README.md +32 -32
  2. package/lib/commonjs/Provider.js +1 -1
  3. package/lib/commonjs/components/AccordionGroup.js +1 -1
  4. package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -1
  5. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -1
  6. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -1
  7. package/lib/commonjs/components/AspectRatio.js +1 -1
  8. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +1 -1
  10. package/lib/commonjs/components/Button.js +1 -1
  11. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  12. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -1
  13. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
  14. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  15. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -1
  16. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -1
  17. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
  18. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
  19. package/lib/commonjs/components/Divider.js +1 -1
  20. package/lib/commonjs/components/Elevation.js +1 -1
  21. package/lib/commonjs/components/FormRow.js +1 -1
  22. package/lib/commonjs/components/IconButton.js +1 -1
  23. package/lib/commonjs/components/Image.js +1 -1
  24. package/lib/commonjs/components/Layout/AspectRatio.js +1 -1
  25. package/lib/commonjs/components/Layout/Center.js +1 -1
  26. package/lib/commonjs/components/Layout/Circle.js +1 -1
  27. package/lib/commonjs/components/Layout/HStack.js +1 -1
  28. package/lib/commonjs/components/Layout/Spacer.js +1 -1
  29. package/lib/commonjs/components/Layout/Square.js +1 -1
  30. package/lib/commonjs/components/Layout/VStack.js +1 -1
  31. package/lib/commonjs/components/Layout/ZStack.js +1 -1
  32. package/lib/commonjs/components/Markdown.js +1 -1
  33. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
  34. package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  35. package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +1 -1
  36. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  37. package/lib/commonjs/components/NumberInput.js +1 -1
  38. package/lib/commonjs/components/Picker/NativePicker.js +1 -1
  39. package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
  40. package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +1 -1
  41. package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  42. package/lib/commonjs/components/Picker/index.js +1 -1
  43. package/lib/commonjs/components/PinInput/CustomPinInputCell.js +1 -1
  44. package/lib/commonjs/components/PinInput/PinInput.js +1 -1
  45. package/lib/commonjs/components/PinInput/PinInputText.js +1 -1
  46. package/lib/commonjs/components/Portal/Portal.js +1 -1
  47. package/lib/commonjs/components/Portal/PortalHost.js +1 -1
  48. package/lib/commonjs/components/Portal/PortalManager.js +1 -1
  49. package/lib/commonjs/components/Pressable.js +1 -1
  50. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
  51. package/lib/commonjs/components/Progress/CircularProgress/index.js +1 -1
  52. package/lib/commonjs/components/Progress/IndeterminateProgress.js +1 -1
  53. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
  54. package/lib/commonjs/components/Progress/LinearProgress/index.js +1 -1
  55. package/lib/commonjs/components/ProgressIndicator.js +1 -1
  56. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  57. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
  58. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  59. package/lib/commonjs/components/Row.js +1 -1
  60. package/lib/commonjs/components/SVG.js +1 -1
  61. package/lib/commonjs/components/ScreenContainer.js +1 -1
  62. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
  63. package/lib/commonjs/components/SectionList/SectionList.js +1 -1
  64. package/lib/commonjs/components/Shadow.js +1 -1
  65. package/lib/commonjs/components/Slider.js +1 -1
  66. package/lib/commonjs/components/StarRating.js +1 -1
  67. package/lib/commonjs/components/StepIndicator.js +1 -1
  68. package/lib/commonjs/components/Stepper.js +1 -1
  69. package/lib/commonjs/components/Surface.js +1 -1
  70. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  71. package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -1
  72. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  73. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -1
  74. package/lib/commonjs/components/Switch.js +1 -1
  75. package/lib/commonjs/components/TabView/TabView.js +1 -1
  76. package/lib/commonjs/components/TabView/TabViewItem.js +1 -1
  77. package/lib/commonjs/components/Table/Table.js +1 -1
  78. package/lib/commonjs/components/Table/TableCell.js +1 -1
  79. package/lib/commonjs/components/Table/TableRow.js +1 -1
  80. package/lib/commonjs/components/Text.js +1 -1
  81. package/lib/commonjs/components/TextField.js +1 -1
  82. package/lib/commonjs/components/TextInput.js +1 -1
  83. package/lib/commonjs/components/Touchable.js +1 -1
  84. package/lib/commonjs/components/Typography.js +1 -1
  85. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -1
  86. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js +1 -1
  87. package/lib/commonjs/deprecated-components/AccordionItem.js +1 -1
  88. package/lib/commonjs/deprecated-components/AnimatedCircularProgress.js +1 -1
  89. package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -1
  90. package/lib/commonjs/deprecated-components/Banner.js +1 -1
  91. package/lib/commonjs/deprecated-components/Card.js +1 -1
  92. package/lib/commonjs/deprecated-components/CheckboxGroup.js +1 -1
  93. package/lib/commonjs/deprecated-components/CircleImage.js +1 -1
  94. package/lib/commonjs/deprecated-components/CircularProgress.js +1 -1
  95. package/lib/commonjs/deprecated-components/Container.js +1 -1
  96. package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -1
  97. package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -1
  98. package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -1
  99. package/lib/commonjs/deprecated-components/FAB.js +1 -1
  100. package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -1
  101. package/lib/commonjs/deprecated-components/Layout.js +1 -1
  102. package/lib/commonjs/deprecated-components/ProgressBar.js +1 -1
  103. package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -1
  104. package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -1
  105. package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -1
  106. package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -1
  107. package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -1
  108. package/lib/commonjs/deprecated-components/ToggleButton.js +1 -1
  109. package/lib/typescript/src/Provider.d.ts +10 -10
  110. package/lib/typescript/src/Provider.js +9 -9
  111. package/lib/typescript/src/components/AccordionGroup.d.ts +21 -21
  112. package/lib/typescript/src/components/AccordionGroup.js +44 -44
  113. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +8 -8
  114. package/lib/typescript/src/components/ActionSheet/ActionSheet.js +45 -45
  115. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +10 -10
  116. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.js +6 -6
  117. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +10 -10
  118. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.js +30 -30
  119. package/lib/typescript/src/components/ActionSheet/index.d.ts +3 -3
  120. package/lib/typescript/src/components/ActionSheet/index.js +3 -3
  121. package/lib/typescript/src/components/AspectRatio.d.ts +8 -8
  122. package/lib/typescript/src/components/AspectRatio.js +18 -18
  123. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +28 -28
  124. package/lib/typescript/src/components/BottomSheet/BottomSheet.js +71 -71
  125. package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +169 -169
  126. package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.js +437 -437
  127. package/lib/typescript/src/components/BottomSheet/index.d.ts +1 -1
  128. package/lib/typescript/src/components/BottomSheet/index.js +1 -1
  129. package/lib/typescript/src/components/Button.d.ts +12 -12
  130. package/lib/typescript/src/components/Button.js +120 -120
  131. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +19 -19
  132. package/lib/typescript/src/components/Checkbox/Checkbox.js +62 -62
  133. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +21 -21
  134. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.js +76 -76
  135. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +17 -17
  136. package/lib/typescript/src/components/Checkbox/CheckboxRow.js +77 -77
  137. package/lib/typescript/src/components/Checkbox/context.d.ts +13 -13
  138. package/lib/typescript/src/components/Checkbox/context.js +14 -14
  139. package/lib/typescript/src/components/Checkbox/index.d.ts +2 -2
  140. package/lib/typescript/src/components/Checkbox/index.js +2 -2
  141. package/lib/typescript/src/components/Config.d.ts +35 -35
  142. package/lib/typescript/src/components/Config.js +64 -64
  143. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +33 -33
  144. package/lib/typescript/src/components/DatePicker/DatePicker.js +394 -389
  145. package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
  146. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +4 -4
  147. package/lib/typescript/src/components/DatePicker/DatePickerComponent.js +13 -13
  148. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +4662 -4662
  149. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +30 -30
  150. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +11 -11
  151. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.js +1 -1
  152. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +27 -27
  153. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js +90 -90
  154. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +11 -11
  155. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +20 -20
  156. package/lib/typescript/src/components/DeckSwiper/index.d.ts +2 -2
  157. package/lib/typescript/src/components/DeckSwiper/index.js +2 -2
  158. package/lib/typescript/src/components/Divider.d.ts +12 -12
  159. package/lib/typescript/src/components/Divider.js +13 -13
  160. package/lib/typescript/src/components/Elevation.d.ts +11 -11
  161. package/lib/typescript/src/components/Elevation.js +20 -20
  162. package/lib/typescript/src/components/FormRow.d.ts +13 -13
  163. package/lib/typescript/src/components/FormRow.js +19 -19
  164. package/lib/typescript/src/components/IconButton.d.ts +20 -20
  165. package/lib/typescript/src/components/IconButton.js +35 -35
  166. package/lib/typescript/src/components/Image.d.ts +4 -4
  167. package/lib/typescript/src/components/Image.js +47 -47
  168. package/lib/typescript/src/components/Layout/AspectRatio.d.ts +7 -7
  169. package/lib/typescript/src/components/Layout/AspectRatio.js +6 -6
  170. package/lib/typescript/src/components/Layout/Center.d.ts +4 -4
  171. package/lib/typescript/src/components/Layout/Center.js +14 -14
  172. package/lib/typescript/src/components/Layout/Circle.d.ts +7 -7
  173. package/lib/typescript/src/components/Layout/Circle.js +15 -15
  174. package/lib/typescript/src/components/Layout/HStack.d.ts +4 -4
  175. package/lib/typescript/src/components/Layout/HStack.js +11 -11
  176. package/lib/typescript/src/components/Layout/LayoutCommon.d.ts +15 -15
  177. package/lib/typescript/src/components/Layout/LayoutCommon.js +7 -7
  178. package/lib/typescript/src/components/Layout/Spacer.d.ts +11 -11
  179. package/lib/typescript/src/components/Layout/Spacer.js +14 -14
  180. package/lib/typescript/src/components/Layout/Square.d.ts +7 -7
  181. package/lib/typescript/src/components/Layout/Square.js +24 -24
  182. package/lib/typescript/src/components/Layout/VStack.d.ts +4 -4
  183. package/lib/typescript/src/components/Layout/VStack.js +11 -11
  184. package/lib/typescript/src/components/Layout/ZStack.d.ts +7 -7
  185. package/lib/typescript/src/components/Layout/ZStack.js +57 -57
  186. package/lib/typescript/src/components/Layout/index.d.ts +8 -8
  187. package/lib/typescript/src/components/Layout/index.js +8 -8
  188. package/lib/typescript/src/components/Markdown.d.ts +7 -7
  189. package/lib/typescript/src/components/Markdown.js +10 -10
  190. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +22 -22
  191. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +1 -1
  192. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +7 -7
  193. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +125 -125
  194. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +9 -9
  195. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +92 -92
  196. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +11 -11
  197. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +14 -14
  198. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.d.ts +15 -15
  199. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js +41 -41
  200. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +23 -23
  201. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +23 -23
  202. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +15 -15
  203. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +74 -74
  204. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.d.ts +2 -2
  205. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.js +1 -1
  206. package/lib/typescript/src/components/NumberInput.d.ts +11 -11
  207. package/lib/typescript/src/components/NumberInput.js +59 -59
  208. package/lib/typescript/src/components/Picker/NativePicker.d.ts +6 -6
  209. package/lib/typescript/src/components/Picker/NativePicker.js +94 -94
  210. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +46 -46
  211. package/lib/typescript/src/components/Picker/PickerCommon.js +24 -24
  212. package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +11 -11
  213. package/lib/typescript/src/components/Picker/PickerInputContainer.js +36 -36
  214. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +6 -6
  215. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +66 -64
  216. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  217. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +6 -6
  218. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +8 -8
  219. package/lib/typescript/src/components/Picker/dropdown/PickerItem.d.ts +14 -14
  220. package/lib/typescript/src/components/Picker/dropdown/PickerItem.js +8 -8
  221. package/lib/typescript/src/components/Picker/index.d.ts +10 -10
  222. package/lib/typescript/src/components/Picker/index.js +17 -17
  223. package/lib/typescript/src/components/PinInput/CustomPinInputCell.d.ts +12 -12
  224. package/lib/typescript/src/components/PinInput/CustomPinInputCell.js +10 -10
  225. package/lib/typescript/src/components/PinInput/PinInput.d.ts +26 -26
  226. package/lib/typescript/src/components/PinInput/PinInput.js +80 -80
  227. package/lib/typescript/src/components/PinInput/PinInputText.d.ts +13 -13
  228. package/lib/typescript/src/components/PinInput/PinInputText.js +13 -13
  229. package/lib/typescript/src/components/PinInput/index.d.ts +3 -3
  230. package/lib/typescript/src/components/PinInput/index.js +3 -3
  231. package/lib/typescript/src/components/Portal/Portal.d.ts +42 -42
  232. package/lib/typescript/src/components/Portal/Portal.js +35 -35
  233. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +15 -15
  234. package/lib/typescript/src/components/Portal/PortalConsumer.js +27 -27
  235. package/lib/typescript/src/components/Portal/PortalHost.d.ts +47 -47
  236. package/lib/typescript/src/components/Portal/PortalHost.js +107 -107
  237. package/lib/typescript/src/components/Portal/PortalManager.d.ts +18 -18
  238. package/lib/typescript/src/components/Portal/PortalManager.js +32 -32
  239. package/lib/typescript/src/components/Pressable.d.ts +9 -9
  240. package/lib/typescript/src/components/Pressable.js +12 -12
  241. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.d.ts +6 -6
  242. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +102 -102
  243. package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +6 -6
  244. package/lib/typescript/src/components/Progress/CircularProgress/index.js +13 -13
  245. package/lib/typescript/src/components/Progress/IndeterminateProgress.d.ts +7 -7
  246. package/lib/typescript/src/components/Progress/IndeterminateProgress.js +38 -38
  247. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.d.ts +6 -6
  248. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +55 -55
  249. package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +6 -6
  250. package/lib/typescript/src/components/Progress/LinearProgress/index.js +13 -13
  251. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +40 -40
  252. package/lib/typescript/src/components/Progress/ProgressCommon.js +1 -1
  253. package/lib/typescript/src/components/ProgressIndicator.d.ts +23 -23
  254. package/lib/typescript/src/components/ProgressIndicator.js +27 -27
  255. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +17 -17
  256. package/lib/typescript/src/components/RadioButton/RadioButton.js +17 -17
  257. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +15 -15
  258. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.js +43 -43
  259. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +21 -21
  260. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +76 -76
  261. package/lib/typescript/src/components/RadioButton/context.d.ts +13 -13
  262. package/lib/typescript/src/components/RadioButton/context.js +14 -14
  263. package/lib/typescript/src/components/RadioButton/index.d.ts +3 -3
  264. package/lib/typescript/src/components/RadioButton/index.js +3 -3
  265. package/lib/typescript/src/components/Row.d.ts +20 -20
  266. package/lib/typescript/src/components/Row.js +48 -48
  267. package/lib/typescript/src/components/SVG.d.ts +8 -8
  268. package/lib/typescript/src/components/SVG.js +13 -13
  269. package/lib/typescript/src/components/ScreenContainer.d.ts +17 -17
  270. package/lib/typescript/src/components/ScreenContainer.js +35 -35
  271. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +15 -15
  272. package/lib/typescript/src/components/SectionList/SectionHeader.js +13 -13
  273. package/lib/typescript/src/components/SectionList/SectionList.d.ts +22 -22
  274. package/lib/typescript/src/components/SectionList/SectionList.js +110 -110
  275. package/lib/typescript/src/components/SectionList/index.d.ts +2 -2
  276. package/lib/typescript/src/components/SectionList/index.js +2 -2
  277. package/lib/typescript/src/components/Shadow.d.ts +23 -23
  278. package/lib/typescript/src/components/Shadow.js +25 -25
  279. package/lib/typescript/src/components/Slider.d.ts +27 -27
  280. package/lib/typescript/src/components/Slider.js +63 -63
  281. package/lib/typescript/src/components/StarRating.d.ts +20 -20
  282. package/lib/typescript/src/components/StarRating.js +50 -50
  283. package/lib/typescript/src/components/StepIndicator.d.ts +53 -53
  284. package/lib/typescript/src/components/StepIndicator.js +346 -346
  285. package/lib/typescript/src/components/Stepper.d.ts +19 -19
  286. package/lib/typescript/src/components/Stepper.js +41 -41
  287. package/lib/typescript/src/components/Surface.d.ts +12 -12
  288. package/lib/typescript/src/components/Surface.js +32 -32
  289. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +43 -43
  290. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +118 -118
  291. package/lib/typescript/src/components/SwipeableItem/SwipeableItemButton.d.ts +5 -5
  292. package/lib/typescript/src/components/SwipeableItem/SwipeableItemButton.js +5 -5
  293. package/lib/typescript/src/components/SwipeableItem/SwipeableItemCommon.d.ts +31 -31
  294. package/lib/typescript/src/components/SwipeableItem/SwipeableItemCommon.js +43 -43
  295. package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +17 -17
  296. package/lib/typescript/src/components/SwipeableItem/SwipeableList.js +28 -28
  297. package/lib/typescript/src/components/SwipeableItem/index.d.ts +3 -3
  298. package/lib/typescript/src/components/SwipeableItem/index.js +3 -3
  299. package/lib/typescript/src/components/Swiper/Swiper.d.ts +29 -29
  300. package/lib/typescript/src/components/Swiper/Swiper.js +73 -73
  301. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +8 -8
  302. package/lib/typescript/src/components/Swiper/SwiperItem.js +9 -9
  303. package/lib/typescript/src/components/Swiper/index.d.ts +2 -2
  304. package/lib/typescript/src/components/Swiper/index.js +2 -2
  305. package/lib/typescript/src/components/Switch.d.ts +50 -50
  306. package/lib/typescript/src/components/Switch.js +56 -56
  307. package/lib/typescript/src/components/TabView/TabView.d.ts +27 -27
  308. package/lib/typescript/src/components/TabView/TabView.js +49 -54
  309. package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
  310. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -10
  311. package/lib/typescript/src/components/TabView/TabViewItem.js +11 -11
  312. package/lib/typescript/src/components/TabView/index.d.ts +2 -2
  313. package/lib/typescript/src/components/TabView/index.js +2 -2
  314. package/lib/typescript/src/components/Table/Table.d.ts +18 -18
  315. package/lib/typescript/src/components/Table/Table.js +93 -93
  316. package/lib/typescript/src/components/Table/TableCell.d.ts +9 -9
  317. package/lib/typescript/src/components/Table/TableCell.js +33 -33
  318. package/lib/typescript/src/components/Table/TableCommon.d.ts +19 -19
  319. package/lib/typescript/src/components/Table/TableCommon.js +12 -12
  320. package/lib/typescript/src/components/Table/TableRow.d.ts +14 -14
  321. package/lib/typescript/src/components/Table/TableRow.js +39 -39
  322. package/lib/typescript/src/components/Table/index.d.ts +3 -3
  323. package/lib/typescript/src/components/Table/index.js +3 -3
  324. package/lib/typescript/src/components/Text.d.ts +19 -19
  325. package/lib/typescript/src/components/Text.js +33 -33
  326. package/lib/typescript/src/components/TextField.d.ts +72 -72
  327. package/lib/typescript/src/components/TextField.js +413 -413
  328. package/lib/typescript/src/components/TextInput.d.ts +8 -8
  329. package/lib/typescript/src/components/TextInput.js +14 -14
  330. package/lib/typescript/src/components/Touchable.d.ts +9 -9
  331. package/lib/typescript/src/components/Touchable.js +12 -12
  332. package/lib/typescript/src/components/Touchable.web.d.ts +2 -2
  333. package/lib/typescript/src/components/Touchable.web.js +2 -2
  334. package/lib/typescript/src/components/Typography.d.ts +21 -21
  335. package/lib/typescript/src/components/Typography.js +36 -36
  336. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.d.ts +4 -4
  337. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js +20 -20
  338. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.d.ts +4 -4
  339. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.js +9 -9
  340. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +7 -7
  341. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.js +1 -1
  342. package/lib/typescript/src/components/YoutubePlayer/index.d.ts +1 -1
  343. package/lib/typescript/src/components/YoutubePlayer/index.js +1 -1
  344. package/lib/typescript/src/components/useAuthState.d.ts +4 -4
  345. package/lib/typescript/src/components/useAuthState.js +34 -34
  346. package/lib/typescript/src/constants.d.ts +1 -1
  347. package/lib/typescript/src/constants.js +10 -10
  348. package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +15 -15
  349. package/lib/typescript/src/deprecated-components/AccordionItem.js +35 -35
  350. package/lib/typescript/src/deprecated-components/AnimatedCircularProgress.d.ts +16 -16
  351. package/lib/typescript/src/deprecated-components/AnimatedCircularProgress.js +46 -46
  352. package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +15 -15
  353. package/lib/typescript/src/deprecated-components/AvatarEdit.js +33 -33
  354. package/lib/typescript/src/deprecated-components/Banner.d.ts +22 -22
  355. package/lib/typescript/src/deprecated-components/Banner.js +112 -112
  356. package/lib/typescript/src/deprecated-components/Card.d.ts +42 -42
  357. package/lib/typescript/src/deprecated-components/Card.js +60 -60
  358. package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +17 -17
  359. package/lib/typescript/src/deprecated-components/CheckboxGroup.js +24 -24
  360. package/lib/typescript/src/deprecated-components/CircleImage.d.ts +12 -12
  361. package/lib/typescript/src/deprecated-components/CircleImage.js +11 -11
  362. package/lib/typescript/src/deprecated-components/CircularProgress.d.ts +45 -45
  363. package/lib/typescript/src/deprecated-components/CircularProgress.js +84 -84
  364. package/lib/typescript/src/deprecated-components/Container.d.ts +20 -20
  365. package/lib/typescript/src/deprecated-components/Container.js +46 -46
  366. package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +53 -53
  367. package/lib/typescript/src/deprecated-components/DeprecatedButton.js +86 -86
  368. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +14 -14
  369. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +21 -21
  370. package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +55 -55
  371. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +117 -117
  372. package/lib/typescript/src/deprecated-components/FAB.d.ts +19 -22
  373. package/lib/typescript/src/deprecated-components/FAB.js +49 -49
  374. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +19 -19
  375. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +56 -56
  376. package/lib/typescript/src/deprecated-components/Layout.d.ts +60 -60
  377. package/lib/typescript/src/deprecated-components/Layout.js +68 -68
  378. package/lib/typescript/src/deprecated-components/ProgressBar.d.ts +37 -37
  379. package/lib/typescript/src/deprecated-components/ProgressBar.js +121 -121
  380. package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +20 -20
  381. package/lib/typescript/src/deprecated-components/ProgressCircle.js +16 -16
  382. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +12 -12
  383. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +20 -20
  384. package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +15 -15
  385. package/lib/typescript/src/deprecated-components/RowBodyIcon.js +11 -11
  386. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +15 -15
  387. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +15 -15
  388. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +17 -17
  389. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +17 -17
  390. package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +24 -24
  391. package/lib/typescript/src/deprecated-components/ToggleButton.js +42 -42
  392. package/lib/typescript/src/hooks.d.ts +2 -2
  393. package/lib/typescript/src/hooks.js +24 -24
  394. package/lib/typescript/src/index.d.ts +64 -64
  395. package/lib/typescript/src/index.js +65 -65
  396. package/lib/typescript/src/interfaces/Icon.d.ts +21 -21
  397. package/lib/typescript/src/interfaces/Icon.js +8 -8
  398. package/lib/typescript/src/styles/DarkTheme.d.ts +3 -3
  399. package/lib/typescript/src/styles/DarkTheme.js +26 -26
  400. package/lib/typescript/src/styles/DefaultTheme.d.ts +1553 -1553
  401. package/lib/typescript/src/styles/DefaultTheme.js +111 -111
  402. package/lib/typescript/src/styles/fonts.d.ts +5 -5
  403. package/lib/typescript/src/styles/fonts.js +62 -62
  404. package/lib/typescript/src/styles/overlay.d.ts +2 -2
  405. package/lib/typescript/src/styles/overlay.js +60 -60
  406. package/lib/typescript/src/styles/shadow.d.ts +23 -23
  407. package/lib/typescript/src/styles/shadow.js +51 -51
  408. package/lib/typescript/src/theming.d.ts +8 -8
  409. package/lib/typescript/src/theming.js +3 -3
  410. package/lib/typescript/src/utilities.d.ts +48 -48
  411. package/lib/typescript/src/utilities.js +200 -200
  412. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  413. package/package.json +105 -106
  414. package/src/Provider.tsx +22 -22
  415. package/src/components/AccordionGroup.tsx +111 -111
  416. package/src/components/ActionSheet/ActionSheet.tsx +69 -69
  417. package/src/components/ActionSheet/ActionSheetCancel.tsx +28 -28
  418. package/src/components/ActionSheet/ActionSheetItem.tsx +59 -59
  419. package/src/components/ActionSheet/index.tsx +3 -3
  420. package/src/components/AspectRatio.tsx +40 -40
  421. package/src/components/BottomSheet/BottomSheet.tsx +160 -160
  422. package/src/components/BottomSheet/BottomSheetComponent.tsx +895 -895
  423. package/src/components/BottomSheet/index.ts +1 -1
  424. package/src/components/Button.tsx +224 -224
  425. package/src/components/Checkbox/Checkbox.tsx +135 -135
  426. package/src/components/Checkbox/CheckboxGroupRow.tsx +152 -152
  427. package/src/components/Checkbox/CheckboxRow.tsx +157 -157
  428. package/src/components/Checkbox/context.ts +22 -22
  429. package/src/components/Checkbox/index.ts +2 -2
  430. package/src/components/Config.ts +82 -82
  431. package/src/components/DatePicker/DatePicker.tsx +604 -593
  432. package/src/components/DatePicker/DatePickerComponent.tsx +43 -43
  433. package/src/components/DatePicker/DatePickerComponent.web.tsx +63 -63
  434. package/src/components/DatePicker/DatePickerComponentType.ts +12 -12
  435. package/src/components/DeckSwiper/DeckSwiper.tsx +181 -181
  436. package/src/components/DeckSwiper/DeckSwiperCard.tsx +37 -37
  437. package/src/components/DeckSwiper/index.tsx +2 -2
  438. package/src/components/Divider.tsx +32 -32
  439. package/src/components/Elevation.tsx +48 -48
  440. package/src/components/FormRow.tsx +47 -47
  441. package/src/components/IconButton.tsx +88 -88
  442. package/src/components/Image.tsx +91 -91
  443. package/src/components/Layout/AspectRatio.tsx +16 -16
  444. package/src/components/Layout/Center.tsx +19 -19
  445. package/src/components/Layout/Circle.tsx +32 -32
  446. package/src/components/Layout/HStack.tsx +14 -14
  447. package/src/components/Layout/LayoutCommon.ts +25 -25
  448. package/src/components/Layout/Spacer.tsx +34 -34
  449. package/src/components/Layout/Square.tsx +41 -41
  450. package/src/components/Layout/VStack.tsx +14 -14
  451. package/src/components/Layout/ZStack.tsx +99 -99
  452. package/src/components/Layout/index.tsx +8 -8
  453. package/src/components/Markdown.tsx +22 -22
  454. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +25 -25
  455. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +219 -219
  456. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +142 -142
  457. package/src/components/MediaPlayer/AudioPlayer/index.tsx +30 -30
  458. package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +68 -68
  459. package/src/components/MediaPlayer/MediaPlayerCommon.ts +52 -52
  460. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +138 -138
  461. package/src/components/MediaPlayer/VideoPlayer/index.ts +2 -2
  462. package/src/components/NumberInput.tsx +103 -103
  463. package/src/components/Picker/NativePicker.tsx +158 -158
  464. package/src/components/Picker/PickerCommon.ts +86 -86
  465. package/src/components/Picker/PickerInputContainer.tsx +90 -90
  466. package/src/components/Picker/dropdown/DropDownPicker.tsx +157 -155
  467. package/src/components/Picker/dropdown/MultiSelectPicker.tsx +16 -16
  468. package/src/components/Picker/dropdown/PickerItem.tsx +19 -19
  469. package/src/components/Picker/index.tsx +27 -27
  470. package/src/components/PinInput/CustomPinInputCell.tsx +19 -19
  471. package/src/components/PinInput/PinInput.tsx +172 -172
  472. package/src/components/PinInput/PinInputText.tsx +37 -37
  473. package/src/components/PinInput/index.tsx +3 -3
  474. package/src/components/Portal/Portal.tsx +59 -59
  475. package/src/components/Portal/PortalConsumer.tsx +46 -46
  476. package/src/components/Portal/PortalHost.tsx +144 -144
  477. package/src/components/Portal/PortalManager.tsx +54 -54
  478. package/src/components/Pressable.tsx +44 -44
  479. package/src/components/Progress/CircularProgress/CircularProgress.tsx +205 -205
  480. package/src/components/Progress/CircularProgress/index.tsx +28 -28
  481. package/src/components/Progress/IndeterminateProgress.tsx +76 -76
  482. package/src/components/Progress/LinearProgress/LinearProgress.tsx +133 -133
  483. package/src/components/Progress/LinearProgress/index.tsx +25 -25
  484. package/src/components/Progress/ProgressCommon.ts +44 -44
  485. package/src/components/ProgressIndicator.tsx +71 -71
  486. package/src/components/RadioButton/RadioButton.tsx +63 -63
  487. package/src/components/RadioButton/RadioButtonGroup.tsx +79 -79
  488. package/src/components/RadioButton/RadioButtonRow.tsx +150 -150
  489. package/src/components/RadioButton/context.tsx +21 -21
  490. package/src/components/RadioButton/index.tsx +3 -3
  491. package/src/components/Row.tsx +108 -108
  492. package/src/components/SVG.tsx +35 -35
  493. package/src/components/ScreenContainer.tsx +86 -86
  494. package/src/components/SectionList/SectionHeader.tsx +37 -37
  495. package/src/components/SectionList/SectionList.tsx +205 -205
  496. package/src/components/SectionList/index.tsx +2 -2
  497. package/src/components/Shadow.tsx +74 -74
  498. package/src/components/Slider.tsx +137 -137
  499. package/src/components/StarRating.tsx +118 -118
  500. package/src/components/StepIndicator.tsx +494 -494
  501. package/src/components/Stepper.tsx +101 -101
  502. package/src/components/Surface.tsx +68 -68
  503. package/src/components/SwipeableItem/SwipeableItem.tsx +330 -330
  504. package/src/components/SwipeableItem/SwipeableItemButton.tsx +11 -11
  505. package/src/components/SwipeableItem/SwipeableItemCommon.ts +81 -81
  506. package/src/components/SwipeableItem/SwipeableList.tsx +62 -62
  507. package/src/components/SwipeableItem/index.tsx +3 -3
  508. package/src/components/Swiper/Swiper.tsx +142 -142
  509. package/src/components/Swiper/SwiperItem.tsx +19 -19
  510. package/src/components/Swiper/index.tsx +2 -2
  511. package/src/components/Switch.tsx +149 -149
  512. package/src/components/TabView/TabView.tsx +151 -156
  513. package/src/components/TabView/TabViewItem.tsx +24 -24
  514. package/src/components/TabView/index.tsx +2 -2
  515. package/src/components/Table/Table.tsx +176 -176
  516. package/src/components/Table/TableCell.tsx +69 -69
  517. package/src/components/Table/TableCommon.ts +40 -40
  518. package/src/components/Table/TableRow.tsx +83 -83
  519. package/src/components/Table/index.tsx +3 -3
  520. package/src/components/Text.tsx +65 -65
  521. package/src/components/TextField.tsx +616 -616
  522. package/src/components/TextInput.tsx +35 -35
  523. package/src/components/Touchable.tsx +40 -40
  524. package/src/components/Touchable.web.tsx +3 -3
  525. package/src/components/Typography.tsx +67 -67
  526. package/src/components/YoutubePlayer/YoutubePlayer.native.tsx +28 -28
  527. package/src/components/YoutubePlayer/YoutubePlayer.tsx +36 -36
  528. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +8 -8
  529. package/src/components/YoutubePlayer/index.ts +1 -1
  530. package/src/components/useAuthState.tsx +41 -41
  531. package/src/constants.ts +13 -13
  532. package/src/deprecated-components/AccordionItem.tsx +77 -77
  533. package/src/deprecated-components/AnimatedCircularProgress.tsx +104 -104
  534. package/src/deprecated-components/AvatarEdit.tsx +67 -67
  535. package/src/deprecated-components/Banner.tsx +207 -207
  536. package/src/deprecated-components/Card.tsx +164 -164
  537. package/src/deprecated-components/CheckboxGroup.tsx +53 -53
  538. package/src/deprecated-components/CircleImage.tsx +36 -36
  539. package/src/deprecated-components/CircularProgress.tsx +191 -191
  540. package/src/deprecated-components/Container.tsx +126 -126
  541. package/src/deprecated-components/DeprecatedButton.tsx +193 -193
  542. package/src/deprecated-components/DeprecatedCardWrapper.tsx +49 -49
  543. package/src/deprecated-components/DeprecatedFAB.tsx +234 -234
  544. package/src/deprecated-components/FAB.tsx +111 -111
  545. package/src/deprecated-components/FieldSearchBarFull.tsx +129 -129
  546. package/src/deprecated-components/Layout.tsx +192 -192
  547. package/src/deprecated-components/ProgressBar.tsx +194 -194
  548. package/src/deprecated-components/ProgressCircle.tsx +67 -67
  549. package/src/deprecated-components/RadioButtonFieldGroup.tsx +46 -46
  550. package/src/deprecated-components/RowBodyIcon.tsx +50 -50
  551. package/src/deprecated-components/RowHeadlineImageCaption.tsx +52 -52
  552. package/src/deprecated-components/RowHeadlineImageIcon.tsx +64 -64
  553. package/src/deprecated-components/ToggleButton.tsx +97 -97
  554. package/src/hooks.ts +31 -31
  555. package/src/index.tsx +103 -103
  556. package/src/interfaces/Icon.ts +31 -31
  557. package/src/styles/DarkTheme.tsx +30 -30
  558. package/src/styles/DefaultTheme.tsx +114 -114
  559. package/src/styles/fonts.tsx +67 -67
  560. package/src/styles/overlay.tsx +69 -69
  561. package/src/styles/shadow.tsx +55 -55
  562. package/src/theming.tsx +6 -6
  563. package/src/utilities.ts +295 -295
  564. package/LICENSE +0 -21
  565. package/src/Provider.js +0 -10
  566. package/src/Provider.js.map +0 -1
  567. package/src/components/AccordionGroup.js +0 -45
  568. package/src/components/AccordionGroup.js.map +0 -1
  569. package/src/components/ActionSheet/ActionSheet.js +0 -46
  570. package/src/components/ActionSheet/ActionSheet.js.map +0 -1
  571. package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
  572. package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  573. package/src/components/ActionSheet/ActionSheetItem.js +0 -31
  574. package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
  575. package/src/components/ActionSheet/index.js +0 -4
  576. package/src/components/ActionSheet/index.js.map +0 -1
  577. package/src/components/AspectRatio.js +0 -19
  578. package/src/components/AspectRatio.js.map +0 -1
  579. package/src/components/BottomSheet/BottomSheet.js +0 -72
  580. package/src/components/BottomSheet/BottomSheet.js.map +0 -1
  581. package/src/components/BottomSheet/BottomSheetComponent.js +0 -438
  582. package/src/components/BottomSheet/BottomSheetComponent.js.map +0 -1
  583. package/src/components/BottomSheet/index.js +0 -2
  584. package/src/components/BottomSheet/index.js.map +0 -1
  585. package/src/components/Button.js +0 -121
  586. package/src/components/Button.js.map +0 -1
  587. package/src/components/Checkbox/Checkbox.js +0 -63
  588. package/src/components/Checkbox/Checkbox.js.map +0 -1
  589. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  590. package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  591. package/src/components/Checkbox/CheckboxRow.js +0 -78
  592. package/src/components/Checkbox/CheckboxRow.js.map +0 -1
  593. package/src/components/Checkbox/context.js +0 -15
  594. package/src/components/Checkbox/context.js.map +0 -1
  595. package/src/components/Checkbox/index.js +0 -3
  596. package/src/components/Checkbox/index.js.map +0 -1
  597. package/src/components/Config.js +0 -65
  598. package/src/components/Config.js.map +0 -1
  599. package/src/components/DatePicker/DatePicker.js +0 -390
  600. package/src/components/DatePicker/DatePicker.js.map +0 -1
  601. package/src/components/DatePicker/DatePickerComponent.js +0 -14
  602. package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
  603. package/src/components/DatePicker/DatePickerComponent.web.js +0 -31
  604. package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  605. package/src/components/DatePicker/DatePickerComponentType.js +0 -2
  606. package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
  607. package/src/components/DeckSwiper/DeckSwiper.js +0 -91
  608. package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
  609. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  610. package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
  611. package/src/components/DeckSwiper/index.js +0 -3
  612. package/src/components/DeckSwiper/index.js.map +0 -1
  613. package/src/components/Divider.js +0 -14
  614. package/src/components/Divider.js.map +0 -1
  615. package/src/components/Elevation.js +0 -21
  616. package/src/components/Elevation.js.map +0 -1
  617. package/src/components/FormRow.js +0 -20
  618. package/src/components/FormRow.js.map +0 -1
  619. package/src/components/IconButton.js +0 -36
  620. package/src/components/IconButton.js.map +0 -1
  621. package/src/components/Image.js +0 -48
  622. package/src/components/Image.js.map +0 -1
  623. package/src/components/Layout/AspectRatio.js +0 -7
  624. package/src/components/Layout/AspectRatio.js.map +0 -1
  625. package/src/components/Layout/Center.js +0 -15
  626. package/src/components/Layout/Center.js.map +0 -1
  627. package/src/components/Layout/Circle.js +0 -16
  628. package/src/components/Layout/Circle.js.map +0 -1
  629. package/src/components/Layout/HStack.js +0 -12
  630. package/src/components/Layout/HStack.js.map +0 -1
  631. package/src/components/Layout/LayoutCommon.js +0 -8
  632. package/src/components/Layout/LayoutCommon.js.map +0 -1
  633. package/src/components/Layout/Spacer.js +0 -15
  634. package/src/components/Layout/Spacer.js.map +0 -1
  635. package/src/components/Layout/Square.js +0 -25
  636. package/src/components/Layout/Square.js.map +0 -1
  637. package/src/components/Layout/VStack.js +0 -12
  638. package/src/components/Layout/VStack.js.map +0 -1
  639. package/src/components/Layout/ZStack.js +0 -58
  640. package/src/components/Layout/ZStack.js.map +0 -1
  641. package/src/components/Layout/index.js +0 -9
  642. package/src/components/Layout/index.js.map +0 -1
  643. package/src/components/Markdown.js +0 -11
  644. package/src/components/Markdown.js.map +0 -1
  645. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
  646. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
  647. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -126
  648. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
  649. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -93
  650. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
  651. package/src/components/MediaPlayer/AudioPlayer/index.js +0 -15
  652. package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
  653. package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
  654. package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
  655. package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -24
  656. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
  657. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -75
  658. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
  659. package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
  660. package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
  661. package/src/components/NumberInput.js +0 -60
  662. package/src/components/NumberInput.js.map +0 -1
  663. package/src/components/Picker/NativePicker.js +0 -95
  664. package/src/components/Picker/NativePicker.js.map +0 -1
  665. package/src/components/Picker/PickerCommon.js +0 -25
  666. package/src/components/Picker/PickerCommon.js.map +0 -1
  667. package/src/components/Picker/PickerInputContainer.js +0 -37
  668. package/src/components/Picker/PickerInputContainer.js.map +0 -1
  669. package/src/components/Picker/dropdown/DropDownPicker.js +0 -65
  670. package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
  671. package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
  672. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
  673. package/src/components/Picker/dropdown/PickerItem.js +0 -9
  674. package/src/components/Picker/dropdown/PickerItem.js.map +0 -1
  675. package/src/components/Picker/index.js +0 -18
  676. package/src/components/Picker/index.js.map +0 -1
  677. package/src/components/PinInput/CustomPinInputCell.js +0 -11
  678. package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
  679. package/src/components/PinInput/PinInput.js +0 -81
  680. package/src/components/PinInput/PinInput.js.map +0 -1
  681. package/src/components/PinInput/PinInputText.js +0 -14
  682. package/src/components/PinInput/PinInputText.js.map +0 -1
  683. package/src/components/PinInput/index.js +0 -4
  684. package/src/components/PinInput/index.js.map +0 -1
  685. package/src/components/Portal/Portal.js +0 -36
  686. package/src/components/Portal/Portal.js.map +0 -1
  687. package/src/components/Portal/PortalConsumer.js +0 -28
  688. package/src/components/Portal/PortalConsumer.js.map +0 -1
  689. package/src/components/Portal/PortalHost.js +0 -108
  690. package/src/components/Portal/PortalHost.js.map +0 -1
  691. package/src/components/Portal/PortalManager.js +0 -33
  692. package/src/components/Portal/PortalManager.js.map +0 -1
  693. package/src/components/Pressable.js +0 -13
  694. package/src/components/Pressable.js.map +0 -1
  695. package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
  696. package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
  697. package/src/components/Progress/CircularProgress/index.js +0 -14
  698. package/src/components/Progress/CircularProgress/index.js.map +0 -1
  699. package/src/components/Progress/IndeterminateProgress.js +0 -39
  700. package/src/components/Progress/IndeterminateProgress.js.map +0 -1
  701. package/src/components/Progress/LinearProgress/LinearProgress.js +0 -56
  702. package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
  703. package/src/components/Progress/LinearProgress/index.js +0 -14
  704. package/src/components/Progress/LinearProgress/index.js.map +0 -1
  705. package/src/components/Progress/ProgressCommon.js +0 -2
  706. package/src/components/Progress/ProgressCommon.js.map +0 -1
  707. package/src/components/ProgressIndicator.js +0 -28
  708. package/src/components/ProgressIndicator.js.map +0 -1
  709. package/src/components/RadioButton/RadioButton.js +0 -18
  710. package/src/components/RadioButton/RadioButton.js.map +0 -1
  711. package/src/components/RadioButton/RadioButtonGroup.js +0 -44
  712. package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
  713. package/src/components/RadioButton/RadioButtonRow.js +0 -77
  714. package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
  715. package/src/components/RadioButton/context.js +0 -15
  716. package/src/components/RadioButton/context.js.map +0 -1
  717. package/src/components/RadioButton/index.js +0 -4
  718. package/src/components/RadioButton/index.js.map +0 -1
  719. package/src/components/Row.js +0 -49
  720. package/src/components/Row.js.map +0 -1
  721. package/src/components/SVG.js +0 -14
  722. package/src/components/SVG.js.map +0 -1
  723. package/src/components/ScreenContainer.js +0 -36
  724. package/src/components/ScreenContainer.js.map +0 -1
  725. package/src/components/SectionList/SectionHeader.js +0 -14
  726. package/src/components/SectionList/SectionHeader.js.map +0 -1
  727. package/src/components/SectionList/SectionList.js +0 -111
  728. package/src/components/SectionList/SectionList.js.map +0 -1
  729. package/src/components/SectionList/index.js +0 -3
  730. package/src/components/SectionList/index.js.map +0 -1
  731. package/src/components/Shadow.js +0 -26
  732. package/src/components/Shadow.js.map +0 -1
  733. package/src/components/Slider.js +0 -64
  734. package/src/components/Slider.js.map +0 -1
  735. package/src/components/StarRating.js +0 -51
  736. package/src/components/StarRating.js.map +0 -1
  737. package/src/components/StepIndicator.js +0 -347
  738. package/src/components/StepIndicator.js.map +0 -1
  739. package/src/components/Stepper.js +0 -42
  740. package/src/components/Stepper.js.map +0 -1
  741. package/src/components/Surface.js +0 -33
  742. package/src/components/Surface.js.map +0 -1
  743. package/src/components/SwipeableItem/SwipeableItem.js +0 -119
  744. package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
  745. package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
  746. package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
  747. package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
  748. package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
  749. package/src/components/SwipeableItem/SwipeableList.js +0 -29
  750. package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
  751. package/src/components/SwipeableItem/index.js +0 -4
  752. package/src/components/SwipeableItem/index.js.map +0 -1
  753. package/src/components/Swiper/Swiper.js +0 -74
  754. package/src/components/Swiper/Swiper.js.map +0 -1
  755. package/src/components/Swiper/SwiperItem.js +0 -10
  756. package/src/components/Swiper/SwiperItem.js.map +0 -1
  757. package/src/components/Swiper/index.js +0 -3
  758. package/src/components/Swiper/index.js.map +0 -1
  759. package/src/components/Switch.js +0 -57
  760. package/src/components/Switch.js.map +0 -1
  761. package/src/components/TabView/TabView.js +0 -55
  762. package/src/components/TabView/TabView.js.map +0 -1
  763. package/src/components/TabView/TabViewItem.js +0 -12
  764. package/src/components/TabView/TabViewItem.js.map +0 -1
  765. package/src/components/TabView/index.js +0 -3
  766. package/src/components/TabView/index.js.map +0 -1
  767. package/src/components/Table/Table.js +0 -94
  768. package/src/components/Table/Table.js.map +0 -1
  769. package/src/components/Table/TableCell.js +0 -34
  770. package/src/components/Table/TableCell.js.map +0 -1
  771. package/src/components/Table/TableCommon.js +0 -13
  772. package/src/components/Table/TableCommon.js.map +0 -1
  773. package/src/components/Table/TableRow.js +0 -40
  774. package/src/components/Table/TableRow.js.map +0 -1
  775. package/src/components/Table/index.js +0 -4
  776. package/src/components/Table/index.js.map +0 -1
  777. package/src/components/Text.js +0 -34
  778. package/src/components/Text.js.map +0 -1
  779. package/src/components/TextField.js +0 -414
  780. package/src/components/TextField.js.map +0 -1
  781. package/src/components/TextInput.js +0 -15
  782. package/src/components/TextInput.js.map +0 -1
  783. package/src/components/Touchable.js +0 -13
  784. package/src/components/Touchable.js.map +0 -1
  785. package/src/components/Touchable.web.js +0 -3
  786. package/src/components/Touchable.web.js.map +0 -1
  787. package/src/components/Typography.js +0 -37
  788. package/src/components/Typography.js.map +0 -1
  789. package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
  790. package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
  791. package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -10
  792. package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
  793. package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
  794. package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
  795. package/src/components/YoutubePlayer/index.js +0 -2
  796. package/src/components/YoutubePlayer/index.js.map +0 -1
  797. package/src/components/useAuthState.js +0 -35
  798. package/src/components/useAuthState.js.map +0 -1
  799. package/src/constants.js +0 -11
  800. package/src/constants.js.map +0 -1
  801. package/src/deprecated-components/AccordionItem.js +0 -36
  802. package/src/deprecated-components/AccordionItem.js.map +0 -1
  803. package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
  804. package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
  805. package/src/deprecated-components/AvatarEdit.js +0 -34
  806. package/src/deprecated-components/AvatarEdit.js.map +0 -1
  807. package/src/deprecated-components/Banner.js +0 -113
  808. package/src/deprecated-components/Banner.js.map +0 -1
  809. package/src/deprecated-components/Card.js +0 -61
  810. package/src/deprecated-components/Card.js.map +0 -1
  811. package/src/deprecated-components/CheckboxGroup.js +0 -25
  812. package/src/deprecated-components/CheckboxGroup.js.map +0 -1
  813. package/src/deprecated-components/CircleImage.js +0 -12
  814. package/src/deprecated-components/CircleImage.js.map +0 -1
  815. package/src/deprecated-components/CircularProgress.js +0 -85
  816. package/src/deprecated-components/CircularProgress.js.map +0 -1
  817. package/src/deprecated-components/Container.js +0 -47
  818. package/src/deprecated-components/Container.js.map +0 -1
  819. package/src/deprecated-components/DeprecatedButton.js +0 -87
  820. package/src/deprecated-components/DeprecatedButton.js.map +0 -1
  821. package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
  822. package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
  823. package/src/deprecated-components/DeprecatedFAB.js +0 -118
  824. package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
  825. package/src/deprecated-components/FAB.js +0 -50
  826. package/src/deprecated-components/FAB.js.map +0 -1
  827. package/src/deprecated-components/FieldSearchBarFull.js +0 -57
  828. package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
  829. package/src/deprecated-components/Layout.js +0 -69
  830. package/src/deprecated-components/Layout.js.map +0 -1
  831. package/src/deprecated-components/ProgressBar.js +0 -122
  832. package/src/deprecated-components/ProgressBar.js.map +0 -1
  833. package/src/deprecated-components/ProgressCircle.js +0 -17
  834. package/src/deprecated-components/ProgressCircle.js.map +0 -1
  835. package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
  836. package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
  837. package/src/deprecated-components/RowBodyIcon.js +0 -12
  838. package/src/deprecated-components/RowBodyIcon.js.map +0 -1
  839. package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
  840. package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
  841. package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
  842. package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
  843. package/src/deprecated-components/ToggleButton.js +0 -43
  844. package/src/deprecated-components/ToggleButton.js.map +0 -1
  845. package/src/hooks.js +0 -25
  846. package/src/hooks.js.map +0 -1
  847. package/src/index.js +0 -66
  848. package/src/index.js.map +0 -1
  849. package/src/interfaces/Icon.js +0 -9
  850. package/src/interfaces/Icon.js.map +0 -1
  851. package/src/styles/DarkTheme.js +0 -27
  852. package/src/styles/DarkTheme.js.map +0 -1
  853. package/src/styles/DefaultTheme.js +0 -112
  854. package/src/styles/DefaultTheme.js.map +0 -1
  855. package/src/styles/fonts.js +0 -63
  856. package/src/styles/fonts.js.map +0 -1
  857. package/src/styles/overlay.js +0 -61
  858. package/src/styles/overlay.js.map +0 -1
  859. package/src/styles/shadow.js +0 -52
  860. package/src/styles/shadow.js.map +0 -1
  861. package/src/theming.js +0 -4
  862. package/src/theming.js.map +0 -1
  863. package/src/utilities.js +0 -201
  864. package/src/utilities.js.map +0 -1
@@ -1,93 +0,0 @@
1
- import * as React from "react";
2
- import { Audio, InterruptionModeIOS, InterruptionModeAndroid, } from "expo-av";
3
- import { mapToMediaPlayerStatus } from "../MediaPlayerCommon";
4
- import MediaPlaybackWrapper from "../MediaPlaybackWrapper";
5
- /**
6
- * Audio Player component without an interface (UI).
7
- * Only handles playing of the audio and provides callbacks and ref functions
8
- */
9
- const HeadlessAudioPlayer = React.forwardRef(({ source, interruptionMode = "lower volume", playsInBackground = false, playsInSilentModeIOS = false, playThroughEarpieceAndroid = false, onPlaybackStatusUpdate: onPlaybackStatusUpdateProp, onPlaybackFinish, }, ref) => {
10
- const [currentSound, setCurrentSound] = React.useState();
11
- const [isPlaying, setIsPlaying] = React.useState(false);
12
- const updateAudioMode = React.useCallback(async () => {
13
- try {
14
- await Audio.setAudioModeAsync({
15
- staysActiveInBackground: playsInBackground,
16
- interruptionModeIOS: interruptionMode === "lower volume"
17
- ? InterruptionModeIOS.DuckOthers
18
- : InterruptionModeIOS.DoNotMix,
19
- interruptionModeAndroid: interruptionMode === "lower volume"
20
- ? InterruptionModeAndroid.DuckOthers
21
- : InterruptionModeAndroid.DoNotMix,
22
- playsInSilentModeIOS,
23
- playThroughEarpieceAndroid,
24
- });
25
- }
26
- catch (e) {
27
- console.error("Failed to set audio mode. interruptionMode, playsInBackground, playsInSilentModeIOS, playThroughEarpieceAndroid might not be set. Failed with", e);
28
- }
29
- }, [
30
- interruptionMode,
31
- playsInBackground,
32
- playsInSilentModeIOS,
33
- playThroughEarpieceAndroid,
34
- ]);
35
- const onPlaybackStatusUpdate = (status) => {
36
- const mappedStatus = mapToMediaPlayerStatus(status);
37
- onPlaybackStatusUpdateProp === null || onPlaybackStatusUpdateProp === void 0 ? void 0 : onPlaybackStatusUpdateProp(mappedStatus);
38
- if (status.isLoaded) {
39
- if (status.didJustFinish) {
40
- onPlaybackFinish === null || onPlaybackFinish === void 0 ? void 0 : onPlaybackFinish();
41
- }
42
- setIsPlaying(status.isPlaying);
43
- }
44
- };
45
- const onTogglePlayback = () => {
46
- //Has to be called everytime a player is played to reconfigure the global Audio config based on each player's configuration
47
- updateAudioMode();
48
- };
49
- const loadAudio = async () => {
50
- onPlaybackStatusUpdateProp === null || onPlaybackStatusUpdateProp === void 0 ? void 0 : onPlaybackStatusUpdateProp({
51
- isPlaying: false,
52
- isLoading: true,
53
- isBuffering: false,
54
- currentPositionMillis: 0,
55
- durationMillis: 0,
56
- bufferedDurationMillis: 0,
57
- isError: false,
58
- });
59
- const { sound } = await Audio.Sound.createAsync(source);
60
- setCurrentSound(sound);
61
- sound.setOnPlaybackStatusUpdate(onPlaybackStatusUpdate);
62
- };
63
- useSourceDeepCompareEffect(() => {
64
- loadAudio();
65
- // Ignore dependency of loadAudio
66
- }, [source]);
67
- return (React.createElement(MediaPlaybackWrapper, { ref: ref, isPlaying: isPlaying, media: currentSound, onTogglePlayback: onTogglePlayback }));
68
- });
69
- // The source provided into the AudioPlayer can be of type {uri: "some uri"}
70
- // In the case that this object is created inline, each rerender provides a new source object because a new object is initialized everytime
71
- // This creates an issue with being a useEffect dependency
72
- //
73
- // This creates variants of useEffect that checks deep equality of 'uri' to determine if dependency changed or not
74
- // Follows: https://stackoverflow.com/a/54096391
75
- function sourceDeepCompareEquals(a, b) {
76
- if ((a === null || a === void 0 ? void 0 : a.uri) && (b === null || b === void 0 ? void 0 : b.uri)) {
77
- return a.uri === b.uri;
78
- }
79
- return a === b;
80
- }
81
- function useSourceDeepCompareMemoize(value) {
82
- const ref = React.useRef();
83
- if (!sourceDeepCompareEquals(value, ref.current)) {
84
- ref.current = value;
85
- }
86
- return ref.current;
87
- }
88
- function useSourceDeepCompareEffect(callback, dependencies) {
89
- // eslint-disable-next-line react-hooks/exhaustive-deps
90
- React.useEffect(callback, dependencies.map(useSourceDeepCompareMemoize));
91
- }
92
- export default HeadlessAudioPlayer;
93
- //# sourceMappingURL=HeadlessAudioPlayer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HeadlessAudioPlayer.js","sourceRoot":"","sources":["HeadlessAudioPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,EAEL,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAkB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D;;;GAGG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAI1C,CACE,EACE,MAAM,EACN,gBAAgB,GAAG,cAAc,EACjC,iBAAiB,GAAG,KAAK,EACzB,oBAAoB,GAAG,KAAK,EAC5B,0BAA0B,GAAG,KAAK,EAClC,sBAAsB,EAAE,0BAA0B,EAClD,gBAAgB,GACjB,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAe,CAAC;IACtE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;QACnD,IAAI;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BAA0B,CACjC,QAA8B,EAC9B,YAAkC;IAElC,uDAAuD;IACvD,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../../../theming";
3
- import HeadlessAudioPlayer from "./HeadlessAudioPlayer";
4
- import AudioPlayerWithInterface from "./AudioPlayerWithInterface";
5
- const AudioPlayer = React.forwardRef(({ mode = "interface", ...rest }, ref) => {
6
- switch (mode) {
7
- case "headless":
8
- return React.createElement(HeadlessAudioPlayer, { ref: ref, ...rest });
9
- case "interface":
10
- //@ts-ignore Typescript unable to handle nested passing of theme
11
- return React.createElement(AudioPlayerWithInterface, { ref: ref, ...rest });
12
- }
13
- });
14
- export default withTheme(AudioPlayer);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAOlE,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IACzC,QAAQ,IAAI,EAAE;QACZ,KAAK,UAAU;YACb,OAAO,oBAAC,mBAAmB,IAAC,GAAG,EAAE,GAAG,KAAM,IAAI,GAAI,CAAC;QACrD,KAAK,WAAW;YACd,gEAAgE;YAChE,OAAO,oBAAC,wBAAwB,IAAC,GAAG,EAAE,GAAG,KAAM,IAAI,GAAI,CAAC;KAC3D;AACH,CAAC,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,WAAW,CAAC,CAAC"}
@@ -1,42 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Wrapper component that handles common media playback operations that is reusable with audio and video players
4
- */
5
- const MediaPlaybackWrapper = React.forwardRef(({ media, isPlaying, onTogglePlayback, children }, ref) => {
6
- const togglePlayback = React.useCallback(async () => {
7
- onTogglePlayback === null || onTogglePlayback === void 0 ? void 0 : onTogglePlayback();
8
- if (isPlaying) {
9
- await (media === null || media === void 0 ? void 0 : media.pauseAsync());
10
- }
11
- else {
12
- await (media === null || media === void 0 ? void 0 : media.playAsync());
13
- }
14
- }, [media, isPlaying, onTogglePlayback]);
15
- const pause = React.useCallback(async () => {
16
- onTogglePlayback === null || onTogglePlayback === void 0 ? void 0 : onTogglePlayback();
17
- await (media === null || media === void 0 ? void 0 : media.pauseAsync());
18
- }, [media, onTogglePlayback]);
19
- const play = React.useCallback(async () => {
20
- onTogglePlayback === null || onTogglePlayback === void 0 ? void 0 : onTogglePlayback();
21
- await (media === null || media === void 0 ? void 0 : media.playAsync());
22
- }, [media, onTogglePlayback]);
23
- const seekToPosition = React.useCallback(async (positionMillis) => {
24
- await (media === null || media === void 0 ? void 0 : media.setPositionAsync(positionMillis));
25
- }, [media]);
26
- React.useEffect(() => {
27
- return media
28
- ? () => {
29
- media.unloadAsync();
30
- }
31
- : undefined;
32
- }, [media]);
33
- React.useImperativeHandle(ref, () => ({
34
- seekToPosition,
35
- togglePlayback,
36
- pause,
37
- play,
38
- }), [seekToPosition, togglePlayback, pause, play]);
39
- return React.createElement(React.Fragment, null, children);
40
- });
41
- export default MediaPlaybackWrapper;
42
- //# sourceMappingURL=MediaPlaybackWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaPlaybackWrapper.js","sourceRoot":"","sources":["MediaPlaybackWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B;;GAEG;AACH,MAAM,oBAAoB,GAAG,KAAK,CAAC,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,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,OAAO,KAAK;YACV,CAAC,CAAC,GAAG,EAAE;gBACH,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,CAAC;YACH,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,KAAK,CAAC,mBAAmB,CACvB,GAAG,EACH,GAAG,EAAE,CAAC,CAAC;QACL,cAAc;QACd,cAAc;QACd,KAAK;QACL,IAAI;KACL,CAAC,EACF,CAAC,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,CAAC,CAC9C,CAAC;IAEF,OAAO,0CAAG,QAAQ,CAAI,CAAC;AACzB,CAAC,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -1,24 +0,0 @@
1
- export function mapToMediaPlayerStatus(status) {
2
- if (status.isLoaded) {
3
- return {
4
- isPlaying: status.isPlaying,
5
- isLoading: false,
6
- isBuffering: status.isBuffering,
7
- currentPositionMillis: status.positionMillis || 0,
8
- durationMillis: status.durationMillis || 0,
9
- bufferedDurationMillis: status.playableDurationMillis || 0,
10
- isError: false,
11
- };
12
- }
13
- return {
14
- isPlaying: false,
15
- isLoading: false,
16
- isBuffering: false,
17
- currentPositionMillis: 0,
18
- durationMillis: 0,
19
- bufferedDurationMillis: 0,
20
- isError: true,
21
- error: status.error,
22
- };
23
- }
24
- //# sourceMappingURL=MediaPlayerCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaPlayerCommon.js","sourceRoot":"","sources":["MediaPlayerCommon.ts"],"names":[],"mappings":"AA0BA,MAAM,UAAU,sBAAsB,CACpC,MAAwB;IAExB,IAAI,MAAM,CAAC,QAAQ,EAAE;QACnB,OAAO;YACL,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,qBAAqB,EAAE,MAAM,CAAC,cAAc,IAAI,CAAC;YACjD,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,CAAC;YAC1C,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,IAAI,CAAC;YAC1D,OAAO,EAAE,KAAK;SACf,CAAC;KACH;IAED,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,KAAK;QAClB,qBAAqB,EAAE,CAAC;QACxB,cAAc,EAAE,CAAC;QACjB,sBAAsB,EAAE,CAAC;QACzB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;AACJ,CAAC"}
@@ -1,75 +0,0 @@
1
- import React from "react";
2
- import { Video as VideoPlayerComponent, ResizeMode as ExpoResizeMode, VideoFullscreenUpdate, } from "expo-av";
3
- import { extractSizeStyles } from "../../../utilities";
4
- import MediaPlaybackWrapper from "../MediaPlaybackWrapper";
5
- import { mapToMediaPlayerStatus, } from "../MediaPlayerCommon";
6
- const VideoPlayer = React.forwardRef(({ style, resizeMode = "contain", posterResizeMode = "cover", onPlaybackStatusUpdate: onPlaybackStatusUpdateProp, onPlaybackFinish, ...rest }, ref) => {
7
- const [videoMediaObject, setVideoMediaObject] = React.useState();
8
- const [isPlaying, setIsPlaying] = React.useState(false);
9
- const [isFullscreen, setIsFullscreen] = React.useState(false);
10
- const mediaPlaybackWrapperRef = React.useRef(null);
11
- const sizeStyles = extractSizeStyles(style);
12
- let mappedResizeMode;
13
- switch (resizeMode) {
14
- case "contain":
15
- mappedResizeMode = ExpoResizeMode.CONTAIN;
16
- break;
17
- case "cover":
18
- mappedResizeMode = ExpoResizeMode.COVER;
19
- break;
20
- case "stretch":
21
- mappedResizeMode = ExpoResizeMode.STRETCH;
22
- break;
23
- }
24
- const onPlaybackStatusUpdate = (status) => {
25
- const mappedStatus = mapToMediaPlayerStatus(status);
26
- onPlaybackStatusUpdateProp === null || onPlaybackStatusUpdateProp === void 0 ? void 0 : onPlaybackStatusUpdateProp(mappedStatus);
27
- if (status.isLoaded) {
28
- if (status.didJustFinish) {
29
- onPlaybackFinish === null || onPlaybackFinish === void 0 ? void 0 : onPlaybackFinish();
30
- }
31
- setIsPlaying(status.isPlaying);
32
- }
33
- };
34
- const onFullscreenUpdate = (fullscreenUpdate) => {
35
- switch (fullscreenUpdate) {
36
- case VideoFullscreenUpdate.PLAYER_DID_PRESENT:
37
- case VideoFullscreenUpdate.PLAYER_WILL_PRESENT:
38
- setIsFullscreen(true);
39
- break;
40
- case VideoFullscreenUpdate.PLAYER_DID_DISMISS:
41
- case VideoFullscreenUpdate.PLAYER_WILL_DISMISS:
42
- setIsFullscreen(false);
43
- break;
44
- }
45
- };
46
- const toggleFullscreen = React.useCallback(async () => {
47
- if (isFullscreen) {
48
- await (videoMediaObject === null || videoMediaObject === void 0 ? void 0 : videoMediaObject.dismissFullscreenPlayer());
49
- }
50
- else {
51
- await (videoMediaObject === null || videoMediaObject === void 0 ? void 0 : videoMediaObject.presentFullscreenPlayer());
52
- }
53
- }, [isFullscreen, videoMediaObject]);
54
- React.useImperativeHandle(ref, () => {
55
- var _a, _b, _c, _d;
56
- return ({
57
- toggleFullscreen,
58
- seekToPosition: ((_a = mediaPlaybackWrapperRef.current) === null || _a === void 0 ? void 0 : _a.seekToPosition) || (() => { }),
59
- togglePlayback: ((_b = mediaPlaybackWrapperRef.current) === null || _b === void 0 ? void 0 : _b.togglePlayback) || (() => { }),
60
- pause: ((_c = mediaPlaybackWrapperRef.current) === null || _c === void 0 ? void 0 : _c.pause) || (() => { }),
61
- play: ((_d = mediaPlaybackWrapperRef.current) === null || _d === void 0 ? void 0 : _d.play) || (() => { }),
62
- });
63
- },
64
- // Include 'isPlaying' as dependency because 'togglePlayback' changes when it changes
65
- // eslint-disable-next-line react-hooks/exhaustive-deps
66
- [toggleFullscreen, isPlaying]);
67
- return (React.createElement(MediaPlaybackWrapper, { media: videoMediaObject, isPlaying: isPlaying, ref: mediaPlaybackWrapperRef },
68
- React.createElement(VideoPlayerComponent
69
- // https://docs.expo.dev/versions/latest/sdk/av/#example-video to see why ref is handled this way
70
- , {
71
- // https://docs.expo.dev/versions/latest/sdk/av/#example-video to see why ref is handled this way
72
- ref: (component) => setVideoMediaObject(component), style: style, videoStyle: sizeStyles, resizeMode: mappedResizeMode, posterStyle: [sizeStyles, { resizeMode: posterResizeMode }], onPlaybackStatusUpdate: onPlaybackStatusUpdate, onFullscreenUpdate: (e) => onFullscreenUpdate(e.fullscreenUpdate), ...rest })));
73
- });
74
- export default VideoPlayer;
75
- //# sourceMappingURL=VideoPlayer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoPlayer.js","sourceRoot":"","sources":["VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,IAAI,oBAAoB,EAE7B,UAAU,IAAI,cAAc,EAE5B,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAGL,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAiB9B,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAClC,CACE,EACE,KAAK,EACL,UAAU,GAAG,SAAS,EACtB,gBAAgB,GAAG,OAAO,EAC1B,sBAAsB,EAAE,0BAA0B,EAClD,gBAAgB,EAChB,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAC3C,KAAK,CAAC,QAAQ,EAA+B,CAAC;IAChD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,K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C5B,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,EAC3D,sBAAsB,EAAE,sBAAsB,EAC9C,kBAAkB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAC7D,IAAI,GACR,CACmB,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as default } from "./VideoPlayer";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1,60 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import { TextInput as NativeTextInput } from "react-native";
3
- import { isString, isNumber, isNaN } from "lodash";
4
- import { useDebounce } from "../hooks";
5
- const NumberInput = React.forwardRef(({ onChangeText, onChangeTextDelayed, changeTextDelay = 500, value, defaultValue, ...props }, ref) => {
6
- const [currentStringNumberValue, setCurrentStringNumberValue] = useState("");
7
- const delayedValue = useDebounce(value, changeTextDelay);
8
- const formatValueToStringNumber = (valueToFormat) => {
9
- if (valueToFormat != null) {
10
- if (isString(valueToFormat) && valueToFormat !== "") {
11
- if (/^0[1-9]$/.test(valueToFormat)) {
12
- return valueToFormat.slice(1);
13
- }
14
- else if (/^[+-]?([0-9]+\.?[0-9]*|\.[0-9]+)$/.test(valueToFormat)) {
15
- return valueToFormat;
16
- }
17
- else {
18
- return currentStringNumberValue;
19
- }
20
- }
21
- else if (isNumber(valueToFormat) && !isNaN(valueToFormat)) {
22
- return valueToFormat.toString();
23
- }
24
- }
25
- return "";
26
- };
27
- const handleChangeText = (newValue) => {
28
- const newStringNumberValue = formatValueToStringNumber(newValue);
29
- const number = parseFloat(newStringNumberValue);
30
- setCurrentStringNumberValue(newStringNumberValue);
31
- onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(number);
32
- };
33
- // run handleChangeText with value prop only when value prop changes (and first render to reset currentStringNumberValue)
34
- useEffect(() => {
35
- const nextStringNumberValue = formatValueToStringNumber(value);
36
- if (currentStringNumberValue !== nextStringNumberValue) {
37
- handleChangeText(nextStringNumberValue);
38
- }
39
- // eslint-disable-next-line react-hooks/exhaustive-deps
40
- }, [value]);
41
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
42
- useEffect(() => {
43
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
44
- if (currentStringNumberValue !== defaultStringNumberValue) {
45
- setCurrentStringNumberValue(defaultStringNumberValue);
46
- }
47
- // eslint-disable-next-line react-hooks/exhaustive-deps
48
- }, []);
49
- useEffect(() => {
50
- if (delayedValue !== undefined) {
51
- const newStringNumberValue = formatValueToStringNumber(delayedValue);
52
- const number = parseFloat(newStringNumberValue);
53
- onChangeTextDelayed === null || onChangeTextDelayed === void 0 ? void 0 : onChangeTextDelayed(number);
54
- }
55
- // eslint-disable-next-line react-hooks/exhaustive-deps
56
- }, [delayedValue]);
57
- return (React.createElement(NativeTextInput, { testID: "native-text-input", ref: ref, keyboardType: "numeric", value: currentStringNumberValue, onChangeText: handleChangeText, ...props }));
58
- });
59
- export default NumberInput;
60
- //# sourceMappingURL=NumberInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInput.js","sourceRoot":"","sources":["NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAavC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAClC,C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CAAC,KAAK,CAAC,CAAC;QAE/D,IAAI,wBAAwB,KAAK,qBAAqB,EAAE;YACtD,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;SACzC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,iGAAiG;IACjG,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;QAEzE,IAAI,wBAAwB,KAAK,wBAAwB,EAAE;YACzD,2BAA2B,CAAC,wBAAwB,CAAC,CAAC;SACvD;QACD,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;YACrE,MAAM,MAAM,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;YAChD,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,MAAM,CAAC,CAAC;SAC/B;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,oBAAC,eAAe,IACd,MAAM,EAAC,mBAAmB,EAC1B,GAAG,EAAE,GAAG,EACR,YAAY,EAAC,SAAS,EACtB,KAAK,EAAE,wBAAwB,EAC/B,YAAY,EAAE,gBAAgB,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,95 +0,0 @@
1
- import * as React from "react";
2
- import { StyleSheet, Platform, Keyboard } from "react-native";
3
- import { SafeAreaView } from "react-native-safe-area-context";
4
- import { Picker as NativePickerComponent } from "@react-native-picker/picker";
5
- import Portal from "../Portal/Portal";
6
- import { Button } from "../Button";
7
- import { useDeepCompareMemo } from "../../utilities";
8
- import { normalizeToPickerOptions, } from "./PickerCommon";
9
- import PickerInputContainer from "./PickerInputContainer";
10
- import { withTheme } from "../../theming";
11
- const isIos = Platform.OS === "ios";
12
- const isWeb = Platform.OS === "web";
13
- const NativePicker = ({ options: optionsProp = [], onValueChange, Icon, placeholder, value, autoDismissKeyboard = true, theme, disabled, ...rest }) => {
14
- const pickerRef = React.useRef(null);
15
- const [pickerVisible, setPickerVisible] = React.useState(false);
16
- const options = useDeepCompareMemo(() => {
17
- const normalizedOptions = normalizeToPickerOptions(optionsProp);
18
- // Underlying Picker component defaults selection to first element when value is not provided (or undefined)
19
- // Placholder must be the 1st option in order to allow selection of the 'actual' 1st option
20
- if (placeholder) {
21
- return [{ label: placeholder, value: placeholder }, ...normalizedOptions];
22
- }
23
- else {
24
- return normalizedOptions;
25
- }
26
- }, [placeholder, optionsProp]);
27
- // When no placeholder is provided then first item should be marked selected to reflect underlying Picker internal state
28
- if (!placeholder && options.length && !value && value !== options[0].value) {
29
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(options[0].value);
30
- }
31
- const renderNativePicker = () => (React.createElement(NativePickerComponent, { ref: pickerRef, testID: "native-picker-component", selectedValue: value, onValueChange: (newValue) => {
32
- if (newValue !== placeholder) {
33
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue);
34
- }
35
- else if (newValue === placeholder) {
36
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange("");
37
- }
38
- }, style: isIos ? styles.iosNativePicker : styles.nativePicker, onBlur: () => setPickerVisible(false) }, options.map((option) => (React.createElement(NativePickerComponent.Item, { testID: "native-picker-item", label: option.label.toString(), value: option.value, key: option.value })))));
39
- const renderPicker = () => {
40
- if (isIos) {
41
- return (React.createElement(Portal, null,
42
- React.createElement(SafeAreaView, { style: styles.iosPickerContent },
43
- React.createElement(Button, { Icon: Icon, onPress: () => setPickerVisible(!pickerVisible), style: [styles.iosButton, { color: theme.colors.primary }], title: "Close" }),
44
- renderNativePicker())));
45
- }
46
- else {
47
- return renderNativePicker();
48
- }
49
- };
50
- React.useEffect(() => {
51
- var _a;
52
- if (pickerVisible && pickerRef.current) {
53
- (_a = pickerRef === null || pickerRef === void 0 ? void 0 : pickerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
54
- }
55
- }, [pickerVisible, pickerRef]);
56
- React.useEffect(() => {
57
- if (pickerVisible && autoDismissKeyboard) {
58
- Keyboard.dismiss();
59
- }
60
- }, [pickerVisible, autoDismissKeyboard]);
61
- return (React.createElement(PickerInputContainer, { testID: "native-picker", Icon: Icon, placeholder: placeholder, selectedValue: value, options: options, onPress: () => setPickerVisible(!pickerVisible), disabled: disabled, ...rest }, (pickerVisible || isWeb) && !disabled && renderPicker()));
62
- };
63
- const styles = StyleSheet.create({
64
- nativePicker: {
65
- position: "absolute",
66
- bottom: 0,
67
- left: 0,
68
- right: 0,
69
- flexDirection: "row",
70
- justifyContent: "center",
71
- width: "100%",
72
- backgroundColor: "white",
73
- opacity: 0,
74
- ...Platform.select({
75
- web: {
76
- height: "100%", //To have the <select/> element fill the height
77
- },
78
- }),
79
- },
80
- iosNativePicker: {
81
- backgroundColor: "white",
82
- },
83
- iosPickerContent: {
84
- width: "100%",
85
- position: "absolute",
86
- bottom: 0,
87
- backgroundColor: "white",
88
- },
89
- iosButton: {
90
- backgroundColor: "transparent",
91
- borderWidth: 0,
92
- },
93
- });
94
- export default withTheme(NativePicker);
95
- //# sourceMappingURL=NativePicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativePicker.js","sourceRoot":"","sources":["NativePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,MAAM,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,EA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QACxB,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,OAAO;QACxB,OAAO,EAAE,CAAC;QACV,GAAG,QAAQ,CAAC,MAAM,CAAC;YACjB,GAAG,EAAE;gBACH,MAAM,EAAE,MAAM,EAAE,+CAA+C;aAChE;SACF,CAAC;KACH;IACD,eAAe,EAAE;QACf,eAAe,EAAE,OAAO;KACzB;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC;QACT,eAAe,EAAE,OAAO;KACzB;IACD,SAAS,EAAE;QACT,eAAe,EAAE,aAAa;QAC9B,WAAW,EAAE,CAAC;KACf;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,YAAY,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import { isObject } from "lodash";
2
- export function normalizeToPickerOptions(options) {
3
- if (options.length === 0) {
4
- return [];
5
- }
6
- const firstOption = options[0];
7
- if (typeof firstOption === "string" || typeof firstOption === "number") {
8
- return options.map((option) => ({
9
- label: option,
10
- value: option,
11
- }));
12
- }
13
- if (isObject(firstOption) &&
14
- firstOption.value !== undefined &&
15
- firstOption.label !== undefined) {
16
- return options.map((option) => {
17
- return {
18
- label: option.label,
19
- value: option.value,
20
- };
21
- });
22
- }
23
- throw new Error('Picker options must be either an array of strings, numbers, or an array of { "label": string | number; "value": string | number; } objects.');
24
- }
25
- //# sourceMappingURL=PickerCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerCommon.js","sourceRoot":"","sources":["PickerCommon.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAmDlC,MAAM,UAAU,wBAAwB,CACtC,OAA6C;IAE7C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAE/B,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;QACtE,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC9B,KAAK,EAAE,MAAyB;YAChC,KAAK,EAAE,MAAyB;SACjC,CAAC,CAAC,CAAC;KACL;IAED,IACE,QAAQ,CAAC,WAAW,CAAC;QACrB,WAAW,CAAC,KAAK,KAAK,SAAS;QAC/B,WAAW,CAAC,KAAK,KAAK,SAAS,EAC/B;QACA,OAAQ,OAA0B,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAChD,OAAO;gBACL,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,MAAM,IAAI,KAAK,CACb,6IAA6I,CAC9I,CAAC;AACJ,CAAC"}
@@ -1,37 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import omit from "lodash.omit";
4
- import { extractSizeStyles, extractPositionStyles, extractFlexItemStyles, extractBorderAndMarginStyles, } from "../../utilities";
5
- import TextField from "../TextField";
6
- import Touchable from "../Touchable";
7
- const PickerInputContainer = ({ options = [], onPress, Icon, style, selectedValue, disabled = false, zIndex, children, testID, ...rest }) => {
8
- var _a;
9
- const containerStyle = StyleSheet.flatten([
10
- extractSizeStyles(style),
11
- extractPositionStyles(style),
12
- extractFlexItemStyles(style),
13
- extractBorderAndMarginStyles(style).marginStyles,
14
- ]);
15
- const textFieldStyle = omit(StyleSheet.flatten(style), Object.keys(containerStyle));
16
- let selectedLabel = "";
17
- if (Array.isArray(selectedValue)) {
18
- selectedLabel = selectedValue
19
- .map((value) => {
20
- var _a;
21
- return ((_a = options
22
- .find((option) => option.value.toString() === value.toString())) === null || _a === void 0 ? void 0 : _a.label.toString()) || value;
23
- })
24
- .join(", ");
25
- }
26
- else {
27
- selectedLabel =
28
- ((_a = options
29
- .find((option) => option.value.toString() === (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.toString()))) === null || _a === void 0 ? void 0 : _a.label.toString()) || selectedValue;
30
- }
31
- return (React.createElement(View, { testID: testID, style: [containerStyle, { zIndex }] },
32
- React.createElement(TextField, { Icon: Icon, numberOfLines: 1, onChangeText: () => { }, value: selectedLabel === null || selectedLabel === void 0 ? void 0 : selectedLabel.toString(), editable: false, disabled: disabled, style: textFieldStyle, ...rest }),
33
- React.createElement(Touchable, { style: StyleSheet.absoluteFillObject, disabled: disabled, onPress: onPress }),
34
- children));
35
- };
36
- export default PickerInputContainer;
37
- //# sourceMappingURL=PickerInputContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerInputContainer.js","sourceRoot":"","sources":["PickerInputContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAcrC,MAAM,oBAAoB,GAEtB,CAAC,EACH,OAAO,GAAG,EAAE,EACZ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,aAAa,EACb,QAAQ,GAAG,KAAK,EAChB,MAAM,EACN,QAAQ,EACR,MAAM,EACN,GAAG,IAAI,EACR,EAAE,EAAE;;IACH,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;QACxC,iBAAiB,CAAC,KAAK,CAAC;QACxB,qBAAqB,CAAC,KAAK,CAAC;QAC5B,qBAAqB,CAAC,KAAK,CAAC;QAC5B,4BAA4B,CAAC,KAAK,CAAC,CAAC,YAAY;KACjD,CAAC,CAAC;IAEH,MAA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,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB;QACD,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,65 +0,0 @@
1
- import * as React from "react";
2
- import { Keyboard } from "react-native";
3
- import { extractStyles, flattenReactFragments, useDeepCompareMemo, } from "../../../utilities";
4
- import { normalizeToPickerOptions, } from "../PickerCommon";
5
- import PickerInputContainer from "../PickerInputContainer";
6
- import DropDownPickerComponent from "react-native-dropdown-picker";
7
- import { withTheme } from "../../../theming";
8
- import PickerItem from "./PickerItem";
9
- const DropDownPicker = ({ theme, options: optionsProp = [], onValueChange, Icon, placeholder, value, autoDismissKeyboard = true, selectedIconName = "Feather/check", selectedIconColor = theme.colors.strong, selectedIconSize = 20, dropDownBackgroundColor = theme.colors.background, dropDownBorderColor = theme.colors.divider, dropDownTextColor = theme.colors.strong, dropDownBorderWidth = 1, dropDownBorderRadius = 8, children: childrenProp, disabled, ...rest }) => {
10
- const [pickerVisible, setPickerVisible] = React.useState(false);
11
- const [internalValue, setInternalValue] = React.useState();
12
- const isMultiSelect = Array.isArray(value);
13
- const pickerItemProps = React.useMemo(() => {
14
- const children = flattenReactFragments(React.Children.toArray(childrenProp));
15
- // Only the props of the first PickerItem are used, any others are ignored
16
- const firstPickerItem = children.find((child) => child.type === PickerItem);
17
- return (firstPickerItem === null || firstPickerItem === void 0 ? void 0 : firstPickerItem.props) || {};
18
- }, [childrenProp]);
19
- const { viewStyles: pickerItemViewStyles, textStyles: pickerItemTextStyles } = extractStyles(pickerItemProps.style);
20
- const options = useDeepCompareMemo(() => normalizeToPickerOptions(optionsProp).map((option) => ({
21
- label: option.label.toString(),
22
- value: option.value,
23
- })), [optionsProp]);
24
- React.useEffect(() => {
25
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange((isMultiSelect ? internalValue !== null && internalValue !== void 0 ? internalValue : [] : internalValue !== null && internalValue !== void 0 ? internalValue : "") // cannot determine if multiselect or not on compile time
26
- );
27
- // onValueChange excluded to prevent running on every re-render when using an anoymous function, which is the common case
28
- // eslint-disable-next-line react-hooks/exhaustive-deps
29
- }, [internalValue]);
30
- React.useEffect(() => {
31
- if (pickerVisible && autoDismissKeyboard) {
32
- Keyboard.dismiss();
33
- }
34
- }, [pickerVisible, autoDismissKeyboard]);
35
- React.useEffect(() => {
36
- setPickerVisible(false);
37
- }, [disabled]);
38
- return (React.createElement(PickerInputContainer, { testID: "dropdown-picker", Icon: Icon, placeholder: placeholder, selectedValue: value, options: options, onPress: () => setPickerVisible(!pickerVisible), zIndex: pickerVisible ? 100 : undefined, disabled: disabled, ...rest },
39
- React.createElement(DropDownPickerComponent, { open: pickerVisible, setOpen: setPickerVisible, value: (value || null), setValue: setInternalValue, items: options, placeholder: placeholder, listMode: "SCROLLVIEW", multiple: isMultiSelect, style: { display: "none" }, listItemLabelStyle: [
40
- { color: dropDownTextColor, fontSize: 14 },
41
- pickerItemTextStyles,
42
- ], selectedItemLabelStyle: [
43
- pickerItemProps.selectedTextColor
44
- ? {
45
- color: pickerItemProps.selectedTextColor,
46
- }
47
- : {},
48
- pickerItemProps.selectedTextSize
49
- ? {
50
- fontSize: pickerItemProps.selectedTextSize,
51
- }
52
- : {},
53
- ], listItemContainerStyle: pickerItemViewStyles, selectedItemContainerStyle: pickerItemProps.selectedBackgroundColor
54
- ? {
55
- backgroundColor: pickerItemProps.selectedBackgroundColor,
56
- }
57
- : {}, dropDownContainerStyle: {
58
- borderColor: dropDownBorderColor,
59
- borderWidth: dropDownBorderWidth,
60
- borderRadius: dropDownBorderRadius,
61
- backgroundColor: dropDownBackgroundColor,
62
- }, TickIconComponent: () => (React.createElement(Icon, { name: selectedIconName, size: selectedIconSize, color: selectedIconColor })) })));
63
- };
64
- export default withTheme(DropDownPicker);
65
- //# sourceMappingURL=DropDownPicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropDownPicker.js","sourceRoot":"","sources":["DropDownPicker.tsx"],"names":[],"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A0B,EACxB,eAAe,CAAC,uBAAuB;gBACrC,CAAC,CAAC;oBACE,eAAe,EAAE,eAAe,CAAC,uBAAuB;iBACzD;gBACH,CAAC,CAAC,EAAE,EAER,sBAAsB,EAAE;gBACtB,WAAW,EAAE,mBAAmB;gBAChC,WAAW,EAAE,mBAAmB;gBAChC,YAAY,EAAE,oBAAoB;gBAClC,eAAe,EAAE,uBAAuB;aACzC,EACD,iBAAiB,EAAE,GAAG,EAAE,CAAC,CACvB,oBAAC,IAAI,IACH,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,iBAAiB,GACxB,CACH,GACD,CACmB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import DropDownPicker from "./DropDownPicker";
3
- import { withTheme } from "../../../theming";
4
- const MultiSelectPicker = ({ value, ...rest }) => {
5
- //@ts-ignore Ignore theme type issues
6
- return React.createElement(DropDownPicker, { value: value || [], ...rest });
7
- };
8
- export default withTheme(MultiSelectPicker);
9
- //# sourceMappingURL=MultiSelectPicker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiSelectPicker.js","sourceRoot":"","sources":["MultiSelectPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,iBAAiB,GAEnB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzB,qCAAqC;IACrC,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,IAAI,EAAE,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}