@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
@@ -1,378 +0,0 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
- // @ts-nocheck
5
- import React, { Component } from "react";
6
- import { View, Text, StyleSheet, Animated, TouchableWithoutFeedback } from "react-native";
7
- const STEP_STATUS = {
8
- CURRENT: "current",
9
- FINISHED: "finished",
10
- UNFINISHED: "unfinished"
11
- };
12
- export default class StepIndicator extends Component {
13
- constructor(props) {
14
- super(props);
15
- _defineProperty(this, "renderProgressBarBackground", () => {
16
- const {
17
- stepCount,
18
- direction
19
- } = this.props;
20
- let progressBarBackgroundStyle;
21
- if (direction === "vertical") {
22
- progressBarBackgroundStyle = {
23
- backgroundColor: this.state.customStyles.separatorUnFinishedColor,
24
- position: "absolute",
25
- left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
26
- top: this.state.height / (2 * stepCount),
27
- bottom: this.state.height / (2 * stepCount),
28
- width: this.state.customStyles.separatorStrokeUnfinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeUnfinishedWidth
29
- };
30
- } else {
31
- progressBarBackgroundStyle = {
32
- backgroundColor: this.state.customStyles.separatorUnFinishedColor,
33
- position: "absolute",
34
- top: (this.state.height - this.state.customStyles.separatorStrokeWidth) / 2,
35
- left: this.state.width / (2 * stepCount),
36
- right: this.state.width / (2 * stepCount),
37
- height: this.state.customStyles.separatorStrokeUnfinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeUnfinishedWidth
38
- };
39
- }
40
- return /*#__PURE__*/React.createElement(View, {
41
- onLayout: event => {
42
- if (direction === "vertical") {
43
- this.setState({
44
- progressBarSize: event.nativeEvent.layout.height
45
- }, () => {
46
- this.onCurrentPositionChanged(this.props.currentPosition);
47
- });
48
- } else {
49
- this.setState({
50
- progressBarSize: event.nativeEvent.layout.width
51
- }, () => {
52
- this.onCurrentPositionChanged(this.props.currentPosition);
53
- });
54
- }
55
- },
56
- style: progressBarBackgroundStyle
57
- });
58
- });
59
- _defineProperty(this, "renderProgressBar", () => {
60
- const {
61
- stepCount,
62
- direction
63
- } = this.props;
64
- let progressBarStyle;
65
- if (direction === "vertical") {
66
- progressBarStyle = {
67
- backgroundColor: this.state.customStyles.separatorFinishedColor,
68
- position: "absolute",
69
- left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
70
- top: this.state.height / (2 * stepCount),
71
- bottom: this.state.height / (2 * stepCount),
72
- width: this.state.customStyles.separatorStrokeFinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeFinishedWidth,
73
- height: this.progressAnim
74
- };
75
- } else {
76
- progressBarStyle = {
77
- backgroundColor: this.state.customStyles.separatorFinishedColor,
78
- position: "absolute",
79
- top: (this.state.height - this.state.customStyles.separatorStrokeWidth) / 2,
80
- left: this.state.width / (2 * stepCount),
81
- right: this.state.width / (2 * stepCount),
82
- height: this.state.customStyles.separatorStrokeFinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeFinishedWidth,
83
- width: this.progressAnim
84
- };
85
- }
86
- return /*#__PURE__*/React.createElement(Animated.View, {
87
- style: progressBarStyle
88
- });
89
- });
90
- _defineProperty(this, "renderStepIndicator", () => {
91
- let steps = [];
92
- const {
93
- stepCount,
94
- direction
95
- } = this.props;
96
- for (let position = 0; position < stepCount; position++) {
97
- steps.push( /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
98
- key: position,
99
- onPress: () => this.stepPressed(position)
100
- }, /*#__PURE__*/React.createElement(View, {
101
- style: [styles.stepContainer, direction === "vertical" ? {
102
- flexDirection: "column"
103
- } : {
104
- flexDirection: "row"
105
- }]
106
- }, this.renderStep(position))));
107
- }
108
- return /*#__PURE__*/React.createElement(View, {
109
- onLayout: event => this.setState({
110
- width: event.nativeEvent.layout.width,
111
- height: event.nativeEvent.layout.height
112
- }),
113
- style: [styles.stepIndicatorContainer, direction === "vertical" ? {
114
- flexDirection: "column",
115
- width: this.state.customStyles.currentStepIndicatorSize
116
- } : {
117
- flexDirection: "row",
118
- height: this.state.customStyles.currentStepIndicatorSize
119
- }]
120
- }, steps);
121
- });
122
- _defineProperty(this, "renderStepLabels", () => {
123
- const {
124
- labels,
125
- direction,
126
- currentPosition,
127
- renderLabel
128
- } = this.props;
129
- var labelViews = labels.map((label, index) => {
130
- const selectedStepLabelStyle = index === currentPosition ? {
131
- color: this.state.customStyles.currentStepLabelColor
132
- } : {
133
- color: this.state.customStyles.labelColor
134
- };
135
- return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
136
- style: styles.stepLabelItem,
137
- key: index,
138
- onPress: () => this.stepPressed(index)
139
- }, /*#__PURE__*/React.createElement(View, {
140
- style: styles.stepLabelItem
141
- }, renderLabel ? renderLabel({
142
- position: index,
143
- stepStatus: this.getStepStatus(index),
144
- label,
145
- currentPosition
146
- }) : /*#__PURE__*/React.createElement(Text, {
147
- style: [styles.stepLabel, selectedStepLabelStyle, {
148
- fontSize: this.state.customStyles.labelSize,
149
- fontFamily: this.state.customStyles.labelFontFamily
150
- }]
151
- }, label)));
152
- });
153
- return /*#__PURE__*/React.createElement(View, {
154
- style: [styles.stepLabelsContainer, direction === "vertical" ? {
155
- flexDirection: "column",
156
- paddingHorizontal: 4
157
- } : {
158
- flexDirection: "row",
159
- paddingVertical: 4
160
- }, {
161
- alignItems: this.state.customStyles.labelAlign
162
- }]
163
- }, labelViews);
164
- });
165
- _defineProperty(this, "renderStep", position => {
166
- const {
167
- renderStepIndicator
168
- } = this.props;
169
- let stepStyle;
170
- let indicatorLabelStyle;
171
- switch (this.getStepStatus(position)) {
172
- case STEP_STATUS.CURRENT:
173
- {
174
- stepStyle = {
175
- backgroundColor: this.state.customStyles.stepIndicatorCurrentColor,
176
- borderWidth: this.state.customStyles.currentStepStrokeWidth,
177
- borderColor: this.state.customStyles.stepStrokeCurrentColor,
178
- height: this.sizeAnim,
179
- width: this.sizeAnim,
180
- borderRadius: this.borderRadiusAnim
181
- };
182
- indicatorLabelStyle = {
183
- fontSize: this.state.customStyles.currentStepIndicatorLabelFontSize,
184
- color: this.state.customStyles.stepIndicatorLabelCurrentColor
185
- };
186
- break;
187
- }
188
- case STEP_STATUS.FINISHED:
189
- {
190
- stepStyle = {
191
- backgroundColor: this.state.customStyles.stepIndicatorFinishedColor,
192
- borderWidth: this.state.customStyles.stepStrokeWidth,
193
- borderColor: this.state.customStyles.stepStrokeFinishedColor,
194
- height: this.state.customStyles.stepIndicatorSize,
195
- width: this.state.customStyles.stepIndicatorSize,
196
- borderRadius: this.state.customStyles.stepIndicatorSize / 2
197
- };
198
- indicatorLabelStyle = {
199
- fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
200
- color: this.state.customStyles.stepIndicatorLabelFinishedColor
201
- };
202
- break;
203
- }
204
- case STEP_STATUS.UNFINISHED:
205
- {
206
- stepStyle = {
207
- backgroundColor: this.state.customStyles.stepIndicatorUnFinishedColor,
208
- borderWidth: this.state.customStyles.stepStrokeWidth,
209
- borderColor: this.state.customStyles.stepStrokeUnFinishedColor,
210
- height: this.state.customStyles.stepIndicatorSize,
211
- width: this.state.customStyles.stepIndicatorSize,
212
- borderRadius: this.state.customStyles.stepIndicatorSize / 2
213
- };
214
- indicatorLabelStyle = {
215
- overflow: "hidden",
216
- fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
217
- color: this.state.customStyles.stepIndicatorLabelUnFinishedColor
218
- };
219
- break;
220
- }
221
- default:
222
- }
223
- return /*#__PURE__*/React.createElement(Animated.View, {
224
- key: "step-indicator",
225
- style: [styles.step, stepStyle]
226
- }, renderStepIndicator ? renderStepIndicator({
227
- position,
228
- stepStatus: this.getStepStatus(position)
229
- }) : /*#__PURE__*/React.createElement(Text, {
230
- style: indicatorLabelStyle
231
- }, `${position + 1}`));
232
- });
233
- _defineProperty(this, "getStepStatus", stepPosition => {
234
- const {
235
- currentPosition
236
- } = this.props;
237
- if (stepPosition === currentPosition) {
238
- return STEP_STATUS.CURRENT;
239
- } else if (stepPosition < currentPosition) {
240
- return STEP_STATUS.FINISHED;
241
- } else {
242
- return STEP_STATUS.UNFINISHED;
243
- }
244
- });
245
- _defineProperty(this, "onCurrentPositionChanged", position => {
246
- let {
247
- stepCount
248
- } = this.props;
249
- if (position > stepCount - 1) {
250
- position = stepCount - 1;
251
- }
252
- const animateToPosition = this.state.progressBarSize / (stepCount - 1) * position;
253
- this.sizeAnim.setValue(this.state.customStyles.stepIndicatorSize);
254
- this.borderRadiusAnim.setValue(this.state.customStyles.stepIndicatorSize / 2);
255
- Animated.sequence([Animated.timing(this.progressAnim, {
256
- toValue: animateToPosition,
257
- duration: 200
258
- }), Animated.parallel([Animated.timing(this.sizeAnim, {
259
- toValue: this.state.customStyles.currentStepIndicatorSize,
260
- duration: 100
261
- }), Animated.timing(this.borderRadiusAnim, {
262
- toValue: this.state.customStyles.currentStepIndicatorSize / 2,
263
- duration: 100
264
- })])]).start();
265
- });
266
- const defaultStyles = {
267
- stepIndicatorSize: 30,
268
- currentStepIndicatorSize: 40,
269
- separatorStrokeWidth: 3,
270
- separatorStrokeUnfinishedWidth: 0,
271
- separatorStrokeFinishedWidth: 0,
272
- currentStepStrokeWidth: 5,
273
- stepStrokeWidth: 0,
274
- stepStrokeCurrentColor: "#4aae4f",
275
- stepStrokeFinishedColor: "#4aae4f",
276
- stepStrokeUnFinishedColor: "#4aae4f",
277
- separatorFinishedColor: "#4aae4f",
278
- separatorUnFinishedColor: "#a4d4a5",
279
- stepIndicatorFinishedColor: "#4aae4f",
280
- stepIndicatorUnFinishedColor: "#a4d4a5",
281
- stepIndicatorCurrentColor: "#ffffff",
282
- stepIndicatorLabelFontSize: 15,
283
- currentStepIndicatorLabelFontSize: 15,
284
- stepIndicatorLabelCurrentColor: "#000000",
285
- stepIndicatorLabelFinishedColor: "#ffffff",
286
- stepIndicatorLabelUnFinishedColor: "rgba(255,255,255,0.5)",
287
- labelColor: "#000000",
288
- labelSize: 13,
289
- labelAlign: "center",
290
- currentStepLabelColor: "#4aae4f"
291
- };
292
- const customStyles = Object.assign(defaultStyles, props.customStyles);
293
- this.state = {
294
- width: 0,
295
- height: 1,
296
- progressBarSize: -2,
297
- customStyles
298
- };
299
- this.progressAnim = new Animated.Value(0);
300
- this.sizeAnim = new Animated.Value(this.state.customStyles.stepIndicatorSize);
301
- this.borderRadiusAnim = new Animated.Value(this.state.customStyles.stepIndicatorSize / 2);
302
- }
303
- stepPressed(position) {
304
- if (this.props.onPress) {
305
- this.props.onPress(position);
306
- }
307
- }
308
- render() {
309
- const {
310
- labels,
311
- direction
312
- } = this.props;
313
- return /*#__PURE__*/React.createElement(View, {
314
- style: [styles.container, direction === "vertical" ? {
315
- flexDirection: "row",
316
- flex: 1
317
- } : {
318
- flexDirection: "column"
319
- }]
320
- }, this.state.width !== 0 && this.renderProgressBarBackground(), this.state.width !== 0 && this.renderProgressBar(), this.renderStepIndicator(), labels && this.renderStepLabels());
321
- }
322
- componentDidUpdate(prevProps) {
323
- // if (prevProps.customStyles !== this.props.customStyles) {
324
- // this.setState((state) => ({
325
- // customStyles: Object.assign(
326
- // state.customStyles,
327
- // this.props.customStyles
328
- // ),
329
- // }));
330
- // }
331
-
332
- if (prevProps.currentPosition !== this.props.currentPosition) {
333
- this.onCurrentPositionChanged(this.props.currentPosition);
334
- }
335
- }
336
- }
337
- const styles = StyleSheet.create({
338
- container: {
339
- backgroundColor: "transparent"
340
- },
341
- stepIndicatorContainer: {
342
- flexDirection: "row",
343
- alignItems: "center",
344
- justifyContent: "space-around",
345
- backgroundColor: "transparent"
346
- },
347
- stepLabelsContainer: {
348
- justifyContent: "space-around"
349
- },
350
- step: {
351
- alignItems: "center",
352
- justifyContent: "center",
353
- zIndex: 2
354
- },
355
- stepContainer: {
356
- flex: 1,
357
- flexDirection: "row",
358
- alignItems: "center",
359
- justifyContent: "center"
360
- },
361
- stepLabel: {
362
- fontSize: 12,
363
- textAlign: "center",
364
- fontWeight: "500"
365
- },
366
- stepLabelItem: {
367
- flex: 1,
368
- alignItems: "center",
369
- justifyContent: "center"
370
- }
371
- });
372
- StepIndicator.defaultProps = {
373
- currentPosition: 0,
374
- stepCount: 5,
375
- customStyles: {},
376
- direction: "horizontal"
377
- };
378
- //# sourceMappingURL=StepIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Component","View","Text","StyleSheet","Animated","TouchableWithoutFeedback","STEP_STATUS","CURRENT","FINISHED","UNFINISHED","StepIndicator","constructor","props","stepCount","direction","progressBarBackgroundStyle","backgroundColor","state","customStyles","separatorUnFinishedColor","position","left","width","separatorStrokeWidth","top","height","bottom","separatorStrokeUnfinishedWidth","right","event","setState","progressBarSize","nativeEvent","layout","onCurrentPositionChanged","currentPosition","progressBarStyle","separatorFinishedColor","separatorStrokeFinishedWidth","progressAnim","steps","push","stepPressed","styles","stepContainer","flexDirection","renderStep","stepIndicatorContainer","currentStepIndicatorSize","labels","renderLabel","labelViews","map","label","index","selectedStepLabelStyle","color","currentStepLabelColor","labelColor","stepLabelItem","stepStatus","getStepStatus","stepLabel","fontSize","labelSize","fontFamily","labelFontFamily","stepLabelsContainer","paddingHorizontal","paddingVertical","alignItems","labelAlign","renderStepIndicator","stepStyle","indicatorLabelStyle","stepIndicatorCurrentColor","borderWidth","currentStepStrokeWidth","borderColor","stepStrokeCurrentColor","sizeAnim","borderRadius","borderRadiusAnim","currentStepIndicatorLabelFontSize","stepIndicatorLabelCurrentColor","stepIndicatorFinishedColor","stepStrokeWidth","stepStrokeFinishedColor","stepIndicatorSize","stepIndicatorLabelFontSize","stepIndicatorLabelFinishedColor","stepIndicatorUnFinishedColor","stepStrokeUnFinishedColor","overflow","stepIndicatorLabelUnFinishedColor","step","stepPosition","animateToPosition","setValue","sequence","timing","toValue","duration","parallel","start","defaultStyles","Object","assign","Value","onPress","render","container","flex","renderProgressBarBackground","renderProgressBar","renderStepLabels","componentDidUpdate","prevProps","create","justifyContent","zIndex","textAlign","fontWeight","defaultProps"],"sourceRoot":"../../src","sources":["StepIndicator.tsx"],"mappings":";;;AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,wBAAwB,QACnB,cAAc;AAErB,MAAMC,WAAW,GAAG;EAClBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBC,UAAU,EAAE;AACd,CAAC;AA2CD,eAAe,MAAMC,aAAa,SAASV,SAAS,CAAe;EACjEW,WAAW,CAACC,KAAY,EAAE;IACxB,KAAK,CAACA,KAAK,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EAAE;IACJzB,UAAU,EAAE,QAAQ;IACpBiD,cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE;EACV,CAAC;EACD5E,aAAa,EAAE;IACboE,IAAI,EAAE,CAAC;IACPnE,aAAa,EAAE,KAAK;IACpByB,UAAU,EAAE,QAAQ;IACpBiD,cAAc,EAAE;EAClB,CAAC;EACDzD,SAAS,EAAE;IACTC,QAAQ,EAAE,EAAE;IACZ0D,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE;EACd,CAAC;EACD/D,aAAa,EAAE;IACbqD,IAAI,EAAE,CAAC;IACP1C,UAAU,EAAE,QAAQ;IACpBiD,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF7G,aAAa,CAACiH,YAAY,GAAG;EAC3BxF,eAAe,EAAE,CAAC;EAClBtB,SAAS,EAAE,CAAC;EACZK,YAAY,EAAE,CAAC,CAAC;EAChBJ,SAAS,EAAE;AACb,CAAC"}
@@ -1,80 +0,0 @@
1
- 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); }
2
- import * as React from "react";
3
- import { TabView, TabBar, SceneMap } from "react-native-tab-view";
4
-
5
- // import { withTheme } from "../../theming";
6
- import TabViewItem from "./TabViewItem";
7
- const TabViewComponent = _ref => {
8
- let {
9
- Icon,
10
- tabBarPosition,
11
- keyboardDismissMode,
12
- swipeEnabled,
13
- scrollEnabled,
14
- activeColor,
15
- inactiveColor,
16
- pressColor,
17
- indicatorColor,
18
- style,
19
- children
20
- } = _ref;
21
- const [index, setIndex] = React.useState(0);
22
- const [routes, setRoutes] = React.useState([]);
23
- const [tabScenes, setTabScenes] = React.useState({});
24
- React.useEffect(() => {
25
- const newRoutes = [];
26
- const scenes = {};
27
- React.Children.toArray(children).filter(child => child.type === TabViewItem).forEach(child => {
28
- var _child$props;
29
- if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.id) {
30
- var _child$props2, _child$props3;
31
- newRoutes.push({
32
- key: child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.id,
33
- ...(child === null || child === void 0 ? void 0 : child.props)
34
- });
35
- scenes[child === null || child === void 0 ? void 0 : (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.id] = () => child;
36
- }
37
- });
38
- setRoutes(newRoutes);
39
- setTabScenes(scenes);
40
- }, [children]);
41
- const indexChangeHandler = i => setIndex(i);
42
- const renderTabBar = props => {
43
- console.log(props);
44
- return /*#__PURE__*/React.createElement(TabBar, _extends({}, props, {
45
- activeColor: activeColor,
46
- inactiveColor: inactiveColor,
47
- pressColor: pressColor,
48
- scrollEnabled: scrollEnabled,
49
- indicatorStyle: {
50
- backgroundColor: indicatorColor
51
- },
52
- renderIcon: _ref2 => {
53
- let {
54
- route,
55
- color
56
- } = _ref2;
57
- return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
58
- name: route.icon,
59
- color: color,
60
- size: 36
61
- }) : null;
62
- },
63
- style: style
64
- }));
65
- };
66
- return /*#__PURE__*/React.createElement(TabView, {
67
- navigationState: {
68
- index,
69
- routes
70
- },
71
- renderScene: SceneMap(tabScenes),
72
- renderTabBar: renderTabBar,
73
- onIndexChange: indexChangeHandler,
74
- tabBarPosition: tabBarPosition,
75
- keyboardDismissMode: keyboardDismissMode,
76
- swipeEnabled: swipeEnabled
77
- });
78
- };
79
- export default TabViewComponent;
80
- //# sourceMappingURL=TabView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","TabView","TabBar","SceneMap","TabViewItem","TabViewComponent","Icon","tabBarPosition","keyboardDismissMode","swipeEnabled","scrollEnabled","activeColor","inactiveColor","pressColor","indicatorColor","style","children","index","setIndex","useState","routes","setRoutes","tabScenes","setTabScenes","useEffect","newRoutes","scenes","Children","toArray","filter","child","type","forEach","props","id","push","key","indexChangeHandler","i","renderTabBar","console","log","backgroundColor","route","color","icon"],"sourceRoot":"../../src","sources":["TabView.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,uBAAuB;;AAEjE;AACA,OAAOC,WAAW,MAAM,eAAe;AAmBvC,MAAMC,gBAAgB,GAAG,QAYL;EAAA,IAZM;IACxBC,IAAI;IACJC,cAAc;IACdC,mBAAmB;IACnBC,YAAY;IACZC,aAAa;IACbC,WAAW;IACXC,aAAa;IACbC,UAAU;IACVC,cAAc;IACdC,KAAK;IACLC;EACY,CAAC;EACb,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGlB,KAAK,CAACmB,QAAQ,CAAC,CAAC,CAAC;EAC3C,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGrB,KAAK,CAACmB,QAAQ,CAAC,EAAE,CAAC;EAC9C,MAAM,CAACG,SAAS,EAAEC,YAAY,CAAC,GAAGvB,KAAK,CAACmB,QAAQ,CAAC,CAAC,CAAC,CAAC;EAEpDnB,KAAK,CAACwB,SAAS,CAAC,MAAM;IACpB,MAAMC,SAAc,GAAG,EAAE;IACzB,MAAMC,MAAW,GAAG,CAAC,CAAC;IAEtB1B,KAAK,CAAC2B,QAAQ,CAACC,OAAO,CAACZ,QAAQ,CAAC,CAC7Ba,MAAM,CAAEC,KAAU,IAAKA,KAAK,CAACC,IAAI,KAAK3B,WAAW,CAAC,CAClD4B,OAAO,CAAEF,KAAU,IAAK;MAAA;MACvB,IAAIA,KAAK,aAALA,KAAK,+BAALA,KAAK,CAAEG,KAAK,yCAAZ,aAAcC,EAAE,EAAE;QAAA;QACpBT,SAAS,CAACU,IAAI,CAAC;UACbC,GAAG,EAAEN,KAAK,aAALA,KAAK,wCAALA,KAAK,CAAEG,KAAK,kDAAZ,cAAcC,EAAE;UACrB,IAAGJ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AeJ,gBAAgB"}
@@ -1,18 +0,0 @@
1
- const TabViewItem = _ref => {
2
- let {
3
- title,
4
- id,
5
- icon,
6
- children,
7
- accessibilityLabel
8
- } = _ref;
9
- console.log({
10
- title,
11
- id,
12
- icon,
13
- accessibilityLabel
14
- });
15
- return children;
16
- };
17
- export default TabViewItem;
18
- //# sourceMappingURL=TabViewItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["TabViewItem","title","id","icon","children","accessibilityLabel","console","log"],"sourceRoot":"../../src","sources":["TabViewItem.tsx"],"mappings":"AASA,MAAMA,WAAW,GAAG,QAMI;EAAA,IANH;IACnBC,KAAK;IACLC,EAAE;IACFC,IAAI;IACJC,QAAQ;IACRC;EACgB,CAAC;EACjBC,OAAO,CAACC,GAAG,CAAC;IAAEN,KAAK;IAAEC,EAAE;IAAEC,IAAI;IAAEE;EAAmB,CAAC,CAAC;EACpD,OAAOD,QAAQ;AACjB,CAAC;AAED,eAAeJ,WAAW"}
@@ -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,"names":["default","TabView","TabViewItem"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,OAAO,IAAIC,OAAO,QAAQ,WAAW;AAC9C,SAASD,OAAO,IAAIE,WAAW,QAAQ,eAAe"}
@@ -1,62 +0,0 @@
1
- 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); }
2
- import * as React from "react";
3
- import { withTheme } from "../theming";
4
- import { StyleSheet } from "react-native";
5
- import IconButton from "./IconButton";
6
- const ToggleButton = _ref => {
7
- let {
8
- Icon,
9
- icon,
10
- toggled = false,
11
- onPress = () => {},
12
- defaultValue,
13
- disabled = false,
14
- color = "primary",
15
- colorSecondary = "surface",
16
- borderColor = "divider",
17
- iconSize = 25,
18
- width = 50,
19
- height = 50,
20
- theme: {
21
- colors
22
- },
23
- style,
24
- ...rest
25
- } = _ref;
26
- const [internalValue, setInternalValue] = React.useState(toggled || defaultValue || false);
27
- React.useEffect(() => {
28
- if (toggled != null) {
29
- setInternalValue(toggled);
30
- }
31
- }, [toggled]);
32
- React.useEffect(() => {
33
- if (defaultValue != null) {
34
- setInternalValue(defaultValue);
35
- }
36
- }, [defaultValue]);
37
- const handlePress = () => {
38
- setInternalValue(!internalValue);
39
- onPress(!internalValue);
40
- };
41
- return /*#__PURE__*/React.createElement(IconButton, _extends({
42
- Icon: Icon,
43
- icon: icon,
44
- size: iconSize,
45
- color: internalValue ? colors[color] : colors[colorSecondary],
46
- onPress: handlePress,
47
- disabled: disabled,
48
- style: [styles.mainContainer, {
49
- width,
50
- height,
51
- backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
52
- borderColor: colors[borderColor]
53
- }, style]
54
- }, rest));
55
- };
56
- const styles = StyleSheet.create({
57
- mainContainer: {
58
- borderWidth: 1
59
- }
60
- });
61
- export default withTheme(ToggleButton);
62
- //# sourceMappingURL=ToggleButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","withTheme","StyleSheet","IconButton","ToggleButton","Icon","icon","toggled","onPress","defaultValue","disabled","color","colorSecondary","borderColor","iconSize","width","height","theme","colors","style","rest","internalValue","setInternalValue","useState","useEffect","handlePress","styles","mainContainer","backgroundColor","create","borderWidth"],"sourceRoot":"../../src","sources":["ToggleButton.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,QAAQ,YAAY;AAEtC,SAAoBC,UAAU,QAAmB,cAAc;AAC/D,OAAOC,UAAU,MAAM,cAAc;AAoBrC,MAAMC,YAAsD,GAAG,QAgBzD;EAAA,IAhB0D;IAC9DC,IAAI;IACJC,IAAI;IACJC,OAAO,GAAG,KA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tBM,MAAM,CAACP,KAAK,CAAC;MACjBE,WAAW,EAAEK,MAAM,CAACL,WAAW;IACjC,CAAC,EACDM,KAAK;EACL,GACEC,IAAI,EACR;AAEN,CAAC;AAED,MAAMM,MAAM,GAAGxB,UAAU,CAAC2B,MAAM,CAAC;EAC/BF,aAAa,EAAE;IACbG,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAEF,eAAe7B,SAAS,CAACG,YAAY,CAAC"}
@@ -1,49 +0,0 @@
1
- import React from "react";
2
- import { Text } from "react-native";
3
- import { withTheme } from "../theming";
4
- export const Title = withTheme(_ref => {
5
- let {
6
- text,
7
- theme,
8
- style
9
- } = _ref;
10
- return /*#__PURE__*/React.createElement(Text, {
11
- style: [{
12
- fontSize: 20,
13
- letterSpacing: 0,
14
- lineHeight: 26,
15
- color: theme.colors.text
16
- }, style]
17
- }, text);
18
- });
19
- export const Subtitle = withTheme(_ref2 => {
20
- let {
21
- text,
22
- theme,
23
- style
24
- } = _ref2;
25
- return /*#__PURE__*/React.createElement(Text, {
26
- style: [{
27
- fontSize: 14,
28
- letterSpacing: 0,
29
- lineHeight: 16,
30
- color: theme.colors.medium
31
- }, style]
32
- }, text);
33
- });
34
- export const Caption = withTheme(_ref3 => {
35
- let {
36
- text,
37
- theme,
38
- style
39
- } = _ref3;
40
- return /*#__PURE__*/React.createElement(Text, {
41
- style: [{
42
- fontSize: 12,
43
- letterSpacing: 0,
44
- lineHeight: 14,
45
- color: theme.colors.light
46
- }, style]
47
- }, text);
48
- });
49
- //# sourceMappingURL=Typography.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Text","withTheme","Title","text","theme","style","fontSize","letterSpacing","lineHeight","color","colors","Subtitle","medium","Caption","light"],"sourceRoot":"../../src","sources":["Typography.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAA8B,cAAc;AACzD,SAASC,SAAS,QAAQ,YAAY;AAYtC,OAAO,MAAMC,KAAK,GAAGD,SAAS,CAAC,QAAmC;EAAA,IAAlC;IAAEE,IAAI;IAAEC,KAAK;IAAEC;EAAa,CAAC;EAC3D,oBACE,oBAAC,IAAI;IACH,KAAK,EAAE,CACL;MACEC,QAAQ,EAAE,EAAE;MACZC,aAAa,EAAE,CAAC;MAChBC,UAAU,EAAE,EAAE;MACdC,KAAK,EAAEL,KAAK,CAACM,MAAM,CAACP;IACtB,CAAC,EACDE,KAAK;EACL,GAEDF,IAAI,CACA;AAEX,CAAC,CAAC;AAEF,OAAO,MAAMQ,QAAQ,GAAGV,SAAS,CAAC,SAAmC;EAAA,IAAlC;IAAEE,IAAI;IAAEC,KAAK;IAAEC;EAAa,CAAC;EAC9D,oBACE,oBAAC,IAAI;IACH,KAAK,EAAE,CACL;MACEC,QAAQ,EAAE,EAAE;MACZC,aAAa,EAAE,CAAC;MAChBC,UAAU,EAAE,EAAE;MACdC,KAAK,EAAEL,KAAK,CAACM,MAAM,CAACE;IACtB,CAAC,EACDP,KAAK;EACL,GAEDF,IAAI,CACA;AAEX,CAAC,CAAC;AAEF,OAAO,MAAMU,OAAO,GAAGZ,SAAS,CAAC,SAAmC;EAAA,IAAlC;IAAEE,IAAI;IAAEC,KAAK;IAAEC;EAAa,CAAC;EAC7D,oBACE,oBAAC,IAAI;IACH,KAAK,EAAE,CACL;MACEC,QAAQ,EAAE,EAAE;MACZC,aAAa,EAAE,CAAC;MAChBC,UAAU,EAAE,EAAE;MACdC,KAAK,EAAEL,KAAK,CAACM,MAAM,CAACI;IACtB,CAAC,EACDT,KAAK;EACL,GAEDF,IAAI,CACA;AAEX,CAAC,CAAC"}