@draftbit/core 46.4.4-6da88d.2 → 46.4.4-7001c8.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 (535) hide show
  1. package/lib/commonjs/index.js +13 -219
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/mappings/Touchable.js +1 -1
  4. package/lib/commonjs/mappings/View.js.map +1 -1
  5. package/lib/commonjs/mappings/WebView.js.map +1 -1
  6. package/lib/module/index.js +29 -42
  7. package/lib/module/index.js.map +1 -1
  8. package/lib/module/mappings/Touchable.js +1 -1
  9. package/lib/typescript/src/index.d.ts +13 -40
  10. package/lib/typescript/src/index.d.ts.map +1 -1
  11. package/package.json +4 -6
  12. package/src/index.js +22 -42
  13. package/src/index.tsx +36 -52
  14. package/src/mappings/Touchable.js +1 -1
  15. package/src/mappings/Touchable.ts +1 -1
  16. package/lib/commonjs/components/AnimatedCircularProgress.js +0 -67
  17. package/lib/commonjs/components/AnimatedCircularProgress.js.map +0 -1
  18. package/lib/commonjs/components/AspectRatio.js +0 -51
  19. package/lib/commonjs/components/AspectRatio.js.map +0 -1
  20. package/lib/commonjs/components/AvatarEdit.js +0 -60
  21. package/lib/commonjs/components/AvatarEdit.js.map +0 -1
  22. package/lib/commonjs/components/Banner.js +0 -168
  23. package/lib/commonjs/components/Banner.js.map +0 -1
  24. package/lib/commonjs/components/Card.js +0 -138
  25. package/lib/commonjs/components/Card.js.map +0 -1
  26. package/lib/commonjs/components/CardBlock.js +0 -107
  27. package/lib/commonjs/components/CardBlock.js.map +0 -1
  28. package/lib/commonjs/components/CardContainer.js +0 -130
  29. package/lib/commonjs/components/CardContainer.js.map +0 -1
  30. package/lib/commonjs/components/CardContainerRating.js +0 -134
  31. package/lib/commonjs/components/CardContainerRating.js.map +0 -1
  32. package/lib/commonjs/components/CardContainerShortImage.js +0 -85
  33. package/lib/commonjs/components/CardContainerShortImage.js.map +0 -1
  34. package/lib/commonjs/components/CardInline.js +0 -92
  35. package/lib/commonjs/components/CardInline.js.map +0 -1
  36. package/lib/commonjs/components/Carousel.js +0 -130
  37. package/lib/commonjs/components/Carousel.js.map +0 -1
  38. package/lib/commonjs/components/CircleImage.js +0 -36
  39. package/lib/commonjs/components/CircleImage.js.map +0 -1
  40. package/lib/commonjs/components/CircularProgress.js +0 -113
  41. package/lib/commonjs/components/CircularProgress.js.map +0 -1
  42. package/lib/commonjs/components/Container.js +0 -105
  43. package/lib/commonjs/components/Container.js.map +0 -1
  44. package/lib/commonjs/components/DeprecatedCardWrapper.js +0 -41
  45. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +0 -1
  46. package/lib/commonjs/components/DeprecatedFAB.js +0 -159
  47. package/lib/commonjs/components/DeprecatedFAB.js.map +0 -1
  48. package/lib/commonjs/components/Divider.js +0 -31
  49. package/lib/commonjs/components/Divider.js.map +0 -1
  50. package/lib/commonjs/components/FAB.js +0 -83
  51. package/lib/commonjs/components/FAB.js.map +0 -1
  52. package/lib/commonjs/components/FieldSearchBarFull.js +0 -98
  53. package/lib/commonjs/components/FieldSearchBarFull.js.map +0 -1
  54. package/lib/commonjs/components/Header.js +0 -83
  55. package/lib/commonjs/components/Header.js.map +0 -1
  56. package/lib/commonjs/components/HeaderLarge.js +0 -39
  57. package/lib/commonjs/components/HeaderLarge.js.map +0 -1
  58. package/lib/commonjs/components/HeaderMedium.js +0 -39
  59. package/lib/commonjs/components/HeaderMedium.js.map +0 -1
  60. package/lib/commonjs/components/HeaderOverline.js +0 -40
  61. package/lib/commonjs/components/HeaderOverline.js.map +0 -1
  62. package/lib/commonjs/components/Image.js +0 -82
  63. package/lib/commonjs/components/Image.js.map +0 -1
  64. package/lib/commonjs/components/Justification.js +0 -5
  65. package/lib/commonjs/components/Justification.js.map +0 -1
  66. package/lib/commonjs/components/ProgressBar.js +0 -159
  67. package/lib/commonjs/components/ProgressBar.js.map +0 -1
  68. package/lib/commonjs/components/ProgressCircle.js +0 -49
  69. package/lib/commonjs/components/ProgressCircle.js.map +0 -1
  70. package/lib/commonjs/components/ProgressIndicator.js +0 -56
  71. package/lib/commonjs/components/ProgressIndicator.js.map +0 -1
  72. package/lib/commonjs/components/ResizeMode.js +0 -5
  73. package/lib/commonjs/components/ResizeMode.js.map +0 -1
  74. package/lib/commonjs/components/Row.js +0 -74
  75. package/lib/commonjs/components/Row.js.map +0 -1
  76. package/lib/commonjs/components/RowBodyIcon.js +0 -46
  77. package/lib/commonjs/components/RowBodyIcon.js.map +0 -1
  78. package/lib/commonjs/components/RowHeadlineImageCaption.js +0 -46
  79. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +0 -1
  80. package/lib/commonjs/components/RowHeadlineImageIcon.js +0 -52
  81. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +0 -1
  82. package/lib/commonjs/components/StepIndicator.js +0 -386
  83. package/lib/commonjs/components/StepIndicator.js.map +0 -1
  84. package/lib/commonjs/components/TabView/TabView.js +0 -88
  85. package/lib/commonjs/components/TabView/TabView.js.map +0 -1
  86. package/lib/commonjs/components/TabView/TabViewItem.js +0 -25
  87. package/lib/commonjs/components/TabView/TabViewItem.js.map +0 -1
  88. package/lib/commonjs/components/TabView/index.js +0 -21
  89. package/lib/commonjs/components/TabView/index.js.map +0 -1
  90. package/lib/commonjs/components/ToggleButton.js +0 -72
  91. package/lib/commonjs/components/ToggleButton.js.map +0 -1
  92. package/lib/commonjs/components/Typography.js +0 -59
  93. package/lib/commonjs/components/Typography.js.map +0 -1
  94. package/lib/commonjs/components/useAuthState.js +0 -29
  95. package/lib/commonjs/components/useAuthState.js.map +0 -1
  96. package/lib/commonjs/mappings/AvatarEdit.js +0 -46
  97. package/lib/commonjs/mappings/AvatarEdit.js.map +0 -1
  98. package/lib/commonjs/mappings/Banner.js +0 -40
  99. package/lib/commonjs/mappings/Banner.js.map +0 -1
  100. package/lib/commonjs/mappings/Card.js +0 -61
  101. package/lib/commonjs/mappings/Card.js.map +0 -1
  102. package/lib/commonjs/mappings/CardBlock.js +0 -127
  103. package/lib/commonjs/mappings/CardBlock.js.map +0 -1
  104. package/lib/commonjs/mappings/CardContainer.js +0 -109
  105. package/lib/commonjs/mappings/CardContainer.js.map +0 -1
  106. package/lib/commonjs/mappings/CardContainerRating.js +0 -131
  107. package/lib/commonjs/mappings/CardContainerRating.js.map +0 -1
  108. package/lib/commonjs/mappings/CardContainerShortImage.js +0 -125
  109. package/lib/commonjs/mappings/CardContainerShortImage.js.map +0 -1
  110. package/lib/commonjs/mappings/CardInline.js +0 -60
  111. package/lib/commonjs/mappings/CardInline.js.map +0 -1
  112. package/lib/commonjs/mappings/Carousel.js +0 -25
  113. package/lib/commonjs/mappings/Carousel.js.map +0 -1
  114. package/lib/commonjs/mappings/CircleImage.js +0 -33
  115. package/lib/commonjs/mappings/CircleImage.js.map +0 -1
  116. package/lib/commonjs/mappings/Container.js +0 -38
  117. package/lib/commonjs/mappings/Container.js.map +0 -1
  118. package/lib/commonjs/mappings/Divider.js +0 -33
  119. package/lib/commonjs/mappings/Divider.js.map +0 -1
  120. package/lib/commonjs/mappings/FAB.js +0 -45
  121. package/lib/commonjs/mappings/FAB.js.map +0 -1
  122. package/lib/commonjs/mappings/FieldSearchBarFull.js +0 -57
  123. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +0 -1
  124. package/lib/commonjs/mappings/HeaderLarge.js +0 -35
  125. package/lib/commonjs/mappings/HeaderLarge.js.map +0 -1
  126. package/lib/commonjs/mappings/HeaderMedium.js +0 -61
  127. package/lib/commonjs/mappings/HeaderMedium.js.map +0 -1
  128. package/lib/commonjs/mappings/HeaderOverline.js +0 -61
  129. package/lib/commonjs/mappings/HeaderOverline.js.map +0 -1
  130. package/lib/commonjs/mappings/ProgressBar.js +0 -107
  131. package/lib/commonjs/mappings/ProgressBar.js.map +0 -1
  132. package/lib/commonjs/mappings/ProgressCircle.js +0 -117
  133. package/lib/commonjs/mappings/ProgressCircle.js.map +0 -1
  134. package/lib/commonjs/mappings/ProgressIndicator.js +0 -189
  135. package/lib/commonjs/mappings/ProgressIndicator.js.map +0 -1
  136. package/lib/commonjs/mappings/RowBodyIcon.js +0 -80
  137. package/lib/commonjs/mappings/RowBodyIcon.js.map +0 -1
  138. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +0 -170
  139. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +0 -1
  140. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +0 -100
  141. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +0 -1
  142. package/lib/commonjs/mappings/TabView.js +0 -78
  143. package/lib/commonjs/mappings/TabView.js.map +0 -1
  144. package/lib/commonjs/mappings/ToggleButton.js +0 -54
  145. package/lib/commonjs/mappings/ToggleButton.js.map +0 -1
  146. package/lib/module/components/AnimatedCircularProgress.js +0 -57
  147. package/lib/module/components/AnimatedCircularProgress.js.map +0 -1
  148. package/lib/module/components/AspectRatio.js +0 -43
  149. package/lib/module/components/AspectRatio.js.map +0 -1
  150. package/lib/module/components/AvatarEdit.js +0 -50
  151. package/lib/module/components/AvatarEdit.js.map +0 -1
  152. package/lib/module/components/Banner.js +0 -158
  153. package/lib/module/components/Banner.js.map +0 -1
  154. package/lib/module/components/Card.js +0 -129
  155. package/lib/module/components/Card.js.map +0 -1
  156. package/lib/module/components/CardBlock.js +0 -99
  157. package/lib/module/components/CardBlock.js.map +0 -1
  158. package/lib/module/components/CardContainer.js +0 -122
  159. package/lib/module/components/CardContainer.js.map +0 -1
  160. package/lib/module/components/CardContainerRating.js +0 -126
  161. package/lib/module/components/CardContainerRating.js.map +0 -1
  162. package/lib/module/components/CardContainerShortImage.js +0 -77
  163. package/lib/module/components/CardContainerShortImage.js.map +0 -1
  164. package/lib/module/components/CardInline.js +0 -83
  165. package/lib/module/components/CardInline.js.map +0 -1
  166. package/lib/module/components/Carousel.js +0 -120
  167. package/lib/module/components/Carousel.js.map +0 -1
  168. package/lib/module/components/CircleImage.js +0 -26
  169. package/lib/module/components/CircleImage.js.map +0 -1
  170. package/lib/module/components/CircularProgress.js +0 -105
  171. package/lib/module/components/CircularProgress.js.map +0 -1
  172. package/lib/module/components/Container.js +0 -84
  173. package/lib/module/components/Container.js.map +0 -1
  174. package/lib/module/components/DeprecatedCardWrapper.js +0 -33
  175. package/lib/module/components/DeprecatedCardWrapper.js.map +0 -1
  176. package/lib/module/components/DeprecatedFAB.js +0 -149
  177. package/lib/module/components/DeprecatedFAB.js.map +0 -1
  178. package/lib/module/components/Divider.js +0 -22
  179. package/lib/module/components/Divider.js.map +0 -1
  180. package/lib/module/components/FAB.js +0 -74
  181. package/lib/module/components/FAB.js.map +0 -1
  182. package/lib/module/components/FieldSearchBarFull.js +0 -88
  183. package/lib/module/components/FieldSearchBarFull.js.map +0 -1
  184. package/lib/module/components/Header.js +0 -73
  185. package/lib/module/components/Header.js.map +0 -1
  186. package/lib/module/components/HeaderLarge.js +0 -29
  187. package/lib/module/components/HeaderLarge.js.map +0 -1
  188. package/lib/module/components/HeaderMedium.js +0 -29
  189. package/lib/module/components/HeaderMedium.js.map +0 -1
  190. package/lib/module/components/HeaderOverline.js +0 -30
  191. package/lib/module/components/HeaderOverline.js.map +0 -1
  192. package/lib/module/components/Image.js +0 -75
  193. package/lib/module/components/Image.js.map +0 -1
  194. package/lib/module/components/Justification.js +0 -2
  195. package/lib/module/components/Justification.js.map +0 -1
  196. package/lib/module/components/ProgressBar.js +0 -150
  197. package/lib/module/components/ProgressBar.js.map +0 -1
  198. package/lib/module/components/ProgressCircle.js +0 -39
  199. package/lib/module/components/ProgressCircle.js.map +0 -1
  200. package/lib/module/components/ProgressIndicator.js +0 -46
  201. package/lib/module/components/ProgressIndicator.js.map +0 -1
  202. package/lib/module/components/ResizeMode.js +0 -2
  203. package/lib/module/components/ResizeMode.js.map +0 -1
  204. package/lib/module/components/Row.js +0 -64
  205. package/lib/module/components/Row.js.map +0 -1
  206. package/lib/module/components/RowBodyIcon.js +0 -36
  207. package/lib/module/components/RowBodyIcon.js.map +0 -1
  208. package/lib/module/components/RowHeadlineImageCaption.js +0 -36
  209. package/lib/module/components/RowHeadlineImageCaption.js.map +0 -1
  210. package/lib/module/components/RowHeadlineImageIcon.js +0 -42
  211. package/lib/module/components/RowHeadlineImageIcon.js.map +0 -1
  212. package/lib/module/components/StepIndicator.js +0 -378
  213. package/lib/module/components/StepIndicator.js.map +0 -1
  214. package/lib/module/components/TabView/TabView.js +0 -80
  215. package/lib/module/components/TabView/TabView.js.map +0 -1
  216. package/lib/module/components/TabView/TabViewItem.js +0 -18
  217. package/lib/module/components/TabView/TabViewItem.js.map +0 -1
  218. package/lib/module/components/TabView/index.js +0 -3
  219. package/lib/module/components/TabView/index.js.map +0 -1
  220. package/lib/module/components/ToggleButton.js +0 -62
  221. package/lib/module/components/ToggleButton.js.map +0 -1
  222. package/lib/module/components/Typography.js +0 -49
  223. package/lib/module/components/Typography.js.map +0 -1
  224. package/lib/module/components/useAuthState.js +0 -20
  225. package/lib/module/components/useAuthState.js.map +0 -1
  226. package/lib/module/mappings/AvatarEdit.js +0 -39
  227. package/lib/module/mappings/AvatarEdit.js.map +0 -1
  228. package/lib/module/mappings/Banner.js +0 -33
  229. package/lib/module/mappings/Banner.js.map +0 -1
  230. package/lib/module/mappings/Card.js +0 -54
  231. package/lib/module/mappings/Card.js.map +0 -1
  232. package/lib/module/mappings/CardBlock.js +0 -120
  233. package/lib/module/mappings/CardBlock.js.map +0 -1
  234. package/lib/module/mappings/CardContainer.js +0 -102
  235. package/lib/module/mappings/CardContainer.js.map +0 -1
  236. package/lib/module/mappings/CardContainerRating.js +0 -124
  237. package/lib/module/mappings/CardContainerRating.js.map +0 -1
  238. package/lib/module/mappings/CardContainerShortImage.js +0 -118
  239. package/lib/module/mappings/CardContainerShortImage.js.map +0 -1
  240. package/lib/module/mappings/CardInline.js +0 -53
  241. package/lib/module/mappings/CardInline.js.map +0 -1
  242. package/lib/module/mappings/Carousel.js +0 -18
  243. package/lib/module/mappings/Carousel.js.map +0 -1
  244. package/lib/module/mappings/CircleImage.js +0 -26
  245. package/lib/module/mappings/CircleImage.js.map +0 -1
  246. package/lib/module/mappings/Container.js +0 -31
  247. package/lib/module/mappings/Container.js.map +0 -1
  248. package/lib/module/mappings/Divider.js +0 -26
  249. package/lib/module/mappings/Divider.js.map +0 -1
  250. package/lib/module/mappings/FAB.js +0 -38
  251. package/lib/module/mappings/FAB.js.map +0 -1
  252. package/lib/module/mappings/FieldSearchBarFull.js +0 -50
  253. package/lib/module/mappings/FieldSearchBarFull.js.map +0 -1
  254. package/lib/module/mappings/HeaderLarge.js +0 -28
  255. package/lib/module/mappings/HeaderLarge.js.map +0 -1
  256. package/lib/module/mappings/HeaderMedium.js +0 -54
  257. package/lib/module/mappings/HeaderMedium.js.map +0 -1
  258. package/lib/module/mappings/HeaderOverline.js +0 -54
  259. package/lib/module/mappings/HeaderOverline.js.map +0 -1
  260. package/lib/module/mappings/ProgressBar.js +0 -100
  261. package/lib/module/mappings/ProgressBar.js.map +0 -1
  262. package/lib/module/mappings/ProgressCircle.js +0 -110
  263. package/lib/module/mappings/ProgressCircle.js.map +0 -1
  264. package/lib/module/mappings/ProgressIndicator.js +0 -182
  265. package/lib/module/mappings/ProgressIndicator.js.map +0 -1
  266. package/lib/module/mappings/RowBodyIcon.js +0 -73
  267. package/lib/module/mappings/RowBodyIcon.js.map +0 -1
  268. package/lib/module/mappings/RowHeadlineImageCaption.js +0 -163
  269. package/lib/module/mappings/RowHeadlineImageCaption.js.map +0 -1
  270. package/lib/module/mappings/RowHeadlineImageIcon.js +0 -93
  271. package/lib/module/mappings/RowHeadlineImageIcon.js.map +0 -1
  272. package/lib/module/mappings/TabView.js +0 -71
  273. package/lib/module/mappings/TabView.js.map +0 -1
  274. package/lib/module/mappings/ToggleButton.js +0 -47
  275. package/lib/module/mappings/ToggleButton.js.map +0 -1
  276. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +0 -14
  277. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +0 -1
  278. package/lib/typescript/src/components/AspectRatio.d.ts +0 -9
  279. package/lib/typescript/src/components/AspectRatio.d.ts.map +0 -1
  280. package/lib/typescript/src/components/AvatarEdit.d.ts +0 -16
  281. package/lib/typescript/src/components/AvatarEdit.d.ts.map +0 -1
  282. package/lib/typescript/src/components/Banner.d.ts +0 -23
  283. package/lib/typescript/src/components/Banner.d.ts.map +0 -1
  284. package/lib/typescript/src/components/Card.d.ts +0 -43
  285. package/lib/typescript/src/components/Card.d.ts.map +0 -1
  286. package/lib/typescript/src/components/CardBlock.d.ts +0 -21
  287. package/lib/typescript/src/components/CardBlock.d.ts.map +0 -1
  288. package/lib/typescript/src/components/CardContainer.d.ts +0 -23
  289. package/lib/typescript/src/components/CardContainer.d.ts.map +0 -1
  290. package/lib/typescript/src/components/CardContainerRating.d.ts +0 -24
  291. package/lib/typescript/src/components/CardContainerRating.d.ts.map +0 -1
  292. package/lib/typescript/src/components/CardContainerShortImage.d.ts +0 -19
  293. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +0 -1
  294. package/lib/typescript/src/components/CardInline.d.ts +0 -20
  295. package/lib/typescript/src/components/CardInline.d.ts.map +0 -1
  296. package/lib/typescript/src/components/Carousel.d.ts +0 -15
  297. package/lib/typescript/src/components/Carousel.d.ts.map +0 -1
  298. package/lib/typescript/src/components/CircleImage.d.ts +0 -10
  299. package/lib/typescript/src/components/CircleImage.d.ts.map +0 -1
  300. package/lib/typescript/src/components/CircularProgress.d.ts +0 -43
  301. package/lib/typescript/src/components/CircularProgress.d.ts.map +0 -1
  302. package/lib/typescript/src/components/Container.d.ts +0 -21
  303. package/lib/typescript/src/components/Container.d.ts.map +0 -1
  304. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +0 -15
  305. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +0 -1
  306. package/lib/typescript/src/components/DeprecatedFAB.d.ts +0 -56
  307. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +0 -1
  308. package/lib/typescript/src/components/Divider.d.ts +0 -13
  309. package/lib/typescript/src/components/Divider.d.ts.map +0 -1
  310. package/lib/typescript/src/components/FAB.d.ts +0 -20
  311. package/lib/typescript/src/components/FAB.d.ts.map +0 -1
  312. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +0 -20
  313. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +0 -1
  314. package/lib/typescript/src/components/Header.d.ts +0 -20
  315. package/lib/typescript/src/components/Header.d.ts.map +0 -1
  316. package/lib/typescript/src/components/HeaderLarge.d.ts +0 -17
  317. package/lib/typescript/src/components/HeaderLarge.d.ts.map +0 -1
  318. package/lib/typescript/src/components/HeaderMedium.d.ts +0 -17
  319. package/lib/typescript/src/components/HeaderMedium.d.ts.map +0 -1
  320. package/lib/typescript/src/components/HeaderOverline.d.ts +0 -17
  321. package/lib/typescript/src/components/HeaderOverline.d.ts.map +0 -1
  322. package/lib/typescript/src/components/Image.d.ts +0 -5
  323. package/lib/typescript/src/components/Image.d.ts.map +0 -1
  324. package/lib/typescript/src/components/Justification.d.ts +0 -2
  325. package/lib/typescript/src/components/Justification.d.ts.map +0 -1
  326. package/lib/typescript/src/components/ProgressBar.d.ts +0 -35
  327. package/lib/typescript/src/components/ProgressBar.d.ts.map +0 -1
  328. package/lib/typescript/src/components/ProgressCircle.d.ts +0 -21
  329. package/lib/typescript/src/components/ProgressCircle.d.ts.map +0 -1
  330. package/lib/typescript/src/components/ProgressIndicator.d.ts +0 -24
  331. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +0 -1
  332. package/lib/typescript/src/components/ResizeMode.d.ts +0 -2
  333. package/lib/typescript/src/components/ResizeMode.d.ts.map +0 -1
  334. package/lib/typescript/src/components/Row.d.ts +0 -21
  335. package/lib/typescript/src/components/Row.d.ts.map +0 -1
  336. package/lib/typescript/src/components/RowBodyIcon.d.ts +0 -16
  337. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +0 -1
  338. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +0 -16
  339. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +0 -1
  340. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +0 -18
  341. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +0 -1
  342. package/lib/typescript/src/components/StepIndicator.d.ts +0 -54
  343. package/lib/typescript/src/components/StepIndicator.d.ts.map +0 -1
  344. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -20
  345. package/lib/typescript/src/components/TabView/TabView.d.ts.map +0 -1
  346. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -11
  347. package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +0 -1
  348. package/lib/typescript/src/components/TabView/index.d.ts +0 -3
  349. package/lib/typescript/src/components/TabView/index.d.ts.map +0 -1
  350. package/lib/typescript/src/components/ToggleButton.d.ts +0 -25
  351. package/lib/typescript/src/components/ToggleButton.d.ts.map +0 -1
  352. package/lib/typescript/src/components/Typography.d.ts +0 -22
  353. package/lib/typescript/src/components/Typography.d.ts.map +0 -1
  354. package/lib/typescript/src/components/useAuthState.d.ts +0 -2
  355. package/lib/typescript/src/components/useAuthState.d.ts.map +0 -1
  356. package/lib/typescript/src/mappings/AvatarEdit.d.ts +0 -38
  357. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +0 -1
  358. package/lib/typescript/src/mappings/Banner.d.ts +0 -49
  359. package/lib/typescript/src/mappings/Banner.d.ts.map +0 -1
  360. package/lib/typescript/src/mappings/Card.d.ts +0 -114
  361. package/lib/typescript/src/mappings/Card.d.ts.map +0 -1
  362. package/lib/typescript/src/mappings/CardBlock.d.ts +0 -289
  363. package/lib/typescript/src/mappings/CardBlock.d.ts.map +0 -1
  364. package/lib/typescript/src/mappings/CardContainer.d.ts +0 -102
  365. package/lib/typescript/src/mappings/CardContainer.d.ts.map +0 -1
  366. package/lib/typescript/src/mappings/CardContainerRating.d.ts +0 -108
  367. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +0 -1
  368. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +0 -139
  369. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +0 -1
  370. package/lib/typescript/src/mappings/CardInline.d.ts +0 -62
  371. package/lib/typescript/src/mappings/CardInline.d.ts.map +0 -1
  372. package/lib/typescript/src/mappings/Carousel.d.ts +0 -34
  373. package/lib/typescript/src/mappings/Carousel.d.ts.map +0 -1
  374. package/lib/typescript/src/mappings/CircleImage.d.ts +0 -34
  375. package/lib/typescript/src/mappings/CircleImage.d.ts.map +0 -1
  376. package/lib/typescript/src/mappings/Container.d.ts +0 -55
  377. package/lib/typescript/src/mappings/Container.d.ts.map +0 -1
  378. package/lib/typescript/src/mappings/Divider.d.ts +0 -25
  379. package/lib/typescript/src/mappings/Divider.d.ts.map +0 -1
  380. package/lib/typescript/src/mappings/FAB.d.ts +0 -83
  381. package/lib/typescript/src/mappings/FAB.d.ts.map +0 -1
  382. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +0 -56
  383. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +0 -1
  384. package/lib/typescript/src/mappings/HeaderLarge.d.ts +0 -34
  385. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +0 -1
  386. package/lib/typescript/src/mappings/HeaderMedium.d.ts +0 -53
  387. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +0 -1
  388. package/lib/typescript/src/mappings/HeaderOverline.d.ts +0 -53
  389. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +0 -1
  390. package/lib/typescript/src/mappings/ProgressBar.d.ts +0 -99
  391. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +0 -1
  392. package/lib/typescript/src/mappings/ProgressCircle.d.ts +0 -109
  393. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +0 -1
  394. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +0 -181
  395. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +0 -1
  396. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +0 -73
  397. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +0 -1
  398. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +0 -166
  399. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +0 -1
  400. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +0 -170
  401. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +0 -1
  402. package/lib/typescript/src/mappings/TabView.d.ts +0 -112
  403. package/lib/typescript/src/mappings/TabView.d.ts.map +0 -1
  404. package/lib/typescript/src/mappings/ToggleButton.d.ts +0 -116
  405. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +0 -1
  406. package/src/components/AnimatedCircularProgress.js +0 -43
  407. package/src/components/AnimatedCircularProgress.tsx +0 -101
  408. package/src/components/AspectRatio.js +0 -18
  409. package/src/components/AspectRatio.tsx +0 -40
  410. package/src/components/AvatarEdit.js +0 -30
  411. package/src/components/AvatarEdit.tsx +0 -64
  412. package/src/components/Banner.js +0 -109
  413. package/src/components/Banner.tsx +0 -204
  414. package/src/components/Card.js +0 -57
  415. package/src/components/Card.tsx +0 -161
  416. package/src/components/CardBlock.js +0 -54
  417. package/src/components/CardBlock.tsx +0 -127
  418. package/src/components/CardContainer.js +0 -69
  419. package/src/components/CardContainer.tsx +0 -165
  420. package/src/components/CardContainerRating.js +0 -79
  421. package/src/components/CardContainerRating.tsx +0 -175
  422. package/src/components/CardContainerShortImage.js +0 -33
  423. package/src/components/CardContainerShortImage.tsx +0 -101
  424. package/src/components/CardInline.js +0 -36
  425. package/src/components/CardInline.tsx +0 -93
  426. package/src/components/Carousel.js +0 -68
  427. package/src/components/Carousel.tsx +0 -134
  428. package/src/components/CircleImage.js +0 -8
  429. package/src/components/CircleImage.tsx +0 -33
  430. package/src/components/CircularProgress.js +0 -81
  431. package/src/components/CircularProgress.tsx +0 -188
  432. package/src/components/Container.js +0 -43
  433. package/src/components/Container.tsx +0 -116
  434. package/src/components/DeprecatedCardWrapper.js +0 -18
  435. package/src/components/DeprecatedCardWrapper.tsx +0 -46
  436. package/src/components/DeprecatedFAB.js +0 -115
  437. package/src/components/DeprecatedFAB.tsx +0 -231
  438. package/src/components/Divider.js +0 -13
  439. package/src/components/Divider.tsx +0 -32
  440. package/src/components/FAB.js +0 -46
  441. package/src/components/FAB.tsx +0 -108
  442. package/src/components/FieldSearchBarFull.js +0 -53
  443. package/src/components/FieldSearchBarFull.tsx +0 -126
  444. package/src/components/Header.js +0 -44
  445. package/src/components/Header.tsx +0 -105
  446. package/src/components/HeaderLarge.js +0 -7
  447. package/src/components/HeaderLarge.tsx +0 -40
  448. package/src/components/HeaderMedium.js +0 -7
  449. package/src/components/HeaderMedium.tsx +0 -41
  450. package/src/components/HeaderOverline.js +0 -7
  451. package/src/components/HeaderOverline.tsx +0 -42
  452. package/src/components/Image.js +0 -47
  453. package/src/components/Image.tsx +0 -91
  454. package/src/components/Justification.js +0 -1
  455. package/src/components/Justification.ts +0 -8
  456. package/src/components/ProgressBar.js +0 -118
  457. package/src/components/ProgressBar.tsx +0 -191
  458. package/src/components/ProgressCircle.js +0 -13
  459. package/src/components/ProgressCircle.tsx +0 -64
  460. package/src/components/ProgressIndicator.js +0 -27
  461. package/src/components/ProgressIndicator.tsx +0 -71
  462. package/src/components/ResizeMode.js +0 -1
  463. package/src/components/ResizeMode.ts +0 -7
  464. package/src/components/Row.js +0 -48
  465. package/src/components/Row.tsx +0 -108
  466. package/src/components/RowBodyIcon.js +0 -8
  467. package/src/components/RowBodyIcon.tsx +0 -47
  468. package/src/components/RowHeadlineImageCaption.js +0 -12
  469. package/src/components/RowHeadlineImageCaption.tsx +0 -49
  470. package/src/components/RowHeadlineImageIcon.js +0 -14
  471. package/src/components/RowHeadlineImageIcon.tsx +0 -61
  472. package/src/components/StepIndicator.js +0 -346
  473. package/src/components/StepIndicator.tsx +0 -494
  474. package/src/components/TabView/TabView.js +0 -34
  475. package/src/components/TabView/TabView.tsx +0 -97
  476. package/src/components/TabView/TabViewItem.js +0 -5
  477. package/src/components/TabView/TabViewItem.tsx +0 -21
  478. package/src/components/TabView/index.js +0 -2
  479. package/src/components/TabView/index.tsx +0 -2
  480. package/src/components/ToggleButton.js +0 -39
  481. package/src/components/ToggleButton.tsx +0 -94
  482. package/src/components/Typography.js +0 -36
  483. package/src/components/Typography.tsx +0 -67
  484. package/src/components/useAuthState.js +0 -31
  485. package/src/components/useAuthState.tsx +0 -38
  486. package/src/mappings/AvatarEdit.js +0 -38
  487. package/src/mappings/AvatarEdit.ts +0 -45
  488. package/src/mappings/Banner.js +0 -32
  489. package/src/mappings/Banner.ts +0 -40
  490. package/src/mappings/Card.js +0 -52
  491. package/src/mappings/Card.ts +0 -64
  492. package/src/mappings/CardBlock.js +0 -123
  493. package/src/mappings/CardBlock.ts +0 -136
  494. package/src/mappings/CardContainer.js +0 -104
  495. package/src/mappings/CardContainer.ts +0 -116
  496. package/src/mappings/CardContainerRating.js +0 -126
  497. package/src/mappings/CardContainerRating.ts +0 -137
  498. package/src/mappings/CardContainerShortImage.js +0 -120
  499. package/src/mappings/CardContainerShortImage.ts +0 -130
  500. package/src/mappings/CardInline.js +0 -52
  501. package/src/mappings/CardInline.ts +0 -61
  502. package/src/mappings/Carousel.js +0 -19
  503. package/src/mappings/Carousel.ts +0 -25
  504. package/src/mappings/CircleImage.js +0 -25
  505. package/src/mappings/CircleImage.ts +0 -33
  506. package/src/mappings/Container.js +0 -30
  507. package/src/mappings/Container.ts +0 -41
  508. package/src/mappings/Divider.js +0 -27
  509. package/src/mappings/Divider.ts +0 -34
  510. package/src/mappings/FAB.js +0 -37
  511. package/src/mappings/FAB.ts +0 -48
  512. package/src/mappings/FieldSearchBarFull.js +0 -50
  513. package/src/mappings/FieldSearchBarFull.ts +0 -59
  514. package/src/mappings/HeaderLarge.js +0 -29
  515. package/src/mappings/HeaderLarge.ts +0 -38
  516. package/src/mappings/HeaderMedium.js +0 -55
  517. package/src/mappings/HeaderMedium.ts +0 -63
  518. package/src/mappings/HeaderOverline.js +0 -55
  519. package/src/mappings/HeaderOverline.ts +0 -63
  520. package/src/mappings/ProgressBar.js +0 -101
  521. package/src/mappings/ProgressBar.ts +0 -110
  522. package/src/mappings/ProgressCircle.js +0 -109
  523. package/src/mappings/ProgressCircle.ts +0 -117
  524. package/src/mappings/ProgressIndicator.js +0 -181
  525. package/src/mappings/ProgressIndicator.ts +0 -190
  526. package/src/mappings/RowBodyIcon.js +0 -75
  527. package/src/mappings/RowBodyIcon.ts +0 -82
  528. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  529. package/src/mappings/RowHeadlineImageCaption.ts +0 -178
  530. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  531. package/src/mappings/RowHeadlineImageIcon.ts +0 -116
  532. package/src/mappings/TabView.js +0 -73
  533. package/src/mappings/TabView.ts +0 -80
  534. package/src/mappings/ToggleButton.js +0 -50
  535. package/src/mappings/ToggleButton.ts +0 -63
package/src/index.js CHANGED
@@ -2,52 +2,32 @@ export { injectIcon } from "./interfaces/Icon";
2
2
  export { withTheme, ThemeProvider } from "./theming";
3
3
  export { default as Provider } from "./Provider";
4
4
  export { default as DefaultTheme } from "./styles/DefaultTheme";
5
+ // BASIC
6
+ export { default as ScreenContainer } from "./components/ScreenContainer";
7
+ // BUTTONS
8
+ export { Button } from "./components/Button";
5
9
  export { Link } from "./components/Text";
6
- export { default as Banner } from "./components/Banner";
7
- export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
8
- export { default as Avatar } from "./components/CircleImage";
9
- export { default as AvatarEdit } from "./components/AvatarEdit";
10
- export { default as Card } from "./components/Card";
11
- export { default as Carousel } from "./components/Carousel";
12
- export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
13
- export { default as CircleImage } from "./components/CircleImage";
14
- export { default as Container } from "./components/Container";
15
- export { default as Divider } from "./components/Divider";
16
- export { default as FAB } from "./components/FAB";
17
- export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
18
10
  export { default as IconButton } from "./components/IconButton";
19
- export { default as Image } from "./components/Image";
20
- export { default as SVG } from "./components/SVG";
21
- export { default as NumberInput } from "./components/NumberInput";
22
- export { default as ScreenContainer } from "./components/ScreenContainer";
23
- export { default as StarRating } from "./components/StarRating";
24
- export { default as Surface } from "./components/Surface";
25
- export { default as Switch, SwitchRow } from "./components/Switch";
26
- export { default as TextField } from "./components/TextField";
27
- export { default as ToggleButton } from "./components/ToggleButton";
28
11
  export { default as Touchable } from "./components/Touchable";
29
- export { AccordionGroup, AccordionItem } from "./components/Accordion";
30
- export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
31
- export { Swiper, SwiperItem } from "./components/Swiper";
32
- export { TabView, TabViewItem } from "./components/TabView";
33
- export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
34
- export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
35
- /* Deprecated: Fix or Delete! */
36
- export { default as CardBlock } from "./components/CardBlock";
37
- export { default as CardContainer } from "./components/CardContainer";
38
- export { default as CardContainerRating } from "./components/CardContainerRating";
39
- export { default as CardInline } from "./components/CardInline";
12
+ // INPUTS
40
13
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
41
- export { default as HeaderLarge } from "./components/HeaderLarge";
42
- export { default as HeaderMedium } from "./components/HeaderMedium";
43
- export { default as HeaderOverline } from "./components/HeaderOverline";
14
+ export { default as NumberInput } from "./components/NumberInput";
15
+ export { default as TextField } from "./components/TextField";
44
16
  export { default as Picker } from "./components/Picker/Picker";
45
- export { default as ProgressBar } from "./components/ProgressBar";
46
- export { default as ProgressCircle } from "./components/ProgressCircle";
47
- export { default as RowBodyIcon } from "./components/RowBodyIcon";
48
- export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
49
- export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
17
+ // CONTROLS
18
+ export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
19
+ export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
50
20
  export { default as Slider } from "./components/Slider";
51
21
  export { default as Stepper } from "./components/Stepper";
52
- export { useAuthState } from "./components/useAuthState";
53
- // a comment to fix sourcemap comment issue
22
+ export { default as StarRating } from "./components/StarRating";
23
+ export { default as Switch, SwitchRow } from "./components/Switch";
24
+ // MEDIA
25
+ export { default as SVG } from "./components/SVG";
26
+ // FLEX LAYOUT
27
+ export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
28
+ // SWIPER
29
+ export { Swiper, SwiperItem } from "./components/Swiper";
30
+ // CONTAINERS
31
+ export { AccordionGroup, AccordionItem } from "./components/Accordion";
32
+ // ACTIONSHEET
33
+ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
package/src/index.tsx CHANGED
@@ -3,39 +3,38 @@ export { withTheme, ThemeProvider } from "./theming";
3
3
  export { default as Provider } from "./Provider";
4
4
  export { default as DefaultTheme } from "./styles/DefaultTheme";
5
5
 
6
+ // BASIC
7
+ export { default as ScreenContainer } from "./components/ScreenContainer";
8
+
9
+ // BUTTONS
10
+ export { Button } from "./components/Button";
6
11
  export { Link } from "./components/Text";
7
- export { default as Banner } from "./components/Banner";
8
- export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
9
- export { default as Avatar } from "./components/CircleImage";
10
- export { default as AvatarEdit } from "./components/AvatarEdit";
11
- export { default as Card } from "./components/Card";
12
- export { default as Carousel } from "./components/Carousel";
13
- export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
14
- export { default as CircleImage } from "./components/CircleImage";
15
- export { default as Container } from "./components/Container";
16
- export { default as Divider } from "./components/Divider";
17
- export { default as FAB } from "./components/FAB";
18
- export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
19
12
  export { default as IconButton } from "./components/IconButton";
20
- export { default as Image } from "./components/Image";
21
- export { default as SVG } from "./components/SVG";
13
+ export { default as Touchable } from "./components/Touchable";
14
+
15
+ // INPUTS
16
+ export { default as DatePicker } from "./components/DatePicker/DatePicker";
22
17
  export { default as NumberInput } from "./components/NumberInput";
23
- export { default as ScreenContainer } from "./components/ScreenContainer";
24
- export { default as StarRating } from "./components/StarRating";
25
- export { default as Surface } from "./components/Surface";
26
- export { default as Switch, SwitchRow } from "./components/Switch";
27
18
  export { default as TextField } from "./components/TextField";
28
- export { default as ToggleButton } from "./components/ToggleButton";
29
- export { default as Touchable } from "./components/Touchable";
30
- export { AccordionGroup, AccordionItem } from "./components/Accordion";
19
+ export { default as Picker } from "./components/Picker/Picker";
20
+
21
+ // CONTROLS
22
+ export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
31
23
  export {
32
- ActionSheet,
33
- ActionSheetItem,
34
- ActionSheetCancel,
35
- } from "./components/ActionSheet";
36
- export { Swiper, SwiperItem } from "./components/Swiper";
37
- export { TabView, TabViewItem } from "./components/TabView";
24
+ RadioButton,
25
+ RadioButtonGroup,
26
+ RadioButtonRow,
27
+ RadioButtonFieldGroup,
28
+ } from "./components/RadioButton/index";
29
+ export { default as Slider } from "./components/Slider";
30
+ export { default as Stepper } from "./components/Stepper";
31
+ export { default as StarRating } from "./components/StarRating";
32
+ export { default as Switch, SwitchRow } from "./components/Switch";
33
+
34
+ // MEDIA
35
+ export { default as SVG } from "./components/SVG";
38
36
 
37
+ // FLEX LAYOUT
39
38
  export {
40
39
  Center,
41
40
  Circle,
@@ -45,30 +44,15 @@ export {
45
44
  Spacer,
46
45
  } from "./components/Layout";
47
46
 
48
- export {
49
- RadioButton,
50
- RadioButtonGroup,
51
- RadioButtonRow,
52
- RadioButtonFieldGroup,
53
- } from "./components/RadioButton/index";
47
+ // SWIPER
48
+ export { Swiper, SwiperItem } from "./components/Swiper";
54
49
 
55
- /* Deprecated: Fix or Delete! */
56
- export { default as CardBlock } from "./components/CardBlock";
57
- export { default as CardContainer } from "./components/CardContainer";
58
- export { default as CardContainerRating } from "./components/CardContainerRating";
59
- export { default as CardInline } from "./components/CardInline";
60
- export { default as DatePicker } from "./components/DatePicker/DatePicker";
61
- export { default as HeaderLarge } from "./components/HeaderLarge";
62
- export { default as HeaderMedium } from "./components/HeaderMedium";
63
- export { default as HeaderOverline } from "./components/HeaderOverline";
64
- export { default as Picker } from "./components/Picker/Picker";
65
- export { default as ProgressBar } from "./components/ProgressBar";
66
- export { default as ProgressCircle } from "./components/ProgressCircle";
67
- export { default as RowBodyIcon } from "./components/RowBodyIcon";
68
- export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
69
- export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
70
- export { default as Slider } from "./components/Slider";
71
- export { default as Stepper } from "./components/Stepper";
72
- export { useAuthState } from "./components/useAuthState";
50
+ // CONTAINERS
51
+ export { AccordionGroup, AccordionItem } from "./components/Accordion";
73
52
 
74
- // a comment to fix sourcemap comment issue
53
+ // ACTIONSHEET
54
+ export {
55
+ ActionSheet,
56
+ ActionSheetItem,
57
+ ActionSheetCancel,
58
+ } from "./components/ActionSheet";
@@ -1,6 +1,6 @@
1
1
  import { COMPONENT_TYPES, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
- name: "Touchable",
3
+ name: "Pressable",
4
4
  tag: "Touchable",
5
5
  description: "Simple button with no styles",
6
6
  category: COMPONENT_TYPES.button,
@@ -6,7 +6,7 @@ import {
6
6
  } from "@draftbit/types";
7
7
 
8
8
  export const SEED_DATA = {
9
- name: "Touchable",
9
+ name: "Pressable",
10
10
  tag: "Touchable",
11
11
  description: "Simple button with no styles",
12
12
  category: COMPONENT_TYPES.button,
@@ -1,67 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _CircularProgress = _interopRequireDefault(require("./CircularProgress"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
- const AnimatedProgress = _reactNative.Animated.createAnimatedComponent(_CircularProgress.default);
15
- const AnimatedCircularProgress = _ref => {
16
- let {
17
- duration = 500,
18
- easing = _reactNative.Easing.out(_reactNative.Easing.ease),
19
- fill,
20
- prefill = 0,
21
- useNativeDriver = false,
22
- tintColorSecondary,
23
- onAnimationComplete,
24
- tintColor = "black",
25
- ...other
26
- } = _ref;
27
- const [fillAnimation] = React.useState(new _reactNative.Animated.Value(prefill));
28
- const animate = React.useCallback(function () {
29
- let toVal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
30
- let dur = arguments.length > 1 ? arguments[1] : undefined;
31
- let ease = arguments.length > 2 ? arguments[2] : undefined;
32
- const toValue = toVal >= 0 ? toVal : fill;
33
- const dura = dur || duration;
34
- const eas = ease || easing;
35
- const useNative = useNativeDriver;
36
- const anim = _reactNative.Animated.timing(fillAnimation, {
37
- useNativeDriver: useNative,
38
- toValue,
39
- easing: eas,
40
- duration: dura
41
- });
42
- anim.start(onAnimationComplete);
43
- return anim;
44
- }, [duration, easing, fill, useNativeDriver, fillAnimation, onAnimationComplete]);
45
- const animateColor = () => {
46
- if (!tintColorSecondary) {
47
- return tintColor;
48
- }
49
- const tintAnimation = fillAnimation.interpolate({
50
- inputRange: [0, 100],
51
- outputRange: [tintColor, tintColorSecondary]
52
- });
53
- return tintAnimation;
54
- };
55
- React.useEffect(() => {
56
- animate();
57
- }, [fill, animate]);
58
- return /*#__PURE__*/React.createElement(AnimatedProgress, _extends({}, other, {
59
- style: other.style,
60
- childrenContainerStyle: other.childrenContainerStyle,
61
- fill: fillAnimation,
62
- tintColor: animateColor()
63
- }));
64
- };
65
- var _default = AnimatedCircularProgress;
66
- exports.default = _default;
67
- //# sourceMappingURL=AnimatedCircularProgress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AnimatedProgress","Animated","createAnimatedComponent","CircularProgress","AnimatedCircularProgress","duration","easing","Easing","out","ease","fill","prefill","useNativeDriver","tintColorSecondary","onAnimationComplete","tintColor","other","fillAnimation","React","useState","Value","animate","useCallback","toVal","dur","toValue","dura","eas","useNative","anim","timing","start","animateColor","tintAnimation","interpolate","inputRange","outputRange","useEffect","style","childrenContainerStyle"],"sourceRoot":"../../src","sources":["AnimatedCircularProgress.tsx"],"mappings":";;;;;;AAAA;AACA;AAOA;AAE4B;AAAA;AAAA;AAAA;AAC5B,MAAMA,gBAAgB,GAAGC,qBAAQ,CAACC,uBAAuB,CAACC,yBAAgB,CAAC;AAW3E,MAAMC,wBAAkE,GAAG,QAUrE;EAAA,IAVsE;IAC1EC,QAAQ,GAAG,GAAG;IACdC,MAAM,GAAGC,mBAAM,CAACC,GAAG,CAACD,mBAAM,C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AEF,OAAOoB,aAAa;EACtB,CAAC;EAEDf,KAAK,CAACmB,SAAS,CAAC,MAAM;IACpBhB,OAAO,EAAE;EACX,CAAC,EAAE,CAACX,IAAI,EAAEW,OAAO,CAAC,CAAC;EAEnB,oBACE,oBAAC,gBAAgB,eACXL,KAAK;IACT,KAAK,EAAEA,KAAK,CAACsB,KAA0D;IACvE,sBAAsB,EACpBtB,KAAK,CAACuB,sBAGP;IACD,IAAI,EAAEtB,aAAc;IACpB,SAAS,EAAEe,YAAY;EAAG,GAC1B;AAEN,CAAC;AAAC,eAEa5B,wBAAwB;AAAA"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
- const AspectRatio = props => {
12
- const [layout, setLayout] = _react.default.useState(null);
13
- const {
14
- aspectRatio = 1,
15
- ...inputStyle
16
- } = _reactNative.StyleSheet.flatten(props.style) || {};
17
- const style = [inputStyle, {
18
- aspectRatio
19
- }];
20
- if (layout) {
21
- const {
22
- width = 0,
23
- height = 0
24
- } = layout;
25
- if (width === 0) {
26
- style.push({
27
- width: height * (1 / aspectRatio),
28
- height
29
- });
30
- } else {
31
- style.push({
32
- width,
33
- height: width * (1 / aspectRatio)
34
- });
35
- }
36
- }
37
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
38
- style: style,
39
- onLayout: _ref => {
40
- let {
41
- nativeEvent: {
42
- layout: l
43
- }
44
- } = _ref;
45
- return setLayout(l);
46
- }
47
- }), props.children);
48
- };
49
- var _default = AspectRatio;
50
- exports.default = _default;
51
- //# sourceMappingURL=AspectRatio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AspectRatio","props","layout","setLayout","React","useState","aspectRatio","inputStyle","StyleSheet","flatten","style","width","height","push","nativeEvent","l","children"],"sourceRoot":"../../src","sources":["AspectRatio.tsx"],"mappings":";;;;;;AAAA;AACA;AAMsB;AAAA;AAOtB,MAAMA,WAAqD,GAAIC,KAAK,IAAK;EACvE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAyB,IAAI,CAAC;EACxE,MAAM;IAAEC,WAAW,GAAG,CAAC;IAAE,GAAGC;EAAW,CAAC,GACtCC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAACS,KAAK,CAAC,IAAI,CAAC,CAAC;EACvC,MAAMA,KAAK,GAAG,CAACH,UAAU,EAAE;IAAED;EAAY,CAAC,CAAC;EAE3C,IAAIJ,MAAM,EAAE;IACV,MAAM;MAAES,KAAK,GAAG,CAAC;MAAEC,MAAM,GAAG;IAAE,CAAC,GAAGV,MAAM;IACxC,IAAIS,KAAK,KAAK,CAAC,EAAE;MACfD,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK,EAAEC,MAAM,IAAI,CAAC,GAAGN,WAAW,CAAC;QAAEM;MAAO,CAAC,CAAC;IAC3D,CAAC,MAAM;MACLF,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK;QAAEC,MAAM,EAAED,KAAK,IAAI,CAAC,GAAGL,WAAW;MAAE,CAAC,CAAC;IAC1D;EACF;EACA,oBACE,6BAAC,iBAAI,eACCL,KAAK;IACT,KAAK,EAAES,KAAM;IACb,QAAQ,EAAE;MAAA,IAAC;QAAEI,WAAW,EAAE;UAAEZ,MAAM,EAAEa;QAAE;MAAE,CAAC;MAAA,OAAKZ,SAAS,CAACY,CAAC,CAAC;IAAA;EAAC,IAE1Dd,KAAK,CAACe,QAAQ,CACV;AAEX,CAAC;AAAC,eAEahB,WAAW;AAAA"}
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _Touchable = _interopRequireDefault(require("./Touchable"));
10
- var _CircleImage = _interopRequireDefault(require("./CircleImage"));
11
- var _theming = require("../theming");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
- const AvatarEdit = _ref => {
17
- let {
18
- Icon,
19
- image,
20
- size = 80,
21
- onPress = () => {},
22
- style,
23
- theme,
24
- ...rest
25
- } = _ref;
26
- const colorStyles = {
27
- editBackgroundColor: theme.colors.primary,
28
- editIconColor: theme.colors.surface,
29
- editBorderColor: theme.colors.surface
30
- };
31
- const dimensions = {
32
- width: size,
33
- height: size
34
- };
35
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
36
- style: [style, dimensions]
37
- }, rest), /*#__PURE__*/React.createElement(_Touchable.default, {
38
- onPress: onPress
39
- }, /*#__PURE__*/React.createElement(_CircleImage.default, {
40
- source: image,
41
- size: size
42
- }), /*#__PURE__*/React.createElement(_reactNative.View, {
43
- style: {
44
- position: "absolute",
45
- top: -3,
46
- right: -3,
47
- borderColor: colorStyles.editBorderColor,
48
- backgroundColor: colorStyles.editBackgroundColor,
49
- borderRadius: size * (3 / 16),
50
- padding: size * (3 / 32)
51
- }
52
- }, /*#__PURE__*/React.createElement(Icon, {
53
- name: "MaterialIcons/edit",
54
- color: colorStyles.editIconColor,
55
- size: size * (3 / 16)
56
- }))));
57
- };
58
- var _default = (0, _theming.withTheme)(AvatarEdit);
59
- exports.default = _default;
60
- //# sourceMappingURL=AvatarEdit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["AvatarEdit","Icon","image","size","onPress","style","theme","rest","colorStyles","editBackgroundColor","colors","primary","editIconColor","surface","editBorderColor","dimensions","width","height","position","top","right","borderColor","backgroundColor","borderRadius","padding","withTheme"],"sourceRoot":"../../src","sources":["AvatarEdit.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAavC,MAAMA,UAAoD,GAAG,QAQvD;EAAA,IARwD;IAC5DC,IAAI;IACJC,KAAK;IACLC,IAAI,GAAG,EAAE;IACTC,OAAO,GAAG,MAAM,CAAC,CAAC;IAClBC,KAAK;IACLC,KAAK;IACL,GAAGC;EACL,CAAC;EACC,MAAMC,WAAW,GAAG;IAClBC,mBAAmB,EAAEH,KAAK,CAACI,MAAM,CAACC,OAAO;IACzCC,aAAa,EAAEN,KAAK,CAACI,MAAM,CAACG,OAAO;IACnCC,eAAe,EAAER,KAAK,CAACI,MAAM,CAACG;EAChC,CAAC;EAED,MAAME,UAAU,GAAG;IACjBC,KAAK,EAAEb,IAAI;IACXc,MAAM,EAAEd;EACV,CAAC;EAED,oBACE,oBAAC,iBAAI;IAAC,KAAK,EAAE,CAACE,KAAK,EAAEU,UAAU;EAAE,GAAKR,IAAI,gBACxC,oBAAC,kBAAS;IAAC,OAAO,EAAEH;EAAQ,gBAC1B,oBAAC,oBAAW;IAAC,MAAM,EAAEF,KAAM;IAAC,IAAI,EAAEC;EAAK,EAAG,eAC1C,oBAAC,iBAAI;IACH,KAAK,EAAE;MACLe,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,CAAC,CAAC;MACPC,KAAK,EAAE,CAAC,CAAC;MACTC,WAAW,EAAEb,WAAW,CAACM,eAAe;MACxCQ,eAAe,EAAEd,WAAW,CAACC,mBAAmB;MAChDc,YAAY,EAAEpB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;MAC7BqB,OAAO,EAAErB,IAAI,IAAI,CAAC,GAAG,EAAE;IACzB;EAAE,gBAEF,oBAAC,IAAI;IACH,IAAI,EAAC,oBAAoB;IACzB,KAAK,EAAEK,WAAW,CAACI,aAAc;IACjC,IAAI,EAAET,IAAI,IAAI,CAAC,GAAG,EAAE;EAAE,EACtB,CACG,CACG,CACP;AAEX,CAAC;AAAC,eAEa,IAAAsB,kBAAS,EAACzB,UAAU,CAAC;AAAA"}
@@ -1,168 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _Surface = _interopRequireDefault(require("./Surface"));
10
- var _shadow = _interopRequireDefault(require("../styles/shadow"));
11
- var _theming = require("../theming");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
- const ELEVATION = 1;
17
- const DEFAULT_MAX_WIDTH = 960;
18
- const Banner = _ref => {
19
- let {
20
- initiallyVisible = true,
21
- dismissable = true,
22
- icon,
23
- buttonColor,
24
- content,
25
- contentStyle,
26
- style,
27
- theme,
28
- Icon,
29
- ...rest
30
- } = _ref;
31
- const [visible, setVisible] = React.useState(initiallyVisible);
32
- React.useEffect(() => {
33
- if (initiallyVisible) {
34
- setVisible(true);
35
- }
36
- }, [initiallyVisible]);
37
- const {
38
- current: position
39
- } = React.useRef(new _reactNative.Animated.Value(visible ? 1 : 0));
40
- const [layout, setLayout] = React.useState({
41
- height: 0,
42
- measured: false
43
- });
44
- React.useEffect(() => {
45
- if (visible) {
46
- // show
47
- _reactNative.Animated.timing(position, {
48
- duration: 250,
49
- toValue: 1,
50
- useNativeDriver: false
51
- }).start();
52
- } else {
53
- // hide
54
- _reactNative.Animated.timing(position, {
55
- duration: 200,
56
- toValue: 0,
57
- useNativeDriver: false
58
- }).start();
59
- }
60
- }, [visible, position]);
61
- const handleLayout = _ref2 => {
62
- let {
63
- nativeEvent
64
- } = _ref2;
65
- const {
66
- height
67
- } = nativeEvent.layout;
68
- setLayout({
69
- height,
70
- measured: true
71
- });
72
- };
73
-
74
- // The banner animation has 2 parts:
75
- // 1. Blank spacer element which animates its height to move the content
76
- // 2. Actual banner which animates its translateY
77
- // In initial render, we position everything normally and measure the height of the banner
78
- // Once we have the height, we apply the height to the spacer and switch the banner to position: absolute
79
- // We need this because we need to move the content below as if banner's height was being animated
80
- // However we can't animated banner's height directly as it'll also resize the content inside
81
- const height = _reactNative.Animated.multiply(position, layout.height);
82
- const translateY = _reactNative.Animated.multiply(_reactNative.Animated.add(position, -1), layout.height);
83
- return /*#__PURE__*/React.createElement(_Surface.default, _extends({}, rest, {
84
- style: [styles.container, (0, _shadow.default)(ELEVATION), style]
85
- }), /*#__PURE__*/React.createElement(_reactNative.View, {
86
- style: [styles.wrapper, contentStyle]
87
- }, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
88
- style: {
89
- height
90
- }
91
- }), /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
92
- onLayout: handleLayout,
93
- style: [layout.measured || !visible ?
94
- // If we have measured banner's height or it's invisible,
95
- // Position it absolutely, the layout will be taken care of the spacer
96
- [styles.absolute, {
97
- transform: [{
98
- translateY
99
- }]
100
- }] :
101
- // Otherwise position it normally
102
- null, !layout.measured && !visible ?
103
- // If we haven't measured banner's height yet and it's invisible,
104
- // hide it with opacity: 0 so user doesn't see it
105
- {
106
- opacity: 0
107
- } : null]
108
- }, /*#__PURE__*/React.createElement(_reactNative.View, {
109
- style: [styles.content, {
110
- marginBottom: dismissable ? 0 : 16
111
- }]
112
- }, icon ? /*#__PURE__*/React.createElement(_reactNative.View, {
113
- style: styles.icon
114
- }, /*#__PURE__*/React.createElement(Icon, {
115
- name: icon,
116
- size: 40
117
- })) : null, /*#__PURE__*/React.createElement(_reactNative.Text, {
118
- style: [styles.message, {
119
- color: theme.colors.text
120
- }],
121
- accessibilityLiveRegion: visible ? "polite" : "none",
122
- accessibilityRole: "alert"
123
- }, content)), dismissable ? /*#__PURE__*/React.createElement(_reactNative.View, {
124
- style: styles.actions
125
- }, /*#__PURE__*/React.createElement(_reactNative.Button, {
126
- color: buttonColor || theme.colors.primary,
127
- title: "Close",
128
- onPress: () => setVisible(false)
129
- })) : null)));
130
- };
131
- const styles = _reactNative.StyleSheet.create({
132
- container: {
133
- elevation: ELEVATION
134
- },
135
- wrapper: {
136
- overflow: "hidden",
137
- alignSelf: "center",
138
- width: "100%",
139
- maxWidth: DEFAULT_MAX_WIDTH
140
- },
141
- absolute: {
142
- position: "absolute",
143
- top: 0,
144
- width: "100%"
145
- },
146
- content: {
147
- flexDirection: "row",
148
- justifyContent: "flex-start",
149
- marginHorizontal: 8,
150
- marginTop: 16,
151
- marginBottom: 0
152
- },
153
- icon: {
154
- margin: 8
155
- },
156
- message: {
157
- flex: 1,
158
- margin: 8
159
- },
160
- actions: {
161
- flexDirection: "row",
162
- justifyContent: "flex-end",
163
- margin: 8
164
- }
165
- });
166
- var _default = (0, _theming.withTheme)(Banner);
167
- exports.default = _default;
168
- //# sourceMappingURL=Banner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","React","useState","useEffect","current","position","useRef","Animated","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","styles","container","shadow","wrapper","absolute","transform","opacity","marginBottom","message","color","colors","text","actions","primary","StyleSheet","create","elevation","overflow","alignSelf","width","maxWidth","top","flexDirection","justifyContent","marginHorizontal","marginTop","margin","flex","withTheme"],"sourceRoot":"../../src","sources":["Banner.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AAEA;AACA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