@fountain-ui/core 2.0.0-beta.98 → 3.0.0-alpha.1

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 (760) hide show
  1. package/build/commonjs/Accordion/Accordion.js +0 -1
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/index.js +2 -2
  4. package/build/commonjs/Accordion/index.js.map +1 -1
  5. package/build/commonjs/Accordion/useVariantStyleMap.js +4 -2
  6. package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
  7. package/build/commonjs/AppBar/AppBar.js +8 -8
  8. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  9. package/build/commonjs/AppBar/AppBarProps.js +7 -0
  10. package/build/commonjs/AppBar/AppBarProps.js.map +1 -1
  11. package/build/commonjs/AppBar/index.js.map +1 -1
  12. package/build/commonjs/Badge/index.js +2 -2
  13. package/build/commonjs/Badge/index.js.map +1 -1
  14. package/build/commonjs/Badge/useVariantStyleMap.js +15 -6
  15. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  16. package/build/commonjs/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +10 -23
  17. package/build/commonjs/BottomSheetActions/BottomSheetActions.js.map +1 -0
  18. package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js +2 -0
  19. package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
  20. package/build/commonjs/BottomSheetActions/index.js +16 -0
  21. package/build/commonjs/BottomSheetActions/index.js.map +1 -0
  22. package/build/commonjs/{SvgIcon/LegacySvgIcon.js → BottomSheetContent/BottomSheetContent.js} +23 -23
  23. package/build/commonjs/BottomSheetContent/BottomSheetContent.js.map +1 -0
  24. package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js +2 -0
  25. package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
  26. package/build/commonjs/BottomSheetContent/index.js +16 -0
  27. package/build/commonjs/BottomSheetContent/index.js.map +1 -0
  28. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +73 -0
  29. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
  30. package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
  31. package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
  32. package/build/commonjs/{CheckboxGroup → BottomSheetTitle}/index.js +2 -2
  33. package/build/commonjs/BottomSheetTitle/index.js.map +1 -0
  34. package/build/commonjs/Button/Button.js +5 -8
  35. package/build/commonjs/Button/Button.js.map +1 -1
  36. package/build/commonjs/Button/index.js +2 -2
  37. package/build/commonjs/Button/index.js.map +1 -1
  38. package/build/commonjs/Button/useVariantStyleMap.js +10 -2
  39. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  40. package/build/commonjs/Checkbox/Checkbox.js +0 -1
  41. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  42. package/build/commonjs/Checkbox/index.js +2 -2
  43. package/build/commonjs/Checkbox/index.js.map +1 -1
  44. package/build/commonjs/Checkbox/useVariantStyleMap.js +4 -1
  45. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  46. package/build/commonjs/Chip/index.js +2 -2
  47. package/build/commonjs/Chip/index.js.map +1 -1
  48. package/build/commonjs/Chip/useChipStyle.js +15 -3
  49. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  50. package/build/commonjs/Dialog/Dialog.js +10 -21
  51. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  52. package/build/commonjs/Dialog/DialogContext.js +19 -0
  53. package/build/commonjs/Dialog/DialogContext.js.map +1 -0
  54. package/build/commonjs/Dialog/index.js +24 -2
  55. package/build/commonjs/Dialog/index.js.map +1 -1
  56. package/build/commonjs/Dialog/useDialogSectionStyle.js +40 -0
  57. package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -0
  58. package/build/commonjs/Dialog/useDialogStyle.js +16 -18
  59. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
  60. package/build/commonjs/DialogActions/DialogActions.js +17 -2
  61. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  62. package/build/commonjs/DialogActions/index.js +2 -2
  63. package/build/commonjs/DialogActions/index.js.map +1 -1
  64. package/build/commonjs/DialogContent/DialogContent.js +5 -1
  65. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  66. package/build/commonjs/DialogContent/index.js +2 -2
  67. package/build/commonjs/DialogContent/index.js.map +1 -1
  68. package/build/commonjs/DialogMedia/DialogMedia.js +1 -0
  69. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  70. package/build/commonjs/DialogMedia/index.js +2 -2
  71. package/build/commonjs/DialogMedia/index.js.map +1 -1
  72. package/build/commonjs/DialogTitle/DialogTitle.js +4 -1
  73. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  74. package/build/commonjs/DialogTitle/index.js +2 -2
  75. package/build/commonjs/DialogTitle/index.js.map +1 -1
  76. package/build/commonjs/Divider/index.js +2 -2
  77. package/build/commonjs/Divider/index.js.map +1 -1
  78. package/build/commonjs/Empty/Empty.js +2 -2
  79. package/build/commonjs/Empty/Empty.js.map +1 -1
  80. package/build/commonjs/IconButton/IconButton.js +26 -2
  81. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  82. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  83. package/build/commonjs/IconButton/index.js +2 -2
  84. package/build/commonjs/IconButton/index.js.map +1 -1
  85. package/build/commonjs/ListItemText/ListItemText.js +4 -4
  86. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  87. package/build/commonjs/ListSubheader/ListSubheader.js +2 -2
  88. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  89. package/build/commonjs/Pagination/Pagination.js +0 -4
  90. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  91. package/build/commonjs/Pagination/index.js +2 -2
  92. package/build/commonjs/Pagination/index.js.map +1 -1
  93. package/build/commonjs/Radio/Radio.js +1 -2
  94. package/build/commonjs/Radio/Radio.js.map +1 -1
  95. package/build/commonjs/Radio/index.js +2 -2
  96. package/build/commonjs/Radio/index.js.map +1 -1
  97. package/build/commonjs/RadioGroup/index.js +2 -2
  98. package/build/commonjs/RadioGroup/index.js.map +1 -1
  99. package/build/commonjs/ShadowView/ShadowView.native.js +17 -5
  100. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  101. package/build/commonjs/Snackbar/Snackbar.js +1 -1
  102. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  103. package/build/commonjs/Snackbar/index.js +2 -2
  104. package/build/commonjs/Snackbar/index.js.map +1 -1
  105. package/build/commonjs/SnackbarContent/SnackbarContent.js +15 -5
  106. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  107. package/build/commonjs/SnackbarContent/StatusIcon.js +0 -2
  108. package/build/commonjs/SnackbarContent/StatusIcon.js.map +1 -1
  109. package/build/commonjs/SnackbarContent/index.js +2 -2
  110. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  111. package/build/commonjs/SvgIcon/index.js +2 -2
  112. package/build/commonjs/SvgIcon/index.js.map +1 -1
  113. package/build/commonjs/Tab/Tab.js +1 -1
  114. package/build/commonjs/Tab/Tab.js.map +1 -1
  115. package/build/commonjs/Tab/index.js +2 -2
  116. package/build/commonjs/Tab/index.js.map +1 -1
  117. package/build/commonjs/TabBase/index.js +2 -2
  118. package/build/commonjs/TabBase/index.js.map +1 -1
  119. package/build/commonjs/Tabs/Tabs.js +15 -3
  120. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  121. package/build/commonjs/Tabs/TabsProps.js +3 -1
  122. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  123. package/build/commonjs/Tabs/index.js +2 -2
  124. package/build/commonjs/Tabs/index.js.map +1 -1
  125. package/build/commonjs/TextField/TextField.js +0 -1
  126. package/build/commonjs/TextField/TextField.js.map +1 -1
  127. package/build/commonjs/TextField/index.js +2 -2
  128. package/build/commonjs/TextField/index.js.map +1 -1
  129. package/build/commonjs/Toggle/Toggle.js +5 -3
  130. package/build/commonjs/Toggle/Toggle.js.map +1 -1
  131. package/build/commonjs/Toolbar/Toolbar.js +17 -6
  132. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  133. package/build/commonjs/Toolbar/ToolbarProps.js +7 -0
  134. package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
  135. package/build/commonjs/Toolbar/index.js.map +1 -1
  136. package/build/commonjs/Tooltip/Tooltip.js +6 -1
  137. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  138. package/build/commonjs/Tooltip/index.js +2 -2
  139. package/build/commonjs/Tooltip/index.js.map +1 -1
  140. package/build/commonjs/Typography/index.js +2 -2
  141. package/build/commonjs/Typography/index.js.map +1 -1
  142. package/build/commonjs/index.js +63 -21
  143. package/build/commonjs/index.js.map +1 -1
  144. package/build/commonjs/internal/icons/LoadingSpinner/index.js +14 -4
  145. package/build/commonjs/internal/icons/LoadingSpinner/index.js.map +1 -1
  146. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js +14 -4
  147. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js.map +1 -1
  148. package/build/commonjs/utils/createSvgIcon.js +2 -10
  149. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  150. package/build/module/Accordion/Accordion.js +0 -1
  151. package/build/module/Accordion/Accordion.js.map +1 -1
  152. package/build/module/Accordion/index.js +1 -1
  153. package/build/module/Accordion/index.js.map +1 -1
  154. package/build/module/Accordion/useVariantStyleMap.js +4 -2
  155. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  156. package/build/module/AppBar/AppBar.js +8 -8
  157. package/build/module/AppBar/AppBar.js.map +1 -1
  158. package/build/module/AppBar/AppBarProps.js +1 -1
  159. package/build/module/AppBar/AppBarProps.js.map +1 -1
  160. package/build/module/AppBar/index.js.map +1 -1
  161. package/build/module/Badge/index.js +1 -1
  162. package/build/module/Badge/index.js.map +1 -1
  163. package/build/module/Badge/useVariantStyleMap.js +15 -6
  164. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  165. package/build/module/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +9 -20
  166. package/build/module/BottomSheetActions/BottomSheetActions.js.map +1 -0
  167. package/build/module/BottomSheetActions/BottomSheetActionsProps.js +2 -0
  168. package/build/module/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
  169. package/build/module/BottomSheetActions/index.js +2 -0
  170. package/build/module/BottomSheetActions/index.js.map +1 -0
  171. package/build/module/BottomSheetContent/BottomSheetContent.js +32 -0
  172. package/build/module/BottomSheetContent/BottomSheetContent.js.map +1 -0
  173. package/build/module/BottomSheetContent/BottomSheetContentProps.js +2 -0
  174. package/build/module/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
  175. package/build/module/BottomSheetContent/index.js +2 -0
  176. package/build/module/BottomSheetContent/index.js.map +1 -0
  177. package/build/module/BottomSheetTitle/BottomSheetTitle.js +60 -0
  178. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
  179. package/build/module/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
  180. package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
  181. package/build/module/BottomSheetTitle/index.js +2 -0
  182. package/build/module/BottomSheetTitle/index.js.map +1 -0
  183. package/build/module/Button/Button.js +6 -9
  184. package/build/module/Button/Button.js.map +1 -1
  185. package/build/module/Button/index.js +1 -1
  186. package/build/module/Button/index.js.map +1 -1
  187. package/build/module/Button/useVariantStyleMap.js +10 -2
  188. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  189. package/build/module/Checkbox/Checkbox.js +0 -1
  190. package/build/module/Checkbox/Checkbox.js.map +1 -1
  191. package/build/module/Checkbox/index.js +1 -1
  192. package/build/module/Checkbox/index.js.map +1 -1
  193. package/build/module/Checkbox/useVariantStyleMap.js +4 -1
  194. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  195. package/build/module/Chip/index.js +1 -1
  196. package/build/module/Chip/index.js.map +1 -1
  197. package/build/module/Chip/useChipStyle.js +14 -3
  198. package/build/module/Chip/useChipStyle.js.map +1 -1
  199. package/build/module/Dialog/Dialog.js +11 -19
  200. package/build/module/Dialog/Dialog.js.map +1 -1
  201. package/build/module/Dialog/DialogContext.js +7 -0
  202. package/build/module/Dialog/DialogContext.js.map +1 -0
  203. package/build/module/Dialog/index.js +3 -1
  204. package/build/module/Dialog/index.js.map +1 -1
  205. package/build/module/Dialog/useDialogSectionStyle.js +29 -0
  206. package/build/module/Dialog/useDialogSectionStyle.js.map +1 -0
  207. package/build/module/Dialog/useDialogStyle.js +16 -18
  208. package/build/module/Dialog/useDialogStyle.js.map +1 -1
  209. package/build/module/DialogActions/DialogActions.js +18 -3
  210. package/build/module/DialogActions/DialogActions.js.map +1 -1
  211. package/build/module/DialogActions/index.js +1 -1
  212. package/build/module/DialogActions/index.js.map +1 -1
  213. package/build/module/DialogContent/DialogContent.js +4 -1
  214. package/build/module/DialogContent/DialogContent.js.map +1 -1
  215. package/build/module/DialogContent/index.js +1 -1
  216. package/build/module/DialogContent/index.js.map +1 -1
  217. package/build/module/DialogMedia/DialogMedia.js +1 -0
  218. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  219. package/build/module/DialogMedia/index.js +1 -1
  220. package/build/module/DialogMedia/index.js.map +1 -1
  221. package/build/module/DialogTitle/DialogTitle.js +3 -1
  222. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  223. package/build/module/DialogTitle/index.js +1 -1
  224. package/build/module/DialogTitle/index.js.map +1 -1
  225. package/build/module/Divider/index.js +1 -1
  226. package/build/module/Divider/index.js.map +1 -1
  227. package/build/module/Empty/Empty.js +2 -2
  228. package/build/module/Empty/Empty.js.map +1 -1
  229. package/build/module/IconButton/IconButton.js +25 -3
  230. package/build/module/IconButton/IconButton.js.map +1 -1
  231. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  232. package/build/module/IconButton/index.js +1 -1
  233. package/build/module/IconButton/index.js.map +1 -1
  234. package/build/module/ListItemText/ListItemText.js +4 -4
  235. package/build/module/ListItemText/ListItemText.js.map +1 -1
  236. package/build/module/ListSubheader/ListSubheader.js +2 -2
  237. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  238. package/build/module/Pagination/Pagination.js +0 -4
  239. package/build/module/Pagination/Pagination.js.map +1 -1
  240. package/build/module/Pagination/index.js +1 -1
  241. package/build/module/Pagination/index.js.map +1 -1
  242. package/build/module/Radio/Radio.js +1 -2
  243. package/build/module/Radio/Radio.js.map +1 -1
  244. package/build/module/Radio/index.js +1 -1
  245. package/build/module/Radio/index.js.map +1 -1
  246. package/build/module/RadioGroup/index.js +1 -1
  247. package/build/module/RadioGroup/index.js.map +1 -1
  248. package/build/module/ShadowView/ShadowView.native.js +17 -5
  249. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  250. package/build/module/Snackbar/Snackbar.js +1 -1
  251. package/build/module/Snackbar/Snackbar.js.map +1 -1
  252. package/build/module/Snackbar/index.js +1 -1
  253. package/build/module/Snackbar/index.js.map +1 -1
  254. package/build/module/SnackbarContent/SnackbarContent.js +16 -6
  255. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  256. package/build/module/SnackbarContent/StatusIcon.js +0 -2
  257. package/build/module/SnackbarContent/StatusIcon.js.map +1 -1
  258. package/build/module/SnackbarContent/index.js +1 -1
  259. package/build/module/SnackbarContent/index.js.map +1 -1
  260. package/build/module/SvgIcon/index.js +1 -1
  261. package/build/module/SvgIcon/index.js.map +1 -1
  262. package/build/module/Tab/Tab.js +1 -1
  263. package/build/module/Tab/Tab.js.map +1 -1
  264. package/build/module/Tab/index.js +1 -1
  265. package/build/module/Tab/index.js.map +1 -1
  266. package/build/module/TabBase/index.js +1 -1
  267. package/build/module/TabBase/index.js.map +1 -1
  268. package/build/module/Tabs/Tabs.js +15 -3
  269. package/build/module/Tabs/Tabs.js.map +1 -1
  270. package/build/module/Tabs/TabsProps.js +1 -0
  271. package/build/module/Tabs/TabsProps.js.map +1 -1
  272. package/build/module/Tabs/index.js +1 -1
  273. package/build/module/Tabs/index.js.map +1 -1
  274. package/build/module/TextField/TextField.js +0 -1
  275. package/build/module/TextField/TextField.js.map +1 -1
  276. package/build/module/TextField/index.js +1 -1
  277. package/build/module/TextField/index.js.map +1 -1
  278. package/build/module/Toggle/Toggle.js +5 -3
  279. package/build/module/Toggle/Toggle.js.map +1 -1
  280. package/build/module/Toolbar/Toolbar.js +16 -6
  281. package/build/module/Toolbar/Toolbar.js.map +1 -1
  282. package/build/module/Toolbar/ToolbarProps.js +1 -1
  283. package/build/module/Toolbar/ToolbarProps.js.map +1 -1
  284. package/build/module/Toolbar/index.js.map +1 -1
  285. package/build/module/Tooltip/Tooltip.js +6 -1
  286. package/build/module/Tooltip/Tooltip.js.map +1 -1
  287. package/build/module/Tooltip/index.js +1 -1
  288. package/build/module/Tooltip/index.js.map +1 -1
  289. package/build/module/Typography/index.js +1 -1
  290. package/build/module/Typography/index.js.map +1 -1
  291. package/build/module/index.js +6 -2
  292. package/build/module/index.js.map +1 -1
  293. package/build/module/internal/icons/LoadingSpinner/index.js +13 -4
  294. package/build/module/internal/icons/LoadingSpinner/index.js.map +1 -1
  295. package/build/module/internal/icons/LoadingSpinner/index.native.js +13 -4
  296. package/build/module/internal/icons/LoadingSpinner/index.native.js.map +1 -1
  297. package/build/module/utils/createSvgIcon.js +2 -9
  298. package/build/module/utils/createSvgIcon.js.map +1 -1
  299. package/build/typescript/Accordion/index.d.ts +2 -2
  300. package/build/typescript/AppBar/AppBarProps.d.ts +2 -1
  301. package/build/typescript/Badge/index.d.ts +2 -2
  302. package/build/typescript/BottomSheetActions/BottomSheetActions.d.ts +3 -0
  303. package/build/typescript/BottomSheetActions/BottomSheetActionsProps.d.ts +4 -0
  304. package/build/typescript/BottomSheetActions/index.d.ts +2 -0
  305. package/build/typescript/BottomSheetContent/BottomSheetContent.d.ts +3 -0
  306. package/build/typescript/BottomSheetContent/BottomSheetContentProps.d.ts +4 -0
  307. package/build/typescript/BottomSheetContent/index.d.ts +2 -0
  308. package/build/typescript/BottomSheetTitle/BottomSheetTitle.d.ts +3 -0
  309. package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +12 -0
  310. package/build/typescript/BottomSheetTitle/index.d.ts +2 -0
  311. package/build/typescript/Button/index.d.ts +2 -2
  312. package/build/typescript/Checkbox/index.d.ts +2 -2
  313. package/build/typescript/Chip/index.d.ts +2 -2
  314. package/build/typescript/Dialog/DialogContext.d.ts +7 -0
  315. package/build/typescript/Dialog/index.d.ts +4 -2
  316. package/build/typescript/Dialog/useDialogSectionStyle.d.ts +2 -0
  317. package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
  318. package/build/typescript/DialogActions/index.d.ts +1 -1
  319. package/build/typescript/DialogContent/index.d.ts +2 -2
  320. package/build/typescript/DialogMedia/index.d.ts +2 -2
  321. package/build/typescript/DialogTitle/index.d.ts +2 -2
  322. package/build/typescript/Divider/index.d.ts +2 -2
  323. package/build/typescript/IconButton/IconButtonProps.d.ts +5 -0
  324. package/build/typescript/IconButton/index.d.ts +2 -2
  325. package/build/typescript/Pagination/index.d.ts +2 -2
  326. package/build/typescript/Radio/index.d.ts +2 -2
  327. package/build/typescript/RadioGroup/index.d.ts +1 -1
  328. package/build/typescript/Snackbar/index.d.ts +2 -2
  329. package/build/typescript/SnackbarContent/index.d.ts +2 -2
  330. package/build/typescript/SvgIcon/index.d.ts +2 -2
  331. package/build/typescript/Tab/index.d.ts +2 -2
  332. package/build/typescript/TabBase/index.d.ts +1 -1
  333. package/build/typescript/Tabs/Tabs.d.ts +1 -1
  334. package/build/typescript/Tabs/TabsProps.d.ts +8 -1
  335. package/build/typescript/Tabs/index.d.ts +2 -2
  336. package/build/typescript/TextField/index.d.ts +2 -2
  337. package/build/typescript/Toolbar/ToolbarProps.d.ts +9 -2
  338. package/build/typescript/Tooltip/index.d.ts +2 -2
  339. package/build/typescript/Typography/index.d.ts +2 -2
  340. package/build/typescript/index.d.ts +6 -2
  341. package/build/typescript/internal/icons/Check.d.ts +125 -2
  342. package/build/typescript/internal/icons/CheckCircle.d.ts +125 -2
  343. package/build/typescript/internal/icons/Checkbox.d.ts +125 -2
  344. package/build/typescript/internal/icons/CheckboxChecked.d.ts +125 -2
  345. package/build/typescript/internal/icons/CheckboxOn.d.ts +125 -2
  346. package/build/typescript/internal/icons/ChevronDown.d.ts +125 -2
  347. package/build/typescript/internal/icons/ChevronLeft.d.ts +125 -2
  348. package/build/typescript/internal/icons/ChevronRight.d.ts +125 -2
  349. package/build/typescript/internal/icons/Clear.d.ts +125 -2
  350. package/build/typescript/internal/icons/Close.d.ts +125 -2
  351. package/build/typescript/internal/icons/EyeOff.d.ts +125 -2
  352. package/build/typescript/internal/icons/EyeOn.d.ts +125 -2
  353. package/build/typescript/internal/icons/InfoCircle.d.ts +125 -2
  354. package/build/typescript/internal/icons/Radio.d.ts +125 -2
  355. package/build/typescript/internal/icons/RadioChecked.d.ts +125 -2
  356. package/build/typescript/internal/icons/Search.d.ts +125 -2
  357. package/build/typescript/utils/createSvgIcon.d.ts +1 -5
  358. package/package.json +4 -4
  359. package/src/Accordion/Accordion.tsx +0 -1
  360. package/src/Accordion/index.ts +2 -2
  361. package/src/Accordion/useVariantStyleMap.ts +2 -0
  362. package/src/AppBar/AppBar.tsx +7 -13
  363. package/src/AppBar/AppBarProps.ts +2 -1
  364. package/src/AppBar/index.ts +1 -1
  365. package/src/Badge/index.ts +2 -2
  366. package/src/Badge/useVariantStyleMap.ts +17 -7
  367. package/src/BottomSheetActions/BottomSheetActions.tsx +42 -0
  368. package/src/BottomSheetActions/BottomSheetActionsProps.ts +4 -0
  369. package/src/BottomSheetActions/index.ts +2 -0
  370. package/src/BottomSheetContent/BottomSheetContent.tsx +45 -0
  371. package/src/BottomSheetContent/BottomSheetContentProps.ts +4 -0
  372. package/src/BottomSheetContent/index.ts +2 -0
  373. package/src/BottomSheetTitle/BottomSheetTitle.tsx +83 -0
  374. package/src/BottomSheetTitle/BottomSheetTitleProps.ts +12 -0
  375. package/src/BottomSheetTitle/index.ts +2 -0
  376. package/src/Button/Button.tsx +11 -13
  377. package/src/Button/index.ts +2 -2
  378. package/src/Button/useVariantStyleMap.ts +10 -2
  379. package/src/Checkbox/Checkbox.tsx +0 -1
  380. package/src/Checkbox/index.ts +2 -2
  381. package/src/Checkbox/useVariantStyleMap.ts +3 -0
  382. package/src/Chip/index.ts +2 -2
  383. package/src/Chip/useChipStyle.ts +13 -2
  384. package/src/Dialog/Dialog.tsx +9 -19
  385. package/src/Dialog/DialogContext.tsx +14 -0
  386. package/src/Dialog/index.ts +4 -2
  387. package/src/Dialog/useDialogSectionStyle.ts +31 -0
  388. package/src/Dialog/useDialogStyle.ts +14 -22
  389. package/src/DialogActions/DialogActions.tsx +28 -3
  390. package/src/DialogActions/index.ts +1 -1
  391. package/src/DialogContent/DialogContent.tsx +5 -0
  392. package/src/DialogContent/index.ts +2 -2
  393. package/src/DialogMedia/DialogMedia.tsx +1 -0
  394. package/src/DialogMedia/index.ts +2 -2
  395. package/src/DialogTitle/DialogTitle.tsx +4 -0
  396. package/src/DialogTitle/index.ts +2 -2
  397. package/src/Divider/index.ts +2 -2
  398. package/src/Empty/Empty.tsx +2 -3
  399. package/src/IconButton/IconButton.tsx +33 -3
  400. package/src/IconButton/IconButtonProps.ts +6 -0
  401. package/src/IconButton/index.ts +2 -2
  402. package/src/ListItemText/ListItemText.tsx +4 -4
  403. package/src/ListSubheader/ListSubheader.tsx +2 -2
  404. package/src/Pagination/Pagination.tsx +0 -4
  405. package/src/Pagination/index.ts +2 -2
  406. package/src/Radio/Radio.tsx +1 -4
  407. package/src/Radio/index.ts +2 -2
  408. package/src/RadioGroup/index.ts +1 -1
  409. package/src/ShadowView/ShadowView.native.tsx +21 -10
  410. package/src/Snackbar/Snackbar.tsx +1 -1
  411. package/src/Snackbar/index.ts +2 -2
  412. package/src/SnackbarContent/SnackbarContent.tsx +21 -11
  413. package/src/SnackbarContent/StatusIcon.tsx +0 -2
  414. package/src/SnackbarContent/index.ts +2 -2
  415. package/src/SvgIcon/index.ts +2 -2
  416. package/src/Tab/Tab.tsx +1 -1
  417. package/src/Tab/index.ts +2 -2
  418. package/src/TabBase/index.ts +1 -1
  419. package/src/Tabs/Tabs.tsx +17 -3
  420. package/src/Tabs/TabsProps.ts +10 -1
  421. package/src/Tabs/index.ts +2 -2
  422. package/src/TextField/TextField.tsx +0 -1
  423. package/src/TextField/index.tsx +2 -2
  424. package/src/Toggle/Toggle.tsx +7 -5
  425. package/src/Toolbar/Toolbar.tsx +13 -6
  426. package/src/Toolbar/ToolbarProps.ts +11 -2
  427. package/src/Toolbar/index.ts +1 -1
  428. package/src/Tooltip/Tooltip.tsx +6 -1
  429. package/src/Tooltip/index.ts +2 -2
  430. package/src/Typography/index.ts +2 -2
  431. package/src/index.ts +9 -3
  432. package/src/internal/icons/LoadingSpinner/index.native.tsx +17 -7
  433. package/src/internal/icons/LoadingSpinner/index.tsx +17 -7
  434. package/src/utils/createSvgIcon.tsx +3 -21
  435. package/build/commonjs/Accordion/LegacyAccordion.js +0 -171
  436. package/build/commonjs/Accordion/LegacyAccordion.js.map +0 -1
  437. package/build/commonjs/Accordion/LegacyAccordionProps.js +0 -2
  438. package/build/commonjs/Accordion/LegacyAccordionProps.js.map +0 -1
  439. package/build/commonjs/Badge/LegacyBadge.js +0 -61
  440. package/build/commonjs/Badge/LegacyBadge.js.map +0 -1
  441. package/build/commonjs/Badge/LegacyBadgeProps.js +0 -2
  442. package/build/commonjs/Badge/LegacyBadgeProps.js.map +0 -1
  443. package/build/commonjs/Button/LegacyButton.js +0 -144
  444. package/build/commonjs/Button/LegacyButton.js.map +0 -1
  445. package/build/commonjs/Button/LegacyButtonProps.js +0 -2
  446. package/build/commonjs/Button/LegacyButtonProps.js.map +0 -1
  447. package/build/commonjs/Checkbox/LegacyCheckbox.js +0 -65
  448. package/build/commonjs/Checkbox/LegacyCheckbox.js.map +0 -1
  449. package/build/commonjs/Checkbox/LegacyCheckboxProps.js +0 -2
  450. package/build/commonjs/Checkbox/LegacyCheckboxProps.js.map +0 -1
  451. package/build/commonjs/CheckboxGroup/CheckboxGroup.js +0 -50
  452. package/build/commonjs/CheckboxGroup/CheckboxGroup.js.map +0 -1
  453. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js +0 -2
  454. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
  455. package/build/commonjs/CheckboxGroup/index.js.map +0 -1
  456. package/build/commonjs/Chip/LegacyChip.js +0 -98
  457. package/build/commonjs/Chip/LegacyChip.js.map +0 -1
  458. package/build/commonjs/Chip/LegacyChipProps.js +0 -2
  459. package/build/commonjs/Chip/LegacyChipProps.js.map +0 -1
  460. package/build/commonjs/Dialog/LegacyDialog.js +0 -181
  461. package/build/commonjs/Dialog/LegacyDialog.js.map +0 -1
  462. package/build/commonjs/Dialog/LegacyDialogProps.js +0 -2
  463. package/build/commonjs/Dialog/LegacyDialogProps.js.map +0 -1
  464. package/build/commonjs/DialogActions/LegacyDialogActions.js +0 -30
  465. package/build/commonjs/DialogActions/LegacyDialogActions.js.map +0 -1
  466. package/build/commonjs/DialogContent/LegacyDialogContent.js +0 -36
  467. package/build/commonjs/DialogContent/LegacyDialogContent.js.map +0 -1
  468. package/build/commonjs/DialogContent/LegacyDialogContentProps.js +0 -2
  469. package/build/commonjs/DialogContent/LegacyDialogContentProps.js.map +0 -1
  470. package/build/commonjs/DialogMedia/LegacyDialogMedia.js +0 -33
  471. package/build/commonjs/DialogMedia/LegacyDialogMedia.js.map +0 -1
  472. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js +0 -2
  473. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
  474. package/build/commonjs/DialogTitle/LegacyDialogTitle.js +0 -36
  475. package/build/commonjs/DialogTitle/LegacyDialogTitle.js.map +0 -1
  476. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js +0 -2
  477. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
  478. package/build/commonjs/Divider/LegacyDivider.js +0 -114
  479. package/build/commonjs/Divider/LegacyDivider.js.map +0 -1
  480. package/build/commonjs/Divider/LegacyDividerProps.js +0 -2
  481. package/build/commonjs/Divider/LegacyDividerProps.js.map +0 -1
  482. package/build/commonjs/IconButton/LegacyIconButton.js +0 -89
  483. package/build/commonjs/IconButton/LegacyIconButton.js.map +0 -1
  484. package/build/commonjs/IconButton/LegacyIconButtonProps.js +0 -2
  485. package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +0 -1
  486. package/build/commonjs/Pagination/LegacyPagination.js +0 -145
  487. package/build/commonjs/Pagination/LegacyPagination.js.map +0 -1
  488. package/build/commonjs/Pagination/LegacyPaginationProps.js +0 -2
  489. package/build/commonjs/Pagination/LegacyPaginationProps.js.map +0 -1
  490. package/build/commonjs/PaginationItem/LegacyPaginationItem.js.map +0 -1
  491. package/build/commonjs/Radio/LegacyRadio.js +0 -82
  492. package/build/commonjs/Radio/LegacyRadio.js.map +0 -1
  493. package/build/commonjs/Radio/LegacyRadioProps.js +0 -2
  494. package/build/commonjs/Radio/LegacyRadioProps.js.map +0 -1
  495. package/build/commonjs/RadioGroup/LegacyRadioGroup.js +0 -31
  496. package/build/commonjs/RadioGroup/LegacyRadioGroup.js.map +0 -1
  497. package/build/commonjs/Snackbar/LegacySnackbar.js +0 -134
  498. package/build/commonjs/Snackbar/LegacySnackbar.js.map +0 -1
  499. package/build/commonjs/Snackbar/LegacySnackbarProps.js +0 -2
  500. package/build/commonjs/Snackbar/LegacySnackbarProps.js.map +0 -1
  501. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js +0 -105
  502. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js.map +0 -1
  503. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js +0 -2
  504. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
  505. package/build/commonjs/SvgIcon/LegacySvgIcon.js.map +0 -1
  506. package/build/commonjs/SvgIcon/LegacySvgIconProps.js +0 -2
  507. package/build/commonjs/SvgIcon/LegacySvgIconProps.js.map +0 -1
  508. package/build/commonjs/Tab/LegacyTab.js +0 -126
  509. package/build/commonjs/Tab/LegacyTab.js.map +0 -1
  510. package/build/commonjs/Tab/LegacyTabProps.js +0 -2
  511. package/build/commonjs/Tab/LegacyTabProps.js.map +0 -1
  512. package/build/commonjs/Tab/TabIndicator.js +0 -44
  513. package/build/commonjs/Tab/TabIndicator.js.map +0 -1
  514. package/build/commonjs/TabBase/LegacyTabBase.js +0 -57
  515. package/build/commonjs/TabBase/LegacyTabBase.js.map +0 -1
  516. package/build/commonjs/Tabs/LegacyTabIndicator.js +0 -120
  517. package/build/commonjs/Tabs/LegacyTabIndicator.js.map +0 -1
  518. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js +0 -2
  519. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js.map +0 -1
  520. package/build/commonjs/Tabs/LegacyTabs.js +0 -207
  521. package/build/commonjs/Tabs/LegacyTabs.js.map +0 -1
  522. package/build/commonjs/Tabs/LegacyTabsProps.js +0 -2
  523. package/build/commonjs/Tabs/LegacyTabsProps.js.map +0 -1
  524. package/build/commonjs/TextField/LegacyTextField.js +0 -195
  525. package/build/commonjs/TextField/LegacyTextField.js.map +0 -1
  526. package/build/commonjs/TextField/LegacyTextFieldProps.js +0 -2
  527. package/build/commonjs/TextField/LegacyTextFieldProps.js.map +0 -1
  528. package/build/commonjs/TextField/OutlinedTextField.js +0 -190
  529. package/build/commonjs/TextField/OutlinedTextField.js.map +0 -1
  530. package/build/commonjs/Tooltip/LegacyTooltip.js +0 -147
  531. package/build/commonjs/Tooltip/LegacyTooltip.js.map +0 -1
  532. package/build/commonjs/Tooltip/LegacyTooltipProps.js +0 -2
  533. package/build/commonjs/Tooltip/LegacyTooltipProps.js.map +0 -1
  534. package/build/commonjs/Tooltip/UpArrow.js +0 -34
  535. package/build/commonjs/Tooltip/UpArrow.js.map +0 -1
  536. package/build/commonjs/Tooltip/UpArrowProps.js +0 -2
  537. package/build/commonjs/Tooltip/UpArrowProps.js.map +0 -1
  538. package/build/commonjs/Typography/LegacyTypography.js +0 -142
  539. package/build/commonjs/Typography/LegacyTypography.js.map +0 -1
  540. package/build/commonjs/Typography/LegacyTypographyProps.js +0 -2
  541. package/build/commonjs/Typography/LegacyTypographyProps.js.map +0 -1
  542. package/build/module/Accordion/LegacyAccordion.js +0 -148
  543. package/build/module/Accordion/LegacyAccordion.js.map +0 -1
  544. package/build/module/Accordion/LegacyAccordionProps.js +0 -2
  545. package/build/module/Accordion/LegacyAccordionProps.js.map +0 -1
  546. package/build/module/Badge/LegacyBadge.js +0 -48
  547. package/build/module/Badge/LegacyBadge.js.map +0 -1
  548. package/build/module/Badge/LegacyBadgeProps.js +0 -2
  549. package/build/module/Badge/LegacyBadgeProps.js.map +0 -1
  550. package/build/module/Button/LegacyButton.js +0 -127
  551. package/build/module/Button/LegacyButton.js.map +0 -1
  552. package/build/module/Button/LegacyButtonProps.js +0 -2
  553. package/build/module/Button/LegacyButtonProps.js.map +0 -1
  554. package/build/module/Checkbox/LegacyCheckbox.js +0 -52
  555. package/build/module/Checkbox/LegacyCheckbox.js.map +0 -1
  556. package/build/module/Checkbox/LegacyCheckboxProps.js +0 -2
  557. package/build/module/Checkbox/LegacyCheckboxProps.js.map +0 -1
  558. package/build/module/CheckboxGroup/CheckboxGroup.js +0 -34
  559. package/build/module/CheckboxGroup/CheckboxGroup.js.map +0 -1
  560. package/build/module/CheckboxGroup/CheckboxGroupProps.js +0 -2
  561. package/build/module/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
  562. package/build/module/CheckboxGroup/index.js +0 -2
  563. package/build/module/CheckboxGroup/index.js.map +0 -1
  564. package/build/module/Chip/LegacyChip.js +0 -84
  565. package/build/module/Chip/LegacyChip.js.map +0 -1
  566. package/build/module/Chip/LegacyChipProps.js +0 -2
  567. package/build/module/Chip/LegacyChipProps.js.map +0 -1
  568. package/build/module/Dialog/LegacyDialog.js +0 -160
  569. package/build/module/Dialog/LegacyDialog.js.map +0 -1
  570. package/build/module/Dialog/LegacyDialogProps.js +0 -2
  571. package/build/module/Dialog/LegacyDialogProps.js.map +0 -1
  572. package/build/module/DialogActions/LegacyDialogActions.js +0 -17
  573. package/build/module/DialogActions/LegacyDialogActions.js.map +0 -1
  574. package/build/module/DialogContent/LegacyDialogContent.js +0 -22
  575. package/build/module/DialogContent/LegacyDialogContent.js.map +0 -1
  576. package/build/module/DialogContent/LegacyDialogContentProps.js +0 -2
  577. package/build/module/DialogContent/LegacyDialogContentProps.js.map +0 -1
  578. package/build/module/DialogMedia/LegacyDialogMedia.js +0 -21
  579. package/build/module/DialogMedia/LegacyDialogMedia.js.map +0 -1
  580. package/build/module/DialogMedia/LegacyDialogMediaProps.js +0 -2
  581. package/build/module/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
  582. package/build/module/DialogTitle/LegacyDialogTitle.js +0 -22
  583. package/build/module/DialogTitle/LegacyDialogTitle.js.map +0 -1
  584. package/build/module/DialogTitle/LegacyDialogTitleProps.js +0 -2
  585. package/build/module/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
  586. package/build/module/Divider/LegacyDivider.js +0 -100
  587. package/build/module/Divider/LegacyDivider.js.map +0 -1
  588. package/build/module/Divider/LegacyDividerProps.js +0 -2
  589. package/build/module/Divider/LegacyDividerProps.js.map +0 -1
  590. package/build/module/IconButton/LegacyIconButton.js +0 -74
  591. package/build/module/IconButton/LegacyIconButton.js.map +0 -1
  592. package/build/module/IconButton/LegacyIconButtonProps.js +0 -2
  593. package/build/module/IconButton/LegacyIconButtonProps.js.map +0 -1
  594. package/build/module/Pagination/LegacyPagination.js +0 -129
  595. package/build/module/Pagination/LegacyPagination.js.map +0 -1
  596. package/build/module/Pagination/LegacyPaginationProps.js +0 -2
  597. package/build/module/Pagination/LegacyPaginationProps.js.map +0 -1
  598. package/build/module/PaginationItem/LegacyPaginationItem.js.map +0 -1
  599. package/build/module/Radio/LegacyRadio.js +0 -63
  600. package/build/module/Radio/LegacyRadio.js.map +0 -1
  601. package/build/module/Radio/LegacyRadioProps.js +0 -2
  602. package/build/module/Radio/LegacyRadioProps.js.map +0 -1
  603. package/build/module/RadioGroup/LegacyRadioGroup.js +0 -18
  604. package/build/module/RadioGroup/LegacyRadioGroup.js.map +0 -1
  605. package/build/module/Snackbar/LegacySnackbar.js +0 -107
  606. package/build/module/Snackbar/LegacySnackbar.js.map +0 -1
  607. package/build/module/Snackbar/LegacySnackbarProps.js +0 -2
  608. package/build/module/Snackbar/LegacySnackbarProps.js.map +0 -1
  609. package/build/module/SnackbarContent/LegacySnackbarContent.js +0 -84
  610. package/build/module/SnackbarContent/LegacySnackbarContent.js.map +0 -1
  611. package/build/module/SnackbarContent/LegacySnackbarContentProps.js +0 -2
  612. package/build/module/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
  613. package/build/module/SvgIcon/LegacySvgIcon.js +0 -30
  614. package/build/module/SvgIcon/LegacySvgIcon.js.map +0 -1
  615. package/build/module/SvgIcon/LegacySvgIconProps.js +0 -2
  616. package/build/module/SvgIcon/LegacySvgIconProps.js.map +0 -1
  617. package/build/module/Tab/LegacyTab.js +0 -105
  618. package/build/module/Tab/LegacyTab.js.map +0 -1
  619. package/build/module/Tab/LegacyTabProps.js +0 -2
  620. package/build/module/Tab/LegacyTabProps.js.map +0 -1
  621. package/build/module/Tab/TabIndicator.js +0 -31
  622. package/build/module/Tab/TabIndicator.js.map +0 -1
  623. package/build/module/TabBase/LegacyTabBase.js +0 -44
  624. package/build/module/TabBase/LegacyTabBase.js.map +0 -1
  625. package/build/module/Tabs/LegacyTabIndicator.js +0 -99
  626. package/build/module/Tabs/LegacyTabIndicator.js.map +0 -1
  627. package/build/module/Tabs/LegacyTabIndicatorProps.js +0 -2
  628. package/build/module/Tabs/LegacyTabIndicatorProps.js.map +0 -1
  629. package/build/module/Tabs/LegacyTabs.js +0 -182
  630. package/build/module/Tabs/LegacyTabs.js.map +0 -1
  631. package/build/module/Tabs/LegacyTabsProps.js +0 -2
  632. package/build/module/Tabs/LegacyTabsProps.js.map +0 -1
  633. package/build/module/TextField/LegacyTextField.js +0 -169
  634. package/build/module/TextField/LegacyTextField.js.map +0 -1
  635. package/build/module/TextField/LegacyTextFieldProps.js +0 -2
  636. package/build/module/TextField/LegacyTextFieldProps.js.map +0 -1
  637. package/build/module/TextField/OutlinedTextField.js +0 -174
  638. package/build/module/TextField/OutlinedTextField.js.map +0 -1
  639. package/build/module/Tooltip/LegacyTooltip.js +0 -121
  640. package/build/module/Tooltip/LegacyTooltip.js.map +0 -1
  641. package/build/module/Tooltip/LegacyTooltipProps.js +0 -2
  642. package/build/module/Tooltip/LegacyTooltipProps.js.map +0 -1
  643. package/build/module/Tooltip/UpArrow.js +0 -22
  644. package/build/module/Tooltip/UpArrow.js.map +0 -1
  645. package/build/module/Tooltip/UpArrowProps.js +0 -2
  646. package/build/module/Tooltip/UpArrowProps.js.map +0 -1
  647. package/build/module/Typography/LegacyTypography.js +0 -126
  648. package/build/module/Typography/LegacyTypography.js.map +0 -1
  649. package/build/module/Typography/LegacyTypographyProps.js +0 -2
  650. package/build/module/Typography/LegacyTypographyProps.js.map +0 -1
  651. package/build/typescript/Accordion/LegacyAccordion.d.ts +0 -3
  652. package/build/typescript/Accordion/LegacyAccordionProps.d.ts +0 -28
  653. package/build/typescript/Badge/LegacyBadge.d.ts +0 -3
  654. package/build/typescript/Badge/LegacyBadgeProps.d.ts +0 -34
  655. package/build/typescript/Button/LegacyButton.d.ts +0 -3
  656. package/build/typescript/Button/LegacyButtonProps.d.ts +0 -51
  657. package/build/typescript/Checkbox/LegacyCheckbox.d.ts +0 -3
  658. package/build/typescript/Checkbox/LegacyCheckboxProps.d.ts +0 -36
  659. package/build/typescript/CheckboxGroup/CheckboxGroup.d.ts +0 -3
  660. package/build/typescript/CheckboxGroup/CheckboxGroupProps.d.ts +0 -11
  661. package/build/typescript/CheckboxGroup/index.d.ts +0 -2
  662. package/build/typescript/Chip/LegacyChip.d.ts +0 -3
  663. package/build/typescript/Chip/LegacyChipProps.d.ts +0 -28
  664. package/build/typescript/Dialog/LegacyDialog.d.ts +0 -3
  665. package/build/typescript/Dialog/LegacyDialogProps.d.ts +0 -25
  666. package/build/typescript/DialogActions/LegacyDialogActions.d.ts +0 -3
  667. package/build/typescript/DialogContent/LegacyDialogContent.d.ts +0 -3
  668. package/build/typescript/DialogContent/LegacyDialogContentProps.d.ts +0 -10
  669. package/build/typescript/DialogMedia/LegacyDialogMedia.d.ts +0 -3
  670. package/build/typescript/DialogMedia/LegacyDialogMediaProps.d.ts +0 -15
  671. package/build/typescript/DialogTitle/LegacyDialogTitle.d.ts +0 -3
  672. package/build/typescript/DialogTitle/LegacyDialogTitleProps.d.ts +0 -15
  673. package/build/typescript/Divider/LegacyDivider.d.ts +0 -3
  674. package/build/typescript/Divider/LegacyDividerProps.d.ts +0 -41
  675. package/build/typescript/IconButton/LegacyIconButton.d.ts +0 -3
  676. package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +0 -30
  677. package/build/typescript/Pagination/LegacyPagination.d.ts +0 -3
  678. package/build/typescript/Pagination/LegacyPaginationProps.d.ts +0 -71
  679. package/build/typescript/PaginationItem/LegacyPaginationItem.d.ts +0 -5
  680. package/build/typescript/Radio/LegacyRadio.d.ts +0 -3
  681. package/build/typescript/Radio/LegacyRadioProps.d.ts +0 -43
  682. package/build/typescript/RadioGroup/LegacyRadioGroup.d.ts +0 -3
  683. package/build/typescript/Snackbar/LegacySnackbar.d.ts +0 -3
  684. package/build/typescript/Snackbar/LegacySnackbarProps.d.ts +0 -51
  685. package/build/typescript/SnackbarContent/LegacySnackbarContent.d.ts +0 -3
  686. package/build/typescript/SnackbarContent/LegacySnackbarContentProps.d.ts +0 -26
  687. package/build/typescript/SvgIcon/LegacySvgIcon.d.ts +0 -3
  688. package/build/typescript/SvgIcon/LegacySvgIconProps.d.ts +0 -35
  689. package/build/typescript/Tab/LegacyTab.d.ts +0 -3
  690. package/build/typescript/Tab/LegacyTabProps.d.ts +0 -58
  691. package/build/typescript/Tab/TabIndicator.d.ts +0 -7
  692. package/build/typescript/TabBase/LegacyTabBase.d.ts +0 -3
  693. package/build/typescript/Tabs/LegacyTabIndicator.d.ts +0 -3
  694. package/build/typescript/Tabs/LegacyTabIndicatorProps.d.ts +0 -32
  695. package/build/typescript/Tabs/LegacyTabs.d.ts +0 -5
  696. package/build/typescript/Tabs/LegacyTabsProps.d.ts +0 -79
  697. package/build/typescript/TextField/LegacyTextField.d.ts +0 -5
  698. package/build/typescript/TextField/LegacyTextFieldProps.d.ts +0 -67
  699. package/build/typescript/TextField/OutlinedTextField.d.ts +0 -17
  700. package/build/typescript/Tooltip/LegacyTooltip.d.ts +0 -3
  701. package/build/typescript/Tooltip/LegacyTooltipProps.d.ts +0 -72
  702. package/build/typescript/Tooltip/UpArrow.d.ts +0 -5
  703. package/build/typescript/Tooltip/UpArrowProps.d.ts +0 -17
  704. package/build/typescript/Typography/LegacyTypography.d.ts +0 -5
  705. package/build/typescript/Typography/LegacyTypographyProps.d.ts +0 -81
  706. package/src/Accordion/LegacyAccordion.tsx +0 -188
  707. package/src/Accordion/LegacyAccordionProps.ts +0 -34
  708. package/src/Badge/LegacyBadge.tsx +0 -66
  709. package/src/Badge/LegacyBadgeProps.ts +0 -40
  710. package/src/Button/LegacyButton.tsx +0 -157
  711. package/src/Button/LegacyButtonProps.ts +0 -62
  712. package/src/Checkbox/LegacyCheckbox.tsx +0 -62
  713. package/src/Checkbox/LegacyCheckboxProps.ts +0 -42
  714. package/src/CheckboxGroup/CheckboxGroup.tsx +0 -47
  715. package/src/CheckboxGroup/CheckboxGroupProps.ts +0 -11
  716. package/src/CheckboxGroup/index.ts +0 -2
  717. package/src/Chip/LegacyChip.tsx +0 -116
  718. package/src/Chip/LegacyChipProps.ts +0 -33
  719. package/src/Dialog/LegacyDialog.tsx +0 -198
  720. package/src/Dialog/LegacyDialogProps.ts +0 -28
  721. package/src/DialogActions/LegacyDialogActions.tsx +0 -23
  722. package/src/DialogContent/LegacyDialogContent.tsx +0 -30
  723. package/src/DialogContent/LegacyDialogContentProps.ts +0 -10
  724. package/src/DialogMedia/LegacyDialogMedia.tsx +0 -21
  725. package/src/DialogMedia/LegacyDialogMediaProps.ts +0 -16
  726. package/src/DialogTitle/LegacyDialogTitle.tsx +0 -30
  727. package/src/DialogTitle/LegacyDialogTitleProps.ts +0 -16
  728. package/src/Divider/LegacyDivider.tsx +0 -114
  729. package/src/Divider/LegacyDividerProps.ts +0 -48
  730. package/src/IconButton/LegacyIconButton.tsx +0 -97
  731. package/src/IconButton/LegacyIconButtonProps.ts +0 -36
  732. package/src/Pagination/LegacyPagination.tsx +0 -168
  733. package/src/Pagination/LegacyPaginationProps.ts +0 -85
  734. package/src/PaginationItem/LegacyPaginationItem.tsx +0 -52
  735. package/src/Radio/LegacyRadio.tsx +0 -72
  736. package/src/Radio/LegacyRadioProps.ts +0 -50
  737. package/src/RadioGroup/LegacyRadioGroup.tsx +0 -20
  738. package/src/Snackbar/LegacySnackbar.tsx +0 -130
  739. package/src/Snackbar/LegacySnackbarProps.ts +0 -61
  740. package/src/SnackbarContent/LegacySnackbarContent.tsx +0 -129
  741. package/src/SnackbarContent/LegacySnackbarContentProps.ts +0 -30
  742. package/src/SvgIcon/LegacySvgIcon.tsx +0 -36
  743. package/src/SvgIcon/LegacySvgIconProps.ts +0 -41
  744. package/src/Tab/LegacyTab.tsx +0 -141
  745. package/src/Tab/LegacyTabProps.ts +0 -68
  746. package/src/Tab/TabIndicator.tsx +0 -38
  747. package/src/TabBase/LegacyTabBase.tsx +0 -55
  748. package/src/Tabs/LegacyTabIndicator.tsx +0 -112
  749. package/src/Tabs/LegacyTabIndicatorProps.ts +0 -37
  750. package/src/Tabs/LegacyTabs.tsx +0 -227
  751. package/src/Tabs/LegacyTabsProps.ts +0 -93
  752. package/src/TextField/LegacyTextField.tsx +0 -168
  753. package/src/TextField/LegacyTextFieldProps.ts +0 -80
  754. package/src/TextField/OutlinedTextField.tsx +0 -234
  755. package/src/Tooltip/LegacyTooltip.tsx +0 -167
  756. package/src/Tooltip/LegacyTooltipProps.ts +0 -86
  757. package/src/Tooltip/UpArrow.tsx +0 -21
  758. package/src/Tooltip/UpArrowProps.ts +0 -19
  759. package/src/Typography/LegacyTypography.tsx +0 -107
  760. package/src/Typography/LegacyTypographyProps.ts +0 -122
@@ -1,84 +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
-
3
- import React from 'react';
4
- import { Text } from 'react-native';
5
- import { lightTheme, darkTheme } from '@fountain-ui/styles';
6
- import { rgb } from '@fountain-ui/utils';
7
- import { createFontStyle, css, useTheme } from '../styles';
8
- import ButtonBase from '../ButtonBase';
9
- import Column from '../Column';
10
- import Paper from '../Paper';
11
- import Spacer from '../Spacer';
12
- import Typography from '../Typography';
13
-
14
- const useStyles = function () {
15
- const theme = useTheme();
16
- const backgroundColor = theme.palette.primary.main;
17
- const [r, g, b] = React.useMemo(() => rgb(backgroundColor), [backgroundColor]);
18
- return {
19
- root: {
20
- flexDirection: 'row',
21
- alignItems: 'center',
22
- backgroundColor: `rgba(${r}, ${g}, ${b}, .9)`,
23
- borderRadius: theme.shape.roundness,
24
- paddingHorizontal: theme.spacing(4),
25
- paddingVertical: theme.spacing(3)
26
- },
27
- action: {
28
- paddingVertical: theme.spacing(2)
29
- }
30
- };
31
- };
32
-
33
- export default function SnackbarContent(props) {
34
- const {
35
- actionLabel,
36
- message,
37
- title,
38
- onActionPress,
39
- style,
40
- startIcon,
41
- ...otherProps
42
- } = props;
43
- const styles = useStyles();
44
- const theme = useTheme();
45
- const titleFontStyle = createFontStyle(theme, {
46
- selector: typo => typo.subtitle2,
47
- color: theme.mode === 'light' ? lightTheme.palette.primary.contrastTextColor : lightTheme.palette.primary.main
48
- });
49
- const messageFontStyle = createFontStyle(theme, {
50
- selector: typo => typo.body2,
51
- color: title ? theme.mode === 'light' ? darkTheme.palette.text.secondary : lightTheme.palette.text.secondary : theme.palette.primary.contrastTextColor
52
- });
53
- const labelFontStyle = createFontStyle(theme, {
54
- selector: typo => typo.button2,
55
- color: theme.palette.primary.contrastTextColor
56
- });
57
- const labelStyle = css([labelFontStyle, {
58
- padding: theme.spacing(2)
59
- }]);
60
- return /*#__PURE__*/React.createElement(Paper, _extends({
61
- elevation: 0,
62
- style: css([styles.root, actionLabel ? styles.action : undefined, style])
63
- }, otherProps), startIcon ? /*#__PURE__*/React.createElement(React.Fragment, null, startIcon, /*#__PURE__*/React.createElement(Spacer, {
64
- size: 3
65
- })) : null, /*#__PURE__*/React.createElement(Column, null, title ? /*#__PURE__*/React.createElement(Typography, {
66
- children: title,
67
- style: css([titleFontStyle])
68
- }) : null, /*#__PURE__*/React.createElement(Text, {
69
- children: message,
70
- style: css([messageFontStyle])
71
- })), actionLabel ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spacer, {
72
- flex: 1
73
- }), /*#__PURE__*/React.createElement(Spacer, {
74
- size: 1
75
- }), /*#__PURE__*/React.createElement(ButtonBase, {
76
- onPress: onActionPress,
77
- pressEffect: 'none'
78
- }, /*#__PURE__*/React.createElement(Text, {
79
- children: actionLabel,
80
- style: labelStyle
81
- }))) : null);
82
- }
83
- ;
84
- //# sourceMappingURL=LegacySnackbarContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Text","lightTheme","darkTheme","rgb","createFontStyle","css","useTheme","ButtonBase","Column","Paper","Spacer","Typography","useStyles","theme","backgroundColor","palette","primary","main","r","g","b","useMemo","root","flexDirection","alignItems","borderRadius","shape","roundness","paddingHorizontal","spacing","paddingVertical","action","SnackbarContent","props","actionLabel","message","title","onActionPress","style","startIcon","otherProps","styles","titleFontStyle","selector","typo","subtitle2","color","mode","contrastTextColor","messageFontStyle","body2","text","secondary","labelFontStyle","button2","labelStyle","padding","undefined"],"sources":["LegacySnackbarContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { lightTheme, darkTheme } from '@fountain-ui/styles';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { rgb } from '@fountain-ui/utils';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport ButtonBase from '../ButtonBase';\nimport Column from '../Column';\nimport Paper from '../Paper';\nimport Spacer from '../Spacer';\nimport Typography from '../Typography';\nimport type SnackbarContentProps from './LegacySnackbarContentProps';\n\ntype SnackBarContentStyles = NamedStylesStringUnion<'root' | 'action'>;\n\nconst useStyles: UseStyles<SnackBarContentStyles> = function (): SnackBarContentStyles {\n const theme = useTheme();\n\n const backgroundColor = theme.palette.primary.main;\n const [r, g, b] = React.useMemo(() => rgb(backgroundColor), [backgroundColor]);\n\n return {\n root: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: `rgba(${r}, ${g}, ${b}, .9)`,\n borderRadius: theme.shape.roundness,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(3),\n },\n action: {\n paddingVertical: theme.spacing(2),\n },\n };\n};\n\nexport default function SnackbarContent(props: SnackbarContentProps) {\n const {\n actionLabel,\n message,\n title,\n onActionPress,\n style,\n startIcon,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typo) => typo.subtitle2,\n color: theme.mode === 'light'\n ? lightTheme.palette.primary.contrastTextColor\n : lightTheme.palette.primary.main,\n });\n\n const messageFontStyle = createFontStyle(theme, {\n selector: (typo) => typo.body2,\n color: title\n ? theme.mode === 'light'\n ? darkTheme.palette.text.secondary\n : lightTheme.palette.text.secondary\n : theme.palette.primary.contrastTextColor,\n });\n\n const labelFontStyle = createFontStyle(theme, {\n selector: (typo) => typo.button2,\n color: theme.palette.primary.contrastTextColor,\n });\n\n const labelStyle = css([\n labelFontStyle,\n { padding: theme.spacing(2) },\n ]);\n\n return (\n <Paper\n elevation={0}\n style={css([\n styles.root,\n actionLabel ? styles.action : undefined,\n style,\n ])}\n {...otherProps}\n >\n {startIcon ? (\n <React.Fragment>\n {startIcon}\n\n <Spacer size={3}/>\n </React.Fragment>\n ) : null}\n\n <Column>\n {title ? (\n <Typography\n children={title}\n style={css([titleFontStyle])}\n />\n ) : null}\n\n <Text\n children={message}\n style={css([messageFontStyle])}\n />\n </Column>\n\n {actionLabel ? (\n <React.Fragment>\n <Spacer flex={1}/>\n\n <Spacer size={1}/>\n\n <ButtonBase\n onPress={onActionPress}\n pressEffect={'none'}\n >\n <Text\n children={actionLabel}\n style={labelStyle}\n />\n </ButtonBase>\n </React.Fragment>\n ) : null}\n </Paper>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,UAAT,EAAqBC,SAArB,QAAsC,qBAAtC;AAEA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,KAAP,MAAkB,UAAlB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,UAAP,MAAuB,eAAvB;;AAKA,MAAMC,SAA2C,GAAG,YAAmC;EACnF,MAAMC,KAAK,GAAGP,QAAQ,EAAtB;EAEA,MAAMQ,eAAe,GAAGD,KAAK,CAACE,OAAN,CAAcC,OAAd,CAAsBC,IAA9C;EACA,MAAM,CAACC,CAAD,EAAIC,CAAJ,EAAOC,CAAP,IAAYrB,KAAK,CAACsB,OAAN,CAAc,MAAMlB,GAAG,CAACW,eAAD,CAAvB,EAA0C,CAACA,eAAD,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AE;EAFjB,gBAII,oBAAC,IAAD;IACI,QAAQ,EAAEH,WADd;IAEI,KAAK,EAAEqB;EAFX,EAJJ,CALJ,CADQ,GAgBR,IA/CR,CADJ;AAmDH;AAAA"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacySnackbarContentProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacySnackbarContentProps.ts"],"sourcesContent":["import React from 'react';\nimport type { OverridableComponentProps } from '../types';\nimport type { PaperProps } from '../Paper';\n\nexport default interface SnackbarContentProps extends OverridableComponentProps<PaperProps, {\n /**\n * The text to use for the action component.\n */\n actionLabel?: string;\n\n /**\n * The message to display.\n */\n message?: string;\n\n /**\n * Callback fired when the action component pressed.\n */\n onActionPress?: () => void;\n\n /**\n * Element placed before the title and message.\n */\n startIcon?: React.ReactElement;\n\n /**\n * The title to display.\n */\n title?: string;\n}> {}\n"],"mappings":""}
@@ -1,30 +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
-
3
- import React from 'react';
4
- import Svg from 'react-native-svg';
5
- import { css, useTheme } from '../styles';
6
- export default function SvgIcon(props) {
7
- const {
8
- color: colorProp = 'primary',
9
- height = 24,
10
- style: styleProp,
11
- viewBox = '0 0 24 24',
12
- width = 24,
13
- ...otherProps
14
- } = props;
15
- const theme = useTheme();
16
- const color = theme.palette[colorProp].main;
17
- const style = css([{
18
- flexShrink: 0
19
- }, styleProp]);
20
- return /*#__PURE__*/React.createElement(Svg, _extends({
21
- color: color,
22
- fill: 'currentColor',
23
- height: height,
24
- style: style,
25
- viewBox: viewBox,
26
- width: width
27
- }, otherProps));
28
- }
29
- ;
30
- //# sourceMappingURL=LegacySvgIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Svg","css","useTheme","SvgIcon","props","color","colorProp","height","style","styleProp","viewBox","width","otherProps","theme","palette","main","flexShrink"],"sources":["LegacySvgIcon.tsx"],"sourcesContent":["import React from 'react';\nimport Svg from 'react-native-svg';\nimport { css, useTheme } from '../styles';\nimport type SvgIconProps from './LegacySvgIconProps';\n\nexport default function SvgIcon(props: SvgIconProps) {\n const {\n color: colorProp = 'primary',\n height = 24,\n style: styleProp,\n viewBox = '0 0 24 24',\n width = 24,\n ...otherProps\n }: SvgIconProps = props;\n\n const theme = useTheme();\n\n const color = theme.palette[colorProp].main;\n\n const style = css([\n { flexShrink: 0 },\n styleProp,\n ]);\n\n return (\n <Svg\n color={color}\n fill={'currentColor'}\n height={height}\n style={style}\n viewBox={viewBox}\n width={width}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,GAAP,MAAgB,kBAAhB;AACA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;AAGA,eAAe,SAASC,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,KAAK,EAAEC,SAAS,GAAG,SADjB;IAEFC,MAAM,GAAG,EAFP;IAGFC,KAAK,EAAEC,SAHL;IAIFC,OAAO,GAAG,WAJR;IAKFC,KAAK,GAAG,EALN;IAMF,GAAGC;EAND,IAOYR,KAPlB;EASA,MAAMS,KAAK,GAAGX,QAAQ,EAAtB;EAEA,MAAMG,KAAK,GAAGQ,KAAK,CAACC,OAAN,CAAcR,SAAd,EAAyBS,IAAvC;EAEA,MAAMP,KAAK,GAAGP,GAAG,CAAC,CACd;IAAEe,UAAU,EAAE;EAAd,CADc,EAEdP,SAFc,CAAD,CAAjB;EAKA,oBACI,oBAAC,GAAD;IACI,KAAK,EAAEJ,KADX;IAEI,IAAI,EAAE,cAFV;IAGI,MAAM,EAAEE,MAHZ;IAII,KAAK,EAAEC,KAJX;IAKI,OAAO,EAAEE,OALb;IAMI,KAAK,EAAEC;EANX,GAOQC,UAPR,EADJ;AAWH;AAAA"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacySvgIconProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacySvgIconProps.ts"],"sourcesContent":["import React from 'react';\nimport type { SvgProps } from 'react-native-svg';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\n\nexport type SvgIconColor = CommonComponentColor;\n\nexport default interface SvgIconProps extends OverridableComponentProps<SvgProps, {\n /**\n * Node passed into the SVG element.\n */\n children: React.ReactNode;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'primary'\n */\n color?: SvgIconColor;\n\n /**\n * The color of the component. It is treated as higher priority than `color` prop if provided.\n */\n fill?: SvgProps['fill'];\n\n /**\n * The height applied to the icon.\n * @default 24\n */\n height?: SvgProps['height'];\n\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * @default '0 0 20 20'\n */\n viewBox?: SvgProps['viewBox'];\n\n /**\n * The width applied to the icon.\n * @default 24\n */\n width?: SvgProps['width'];\n}> {}\n"],"mappings":""}
@@ -1,105 +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
-
3
- import React, { cloneElement } from 'react';
4
- import { Platform, Text, View } from 'react-native';
5
- import Badge from '../Badge';
6
- import TabBase from '../TabBase';
7
- import { createFontStyle, css, StyleSheet, useTheme } from '../styles';
8
- import TabIndicator from './TabIndicator';
9
- const styles = StyleSheet.create({
10
- root: { // TODO: Remove redundant platform checking
11
- ...(Platform.OS === 'web' ? {
12
- minWidth: 'auto'
13
- } : {}),
14
- minHeight: 40
15
- },
16
- bottomNavigation: {
17
- minHeight: 56
18
- },
19
- filledInner: {
20
- justifyContent: 'center'
21
- },
22
- tertiary: {
23
- minHeight: 44
24
- }
25
- });
26
- export default function Tab(props) {
27
- const {
28
- badgeVisible = false,
29
- children,
30
- enableIndicator = false,
31
- icon: defaultIcon,
32
- indicatorColor = 'primary',
33
- indicatorSize = 'full',
34
- selected = false,
35
- selectedIcon,
36
- variant = 'primary',
37
- style,
38
- onTabInnerLayout,
39
- ...otherProps
40
- } = props;
41
- const theme = useTheme();
42
- const vertical = variant === 'bottom-navigation';
43
- const color = selected ? theme.palette.text.primary : variant === 'contained' ? theme.palette.text.secondary : theme.palette.text.hint;
44
- const containedStyle = {
45
- borderColor: selected ? theme.palette.primary.main : theme.palette.border.default,
46
- borderRadius: theme.shape.roundnessExtra,
47
- borderWidth: selected ? 1.5 : 1,
48
- minHeight: 'auto',
49
- paddingHorizontal: theme.spacing(3),
50
- paddingVertical: theme.spacing(1.5)
51
- };
52
- const tabBaseStyle = css([styles.root, variant === 'bottom-navigation' && styles.bottomNavigation, variant === 'contained' && containedStyle, variant === 'tertiary' && styles.tertiary, style]);
53
- const tabInnerStyle = css([styles.root, styles.filledInner]);
54
- const fontStyle = createFontStyle(theme, {
55
- selector: typo => {
56
- switch (variant) {
57
- case 'primary':
58
- return typo.h2;
59
-
60
- case 'secondary':
61
- return typo.button2;
62
-
63
- case 'tertiary':
64
- return typo.h3;
65
-
66
- case 'contained':
67
- return selected ? { ...typo.subtitle2,
68
- fontWeight: typo.fontWeight.medium
69
- } : typo.body2;
70
-
71
- default:
72
- return typo.flag;
73
- }
74
- },
75
- color
76
- });
77
- const pressEffect = selected ? 'none' : 'opacity';
78
- const icon = selected ? selectedIcon || defaultIcon : defaultIcon;
79
- const iconElement = icon ? /*#__PURE__*/cloneElement(icon, {
80
- fill: color
81
- }) : null;
82
- const tabElement = typeof children !== 'string' ? /*#__PURE__*/React.cloneElement(children, {
83
- selected
84
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Badge, {
85
- children: iconElement,
86
- invisible: !badgeVisible
87
- }), /*#__PURE__*/React.createElement(Text, {
88
- children: children,
89
- style: css(fontStyle)
90
- }));
91
- const tabIndicator = enableIndicator && selected ? /*#__PURE__*/React.createElement(TabIndicator, {
92
- indicatorSize: indicatorSize,
93
- color: indicatorColor
94
- }) : null;
95
- return /*#__PURE__*/React.createElement(TabBase, _extends({
96
- pressEffect: pressEffect,
97
- style: tabBaseStyle,
98
- vertical: vertical
99
- }, otherProps), indicatorSize === 'fit-content' ? /*#__PURE__*/React.createElement(View, {
100
- onLayout: onTabInnerLayout,
101
- style: tabInnerStyle
102
- }, tabElement, tabIndicator) : /*#__PURE__*/React.createElement(React.Fragment, null, tabElement, tabIndicator));
103
- }
104
- ;
105
- //# sourceMappingURL=LegacyTab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","cloneElement","Platform","Text","View","Badge","TabBase","createFontStyle","css","StyleSheet","useTheme","TabIndicator","styles","create","root","OS","minWidth","minHeight","bottomNavigation","filledInner","justifyContent","tertiary","Tab","props","badgeVisible","children","enableIndicator","icon","defaultIcon","indicatorColor","indicatorSize","selected","selectedIcon","variant","style","onTabInnerLayout","otherProps","theme","vertical","color","palette","text","primary","secondary","hint","containedStyle","borderColor","main","border","default","borderRadius","shape","roundnessExtra","borderWidth","paddingHorizontal","spacing","paddingVertical","tabBaseStyle","tabInnerStyle","fontStyle","selector","typo","h2","button2","h3","subtitle2","fontWeight","medium","body2","flag","pressEffect","iconElement","fill","tabElement","tabIndicator"],"sources":["LegacyTab.tsx"],"sourcesContent":["import React, { cloneElement } from 'react';\nimport { Platform, Text, View } from 'react-native';\nimport Badge from '../Badge';\nimport TabBase from '../TabBase';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport type TabProps from './LegacyTabProps';\nimport TabIndicator from './TabIndicator';\n\nconst styles = StyleSheet.create({\n root: {\n // TODO: Remove redundant platform checking\n ...(Platform.OS === 'web' ? { minWidth: 'auto' } : {}),\n minHeight: 40,\n },\n bottomNavigation: {\n minHeight: 56,\n },\n filledInner: {\n justifyContent: 'center',\n },\n tertiary: {\n minHeight: 44,\n },\n});\n\nexport default function Tab(props: TabProps) {\n const {\n badgeVisible = false,\n children,\n enableIndicator = false,\n icon: defaultIcon,\n indicatorColor = 'primary',\n indicatorSize = 'full',\n selected = false,\n selectedIcon,\n variant = 'primary',\n style,\n onTabInnerLayout,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const vertical = variant === 'bottom-navigation';\n\n const color = selected\n ? theme.palette.text.primary\n : variant === 'contained'\n ? theme.palette.text.secondary\n : theme.palette.text.hint;\n\n const containedStyle = {\n borderColor: selected ? theme.palette.primary.main : theme.palette.border.default,\n borderRadius: theme.shape.roundnessExtra,\n borderWidth: selected ? 1.5 : 1,\n minHeight: 'auto',\n paddingHorizontal: theme.spacing(3),\n paddingVertical: theme.spacing(1.5),\n };\n\n const tabBaseStyle = css([\n styles.root,\n variant === 'bottom-navigation' && styles.bottomNavigation,\n variant === 'contained' && containedStyle,\n variant === 'tertiary' && styles.tertiary,\n style,\n ]);\n\n const tabInnerStyle = css([\n styles.root,\n styles.filledInner,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => {\n switch (variant) {\n case 'primary':\n return typo.h2;\n case 'secondary':\n return typo.button2;\n case 'tertiary':\n return typo.h3;\n case 'contained':\n return selected\n ? { ...typo.subtitle2, fontWeight: typo.fontWeight.medium }\n : typo.body2;\n default:\n return typo.flag;\n }\n },\n color,\n });\n const pressEffect = selected ? 'none' : 'opacity';\n\n const icon = selected ? (selectedIcon || defaultIcon) : defaultIcon;\n const iconElement = icon ? cloneElement(icon, { fill: color }) : null;\n\n const tabElement = typeof children !== 'string' ? (\n React.cloneElement(children, {\n selected,\n })\n ) : (\n <React.Fragment>\n <Badge\n children={iconElement}\n invisible={!badgeVisible}\n />\n\n <Text\n children={children}\n style={css(fontStyle)}\n />\n </React.Fragment>\n );\n const tabIndicator = (enableIndicator && selected)\n ? <TabIndicator indicatorSize={indicatorSize} color={indicatorColor}/>\n : null;\n\n return (\n <TabBase\n pressEffect={pressEffect}\n style={tabBaseStyle}\n vertical={vertical}\n {...otherProps}\n >\n {indicatorSize === 'fit-content' ? (\n <View onLayout={onTabInnerLayout} style={tabInnerStyle}>\n {tabElement}\n\n {tabIndicator}\n </View>\n ) : (\n <React.Fragment>\n {tabElement}\n\n {tabIndicator}\n </React.Fragment>\n )}\n </TabBase>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,YAAhB,QAAoC,OAApC;AACA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,IAAzB,QAAqC,cAArC;AACA,OAAOC,KAAP,MAAkB,UAAlB;AACA,OAAOC,OAAP,MAAoB,YAApB;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,UAA/B,EAA2CC,QAA3C,QAA2D,WAA3D;AAEA,OAAOC,YAAP,MAAyB,gBAAzB;AAEA,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAX,CAAkB;EAC7BC,IAAI,EAAE,EACF;IACA,IAAIZ,QAAQ,CAACa,EAAT,KAAgB,KAAhB,GAAwB;MAAEC,QAAQ,EAAE;IAAZ,CAAxB,GAA+C,EAAnD,CAFE;IAGFC,SAAS,EAAE;EAHT,CADuB;EAM7BC,gBAAgB,EAAE;IACdD,SAAS,EAAE;EADG,CANW;EAS7BE,WAAW,EAAE;IACTC,cAAc,EAAE;EADP,CATgB;EAY7BC,QAAQ,EAAE;IACNJ,SAAS,EAAE;EADL;AAZmB,CAAlB,CAAf;AAiBA,eAAe,SAASK,GAAT,CAAaC,KAAb,EAA8B;EACzC,MAAM;IACFC,YAAY,GAAG,KADb;IAEFC,QAFE;IAGFC,eAAe,GAAG,KAHhB;IAIFC,IAAI,EAAEC,WAJJ;IAKFC,cAAc,GAAG,SALf;IAMFC,aAAa,GAAG,MANd;IAOFC,QAAQ,GAAG,KAPT;IAQFC,YARE;IASFC,OAAO,GAAG,SATR;IAUFC,KAVE;IAWFC,gBAXE;IAYF,GAAGC;EAZD,IAaFb,KAbJ;EAe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AJR,GAMKN,aAAa,KAAK,aAAlB,gBACG,oBAAC,IAAD;IAAM,QAAQ,EAAEK,gBAAhB;IAAkC,KAAK,EAAEuB;EAAzC,GACKe,UADL,EAGKC,YAHL,CADH,gBAOG,oBAAC,KAAD,CAAO,QAAP,QACKD,UADL,EAGKC,YAHL,CAbR,CADJ;AAsBH;AAAA"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacyTabProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyTabProps.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,31 +0,0 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import { useTheme } from '../styles';
4
-
5
- const useStyles = function (color, indicatorSize) {
6
- const theme = useTheme();
7
- return {
8
- root: {
9
- backgroundColor: theme.palette[color].main,
10
- bottom: 0,
11
- height: 2,
12
- left: indicatorSize === 'fit-content' ? 0 : 12,
13
- right: indicatorSize === 'fit-content' ? 0 : 12,
14
- position: 'absolute'
15
- }
16
- };
17
- };
18
-
19
- const TabIndicator = function TabIndicator(_ref) {
20
- let {
21
- indicatorSize,
22
- color
23
- } = _ref;
24
- const styles = useStyles(color, indicatorSize);
25
- return /*#__PURE__*/React.createElement(View, {
26
- style: styles.root
27
- });
28
- };
29
-
30
- export default /*#__PURE__*/React.memo(TabIndicator);
31
- //# sourceMappingURL=TabIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","useTheme","useStyles","color","indicatorSize","theme","root","backgroundColor","palette","main","bottom","height","left","right","position","TabIndicator","styles","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,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,QAAT,QAAyB,WAAzB;;AAKA,MAAMC,SAA4F,GAC9F,UAAUC,KAAV,EAAoCC,aAApC,EAAuE;EACnE,MAAMC,KAAK,GAAGJ,QAAQ,EAAtB;EAEA,OAAO;IACHK,IAAI,EAAE;MACFC,eAAe,EAAEF,KAAK,CAACG,OAAN,CAAcL,KAAd,EAAqBM,IADpC;MAEFC,MAAM,EAAE,CAFN;MAGFC,MAAM,EAAE,CAHN;MAIFC,IAAI,EAAER,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAJ1C;MAKFS,KAAK,EAAET,aAAa,KAAK,aAAlB,GAAkC,CAAlC,GAAsC,EAL3C;MAMFU,QAAQ,EAAE;IANR;EADH,CAAP;AAUH,CAdL;;AAgBA,MAAMC,YAAY,GAAG,SAASA,YAAT,OAG6C;EAAA,IAHvB;IACvCX,aADuC;IAEvCD;EAFuC,CAGuB;EAC9D,MAAMa,MAAM,GAAGd,SAAS,CAACC,KAAD,EAAQC,aAAR,CAAxB;EAEA,oBACI,oBAAC,IAAD;IACI,KAAK,EAAEY,MAAM,CAACV;EADlB,EADJ;AAKH,CAXD;;AAaA,4BAAeP,KAAK,CAACkB,IAAN,CAAWF,YAAX,CAAf"}
@@ -1,44 +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
-
3
- import React from 'react';
4
- import { css } from '@fountain-ui/styles';
5
- import { useTheme } from '../styles';
6
- import ButtonBase from '../ButtonBase';
7
-
8
- const useStyles = function () {
9
- const theme = useTheme();
10
- return {
11
- root: {
12
- alignItems: 'center',
13
- justifyContent: 'center',
14
- paddingHorizontal: theme.spacing(3),
15
- minHeight: 48
16
- },
17
- row: {
18
- flexDirection: 'row'
19
- },
20
- column: {
21
- flexDirection: 'column'
22
- }
23
- };
24
- };
25
-
26
- export default function TabBase(props) {
27
- const {
28
- children,
29
- disabled = false,
30
- onPress,
31
- selected = false,
32
- vertical = false,
33
- style,
34
- ...otherProps
35
- } = props;
36
- const styles = useStyles();
37
- return /*#__PURE__*/React.createElement(ButtonBase, _extends({
38
- onPress: onPress,
39
- disabled: disabled,
40
- style: css([styles.root, vertical ? styles.column : styles.row, style])
41
- }, otherProps), children);
42
- }
43
- ;
44
- //# sourceMappingURL=LegacyTabBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","css","useTheme","ButtonBase","useStyles","theme","root","alignItems","justifyContent","paddingHorizontal","spacing","minHeight","row","flexDirection","column","TabBase","props","children","disabled","onPress","selected","vertical","style","otherProps","styles"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,GAAT,QAAuD,qBAAvD;AACA,SAASC,QAAT,QAAyB,WAAzB;AACA,OAAOC,UAAP,MAAuB,eAAvB;;AAKA,MAAMC,SAAmC,GAAG,YAA2B;EACnE,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;EAEA,OAAO;IACHI,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,cAAc,EAAE,QAFd;MAGFC,iBAAiB,EAAEJ,KAAK,CAACK,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;;AAmBA,eAAe,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,GAAGpB,SAAS,EAAxB;EAEA,oBACI,oBAAC,UAAD;IACI,OAAO,EAAEe,OADb;IAEI,QAAQ,EAAED,QAFd;IAGI,KAAK,EAAEjB,GAAG,CAAC,CACPuB,MAAM,CAAClB,IADA,EAEPe,QAAQ,GAAGG,MAAM,CAACV,MAAV,GAAmBU,MAAM,CAACZ,GAF3B,EAGPU,KAHO,CAAD;EAHd,GAQQC,UARR,GAUKN,QAVL,CADJ;AAcH;AAAA"}
@@ -1,99 +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
-
3
- import React, { useCallback, useContext, useEffect } from 'react';
4
- import { Animated, Easing } from 'react-native';
5
- import { useTheme } from '../styles';
6
- import { useAnimatedValue } from '../hooks';
7
- import { isNotAndroid12 } from '../utils';
8
- import { defaultCoordinate } from './TabCoordinate';
9
- import InternalContext from './InternalContext';
10
- const INDICATOR_WIDTH = 10;
11
- const INDICATOR_HEIGHT = 2;
12
- const SCROLLABLE_TABS_INSET = 12 * 2;
13
-
14
- const useStyles = function (color) {
15
- const theme = useTheme();
16
- return {
17
- root: {
18
- backgroundColor: theme.palette[color].main,
19
- left: 0,
20
- bottom: 0,
21
- width: INDICATOR_WIDTH,
22
- height: INDICATOR_HEIGHT,
23
- position: 'absolute'
24
- },
25
- disabled: {
26
- height: 0
27
- }
28
- };
29
- };
30
-
31
- const startAnimation = (value, toValue, animationDisabled) => {
32
- Animated.timing(value, {
33
- toValue: toValue,
34
- duration: !animationDisabled ? 300 : 0,
35
- easing: Easing.bezier(0.25, 1, 0.5, 1),
36
- useNativeDriver: isNotAndroid12
37
- }).start();
38
- };
39
-
40
- export default function TabIndicator(props) {
41
- const {
42
- animationDisabled = false,
43
- color = 'primary',
44
- coordinates,
45
- disabled,
46
- initialIndex,
47
- scrollable,
48
- style,
49
- ...otherProps
50
- } = props;
51
- const styles = useStyles(color);
52
- const computeAnimationValues = useCallback(currentIndex => {
53
- const {
54
- x1,
55
- x2
56
- } = coordinates[currentIndex] ?? defaultCoordinate;
57
- const tabWidth = x2 - x1;
58
- const nextTranslateX = x1 + (tabWidth - INDICATOR_WIDTH) / 2;
59
- const inset = scrollable ? SCROLLABLE_TABS_INSET : 0;
60
- const nextScaleX = (tabWidth - inset) / INDICATOR_WIDTH;
61
- return {
62
- tx: nextTranslateX,
63
- sx: nextScaleX
64
- };
65
- }, [coordinates, scrollable]);
66
- const {
67
- tx: initialTx,
68
- sx: initialSx
69
- } = computeAnimationValues(initialIndex);
70
- const translateX = useAnimatedValue(initialTx);
71
- const scaleX = useAnimatedValue(initialSx);
72
- const {
73
- indexStore
74
- } = useContext(InternalContext);
75
- useEffect(() => {
76
- const scrollToIndex = index => {
77
- const {
78
- tx,
79
- sx
80
- } = computeAnimationValues(index);
81
- startAnimation(translateX, tx, animationDisabled);
82
- startAnimation(scaleX, sx, animationDisabled);
83
- };
84
-
85
- scrollToIndex(indexStore.getState());
86
- return indexStore.subscribe(scrollToIndex);
87
- }, [computeAnimationValues, animationDisabled, indexStore]);
88
- return /*#__PURE__*/React.createElement(Animated.View, _extends({
89
- style: [styles.root, disabled ? styles.disabled : undefined, {
90
- transform: [{
91
- translateX
92
- }, {
93
- scaleX
94
- }]
95
- }, style]
96
- }, otherProps));
97
- }
98
- ;
99
- //# sourceMappingURL=LegacyTabIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCallback","useContext","useEffect","Animated","Easing","useTheme","useAnimatedValue","isNotAndroid12","defaultCoordinate","InternalContext","INDICATOR_WIDTH","INDICATOR_HEIGHT","SCROLLABLE_TABS_INSET","useStyles","color","theme","root","backgroundColor","palette","main","left","bottom","width","height","position","disabled","startAnimation","value","toValue","animationDisabled","timing","duration","easing","bezier","useNativeDriver","start","TabIndicator","props","coordinates","initialIndex","scrollable","style","otherProps","styles","computeAnimationValues","currentIndex","x1","x2","tabWidth","nextTranslateX","inset","nextScaleX","tx","sx","initialTx","initialSx","translateX","scaleX","indexStore","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, animationDisabled: boolean) => {\n Animated.timing(value, {\n toValue: toValue,\n duration: !animationDisabled ? 300: 0,\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 animationDisabled = false,\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, animationDisabled);\n startAnimation(scaleX, sx, animationDisabled);\n };\n\n scrollToIndex(indexStore.getState());\n\n return indexStore.subscribe(scrollToIndex);\n }, [\n computeAnimationValues,\n animationDisabled,\n indexStore,\n ]);\n\n return (\n <Animated.View\n style={[\n styles.root,\n disabled ? styles.disabled : undefined,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AEAlC,cAAc,CAAC8B,UAAD,EAAaJ,EAAb,EAAiBvB,iBAAjB,CAAd;MACAH,cAAc,CAAC+B,MAAD,EAASJ,EAAT,EAAaxB,iBAAb,CAAd;IACH,CALD;;IAOA8B,aAAa,CAACD,UAAU,CAACG,QAAX,EAAD,CAAb;IAEA,OAAOH,UAAU,CAACI,SAAX,CAAqBH,aAArB,CAAP;EACH,CAXQ,EAWN,CACCf,sBADD,EAECf,iBAFD,EAGC6B,UAHD,CAXM,CAAT;EAiBA,oBACI,oBAAC,QAAD,CAAU,IAAV;IACI,KAAK,EAAE,CACHf,MAAM,CAAC3B,IADJ,EAEHS,QAAQ,GAAGkB,MAAM,CAAClB,QAAV,GAAqBsC,SAF1B,EAGH;MAAEC,SAAS,EAAE,CAAC;QAAER;MAAF,CAAD,EAAiB;QAAEC;MAAF,CAAjB;IAAb,CAHG,EAIHhB,KAJG;EADX,GAOQC,UAPR,EADJ;AAWH;AAAA"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacyTabIndicatorProps.js.map
@@ -1 +0,0 @@
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 * If `true`, tab shifting animation will be disabled\n */\n animationDisabled?: boolean;\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":""}