@draftbit/core 54.0.3 → 54.0.4-11e01d.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  2. package/lib/commonjs/components/MediaPlayer/MediaPlaybackWrapper.js +1 -1
  3. package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -1
  4. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  5. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +3 -1
  6. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +69 -54
  7. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
  8. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.d.ts +3 -2
  9. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js +19 -21
  10. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +1 -1
  11. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +5 -4
  12. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +3 -26
  13. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
  14. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +14 -4
  15. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +125 -62
  16. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  17. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  18. package/package.json +8 -5
  19. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +84 -72
  20. package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +21 -24
  21. package/src/components/MediaPlayer/MediaPlayerCommon.ts +8 -34
  22. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +213 -86
  23. package/src/Provider.js +0 -10
  24. package/src/Provider.js.map +0 -1
  25. package/src/components/AccordionGroup.js +0 -51
  26. package/src/components/AccordionGroup.js.map +0 -1
  27. package/src/components/ActionSheet/ActionSheet.js +0 -46
  28. package/src/components/ActionSheet/ActionSheet.js.map +0 -1
  29. package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
  30. package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  31. package/src/components/ActionSheet/ActionSheetItem.js +0 -31
  32. package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
  33. package/src/components/ActionSheet/index.js +0 -4
  34. package/src/components/ActionSheet/index.js.map +0 -1
  35. package/src/components/AspectRatio.js +0 -19
  36. package/src/components/AspectRatio.js.map +0 -1
  37. package/src/components/BottomSheet/BottomSheet.js +0 -76
  38. package/src/components/BottomSheet/BottomSheet.js.map +0 -1
  39. package/src/components/BottomSheet/index.js +0 -2
  40. package/src/components/BottomSheet/index.js.map +0 -1
  41. package/src/components/Button.js +0 -119
  42. package/src/components/Button.js.map +0 -1
  43. package/src/components/Checkbox/Checkbox.js +0 -63
  44. package/src/components/Checkbox/Checkbox.js.map +0 -1
  45. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  46. package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  47. package/src/components/Checkbox/CheckboxRow.js +0 -79
  48. package/src/components/Checkbox/CheckboxRow.js.map +0 -1
  49. package/src/components/Checkbox/context.js +0 -15
  50. package/src/components/Checkbox/context.js.map +0 -1
  51. package/src/components/Checkbox/index.js +0 -3
  52. package/src/components/Checkbox/index.js.map +0 -1
  53. package/src/components/Config.js +0 -65
  54. package/src/components/Config.js.map +0 -1
  55. package/src/components/DatePicker/DatePicker.js +0 -418
  56. package/src/components/DatePicker/DatePicker.js.map +0 -1
  57. package/src/components/DatePicker/DatePickerComponent.js +0 -17
  58. package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
  59. package/src/components/DatePicker/DatePickerComponent.web.js +0 -57
  60. package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  61. package/src/components/DatePicker/DatePickerComponentType.js +0 -2
  62. package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
  63. package/src/components/DatePicker/parseDate.js +0 -12
  64. package/src/components/DatePicker/parseDate.js.map +0 -1
  65. package/src/components/DeckSwiper/DeckSwiper.js +0 -116
  66. package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
  67. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  68. package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
  69. package/src/components/DeckSwiper/index.js +0 -3
  70. package/src/components/DeckSwiper/index.js.map +0 -1
  71. package/src/components/Divider.js +0 -14
  72. package/src/components/Divider.js.map +0 -1
  73. package/src/components/Elevation.js +0 -20
  74. package/src/components/Elevation.js.map +0 -1
  75. package/src/components/ExpoImage.js +0 -44
  76. package/src/components/ExpoImage.js.map +0 -1
  77. package/src/components/FlatList.js +0 -7
  78. package/src/components/FlatList.js.map +0 -1
  79. package/src/components/FormRow.js +0 -20
  80. package/src/components/FormRow.js.map +0 -1
  81. package/src/components/IconButton.js +0 -36
  82. package/src/components/IconButton.js.map +0 -1
  83. package/src/components/Image.js +0 -48
  84. package/src/components/Image.js.map +0 -1
  85. package/src/components/KeyboardAvoidingView.js +0 -29
  86. package/src/components/KeyboardAvoidingView.js.map +0 -1
  87. package/src/components/Layout/AspectRatio.js +0 -7
  88. package/src/components/Layout/AspectRatio.js.map +0 -1
  89. package/src/components/Layout/Center.js +0 -15
  90. package/src/components/Layout/Center.js.map +0 -1
  91. package/src/components/Layout/Circle.js +0 -16
  92. package/src/components/Layout/Circle.js.map +0 -1
  93. package/src/components/Layout/HStack.js +0 -12
  94. package/src/components/Layout/HStack.js.map +0 -1
  95. package/src/components/Layout/LayoutCommon.js +0 -8
  96. package/src/components/Layout/LayoutCommon.js.map +0 -1
  97. package/src/components/Layout/Spacer.js +0 -15
  98. package/src/components/Layout/Spacer.js.map +0 -1
  99. package/src/components/Layout/Square.js +0 -25
  100. package/src/components/Layout/Square.js.map +0 -1
  101. package/src/components/Layout/VStack.js +0 -12
  102. package/src/components/Layout/VStack.js.map +0 -1
  103. package/src/components/Layout/ZStack.js +0 -58
  104. package/src/components/Layout/ZStack.js.map +0 -1
  105. package/src/components/Layout/index.js +0 -9
  106. package/src/components/Layout/index.js.map +0 -1
  107. package/src/components/LoadingIndicator.js +0 -38
  108. package/src/components/LoadingIndicator.js.map +0 -1
  109. package/src/components/LottieAnimation.js +0 -12
  110. package/src/components/LottieAnimation.js.map +0 -1
  111. package/src/components/Markdown.js +0 -33
  112. package/src/components/Markdown.js.map +0 -1
  113. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
  114. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
  115. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -123
  116. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
  117. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -90
  118. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
  119. package/src/components/MediaPlayer/AudioPlayer/index.js +0 -13
  120. package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
  121. package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
  122. package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
  123. package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -71
  124. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
  125. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -109
  126. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
  127. package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
  128. package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
  129. package/src/components/NumberInput.js +0 -63
  130. package/src/components/NumberInput.js.map +0 -1
  131. package/src/components/Picker/NativePicker.ios.js +0 -77
  132. package/src/components/Picker/NativePicker.ios.js.map +0 -1
  133. package/src/components/Picker/NativePicker.js +0 -73
  134. package/src/components/Picker/NativePicker.js.map +0 -1
  135. package/src/components/Picker/PickerCommon.js +0 -36
  136. package/src/components/Picker/PickerCommon.js.map +0 -1
  137. package/src/components/Picker/PickerInputContainer.js +0 -36
  138. package/src/components/Picker/PickerInputContainer.js.map +0 -1
  139. package/src/components/Picker/dropdown/DropDownModalPicker.js +0 -70
  140. package/src/components/Picker/dropdown/DropDownModalPicker.js.map +0 -1
  141. package/src/components/Picker/dropdown/DropDownPicker.js +0 -61
  142. package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
  143. package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
  144. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
  145. package/src/components/Picker/dropdown/PickerItem.js +0 -9
  146. package/src/components/Picker/dropdown/PickerItem.js.map +0 -1
  147. package/src/components/Picker/index.js +0 -22
  148. package/src/components/Picker/index.js.map +0 -1
  149. package/src/components/PinInput/CustomPinInputCell.js +0 -11
  150. package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
  151. package/src/components/PinInput/PinInput.js +0 -89
  152. package/src/components/PinInput/PinInput.js.map +0 -1
  153. package/src/components/PinInput/PinInputText.js +0 -14
  154. package/src/components/PinInput/PinInputText.js.map +0 -1
  155. package/src/components/PinInput/index.js +0 -4
  156. package/src/components/PinInput/index.js.map +0 -1
  157. package/src/components/Portal/Portal.js +0 -34
  158. package/src/components/Portal/Portal.js.map +0 -1
  159. package/src/components/Portal/PortalConsumer.js +0 -28
  160. package/src/components/Portal/PortalConsumer.js.map +0 -1
  161. package/src/components/Portal/PortalHost.js +0 -109
  162. package/src/components/Portal/PortalHost.js.map +0 -1
  163. package/src/components/Portal/PortalManager.js +0 -33
  164. package/src/components/Portal/PortalManager.js.map +0 -1
  165. package/src/components/Pressable.js +0 -23
  166. package/src/components/Pressable.js.map +0 -1
  167. package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
  168. package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
  169. package/src/components/Progress/CircularProgress/index.js +0 -14
  170. package/src/components/Progress/CircularProgress/index.js.map +0 -1
  171. package/src/components/Progress/IndeterminateProgress.js +0 -39
  172. package/src/components/Progress/IndeterminateProgress.js.map +0 -1
  173. package/src/components/Progress/LinearProgress/LinearProgress.js +0 -57
  174. package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
  175. package/src/components/Progress/LinearProgress/index.js +0 -14
  176. package/src/components/Progress/LinearProgress/index.js.map +0 -1
  177. package/src/components/Progress/ProgressCommon.js +0 -2
  178. package/src/components/Progress/ProgressCommon.js.map +0 -1
  179. package/src/components/ProgressIndicator.js +0 -28
  180. package/src/components/ProgressIndicator.js.map +0 -1
  181. package/src/components/RadioButton/RadioButton.js +0 -18
  182. package/src/components/RadioButton/RadioButton.js.map +0 -1
  183. package/src/components/RadioButton/RadioButtonGroup.js +0 -44
  184. package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
  185. package/src/components/RadioButton/RadioButtonRow.js +0 -79
  186. package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
  187. package/src/components/RadioButton/context.js +0 -15
  188. package/src/components/RadioButton/context.js.map +0 -1
  189. package/src/components/RadioButton/index.js +0 -4
  190. package/src/components/RadioButton/index.js.map +0 -1
  191. package/src/components/Row.js +0 -49
  192. package/src/components/Row.js.map +0 -1
  193. package/src/components/SVG.js +0 -8
  194. package/src/components/SVG.js.map +0 -1
  195. package/src/components/SVG.native.js +0 -10
  196. package/src/components/SVG.native.js.map +0 -1
  197. package/src/components/ScreenContainer.js +0 -42
  198. package/src/components/ScreenContainer.js.map +0 -1
  199. package/src/components/SectionList/SectionHeader.js +0 -14
  200. package/src/components/SectionList/SectionHeader.js.map +0 -1
  201. package/src/components/SectionList/SectionList.js +0 -111
  202. package/src/components/SectionList/SectionList.js.map +0 -1
  203. package/src/components/SectionList/index.js +0 -3
  204. package/src/components/SectionList/index.js.map +0 -1
  205. package/src/components/Shadow.js +0 -26
  206. package/src/components/Shadow.js.map +0 -1
  207. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -13
  208. package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +0 -1
  209. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -13
  210. package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +0 -1
  211. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -13
  212. package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +0 -1
  213. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -13
  214. package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +0 -1
  215. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -13
  216. package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +0 -1
  217. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -15
  218. package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +0 -1
  219. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -15
  220. package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +0 -1
  221. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -91
  222. package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js.map +0 -1
  223. package/src/components/Slider.js +0 -84
  224. package/src/components/Slider.js.map +0 -1
  225. package/src/components/StarRating.js +0 -51
  226. package/src/components/StarRating.js.map +0 -1
  227. package/src/components/StepIndicator.js +0 -347
  228. package/src/components/StepIndicator.js.map +0 -1
  229. package/src/components/Stepper.js +0 -43
  230. package/src/components/Stepper.js.map +0 -1
  231. package/src/components/Surface.js +0 -55
  232. package/src/components/Surface.js.map +0 -1
  233. package/src/components/SwipeableItem/SwipeableItem.js +0 -124
  234. package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
  235. package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
  236. package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
  237. package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
  238. package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
  239. package/src/components/SwipeableItem/SwipeableList.js +0 -29
  240. package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
  241. package/src/components/SwipeableItem/index.js +0 -4
  242. package/src/components/SwipeableItem/index.js.map +0 -1
  243. package/src/components/Swiper/Swiper.js +0 -99
  244. package/src/components/Swiper/Swiper.js.map +0 -1
  245. package/src/components/Swiper/SwiperItem.js +0 -10
  246. package/src/components/Swiper/SwiperItem.js.map +0 -1
  247. package/src/components/Swiper/index.js +0 -3
  248. package/src/components/Swiper/index.js.map +0 -1
  249. package/src/components/Switch.js +0 -56
  250. package/src/components/Switch.js.map +0 -1
  251. package/src/components/TabView/TabView.js +0 -65
  252. package/src/components/TabView/TabView.js.map +0 -1
  253. package/src/components/TabView/TabViewItem.js +0 -12
  254. package/src/components/TabView/TabViewItem.js.map +0 -1
  255. package/src/components/TabView/index.js +0 -3
  256. package/src/components/TabView/index.js.map +0 -1
  257. package/src/components/Table/Table.js +0 -94
  258. package/src/components/Table/Table.js.map +0 -1
  259. package/src/components/Table/TableCell.js +0 -34
  260. package/src/components/Table/TableCell.js.map +0 -1
  261. package/src/components/Table/TableCommon.js +0 -13
  262. package/src/components/Table/TableCommon.js.map +0 -1
  263. package/src/components/Table/TableRow.js +0 -42
  264. package/src/components/Table/TableRow.js.map +0 -1
  265. package/src/components/Table/index.js +0 -4
  266. package/src/components/Table/index.js.map +0 -1
  267. package/src/components/Text.js +0 -25
  268. package/src/components/Text.js.map +0 -1
  269. package/src/components/TextField.js +0 -411
  270. package/src/components/TextField.js.map +0 -1
  271. package/src/components/TextInput.js +0 -25
  272. package/src/components/TextInput.js.map +0 -1
  273. package/src/components/Timer.js +0 -87
  274. package/src/components/Timer.js.map +0 -1
  275. package/src/components/Touchable.js +0 -13
  276. package/src/components/Touchable.js.map +0 -1
  277. package/src/components/Touchable.web.js +0 -3
  278. package/src/components/Touchable.web.js.map +0 -1
  279. package/src/components/Typography.js +0 -37
  280. package/src/components/Typography.js.map +0 -1
  281. package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
  282. package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
  283. package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -36
  284. package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
  285. package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
  286. package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
  287. package/src/components/YoutubePlayer/index.js +0 -2
  288. package/src/components/YoutubePlayer/index.js.map +0 -1
  289. package/src/components/useAuthState.js +0 -35
  290. package/src/components/useAuthState.js.map +0 -1
  291. package/src/constants.js +0 -11
  292. package/src/constants.js.map +0 -1
  293. package/src/deprecated-components/AccordionItem.js +0 -36
  294. package/src/deprecated-components/AccordionItem.js.map +0 -1
  295. package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
  296. package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
  297. package/src/deprecated-components/AvatarEdit.js +0 -34
  298. package/src/deprecated-components/AvatarEdit.js.map +0 -1
  299. package/src/deprecated-components/AvoidKeyboardView.js +0 -36
  300. package/src/deprecated-components/AvoidKeyboardView.js.map +0 -1
  301. package/src/deprecated-components/Banner.js +0 -112
  302. package/src/deprecated-components/Banner.js.map +0 -1
  303. package/src/deprecated-components/Card.js +0 -61
  304. package/src/deprecated-components/Card.js.map +0 -1
  305. package/src/deprecated-components/CheckboxGroup.js +0 -25
  306. package/src/deprecated-components/CheckboxGroup.js.map +0 -1
  307. package/src/deprecated-components/CircleImage.js +0 -12
  308. package/src/deprecated-components/CircleImage.js.map +0 -1
  309. package/src/deprecated-components/CircularProgress.js +0 -85
  310. package/src/deprecated-components/CircularProgress.js.map +0 -1
  311. package/src/deprecated-components/Container.js +0 -46
  312. package/src/deprecated-components/Container.js.map +0 -1
  313. package/src/deprecated-components/DeprecatedButton.js +0 -87
  314. package/src/deprecated-components/DeprecatedButton.js.map +0 -1
  315. package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
  316. package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
  317. package/src/deprecated-components/DeprecatedFAB.js +0 -111
  318. package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
  319. package/src/deprecated-components/FAB.js +0 -50
  320. package/src/deprecated-components/FAB.js.map +0 -1
  321. package/src/deprecated-components/FieldSearchBarFull.js +0 -57
  322. package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
  323. package/src/deprecated-components/Layout.js +0 -69
  324. package/src/deprecated-components/Layout.js.map +0 -1
  325. package/src/deprecated-components/ProgressBar.js +0 -122
  326. package/src/deprecated-components/ProgressBar.js.map +0 -1
  327. package/src/deprecated-components/ProgressCircle.js +0 -17
  328. package/src/deprecated-components/ProgressCircle.js.map +0 -1
  329. package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
  330. package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
  331. package/src/deprecated-components/RowBodyIcon.js +0 -12
  332. package/src/deprecated-components/RowBodyIcon.js.map +0 -1
  333. package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
  334. package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
  335. package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
  336. package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
  337. package/src/deprecated-components/ToggleButton.js +0 -43
  338. package/src/deprecated-components/ToggleButton.js.map +0 -1
  339. package/src/hooks.js +0 -35
  340. package/src/hooks.js.map +0 -1
  341. package/src/index.js +0 -77
  342. package/src/index.js.map +0 -1
  343. package/src/interfaces/Icon.js +0 -9
  344. package/src/interfaces/Icon.js.map +0 -1
  345. package/src/utilities.js +0 -223
  346. package/src/utilities.js.map +0 -1
@@ -1,44 +0,0 @@
1
- import { pick } from "lodash";
2
- export function extractRightSwipeProps(object) {
3
- return pick(object, [
4
- "onSwipedRight",
5
- "rightSwipeTitle",
6
- "rightSwipeIcon",
7
- "rightSwipeIconSize",
8
- "rightSwipeBackgroundColor",
9
- "rightSwipeColor",
10
- ]);
11
- }
12
- export function extractLeftSwipeProps(object) {
13
- return pick(object, [
14
- "onSwipedLeft",
15
- "leftSwipeTitle",
16
- "leftSwipeIcon",
17
- "leftSwipeIconSize",
18
- "leftSwipeBackgroundColor",
19
- "leftSwipeColor",
20
- ]);
21
- }
22
- export function rightSwipeToSwipeableItemBehindItem(swipe) {
23
- return {
24
- title: swipe.rightSwipeTitle || "",
25
- revealSwipeDirection: "right",
26
- onSwipe: swipe.onSwipedRight,
27
- icon: swipe.rightSwipeIcon,
28
- iconSize: swipe.rightSwipeIconSize,
29
- backgroundColor: swipe.rightSwipeBackgroundColor,
30
- color: swipe.rightSwipeColor,
31
- };
32
- }
33
- export function leftSwipeToSwipeableItemBehindItem(swipe) {
34
- return {
35
- title: swipe.leftSwipeTitle || "",
36
- revealSwipeDirection: "left",
37
- onSwipe: swipe.onSwipedLeft,
38
- icon: swipe.leftSwipeIcon,
39
- iconSize: swipe.leftSwipeIconSize,
40
- backgroundColor: swipe.leftSwipeBackgroundColor,
41
- color: swipe.leftSwipeColor,
42
- };
43
- }
44
- //# sourceMappingURL=SwipeableItemCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwipeableItemCommon.js","sourceRoot":"","sources":["SwipeableItemCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAgC9B,MAAM,UAAU,sBAAsB,CAAC,MAAc;IACnD,OAAO,IAAI,CAAC,MAAM,EAAE;QAClB,eAAe;QACf,iBAAiB;QACjB,gBAAgB;QAChB,oBAAoB;QACpB,2BAA2B;QAC3B,iBAAiB;KAClB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAc;IAClD,OAAO,IAAI,CAAC,MAAM,EAAE;QAClB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,mBAAmB;QACnB,0BAA0B;QAC1B,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAsB;IAEtB,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;QAClC,oBAAoB,EAAE,OAAO;QAC7B,OAAO,EAAE,KAAK,CAAC,aAAa;QAC5B,IAAI,EAAE,KAAK,CAAC,cAAc;QAC1B,QAAQ,EAAE,KAAK,CAAC,kBAAkB;QAClC,eAAe,EAAE,KAAK,CAAC,yBAAyB;QAChD,KAAK,EAAE,KAAK,CAAC,eAAe;KAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,KAAqB;IAErB,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,cAAc,IAAI,EAAE;QACjC,oBAAoB,EAAE,MAAM;QAC5B,OAAO,EAAE,KAAK,CAAC,YAAY;QAC3B,IAAI,EAAE,KAAK,CAAC,aAAa;QACzB,QAAQ,EAAE,KAAK,CAAC,iBAAiB;QACjC,eAAe,EAAE,KAAK,CAAC,wBAAwB;QAC/C,KAAK,EAAE,KAAK,CAAC,cAAc;KAC5B,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { FlashList } from "@shopify/flash-list";
3
- import FlatList from "../FlatList";
4
- export const SwipeableListContext = React.createContext({
5
- onStartSwiping: () => { },
6
- onStopSwiping: () => { },
7
- });
8
- const SwipeableList = React.forwardRef(({ disableScrollWhenSwiping = true, listComponent = "FlatList", ...rest }, ref) => {
9
- const [isSwiping, setIsSwiping] = React.useState(false);
10
- const onStartSwiping = () => {
11
- setIsSwiping(true);
12
- };
13
- const onStopSwiping = () => {
14
- setIsSwiping(false);
15
- };
16
- rest.scrollEnabled = disableScrollWhenSwiping ? !isSwiping : true;
17
- const renderListComponent = () => {
18
- switch (listComponent) {
19
- case "FlatList":
20
- return (React.createElement(FlatList, { ref: ref, ...rest }));
21
- case "FlashList":
22
- return (React.createElement(FlashList, { ref: ref, ...rest }));
23
- }
24
- };
25
- return (React.createElement(SwipeableListContext.Provider, { value: { onStartSwiping, onStopSwiping } },
26
- React.createElement(React.Fragment, null, renderListComponent())));
27
- });
28
- export default SwipeableList;
29
- //# sourceMappingURL=SwipeableList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwipeableList.js","sourceRoot":"","sources":["SwipeableList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,QAAQ,MAAM,aAAa,CAAC;AAoBnC,MAAM,CAAC,MAAM,oBAAoB,GAC/B,KAAK,CAAC,aAAa,CAA2B;IAC5C,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;IACxB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;CACxB,CAAC,CAAC;AAEL,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CACpC,CACE,EACE,wBAAwB,GAAG,IAAI,EAC/B,aAAa,GAAG,UAAU,EAC1B,GAAG,IAAI,EACwD,EACjE,GAAyD,EACzD,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,IAAI,CAAC,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IAElE,MAAM,mBAAmB,GAAG,GAAG,EAAE;QAC/B,QAAQ,aAAa,EAAE,CAAC;YACtB,KAAK,UAAU;gBACb,OAAO,CACL,oBAAC,QAAQ,IACP,GAAG,EAAE,GAAmC,KACnC,IAAyB,GAC9B,CACH,CAAC;YACJ,KAAK,WAAW;gBACd,OAAO,CACL,oBAAC,SAAS,IAAC,GAAG,EAAE,GAAU,KAAO,IAA0B,GAAI,CAChE,CAAC;QACN,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE;QACrE,0CAAG,mBAAmB,EAAE,CAAI,CACE,CACjC,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,4 +0,0 @@
1
- export { default as SwipeableItem } from "./SwipeableItem";
2
- export { default as SwipeableItemButton } from "./SwipeableItemButton";
3
- export { default as SwipeableList } from "./SwipeableList";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,99 +0,0 @@
1
- import { withTheme } from "@draftbit/theme";
2
- import React, { forwardRef, useImperativeHandle } from "react";
3
- import { View } from "react-native";
4
- import SwiperComponent from "react-native-web-swiper";
5
- const Swiper = forwardRef(({ theme, vertical = false, loop = false, timeout = 0, from = 0, prevTitle = "", nextTitle = "", prevTitleColor, nextTitleColor, dotsTouchable = true, dotColor = theme === null || theme === void 0 ? void 0 : theme.colors.foreground.base, dotActiveColor = theme === null || theme === void 0 ? void 0 : theme.colors.branding.primary, data, keyExtractor, renderItem, children: childrenProp, onIndexChanged: onIndexChangedProp, onSwipe, onSwipedNext, onSwipedPrevious, minDistanceForAction, minDistanceToCapture, style, hideDots = false, }, ref) => {
6
- var _a;
7
- const [currentIndex, setCurrentIndex] = React.useState(0);
8
- const numberOfItems = (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : React.Children.count(childrenProp);
9
- const swiperRef = React.useRef(null);
10
- const onIndexChanged = (index) => {
11
- const previous = currentIndex;
12
- const current = index;
13
- onIndexChangedProp === null || onIndexChangedProp === void 0 ? void 0 : onIndexChangedProp(index);
14
- setCurrentIndex(index);
15
- if (previous === numberOfItems - 1 && current === 0) {
16
- //Last -> first swipe
17
- onSwipedNext === null || onSwipedNext === void 0 ? void 0 : onSwipedNext(previous);
18
- }
19
- else if (previous === 0 && current === numberOfItems - 1) {
20
- //First -> last swipe
21
- onSwipedPrevious === null || onSwipedPrevious === void 0 ? void 0 : onSwipedPrevious(previous);
22
- }
23
- else if (current > previous) {
24
- onSwipedNext === null || onSwipedNext === void 0 ? void 0 : onSwipedNext(previous);
25
- }
26
- else if (current < previous) {
27
- onSwipedPrevious === null || onSwipedPrevious === void 0 ? void 0 : onSwipedPrevious(previous);
28
- }
29
- onSwipe === null || onSwipe === void 0 ? void 0 : onSwipe(previous);
30
- };
31
- const children = React.useMemo(() => Array.isArray(data) && renderItem
32
- ? data.map((item, index) => {
33
- const component = renderItem({ item, index });
34
- if (!component) {
35
- return null;
36
- }
37
- const key = keyExtractor ? keyExtractor(item, index) : index;
38
- return React.cloneElement(component, {
39
- key,
40
- });
41
- })
42
- : childrenProp, [childrenProp, data, renderItem, keyExtractor]);
43
- /*
44
- react-native-web-swiper assigns it's 'children' attribute as follows: `children = (() => React.Children.toArray(this.props.children))();`
45
- This is probelematic when state is involved due to anoynmous function effectivley creating new components everytime, losing any state
46
-
47
- This is a monkey patch that updates the 'children' attribute to just use the children from the props
48
- Can be removed when/if https://github.com/reactrondev/react-native-web-swiper/pull/102 is merged
49
- */
50
- React.useEffect(() => {
51
- var _a, _b;
52
- const childrenArray = React.Children.toArray((_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children);
53
- if (swiperRef.current) {
54
- swiperRef.current.children = childrenArray;
55
- swiperRef.current.count = childrenArray.length;
56
- swiperRef.current.forceUpdate();
57
- }
58
- }, [children]);
59
- useImperativeHandle(ref, () => ({
60
- swipeTo: (index) => {
61
- var _a;
62
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.goTo(index);
63
- },
64
- swipeNext: () => {
65
- var _a;
66
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.goToNext();
67
- },
68
- swipePrev: () => {
69
- var _a;
70
- (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.goToPrev();
71
- },
72
- }));
73
- return (React.createElement(View, { style: style },
74
- React.createElement(SwiperComponent, { ref: swiperRef, from: from, loop: loop, timeout: timeout, vertical: vertical, onIndexChanged: onIndexChanged, minDistanceForAction: minDistanceForAction, minDistanceToCapture: minDistanceToCapture, controlsProps: {
75
- prevTitle,
76
- nextTitle,
77
- prevTitleStyle: { color: prevTitleColor },
78
- nextTitleStyle: { color: nextTitleColor },
79
- dotsTouchable,
80
- ...(dotColor
81
- ? {
82
- dotProps: {
83
- badgeStyle: {
84
- backgroundColor: hideDots ? "transparent" : dotColor,
85
- },
86
- },
87
- }
88
- : {}),
89
- ...(dotActiveColor
90
- ? {
91
- dotActiveStyle: {
92
- backgroundColor: hideDots ? "transparent" : dotActiveColor,
93
- },
94
- }
95
- : {}),
96
- } }, children)));
97
- });
98
- export default withTheme(Swiper);
99
- //# sourceMappingURL=Swiper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Swiper.js","sourceRoot":"","sources":["Swiper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,SA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,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,oBAAoB,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE;gBACb,SAAS;gBACT,SAAS;gBACT,cAAc,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE;gBACzC,cAAc,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE;gBACzC,aAAa;gBACb,GAAG,CAAC,QAAQ;oBACV,CAAC,CAAC;wBACE,QAAQ,EAAE;4BACR,UAAU,EAAE;gCACV,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ;6BACrD;yBACF;qBACF;oBACH,CAAC,CAAC,EAAE,CAAC;gBACP,GAAG,CAAC,cAAc;oBAChB,CAAC,CAAC;wBACE,cAAc,EAAE;4BACd,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc;yBAC3D;qBACF;oBACH,CAAC,CAAC,EAAE,CAAC;aACR,IAEA,QAAQ,CACO,CACb,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- const styles = StyleSheet.create({
4
- wrapper: {
5
- flex: 1,
6
- },
7
- });
8
- const SwiperItem = ({ children, style }) => (React.createElement(View, { style: [styles.wrapper, style] }, children));
9
- export default SwiperItem;
10
- //# sourceMappingURL=SwiperItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwiperItem.js","sourceRoot":"","sources":["SwiperItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAC;AAEtE,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAOH,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAe,EAAE,EAAE,CAAC,CACvD,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,IAAG,QAAQ,CAAQ,CACxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as Swiper } from "./Swiper";
2
- export { default as SwiperItem } from "./SwiperItem";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -1,56 +0,0 @@
1
- import * as React from "react";
2
- import { Switch as NativeSwitch, } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- import FormRow from "./FormRow";
5
- import { usePrevious } from "../hooks";
6
- function Switch({ value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, style, ...rest }) {
7
- const activeTrackThemeColor = activeTrackColor || theme.colors.branding.primary;
8
- const inactiveTrackThemeColor = inactiveTrackColor || "#EEE";
9
- const activeThumbThemeColor = activeThumbColor || "#FFF";
10
- const inactiveThumbThemeColor = inactiveThumbColor || "#FFF";
11
- const [checked, setChecked] = React.useState(value || defaultValue);
12
- React.useEffect(() => {
13
- if (value != null && value !== checked) {
14
- setChecked(value);
15
- }
16
- }, [value, checked]);
17
- // This special logic is to handle weird APIs like Airtable that return
18
- // true or undefined for a boolean
19
- const previousDefaultValue = usePrevious(defaultValue);
20
- React.useEffect(() => {
21
- if (defaultValue !== previousDefaultValue) {
22
- setChecked(Boolean(defaultValue));
23
- }
24
- }, [defaultValue, previousDefaultValue]);
25
- return (React.createElement(NativeSwitch, { value: checked, disabled: disabled, trackColor: {
26
- false: inactiveTrackThemeColor,
27
- true: activeTrackThemeColor,
28
- }, thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
29
- // @ts-ignore react-native-web only
30
- activeThumbColor: activeThumbThemeColor, ios_backgroundColor: inactiveTrackThemeColor, style: style, onValueChange: (bool) => {
31
- setChecked(bool);
32
- onValueChange && onValueChange(bool);
33
- }, ...rest }));
34
- }
35
- function Row({ label = "Label", direction = "row", style, value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, ...rest }) {
36
- const [checked, setChecked] = React.useState(value != null ? value : defaultValue);
37
- React.useEffect(() => {
38
- if (value != null) {
39
- setChecked(value);
40
- }
41
- }, [value]);
42
- React.useEffect(() => {
43
- if (defaultValue != null) {
44
- setChecked(defaultValue);
45
- }
46
- }, [defaultValue]);
47
- return (React.createElement(FormRow, { disabled: disabled, onPress: () => {
48
- setChecked(!checked);
49
- onValueChange && onValueChange(!checked);
50
- }, label: label, direction: direction, style: style, ...rest },
51
- React.createElement(Switch, { theme: theme, value: checked, disabled: disabled, onValueChange: onValueChange, activeTrackColor: activeTrackColor, inactiveTrackColor: inactiveTrackColor, activeThumbColor: activeThumbColor, inactiveThumbColor: inactiveThumbColor })));
52
- }
53
- const SwitchRow = withTheme(Row);
54
- export { SwitchRow };
55
- export default withTheme(Switch);
56
- //# sourceMappingURL=Switch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch.js","sourceRoot":"","sources":["Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,IAAI,YAAY,GAIvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,W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a,CAAC,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,KACR,IAAI;QAER,oBAAC,MAAM,IACL,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,GACtC,CACM,CACX,CAAC;AACJ,CAAC;AAED,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,65 +0,0 @@
1
- import * as React from "react";
2
- import { TabView, TabBar, } from "react-native-tab-view";
3
- import TabViewItem from "./TabViewItem";
4
- import { withTheme } from "@draftbit/theme";
5
- import { flattenReactFragments, extractStyles } from "../../utilities";
6
- const TabViewComponent = ({ Icon, onIndexChanged, onEndReached, initialTabIndex = 0, tabBarPosition, keyboardDismissMode, swipeEnabled, scrollEnabled, activeColor, inactiveColor, pressColor, indicatorColor, tabsBackgroundColor, iconSize = 16, iconPosition = "top", style, theme, children: childrenProp, }) => {
7
- const [index, setIndex] = React.useState(initialTabIndex);
8
- const [routes, setRoutes] = React.useState([]);
9
- const { textStyles, viewStyles } = extractStyles(style);
10
- const children = React.useMemo(() => flattenReactFragments(React.Children.toArray(childrenProp)).filter((child) => React.isValidElement(child) && child.type === TabViewItem), [childrenProp]);
11
- //Populate routes and scenes based on children
12
- React.useEffect(() => {
13
- const newRoutes = [];
14
- children.forEach((item, idx) => {
15
- const child = item;
16
- newRoutes.push({
17
- key: idx.toString(),
18
- title: child.props.title,
19
- icon: child.props.icon,
20
- accessibilityLabel: child.props.accessibilityLabel,
21
- });
22
- });
23
- setRoutes(newRoutes);
24
- }, [children]);
25
- const indexChangeHandler = (i) => {
26
- setIndex(i);
27
- onIndexChanged === null || onIndexChanged === void 0 ? void 0 : onIndexChanged(i);
28
- if (i === routes.length) {
29
- onEndReached === null || onEndReached === void 0 ? void 0 : onEndReached();
30
- }
31
- };
32
- const renderTabBar = (props) => {
33
- let tabFlexDirection;
34
- switch (iconPosition) {
35
- case "top":
36
- tabFlexDirection = "column";
37
- break;
38
- case "bottom":
39
- tabFlexDirection = "column-reverse";
40
- break;
41
- case "left":
42
- tabFlexDirection = "row";
43
- break;
44
- case "right":
45
- tabFlexDirection = "row-reverse";
46
- break;
47
- }
48
- return (React.createElement(TabBar, { ...props, activeColor: activeColor || theme.colors.branding.primary, inactiveColor: inactiveColor || "rgb(200,200,200)", pressColor: pressColor || theme.colors.branding.primary, scrollEnabled: scrollEnabled, indicatorStyle: {
49
- backgroundColor: indicatorColor || theme.colors.branding.primary,
50
- }, labelStyle: [{ textTransform: "none" }, textStyles], tabStyle: { flexDirection: tabFlexDirection }, renderIcon: ({ route, color }) => (route === null || route === void 0 ? void 0 : route.icon) ? (React.createElement(Icon, { name: route.icon, color: color, size: iconSize })) : null, style: {
51
- backgroundColor: tabsBackgroundColor || theme.colors.background.base,
52
- } }));
53
- };
54
- const renderScene = ({ route }) => {
55
- const index = Number(route.key);
56
- return children[index];
57
- };
58
- //Cannot render TabView without at least one tab
59
- if (!routes.length) {
60
- return React.createElement(React.Fragment, null);
61
- }
62
- return (React.createElement(TabView, { style: viewStyles, navigationState: { index, routes }, renderScene: renderScene, renderTabBar: renderTabBar, onIndexChange: indexChangeHandler, tabBarPosition: tabBarPosition, keyboardDismissMode: keyboardDismissMode, swipeEnabled: swipeEnabled }));
63
- };
64
- export default withTheme(TabViewComponent);
65
- //# sourceMappingURL=TabView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabView.js","sourceRoot":"","sources":["TabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MA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B,mBAAmB,EAAE,mBAAmB,EACxC,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { StyleSheet, View } from "react-native";
3
- const TabViewItem = ({ style, children, }) => {
4
- return React.createElement(View, { style: [styles.parentContainer, style] }, children);
5
- };
6
- const styles = StyleSheet.create({
7
- parentContainer: {
8
- flex: 1,
9
- },
10
- });
11
- export default TabViewItem;
12
- //# sourceMappingURL=TabViewItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabViewItem.js","sourceRoot":"","sources":["TabViewItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAStE,MAAM,WAAW,GAAwD,CAAC,EACxE,KAAK,EACL,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,IAAG,QAAQ,CAAQ,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as TabView } from "./TabView";
2
- export { default as TabViewItem } from "./TabViewItem";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,94 +0,0 @@
1
- import React from "react";
2
- import { ScrollView, View, StyleSheet, } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
4
- import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
5
- const Table = ({ theme, borderWidth = 1, borderColor = theme.colors.border.base, borderStyle = "solid", drawTopBorder = true, drawBottomBorder = false, drawStartBorder = false, drawEndBorder = false, cellVerticalPadding = 10, cellHorizontalPadding = 10, data, keyExtractor, renderItem, children: childrenProp, style, ...rest }) => {
6
- //Both 'renderItem' and 'data' are optional to allow direct children. But if one is included, both need to be included
7
- if ((data && !renderItem) || (renderItem && !data)) {
8
- throw new Error("'renderItem' and 'data' need to both be provided to render from 'data'. Either remove them entirley or include both");
9
- }
10
- if (data && renderItem && childrenProp) {
11
- console.warn("'children' of Table ignored due to usage of 'data' and 'renderItem'");
12
- }
13
- const isTableHeader = React.useCallback((object) => {
14
- return object.isTableHeader;
15
- }, []);
16
- const isRenderItem = Array.isArray(data) && renderItem;
17
- //Uses 'renderItem' and 'data' to create an array of children
18
- const dataAsChildren = React.useMemo(() => {
19
- if (!isRenderItem)
20
- return [];
21
- return data.map((item, index) => {
22
- const component = renderItem({ item, index });
23
- if (!component) {
24
- return null;
25
- }
26
- const key = keyExtractor ? keyExtractor(item, index) : index.toString();
27
- return React.cloneElement(component, {
28
- key,
29
- });
30
- });
31
- }, [data, renderItem, keyExtractor, isRenderItem]);
32
- const children = isRenderItem
33
- ? dataAsChildren
34
- : React.Children.toArray(childrenProp);
35
- const validChildren = React.useMemo(() => children.filter((item) => React.isValidElement(item)), [children]);
36
- const childrenWithoutHeader = React.useMemo(() => {
37
- const flattenedWithoutNestedHeaders = validChildren.map((item) => {
38
- const nestedChildren = React.Children.toArray(item.props.children);
39
- //Header can be nested in React.Fragment when in renderItem
40
- const nestedHeaders = nestedChildren.filter((child) => isTableHeader(child.props));
41
- if (nestedHeaders === null || nestedHeaders === void 0 ? void 0 : nestedHeaders.length) {
42
- //New element excluding header children
43
- return React.cloneElement(item, {
44
- children: nestedChildren.filter((child) => !isTableHeader(child.props)),
45
- });
46
- }
47
- return item;
48
- });
49
- return flattenedWithoutNestedHeaders.filter((item) => !isTableHeader(item.props));
50
- }, [validChildren, isTableHeader]);
51
- const header = React.useMemo(() => {
52
- const flattenedPossibleHeaders = validChildren.map((item) => {
53
- const nestedChildren = React.Children.toArray(item.props.children);
54
- //Header can be nested in React.Fragment when in renderItem
55
- const nestedHeaders = nestedChildren.filter((child) => isTableHeader(child.props));
56
- if (nestedHeaders === null || nestedHeaders === void 0 ? void 0 : nestedHeaders.length) {
57
- return nestedHeaders[0];
58
- }
59
- return item;
60
- });
61
- const allHeaders = flattenedPossibleHeaders.filter((item) => isTableHeader(item.props));
62
- if (allHeaders.length) {
63
- return allHeaders[0]; //Only 1 header taken
64
- }
65
- return null;
66
- }, [validChildren, isTableHeader]);
67
- const contextValue = {
68
- borderColor,
69
- borderStyle,
70
- borderWidth,
71
- cellHorizontalPadding,
72
- cellVerticalPadding,
73
- };
74
- const borderViewStyle = generateBorderStyles({
75
- borderColor,
76
- borderWidth,
77
- borderStyle,
78
- drawTopBorder,
79
- drawBottomBorder,
80
- drawStartBorder,
81
- drawEndBorder,
82
- });
83
- return (React.createElement(TableStyleContext.Provider, { value: contextValue },
84
- React.createElement(View, { style: [styles.container, borderViewStyle, style] },
85
- React.createElement(React.Fragment, null, header),
86
- React.createElement(ScrollView, { ...rest }, childrenWithoutHeader))));
87
- };
88
- const styles = StyleSheet.create({
89
- container: {
90
- flex: 1,
91
- },
92
- });
93
- export default withTheme(Table);
94
- //# sourceMappingURL=Table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAGV,IAAI,EACJ,UAAU,GAEX,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,GAEl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AAE,aAAa,CAAC,CAAC,CAAC;IAEnC,MAAM,YAAY,GAAoB;QACpC,WAAW;QACX,WAAW;QACX,WAAW;QACX,qBAAqB;QACrB,mBAAmB;KACpB,CAAC;IAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC;QAC3C,WAAW;QACX,WAAW;QACX,WAAW;QACX,aAAa;QACb,gBAAgB;QAChB,eAAe;QACf,aAAa;KACd,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY;QAC7C,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;YACrD,0CAAG,MAAM,CAAI;YACb,oBAAC,UAAU,OAAK,IAAI,IAAG,qBAAqB,CAAc,CACrD,CACoB,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
4
- import Pressable from "../Pressable";
5
- const TableCell = ({ borderWidth, borderColor, borderStyle, drawTopBorder = false, drawBottomBorder = false, drawStartBorder = false, drawEndBorder = true, cellVerticalPadding, cellHorizontalPadding, children, onPress, style, }) => {
6
- const parentContextValue = React.useContext(TableStyleContext);
7
- const borderViewStyle = generateBorderStyles({
8
- borderColor: borderColor || parentContextValue.borderColor,
9
- borderWidth: borderWidth || parentContextValue.borderWidth,
10
- borderStyle: borderStyle || parentContextValue.borderStyle,
11
- drawTopBorder,
12
- drawBottomBorder,
13
- drawStartBorder,
14
- drawEndBorder,
15
- });
16
- const ContainerComponent = onPress ? Pressable : View;
17
- return (React.createElement(ContainerComponent, { onPress: onPress, style: [
18
- styles.cellContainer,
19
- borderViewStyle,
20
- {
21
- paddingVertical: cellVerticalPadding || parentContextValue.cellVerticalPadding,
22
- paddingHorizontal: cellHorizontalPadding || parentContextValue.cellHorizontalPadding,
23
- },
24
- style,
25
- ] }, children));
26
- };
27
- const styles = StyleSheet.create({
28
- cellContainer: {
29
- flex: 1,
30
- flexDirection: "row",
31
- },
32
- });
33
- export default TableCell;
34
- //# sourceMappingURL=TableCell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,SAAS,MAAM,cAAc,CAAC;AAOrC,MAAM,SAAS,GAA6C,CAAC,EAC3D,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,gBAAgB,GAAG,KAAK,EACxB,eAAe,GAAG,KAAK,EACvB,aAAa,GAAG,IAAI,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,KAAK,GACN,EAAE,EAAE;IACH,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE/D,MAAM,eAAe,GAAG,oBAAoB,CAAC;QAC3C,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,aAAa;QACb,gBAAgB;QAChB,eAAe;QACf,aAAa;KACd,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,OAAO,CACL,oBAAC,kBAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;YACL,MAAM,CAAC,aAAa;YACpB,eAAe;YACf;gBACE,eAAe,EACb,mBAAmB,IAAI,kBAAkB,CAAC,mBAAmB;gBAC/D,iBAAiB,EACf,qBAAqB,IAAI,kBAAkB,CAAC,qBAAqB;aACpE;YACD,KAAK;SACN,IAEA,QAAQ,CACU,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;QACP,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export const TableStyleContext = React.createContext({});
3
- export function generateBorderStyles({ borderColor, borderWidth, borderStyle, drawTopBorder, drawBottomBorder, drawStartBorder, drawEndBorder, }) {
4
- return {
5
- borderColor,
6
- borderStyle,
7
- borderTopWidth: drawTopBorder ? borderWidth : 0,
8
- borderBottomWidth: drawBottomBorder ? borderWidth : 0,
9
- borderStartWidth: drawStartBorder ? borderWidth : 0,
10
- borderEndWidth: drawEndBorder ? borderWidth : 0,
11
- };
12
- }
13
- //# sourceMappingURL=TableCommon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCommon.js","sourceRoot":"","sources":["TableCommon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAkB,EAAE,CAAC,CAAC;AAiB1E,MAAM,UAAU,oBAAoB,CAAC,EACnC,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,GACF;IACX,OAAO;QACL,WAAW;QACX,WAAW;QACX,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC/C,iBAAiB,EAAE,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACrD,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACnD,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;KAChD,CAAC;AACJ,CAAC"}
@@ -1,42 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { generateBorderStyles, TableStyleContext, } from "./TableCommon";
4
- import { withTheme } from "@draftbit/theme";
5
- import Pressable from "../Pressable";
6
- const TableRow = ({ borderWidth, borderColor, borderStyle, drawTopBorder = false, drawBottomBorder = true, drawStartBorder = true, drawEndBorder = false, cellVerticalPadding, cellHorizontalPadding, isTableHeader = false, children, onPress, style, theme, }) => {
7
- const parentContextValue = React.useContext(TableStyleContext);
8
- //Create context to use and pass to children based on own props or fall back to parent provided context
9
- const contextValue = {
10
- borderColor: borderColor || parentContextValue.borderColor,
11
- borderStyle: borderStyle || parentContextValue.borderStyle,
12
- borderWidth: borderWidth || parentContextValue.borderWidth,
13
- cellHorizontalPadding: cellHorizontalPadding || parentContextValue.cellHorizontalPadding,
14
- cellVerticalPadding: cellVerticalPadding || parentContextValue.cellVerticalPadding,
15
- };
16
- const borderViewStyle = generateBorderStyles({
17
- borderColor: contextValue.borderColor,
18
- borderWidth: contextValue.borderWidth,
19
- borderStyle: contextValue.borderStyle,
20
- drawTopBorder,
21
- drawBottomBorder,
22
- drawStartBorder,
23
- drawEndBorder,
24
- });
25
- const ContainerComponent = onPress ? Pressable : View;
26
- return (React.createElement(TableStyleContext.Provider, { value: contextValue },
27
- React.createElement(ContainerComponent, { onPress: onPress, style: [
28
- borderViewStyle,
29
- isTableHeader
30
- ? { backgroundColor: theme.colors.branding.primary }
31
- : {},
32
- style,
33
- styles.cellsContainer,
34
- ] }, children)));
35
- };
36
- const styles = StyleSheet.create({
37
- cellsContainer: {
38
- flexDirection: "row",
39
- },
40
- });
41
- export default withTheme(TableRow);
42
- //# sourceMappingURL=TableRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,GAElB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,SAAS,MAAM,cAAc,CAAC;AASrC,MAAM,QAAQ,GAA6C,CAAC,EAC1D,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,gBAAgB,GAAG,IAAI,EACvB,eAAe,GAAG,IAAI,EACtB,aAAa,GAAG,KAAK,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,GAAG,KAAK,EACrB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE/D,uGAAuG;IACvG,MAAM,YAAY,GAAoB;QACpC,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,WAAW,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QAC1D,qBAAqB,EACnB,qBAAqB,IAAI,kBAAkB,CAAC,qBAAqB;QACnE,mBAAmB,EACjB,mBAAmB,IAAI,kBAAkB,CAAC,mBAAmB;KAChE,CAAC;IAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC;QAC3C,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,aAAa;QACb,gBAAgB;QAChB,eAAe;QACf,aAAa;KACd,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY;QAC7C,oBAAC,kBAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;gBACL,eAAe;gBACf,aAAa;oBACX,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;oBACpD,CAAC,CAAC,EAAE;gBACN,KAAK;gBACL,MAAM,CAAC,cAAc;aACtB,IAEA,QAAQ,CACU,CACM,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export { default as Table } from "./Table";
2
- export { default as TableRow } from "./TableRow";
3
- export { default as TableCell } from "./TableCell";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}