@draftbit/core 47.5.3-e8c679.2 → 47.5.3

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 (705) hide show
  1. package/lib/commonjs/Provider.js +1 -0
  2. package/lib/commonjs/components/AccordionGroup.js +1 -0
  3. package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -0
  4. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -0
  5. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -0
  6. package/lib/commonjs/components/ActionSheet/index.js +1 -0
  7. package/lib/commonjs/components/AspectRatio.js +1 -0
  8. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -0
  9. package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +1 -0
  10. package/lib/commonjs/components/BottomSheet/index.js +1 -0
  11. package/lib/commonjs/components/Button.js +1 -0
  12. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -0
  13. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -0
  14. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -0
  15. package/lib/commonjs/components/Checkbox/context.js +1 -0
  16. package/lib/commonjs/components/Checkbox/index.js +1 -0
  17. package/lib/commonjs/components/Config.js +1 -0
  18. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -0
  19. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -0
  20. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -0
  21. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +1 -0
  22. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -0
  23. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -0
  24. package/lib/commonjs/components/DeckSwiper/index.js +1 -0
  25. package/lib/commonjs/components/Divider.js +1 -0
  26. package/lib/commonjs/components/Elevation.js +1 -0
  27. package/lib/commonjs/components/FormRow.js +1 -0
  28. package/lib/commonjs/components/IconButton.js +1 -0
  29. package/lib/commonjs/components/Image.js +1 -0
  30. package/lib/commonjs/components/Layout.js +1 -0
  31. package/lib/commonjs/components/Markdown.js +1 -0
  32. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +1 -0
  33. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -0
  34. package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -0
  35. package/lib/commonjs/components/MediaPlayer/AudioPlayer/index.js +1 -0
  36. package/lib/commonjs/components/MediaPlayer/MediaPlaybackWrapper.js +1 -0
  37. package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -0
  38. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -0
  39. package/lib/commonjs/components/MediaPlayer/VideoPlayer/index.js +1 -0
  40. package/lib/commonjs/components/NumberInput.js +1 -0
  41. package/lib/commonjs/components/Picker/Picker.js +1 -0
  42. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -0
  43. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -0
  44. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -0
  45. package/lib/commonjs/components/Picker/PickerTypes.js +1 -0
  46. package/lib/commonjs/components/Portal/Portal.js +1 -0
  47. package/lib/commonjs/components/Portal/PortalConsumer.js +1 -0
  48. package/lib/commonjs/components/Portal/PortalHost.js +1 -0
  49. package/lib/commonjs/components/Portal/PortalManager.js +1 -0
  50. package/lib/commonjs/components/Pressable.js +1 -0
  51. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -0
  52. package/lib/commonjs/components/Progress/CircularProgress/index.js +1 -0
  53. package/lib/commonjs/components/Progress/IndeterminateProgress.js +1 -0
  54. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -0
  55. package/lib/commonjs/components/Progress/LinearProgress/index.js +1 -0
  56. package/lib/commonjs/components/Progress/ProgressCommon.js +1 -0
  57. package/lib/commonjs/components/ProgressIndicator.js +1 -0
  58. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -0
  59. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -0
  60. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -0
  61. package/lib/commonjs/components/RadioButton/context.js +1 -0
  62. package/lib/commonjs/components/RadioButton/index.js +1 -0
  63. package/lib/commonjs/components/Row.js +1 -0
  64. package/lib/commonjs/components/SVG.js +1 -0
  65. package/lib/commonjs/components/ScreenContainer.js +1 -0
  66. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -0
  67. package/lib/commonjs/components/SectionList/SectionList.js +1 -0
  68. package/lib/commonjs/components/SectionList/index.js +1 -0
  69. package/lib/commonjs/components/Shadow.js +1 -0
  70. package/lib/commonjs/components/Slider.js +1 -0
  71. package/lib/commonjs/components/StarRating.js +1 -0
  72. package/lib/commonjs/components/StepIndicator.js +1 -0
  73. package/lib/commonjs/components/Stepper.js +1 -0
  74. package/lib/commonjs/components/Surface.js +1 -0
  75. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -0
  76. package/lib/commonjs/components/SwipeableItem/SwipeableItemButton.js +1 -0
  77. package/lib/commonjs/components/SwipeableItem/SwipeableItemCommon.js +1 -0
  78. package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -0
  79. package/lib/commonjs/components/SwipeableItem/index.js +1 -0
  80. package/lib/commonjs/components/Swiper/Swiper.js +1 -0
  81. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -0
  82. package/lib/commonjs/components/Swiper/index.js +1 -0
  83. package/lib/commonjs/components/Switch.js +1 -0
  84. package/lib/commonjs/components/TabView/TabView.js +1 -0
  85. package/lib/commonjs/components/TabView/TabViewItem.js +1 -0
  86. package/lib/commonjs/components/TabView/index.js +1 -0
  87. package/lib/commonjs/components/Table/Table.js +1 -0
  88. package/lib/commonjs/components/Table/TableCell.js +1 -0
  89. package/lib/commonjs/components/Table/TableCommon.js +1 -0
  90. package/lib/commonjs/components/Table/TableRow.js +1 -0
  91. package/lib/commonjs/components/Table/index.js +1 -0
  92. package/lib/commonjs/components/Text.js +1 -0
  93. package/lib/commonjs/components/TextField.js +1 -0
  94. package/lib/commonjs/components/TextInput.js +1 -0
  95. package/lib/commonjs/components/Touchable.js +1 -0
  96. package/lib/commonjs/components/Touchable.web.js +1 -0
  97. package/lib/commonjs/components/Typography.js +1 -0
  98. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -0
  99. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js +1 -0
  100. package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js +1 -0
  101. package/lib/commonjs/components/YoutubePlayer/index.js +1 -0
  102. package/lib/commonjs/components/useAuthState.js +1 -0
  103. package/lib/commonjs/constants.js +1 -0
  104. package/lib/commonjs/deprecated-components/AccordionItem.js +1 -0
  105. package/lib/commonjs/deprecated-components/AnimatedCircularProgress.js +1 -0
  106. package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -0
  107. package/lib/commonjs/deprecated-components/Banner.js +1 -0
  108. package/lib/commonjs/deprecated-components/Card.js +1 -0
  109. package/lib/commonjs/deprecated-components/CheckboxGroup.js +1 -0
  110. package/lib/commonjs/deprecated-components/CircleImage.js +1 -0
  111. package/lib/commonjs/deprecated-components/CircularProgress.js +1 -0
  112. package/lib/commonjs/deprecated-components/Container.js +1 -0
  113. package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -0
  114. package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -0
  115. package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -0
  116. package/lib/commonjs/deprecated-components/FAB.js +1 -0
  117. package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -0
  118. package/lib/commonjs/deprecated-components/ProgressBar.js +1 -0
  119. package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -0
  120. package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -0
  121. package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -0
  122. package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -0
  123. package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -0
  124. package/lib/commonjs/deprecated-components/ToggleButton.js +1 -0
  125. package/lib/commonjs/hooks.js +1 -0
  126. package/lib/commonjs/index.js +1 -0
  127. package/lib/commonjs/interfaces/Icon.js +1 -0
  128. package/lib/commonjs/styles/DarkTheme.js +1 -0
  129. package/lib/commonjs/styles/DefaultTheme.js +1 -0
  130. package/lib/commonjs/styles/fonts.js +1 -0
  131. package/lib/commonjs/styles/overlay.js +1 -0
  132. package/lib/commonjs/styles/shadow.js +1 -0
  133. package/lib/commonjs/theming.js +1 -0
  134. package/lib/commonjs/utilities.js +1 -0
  135. package/lib/typescript/src/Provider.js.map +1 -0
  136. package/lib/typescript/src/components/AccordionGroup.js.map +1 -0
  137. package/lib/typescript/src/components/ActionSheet/ActionSheet.js.map +1 -0
  138. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.js.map +1 -0
  139. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.js.map +1 -0
  140. package/lib/typescript/src/components/ActionSheet/index.js.map +1 -0
  141. package/lib/typescript/src/components/AspectRatio.js.map +1 -0
  142. package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -0
  143. package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.js.map +1 -0
  144. package/lib/typescript/src/components/BottomSheet/index.js.map +1 -0
  145. package/lib/typescript/src/components/Button.js.map +1 -0
  146. package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -0
  147. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.js.map +1 -0
  148. package/lib/typescript/src/components/Checkbox/CheckboxRow.js.map +1 -0
  149. package/lib/typescript/src/components/Checkbox/context.js.map +1 -0
  150. package/lib/typescript/src/components/Checkbox/index.js.map +1 -0
  151. package/lib/typescript/src/components/Config.js.map +1 -0
  152. package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -0
  153. package/lib/typescript/src/components/DatePicker/DatePickerComponent.js.map +1 -0
  154. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js.map +1 -0
  155. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.js.map +1 -0
  156. package/lib/{src → typescript/src}/components/DeckSwiper/DeckSwiper.d.ts +3 -1
  157. package/lib/{src → typescript/src}/components/DeckSwiper/DeckSwiper.js +6 -2
  158. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js.map +1 -0
  159. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -0
  160. package/lib/typescript/src/components/DeckSwiper/index.js.map +1 -0
  161. package/lib/typescript/src/components/Divider.js.map +1 -0
  162. package/lib/typescript/src/components/Elevation.js.map +1 -0
  163. package/lib/typescript/src/components/FormRow.js.map +1 -0
  164. package/lib/typescript/src/components/IconButton.js.map +1 -0
  165. package/lib/typescript/src/components/Image.js.map +1 -0
  166. package/lib/typescript/src/components/Layout.js.map +1 -0
  167. package/lib/typescript/src/components/Markdown.js.map +1 -0
  168. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +1 -0
  169. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -0
  170. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -0
  171. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -0
  172. package/lib/{src → typescript/src}/components/MediaPlayer/MediaPlaybackWrapper.js +11 -1
  173. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +1 -0
  174. package/lib/{src → typescript/src}/components/MediaPlayer/MediaPlayerCommon.d.ts +2 -0
  175. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -0
  176. package/lib/{src → typescript/src}/components/MediaPlayer/VideoPlayer/VideoPlayer.js +3 -1
  177. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -0
  178. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.js.map +1 -0
  179. package/lib/typescript/src/components/NumberInput.js.map +1 -0
  180. package/lib/typescript/src/components/Picker/Picker.js.map +1 -0
  181. package/lib/typescript/src/components/Picker/PickerComponent.android.js.map +1 -0
  182. package/lib/typescript/src/components/Picker/PickerComponent.ios.js.map +1 -0
  183. package/lib/typescript/src/components/Picker/PickerComponent.web.js.map +1 -0
  184. package/lib/typescript/src/components/Picker/PickerTypes.js.map +1 -0
  185. package/lib/typescript/src/components/Portal/Portal.js.map +1 -0
  186. package/lib/typescript/src/components/Portal/PortalConsumer.js.map +1 -0
  187. package/lib/typescript/src/components/Portal/PortalHost.js.map +1 -0
  188. package/lib/typescript/src/components/Portal/PortalManager.js.map +1 -0
  189. package/lib/typescript/src/components/Pressable.js.map +1 -0
  190. package/lib/{src → typescript/src}/components/Progress/CircularProgress/CircularProgress.js +3 -3
  191. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -0
  192. package/lib/typescript/src/components/Progress/CircularProgress/index.js.map +1 -0
  193. package/lib/{src → typescript/src}/components/Progress/IndeterminateProgress.js +1 -1
  194. package/lib/typescript/src/components/Progress/IndeterminateProgress.js.map +1 -0
  195. package/lib/{src → typescript/src}/components/Progress/LinearProgress/LinearProgress.d.ts +2 -1
  196. package/lib/{src → typescript/src}/components/Progress/LinearProgress/LinearProgress.js +1 -5
  197. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -0
  198. package/lib/typescript/src/components/Progress/LinearProgress/index.js.map +1 -0
  199. package/lib/typescript/src/components/Progress/ProgressCommon.js.map +1 -0
  200. package/lib/typescript/src/components/ProgressIndicator.js.map +1 -0
  201. package/lib/typescript/src/components/RadioButton/RadioButton.js.map +1 -0
  202. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.js.map +1 -0
  203. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js.map +1 -0
  204. package/lib/typescript/src/components/RadioButton/context.js.map +1 -0
  205. package/lib/typescript/src/components/RadioButton/index.js.map +1 -0
  206. package/lib/typescript/src/components/Row.js.map +1 -0
  207. package/lib/typescript/src/components/SVG.js.map +1 -0
  208. package/lib/typescript/src/components/ScreenContainer.js.map +1 -0
  209. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -0
  210. package/lib/{src → typescript/src}/components/SectionList/SectionList.d.ts +2 -1
  211. package/lib/{src → typescript/src}/components/SectionList/SectionList.js +10 -4
  212. package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -0
  213. package/lib/typescript/src/components/SectionList/index.js.map +1 -0
  214. package/lib/typescript/src/components/Shadow.js.map +1 -0
  215. package/lib/typescript/src/components/Slider.js.map +1 -0
  216. package/lib/typescript/src/components/StarRating.js.map +1 -0
  217. package/lib/typescript/src/components/StepIndicator.js.map +1 -0
  218. package/lib/typescript/src/components/Stepper.js.map +1 -0
  219. package/lib/typescript/src/components/Surface.js.map +1 -0
  220. package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItem.js +5 -4
  221. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -0
  222. package/lib/typescript/src/components/SwipeableItem/SwipeableItemButton.js.map +1 -0
  223. package/lib/typescript/src/components/SwipeableItem/SwipeableItemCommon.js.map +1 -0
  224. package/lib/typescript/src/components/SwipeableItem/SwipeableList.js.map +1 -0
  225. package/lib/typescript/src/components/SwipeableItem/index.js.map +1 -0
  226. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -0
  227. package/lib/typescript/src/components/Swiper/SwiperItem.js.map +1 -0
  228. package/lib/typescript/src/components/Swiper/index.js.map +1 -0
  229. package/lib/typescript/src/components/Switch.js.map +1 -0
  230. package/lib/{src → typescript/src}/components/TabView/TabView.d.ts +1 -0
  231. package/lib/{src → typescript/src}/components/TabView/TabView.js +5 -4
  232. package/lib/typescript/src/components/TabView/TabView.js.map +1 -0
  233. package/lib/typescript/src/components/TabView/TabViewItem.js.map +1 -0
  234. package/lib/typescript/src/components/TabView/index.js.map +1 -0
  235. package/lib/typescript/src/components/Table/Table.js.map +1 -0
  236. package/lib/typescript/src/components/Table/TableCell.js.map +1 -0
  237. package/lib/typescript/src/components/Table/TableCommon.js.map +1 -0
  238. package/lib/typescript/src/components/Table/TableRow.js.map +1 -0
  239. package/lib/typescript/src/components/Table/index.js.map +1 -0
  240. package/lib/typescript/src/components/Text.js.map +1 -0
  241. package/lib/typescript/src/components/TextField.js.map +1 -0
  242. package/lib/typescript/src/components/TextInput.js.map +1 -0
  243. package/lib/typescript/src/components/Touchable.js.map +1 -0
  244. package/lib/typescript/src/components/Touchable.web.js.map +1 -0
  245. package/lib/typescript/src/components/Typography.js.map +1 -0
  246. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js.map +1 -0
  247. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.native.js.map +1 -0
  248. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.js.map +1 -0
  249. package/lib/typescript/src/components/YoutubePlayer/index.js.map +1 -0
  250. package/lib/typescript/src/components/useAuthState.js.map +1 -0
  251. package/lib/typescript/src/constants.js.map +1 -0
  252. package/lib/typescript/src/deprecated-components/AccordionItem.js.map +1 -0
  253. package/lib/typescript/src/deprecated-components/AnimatedCircularProgress.js.map +1 -0
  254. package/lib/typescript/src/deprecated-components/AvatarEdit.js.map +1 -0
  255. package/lib/typescript/src/deprecated-components/Banner.js.map +1 -0
  256. package/lib/typescript/src/deprecated-components/Card.js.map +1 -0
  257. package/lib/typescript/src/deprecated-components/CheckboxGroup.js.map +1 -0
  258. package/lib/typescript/src/deprecated-components/CircleImage.js.map +1 -0
  259. package/lib/typescript/src/deprecated-components/CircularProgress.js.map +1 -0
  260. package/lib/typescript/src/deprecated-components/Container.js.map +1 -0
  261. package/lib/typescript/src/deprecated-components/DeprecatedButton.js.map +1 -0
  262. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -0
  263. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js.map +1 -0
  264. package/lib/typescript/src/deprecated-components/FAB.js.map +1 -0
  265. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js.map +1 -0
  266. package/lib/typescript/src/deprecated-components/ProgressBar.js.map +1 -0
  267. package/lib/typescript/src/deprecated-components/ProgressCircle.js.map +1 -0
  268. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -0
  269. package/lib/typescript/src/deprecated-components/RowBodyIcon.js.map +1 -0
  270. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -0
  271. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -0
  272. package/lib/typescript/src/deprecated-components/ToggleButton.js.map +1 -0
  273. package/lib/typescript/src/hooks.js.map +1 -0
  274. package/lib/typescript/src/index.js.map +1 -0
  275. package/lib/typescript/src/interfaces/Icon.js.map +1 -0
  276. package/lib/typescript/src/styles/DarkTheme.js.map +1 -0
  277. package/lib/typescript/src/styles/DefaultTheme.js.map +1 -0
  278. package/lib/typescript/src/styles/fonts.js.map +1 -0
  279. package/lib/typescript/src/styles/overlay.js.map +1 -0
  280. package/lib/typescript/src/styles/shadow.js.map +1 -0
  281. package/lib/typescript/src/theming.js.map +1 -0
  282. package/lib/{src → typescript/src}/utilities.d.ts +2 -0
  283. package/lib/{src → typescript/src}/utilities.js +13 -0
  284. package/lib/typescript/src/utilities.js.map +1 -0
  285. package/lib/typescript/tsconfig.tsbuildinfo +1 -0
  286. package/package.json +9 -7
  287. package/src/components/DeckSwiper/DeckSwiper.js +6 -2
  288. package/src/components/DeckSwiper/DeckSwiper.js.map +1 -1
  289. package/src/components/DeckSwiper/DeckSwiper.tsx +8 -0
  290. package/src/components/MediaPlayer/MediaPlaybackWrapper.js +11 -1
  291. package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +1 -1
  292. package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +13 -1
  293. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
  294. package/src/components/MediaPlayer/MediaPlayerCommon.ts +2 -0
  295. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +3 -1
  296. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  297. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +2 -0
  298. package/src/components/Progress/CircularProgress/CircularProgress.js +3 -3
  299. package/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  300. package/src/components/Progress/CircularProgress/CircularProgress.tsx +3 -1
  301. package/src/components/Progress/IndeterminateProgress.js +1 -1
  302. package/src/components/Progress/IndeterminateProgress.js.map +1 -1
  303. package/src/components/Progress/IndeterminateProgress.tsx +2 -0
  304. package/src/components/Progress/LinearProgress/LinearProgress.js +1 -5
  305. package/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  306. package/src/components/Progress/LinearProgress/LinearProgress.tsx +3 -9
  307. package/src/components/SectionList/SectionList.js +10 -4
  308. package/src/components/SectionList/SectionList.js.map +1 -1
  309. package/src/components/SectionList/SectionList.tsx +18 -2
  310. package/src/components/SwipeableItem/SwipeableItem.js +5 -4
  311. package/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  312. package/src/components/SwipeableItem/SwipeableItem.tsx +13 -3
  313. package/src/components/TabView/TabView.js +5 -4
  314. package/src/components/TabView/TabView.js.map +1 -1
  315. package/src/components/TabView/TabView.tsx +14 -4
  316. package/src/utilities.js +13 -0
  317. package/src/utilities.js.map +1 -1
  318. package/src/utilities.ts +19 -0
  319. package/lib/src/Provider.js.map +0 -1
  320. package/lib/src/components/AccordionGroup.js.map +0 -1
  321. package/lib/src/components/ActionSheet/ActionSheet.js.map +0 -1
  322. package/lib/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  323. package/lib/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
  324. package/lib/src/components/ActionSheet/index.js.map +0 -1
  325. package/lib/src/components/AspectRatio.js.map +0 -1
  326. package/lib/src/components/BottomSheet/BottomSheet.js.map +0 -1
  327. package/lib/src/components/BottomSheet/BottomSheetComponent.js.map +0 -1
  328. package/lib/src/components/BottomSheet/index.js.map +0 -1
  329. package/lib/src/components/Button.js.map +0 -1
  330. package/lib/src/components/Checkbox/Checkbox.js.map +0 -1
  331. package/lib/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  332. package/lib/src/components/Checkbox/CheckboxRow.js.map +0 -1
  333. package/lib/src/components/Checkbox/context.js.map +0 -1
  334. package/lib/src/components/Checkbox/index.js.map +0 -1
  335. package/lib/src/components/Config.js.map +0 -1
  336. package/lib/src/components/DatePicker/DatePicker.js.map +0 -1
  337. package/lib/src/components/DatePicker/DatePickerComponent.js.map +0 -1
  338. package/lib/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  339. package/lib/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
  340. package/lib/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
  341. package/lib/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
  342. package/lib/src/components/DeckSwiper/index.js.map +0 -1
  343. package/lib/src/components/Divider.js.map +0 -1
  344. package/lib/src/components/Elevation.js.map +0 -1
  345. package/lib/src/components/FormRow.js.map +0 -1
  346. package/lib/src/components/IconButton.js.map +0 -1
  347. package/lib/src/components/Image.js.map +0 -1
  348. package/lib/src/components/Layout.js.map +0 -1
  349. package/lib/src/components/Markdown.js.map +0 -1
  350. package/lib/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
  351. package/lib/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
  352. package/lib/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
  353. package/lib/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
  354. package/lib/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
  355. package/lib/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
  356. package/lib/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
  357. package/lib/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
  358. package/lib/src/components/NumberInput.js.map +0 -1
  359. package/lib/src/components/Picker/Picker.js.map +0 -1
  360. package/lib/src/components/Picker/PickerComponent.android.js.map +0 -1
  361. package/lib/src/components/Picker/PickerComponent.ios.js.map +0 -1
  362. package/lib/src/components/Picker/PickerComponent.web.js.map +0 -1
  363. package/lib/src/components/Picker/PickerTypes.js.map +0 -1
  364. package/lib/src/components/Portal/Portal.js.map +0 -1
  365. package/lib/src/components/Portal/PortalConsumer.js.map +0 -1
  366. package/lib/src/components/Portal/PortalHost.js.map +0 -1
  367. package/lib/src/components/Portal/PortalManager.js.map +0 -1
  368. package/lib/src/components/Pressable.js.map +0 -1
  369. package/lib/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
  370. package/lib/src/components/Progress/CircularProgress/index.js.map +0 -1
  371. package/lib/src/components/Progress/IndeterminateProgress.js.map +0 -1
  372. package/lib/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
  373. package/lib/src/components/Progress/LinearProgress/index.js.map +0 -1
  374. package/lib/src/components/Progress/ProgressCommon.js.map +0 -1
  375. package/lib/src/components/ProgressIndicator.js.map +0 -1
  376. package/lib/src/components/RadioButton/RadioButton.js.map +0 -1
  377. package/lib/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
  378. package/lib/src/components/RadioButton/RadioButtonRow.js.map +0 -1
  379. package/lib/src/components/RadioButton/context.js.map +0 -1
  380. package/lib/src/components/RadioButton/index.js.map +0 -1
  381. package/lib/src/components/Row.js.map +0 -1
  382. package/lib/src/components/SVG.js.map +0 -1
  383. package/lib/src/components/ScreenContainer.js.map +0 -1
  384. package/lib/src/components/SectionList/SectionHeader.js.map +0 -1
  385. package/lib/src/components/SectionList/SectionList.js.map +0 -1
  386. package/lib/src/components/SectionList/index.js.map +0 -1
  387. package/lib/src/components/Shadow.js.map +0 -1
  388. package/lib/src/components/Slider.js.map +0 -1
  389. package/lib/src/components/StarRating.js.map +0 -1
  390. package/lib/src/components/StepIndicator.js.map +0 -1
  391. package/lib/src/components/Stepper.js.map +0 -1
  392. package/lib/src/components/Surface.js.map +0 -1
  393. package/lib/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
  394. package/lib/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
  395. package/lib/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
  396. package/lib/src/components/SwipeableItem/SwipeableList.js.map +0 -1
  397. package/lib/src/components/SwipeableItem/index.js.map +0 -1
  398. package/lib/src/components/Swiper/Swiper.js.map +0 -1
  399. package/lib/src/components/Swiper/SwiperItem.js.map +0 -1
  400. package/lib/src/components/Swiper/index.js.map +0 -1
  401. package/lib/src/components/Switch.js.map +0 -1
  402. package/lib/src/components/TabView/TabView.js.map +0 -1
  403. package/lib/src/components/TabView/TabViewItem.js.map +0 -1
  404. package/lib/src/components/TabView/index.js.map +0 -1
  405. package/lib/src/components/Table/Table.js.map +0 -1
  406. package/lib/src/components/Table/TableCell.js.map +0 -1
  407. package/lib/src/components/Table/TableCommon.js.map +0 -1
  408. package/lib/src/components/Table/TableRow.js.map +0 -1
  409. package/lib/src/components/Table/index.js.map +0 -1
  410. package/lib/src/components/Text.js.map +0 -1
  411. package/lib/src/components/TextField.js.map +0 -1
  412. package/lib/src/components/TextInput.js.map +0 -1
  413. package/lib/src/components/Touchable.js.map +0 -1
  414. package/lib/src/components/Touchable.web.js.map +0 -1
  415. package/lib/src/components/Typography.js.map +0 -1
  416. package/lib/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
  417. package/lib/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
  418. package/lib/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
  419. package/lib/src/components/YoutubePlayer/index.js.map +0 -1
  420. package/lib/src/components/useAuthState.js.map +0 -1
  421. package/lib/src/constants.js.map +0 -1
  422. package/lib/src/deprecated-components/AccordionItem.js.map +0 -1
  423. package/lib/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
  424. package/lib/src/deprecated-components/AvatarEdit.js.map +0 -1
  425. package/lib/src/deprecated-components/Banner.js.map +0 -1
  426. package/lib/src/deprecated-components/Card.js.map +0 -1
  427. package/lib/src/deprecated-components/CheckboxGroup.js.map +0 -1
  428. package/lib/src/deprecated-components/CircleImage.js.map +0 -1
  429. package/lib/src/deprecated-components/CircularProgress.js.map +0 -1
  430. package/lib/src/deprecated-components/Container.js.map +0 -1
  431. package/lib/src/deprecated-components/DeprecatedButton.js.map +0 -1
  432. package/lib/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
  433. package/lib/src/deprecated-components/DeprecatedFAB.js.map +0 -1
  434. package/lib/src/deprecated-components/FAB.js.map +0 -1
  435. package/lib/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
  436. package/lib/src/deprecated-components/ProgressBar.js.map +0 -1
  437. package/lib/src/deprecated-components/ProgressCircle.js.map +0 -1
  438. package/lib/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
  439. package/lib/src/deprecated-components/RowBodyIcon.js.map +0 -1
  440. package/lib/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
  441. package/lib/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
  442. package/lib/src/deprecated-components/ToggleButton.js.map +0 -1
  443. package/lib/src/hooks.js.map +0 -1
  444. package/lib/src/index.js.map +0 -1
  445. package/lib/src/interfaces/Icon.js.map +0 -1
  446. package/lib/src/styles/DarkTheme.js.map +0 -1
  447. package/lib/src/styles/DefaultTheme.js.map +0 -1
  448. package/lib/src/styles/fonts.js.map +0 -1
  449. package/lib/src/styles/overlay.js.map +0 -1
  450. package/lib/src/styles/shadow.js.map +0 -1
  451. package/lib/src/theming.js.map +0 -1
  452. package/lib/src/utilities.js.map +0 -1
  453. package/lib/tsconfig.tsbuildinfo +0 -1
  454. /package/lib/{src → typescript/src}/Provider.d.ts +0 -0
  455. /package/lib/{src → typescript/src}/Provider.js +0 -0
  456. /package/lib/{src → typescript/src}/components/AccordionGroup.d.ts +0 -0
  457. /package/lib/{src → typescript/src}/components/AccordionGroup.js +0 -0
  458. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheet.d.ts +0 -0
  459. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheet.js +0 -0
  460. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheetCancel.d.ts +0 -0
  461. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheetCancel.js +0 -0
  462. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheetItem.d.ts +0 -0
  463. /package/lib/{src → typescript/src}/components/ActionSheet/ActionSheetItem.js +0 -0
  464. /package/lib/{src → typescript/src}/components/ActionSheet/index.d.ts +0 -0
  465. /package/lib/{src → typescript/src}/components/ActionSheet/index.js +0 -0
  466. /package/lib/{src → typescript/src}/components/AspectRatio.d.ts +0 -0
  467. /package/lib/{src → typescript/src}/components/AspectRatio.js +0 -0
  468. /package/lib/{src → typescript/src}/components/BottomSheet/BottomSheet.d.ts +0 -0
  469. /package/lib/{src → typescript/src}/components/BottomSheet/BottomSheet.js +0 -0
  470. /package/lib/{src → typescript/src}/components/BottomSheet/BottomSheetComponent.d.ts +0 -0
  471. /package/lib/{src → typescript/src}/components/BottomSheet/BottomSheetComponent.js +0 -0
  472. /package/lib/{src → typescript/src}/components/BottomSheet/index.d.ts +0 -0
  473. /package/lib/{src → typescript/src}/components/BottomSheet/index.js +0 -0
  474. /package/lib/{src → typescript/src}/components/Button.d.ts +0 -0
  475. /package/lib/{src → typescript/src}/components/Button.js +0 -0
  476. /package/lib/{src → typescript/src}/components/Checkbox/Checkbox.d.ts +0 -0
  477. /package/lib/{src → typescript/src}/components/Checkbox/Checkbox.js +0 -0
  478. /package/lib/{src → typescript/src}/components/Checkbox/CheckboxGroupRow.d.ts +0 -0
  479. /package/lib/{src → typescript/src}/components/Checkbox/CheckboxGroupRow.js +0 -0
  480. /package/lib/{src → typescript/src}/components/Checkbox/CheckboxRow.d.ts +0 -0
  481. /package/lib/{src → typescript/src}/components/Checkbox/CheckboxRow.js +0 -0
  482. /package/lib/{src → typescript/src}/components/Checkbox/context.d.ts +0 -0
  483. /package/lib/{src → typescript/src}/components/Checkbox/context.js +0 -0
  484. /package/lib/{src → typescript/src}/components/Checkbox/index.d.ts +0 -0
  485. /package/lib/{src → typescript/src}/components/Checkbox/index.js +0 -0
  486. /package/lib/{src → typescript/src}/components/Config.d.ts +0 -0
  487. /package/lib/{src → typescript/src}/components/Config.js +0 -0
  488. /package/lib/{src → typescript/src}/components/DatePicker/DatePicker.d.ts +0 -0
  489. /package/lib/{src → typescript/src}/components/DatePicker/DatePicker.js +0 -0
  490. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponent.d.ts +0 -0
  491. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponent.js +0 -0
  492. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponent.web.d.ts +0 -0
  493. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponent.web.js +0 -0
  494. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponentType.d.ts +0 -0
  495. /package/lib/{src → typescript/src}/components/DatePicker/DatePickerComponentType.js +0 -0
  496. /package/lib/{src → typescript/src}/components/DeckSwiper/DeckSwiperCard.d.ts +0 -0
  497. /package/lib/{src → typescript/src}/components/DeckSwiper/DeckSwiperCard.js +0 -0
  498. /package/lib/{src → typescript/src}/components/DeckSwiper/index.d.ts +0 -0
  499. /package/lib/{src → typescript/src}/components/DeckSwiper/index.js +0 -0
  500. /package/lib/{src → typescript/src}/components/Divider.d.ts +0 -0
  501. /package/lib/{src → typescript/src}/components/Divider.js +0 -0
  502. /package/lib/{src → typescript/src}/components/Elevation.d.ts +0 -0
  503. /package/lib/{src → typescript/src}/components/Elevation.js +0 -0
  504. /package/lib/{src → typescript/src}/components/FormRow.d.ts +0 -0
  505. /package/lib/{src → typescript/src}/components/FormRow.js +0 -0
  506. /package/lib/{src → typescript/src}/components/IconButton.d.ts +0 -0
  507. /package/lib/{src → typescript/src}/components/IconButton.js +0 -0
  508. /package/lib/{src → typescript/src}/components/Image.d.ts +0 -0
  509. /package/lib/{src → typescript/src}/components/Image.js +0 -0
  510. /package/lib/{src → typescript/src}/components/Layout.d.ts +0 -0
  511. /package/lib/{src → typescript/src}/components/Layout.js +0 -0
  512. /package/lib/{src → typescript/src}/components/Markdown.d.ts +0 -0
  513. /package/lib/{src → typescript/src}/components/Markdown.js +0 -0
  514. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +0 -0
  515. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -0
  516. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +0 -0
  517. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -0
  518. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +0 -0
  519. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -0
  520. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/index.d.ts +0 -0
  521. /package/lib/{src → typescript/src}/components/MediaPlayer/AudioPlayer/index.js +0 -0
  522. /package/lib/{src → typescript/src}/components/MediaPlayer/MediaPlaybackWrapper.d.ts +0 -0
  523. /package/lib/{src → typescript/src}/components/MediaPlayer/MediaPlayerCommon.js +0 -0
  524. /package/lib/{src → typescript/src}/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +0 -0
  525. /package/lib/{src → typescript/src}/components/MediaPlayer/VideoPlayer/index.d.ts +0 -0
  526. /package/lib/{src → typescript/src}/components/MediaPlayer/VideoPlayer/index.js +0 -0
  527. /package/lib/{src → typescript/src}/components/NumberInput.d.ts +0 -0
  528. /package/lib/{src → typescript/src}/components/NumberInput.js +0 -0
  529. /package/lib/{src → typescript/src}/components/Picker/Picker.d.ts +0 -0
  530. /package/lib/{src → typescript/src}/components/Picker/Picker.js +0 -0
  531. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.android.d.ts +0 -0
  532. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.android.js +0 -0
  533. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.ios.d.ts +0 -0
  534. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.ios.js +0 -0
  535. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.web.d.ts +0 -0
  536. /package/lib/{src → typescript/src}/components/Picker/PickerComponent.web.js +0 -0
  537. /package/lib/{src → typescript/src}/components/Picker/PickerTypes.d.ts +0 -0
  538. /package/lib/{src → typescript/src}/components/Picker/PickerTypes.js +0 -0
  539. /package/lib/{src → typescript/src}/components/Portal/Portal.d.ts +0 -0
  540. /package/lib/{src → typescript/src}/components/Portal/Portal.js +0 -0
  541. /package/lib/{src → typescript/src}/components/Portal/PortalConsumer.d.ts +0 -0
  542. /package/lib/{src → typescript/src}/components/Portal/PortalConsumer.js +0 -0
  543. /package/lib/{src → typescript/src}/components/Portal/PortalHost.d.ts +0 -0
  544. /package/lib/{src → typescript/src}/components/Portal/PortalHost.js +0 -0
  545. /package/lib/{src → typescript/src}/components/Portal/PortalManager.d.ts +0 -0
  546. /package/lib/{src → typescript/src}/components/Portal/PortalManager.js +0 -0
  547. /package/lib/{src → typescript/src}/components/Pressable.d.ts +0 -0
  548. /package/lib/{src → typescript/src}/components/Pressable.js +0 -0
  549. /package/lib/{src → typescript/src}/components/Progress/CircularProgress/CircularProgress.d.ts +0 -0
  550. /package/lib/{src → typescript/src}/components/Progress/CircularProgress/index.d.ts +0 -0
  551. /package/lib/{src → typescript/src}/components/Progress/CircularProgress/index.js +0 -0
  552. /package/lib/{src → typescript/src}/components/Progress/IndeterminateProgress.d.ts +0 -0
  553. /package/lib/{src → typescript/src}/components/Progress/LinearProgress/index.d.ts +0 -0
  554. /package/lib/{src → typescript/src}/components/Progress/LinearProgress/index.js +0 -0
  555. /package/lib/{src → typescript/src}/components/Progress/ProgressCommon.d.ts +0 -0
  556. /package/lib/{src → typescript/src}/components/Progress/ProgressCommon.js +0 -0
  557. /package/lib/{src → typescript/src}/components/ProgressIndicator.d.ts +0 -0
  558. /package/lib/{src → typescript/src}/components/ProgressIndicator.js +0 -0
  559. /package/lib/{src → typescript/src}/components/RadioButton/RadioButton.d.ts +0 -0
  560. /package/lib/{src → typescript/src}/components/RadioButton/RadioButton.js +0 -0
  561. /package/lib/{src → typescript/src}/components/RadioButton/RadioButtonGroup.d.ts +0 -0
  562. /package/lib/{src → typescript/src}/components/RadioButton/RadioButtonGroup.js +0 -0
  563. /package/lib/{src → typescript/src}/components/RadioButton/RadioButtonRow.d.ts +0 -0
  564. /package/lib/{src → typescript/src}/components/RadioButton/RadioButtonRow.js +0 -0
  565. /package/lib/{src → typescript/src}/components/RadioButton/context.d.ts +0 -0
  566. /package/lib/{src → typescript/src}/components/RadioButton/context.js +0 -0
  567. /package/lib/{src → typescript/src}/components/RadioButton/index.d.ts +0 -0
  568. /package/lib/{src → typescript/src}/components/RadioButton/index.js +0 -0
  569. /package/lib/{src → typescript/src}/components/Row.d.ts +0 -0
  570. /package/lib/{src → typescript/src}/components/Row.js +0 -0
  571. /package/lib/{src → typescript/src}/components/SVG.d.ts +0 -0
  572. /package/lib/{src → typescript/src}/components/SVG.js +0 -0
  573. /package/lib/{src → typescript/src}/components/ScreenContainer.d.ts +0 -0
  574. /package/lib/{src → typescript/src}/components/ScreenContainer.js +0 -0
  575. /package/lib/{src → typescript/src}/components/SectionList/SectionHeader.d.ts +0 -0
  576. /package/lib/{src → typescript/src}/components/SectionList/SectionHeader.js +0 -0
  577. /package/lib/{src → typescript/src}/components/SectionList/index.d.ts +0 -0
  578. /package/lib/{src → typescript/src}/components/SectionList/index.js +0 -0
  579. /package/lib/{src → typescript/src}/components/Shadow.d.ts +0 -0
  580. /package/lib/{src → typescript/src}/components/Shadow.js +0 -0
  581. /package/lib/{src → typescript/src}/components/Slider.d.ts +0 -0
  582. /package/lib/{src → typescript/src}/components/Slider.js +0 -0
  583. /package/lib/{src → typescript/src}/components/StarRating.d.ts +0 -0
  584. /package/lib/{src → typescript/src}/components/StarRating.js +0 -0
  585. /package/lib/{src → typescript/src}/components/StepIndicator.d.ts +0 -0
  586. /package/lib/{src → typescript/src}/components/StepIndicator.js +0 -0
  587. /package/lib/{src → typescript/src}/components/Stepper.d.ts +0 -0
  588. /package/lib/{src → typescript/src}/components/Stepper.js +0 -0
  589. /package/lib/{src → typescript/src}/components/Surface.d.ts +0 -0
  590. /package/lib/{src → typescript/src}/components/Surface.js +0 -0
  591. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItem.d.ts +0 -0
  592. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItemButton.d.ts +0 -0
  593. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItemButton.js +0 -0
  594. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItemCommon.d.ts +0 -0
  595. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableItemCommon.js +0 -0
  596. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableList.d.ts +0 -0
  597. /package/lib/{src → typescript/src}/components/SwipeableItem/SwipeableList.js +0 -0
  598. /package/lib/{src → typescript/src}/components/SwipeableItem/index.d.ts +0 -0
  599. /package/lib/{src → typescript/src}/components/SwipeableItem/index.js +0 -0
  600. /package/lib/{src → typescript/src}/components/Swiper/Swiper.d.ts +0 -0
  601. /package/lib/{src → typescript/src}/components/Swiper/Swiper.js +0 -0
  602. /package/lib/{src → typescript/src}/components/Swiper/SwiperItem.d.ts +0 -0
  603. /package/lib/{src → typescript/src}/components/Swiper/SwiperItem.js +0 -0
  604. /package/lib/{src → typescript/src}/components/Swiper/index.d.ts +0 -0
  605. /package/lib/{src → typescript/src}/components/Swiper/index.js +0 -0
  606. /package/lib/{src → typescript/src}/components/Switch.d.ts +0 -0
  607. /package/lib/{src → typescript/src}/components/Switch.js +0 -0
  608. /package/lib/{src → typescript/src}/components/TabView/TabViewItem.d.ts +0 -0
  609. /package/lib/{src → typescript/src}/components/TabView/TabViewItem.js +0 -0
  610. /package/lib/{src → typescript/src}/components/TabView/index.d.ts +0 -0
  611. /package/lib/{src → typescript/src}/components/TabView/index.js +0 -0
  612. /package/lib/{src → typescript/src}/components/Table/Table.d.ts +0 -0
  613. /package/lib/{src → typescript/src}/components/Table/Table.js +0 -0
  614. /package/lib/{src → typescript/src}/components/Table/TableCell.d.ts +0 -0
  615. /package/lib/{src → typescript/src}/components/Table/TableCell.js +0 -0
  616. /package/lib/{src → typescript/src}/components/Table/TableCommon.d.ts +0 -0
  617. /package/lib/{src → typescript/src}/components/Table/TableCommon.js +0 -0
  618. /package/lib/{src → typescript/src}/components/Table/TableRow.d.ts +0 -0
  619. /package/lib/{src → typescript/src}/components/Table/TableRow.js +0 -0
  620. /package/lib/{src → typescript/src}/components/Table/index.d.ts +0 -0
  621. /package/lib/{src → typescript/src}/components/Table/index.js +0 -0
  622. /package/lib/{src → typescript/src}/components/Text.d.ts +0 -0
  623. /package/lib/{src → typescript/src}/components/Text.js +0 -0
  624. /package/lib/{src → typescript/src}/components/TextField.d.ts +0 -0
  625. /package/lib/{src → typescript/src}/components/TextField.js +0 -0
  626. /package/lib/{src → typescript/src}/components/TextInput.d.ts +0 -0
  627. /package/lib/{src → typescript/src}/components/TextInput.js +0 -0
  628. /package/lib/{src → typescript/src}/components/Touchable.d.ts +0 -0
  629. /package/lib/{src → typescript/src}/components/Touchable.js +0 -0
  630. /package/lib/{src → typescript/src}/components/Touchable.web.d.ts +0 -0
  631. /package/lib/{src → typescript/src}/components/Touchable.web.js +0 -0
  632. /package/lib/{src → typescript/src}/components/Typography.d.ts +0 -0
  633. /package/lib/{src → typescript/src}/components/Typography.js +0 -0
  634. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayer.d.ts +0 -0
  635. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayer.js +0 -0
  636. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayer.native.d.ts +0 -0
  637. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayer.native.js +0 -0
  638. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayerProps.d.ts +0 -0
  639. /package/lib/{src → typescript/src}/components/YoutubePlayer/YoutubePlayerProps.js +0 -0
  640. /package/lib/{src → typescript/src}/components/YoutubePlayer/index.d.ts +0 -0
  641. /package/lib/{src → typescript/src}/components/YoutubePlayer/index.js +0 -0
  642. /package/lib/{src → typescript/src}/components/useAuthState.d.ts +0 -0
  643. /package/lib/{src → typescript/src}/components/useAuthState.js +0 -0
  644. /package/lib/{src → typescript/src}/constants.d.ts +0 -0
  645. /package/lib/{src → typescript/src}/constants.js +0 -0
  646. /package/lib/{src → typescript/src}/deprecated-components/AccordionItem.d.ts +0 -0
  647. /package/lib/{src → typescript/src}/deprecated-components/AccordionItem.js +0 -0
  648. /package/lib/{src → typescript/src}/deprecated-components/AnimatedCircularProgress.d.ts +0 -0
  649. /package/lib/{src → typescript/src}/deprecated-components/AnimatedCircularProgress.js +0 -0
  650. /package/lib/{src → typescript/src}/deprecated-components/AvatarEdit.d.ts +0 -0
  651. /package/lib/{src → typescript/src}/deprecated-components/AvatarEdit.js +0 -0
  652. /package/lib/{src → typescript/src}/deprecated-components/Banner.d.ts +0 -0
  653. /package/lib/{src → typescript/src}/deprecated-components/Banner.js +0 -0
  654. /package/lib/{src → typescript/src}/deprecated-components/Card.d.ts +0 -0
  655. /package/lib/{src → typescript/src}/deprecated-components/Card.js +0 -0
  656. /package/lib/{src → typescript/src}/deprecated-components/CheckboxGroup.d.ts +0 -0
  657. /package/lib/{src → typescript/src}/deprecated-components/CheckboxGroup.js +0 -0
  658. /package/lib/{src → typescript/src}/deprecated-components/CircleImage.d.ts +0 -0
  659. /package/lib/{src → typescript/src}/deprecated-components/CircleImage.js +0 -0
  660. /package/lib/{src → typescript/src}/deprecated-components/CircularProgress.d.ts +0 -0
  661. /package/lib/{src → typescript/src}/deprecated-components/CircularProgress.js +0 -0
  662. /package/lib/{src → typescript/src}/deprecated-components/Container.d.ts +0 -0
  663. /package/lib/{src → typescript/src}/deprecated-components/Container.js +0 -0
  664. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedButton.d.ts +0 -0
  665. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedButton.js +0 -0
  666. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedCardWrapper.d.ts +0 -0
  667. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedCardWrapper.js +0 -0
  668. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedFAB.d.ts +0 -0
  669. /package/lib/{src → typescript/src}/deprecated-components/DeprecatedFAB.js +0 -0
  670. /package/lib/{src → typescript/src}/deprecated-components/FAB.d.ts +0 -0
  671. /package/lib/{src → typescript/src}/deprecated-components/FAB.js +0 -0
  672. /package/lib/{src → typescript/src}/deprecated-components/FieldSearchBarFull.d.ts +0 -0
  673. /package/lib/{src → typescript/src}/deprecated-components/FieldSearchBarFull.js +0 -0
  674. /package/lib/{src → typescript/src}/deprecated-components/ProgressBar.d.ts +0 -0
  675. /package/lib/{src → typescript/src}/deprecated-components/ProgressBar.js +0 -0
  676. /package/lib/{src → typescript/src}/deprecated-components/ProgressCircle.d.ts +0 -0
  677. /package/lib/{src → typescript/src}/deprecated-components/ProgressCircle.js +0 -0
  678. /package/lib/{src → typescript/src}/deprecated-components/RadioButtonFieldGroup.d.ts +0 -0
  679. /package/lib/{src → typescript/src}/deprecated-components/RadioButtonFieldGroup.js +0 -0
  680. /package/lib/{src → typescript/src}/deprecated-components/RowBodyIcon.d.ts +0 -0
  681. /package/lib/{src → typescript/src}/deprecated-components/RowBodyIcon.js +0 -0
  682. /package/lib/{src → typescript/src}/deprecated-components/RowHeadlineImageCaption.d.ts +0 -0
  683. /package/lib/{src → typescript/src}/deprecated-components/RowHeadlineImageCaption.js +0 -0
  684. /package/lib/{src → typescript/src}/deprecated-components/RowHeadlineImageIcon.d.ts +0 -0
  685. /package/lib/{src → typescript/src}/deprecated-components/RowHeadlineImageIcon.js +0 -0
  686. /package/lib/{src → typescript/src}/deprecated-components/ToggleButton.d.ts +0 -0
  687. /package/lib/{src → typescript/src}/deprecated-components/ToggleButton.js +0 -0
  688. /package/lib/{src → typescript/src}/hooks.d.ts +0 -0
  689. /package/lib/{src → typescript/src}/hooks.js +0 -0
  690. /package/lib/{src → typescript/src}/index.d.ts +0 -0
  691. /package/lib/{src → typescript/src}/index.js +0 -0
  692. /package/lib/{src → typescript/src}/interfaces/Icon.d.ts +0 -0
  693. /package/lib/{src → typescript/src}/interfaces/Icon.js +0 -0
  694. /package/lib/{src → typescript/src}/styles/DarkTheme.d.ts +0 -0
  695. /package/lib/{src → typescript/src}/styles/DarkTheme.js +0 -0
  696. /package/lib/{src → typescript/src}/styles/DefaultTheme.d.ts +0 -0
  697. /package/lib/{src → typescript/src}/styles/DefaultTheme.js +0 -0
  698. /package/lib/{src → typescript/src}/styles/fonts.d.ts +0 -0
  699. /package/lib/{src → typescript/src}/styles/fonts.js +0 -0
  700. /package/lib/{src → typescript/src}/styles/overlay.d.ts +0 -0
  701. /package/lib/{src → typescript/src}/styles/overlay.js +0 -0
  702. /package/lib/{src → typescript/src}/styles/shadow.d.ts +0 -0
  703. /package/lib/{src → typescript/src}/styles/shadow.js +0 -0
  704. /package/lib/{src → typescript/src}/theming.d.ts +0 -0
  705. /package/lib/{src → typescript/src}/theming.js +0 -0
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "47.5.3-e8c679.2+e8c679a",
3
+ "version": "47.5.3",
4
4
  "description": "Core (non-native) Components",
5
- "main": "lib/src/index.js",
6
- "types": "lib/src/index.d.ts",
7
- "react-native": "src/index.tsx",
5
+ "main": "lib/commonjs/index.js",
6
+ "types": "lib/typescript/src/index.d.ts",
8
7
  "files": [
9
8
  "src",
10
9
  "lib",
@@ -15,7 +14,8 @@
15
14
  "scripts": {
16
15
  "clean": "rimraf lib",
17
16
  "clean:modules": "rimraf node_modules",
18
- "build": "yarn clean && yarn tsc",
17
+ "build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
18
+ "build": "yarn clean && yarn build:commonjs && yarn tsc",
19
19
  "test": "jest",
20
20
  "test:coverage": "jest --coverage"
21
21
  },
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^47.5.3-e8c679.2+e8c679a",
44
+ "@draftbit/types": "47.5.3",
45
45
  "@expo/vector-icons": "^13.0.0",
46
46
  "@material-ui/core": "^4.11.0",
47
47
  "@material-ui/pickers": "^3.2.10",
@@ -71,6 +71,8 @@
71
71
  "react-youtube": "^10.1.0"
72
72
  },
73
73
  "devDependencies": {
74
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
75
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
74
76
  "@types/color": "^3.0.1",
75
77
  "@types/dateformat": "^3.0.1",
76
78
  "@types/lodash.isnumber": "^3.0.6",
@@ -97,5 +99,5 @@
97
99
  ],
98
100
  "testEnvironment": "node"
99
101
  },
100
- "gitHead": "e8c679a32a7857e699d2fdaec47a21a4c13c3ee7"
102
+ "gitHead": "6a87df49a310ebf7a8f71525cb21a3bcf934aa66"
101
103
  }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { StyleSheet, View } from "react-native";
3
3
  import DeckSwiperComponent from "react-native-deck-swiper";
4
- const DeckSwiper = ({ onSwipe, onSwipedLeft, onSwipedRight, onSwipedUp, onSwipedDown, onIndexChanged, onEndReached, startCardIndex = 0, infiniteSwiping = false, verticalEnabled = true, horizontalEnabled = true, visibleCardCount = 1, data, keyExtractor, renderItem, style, children, }) => {
4
+ const DeckSwiper = ({ onStartSwipe, onEndSwipe, onSwipe, onSwipedLeft, onSwipedRight, onSwipedUp, onSwipedDown, onIndexChanged, onEndReached, startCardIndex = 0, infiniteSwiping = false, verticalEnabled = true, horizontalEnabled = true, visibleCardCount = 1, data, keyExtractor, renderItem, style, children, }) => {
5
5
  //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
6
6
  if ((data && !renderItem) || (renderItem && !data)) {
7
7
  throw new Error("'renderItem' and 'data' need to both be provided to lazily render. Either remove them entirley or include both");
@@ -67,7 +67,11 @@ const DeckSwiper = ({ onSwipe, onSwipedLeft, onSwipedRight, onSwipedUp, onSwiped
67
67
  }, onSwipedBottom: (index) => {
68
68
  onSwipedDown === null || onSwipedDown === void 0 ? void 0 : onSwipedDown(index);
69
69
  onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(index);
70
- } })));
70
+ },
71
+ //@ts-ignore Not typed, but is implemented and works
72
+ dragStart: onStartSwipe,
73
+ //@ts-ignore
74
+ dragEnd: onEndSwipe })));
71
75
  };
72
76
  const styles = StyleSheet.create({
73
77
  cardsContainer: {
@@ -1 +1 @@
1
- {"version":3,"file":"DeckSwiper.js","sourceRoot":"","sources":["DeckSwiper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAqB3D,MAAM,UAAU,GAAG,CAAmB,EACpC,OAAO,EACP,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,cAAc,GAAG,CAAC,EAClB,eAAe,GAAG,KAAK,EACvB,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,gBAAgB,GAAG,CAAC,EACpB,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,KA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uBAAZ,YAAY,CAAG,KAAK,CAAC,CAAC;gBACtB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;YACnB,CAAC,EACD,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;gBACvB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,KAAK,CAAC,CAAC;gBACvB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;YACnB,CAAC,EACD,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;gBACrB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAG,KAAK,CAAC,CAAC;gBACpB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;YACnB,CAAC,EACD,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE;gBACxB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,KAAK,CAAC,CAAC;gBACtB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;YACnB,CAAC;YACD,oDAAoD;YACpD,SAAS,EAAE,YAAY;YACvB,YAAY;YACZ,OAAO,EAAE,UAAU,GACnB,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;KACrB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,GAAG;KACb;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -3,6 +3,8 @@ import { StyleProp, ViewStyle, StyleSheet, View } from "react-native";
3
3
  import DeckSwiperComponent from "react-native-deck-swiper";
4
4
 
5
5
  export interface DeckSwiperProps<T> {
6
+ onStartSwipe?: () => void;
7
+ onEndSwipe?: () => void;
6
8
  onSwipe?: (index: number) => void;
7
9
  onSwipedLeft?: (index: number) => void;
8
10
  onSwipedRight?: (index: number) => void;
@@ -22,6 +24,8 @@ export interface DeckSwiperProps<T> {
22
24
  }
23
25
 
24
26
  const DeckSwiper = <T extends object>({
27
+ onStartSwipe,
28
+ onEndSwipe,
25
29
  onSwipe,
26
30
  onSwipedLeft,
27
31
  onSwipedRight,
@@ -150,6 +154,10 @@ const DeckSwiper = <T extends object>({
150
154
  onSwipedDown?.(index);
151
155
  onSwipe?.(index);
152
156
  }}
157
+ //@ts-ignore Not typed, but is implemented and works
158
+ dragStart={onStartSwipe}
159
+ //@ts-ignore
160
+ dragEnd={onEndSwipe}
153
161
  />
154
162
  </View>
155
163
  );
@@ -12,6 +12,14 @@ const MediaPlaybackWrapper = React.forwardRef(({ media, isPlaying, onTogglePlayb
12
12
  await (media === null || media === void 0 ? void 0 : media.playAsync());
13
13
  }
14
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]);
15
23
  const seekToPosition = React.useCallback(async (positionMillis) => {
16
24
  await (media === null || media === void 0 ? void 0 : media.setPositionAsync(positionMillis));
17
25
  }, [media]);
@@ -25,7 +33,9 @@ const MediaPlaybackWrapper = React.forwardRef(({ media, isPlaying, onTogglePlayb
25
33
  React.useImperativeHandle(ref, () => ({
26
34
  seekToPosition,
27
35
  togglePlayback,
28
- }), [seekToPosition, togglePlayback]);
36
+ pause,
37
+ play,
38
+ }), [seekToPosition, togglePlayback, pause, play]);
29
39
  return React.createElement(React.Fragment, null, children);
30
40
  });
31
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AAC;QACrB,MAAM,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,EAAE,CAAA,CAAC;IAC3B,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAE9B,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACtC,KAAK,EAAE,cAAsB,EAAE,EAAE;QAC/B,MAAM,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,gBAAgB,CAAC,cAAc,CAAC,CAAA,CAAC;IAChD,CAAC,EACD,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"}
@@ -26,6 +26,16 @@ const MediaPlaybackWrapper = React.forwardRef<
26
26
  }
27
27
  }, [media, isPlaying, onTogglePlayback]);
28
28
 
29
+ const pause = React.useCallback(async () => {
30
+ onTogglePlayback?.();
31
+ await media?.pauseAsync();
32
+ }, [media, onTogglePlayback]);
33
+
34
+ const play = React.useCallback(async () => {
35
+ onTogglePlayback?.();
36
+ await media?.playAsync();
37
+ }, [media, onTogglePlayback]);
38
+
29
39
  const seekToPosition = React.useCallback(
30
40
  async (positionMillis: number) => {
31
41
  await media?.setPositionAsync(positionMillis);
@@ -46,8 +56,10 @@ const MediaPlaybackWrapper = React.forwardRef<
46
56
  () => ({
47
57
  seekToPosition,
48
58
  togglePlayback,
59
+ pause,
60
+ play,
49
61
  }),
50
- [seekToPosition, togglePlayback]
62
+ [seekToPosition, togglePlayback, pause, play]
51
63
  );
52
64
 
53
65
  return <>{children}</>;
@@ -1 +1 @@
1
- {"version":3,"file":"MediaPlayerCommon.js","sourceRoot":"","sources":["MediaPlayerCommon.ts"],"names":[],"mappings":"AAwBA,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
+ {"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"}
@@ -14,6 +14,8 @@ export interface MediaPlayerStatus {
14
14
  export interface MediaPlayerRef {
15
15
  seekToPosition: (positionMillis: number) => void;
16
16
  togglePlayback: () => void;
17
+ pause: () => void;
18
+ play: () => void;
17
19
  }
18
20
 
19
21
  export interface MediaPlayerProps {
@@ -52,11 +52,13 @@ const VideoPlayer = React.forwardRef(({ style, resizeMode = "contain", posterRes
52
52
  }
53
53
  }, [isFullscreen, videoMediaObject]);
54
54
  React.useImperativeHandle(ref, () => {
55
- var _a, _b;
55
+ var _a, _b, _c, _d;
56
56
  return ({
57
57
  toggleFullscreen,
58
58
  seekToPosition: ((_a = mediaPlaybackWrapperRef.current) === null || _a === void 0 ? void 0 : _a.seekToPosition) || (() => { }),
59
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) || (() => { }),
60
62
  });
61
63
  },
62
64
  // Include 'isPlaying' as dependency because 'togglePlayback' changes when it changes
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.js","sourceRoot":"","sources":["VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM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uD;IACvD,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAC9B,CAAC;IAEF,OAAO,CACL,oBAAC,oBAAoB,IACnB,KAAK,EAAE,gBAAwC,EAC/C,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,uBAAuB;QAE5B,oBAAC,oBAAoB;QACnB,iGAAiG;;YAAjG,iGAAiG;YACjG,GAAG,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAClD,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,gBAAgB,EAC5B,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"}
@@ -105,6 +105,8 @@ const VideoPlayer = React.forwardRef<VideoPlayerRef, VideoPlayerProps>(
105
105
  mediaPlaybackWrapperRef.current?.seekToPosition || (() => {}),
106
106
  togglePlayback:
107
107
  mediaPlaybackWrapperRef.current?.togglePlayback || (() => {}),
108
+ pause: mediaPlaybackWrapperRef.current?.pause || (() => {}),
109
+ play: mediaPlaybackWrapperRef.current?.play || (() => {}),
108
110
  }),
109
111
  // Include 'isPlaying' as dependency because 'togglePlayback' changes when it changes
110
112
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -33,7 +33,7 @@ export const CircularProgress = ({ theme, minimumValue = 0, maximumValue = 100,
33
33
  }
34
34
  }, [startPosition]);
35
35
  const currentFillPercentage = value / (maximumValue + minimumValue);
36
- const currentAngle = useSharedValue(startAngle + currentFillPercentage * 360);
36
+ const currentAngle = useSharedValue(startAngle);
37
37
  const progressPathAnimatedProps = useAnimatedProps(() => {
38
38
  const isBelowMinAngle = currentAngle.value <= startAngle;
39
39
  return {
@@ -69,8 +69,8 @@ export const CircularProgress = ({ theme, minimumValue = 0, maximumValue = 100,
69
69
  style,
70
70
  ] },
71
71
  React.createElement(Svg, { testID: testID !== null && testID !== void 0 ? testID : "circular-progress-component", style: { flex: 1 } },
72
- showTrack && (React.createElement(Path, { d: circlePath(radius, radius, radius - thicknessOffset, startAngle, startAngle + 360), stroke: trackColor, strokeWidth: trackThickness, strokeOpacity: trackOpacity, strokeLinecap: trackLineCap, strokeDasharray: trackCustomDashArray || trackDashArray, strokeDashoffset: trackDashOffset })),
73
- React.createElement(AnimatedPath, { animatedProps: progressPathAnimatedProps, stroke: color, strokeWidth: thickness, strokeLinecap: lineCap, strokeDasharray: customDashArray || dashArray, strokeDashoffset: dashOffset, onPress: () => { } }))));
72
+ showTrack && (React.createElement(Path, { d: circlePath(radius, radius, radius - thicknessOffset, startAngle, startAngle + 360), stroke: trackColor, strokeWidth: trackThickness, strokeOpacity: trackOpacity, strokeLinecap: trackLineCap, strokeDasharray: trackCustomDashArray || trackDashArray, strokeDashoffset: trackDashOffset, fill: "rgba(0,0,0,0)" })),
73
+ React.createElement(AnimatedPath, { animatedProps: progressPathAnimatedProps, stroke: color, strokeWidth: thickness, strokeLinecap: lineCap, strokeDasharray: customDashArray || dashArray, strokeDashoffset: dashOffset, fill: "rgba(0,0,0,0)", onPress: () => { } }))));
74
74
  };
75
75
  // From: https://github.com/bartgryszko/react-native-circular-progress/blob/a93b501aea40306126c8ede72089741eead52308/src/CircularProgress.js#L15
76
76
  function circlePath(x, y, radius, startAngle, endAngle) {
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgress.js","sourceRoot":"","sources":["CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,EAAE,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CA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AAE,QAAQ,GAAG,MAAM,CAAC,CAAC;IAC9D,IAAI,GAAG,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD,IAAI,YAAY,GAAG,QAAQ,GAAG,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC5D,IAAI,CAAC,GAAG;QACN,GAAG;QACH,KAAK,CAAC,CAAC;QACP,KAAK,CAAC,CAAC;QACP,GAAG;QACH,MAAM;QACN,MAAM;QACN,CAAC;QACD,YAAY;QACZ,CAAC;QACD,GAAG,CAAC,CAAC;QACL,GAAG,CAAC,CAAC;KACN,CAAC;IACF,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
@@ -80,7 +80,7 @@ export const CircularProgress: React.FC<
80
80
  }, [startPosition]);
81
81
 
82
82
  const currentFillPercentage = value / (maximumValue + minimumValue);
83
- const currentAngle = useSharedValue(startAngle + currentFillPercentage * 360);
83
+ const currentAngle = useSharedValue(startAngle);
84
84
 
85
85
  const progressPathAnimatedProps = useAnimatedProps<PathProps>(() => {
86
86
  const isBelowMinAngle = currentAngle.value <= startAngle;
@@ -144,6 +144,7 @@ export const CircularProgress: React.FC<
144
144
  strokeLinecap={trackLineCap}
145
145
  strokeDasharray={trackCustomDashArray || trackDashArray}
146
146
  strokeDashoffset={trackDashOffset}
147
+ fill={"rgba(0,0,0,0)"} //Prevents default black fill
147
148
  />
148
149
  )}
149
150
  <AnimatedPath
@@ -153,6 +154,7 @@ export const CircularProgress: React.FC<
153
154
  strokeLinecap={lineCap}
154
155
  strokeDasharray={customDashArray || dashArray}
155
156
  strokeDashoffset={dashOffset}
157
+ fill={"rgba(0,0,0,0)"}
156
158
  onPress={() => {}} //Addresses reanimated issue with SVG (https://github.com/software-mansion/react-native-reanimated/issues/3321#issuecomment-1256983430)
157
159
  />
158
160
  </Svg>
@@ -33,7 +33,7 @@ const IndeterminateProgress = ({ ProgressComponent, ...rest }) => {
33
33
  var _a;
34
34
  setPathWidth(width);
35
35
  (_a = rest.onFullPathWidth) === null || _a === void 0 ? void 0 : _a.call(rest, width);
36
- }, dashOffset: dashOffset, dashGap: pathWidth / 2, dashWidth: pathWidth / 2, animationDuration: animationDuration, value: 100 }));
36
+ }, dashOffset: dashOffset, dashGap: pathWidth / 2, dashWidth: pathWidth / 2, animationDuration: animationDuration, minimumValue: 0, maximumValue: 100, value: 100 }));
37
37
  };
38
38
  export default IndeterminateProgress;
39
39
  //# sourceMappingURL=IndeterminateProgress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IndeterminateProgress.js","sourceRoot":"","sources":["IndeterminateProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,cAAc,EACd,UAAU,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,0BAA0B,GAE3B,MAAM,kBAAkB,CAAC;AAM1B,MAAM,qBAAqB,GAAyC,CAAC,EACnE,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,iBAAiB,GACrB,IAAI,CAAC,iBAAiB,IAAI,0BAA0B,CAAC;IAEvD,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAExC,+HAA+H;IAC/H,mBAAmB,CACjB,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EACzB,CAAC,MAAM,EAAE,EAAE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;YACZ,aAAa,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,EAAE;gBAClC,QAAQ,EAAE,iBAAiB;aAC5B,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC,CAAC;IAEzD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,4BAA4B,EAAE,CAAC;QACjC,CAAC,EAAE,iBAAiB,CAAC,CAAC;QACtB,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC,EAAE,CAAC,iBAAiB,EAAE,4BAA4B,CAAC,CAAC,CAAC;IAEtD,OAAO,CACL,oBAAC,iBAAiB,OACZ,IAAI,EACR,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,wBAAwB,EAC/C,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;;YACzB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAA,IAAI,CAAC,eAAe,qDAAG,KAAK,CAAC,CAAC;QAChC,CAAC,EACD,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,SAAS,GAAG,CAAC,EACtB,SAAS,EAAE,SAAS,GAAG,CAAC,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,CAAC,EACf,YAAY,EAAE,GAAG,EACjB,KAAK,EAAE,GAAG,GACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -66,6 +66,8 @@ const IndeterminateProgress: React.FC<IndeterminateProgressProps> = ({
66
66
  dashGap={pathWidth / 2}
67
67
  dashWidth={pathWidth / 2}
68
68
  animationDuration={animationDuration}
69
+ minimumValue={0}
70
+ maximumValue={100}
69
71
  value={100}
70
72
  />
71
73
  );
@@ -15,21 +15,17 @@ export const LinearProgress = ({ theme, minimumValue = 0, maximumValue = 100, va
15
15
  const maxThickness = Math.max(thickness, trackThickness);
16
16
  const thicknessOffset = maxThickness / 2; // This offset guarantees nothing is cut off by view bounds
17
17
  const progressLineWidth = svgContainerWidth - thicknessOffset;
18
- console.log("LINE WIDTH", progressLineWidth);
19
18
  const trackProgressLineWidth = svgContainerWidth - thicknessOffset;
20
19
  const currentFillPercentage = value / (maximumValue + minimumValue);
21
- console.log("PERC", currentFillPercentage);
22
- const currentProgressLineWidth = useSharedValue(currentFillPercentage * progressLineWidth);
20
+ const currentProgressLineWidth = useSharedValue(0);
23
21
  const progressLineAnimatedProps = useAnimatedProps(() => {
24
22
  const isBelowMinWidth = currentProgressLineWidth.value <= thicknessOffset;
25
- console.log("RECEIVED", currentProgressLineWidth.value);
26
23
  return {
27
24
  x2: Math.min(progressLineWidth, currentProgressLineWidth.value),
28
25
  strokeOpacity: isBelowMinWidth ? 0.0 : 1.0,
29
26
  };
30
27
  });
31
28
  React.useEffect(() => {
32
- console.log("UPDATING TO", progressLineWidth * currentFillPercentage);
33
29
  currentProgressLineWidth.value = withTiming(progressLineWidth * currentFillPercentage, {
34
30
  duration: isAnimated ? animationDuration : 0,
35
31
  });
@@ -1 +1 @@
1
- {"version":3,"file":"LinearProgress.js","sourceRoot":"","sources":["LinearProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,EAAE,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,GAE3B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,cAAc,GAAiC,CAAC,EAC3D,KAAK,EACL,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EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YACnE,SAAS,IAAI,CACZ,oBAAC,IAAI,IACH,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,sBAAsB,EAC1B,EAAE,EAAE,eAAe,EACnB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,cAAc,EAC3B,aAAa,EAAE,YAAY,EAC3B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,oBAAoB,IAAI,cAAc,EACvD,gBAAgB,EAAE,eAAe,GACjC,CACH;YACD,oBAAC,YAAY,IACX,aAAa,EAAE,yBAAyB,EACxC,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,SAAS,EACtB,aAAa,EAAE,OAAO,EACtB,eAAe,EAAE,eAAe,IAAI,SAAS,EAC7C,gBAAgB,EAAE,UAAU,EAC5B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GACjB,CACE,CACD,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Svg, { Line } from "react-native-svg";
2
+ import Svg, { Line, LineProps } from "react-native-svg";
3
3
  import { View } from "react-native";
4
4
  import Animated, {
5
5
  useAnimatedProps,
@@ -55,18 +55,13 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
55
55
  const thicknessOffset = maxThickness / 2; // This offset guarantees nothing is cut off by view bounds
56
56
 
57
57
  const progressLineWidth = svgContainerWidth - thicknessOffset;
58
- console.log("LINE WIDTH", progressLineWidth);
59
58
  const trackProgressLineWidth = svgContainerWidth - thicknessOffset;
60
59
 
61
60
  const currentFillPercentage = value / (maximumValue + minimumValue);
62
- console.log("PERC", currentFillPercentage);
63
- const currentProgressLineWidth = useSharedValue(
64
- currentFillPercentage * progressLineWidth
65
- );
61
+ const currentProgressLineWidth = useSharedValue(0);
66
62
 
67
- const progressLineAnimatedProps = useAnimatedProps(() => {
63
+ const progressLineAnimatedProps = useAnimatedProps<LineProps>(() => {
68
64
  const isBelowMinWidth = currentProgressLineWidth.value <= thicknessOffset;
69
- console.log("RECEIVED", currentProgressLineWidth.value);
70
65
  return {
71
66
  x2: Math.min(progressLineWidth, currentProgressLineWidth.value), //Prevents going beyond the max width
72
67
  strokeOpacity: isBelowMinWidth ? 0.0 : 1.0,
@@ -74,7 +69,6 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
74
69
  });
75
70
 
76
71
  React.useEffect(() => {
77
- console.log("UPDATING TO", progressLineWidth * currentFillPercentage);
78
72
  currentProgressLineWidth.value = withTiming(
79
73
  progressLineWidth * currentFillPercentage,
80
74
  {
@@ -2,8 +2,9 @@ import React from "react";
2
2
  import { FlashList } from "@shopify/flash-list";
3
3
  import { FlatList } from "react-native";
4
4
  import SectionHeader, { DefaultSectionHeader } from "./SectionHeader";
5
+ import { extractIfNestedInFragment } from "../../utilities";
5
6
  export const DEFAULT_SECTION = "Uncategorized";
6
- const SectionList = ({ sectionKey, listComponent = "FlatList", data: dataProp, renderItem: renderItemProp, ...rest }) => {
7
+ const SectionList = ({ sectionKey, stickyHeader = false, listComponent = "FlatList", data: dataProp, renderItem: renderItemProp, ...rest }) => {
7
8
  const data = React.useMemo(() => (dataProp || []), [dataProp]);
8
9
  const dataWithSections = React.useMemo(() => {
9
10
  var _a;
@@ -25,12 +26,17 @@ const SectionList = ({ sectionKey, listComponent = "FlatList", data: dataProp, r
25
26
  }
26
27
  return result;
27
28
  }, [data, sectionKey]);
29
+ const sectionHeaderIndicies = React.useMemo(() => stickyHeader
30
+ ? dataWithSections
31
+ .filter((item) => item.type === "SECTION_ITEM")
32
+ .map((item) => dataWithSections.indexOf(item))
33
+ : undefined, [dataWithSections, stickyHeader]);
28
34
  const extractSectionHeader = (element) => {
29
35
  if (!element) {
30
36
  return null;
31
37
  }
32
38
  const props = element.props || {};
33
- const children = React.Children.toArray(props.children).map((child) => child);
39
+ const children = React.Children.toArray(props.children).map((child) => extractIfNestedInFragment(child));
34
40
  if (element.type === SectionHeader) {
35
41
  return element;
36
42
  }
@@ -86,9 +92,9 @@ const SectionList = ({ sectionKey, listComponent = "FlatList", data: dataProp, r
86
92
  };
87
93
  switch (listComponent) {
88
94
  case "FlatList":
89
- return (React.createElement(FlatList, { ...rest, data: dataWithSections, renderItem: renderItem }));
95
+ return (React.createElement(FlatList, { stickyHeaderIndices: sectionHeaderIndicies, ...rest, data: dataWithSections, renderItem: renderItem }));
90
96
  case "FlashList":
91
- return (React.createElement(FlashList, { ...rest, data: dataWithSections, renderItem: renderItem }));
97
+ return (React.createElement(FlashList, { stickyHeaderIndices: sectionHeaderIndicies, ...rest, data: dataWithSections, renderItem: renderItem }));
92
98
  }
93
99
  };
94
100
  export default SectionList;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionList.js","sourceRoot":"","sources":["SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,aAAa,EAAE,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAgCtE,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,GAAG,CAAmC,EACrD,UAAU,EACV,aAAa,GAAG,UAAU,EAC1B,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,cAAc,EAC1B,GAAG,IAAI,EACoD,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEtE,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;;QAC1C,MAAM,MAAM,GAAyB,EAAE,CA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AAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;KACL;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -2,11 +2,13 @@ import React from "react";
2
2
  import { FlashListProps, FlashList } from "@shopify/flash-list";
3
3
  import { FlatListProps, FlatList } from "react-native";
4
4
  import SectionHeader, { DefaultSectionHeader } from "./SectionHeader";
5
+ import { extractIfNestedInFragment } from "../../utilities";
5
6
 
6
7
  type ListComponentType = "FlatList" | "FlashList";
7
8
 
8
9
  interface AdditionalSectionListProps<T> {
9
10
  sectionKey: string;
11
+ stickyHeader?: boolean;
10
12
  renderItem: (itemInfo: {
11
13
  item?: T;
12
14
  index: number;
@@ -37,6 +39,7 @@ export const DEFAULT_SECTION = "Uncategorized";
37
39
 
38
40
  const SectionList = <T extends { [key: string]: any }>({
39
41
  sectionKey,
42
+ stickyHeader = false,
40
43
  listComponent = "FlatList",
41
44
  data: dataProp,
42
45
  renderItem: renderItemProp,
@@ -68,6 +71,16 @@ const SectionList = <T extends { [key: string]: any }>({
68
71
  return result;
69
72
  }, [data, sectionKey]);
70
73
 
74
+ const sectionHeaderIndicies = React.useMemo(
75
+ () =>
76
+ stickyHeader
77
+ ? dataWithSections
78
+ .filter((item) => item.type === "SECTION_ITEM")
79
+ .map((item) => dataWithSections.indexOf(item))
80
+ : undefined,
81
+ [dataWithSections, stickyHeader]
82
+ );
83
+
71
84
  const extractSectionHeader = (
72
85
  element: JSX.Element | null
73
86
  ): JSX.Element | null => {
@@ -76,9 +89,10 @@ const SectionList = <T extends { [key: string]: any }>({
76
89
  }
77
90
 
78
91
  const props = element.props || {};
79
- const children = React.Children.toArray(props.children).map(
80
- (child) => child as React.ReactElement
92
+ const children = React.Children.toArray(props.children).map((child) =>
93
+ extractIfNestedInFragment(child as React.ReactElement)
81
94
  );
95
+
82
96
  if (element.type === SectionHeader) {
83
97
  return element;
84
98
  } else {
@@ -152,6 +166,7 @@ const SectionList = <T extends { [key: string]: any }>({
152
166
  case "FlatList":
153
167
  return (
154
168
  <FlatList
169
+ stickyHeaderIndices={sectionHeaderIndicies}
155
170
  {...(rest as FlatListProps<SectionListItem<T>>)}
156
171
  data={dataWithSections}
157
172
  renderItem={renderItem}
@@ -160,6 +175,7 @@ const SectionList = <T extends { [key: string]: any }>({
160
175
  case "FlashList":
161
176
  return (
162
177
  <FlashList
178
+ stickyHeaderIndices={sectionHeaderIndicies}
163
179
  {...(rest as FlashListProps<SectionListItem<T>>)}
164
180
  data={dataWithSections}
165
181
  renderItem={renderItem}
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import { View, StyleSheet, Text, } from "react-native";
3
3
  import Pressable from "../Pressable";
4
- import { extractBorderAndMarginStyles, extractEffectStyles, extractFlexItemStyles, extractPositionStyles, extractSizeStyles, extractStyles, } from "../../utilities";
4
+ import { extractBorderAndMarginStyles, extractEffectStyles, extractFlexItemStyles, extractIfNestedInFragment, extractPositionStyles, extractSizeStyles, extractStyles, } from "../../utilities";
5
5
  import { SwipeRow } from "react-native-swipe-list-view";
6
6
  import { withTheme } from "../../theming";
7
7
  import SwipeableItemButton from "./SwipeableItemButton";
8
8
  import { SwipeableListContext } from "./SwipeableList";
9
9
  import { leftSwipeToSwipeableItemBehindItem, rightSwipeToSwipeableItemBehindItem, extractLeftSwipeProps, extractRightSwipeProps, } from "./SwipeableItemCommon";
10
- const SwipeableItem = ({ theme, style, children, Icon, closeOnPress, leftOpenValue, rightOpenValue, leftActivationValue, rightActivationValue, swipeActivationPercentage = 80, stopLeftSwipe, stopRightSwipe, friction = 20, disableLeftSwipe, disableRightSwipe, ...rest }) => {
10
+ const SwipeableItem = ({ theme, style, children: childrenProp, Icon, closeOnPress, leftOpenValue, rightOpenValue, leftActivationValue, rightActivationValue, swipeActivationPercentage = 80, stopLeftSwipe, stopRightSwipe, friction = 20, disableLeftSwipe, disableRightSwipe, ...rest }) => {
11
11
  const isEmptyObject = (object) => {
12
12
  return Object.keys(object).length === 0;
13
13
  };
@@ -31,10 +31,11 @@ const SwipeableItem = ({ theme, style, children, Icon, closeOnPress, leftOpenVal
31
31
  sizeStyles /* Size styles needs to be readded to surface container due to inconsistencies on web */,
32
32
  ]);
33
33
  const [componentWidth, setComponentWidth] = React.useState(null);
34
- const leftSwipeButtons = React.useMemo(() => React.Children.toArray(children).filter((child) => React.isValidElement(child) &&
34
+ const children = React.useMemo(() => React.Children.toArray(childrenProp).map((child) => extractIfNestedInFragment(child)), [childrenProp]);
35
+ const leftSwipeButtons = React.useMemo(() => children.filter((child) => React.isValidElement(child) &&
35
36
  child.type === SwipeableItemButton &&
36
37
  child.props.revealSwipeDirection === "left"), [children]);
37
- const rightSwipeButtons = React.useMemo(() => React.Children.toArray(children).filter((child) => React.isValidElement(child) &&
38
+ const rightSwipeButtons = React.useMemo(() => children.filter((child) => React.isValidElement(child) &&
38
39
  child.type === SwipeableItemButton &&
39
40
  child.props.revealSwipeDirection === "right"), [children]);
40
41
  const remainingChildren = React.useMemo(() => React.Children.toArray(children).filter((child) => React.isValidElement(child) && child.type !== SwipeableItemButton), [children]);