@fountain-ui/core 2.0.0-beta.93 → 2.0.0-beta.95

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 (714) hide show
  1. package/build/commonjs/Accordion/Accordion.js +50 -52
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/AccordionProps.js +7 -0
  4. package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
  5. package/build/commonjs/Accordion/LegacyAccordion.js +171 -0
  6. package/build/commonjs/Accordion/LegacyAccordion.js.map +1 -0
  7. package/build/commonjs/Accordion/LegacyAccordionProps.js +2 -0
  8. package/build/commonjs/Accordion/LegacyAccordionProps.js.map +1 -0
  9. package/build/commonjs/Accordion/index.js +2 -2
  10. package/build/commonjs/Accordion/index.js.map +1 -1
  11. package/build/commonjs/Accordion/useVariantStyleMap.js +126 -0
  12. package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -0
  13. package/build/commonjs/Badge/Badge.js +16 -20
  14. package/build/commonjs/Badge/Badge.js.map +1 -1
  15. package/build/commonjs/Badge/BadgeProps.js +15 -0
  16. package/build/commonjs/Badge/BadgeProps.js.map +1 -1
  17. package/build/commonjs/Badge/LegacyBadge.js +61 -0
  18. package/build/commonjs/Badge/LegacyBadge.js.map +1 -0
  19. package/build/commonjs/Badge/LegacyBadgeProps.js +2 -0
  20. package/build/commonjs/Badge/LegacyBadgeProps.js.map +1 -0
  21. package/build/commonjs/Badge/index.js +2 -2
  22. package/build/commonjs/Badge/index.js.map +1 -1
  23. package/build/commonjs/Badge/useVariantStyleMap.js +74 -0
  24. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -0
  25. package/build/commonjs/Button/Button.js +65 -23
  26. package/build/commonjs/Button/Button.js.map +1 -1
  27. package/build/commonjs/Button/ButtonProps.js +1 -1
  28. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  29. package/build/commonjs/Button/useVariantStyleMap.js +86 -7
  30. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  31. package/build/commonjs/ButtonBase/ButtonBase.js +4 -10
  32. package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
  33. package/build/commonjs/ButtonBase/LegacyButtonBase.js +126 -0
  34. package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +1 -0
  35. package/build/commonjs/ButtonBase/index.js +2 -2
  36. package/build/commonjs/ButtonBase/index.js.map +1 -1
  37. package/build/commonjs/Chip/Chip.js +24 -62
  38. package/build/commonjs/Chip/Chip.js.map +1 -1
  39. package/build/commonjs/Chip/ChipProps.js +9 -0
  40. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  41. package/build/commonjs/Chip/LegacyChip.js +98 -0
  42. package/build/commonjs/Chip/LegacyChip.js.map +1 -0
  43. package/build/commonjs/Chip/LegacyChipProps.js +2 -0
  44. package/build/commonjs/Chip/LegacyChipProps.js.map +1 -0
  45. package/build/commonjs/Chip/index.js +2 -2
  46. package/build/commonjs/Chip/index.js.map +1 -1
  47. package/build/commonjs/Chip/useChipStyle.js +113 -0
  48. package/build/commonjs/Chip/useChipStyle.js.map +1 -0
  49. package/build/commonjs/Dialog/Dialog.js +26 -50
  50. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  51. package/build/commonjs/Dialog/DialogProps.js +7 -0
  52. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  53. package/build/commonjs/Dialog/LegacyDialog.js +181 -0
  54. package/build/commonjs/Dialog/LegacyDialog.js.map +1 -0
  55. package/build/commonjs/Dialog/LegacyDialogProps.js +2 -0
  56. package/build/commonjs/Dialog/LegacyDialogProps.js.map +1 -0
  57. package/build/commonjs/Dialog/index.js +2 -2
  58. package/build/commonjs/Dialog/index.js.map +1 -1
  59. package/build/commonjs/Dialog/useDialogStyle.js +81 -0
  60. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -0
  61. package/build/commonjs/DialogActions/DialogActions.js +2 -2
  62. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  63. package/build/commonjs/DialogActions/LegacyDialogActions.js +30 -0
  64. package/build/commonjs/DialogActions/LegacyDialogActions.js.map +1 -0
  65. package/build/commonjs/DialogActions/index.js +2 -2
  66. package/build/commonjs/DialogActions/index.js.map +1 -1
  67. package/build/commonjs/DialogContent/DialogContent.js +30 -11
  68. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  69. package/build/commonjs/DialogContent/DialogContentProps.js.map +1 -1
  70. package/build/commonjs/DialogContent/LegacyDialogContent.js +36 -0
  71. package/build/commonjs/DialogContent/LegacyDialogContent.js.map +1 -0
  72. package/build/commonjs/DialogContent/LegacyDialogContentProps.js +2 -0
  73. package/build/commonjs/DialogContent/LegacyDialogContentProps.js.map +1 -0
  74. package/build/commonjs/DialogContent/index.js +2 -2
  75. package/build/commonjs/DialogContent/index.js.map +1 -1
  76. package/build/commonjs/DialogMedia/DialogMedia.js +24 -10
  77. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  78. package/build/commonjs/DialogMedia/DialogMediaProps.js +7 -0
  79. package/build/commonjs/DialogMedia/DialogMediaProps.js.map +1 -1
  80. package/build/commonjs/DialogMedia/LegacyDialogMedia.js +33 -0
  81. package/build/commonjs/DialogMedia/LegacyDialogMedia.js.map +1 -0
  82. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js +2 -0
  83. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js.map +1 -0
  84. package/build/commonjs/DialogMedia/index.js +2 -2
  85. package/build/commonjs/DialogMedia/index.js.map +1 -1
  86. package/build/commonjs/DialogTitle/DialogTitle.js +27 -11
  87. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  88. package/build/commonjs/DialogTitle/DialogTitleProps.js.map +1 -1
  89. package/build/commonjs/DialogTitle/LegacyDialogTitle.js +36 -0
  90. package/build/commonjs/DialogTitle/LegacyDialogTitle.js.map +1 -0
  91. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js +2 -0
  92. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js.map +1 -0
  93. package/build/commonjs/DialogTitle/index.js +2 -2
  94. package/build/commonjs/DialogTitle/index.js.map +1 -1
  95. package/build/commonjs/Empty/Empty.js +86 -0
  96. package/build/commonjs/Empty/Empty.js.map +1 -0
  97. package/build/commonjs/Empty/EmptyProps.js +2 -0
  98. package/build/commonjs/Empty/EmptyProps.js.map +1 -0
  99. package/build/commonjs/Empty/index.js +16 -0
  100. package/build/commonjs/Empty/index.js.map +1 -0
  101. package/build/commonjs/IconButton/LegacyIconButton.js +3 -2
  102. package/build/commonjs/IconButton/LegacyIconButton.js.map +1 -1
  103. package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +1 -1
  104. package/build/commonjs/Pagination/LegacyPagination.js +145 -0
  105. package/build/commonjs/Pagination/LegacyPagination.js.map +1 -0
  106. package/build/commonjs/Pagination/LegacyPaginationProps.js +2 -0
  107. package/build/commonjs/Pagination/LegacyPaginationProps.js.map +1 -0
  108. package/build/commonjs/Pagination/NumberPagination.js +71 -0
  109. package/build/commonjs/Pagination/NumberPagination.js.map +1 -0
  110. package/build/commonjs/Pagination/Pagination.js +9 -5
  111. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  112. package/build/commonjs/Pagination/PaginationProps.js +7 -0
  113. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  114. package/build/commonjs/Pagination/index.js +2 -2
  115. package/build/commonjs/Pagination/index.js.map +1 -1
  116. package/build/commonjs/PaginationItem/LegacyPaginationItem.js +53 -0
  117. package/build/commonjs/PaginationItem/LegacyPaginationItem.js.map +1 -0
  118. package/build/commonjs/PaginationItem/PaginationItem.js +2 -2
  119. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  120. package/build/commonjs/Snackbar/LegacySnackbar.js +134 -0
  121. package/build/commonjs/Snackbar/LegacySnackbar.js.map +1 -0
  122. package/build/commonjs/Snackbar/LegacySnackbarProps.js +2 -0
  123. package/build/commonjs/Snackbar/LegacySnackbarProps.js.map +1 -0
  124. package/build/commonjs/Snackbar/Snackbar.js +7 -5
  125. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  126. package/build/commonjs/Snackbar/SnackbarProps.js +7 -0
  127. package/build/commonjs/Snackbar/SnackbarProps.js.map +1 -1
  128. package/build/commonjs/Snackbar/index.js +2 -2
  129. package/build/commonjs/Snackbar/index.js.map +1 -1
  130. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js +105 -0
  131. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js.map +1 -0
  132. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js +2 -0
  133. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js.map +1 -0
  134. package/build/commonjs/SnackbarContent/SnackbarContent.js +48 -38
  135. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  136. package/build/commonjs/SnackbarContent/SnackbarContentProps.js.map +1 -1
  137. package/build/commonjs/SnackbarContent/StatusIcon.js +43 -0
  138. package/build/commonjs/SnackbarContent/StatusIcon.js.map +1 -0
  139. package/build/commonjs/SnackbarContent/index.js +2 -2
  140. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  141. package/build/commonjs/Tab/LegacyTab.js +126 -0
  142. package/build/commonjs/Tab/LegacyTab.js.map +1 -0
  143. package/build/commonjs/Tab/LegacyTabProps.js +2 -0
  144. package/build/commonjs/Tab/LegacyTabProps.js.map +1 -0
  145. package/build/commonjs/Tab/Tab.js +31 -69
  146. package/build/commonjs/Tab/Tab.js.map +1 -1
  147. package/build/commonjs/Tab/TabIndicator.js.map +1 -1
  148. package/build/commonjs/Tab/TabProps.js +7 -0
  149. package/build/commonjs/Tab/TabProps.js.map +1 -1
  150. package/build/commonjs/Tab/index.js +2 -2
  151. package/build/commonjs/Tab/index.js.map +1 -1
  152. package/build/commonjs/Tab/useVariantStyleMap.js +80 -0
  153. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -0
  154. package/build/commonjs/TabBase/LegacyTabBase.js +57 -0
  155. package/build/commonjs/TabBase/LegacyTabBase.js.map +1 -0
  156. package/build/commonjs/TabBase/TabBase.js +1 -6
  157. package/build/commonjs/TabBase/TabBase.js.map +1 -1
  158. package/build/commonjs/TabBase/index.js +2 -2
  159. package/build/commonjs/TabBase/index.js.map +1 -1
  160. package/build/commonjs/Tabs/LegacyTabIndicator.js +119 -0
  161. package/build/commonjs/Tabs/LegacyTabIndicator.js.map +1 -0
  162. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js +2 -0
  163. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js.map +1 -0
  164. package/build/commonjs/Tabs/LegacyTabs.js +205 -0
  165. package/build/commonjs/Tabs/LegacyTabs.js.map +1 -0
  166. package/build/commonjs/Tabs/LegacyTabsProps.js +2 -0
  167. package/build/commonjs/Tabs/LegacyTabsProps.js.map +1 -0
  168. package/build/commonjs/Tabs/TabIndicator.js +5 -9
  169. package/build/commonjs/Tabs/TabIndicator.js.map +1 -1
  170. package/build/commonjs/Tabs/TabIndicatorProps.js.map +1 -1
  171. package/build/commonjs/Tabs/Tabs.js +10 -9
  172. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  173. package/build/commonjs/Tabs/TabsProps.js +7 -0
  174. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  175. package/build/commonjs/Tabs/index.js +2 -2
  176. package/build/commonjs/Tabs/index.js.map +1 -1
  177. package/build/commonjs/TextField/LegacyTextField.js +195 -0
  178. package/build/commonjs/TextField/LegacyTextField.js.map +1 -0
  179. package/build/commonjs/TextField/LegacyTextFieldProps.js +2 -0
  180. package/build/commonjs/TextField/LegacyTextFieldProps.js.map +1 -0
  181. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  182. package/build/commonjs/TextField/TextField.js +105 -147
  183. package/build/commonjs/TextField/TextField.js.map +1 -1
  184. package/build/commonjs/TextField/TextFieldProps.js +9 -0
  185. package/build/commonjs/TextField/TextFieldProps.js.map +1 -1
  186. package/build/commonjs/TextField/index.js +2 -2
  187. package/build/commonjs/TextField/index.js.map +1 -1
  188. package/build/commonjs/TextField/useVariantStyleMap.js +103 -0
  189. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -0
  190. package/build/commonjs/Tooltip/Beaks/Beak.js +69 -0
  191. package/build/commonjs/Tooltip/Beaks/Beak.js.map +1 -0
  192. package/build/commonjs/Tooltip/Beaks/BeakProps.js +2 -0
  193. package/build/commonjs/Tooltip/Beaks/BeakProps.js.map +1 -0
  194. package/build/commonjs/Tooltip/Beaks/HorizontalLargeBeak.js +25 -0
  195. package/build/commonjs/Tooltip/Beaks/HorizontalLargeBeak.js.map +1 -0
  196. package/build/commonjs/Tooltip/Beaks/HorizontalSmallBeak.js +25 -0
  197. package/build/commonjs/Tooltip/Beaks/HorizontalSmallBeak.js.map +1 -0
  198. package/build/commonjs/Tooltip/Beaks/VerticalLargeBeak.js +25 -0
  199. package/build/commonjs/Tooltip/Beaks/VerticalLargeBeak.js.map +1 -0
  200. package/build/commonjs/Tooltip/Beaks/VerticalSmallBeak.js +25 -0
  201. package/build/commonjs/Tooltip/Beaks/VerticalSmallBeak.js.map +1 -0
  202. package/build/commonjs/Tooltip/Beaks/index.js +16 -0
  203. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -0
  204. package/build/commonjs/Tooltip/LegacyTooltip.js +147 -0
  205. package/build/commonjs/Tooltip/LegacyTooltip.js.map +1 -0
  206. package/build/commonjs/Tooltip/LegacyTooltipProps.js +2 -0
  207. package/build/commonjs/Tooltip/LegacyTooltipProps.js.map +1 -0
  208. package/build/commonjs/Tooltip/Tooltip.js +101 -52
  209. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  210. package/build/commonjs/Tooltip/TooltipProps.js +11 -0
  211. package/build/commonjs/Tooltip/TooltipProps.js.map +1 -1
  212. package/build/commonjs/Tooltip/index.js +2 -2
  213. package/build/commonjs/Tooltip/index.js.map +1 -1
  214. package/build/commonjs/hooks/useCollapsibleAppBar.js +2 -3
  215. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  216. package/build/commonjs/index.js +21 -0
  217. package/build/commonjs/index.js.map +1 -1
  218. package/build/commonjs/internal/icons/CheckCircle.js +27 -0
  219. package/build/commonjs/internal/icons/CheckCircle.js.map +1 -0
  220. package/build/commonjs/internal/icons/Clear.js +27 -0
  221. package/build/commonjs/internal/icons/Clear.js.map +1 -0
  222. package/build/commonjs/internal/icons/EyeOff.js +31 -0
  223. package/build/commonjs/internal/icons/EyeOff.js.map +1 -0
  224. package/build/commonjs/internal/icons/EyeOn.js +27 -0
  225. package/build/commonjs/internal/icons/EyeOn.js.map +1 -0
  226. package/build/commonjs/internal/icons/InfoCircle.js +27 -0
  227. package/build/commonjs/internal/icons/InfoCircle.js.map +1 -0
  228. package/build/commonjs/internal/icons/LoadingSpinner/LoadingSpinnerProps.js +2 -0
  229. package/build/commonjs/internal/icons/LoadingSpinner/LoadingSpinnerProps.js.map +1 -0
  230. package/build/commonjs/internal/icons/LoadingSpinner/index.js +36 -0
  231. package/build/commonjs/internal/icons/LoadingSpinner/index.js.map +1 -0
  232. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js +36 -0
  233. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js.map +1 -0
  234. package/build/commonjs/internal/icons/LoadingSpinner/loadingSpinnerGray.json +1 -0
  235. package/build/commonjs/internal/icons/LoadingSpinner/loadingSpinnerWhite.json +1 -0
  236. package/build/commonjs/internal/icons/LoadingSpinner/utils.js +25 -0
  237. package/build/commonjs/internal/icons/LoadingSpinner/utils.js.map +1 -0
  238. package/build/commonjs/internal/icons/Search.js +23 -0
  239. package/build/commonjs/internal/icons/Search.js.map +1 -0
  240. package/build/commonjs/internal/icons/index.js +56 -0
  241. package/build/commonjs/internal/icons/index.js.map +1 -1
  242. package/build/module/Accordion/Accordion.js +47 -50
  243. package/build/module/Accordion/Accordion.js.map +1 -1
  244. package/build/module/Accordion/AccordionProps.js +1 -1
  245. package/build/module/Accordion/AccordionProps.js.map +1 -1
  246. package/build/module/Accordion/LegacyAccordion.js +148 -0
  247. package/build/module/Accordion/LegacyAccordion.js.map +1 -0
  248. package/build/module/Accordion/LegacyAccordionProps.js +2 -0
  249. package/build/module/Accordion/LegacyAccordionProps.js.map +1 -0
  250. package/build/module/Accordion/index.js +1 -1
  251. package/build/module/Accordion/index.js.map +1 -1
  252. package/build/module/Accordion/useVariantStyleMap.js +116 -0
  253. package/build/module/Accordion/useVariantStyleMap.js.map +1 -0
  254. package/build/module/Badge/Badge.js +17 -23
  255. package/build/module/Badge/Badge.js.map +1 -1
  256. package/build/module/Badge/BadgeProps.js +5 -1
  257. package/build/module/Badge/BadgeProps.js.map +1 -1
  258. package/build/module/Badge/LegacyBadge.js +48 -0
  259. package/build/module/Badge/LegacyBadge.js.map +1 -0
  260. package/build/module/Badge/LegacyBadgeProps.js +2 -0
  261. package/build/module/Badge/LegacyBadgeProps.js.map +1 -0
  262. package/build/module/Badge/index.js +1 -1
  263. package/build/module/Badge/index.js.map +1 -1
  264. package/build/module/Badge/useVariantStyleMap.js +64 -0
  265. package/build/module/Badge/useVariantStyleMap.js.map +1 -0
  266. package/build/module/Button/Button.js +59 -19
  267. package/build/module/Button/Button.js.map +1 -1
  268. package/build/module/Button/ButtonProps.js +1 -1
  269. package/build/module/Button/ButtonProps.js.map +1 -1
  270. package/build/module/Button/useVariantStyleMap.js +86 -7
  271. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  272. package/build/module/ButtonBase/ButtonBase.js +4 -9
  273. package/build/module/ButtonBase/ButtonBase.js.map +1 -1
  274. package/build/module/ButtonBase/LegacyButtonBase.js +106 -0
  275. package/build/module/ButtonBase/LegacyButtonBase.js.map +1 -0
  276. package/build/module/ButtonBase/index.js +1 -1
  277. package/build/module/ButtonBase/index.js.map +1 -1
  278. package/build/module/Chip/Chip.js +25 -64
  279. package/build/module/Chip/Chip.js.map +1 -1
  280. package/build/module/Chip/ChipProps.js +2 -1
  281. package/build/module/Chip/ChipProps.js.map +1 -1
  282. package/build/module/Chip/LegacyChip.js +84 -0
  283. package/build/module/Chip/LegacyChip.js.map +1 -0
  284. package/build/module/Chip/LegacyChipProps.js +2 -0
  285. package/build/module/Chip/LegacyChipProps.js.map +1 -0
  286. package/build/module/Chip/index.js +1 -1
  287. package/build/module/Chip/index.js.map +1 -1
  288. package/build/module/Chip/useChipStyle.js +104 -0
  289. package/build/module/Chip/useChipStyle.js.map +1 -0
  290. package/build/module/Dialog/Dialog.js +23 -52
  291. package/build/module/Dialog/Dialog.js.map +1 -1
  292. package/build/module/Dialog/DialogProps.js +1 -1
  293. package/build/module/Dialog/DialogProps.js.map +1 -1
  294. package/build/module/Dialog/LegacyDialog.js +160 -0
  295. package/build/module/Dialog/LegacyDialog.js.map +1 -0
  296. package/build/module/Dialog/LegacyDialogProps.js +2 -0
  297. package/build/module/Dialog/LegacyDialogProps.js.map +1 -0
  298. package/build/module/Dialog/index.js +1 -1
  299. package/build/module/Dialog/index.js.map +1 -1
  300. package/build/module/Dialog/useDialogStyle.js +71 -0
  301. package/build/module/Dialog/useDialogStyle.js.map +1 -0
  302. package/build/module/DialogActions/DialogActions.js +2 -2
  303. package/build/module/DialogActions/DialogActions.js.map +1 -1
  304. package/build/module/DialogActions/LegacyDialogActions.js +17 -0
  305. package/build/module/DialogActions/LegacyDialogActions.js.map +1 -0
  306. package/build/module/DialogActions/index.js +1 -1
  307. package/build/module/DialogActions/index.js.map +1 -1
  308. package/build/module/DialogContent/DialogContent.js +32 -11
  309. package/build/module/DialogContent/DialogContent.js.map +1 -1
  310. package/build/module/DialogContent/DialogContentProps.js.map +1 -1
  311. package/build/module/DialogContent/LegacyDialogContent.js +22 -0
  312. package/build/module/DialogContent/LegacyDialogContent.js.map +1 -0
  313. package/build/module/DialogContent/LegacyDialogContentProps.js +2 -0
  314. package/build/module/DialogContent/LegacyDialogContentProps.js.map +1 -0
  315. package/build/module/DialogContent/index.js +1 -1
  316. package/build/module/DialogContent/index.js.map +1 -1
  317. package/build/module/DialogMedia/DialogMedia.js +24 -10
  318. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  319. package/build/module/DialogMedia/DialogMediaProps.js +1 -1
  320. package/build/module/DialogMedia/DialogMediaProps.js.map +1 -1
  321. package/build/module/DialogMedia/LegacyDialogMedia.js +21 -0
  322. package/build/module/DialogMedia/LegacyDialogMedia.js.map +1 -0
  323. package/build/module/DialogMedia/LegacyDialogMediaProps.js +2 -0
  324. package/build/module/DialogMedia/LegacyDialogMediaProps.js.map +1 -0
  325. package/build/module/DialogMedia/index.js +1 -1
  326. package/build/module/DialogMedia/index.js.map +1 -1
  327. package/build/module/DialogTitle/DialogTitle.js +29 -11
  328. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  329. package/build/module/DialogTitle/DialogTitleProps.js.map +1 -1
  330. package/build/module/DialogTitle/LegacyDialogTitle.js +22 -0
  331. package/build/module/DialogTitle/LegacyDialogTitle.js.map +1 -0
  332. package/build/module/DialogTitle/LegacyDialogTitleProps.js +2 -0
  333. package/build/module/DialogTitle/LegacyDialogTitleProps.js.map +1 -0
  334. package/build/module/DialogTitle/index.js +1 -1
  335. package/build/module/DialogTitle/index.js.map +1 -1
  336. package/build/module/Empty/Empty.js +71 -0
  337. package/build/module/Empty/Empty.js.map +1 -0
  338. package/build/module/Empty/EmptyProps.js +2 -0
  339. package/build/module/Empty/EmptyProps.js.map +1 -0
  340. package/build/module/Empty/index.js +2 -0
  341. package/build/module/Empty/index.js.map +1 -0
  342. package/build/module/IconButton/LegacyIconButton.js +3 -2
  343. package/build/module/IconButton/LegacyIconButton.js.map +1 -1
  344. package/build/module/IconButton/LegacyIconButtonProps.js.map +1 -1
  345. package/build/module/Pagination/LegacyPagination.js +129 -0
  346. package/build/module/Pagination/LegacyPagination.js.map +1 -0
  347. package/build/module/Pagination/LegacyPaginationProps.js +2 -0
  348. package/build/module/Pagination/LegacyPaginationProps.js.map +1 -0
  349. package/build/module/Pagination/NumberPagination.js +57 -0
  350. package/build/module/Pagination/NumberPagination.js.map +1 -0
  351. package/build/module/Pagination/Pagination.js +8 -5
  352. package/build/module/Pagination/Pagination.js.map +1 -1
  353. package/build/module/Pagination/PaginationProps.js +1 -1
  354. package/build/module/Pagination/PaginationProps.js.map +1 -1
  355. package/build/module/Pagination/index.js +1 -1
  356. package/build/module/Pagination/index.js.map +1 -1
  357. package/build/module/PaginationItem/LegacyPaginationItem.js +40 -0
  358. package/build/module/PaginationItem/LegacyPaginationItem.js.map +1 -0
  359. package/build/module/PaginationItem/PaginationItem.js +2 -2
  360. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  361. package/build/module/Snackbar/LegacySnackbar.js +107 -0
  362. package/build/module/Snackbar/LegacySnackbar.js.map +1 -0
  363. package/build/module/Snackbar/LegacySnackbarProps.js +2 -0
  364. package/build/module/Snackbar/LegacySnackbarProps.js.map +1 -0
  365. package/build/module/Snackbar/Snackbar.js +7 -5
  366. package/build/module/Snackbar/Snackbar.js.map +1 -1
  367. package/build/module/Snackbar/SnackbarProps.js +1 -1
  368. package/build/module/Snackbar/SnackbarProps.js.map +1 -1
  369. package/build/module/Snackbar/index.js +1 -1
  370. package/build/module/Snackbar/index.js.map +1 -1
  371. package/build/module/SnackbarContent/LegacySnackbarContent.js +84 -0
  372. package/build/module/SnackbarContent/LegacySnackbarContent.js.map +1 -0
  373. package/build/module/SnackbarContent/LegacySnackbarContentProps.js +2 -0
  374. package/build/module/SnackbarContent/LegacySnackbarContentProps.js.map +1 -0
  375. package/build/module/SnackbarContent/SnackbarContent.js +48 -35
  376. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  377. package/build/module/SnackbarContent/SnackbarContentProps.js.map +1 -1
  378. package/build/module/SnackbarContent/StatusIcon.js +31 -0
  379. package/build/module/SnackbarContent/StatusIcon.js.map +1 -0
  380. package/build/module/SnackbarContent/index.js +1 -1
  381. package/build/module/SnackbarContent/index.js.map +1 -1
  382. package/build/module/Tab/LegacyTab.js +105 -0
  383. package/build/module/Tab/LegacyTab.js.map +1 -0
  384. package/build/module/Tab/LegacyTabProps.js +2 -0
  385. package/build/module/Tab/LegacyTabProps.js.map +1 -0
  386. package/build/module/Tab/Tab.js +30 -66
  387. package/build/module/Tab/Tab.js.map +1 -1
  388. package/build/module/Tab/TabIndicator.js.map +1 -1
  389. package/build/module/Tab/TabProps.js +1 -1
  390. package/build/module/Tab/TabProps.js.map +1 -1
  391. package/build/module/Tab/index.js +1 -1
  392. package/build/module/Tab/index.js.map +1 -1
  393. package/build/module/Tab/useVariantStyleMap.js +70 -0
  394. package/build/module/Tab/useVariantStyleMap.js.map +1 -0
  395. package/build/module/TabBase/LegacyTabBase.js +44 -0
  396. package/build/module/TabBase/LegacyTabBase.js.map +1 -0
  397. package/build/module/TabBase/TabBase.js +1 -5
  398. package/build/module/TabBase/TabBase.js.map +1 -1
  399. package/build/module/TabBase/index.js +1 -1
  400. package/build/module/TabBase/index.js.map +1 -1
  401. package/build/module/Tabs/LegacyTabIndicator.js +98 -0
  402. package/build/module/Tabs/LegacyTabIndicator.js.map +1 -0
  403. package/build/module/Tabs/LegacyTabIndicatorProps.js +2 -0
  404. package/build/module/Tabs/LegacyTabIndicatorProps.js.map +1 -0
  405. package/build/module/Tabs/LegacyTabs.js +180 -0
  406. package/build/module/Tabs/LegacyTabs.js.map +1 -0
  407. package/build/module/Tabs/LegacyTabsProps.js +2 -0
  408. package/build/module/Tabs/LegacyTabsProps.js.map +1 -0
  409. package/build/module/Tabs/TabIndicator.js +5 -9
  410. package/build/module/Tabs/TabIndicator.js.map +1 -1
  411. package/build/module/Tabs/TabIndicatorProps.js.map +1 -1
  412. package/build/module/Tabs/Tabs.js +10 -9
  413. package/build/module/Tabs/Tabs.js.map +1 -1
  414. package/build/module/Tabs/TabsProps.js +1 -1
  415. package/build/module/Tabs/TabsProps.js.map +1 -1
  416. package/build/module/Tabs/index.js +1 -1
  417. package/build/module/Tabs/index.js.map +1 -1
  418. package/build/module/TextField/LegacyTextField.js +169 -0
  419. package/build/module/TextField/LegacyTextField.js.map +1 -0
  420. package/build/module/TextField/LegacyTextFieldProps.js +2 -0
  421. package/build/module/TextField/LegacyTextFieldProps.js.map +1 -0
  422. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  423. package/build/module/TextField/TextField.js +104 -144
  424. package/build/module/TextField/TextField.js.map +1 -1
  425. package/build/module/TextField/TextFieldProps.js +2 -1
  426. package/build/module/TextField/TextFieldProps.js.map +1 -1
  427. package/build/module/TextField/index.js +1 -1
  428. package/build/module/TextField/index.js.map +1 -1
  429. package/build/module/TextField/useVariantStyleMap.js +94 -0
  430. package/build/module/TextField/useVariantStyleMap.js.map +1 -0
  431. package/build/module/Tooltip/Beaks/Beak.js +56 -0
  432. package/build/module/Tooltip/Beaks/Beak.js.map +1 -0
  433. package/build/module/Tooltip/Beaks/BeakProps.js +2 -0
  434. package/build/module/Tooltip/Beaks/BeakProps.js.map +1 -0
  435. package/build/module/Tooltip/Beaks/HorizontalLargeBeak.js +14 -0
  436. package/build/module/Tooltip/Beaks/HorizontalLargeBeak.js.map +1 -0
  437. package/build/module/Tooltip/Beaks/HorizontalSmallBeak.js +14 -0
  438. package/build/module/Tooltip/Beaks/HorizontalSmallBeak.js.map +1 -0
  439. package/build/module/Tooltip/Beaks/VerticalLargeBeak.js +14 -0
  440. package/build/module/Tooltip/Beaks/VerticalLargeBeak.js.map +1 -0
  441. package/build/module/Tooltip/Beaks/VerticalSmallBeak.js +14 -0
  442. package/build/module/Tooltip/Beaks/VerticalSmallBeak.js.map +1 -0
  443. package/build/module/Tooltip/Beaks/index.js +2 -0
  444. package/build/module/Tooltip/Beaks/index.js.map +1 -0
  445. package/build/module/Tooltip/LegacyTooltip.js +121 -0
  446. package/build/module/Tooltip/LegacyTooltip.js.map +1 -0
  447. package/build/module/Tooltip/LegacyTooltipProps.js +2 -0
  448. package/build/module/Tooltip/LegacyTooltipProps.js.map +1 -0
  449. package/build/module/Tooltip/Tooltip.js +97 -46
  450. package/build/module/Tooltip/Tooltip.js.map +1 -1
  451. package/build/module/Tooltip/TooltipProps.js +3 -1
  452. package/build/module/Tooltip/TooltipProps.js.map +1 -1
  453. package/build/module/Tooltip/index.js +1 -1
  454. package/build/module/Tooltip/index.js.map +1 -1
  455. package/build/module/hooks/useCollapsibleAppBar.js +2 -3
  456. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  457. package/build/module/index.js +2 -0
  458. package/build/module/index.js.map +1 -1
  459. package/build/module/internal/icons/CheckCircle.js +13 -0
  460. package/build/module/internal/icons/CheckCircle.js.map +1 -0
  461. package/build/module/internal/icons/Clear.js +13 -0
  462. package/build/module/internal/icons/Clear.js.map +1 -0
  463. package/build/module/internal/icons/EyeOff.js +17 -0
  464. package/build/module/internal/icons/EyeOff.js.map +1 -0
  465. package/build/module/internal/icons/EyeOn.js +13 -0
  466. package/build/module/internal/icons/EyeOn.js.map +1 -0
  467. package/build/module/internal/icons/InfoCircle.js +13 -0
  468. package/build/module/internal/icons/InfoCircle.js.map +1 -0
  469. package/build/module/internal/icons/LoadingSpinner/LoadingSpinnerProps.js +2 -0
  470. package/build/module/internal/icons/LoadingSpinner/LoadingSpinnerProps.js.map +1 -0
  471. package/build/module/internal/icons/LoadingSpinner/index.js +23 -0
  472. package/build/module/internal/icons/LoadingSpinner/index.js.map +1 -0
  473. package/build/module/internal/icons/LoadingSpinner/index.native.js +23 -0
  474. package/build/module/internal/icons/LoadingSpinner/index.native.js.map +1 -0
  475. package/build/module/internal/icons/LoadingSpinner/loadingSpinnerGray.json +1 -0
  476. package/build/module/internal/icons/LoadingSpinner/loadingSpinnerWhite.json +1 -0
  477. package/build/module/internal/icons/LoadingSpinner/utils.js +12 -0
  478. package/build/module/internal/icons/LoadingSpinner/utils.js.map +1 -0
  479. package/build/module/internal/icons/Search.js +9 -0
  480. package/build/module/internal/icons/Search.js.map +1 -0
  481. package/build/module/internal/icons/index.js +7 -0
  482. package/build/module/internal/icons/index.js.map +1 -1
  483. package/build/typescript/Accordion/Accordion.d.ts +1 -1
  484. package/build/typescript/Accordion/AccordionProps.d.ts +8 -1
  485. package/build/typescript/Accordion/LegacyAccordion.d.ts +3 -0
  486. package/build/typescript/Accordion/LegacyAccordionProps.d.ts +28 -0
  487. package/build/typescript/Accordion/index.d.ts +2 -2
  488. package/build/typescript/Accordion/useVariantStyleMap.d.ts +13 -0
  489. package/build/typescript/Badge/Badge.d.ts +1 -1
  490. package/build/typescript/Badge/BadgeProps.d.ts +28 -2
  491. package/build/typescript/Badge/LegacyBadge.d.ts +3 -0
  492. package/build/typescript/Badge/LegacyBadgeProps.d.ts +34 -0
  493. package/build/typescript/Badge/index.d.ts +2 -2
  494. package/build/typescript/Badge/useVariantStyleMap.d.ts +9 -0
  495. package/build/typescript/Button/ButtonProps.d.ts +6 -1
  496. package/build/typescript/Button/useVariantStyleMap.d.ts +2 -2
  497. package/build/typescript/ButtonBase/ButtonBase.d.ts +0 -1
  498. package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +5 -0
  499. package/build/typescript/ButtonBase/index.d.ts +1 -1
  500. package/build/typescript/Chip/ChipProps.d.ts +13 -6
  501. package/build/typescript/Chip/LegacyChip.d.ts +3 -0
  502. package/build/typescript/Chip/LegacyChipProps.d.ts +28 -0
  503. package/build/typescript/Chip/index.d.ts +2 -2
  504. package/build/typescript/Chip/useChipStyle.d.ts +11 -0
  505. package/build/typescript/Dialog/DialogProps.d.ts +7 -0
  506. package/build/typescript/Dialog/LegacyDialog.d.ts +3 -0
  507. package/build/typescript/Dialog/LegacyDialogProps.d.ts +25 -0
  508. package/build/typescript/Dialog/index.d.ts +2 -2
  509. package/build/typescript/Dialog/useDialogStyle.d.ts +6 -0
  510. package/build/typescript/DialogActions/LegacyDialogActions.d.ts +3 -0
  511. package/build/typescript/DialogActions/index.d.ts +1 -1
  512. package/build/typescript/DialogContent/DialogContentProps.d.ts +5 -5
  513. package/build/typescript/DialogContent/LegacyDialogContent.d.ts +3 -0
  514. package/build/typescript/DialogContent/LegacyDialogContentProps.d.ts +10 -0
  515. package/build/typescript/DialogContent/index.d.ts +2 -2
  516. package/build/typescript/DialogMedia/DialogMediaProps.d.ts +7 -10
  517. package/build/typescript/DialogMedia/LegacyDialogMedia.d.ts +3 -0
  518. package/build/typescript/DialogMedia/LegacyDialogMediaProps.d.ts +15 -0
  519. package/build/typescript/DialogMedia/index.d.ts +2 -2
  520. package/build/typescript/DialogTitle/DialogTitleProps.d.ts +2 -13
  521. package/build/typescript/DialogTitle/LegacyDialogTitle.d.ts +3 -0
  522. package/build/typescript/DialogTitle/LegacyDialogTitleProps.d.ts +15 -0
  523. package/build/typescript/DialogTitle/index.d.ts +2 -2
  524. package/build/typescript/Empty/Empty.d.ts +3 -0
  525. package/build/typescript/Empty/EmptyProps.d.ts +27 -0
  526. package/build/typescript/Empty/index.d.ts +2 -0
  527. package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +4 -0
  528. package/build/typescript/Pagination/LegacyPagination.d.ts +3 -0
  529. package/build/typescript/Pagination/LegacyPaginationProps.d.ts +71 -0
  530. package/build/typescript/Pagination/NumberPagination.d.ts +8 -0
  531. package/build/typescript/Pagination/PaginationProps.d.ts +7 -0
  532. package/build/typescript/Pagination/index.d.ts +2 -2
  533. package/build/typescript/PaginationItem/LegacyPaginationItem.d.ts +5 -0
  534. package/build/typescript/Snackbar/LegacySnackbar.d.ts +3 -0
  535. package/build/typescript/Snackbar/LegacySnackbarProps.d.ts +51 -0
  536. package/build/typescript/Snackbar/SnackbarProps.d.ts +9 -2
  537. package/build/typescript/Snackbar/index.d.ts +2 -2
  538. package/build/typescript/SnackbarContent/LegacySnackbarContent.d.ts +3 -0
  539. package/build/typescript/SnackbarContent/LegacySnackbarContentProps.d.ts +26 -0
  540. package/build/typescript/SnackbarContent/SnackbarContentProps.d.ts +5 -24
  541. package/build/typescript/SnackbarContent/StatusIcon.d.ts +7 -0
  542. package/build/typescript/SnackbarContent/index.d.ts +2 -2
  543. package/build/typescript/Tab/LegacyTab.d.ts +3 -0
  544. package/build/typescript/Tab/LegacyTabProps.d.ts +58 -0
  545. package/build/typescript/Tab/TabIndicator.d.ts +2 -2
  546. package/build/typescript/Tab/TabProps.d.ts +3 -16
  547. package/build/typescript/Tab/index.d.ts +2 -2
  548. package/build/typescript/Tab/useVariantStyleMap.d.ts +10 -0
  549. package/build/typescript/TabBase/LegacyTabBase.d.ts +3 -0
  550. package/build/typescript/TabBase/index.d.ts +1 -1
  551. package/build/typescript/Tabs/LegacyTabIndicator.d.ts +3 -0
  552. package/build/typescript/Tabs/LegacyTabIndicatorProps.d.ts +28 -0
  553. package/build/typescript/Tabs/LegacyTabs.d.ts +5 -0
  554. package/build/typescript/Tabs/LegacyTabsProps.d.ts +74 -0
  555. package/build/typescript/Tabs/TabIndicatorProps.d.ts +0 -10
  556. package/build/typescript/Tabs/Tabs.d.ts +1 -1
  557. package/build/typescript/Tabs/TabsProps.d.ts +10 -10
  558. package/build/typescript/Tabs/index.d.ts +2 -2
  559. package/build/typescript/TextField/LegacyTextField.d.ts +5 -0
  560. package/build/typescript/TextField/LegacyTextFieldProps.d.ts +67 -0
  561. package/build/typescript/TextField/OutlinedTextField.d.ts +1 -1
  562. package/build/typescript/TextField/TextField.d.ts +1 -1
  563. package/build/typescript/TextField/TextFieldProps.d.ts +25 -51
  564. package/build/typescript/TextField/index.d.ts +2 -2
  565. package/build/typescript/TextField/useVariantStyleMap.d.ts +9 -0
  566. package/build/typescript/Tooltip/Beaks/Beak.d.ts +3 -0
  567. package/build/typescript/Tooltip/Beaks/BeakProps.d.ts +4 -0
  568. package/build/typescript/Tooltip/Beaks/HorizontalLargeBeak.d.ts +3 -0
  569. package/build/typescript/Tooltip/Beaks/HorizontalSmallBeak.d.ts +3 -0
  570. package/build/typescript/Tooltip/Beaks/VerticalLargeBeak.d.ts +3 -0
  571. package/build/typescript/Tooltip/Beaks/VerticalSmallBeak.d.ts +3 -0
  572. package/build/typescript/Tooltip/Beaks/index.d.ts +2 -0
  573. package/build/typescript/Tooltip/LegacyTooltip.d.ts +3 -0
  574. package/build/typescript/Tooltip/LegacyTooltipProps.d.ts +72 -0
  575. package/build/typescript/Tooltip/TooltipProps.d.ts +19 -9
  576. package/build/typescript/Tooltip/index.d.ts +2 -2
  577. package/build/typescript/index.d.ts +2 -0
  578. package/build/typescript/internal/icons/CheckCircle.d.ts +8 -0
  579. package/build/typescript/internal/icons/Clear.d.ts +8 -0
  580. package/build/typescript/internal/icons/EyeOff.d.ts +8 -0
  581. package/build/typescript/internal/icons/EyeOn.d.ts +8 -0
  582. package/build/typescript/internal/icons/InfoCircle.d.ts +8 -0
  583. package/build/typescript/internal/icons/LoadingSpinner/LoadingSpinnerProps.d.ts +9 -0
  584. package/build/typescript/internal/icons/LoadingSpinner/index.d.ts +3 -0
  585. package/build/typescript/internal/icons/LoadingSpinner/index.native.d.ts +3 -0
  586. package/build/typescript/internal/icons/LoadingSpinner/utils.d.ts +3 -0
  587. package/build/typescript/internal/icons/Search.d.ts +8 -0
  588. package/build/typescript/internal/icons/index.d.ts +7 -0
  589. package/package.json +3 -3
  590. package/src/Accordion/Accordion.tsx +75 -72
  591. package/src/Accordion/AccordionProps.ts +11 -2
  592. package/src/Accordion/LegacyAccordion.tsx +188 -0
  593. package/src/Accordion/LegacyAccordionProps.ts +34 -0
  594. package/src/Accordion/index.ts +2 -2
  595. package/src/Accordion/useVariantStyleMap.ts +127 -0
  596. package/src/Badge/Badge.tsx +23 -29
  597. package/src/Badge/BadgeProps.ts +35 -2
  598. package/src/Badge/LegacyBadge.tsx +66 -0
  599. package/src/Badge/LegacyBadgeProps.ts +40 -0
  600. package/src/Badge/index.ts +2 -2
  601. package/src/Badge/useVariantStyleMap.ts +73 -0
  602. package/src/Button/Button.tsx +72 -22
  603. package/src/Button/ButtonProps.ts +8 -0
  604. package/src/Button/useVariantStyleMap.ts +88 -9
  605. package/src/ButtonBase/ButtonBase.tsx +4 -10
  606. package/src/ButtonBase/LegacyButtonBase.tsx +135 -0
  607. package/src/ButtonBase/index.ts +2 -2
  608. package/src/Chip/Chip.tsx +26 -82
  609. package/src/Chip/ChipProps.ts +16 -7
  610. package/src/Chip/LegacyChip.tsx +116 -0
  611. package/src/Chip/LegacyChipProps.ts +33 -0
  612. package/src/Chip/index.ts +2 -2
  613. package/src/Chip/useChipStyle.ts +123 -0
  614. package/src/Dialog/Dialog.tsx +27 -69
  615. package/src/Dialog/DialogProps.ts +9 -0
  616. package/src/Dialog/LegacyDialog.tsx +198 -0
  617. package/src/Dialog/LegacyDialogProps.ts +28 -0
  618. package/src/Dialog/index.ts +2 -2
  619. package/src/Dialog/useDialogStyle.ts +90 -0
  620. package/src/DialogActions/DialogActions.tsx +2 -4
  621. package/src/DialogActions/LegacyDialogActions.tsx +23 -0
  622. package/src/DialogActions/index.ts +2 -2
  623. package/src/DialogContent/DialogContent.tsx +47 -16
  624. package/src/DialogContent/DialogContentProps.ts +5 -5
  625. package/src/DialogContent/LegacyDialogContent.tsx +30 -0
  626. package/src/DialogContent/LegacyDialogContentProps.ts +10 -0
  627. package/src/DialogContent/index.ts +2 -2
  628. package/src/DialogMedia/DialogMedia.tsx +35 -8
  629. package/src/DialogMedia/DialogMediaProps.ts +7 -10
  630. package/src/DialogMedia/LegacyDialogMedia.tsx +21 -0
  631. package/src/DialogMedia/LegacyDialogMediaProps.ts +16 -0
  632. package/src/DialogMedia/index.ts +2 -2
  633. package/src/DialogTitle/DialogTitle.tsx +46 -16
  634. package/src/DialogTitle/DialogTitleProps.ts +2 -14
  635. package/src/DialogTitle/LegacyDialogTitle.tsx +30 -0
  636. package/src/DialogTitle/LegacyDialogTitleProps.ts +16 -0
  637. package/src/DialogTitle/index.ts +2 -2
  638. package/src/Empty/Empty.tsx +108 -0
  639. package/src/Empty/EmptyProps.ts +31 -0
  640. package/src/Empty/index.ts +2 -0
  641. package/src/IconButton/LegacyIconButton.tsx +3 -2
  642. package/src/IconButton/LegacyIconButtonProps.ts +5 -0
  643. package/src/Pagination/LegacyPagination.tsx +168 -0
  644. package/src/Pagination/LegacyPaginationProps.ts +85 -0
  645. package/src/Pagination/NumberPagination.tsx +78 -0
  646. package/src/Pagination/Pagination.tsx +15 -5
  647. package/src/Pagination/PaginationProps.ts +9 -0
  648. package/src/Pagination/index.ts +2 -2
  649. package/src/PaginationItem/LegacyPaginationItem.tsx +52 -0
  650. package/src/PaginationItem/PaginationItem.tsx +2 -2
  651. package/src/Snackbar/LegacySnackbar.tsx +130 -0
  652. package/src/Snackbar/LegacySnackbarProps.ts +61 -0
  653. package/src/Snackbar/Snackbar.tsx +7 -5
  654. package/src/Snackbar/SnackbarProps.ts +11 -3
  655. package/src/Snackbar/index.ts +2 -2
  656. package/src/SnackbarContent/LegacySnackbarContent.tsx +129 -0
  657. package/src/SnackbarContent/LegacySnackbarContentProps.ts +30 -0
  658. package/src/SnackbarContent/SnackbarContent.tsx +53 -48
  659. package/src/SnackbarContent/SnackbarContentProps.ts +10 -27
  660. package/src/SnackbarContent/StatusIcon.tsx +37 -0
  661. package/src/SnackbarContent/index.ts +2 -2
  662. package/src/Tab/LegacyTab.tsx +141 -0
  663. package/src/Tab/LegacyTabProps.ts +68 -0
  664. package/src/Tab/Tab.tsx +36 -79
  665. package/src/Tab/TabIndicator.tsx +5 -2
  666. package/src/Tab/TabProps.ts +3 -18
  667. package/src/Tab/index.ts +2 -2
  668. package/src/Tab/useVariantStyleMap.ts +86 -0
  669. package/src/TabBase/LegacyTabBase.tsx +55 -0
  670. package/src/TabBase/TabBase.tsx +0 -5
  671. package/src/TabBase/index.ts +2 -2
  672. package/src/Tabs/LegacyTabIndicator.tsx +111 -0
  673. package/src/Tabs/LegacyTabIndicatorProps.ts +33 -0
  674. package/src/Tabs/LegacyTabs.tsx +225 -0
  675. package/src/Tabs/LegacyTabsProps.ts +87 -0
  676. package/src/Tabs/TabIndicator.tsx +6 -12
  677. package/src/Tabs/TabIndicatorProps.ts +0 -13
  678. package/src/Tabs/Tabs.tsx +12 -8
  679. package/src/Tabs/TabsProps.ts +12 -11
  680. package/src/Tabs/index.ts +2 -2
  681. package/src/TextField/LegacyTextField.tsx +168 -0
  682. package/src/TextField/LegacyTextFieldProps.ts +80 -0
  683. package/src/TextField/OutlinedTextField.tsx +1 -1
  684. package/src/TextField/TextField.tsx +155 -137
  685. package/src/TextField/TextFieldProps.ts +27 -57
  686. package/src/TextField/index.tsx +2 -2
  687. package/src/TextField/useVariantStyleMap.ts +100 -0
  688. package/src/Tooltip/Beaks/Beak.tsx +53 -0
  689. package/src/Tooltip/Beaks/BeakProps.ts +4 -0
  690. package/src/Tooltip/Beaks/HorizontalLargeBeak.tsx +18 -0
  691. package/src/Tooltip/Beaks/HorizontalSmallBeak.tsx +18 -0
  692. package/src/Tooltip/Beaks/VerticalLargeBeak.tsx +18 -0
  693. package/src/Tooltip/Beaks/VerticalSmallBeak.tsx +18 -0
  694. package/src/Tooltip/Beaks/index.ts +2 -0
  695. package/src/Tooltip/LegacyTooltip.tsx +167 -0
  696. package/src/Tooltip/LegacyTooltipProps.ts +86 -0
  697. package/src/Tooltip/Tooltip.tsx +114 -66
  698. package/src/Tooltip/TooltipProps.ts +28 -10
  699. package/src/Tooltip/index.ts +2 -2
  700. package/src/hooks/useCollapsibleAppBar.ts +2 -3
  701. package/src/index.ts +3 -0
  702. package/src/internal/icons/CheckCircle.tsx +20 -0
  703. package/src/internal/icons/Clear.tsx +20 -0
  704. package/src/internal/icons/EyeOff.tsx +25 -0
  705. package/src/internal/icons/EyeOn.tsx +20 -0
  706. package/src/internal/icons/InfoCircle.tsx +21 -0
  707. package/src/internal/icons/LoadingSpinner/LoadingSpinnerProps.ts +11 -0
  708. package/src/internal/icons/LoadingSpinner/index.native.tsx +31 -0
  709. package/src/internal/icons/LoadingSpinner/index.tsx +31 -0
  710. package/src/internal/icons/LoadingSpinner/loadingSpinnerGray.json +1 -0
  711. package/src/internal/icons/LoadingSpinner/loadingSpinnerWhite.json +1 -0
  712. package/src/internal/icons/LoadingSpinner/utils.ts +14 -0
  713. package/src/internal/icons/Search.tsx +15 -0
  714. package/src/internal/icons/index.ts +7 -0
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","color","indicatorSize","theme","useTheme","root","backgroundColor","palette","main","bottom","height","left","right","position","TabIndicator","styles","React","memo"],"sources":["TabIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport type { TabIndicatorColor, TabIndicatorSize } from './TabProps';\n\ntype TabIndicatorStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: (color: TabIndicatorColor, indicatorSize: TabIndicatorSize) => TabIndicatorStyles =\n function (color: TabIndicatorColor, indicatorSize): TabIndicatorStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: theme.palette[color].main,\n bottom: 0,\n height: 2,\n left: indicatorSize === 'fit-content' ? 0 : 12,\n right: indicatorSize === 'fit-content' ? 0 : 12,\n position: 'absolute',\n },\n };\n };\n\nconst TabIndicator = function TabIndicator({ indicatorSize, color }: { indicatorSize: TabIndicatorSize; color: TabIndicatorColor }) {\n const styles = useStyles(color, indicatorSize);\n\n return (\n <View\n style={styles.root}\n />\n );\n};\n\nexport default React.memo(TabIndicator);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;AAKA,MAAMA,SAA4F,GAC9F,UAAUC,KAAV,EAAoCC,aAApC,EAAuE;EACnE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAcN,KAAd,EAAqBO,IADpC;MAEFC,MAAM,EAAE,CAFN;MAGFC,MAAM,EAAE,CAHN;MAIFC,IAAI,EAAET,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAJ1C;MAKFU,KAAK,EAAEV,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAL3C;MAMFW,QAAQ,EAAE;IANR;EADH,CAAP;AAUH,CAdL;;AAgBA,MAAMC,YAAY,GAAG,SAASA,YAAT,OAA+G;EAAA,IAAzF;IAAEZ,aAAF;IAAiBD;EAAjB,CAAyF;EAChI,MAAMc,MAAM,GAAGf,SAAS,CAACC,KAAD,EAAQC,aAAR,CAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEa,MAAM,CAACV;EADlB,EADJ;AAKH,CARD;;4BAUeW,cAAA,CAAMC,IAAN,CAAWH,YAAX,C"}
1
+ {"version":3,"names":["useStyles","color","indicatorSize","theme","useTheme","root","backgroundColor","palette","main","bottom","height","left","right","position","TabIndicator","styles","React","memo"],"sources":["TabIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport type { TabIndicatorColor, TabIndicatorSize } from './LegacyTabProps';\n\ntype TabIndicatorStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: (color: TabIndicatorColor, indicatorSize: TabIndicatorSize) => TabIndicatorStyles =\n function (color: TabIndicatorColor, indicatorSize): TabIndicatorStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: theme.palette[color].main,\n bottom: 0,\n height: 2,\n left: indicatorSize === 'fit-content' ? 0 : 12,\n right: indicatorSize === 'fit-content' ? 0 : 12,\n position: 'absolute',\n },\n };\n };\n\nconst TabIndicator = function TabIndicator({\n indicatorSize,\n color,\n}: { indicatorSize: TabIndicatorSize; color: TabIndicatorColor }) {\n const styles = useStyles(color, indicatorSize);\n\n return (\n <View\n style={styles.root}\n />\n );\n};\n\nexport default React.memo(TabIndicator);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;AAKA,MAAMA,SAA4F,GAC9F,UAAUC,KAAV,EAAoCC,aAApC,EAAuE;EACnE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAcN,KAAd,EAAqBO,IADpC;MAEFC,MAAM,EAAE,CAFN;MAGFC,MAAM,EAAE,CAHN;MAIFC,IAAI,EAAET,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAJ1C;MAKFU,KAAK,EAAEV,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAL3C;MAMFW,QAAQ,EAAE;IANR;EADH,CAAP;AAUH,CAdL;;AAgBA,MAAMC,YAAY,GAAG,SAASA,YAAT,OAG6C;EAAA,IAHvB;IACvCZ,aADuC;IAEvCD;EAFuC,CAGuB;EAC9D,MAAMc,MAAM,GAAGf,SAAS,CAACC,KAAD,EAAQC,aAAR,CAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEa,MAAM,CAACV;EADlB,EADJ;AAKH,CAXD;;4BAaeW,cAAA,CAAMC,IAAN,CAAWH,YAAX,C"}
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tabVariants = void 0;
7
+ const tabVariants = ['default', 'circular', 'bottom-navigation'];
8
+ exports.tabVariants = tabVariants;
2
9
  //# sourceMappingURL=TabProps.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["TabProps.ts"],"sourcesContent":["import React from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport type { TabBaseProps } from '../TabBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport type TabVariant = 'primary' | 'secondary' | 'tertiary' | 'bottom-navigation' | 'contained';\nexport type TabIndicatorColor = 'primary' | 'secondary';\nexport type TabIndicatorSize = 'full' | 'fit-content';\n\nexport default interface TabProps extends OverridableComponentProps<TabBaseProps, {\n /**\n * If `true`, the badge is visible.\n * @default false\n */\n badgeVisible?: boolean;\n\n /**\n * The label of the Tab.\n */\n children: string | React.ReactElement;\n\n /**\n * If `true`, the indicator is enabled.\n * @default false\n */\n enableIndicator?: boolean;\n\n /**\n * If `true`, the component is selected.\n * @default false\n */\n selected?: boolean;\n\n /**\n * Element placed before the children.\n */\n icon?: React.ReactElement;\n\n /**\n * Tab indicator color\n * @default 'primary'\n */\n indicatorColor?: TabIndicatorColor;\n\n /**\n * The size of tab indicator.\n * 'full' adjusts the indicator to the size of the Tab,\n * while 'fit-content' adjusts the indicator to the size of the content inside the Tab.\n * @default 'full'\n */\n indicatorSize?: TabIndicatorSize;\n\n /**\n * If supplied, use this icon on selected state.\n */\n selectedIcon?: React.ReactElement;\n\n /**\n * The variant to use.\n * @default 'primary'\n */\n variant?: TabVariant;\n\n /**\n * Function to be passed to the child component's onLayout prop.\n */\n onTabInnerLayout?: (event: LayoutChangeEvent) => void;\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":["tabVariants"],"sources":["TabProps.ts"],"sourcesContent":["import React from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport type { TabBaseProps } from '../TabBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport const tabVariants = ['default', 'circular', 'bottom-navigation'] as const;\nexport type TabVariant = typeof tabVariants[number];\n\nexport default interface TabProps extends OverridableComponentProps<TabBaseProps, {\n /**\n * If `true`, the badge is visible.\n * @default false\n */\n badgeVisible?: boolean;\n\n /**\n * The label of the Tab.\n */\n children: string | React.ReactElement;\n\n /**\n * If `true`, the indicator is enabled.\n * @default false\n */\n enableIndicator?: boolean;\n\n /**\n * If `true`, the component is selected.\n * @default false\n */\n selected?: boolean;\n\n /**\n * Element placed before the children.\n */\n icon?: React.ReactElement;\n\n /**\n * If supplied, use this icon on selected state.\n */\n selectedIcon?: React.ReactElement;\n\n /**\n * The variant to use.\n * @default 'default'\n */\n variant?: TabVariant;\n\n /**\n * Function to be passed to the child component's onLayout prop.\n */\n onTabInnerLayout?: (event: LayoutChangeEvent) => void;\n}> {}\n"],"mappings":";;;;;;AAKO,MAAMA,WAAW,GAAG,CAAC,SAAD,EAAY,UAAZ,EAAwB,mBAAxB,CAApB"}
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _Tab.default;
9
+ return _LegacyTab.default;
10
10
  }
11
11
  });
12
12
 
13
- var _Tab = _interopRequireDefault(require("./Tab"));
13
+ var _LegacyTab = _interopRequireDefault(require("./LegacyTab"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Tab';\nexport type { default as TabProps, TabVariant, TabIndicatorSize } from './TabProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyTab';\nexport type { default as TabProps, TabVariant, TabIndicatorSize } from './LegacyTabProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = useVariantStyleMap;
7
+
8
+ var _react = require("react");
9
+
10
+ var _styles = require("@fountain-ui/styles");
11
+
12
+ var _styles2 = require("../styles");
13
+
14
+ function useVariantStyleMap(variant, selected) {
15
+ const theme = (0, _styles2.useTheme)();
16
+ return (0, _react.useMemo)(() => {
17
+ switch (variant) {
18
+ case 'circular':
19
+ return {
20
+ container: {
21
+ paddingHorizontal: theme.spacing(0.75),
22
+ paddingVertical: theme.spacing(1)
23
+ },
24
+ inner: {
25
+ backgroundColor: selected ? theme.palette.fill.base : theme.palette.fill.weaker,
26
+ borderRadius: theme.shape.radius.full,
27
+ paddingHorizontal: theme.spacing(4),
28
+ paddingVertical: theme.spacing(1.75)
29
+ },
30
+ label: (0, _styles2.createFontStyle)(theme, {
31
+ selector: _ => (0, _styles.typographyOf)({
32
+ fontSize: 14,
33
+ lineHeight: 18.2,
34
+ fontFamily: 'Pretendard-SemiBold',
35
+ letterSpacing: 0
36
+ }),
37
+ color: selected ? theme.palette.text.strongInverse : theme.palette.text.strong
38
+ })
39
+ };
40
+
41
+ case 'bottom-navigation':
42
+ return {
43
+ container: {
44
+ alignItems: 'center',
45
+ height: 49,
46
+ justifyContent: 'flex-start',
47
+ paddingTop: theme.spacing(2.625),
48
+ width: 48
49
+ },
50
+ label: (0, _styles2.createFontStyle)(theme, {
51
+ selector: _ => (0, _styles.typographyOf)({
52
+ fontSize: 10,
53
+ lineHeight: 10,
54
+ fontFamily: 'Pretendard-Medium',
55
+ letterSpacing: -0.1
56
+ }),
57
+ color: selected ? theme.palette.text.strong : theme.palette.text.base
58
+ })
59
+ };
60
+
61
+ case 'default':
62
+ default:
63
+ return {
64
+ container: {
65
+ padding: theme.spacing(2.5)
66
+ },
67
+ label: (0, _styles2.createFontStyle)(theme, {
68
+ selector: _ => (0, _styles.typographyOf)({
69
+ fontSize: 15,
70
+ lineHeight: 18.75,
71
+ fontFamily: 'Pretendard-SemiBold',
72
+ letterSpacing: 0
73
+ }),
74
+ color: selected ? theme.palette.text.strong : theme.palette.text.base
75
+ })
76
+ };
77
+ }
78
+ }, [theme, variant, selected]);
79
+ }
80
+ //# sourceMappingURL=useVariantStyleMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useVariantStyleMap","variant","selected","theme","useTheme","useMemo","container","paddingHorizontal","spacing","paddingVertical","inner","backgroundColor","palette","fill","base","weaker","borderRadius","shape","radius","full","label","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","strongInverse","strong","alignItems","height","justifyContent","paddingTop","width","padding"],"sources":["useVariantStyleMap.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { TextStyle } from 'react-native';\nimport type { FountainUiStyle } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport { createFontStyle, useTheme } from '../styles';\nimport type { TabVariant } from './TabProps';\n\ninterface VariantStyle {\n container: FountainUiStyle;\n inner?: FountainUiStyle;\n label: TextStyle;\n}\n\nexport default function useVariantStyleMap(variant: TabVariant, selected: boolean): VariantStyle {\n const theme = useTheme();\n\n return useMemo<VariantStyle>(() => {\n switch (variant) {\n case 'circular':\n return {\n container: {\n paddingHorizontal: theme.spacing(0.75),\n paddingVertical: theme.spacing(1),\n },\n inner: {\n backgroundColor: selected\n ? theme.palette.fill.base\n : theme.palette.fill.weaker,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(1.75),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 18.2,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strongInverse\n : theme.palette.text.strong,\n }),\n };\n case 'bottom-navigation':\n return {\n container: {\n alignItems: 'center',\n height: 49,\n justifyContent: 'flex-start',\n paddingTop: theme.spacing(2.625),\n width: 48,\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 10,\n lineHeight: 10,\n fontFamily: 'Pretendard-Medium',\n letterSpacing: -0.1,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n case 'default':\n default:\n return {\n container: {\n padding: theme.spacing(2.5),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 15,\n lineHeight: 18.75,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n }\n }, [theme, variant, selected]);\n}\n"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AASe,SAASA,kBAAT,CAA4BC,OAA5B,EAAiDC,QAAjD,EAAkF;EAC7F,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO,IAAAC,cAAA,EAAsB,MAAM;IAC/B,QAAQJ,OAAR;MACI,KAAK,UAAL;QACI,OAAO;UACHK,SAAS,EAAE;YACPC,iBAAiB,EAAEJ,KAAK,CAACK,OAAN,CAAc,IAAd,CADZ;YAEPC,eAAe,EAAEN,KAAK,CAACK,OAAN,CAAc,CAAd;UAFV,CADR;UAKHE,KAAK,EAAE;YACHC,eAAe,EAAET,QAAQ,GACnBC,KAAK,CAACS,OAAN,CAAcC,IAAd,CAAmBC,IADA,GAEnBX,KAAK,CAACS,OAAN,CAAcC,IAAd,CAAmBE,MAHtB;YAIHC,YAAY,EAAEb,KAAK,CAACc,KAAN,CAAYC,MAAZ,CAAmBC,IAJ9B;YAKHZ,iBAAiB,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd,CALhB;YAMHC,eAAe,EAAEN,KAAK,CAACK,OAAN,CAAc,IAAd;UANd,CALJ;UAaHY,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,IAFc;cAG1BC,UAAU,EAAE,qBAHc;cAI1BC,aAAa,EAAE;YAJW,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBC,aADV,GAET5B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE;UATC,CAAvB;QAbJ,CAAP;;MAyBJ,KAAK,mBAAL;QACI,OAAO;UACH1B,SAAS,EAAE;YACP2B,UAAU,EAAE,QADL;YAEPC,MAAM,EAAE,EAFD;YAGPC,cAAc,EAAE,YAHT;YAIPC,UAAU,EAAEjC,KAAK,CAACK,OAAN,CAAc,KAAd,CAJL;YAKP6B,KAAK,EAAE;UALA,CADR;UAQHjB,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,EAFc;cAG1BC,UAAU,EAAE,mBAHc;cAI1BC,aAAa,EAAE,CAAC;YAJU,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QARJ,CAAP;;MAoBJ,KAAK,SAAL;MACA;QACI,OAAO;UACHR,SAAS,EAAE;YACPgC,OAAO,EAAEnC,KAAK,CAACK,OAAN,CAAc,GAAd;UADF,CADR;UAIHY,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,KAFc;cAG1BC,UAAU,EAAE,qBAHc;cAI1BC,aAAa,EAAE;YAJW,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QAJJ,CAAP;IAlDR;EAmEH,CApEM,EAoEJ,CAACX,KAAD,EAAQF,OAAR,EAAiBC,QAAjB,CApEI,CAAP;AAqEH"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = TabBase;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _styles = require("@fountain-ui/styles");
11
+
12
+ var _styles2 = require("../styles");
13
+
14
+ var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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); }
19
+
20
+ const useStyles = function () {
21
+ const theme = (0, _styles2.useTheme)();
22
+ return {
23
+ root: {
24
+ alignItems: 'center',
25
+ justifyContent: 'center',
26
+ paddingHorizontal: theme.spacing(3),
27
+ minHeight: 48
28
+ },
29
+ row: {
30
+ flexDirection: 'row'
31
+ },
32
+ column: {
33
+ flexDirection: 'column'
34
+ }
35
+ };
36
+ };
37
+
38
+ function TabBase(props) {
39
+ const {
40
+ children,
41
+ disabled = false,
42
+ onPress,
43
+ selected = false,
44
+ vertical = false,
45
+ style,
46
+ ...otherProps
47
+ } = props;
48
+ const styles = useStyles();
49
+ return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
50
+ onPress: onPress,
51
+ disabled: disabled,
52
+ style: (0, _styles.css)([styles.root, vertical ? styles.column : styles.row, style])
53
+ }, otherProps), children);
54
+ }
55
+
56
+ ;
57
+ //# sourceMappingURL=LegacyTabBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","justifyContent","paddingHorizontal","spacing","minHeight","row","flexDirection","column","TabBase","props","children","disabled","onPress","selected","vertical","style","otherProps","styles","css"],"sources":["LegacyTabBase.tsx"],"sourcesContent":["import React from 'react';\nimport { css, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport ButtonBase from '../ButtonBase';\nimport type TabBaseProps from './TabBaseProps';\n\ntype TabBaseStyles = NamedStylesStringUnion<'root' | 'row' | 'column'>;\n\nconst useStyles: UseStyles<TabBaseStyles> = function (): TabBaseStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(3),\n minHeight: 48,\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n };\n};\n\nexport default function TabBase(props: TabBaseProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n vertical = false,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <ButtonBase\n onPress={onPress}\n disabled={disabled}\n style={css([\n styles.root,\n vertical ? styles.column : styles.row,\n style,\n ])}\n {...otherProps}\n >\n {children}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAmC,GAAG,YAA2B;EACnE,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,cAAc,EAAE,QAFd;MAGFC,iBAAiB,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CAHjB;MAIFC,SAAS,EAAE;IAJT,CADH;IAOHC,GAAG,EAAE;MACDC,aAAa,EAAE;IADd,CAPF;IAUHC,MAAM,EAAE;MACJD,aAAa,EAAE;IADX;EAVL,CAAP;AAcH,CAjBD;;AAmBe,SAASE,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,QADE;IAEFC,QAAQ,GAAG,KAFT;IAGFC,OAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,QAAQ,GAAG,KALT;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGrB,SAAS,EAAxB;EAEA,oBACI,6BAAC,mBAAD;IACI,OAAO,EAAEgB,OADb;IAEI,QAAQ,EAAED,QAFd;IAGI,KAAK,EAAE,IAAAO,WAAA,EAAI,CACPD,MAAM,CAAClB,IADA,EAEPe,QAAQ,GAAGG,MAAM,CAACV,MAAV,GAAmBU,MAAM,CAACZ,GAF3B,EAGPU,KAHO,CAAJ;EAHX,GAQQC,UARR,GAUKN,QAVL,CADJ;AAcH;;AAAA"}
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _styles = require("@fountain-ui/styles");
11
11
 
12
- var _styles2 = require("../styles");
13
-
14
12
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -18,13 +16,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
18
16
  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); }
19
17
 
20
18
  const useStyles = function () {
21
- const theme = (0, _styles2.useTheme)();
22
19
  return {
23
20
  root: {
24
21
  alignItems: 'center',
25
- justifyContent: 'center',
26
- paddingHorizontal: theme.spacing(3),
27
- minHeight: 48
22
+ justifyContent: 'center'
28
23
  },
29
24
  row: {
30
25
  flexDirection: 'row'
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","justifyContent","paddingHorizontal","spacing","minHeight","row","flexDirection","column","TabBase","props","children","disabled","onPress","selected","vertical","style","otherProps","styles","css"],"sources":["TabBase.tsx"],"sourcesContent":["import React from 'react';\nimport { css, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport ButtonBase from '../ButtonBase';\nimport type TabBaseProps from './TabBaseProps';\n\ntype TabBaseStyles = NamedStylesStringUnion<'root' | 'row' | 'column'>;\n\nconst useStyles: UseStyles<TabBaseStyles> = function (): TabBaseStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(3),\n minHeight: 48,\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n };\n};\n\nexport default function TabBase(props: TabBaseProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n vertical = false,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <ButtonBase\n onPress={onPress}\n disabled={disabled}\n style={css([\n styles.root,\n vertical ? styles.column : styles.row,\n style,\n ])}\n {...otherProps}\n >\n {children}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAmC,GAAG,YAA2B;EACnE,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,cAAc,EAAE,QAFd;MAGFC,iBAAiB,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CAHjB;MAIFC,SAAS,EAAE;IAJT,CADH;IAOHC,GAAG,EAAE;MACDC,aAAa,EAAE;IADd,CAPF;IAUHC,MAAM,EAAE;MACJD,aAAa,EAAE;IADX;EAVL,CAAP;AAcH,CAjBD;;AAmBe,SAASE,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,QADE;IAEFC,QAAQ,GAAG,KAFT;IAGFC,OAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,QAAQ,GAAG,KALT;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGrB,SAAS,EAAxB;EAEA,oBACI,6BAAC,mBAAD;IACI,OAAO,EAAEgB,OADb;IAEI,QAAQ,EAAED,QAFd;IAGI,KAAK,EAAE,IAAAO,WAAA,EAAI,CACPD,MAAM,CAAClB,IADA,EAEPe,QAAQ,GAAGG,MAAM,CAACV,MAAV,GAAmBU,MAAM,CAACZ,GAF3B,EAGPU,KAHO,CAAJ;EAHX,GAQQC,UARR,GAUKN,QAVL,CADJ;AAcH;;AAAA"}
1
+ {"version":3,"names":["useStyles","root","alignItems","justifyContent","row","flexDirection","column","TabBase","props","children","disabled","onPress","selected","vertical","style","otherProps","styles","css"],"sources":["TabBase.tsx"],"sourcesContent":["import React from 'react';\nimport { css, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport type TabBaseProps from './TabBaseProps';\n\ntype TabBaseStyles = NamedStylesStringUnion<'root' | 'row' | 'column'>;\n\nconst useStyles: UseStyles<TabBaseStyles> = function (): TabBaseStyles {\n return {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n };\n};\n\nexport default function TabBase(props: TabBaseProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n vertical = false,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <ButtonBase\n onPress={onPress}\n disabled={disabled}\n style={css([\n styles.root,\n vertical ? styles.column : styles.row,\n style,\n ])}\n {...otherProps}\n >\n {children}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAmC,GAAG,YAA2B;EACnE,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,cAAc,EAAE;IAFd,CADH;IAKHC,GAAG,EAAE;MACDC,aAAa,EAAE;IADd,CALF;IAQHC,MAAM,EAAE;MACJD,aAAa,EAAE;IADX;EARL,CAAP;AAYH,CAbD;;AAee,SAASE,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,QADE;IAEFC,QAAQ,GAAG,KAFT;IAGFC,OAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,QAAQ,GAAG,KALT;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGhB,SAAS,EAAxB;EAEA,oBACI,6BAAC,mBAAD;IACI,OAAO,EAAEW,OADb;IAEI,QAAQ,EAAED,QAFd;IAGI,KAAK,EAAE,IAAAO,WAAA,EAAI,CACPD,MAAM,CAACf,IADA,EAEPY,QAAQ,GAAGG,MAAM,CAACV,MAAV,GAAmBU,MAAM,CAACZ,GAF3B,EAGPU,KAHO,CAAJ;EAHX,GAQQC,UARR,GAUKN,QAVL,CADJ;AAcH;;AAAA"}
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _TabBase.default;
9
+ return _LegacyTabBase.default;
10
10
  }
11
11
  });
12
12
 
13
- var _TabBase = _interopRequireDefault(require("./TabBase"));
13
+ var _LegacyTabBase = _interopRequireDefault(require("./LegacyTabBase"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './TabBase';\nexport type { default as TabBaseProps } from './TabBaseProps';"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyTabBase';\nexport type { default as TabBaseProps } from './TabBaseProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = TabIndicator;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _styles = require("../styles");
13
+
14
+ var _hooks = require("../hooks");
15
+
16
+ var _utils = require("../utils");
17
+
18
+ var _TabCoordinate = require("./TabCoordinate");
19
+
20
+ var _InternalContext = _interopRequireDefault(require("./InternalContext"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+
24
+ 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); }
25
+
26
+ 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; }
27
+
28
+ 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); }
29
+
30
+ const INDICATOR_WIDTH = 10;
31
+ const INDICATOR_HEIGHT = 2;
32
+ const SCROLLABLE_TABS_INSET = 12 * 2;
33
+
34
+ const useStyles = function (color) {
35
+ const theme = (0, _styles.useTheme)();
36
+ return {
37
+ root: {
38
+ backgroundColor: theme.palette[color].main,
39
+ left: 0,
40
+ bottom: 0,
41
+ width: INDICATOR_WIDTH,
42
+ height: INDICATOR_HEIGHT,
43
+ position: 'absolute'
44
+ },
45
+ disabled: {
46
+ height: 0
47
+ }
48
+ };
49
+ };
50
+
51
+ const startAnimation = (value, toValue) => {
52
+ _reactNative.Animated.timing(value, {
53
+ toValue: toValue,
54
+ duration: 300,
55
+ easing: _reactNative.Easing.bezier(0.25, 1, 0.5, 1),
56
+ useNativeDriver: _utils.isNotAndroid12
57
+ }).start();
58
+ };
59
+
60
+ function TabIndicator(props) {
61
+ const {
62
+ color = 'primary',
63
+ coordinates,
64
+ disabled,
65
+ initialIndex,
66
+ scrollable,
67
+ style,
68
+ ...otherProps
69
+ } = props;
70
+ const styles = useStyles(color);
71
+ const computeAnimationValues = (0, _react.useCallback)(currentIndex => {
72
+ const {
73
+ x1,
74
+ x2
75
+ } = coordinates[currentIndex] ?? _TabCoordinate.defaultCoordinate;
76
+ const tabWidth = x2 - x1;
77
+ const nextTranslateX = x1 + (tabWidth - INDICATOR_WIDTH) / 2;
78
+ const inset = scrollable ? SCROLLABLE_TABS_INSET : 0;
79
+ const nextScaleX = (tabWidth - inset) / INDICATOR_WIDTH;
80
+ return {
81
+ tx: nextTranslateX,
82
+ sx: nextScaleX
83
+ };
84
+ }, [coordinates, scrollable]);
85
+ const {
86
+ tx: initialTx,
87
+ sx: initialSx
88
+ } = computeAnimationValues(initialIndex);
89
+ const translateX = (0, _hooks.useAnimatedValue)(initialTx);
90
+ const scaleX = (0, _hooks.useAnimatedValue)(initialSx);
91
+ const {
92
+ indexStore
93
+ } = (0, _react.useContext)(_InternalContext.default);
94
+ (0, _react.useEffect)(() => {
95
+ const scrollToIndex = index => {
96
+ const {
97
+ tx,
98
+ sx
99
+ } = computeAnimationValues(index);
100
+ startAnimation(translateX, tx);
101
+ startAnimation(scaleX, sx);
102
+ };
103
+
104
+ scrollToIndex(indexStore.getState());
105
+ return indexStore.subscribe(scrollToIndex);
106
+ }, [computeAnimationValues, coordinates, indexStore]);
107
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, _extends({
108
+ style: [styles.root, disabled ? styles.disabled : undefined, {
109
+ transform: [{
110
+ translateX
111
+ }, {
112
+ scaleX
113
+ }]
114
+ }, style]
115
+ }, otherProps));
116
+ }
117
+
118
+ ;
119
+ //# sourceMappingURL=LegacyTabIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["INDICATOR_WIDTH","INDICATOR_HEIGHT","SCROLLABLE_TABS_INSET","useStyles","color","theme","useTheme","root","backgroundColor","palette","main","left","bottom","width","height","position","disabled","startAnimation","value","toValue","Animated","timing","duration","easing","Easing","bezier","useNativeDriver","isNotAndroid12","start","TabIndicator","props","coordinates","initialIndex","scrollable","style","otherProps","styles","computeAnimationValues","useCallback","currentIndex","x1","x2","defaultCoordinate","tabWidth","nextTranslateX","inset","nextScaleX","tx","sx","initialTx","initialSx","translateX","useAnimatedValue","scaleX","indexStore","useContext","InternalContext","useEffect","scrollToIndex","index","getState","subscribe","undefined","transform"],"sources":["LegacyTabIndicator.tsx"],"sourcesContent":["import React, { useCallback, useContext, useEffect } from 'react';\nimport { Animated, Easing } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport { useAnimatedValue } from '../hooks';\nimport { isNotAndroid12 } from '../utils';\nimport type TabIndicatorProps from './LegacyTabIndicatorProps';\nimport type { TabIndicatorColor } from './LegacyTabIndicatorProps';\nimport { defaultCoordinate } from './TabCoordinate';\nimport InternalContext from './InternalContext';\n\ntype TabIndicatorStyles = NamedStylesStringUnion<'root' | 'disabled'>;\n\nconst INDICATOR_WIDTH = 10;\nconst INDICATOR_HEIGHT = 2;\n\nconst SCROLLABLE_TABS_INSET = 12 * 2;\n\nconst useStyles: (color: TabIndicatorColor) => TabIndicatorStyles =\n function (color: TabIndicatorColor): TabIndicatorStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: theme.palette[color].main,\n left: 0,\n bottom: 0,\n width: INDICATOR_WIDTH,\n height: INDICATOR_HEIGHT,\n position: 'absolute',\n },\n disabled: {\n height: 0,\n },\n };\n };\n\nconst startAnimation = (value: Animated.Value, toValue: number) => {\n Animated.timing(value, {\n toValue: toValue,\n duration: 300,\n easing: Easing.bezier(0.25, 1, 0.5, 1),\n useNativeDriver: isNotAndroid12,\n }).start();\n};\n\nexport default function TabIndicator(props: TabIndicatorProps) {\n const {\n color = 'primary',\n coordinates,\n disabled,\n initialIndex,\n scrollable,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles(color);\n\n const computeAnimationValues = useCallback((currentIndex: number) => {\n const { x1, x2 } = coordinates[currentIndex] ?? defaultCoordinate;\n\n const tabWidth = x2 - x1;\n\n const nextTranslateX = x1 + (tabWidth - INDICATOR_WIDTH) / 2;\n\n const inset = scrollable ? SCROLLABLE_TABS_INSET : 0;\n const nextScaleX = (tabWidth - inset) / INDICATOR_WIDTH;\n\n return { tx: nextTranslateX, sx: nextScaleX };\n }, [coordinates, scrollable]);\n\n const {\n tx: initialTx,\n sx: initialSx,\n } = computeAnimationValues(initialIndex);\n\n const translateX = useAnimatedValue(initialTx);\n const scaleX = useAnimatedValue(initialSx);\n\n const { indexStore } = useContext(InternalContext);\n\n useEffect(() => {\n const scrollToIndex = (index: number) => {\n const { tx, sx } = computeAnimationValues(index);\n\n startAnimation(translateX, tx);\n startAnimation(scaleX, sx);\n };\n\n scrollToIndex(indexStore.getState());\n\n return indexStore.subscribe(scrollToIndex);\n }, [\n computeAnimationValues,\n coordinates,\n indexStore,\n ]);\n\n return (\n <Animated.View\n style={[\n styles.root,\n disabled ? styles.disabled : undefined,\n { transform: [{ translateX }, { scaleX }] },\n style,\n ]}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AAGA;;AACA;;;;;;;;;;AAIA,MAAMA,eAAe,GAAG,EAAxB;AACA,MAAMC,gBAAgB,GAAG,CAAzB;AAEA,MAAMC,qBAAqB,GAAG,KAAK,CAAnC;;AAEA,MAAMC,SAA2D,GAC7D,UAAUC,KAAV,EAAwD;EACpD,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAcL,KAAd,EAAqBM,IADpC;MAEFC,IAAI,EAAE,CAFJ;MAGFC,MAAM,EAAE,CAHN;MAIFC,KAAK,EAAEb,eAJL;MAKFc,MAAM,EAAEb,gBALN;MAMFc,QAAQ,EAAE;IANR,CADH;IASHC,QAAQ,EAAE;MACNF,MAAM,EAAE;IADF;EATP,CAAP;AAaH,CAjBL;;AAmBA,MAAMG,cAAc,GAAG,CAACC,KAAD,EAAwBC,OAAxB,KAA4C;EAC/DC,qBAAA,CAASC,MAAT,CAAgBH,KAAhB,EAAuB;IACnBC,OAAO,EAAEA,OADU;IAEnBG,QAAQ,EAAE,GAFS;IAGnBC,MAAM,EAAEC,mBAAA,CAAOC,MAAP,CAAc,IAAd,EAAoB,CAApB,EAAuB,GAAvB,EAA4B,CAA5B,CAHW;IAInBC,eAAe,EAAEC;EAJE,CAAvB,EAKGC,KALH;AAMH,CAPD;;AASe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACF1B,KAAK,GAAG,SADN;IAEF2B,WAFE;IAGFf,QAHE;IAIFgB,YAJE;IAKFC,UALE;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFL,KARJ;EAUA,MAAMM,MAAM,GAAGjC,SAAS,CAACC,KAAD,CAAxB;EAEA,MAAMiC,sBAAsB,GAAG,IAAAC,kBAAA,EAAaC,YAAD,IAA0B;IACjE,MAAM;MAAEC,EAAF;MAAMC;IAAN,IAAaV,WAAW,CAACQ,YAAD,CAAX,IAA6BG,gCAAhD;IAEA,MAAMC,QAAQ,GAAGF,EAAE,GAAGD,EAAtB;IAEA,MAAMI,cAAc,GAAGJ,EAAE,GAAG,CAACG,QAAQ,GAAG3C,eAAZ,IAA+B,CAA3D;IAEA,MAAM6C,KAAK,GAAGZ,UAAU,GAAG/B,qBAAH,GAA2B,CAAnD;IACA,MAAM4C,UAAU,GAAG,CAACH,QAAQ,GAAGE,KAAZ,IAAqB7C,eAAxC;IAEA,OAAO;MAAE+C,EAAE,EAAEH,cAAN;MAAsBI,EAAE,EAAEF;IAA1B,CAAP;EACH,CAX8B,EAW5B,CAACf,WAAD,EAAcE,UAAd,CAX4B,CAA/B;EAaA,MAAM;IACFc,EAAE,EAAEE,SADF;IAEFD,EAAE,EAAEE;EAFF,IAGFb,sBAAsB,CAACL,YAAD,CAH1B;EAKA,MAAMmB,UAAU,GAAG,IAAAC,uBAAA,EAAiBH,SAAjB,CAAnB;EACA,MAAMI,MAAM,GAAG,IAAAD,uBAAA,EAAiBF,SAAjB,CAAf;EAEA,MAAM;IAAEI;EAAF,IAAiB,IAAAC,iBAAA,EAAWC,wBAAX,CAAvB;EAEA,IAAAC,gBAAA,EAAU,MAAM;IACZ,MAAMC,aAAa,GAAIC,KAAD,IAAmB;MACrC,MAAM;QAAEZ,EAAF;QAAMC;MAAN,IAAaX,sBAAsB,CAACsB,KAAD,CAAzC;MAEA1C,cAAc,CAACkC,UAAD,EAAaJ,EAAb,CAAd;MACA9B,cAAc,CAACoC,MAAD,EAASL,EAAT,CAAd;IACH,CALD;;IAOAU,aAAa,CAACJ,UAAU,CAACM,QAAX,EAAD,CAAb;IAEA,OAAON,UAAU,CAACO,SAAX,CAAqBH,aAArB,CAAP;EACH,CAXD,EAWG,CACCrB,sBADD,EAECN,WAFD,EAGCuB,UAHD,CAXH;EAiBA,oBACI,6BAAC,qBAAD,CAAU,IAAV;IACI,KAAK,EAAE,CACHlB,MAAM,CAAC7B,IADJ,EAEHS,QAAQ,GAAGoB,MAAM,CAACpB,QAAV,GAAqB8C,SAF1B,EAGH;MAAEC,SAAS,EAAE,CAAC;QAAEZ;MAAF,CAAD,EAAiB;QAAEE;MAAF,CAAjB;IAAb,CAHG,EAIHnB,KAJG;EADX,GAOQC,UAPR,EADJ;AAWH;;AAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=LegacyTabIndicatorProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["LegacyTabIndicatorProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type TabCoordinate from './TabCoordinate';\n\nexport type TabIndicatorColor = 'primary' | 'secondary';\n\nexport default interface TabIndicatorProps extends OverridableComponentProps<ViewProps, {\n /**\n * Tab item coordinates.\n */\n coordinates: TabCoordinate[];\n\n /**\n * Indicator color.\n * @default: 'primary'\n */\n color?: TabIndicatorColor;\n\n /**\n * If `true`, the indicator is disabled.\n */\n disabled: boolean;\n\n /**\n * Initial index.\n */\n initialIndex: number;\n\n /**\n * If `true`, the tab will be able to scroll.\n */\n scrollable: boolean;\n}> {}\n"],"mappings":""}
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _styles = require("../styles");
13
+
14
+ var _hooks = require("../hooks");
15
+
16
+ var _LegacyTabIndicator = _interopRequireDefault(require("./LegacyTabIndicator"));
17
+
18
+ var _ScrollableTabsView = _interopRequireDefault(require("./ScrollableTabsView"));
19
+
20
+ var _IndexAwareTab = _interopRequireDefault(require("./IndexAwareTab"));
21
+
22
+ var _useTabCoordinates = _interopRequireDefault(require("./useTabCoordinates"));
23
+
24
+ var _useTabInnerContentsWidth = _interopRequireDefault(require("./useTabInnerContentsWidth"));
25
+
26
+ var _useIndexStore = _interopRequireDefault(require("./useIndexStore"));
27
+
28
+ var _InternalContext = _interopRequireDefault(require("./InternalContext"));
29
+
30
+ var _utils = require("./utils");
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
+
34
+ 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); }
35
+
36
+ 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; }
37
+
38
+ const useStyles = function () {
39
+ const theme = (0, _styles.useTheme)();
40
+ return {
41
+ root: {},
42
+ fixedRoot: {
43
+ flexDirection: 'row'
44
+ },
45
+ fixedTab: {
46
+ flex: 1
47
+ },
48
+ scrollableContainer: {
49
+ paddingHorizontal: theme.spacing(1)
50
+ }
51
+ };
52
+ };
53
+
54
+ const Tabs = /*#__PURE__*/(0, _react.forwardRef)(function Tabs(props, ref) {
55
+ var _React$Children$map;
56
+
57
+ const {
58
+ children,
59
+ indicatorColor = 'primary',
60
+ initialIndex = 0,
61
+ disableIndicator = false,
62
+ indicatorSize = 'full',
63
+ keyboardDismissMode = 'none',
64
+ keyboardShouldPersistTaps = 'never',
65
+ onChange,
66
+ scrollable = false,
67
+ scrollViewContentContainerStyle,
68
+ style,
69
+ variant = 'primary',
70
+ UNSTABLE_sharedIndex,
71
+ onTabSelected
72
+ } = props;
73
+ const fallbackSharedIndex = (0, _hooks.useSyncAnimatedValue)({
74
+ initialValue: initialIndex
75
+ });
76
+ const sharedIndex = UNSTABLE_sharedIndex ?? fallbackSharedIndex;
77
+ const realInitialIndex = sharedIndex.initialValue;
78
+ const currentIndexRef = (0, _react.useRef)(initialIndex);
79
+
80
+ const setTab = newIndex => {
81
+ const currentIndex = currentIndexRef.current;
82
+ onTabSelected === null || onTabSelected === void 0 ? void 0 : onTabSelected(newIndex, currentIndex);
83
+ sharedIndex.animatedValue.setValue(newIndex);
84
+ };
85
+
86
+ (0, _react.useImperativeHandle)(ref, () => ({
87
+ setTab
88
+ }), [sharedIndex]);
89
+ const styles = useStyles();
90
+ const [outerCoordinates, updateCoordinate] = (0, _useTabCoordinates.default)(children);
91
+ const [innerContentsWidthList, updateInnerContentsWidth] = (0, _useTabInnerContentsWidth.default)(children);
92
+ const canRenderIndicator = indicatorSize === 'fit-content' ? (0, _utils.isEveryTabCoordinatesDefined)(innerContentsWidthList, children) : (0, _utils.isEveryTabCoordinatesDefined)(outerCoordinates, children);
93
+ const indexStore = (0, _useIndexStore.default)(sharedIndex);
94
+ const coordinates = (0, _react.useMemo)(() => {
95
+ if (indicatorSize !== 'fit-content') {
96
+ return outerCoordinates;
97
+ }
98
+
99
+ return innerContentsWidthList.map((innerContentWidth, idx) => {
100
+ const {
101
+ x1: outerX1,
102
+ x2: outerX2
103
+ } = outerCoordinates[idx];
104
+ const tabWidth = outerX2 - outerX1;
105
+ const distanceFromParent = (tabWidth - innerContentWidth) / 2;
106
+ const indicatorStartCoordinate = outerX1 + distanceFromParent;
107
+ return {
108
+ x1: indicatorStartCoordinate,
109
+ x2: indicatorStartCoordinate + innerContentWidth
110
+ };
111
+ });
112
+ }, [outerCoordinates, innerContentsWidthList, variant]);
113
+ (0, _react.useEffect)(() => {
114
+ return indexStore.subscribe(newIndex => {
115
+ onChange === null || onChange === void 0 ? void 0 : onChange(newIndex);
116
+ currentIndexRef.current = newIndex;
117
+ });
118
+ }, [indexStore, onChange]);
119
+ const tabElements = (_React$Children$map = _react.default.Children.map(children, (child, index) => {
120
+ if (!child) {
121
+ return null;
122
+ }
123
+
124
+ const onTabInnerLayout = event => {
125
+ const {
126
+ width
127
+ } = event.nativeEvent.layout;
128
+ updateInnerContentsWidth(index, width);
129
+ };
130
+
131
+ const onLayout = event => {
132
+ var _child$props$onLayout, _child$props;
133
+
134
+ const {
135
+ x,
136
+ width
137
+ } = event.nativeEvent.layout;
138
+ updateCoordinate(index, x, width); // @ts-ignore
139
+
140
+ (_child$props$onLayout = (_child$props = child.props).onLayout) === null || _child$props$onLayout === void 0 ? void 0 : _child$props$onLayout.call(_child$props, event);
141
+ };
142
+
143
+ const onMouseDown = e => {
144
+ if (keyboardShouldPersistTaps === 'always') {
145
+ e.preventDefault();
146
+ }
147
+ };
148
+
149
+ const onPress = () => {
150
+ var _child$props$onPress, _child$props2;
151
+
152
+ setTab(index); // @ts-ignore
153
+
154
+ (_child$props$onPress = (_child$props2 = child.props).onPress) === null || _child$props$onPress === void 0 ? void 0 : _child$props$onPress.call(_child$props2);
155
+ }; // @ts-ignore
156
+
157
+
158
+ const tabElement = /*#__PURE__*/(0, _react.cloneElement)(child, {
159
+ enableIndicator: !disableIndicator && !canRenderIndicator,
160
+ indicatorColor,
161
+ onTabInnerLayout,
162
+ onLayout,
163
+ onPress,
164
+ onMouseDown,
165
+ variant,
166
+ indicatorSize,
167
+ style: scrollable ? undefined : styles.fixedTab
168
+ });
169
+ return /*#__PURE__*/_react.default.createElement(_IndexAwareTab.default, {
170
+ children: tabElement,
171
+ index: index,
172
+ initialIndex: realInitialIndex
173
+ });
174
+ })) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.filter(Boolean);
175
+ const tabIndicator = canRenderIndicator ? /*#__PURE__*/_react.default.createElement(_LegacyTabIndicator.default, {
176
+ color: indicatorColor,
177
+ coordinates: coordinates,
178
+ disabled: disableIndicator,
179
+ initialIndex: realInitialIndex,
180
+ scrollable: scrollable
181
+ }) : null;
182
+ return /*#__PURE__*/_react.default.createElement(_InternalContext.default.Provider, {
183
+ value: {
184
+ indexStore
185
+ }
186
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
187
+ style: (0, _styles.css)([styles.root, scrollable ? undefined : styles.fixedRoot, style])
188
+ }, scrollable ? /*#__PURE__*/_react.default.createElement(_ScrollableTabsView.default, {
189
+ automaticallyAdjustContentInsets: false,
190
+ bounces: false,
191
+ contentContainerStyle: (0, _styles.css)([styles.scrollableContainer, scrollViewContentContainerStyle]),
192
+ coordinates: coordinates,
193
+ directionalLockEnabled: true,
194
+ horizontal: true,
195
+ initialIndex: realInitialIndex,
196
+ scrollsToTop: false,
197
+ showsHorizontalScrollIndicator: false,
198
+ showsVerticalScrollIndicator: false,
199
+ keyboardDismissMode: keyboardDismissMode,
200
+ keyboardShouldPersistTaps: keyboardShouldPersistTaps
201
+ }, tabElements, tabIndicator) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, tabElements, tabIndicator)));
202
+ });
203
+ var _default = Tabs;
204
+ exports.default = _default;
205
+ //# sourceMappingURL=LegacyTabs.js.map