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

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 (889) hide show
  1. package/build/commonjs/Accordion/Accordion.js +4 -2
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/index.js +10 -2
  4. package/build/commonjs/Accordion/index.js.map +1 -1
  5. package/build/commonjs/Accordion/useVariantStyleMap.js +15 -12
  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 +8 -0
  12. package/build/commonjs/AppBar/index.js.map +1 -1
  13. package/build/commonjs/Badge/index.js +28 -2
  14. package/build/commonjs/Badge/index.js.map +1 -1
  15. package/build/commonjs/Badge/useVariantStyleMap.js +15 -6
  16. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  17. package/build/commonjs/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +10 -23
  18. package/build/commonjs/BottomSheetActions/BottomSheetActions.js.map +1 -0
  19. package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js +2 -0
  20. package/build/commonjs/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
  21. package/build/commonjs/BottomSheetActions/index.js +16 -0
  22. package/build/commonjs/BottomSheetActions/index.js.map +1 -0
  23. package/build/commonjs/{SvgIcon/LegacySvgIcon.js → BottomSheetContent/BottomSheetContent.js} +23 -23
  24. package/build/commonjs/BottomSheetContent/BottomSheetContent.js.map +1 -0
  25. package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js +2 -0
  26. package/build/commonjs/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
  27. package/build/commonjs/BottomSheetContent/index.js +16 -0
  28. package/build/commonjs/BottomSheetContent/index.js.map +1 -0
  29. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +74 -0
  30. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
  31. package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
  32. package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
  33. package/build/commonjs/BottomSheetTitle/index.js +16 -0
  34. package/build/commonjs/BottomSheetTitle/index.js.map +1 -0
  35. package/build/commonjs/Button/Button.js +20 -11
  36. package/build/commonjs/Button/Button.js.map +1 -1
  37. package/build/commonjs/Button/ButtonProps.js +7 -7
  38. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  39. package/build/commonjs/Button/index.js +22 -2
  40. package/build/commonjs/Button/index.js.map +1 -1
  41. package/build/commonjs/Button/useVariantStyleMap.js +7 -1
  42. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  43. package/build/commonjs/Checkbox/Checkbox.js +5 -3
  44. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  45. package/build/commonjs/Checkbox/index.js +10 -2
  46. package/build/commonjs/Checkbox/index.js.map +1 -1
  47. package/build/commonjs/Checkbox/useVariantStyleMap.js +10 -3
  48. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  49. package/build/commonjs/Chip/index.js +16 -2
  50. package/build/commonjs/Chip/index.js.map +1 -1
  51. package/build/commonjs/Chip/useChipStyle.js +3 -7
  52. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  53. package/build/commonjs/Dialog/Dialog.js +10 -21
  54. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  55. package/build/commonjs/Dialog/DialogContext.js +19 -0
  56. package/build/commonjs/Dialog/DialogContext.js.map +1 -0
  57. package/build/commonjs/Dialog/index.js +32 -2
  58. package/build/commonjs/Dialog/index.js.map +1 -1
  59. package/build/commonjs/Dialog/useDialogSectionStyle.js +40 -0
  60. package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -0
  61. package/build/commonjs/Dialog/useDialogStyle.js +16 -18
  62. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
  63. package/build/commonjs/DialogActions/DialogActions.js +17 -2
  64. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  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 +6 -3
  68. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  69. package/build/commonjs/DialogContent/index.js +2 -2
  70. package/build/commonjs/DialogContent/index.js.map +1 -1
  71. package/build/commonjs/DialogMedia/DialogMedia.js +1 -0
  72. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  73. package/build/commonjs/DialogMedia/index.js +2 -2
  74. package/build/commonjs/DialogMedia/index.js.map +1 -1
  75. package/build/commonjs/DialogTitle/DialogTitle.js +4 -1
  76. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  77. package/build/commonjs/DialogTitle/index.js +2 -2
  78. package/build/commonjs/DialogTitle/index.js.map +1 -1
  79. package/build/commonjs/Divider/Divider.js +1 -1
  80. package/build/commonjs/Divider/Divider.js.map +1 -1
  81. package/build/commonjs/Divider/DividerProps.js +3 -3
  82. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  83. package/build/commonjs/Divider/index.js +16 -2
  84. package/build/commonjs/Divider/index.js.map +1 -1
  85. package/build/commonjs/Empty/Empty.js +3 -4
  86. package/build/commonjs/Empty/Empty.js.map +1 -1
  87. package/build/commonjs/Flexbox/Flexbox.js +2 -0
  88. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  89. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  90. package/build/commonjs/IconButton/IconButton.js +26 -2
  91. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  92. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  93. package/build/commonjs/IconButton/index.js +10 -2
  94. package/build/commonjs/IconButton/index.js.map +1 -1
  95. package/build/commonjs/ListItem/ListItem.js +47 -25
  96. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  97. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  98. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
  99. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  100. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  101. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  102. package/build/commonjs/ListItemText/ListItemText.js +20 -21
  103. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  104. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  105. package/build/commonjs/ListSubheader/ListSubheader.js +2 -2
  106. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  107. package/build/commonjs/Pagination/NumberPagination.js +1 -1
  108. package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
  109. package/build/commonjs/Pagination/Pagination.js +0 -4
  110. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  111. package/build/commonjs/Pagination/index.js +10 -2
  112. package/build/commonjs/Pagination/index.js.map +1 -1
  113. package/build/commonjs/Radio/Radio.js +7 -4
  114. package/build/commonjs/Radio/Radio.js.map +1 -1
  115. package/build/commonjs/Radio/index.js +2 -2
  116. package/build/commonjs/Radio/index.js.map +1 -1
  117. package/build/commonjs/RadioGroup/index.js +2 -2
  118. package/build/commonjs/RadioGroup/index.js.map +1 -1
  119. package/build/commonjs/Section/Section.js +32 -0
  120. package/build/commonjs/Section/Section.js.map +1 -0
  121. package/build/commonjs/Section/SectionProps.js +2 -0
  122. package/build/commonjs/Section/SectionProps.js.map +1 -0
  123. package/build/commonjs/{CheckboxGroup → Section}/index.js +2 -2
  124. package/build/commonjs/Section/index.js.map +1 -0
  125. package/build/commonjs/ShadowView/ShadowView.native.js +21 -5
  126. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  127. package/build/commonjs/Snackbar/Snackbar.js +1 -1
  128. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  129. package/build/commonjs/Snackbar/index.js +10 -2
  130. package/build/commonjs/Snackbar/index.js.map +1 -1
  131. package/build/commonjs/SnackbarContent/SnackbarContent.js +36 -11
  132. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  133. package/build/commonjs/SnackbarContent/StatusIcon.js +0 -2
  134. package/build/commonjs/SnackbarContent/StatusIcon.js.map +1 -1
  135. package/build/commonjs/SnackbarContent/index.js +2 -2
  136. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  137. package/build/commonjs/SvgIcon/index.js +16 -2
  138. package/build/commonjs/SvgIcon/index.js.map +1 -1
  139. package/build/commonjs/Tab/Tab.js +1 -1
  140. package/build/commonjs/Tab/Tab.js.map +1 -1
  141. package/build/commonjs/Tab/index.js +2 -2
  142. package/build/commonjs/Tab/index.js.map +1 -1
  143. package/build/commonjs/Tab/useVariantStyleMap.js +3 -3
  144. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
  145. package/build/commonjs/TabBase/index.js +2 -2
  146. package/build/commonjs/TabBase/index.js.map +1 -1
  147. package/build/commonjs/Tabs/Tabs.js +20 -3
  148. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  149. package/build/commonjs/Tabs/TabsProps.js +3 -1
  150. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  151. package/build/commonjs/Tabs/index.js +16 -2
  152. package/build/commonjs/Tabs/index.js.map +1 -1
  153. package/build/commonjs/Tabs/useTabsStyle.js +39 -0
  154. package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
  155. package/build/commonjs/TextField/TextField.js +1 -2
  156. package/build/commonjs/TextField/TextField.js.map +1 -1
  157. package/build/commonjs/TextField/index.js +10 -2
  158. package/build/commonjs/TextField/index.js.map +1 -1
  159. package/build/commonjs/TextField/useVariantStyleMap.js +2 -2
  160. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
  161. package/build/commonjs/Toggle/Toggle.js +5 -3
  162. package/build/commonjs/Toggle/Toggle.js.map +1 -1
  163. package/build/commonjs/Toolbar/Toolbar.js +17 -6
  164. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  165. package/build/commonjs/Toolbar/ToolbarProps.js +7 -0
  166. package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
  167. package/build/commonjs/Toolbar/index.js +8 -0
  168. package/build/commonjs/Toolbar/index.js.map +1 -1
  169. package/build/commonjs/Tooltip/Beaks/index.js +32 -0
  170. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
  171. package/build/commonjs/Tooltip/Tooltip.js +11 -19
  172. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  173. package/build/commonjs/Tooltip/index.js +41 -2
  174. package/build/commonjs/Tooltip/index.js.map +1 -1
  175. package/build/commonjs/Typography/Typography.js +9 -2
  176. package/build/commonjs/Typography/Typography.js.map +1 -1
  177. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  178. package/build/commonjs/Typography/index.js +10 -2
  179. package/build/commonjs/Typography/index.js.map +1 -1
  180. package/build/commonjs/hooks/useBreakpointUp.js +4 -1
  181. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  182. package/build/commonjs/hooks/useContentContainerStyle.js +21 -28
  183. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  184. package/build/commonjs/index.js +84 -21
  185. package/build/commonjs/index.js.map +1 -1
  186. package/build/commonjs/internal/icons/LoadingSpinner/index.js +14 -4
  187. package/build/commonjs/internal/icons/LoadingSpinner/index.js.map +1 -1
  188. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js +14 -4
  189. package/build/commonjs/internal/icons/LoadingSpinner/index.native.js.map +1 -1
  190. package/build/commonjs/utils/createSvgIcon.js +2 -10
  191. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  192. package/build/module/Accordion/Accordion.js +4 -2
  193. package/build/module/Accordion/Accordion.js.map +1 -1
  194. package/build/module/Accordion/index.js +2 -1
  195. package/build/module/Accordion/index.js.map +1 -1
  196. package/build/module/Accordion/useVariantStyleMap.js +15 -12
  197. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  198. package/build/module/AppBar/AppBar.js +8 -8
  199. package/build/module/AppBar/AppBar.js.map +1 -1
  200. package/build/module/AppBar/AppBarProps.js +1 -1
  201. package/build/module/AppBar/AppBarProps.js.map +1 -1
  202. package/build/module/AppBar/index.js +1 -0
  203. package/build/module/AppBar/index.js.map +1 -1
  204. package/build/module/Badge/index.js +2 -1
  205. package/build/module/Badge/index.js.map +1 -1
  206. package/build/module/Badge/useVariantStyleMap.js +15 -6
  207. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  208. package/build/module/{PaginationItem/LegacyPaginationItem.js → BottomSheetActions/BottomSheetActions.js} +9 -20
  209. package/build/module/BottomSheetActions/BottomSheetActions.js.map +1 -0
  210. package/build/module/BottomSheetActions/BottomSheetActionsProps.js +2 -0
  211. package/build/module/BottomSheetActions/BottomSheetActionsProps.js.map +1 -0
  212. package/build/module/BottomSheetActions/index.js +2 -0
  213. package/build/module/BottomSheetActions/index.js.map +1 -0
  214. package/build/module/BottomSheetContent/BottomSheetContent.js +32 -0
  215. package/build/module/BottomSheetContent/BottomSheetContent.js.map +1 -0
  216. package/build/module/BottomSheetContent/BottomSheetContentProps.js +2 -0
  217. package/build/module/BottomSheetContent/BottomSheetContentProps.js.map +1 -0
  218. package/build/module/BottomSheetContent/index.js +2 -0
  219. package/build/module/BottomSheetContent/index.js.map +1 -0
  220. package/build/module/BottomSheetTitle/BottomSheetTitle.js +61 -0
  221. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -0
  222. package/build/module/BottomSheetTitle/BottomSheetTitleProps.js +2 -0
  223. package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -0
  224. package/build/module/BottomSheetTitle/index.js +2 -0
  225. package/build/module/BottomSheetTitle/index.js.map +1 -0
  226. package/build/module/Button/Button.js +20 -11
  227. package/build/module/Button/Button.js.map +1 -1
  228. package/build/module/Button/ButtonProps.js +3 -3
  229. package/build/module/Button/ButtonProps.js.map +1 -1
  230. package/build/module/Button/index.js +2 -1
  231. package/build/module/Button/index.js.map +1 -1
  232. package/build/module/Button/useVariantStyleMap.js +7 -1
  233. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  234. package/build/module/Checkbox/Checkbox.js +5 -3
  235. package/build/module/Checkbox/Checkbox.js.map +1 -1
  236. package/build/module/Checkbox/index.js +2 -1
  237. package/build/module/Checkbox/index.js.map +1 -1
  238. package/build/module/Checkbox/useVariantStyleMap.js +10 -3
  239. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  240. package/build/module/Chip/index.js +2 -1
  241. package/build/module/Chip/index.js.map +1 -1
  242. package/build/module/Chip/useChipStyle.js +3 -7
  243. package/build/module/Chip/useChipStyle.js.map +1 -1
  244. package/build/module/Dialog/Dialog.js +11 -19
  245. package/build/module/Dialog/Dialog.js.map +1 -1
  246. package/build/module/Dialog/DialogContext.js +7 -0
  247. package/build/module/Dialog/DialogContext.js.map +1 -0
  248. package/build/module/Dialog/index.js +4 -1
  249. package/build/module/Dialog/index.js.map +1 -1
  250. package/build/module/Dialog/useDialogSectionStyle.js +29 -0
  251. package/build/module/Dialog/useDialogSectionStyle.js.map +1 -0
  252. package/build/module/Dialog/useDialogStyle.js +16 -18
  253. package/build/module/Dialog/useDialogStyle.js.map +1 -1
  254. package/build/module/DialogActions/DialogActions.js +18 -3
  255. package/build/module/DialogActions/DialogActions.js.map +1 -1
  256. package/build/module/DialogActions/index.js +1 -1
  257. package/build/module/DialogActions/index.js.map +1 -1
  258. package/build/module/DialogContent/DialogContent.js +5 -3
  259. package/build/module/DialogContent/DialogContent.js.map +1 -1
  260. package/build/module/DialogContent/index.js +1 -1
  261. package/build/module/DialogContent/index.js.map +1 -1
  262. package/build/module/DialogMedia/DialogMedia.js +1 -0
  263. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  264. package/build/module/DialogMedia/index.js +1 -1
  265. package/build/module/DialogMedia/index.js.map +1 -1
  266. package/build/module/DialogTitle/DialogTitle.js +3 -1
  267. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  268. package/build/module/DialogTitle/index.js +1 -1
  269. package/build/module/DialogTitle/index.js.map +1 -1
  270. package/build/module/Divider/Divider.js +1 -1
  271. package/build/module/Divider/Divider.js.map +1 -1
  272. package/build/module/Divider/DividerProps.js +1 -1
  273. package/build/module/Divider/DividerProps.js.map +1 -1
  274. package/build/module/Divider/index.js +2 -1
  275. package/build/module/Divider/index.js.map +1 -1
  276. package/build/module/Empty/Empty.js +3 -4
  277. package/build/module/Empty/Empty.js.map +1 -1
  278. package/build/module/Flexbox/Flexbox.js +2 -0
  279. package/build/module/Flexbox/Flexbox.js.map +1 -1
  280. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  281. package/build/module/IconButton/IconButton.js +25 -3
  282. package/build/module/IconButton/IconButton.js.map +1 -1
  283. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  284. package/build/module/IconButton/index.js +2 -1
  285. package/build/module/IconButton/index.js.map +1 -1
  286. package/build/module/ListItem/ListItem.js +45 -27
  287. package/build/module/ListItem/ListItem.js.map +1 -1
  288. package/build/module/ListItem/ListItemProps.js.map +1 -1
  289. package/build/module/ListItemIcon/ListItemIcon.js +1 -2
  290. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  291. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  292. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  293. package/build/module/ListItemText/ListItemText.js +17 -19
  294. package/build/module/ListItemText/ListItemText.js.map +1 -1
  295. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  296. package/build/module/ListSubheader/ListSubheader.js +2 -2
  297. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  298. package/build/module/Pagination/NumberPagination.js +1 -1
  299. package/build/module/Pagination/NumberPagination.js.map +1 -1
  300. package/build/module/Pagination/Pagination.js +0 -4
  301. package/build/module/Pagination/Pagination.js.map +1 -1
  302. package/build/module/Pagination/index.js +2 -1
  303. package/build/module/Pagination/index.js.map +1 -1
  304. package/build/module/Radio/Radio.js +6 -4
  305. package/build/module/Radio/Radio.js.map +1 -1
  306. package/build/module/Radio/index.js +1 -1
  307. package/build/module/Radio/index.js.map +1 -1
  308. package/build/module/RadioGroup/index.js +1 -1
  309. package/build/module/RadioGroup/index.js.map +1 -1
  310. package/build/module/Section/Section.js +19 -0
  311. package/build/module/Section/Section.js.map +1 -0
  312. package/build/module/Section/SectionProps.js +2 -0
  313. package/build/module/Section/SectionProps.js.map +1 -0
  314. package/build/module/Section/index.js +2 -0
  315. package/build/module/Section/index.js.map +1 -0
  316. package/build/module/ShadowView/ShadowView.native.js +21 -5
  317. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  318. package/build/module/Snackbar/Snackbar.js +1 -1
  319. package/build/module/Snackbar/Snackbar.js.map +1 -1
  320. package/build/module/Snackbar/index.js +2 -1
  321. package/build/module/Snackbar/index.js.map +1 -1
  322. package/build/module/SnackbarContent/SnackbarContent.js +37 -12
  323. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  324. package/build/module/SnackbarContent/StatusIcon.js +0 -2
  325. package/build/module/SnackbarContent/StatusIcon.js.map +1 -1
  326. package/build/module/SnackbarContent/index.js +1 -1
  327. package/build/module/SnackbarContent/index.js.map +1 -1
  328. package/build/module/SvgIcon/index.js +2 -1
  329. package/build/module/SvgIcon/index.js.map +1 -1
  330. package/build/module/Tab/Tab.js +1 -1
  331. package/build/module/Tab/Tab.js.map +1 -1
  332. package/build/module/Tab/index.js +1 -1
  333. package/build/module/Tab/index.js.map +1 -1
  334. package/build/module/Tab/useVariantStyleMap.js +3 -3
  335. package/build/module/Tab/useVariantStyleMap.js.map +1 -1
  336. package/build/module/TabBase/index.js +1 -1
  337. package/build/module/TabBase/index.js.map +1 -1
  338. package/build/module/Tabs/Tabs.js +19 -3
  339. package/build/module/Tabs/Tabs.js.map +1 -1
  340. package/build/module/Tabs/TabsProps.js +1 -0
  341. package/build/module/Tabs/TabsProps.js.map +1 -1
  342. package/build/module/Tabs/index.js +2 -1
  343. package/build/module/Tabs/index.js.map +1 -1
  344. package/build/module/Tabs/useTabsStyle.js +30 -0
  345. package/build/module/Tabs/useTabsStyle.js.map +1 -0
  346. package/build/module/TextField/TextField.js +1 -2
  347. package/build/module/TextField/TextField.js.map +1 -1
  348. package/build/module/TextField/index.js +2 -1
  349. package/build/module/TextField/index.js.map +1 -1
  350. package/build/module/TextField/useVariantStyleMap.js +2 -2
  351. package/build/module/TextField/useVariantStyleMap.js.map +1 -1
  352. package/build/module/Toggle/Toggle.js +5 -3
  353. package/build/module/Toggle/Toggle.js.map +1 -1
  354. package/build/module/Toolbar/Toolbar.js +16 -6
  355. package/build/module/Toolbar/Toolbar.js.map +1 -1
  356. package/build/module/Toolbar/ToolbarProps.js +1 -1
  357. package/build/module/Toolbar/ToolbarProps.js.map +1 -1
  358. package/build/module/Toolbar/index.js +1 -0
  359. package/build/module/Toolbar/index.js.map +1 -1
  360. package/build/module/Tooltip/Beaks/index.js +4 -0
  361. package/build/module/Tooltip/Beaks/index.js.map +1 -1
  362. package/build/module/Tooltip/Tooltip.js +4 -11
  363. package/build/module/Tooltip/Tooltip.js.map +1 -1
  364. package/build/module/Tooltip/index.js +3 -1
  365. package/build/module/Tooltip/index.js.map +1 -1
  366. package/build/module/Typography/Typography.js +9 -2
  367. package/build/module/Typography/Typography.js.map +1 -1
  368. package/build/module/Typography/TypographyProps.js.map +1 -1
  369. package/build/module/Typography/index.js +2 -1
  370. package/build/module/Typography/index.js.map +1 -1
  371. package/build/module/hooks/useBreakpointUp.js +4 -1
  372. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  373. package/build/module/hooks/useContentContainerStyle.js +23 -26
  374. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  375. package/build/module/index.js +8 -2
  376. package/build/module/index.js.map +1 -1
  377. package/build/module/internal/icons/LoadingSpinner/index.js +13 -4
  378. package/build/module/internal/icons/LoadingSpinner/index.js.map +1 -1
  379. package/build/module/internal/icons/LoadingSpinner/index.native.js +13 -4
  380. package/build/module/internal/icons/LoadingSpinner/index.native.js.map +1 -1
  381. package/build/module/utils/createSvgIcon.js +2 -9
  382. package/build/module/utils/createSvgIcon.js.map +1 -1
  383. package/build/typescript/Accordion/index.d.ts +3 -2
  384. package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
  385. package/build/typescript/AppBar/AppBarProps.d.ts +2 -1
  386. package/build/typescript/AppBar/index.d.ts +1 -0
  387. package/build/typescript/Badge/index.d.ts +3 -2
  388. package/build/typescript/BottomSheetActions/BottomSheetActions.d.ts +3 -0
  389. package/build/typescript/BottomSheetActions/BottomSheetActionsProps.d.ts +4 -0
  390. package/build/typescript/BottomSheetActions/index.d.ts +2 -0
  391. package/build/typescript/BottomSheetContent/BottomSheetContent.d.ts +3 -0
  392. package/build/typescript/BottomSheetContent/BottomSheetContentProps.d.ts +4 -0
  393. package/build/typescript/BottomSheetContent/index.d.ts +2 -0
  394. package/build/typescript/BottomSheetTitle/BottomSheetTitle.d.ts +3 -0
  395. package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +12 -0
  396. package/build/typescript/BottomSheetTitle/index.d.ts +2 -0
  397. package/build/typescript/Button/ButtonProps.d.ts +11 -6
  398. package/build/typescript/Button/index.d.ts +3 -2
  399. package/build/typescript/Checkbox/index.d.ts +3 -2
  400. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
  401. package/build/typescript/Chip/index.d.ts +3 -2
  402. package/build/typescript/Dialog/DialogContext.d.ts +7 -0
  403. package/build/typescript/Dialog/index.d.ts +5 -2
  404. package/build/typescript/Dialog/useDialogSectionStyle.d.ts +2 -0
  405. package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
  406. package/build/typescript/DialogActions/index.d.ts +1 -1
  407. package/build/typescript/DialogContent/index.d.ts +2 -2
  408. package/build/typescript/DialogMedia/index.d.ts +2 -2
  409. package/build/typescript/DialogTitle/index.d.ts +2 -2
  410. package/build/typescript/Divider/DividerProps.d.ts +3 -3
  411. package/build/typescript/Divider/index.d.ts +3 -2
  412. package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
  413. package/build/typescript/IconButton/IconButtonProps.d.ts +5 -0
  414. package/build/typescript/IconButton/index.d.ts +3 -2
  415. package/build/typescript/ListItem/ListItem.d.ts +1 -1
  416. package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
  417. package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
  418. package/build/typescript/Pagination/index.d.ts +3 -2
  419. package/build/typescript/Radio/index.d.ts +2 -2
  420. package/build/typescript/RadioGroup/index.d.ts +1 -1
  421. package/build/typescript/Section/Section.d.ts +3 -0
  422. package/build/typescript/Section/SectionProps.d.ts +6 -0
  423. package/build/typescript/Section/index.d.ts +2 -0
  424. package/build/typescript/Snackbar/index.d.ts +3 -2
  425. package/build/typescript/SnackbarContent/index.d.ts +2 -2
  426. package/build/typescript/SvgIcon/index.d.ts +3 -2
  427. package/build/typescript/Tab/index.d.ts +2 -2
  428. package/build/typescript/TabBase/index.d.ts +1 -1
  429. package/build/typescript/Tabs/Tabs.d.ts +1 -1
  430. package/build/typescript/Tabs/TabsProps.d.ts +8 -1
  431. package/build/typescript/Tabs/index.d.ts +3 -2
  432. package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
  433. package/build/typescript/TextField/index.d.ts +3 -2
  434. package/build/typescript/Toolbar/ToolbarProps.d.ts +9 -2
  435. package/build/typescript/Toolbar/index.d.ts +1 -0
  436. package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
  437. package/build/typescript/Tooltip/index.d.ts +4 -2
  438. package/build/typescript/Typography/TypographyProps.d.ts +4 -0
  439. package/build/typescript/Typography/index.d.ts +3 -2
  440. package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
  441. package/build/typescript/index.d.ts +8 -2
  442. package/build/typescript/internal/icons/Check.d.ts +125 -2
  443. package/build/typescript/internal/icons/CheckCircle.d.ts +125 -2
  444. package/build/typescript/internal/icons/Checkbox.d.ts +125 -2
  445. package/build/typescript/internal/icons/CheckboxChecked.d.ts +125 -2
  446. package/build/typescript/internal/icons/CheckboxOn.d.ts +125 -2
  447. package/build/typescript/internal/icons/ChevronDown.d.ts +125 -2
  448. package/build/typescript/internal/icons/ChevronLeft.d.ts +125 -2
  449. package/build/typescript/internal/icons/ChevronRight.d.ts +125 -2
  450. package/build/typescript/internal/icons/Clear.d.ts +125 -2
  451. package/build/typescript/internal/icons/Close.d.ts +125 -2
  452. package/build/typescript/internal/icons/EyeOff.d.ts +125 -2
  453. package/build/typescript/internal/icons/EyeOn.d.ts +125 -2
  454. package/build/typescript/internal/icons/InfoCircle.d.ts +125 -2
  455. package/build/typescript/internal/icons/Radio.d.ts +125 -2
  456. package/build/typescript/internal/icons/RadioChecked.d.ts +125 -2
  457. package/build/typescript/internal/icons/Search.d.ts +125 -2
  458. package/build/typescript/utils/createSvgIcon.d.ts +1 -5
  459. package/package.json +4 -4
  460. package/src/Accordion/Accordion.tsx +4 -2
  461. package/src/Accordion/index.ts +3 -2
  462. package/src/Accordion/useVariantStyleMap.ts +14 -10
  463. package/src/AppBar/AppBar.tsx +7 -13
  464. package/src/AppBar/AppBarProps.ts +2 -1
  465. package/src/AppBar/index.ts +2 -1
  466. package/src/Badge/index.ts +13 -2
  467. package/src/Badge/useVariantStyleMap.ts +17 -7
  468. package/src/BottomSheetActions/BottomSheetActions.tsx +42 -0
  469. package/src/BottomSheetActions/BottomSheetActionsProps.ts +4 -0
  470. package/src/BottomSheetActions/index.ts +2 -0
  471. package/src/BottomSheetContent/BottomSheetContent.tsx +45 -0
  472. package/src/BottomSheetContent/BottomSheetContentProps.ts +4 -0
  473. package/src/BottomSheetContent/index.ts +2 -0
  474. package/src/BottomSheetTitle/BottomSheetTitle.tsx +84 -0
  475. package/src/BottomSheetTitle/BottomSheetTitleProps.ts +12 -0
  476. package/src/BottomSheetTitle/index.ts +2 -0
  477. package/src/Button/Button.tsx +28 -15
  478. package/src/Button/ButtonProps.ts +12 -6
  479. package/src/Button/index.ts +3 -2
  480. package/src/Button/useVariantStyleMap.ts +5 -1
  481. package/src/Checkbox/Checkbox.tsx +12 -10
  482. package/src/Checkbox/index.ts +3 -2
  483. package/src/Checkbox/useVariantStyleMap.ts +9 -1
  484. package/src/Chip/index.ts +3 -2
  485. package/src/Chip/useChipStyle.ts +2 -6
  486. package/src/Dialog/Dialog.tsx +9 -19
  487. package/src/Dialog/DialogContext.tsx +14 -0
  488. package/src/Dialog/index.ts +5 -2
  489. package/src/Dialog/useDialogSectionStyle.ts +31 -0
  490. package/src/Dialog/useDialogStyle.ts +14 -22
  491. package/src/DialogActions/DialogActions.tsx +28 -3
  492. package/src/DialogActions/index.ts +1 -1
  493. package/src/DialogContent/DialogContent.tsx +6 -2
  494. package/src/DialogContent/index.ts +2 -2
  495. package/src/DialogMedia/DialogMedia.tsx +1 -0
  496. package/src/DialogMedia/index.ts +2 -2
  497. package/src/DialogTitle/DialogTitle.tsx +4 -0
  498. package/src/DialogTitle/index.ts +2 -2
  499. package/src/Divider/Divider.tsx +1 -1
  500. package/src/Divider/DividerProps.ts +3 -3
  501. package/src/Divider/index.ts +3 -2
  502. package/src/Empty/Empty.tsx +3 -5
  503. package/src/Flexbox/Flexbox.tsx +2 -0
  504. package/src/Flexbox/FlexboxProps.ts +5 -0
  505. package/src/IconButton/IconButton.tsx +33 -3
  506. package/src/IconButton/IconButtonProps.ts +6 -0
  507. package/src/IconButton/index.ts +3 -2
  508. package/src/ListItem/ListItem.tsx +69 -28
  509. package/src/ListItem/ListItemProps.ts +5 -0
  510. package/src/ListItemIcon/ListItemIcon.tsx +1 -2
  511. package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
  512. package/src/ListItemText/ListItemText.tsx +20 -28
  513. package/src/ListItemText/ListItemTextProps.ts +2 -10
  514. package/src/ListSubheader/ListSubheader.tsx +2 -2
  515. package/src/Pagination/NumberPagination.tsx +1 -1
  516. package/src/Pagination/Pagination.tsx +0 -4
  517. package/src/Pagination/index.ts +3 -2
  518. package/src/Radio/Radio.tsx +9 -6
  519. package/src/Radio/index.ts +2 -2
  520. package/src/RadioGroup/index.ts +1 -1
  521. package/src/Section/Section.tsx +26 -0
  522. package/src/Section/SectionProps.ts +6 -0
  523. package/src/Section/index.ts +2 -0
  524. package/src/ShadowView/ShadowView.native.tsx +25 -10
  525. package/src/Snackbar/Snackbar.tsx +1 -1
  526. package/src/Snackbar/index.ts +3 -2
  527. package/src/SnackbarContent/SnackbarContent.tsx +48 -19
  528. package/src/SnackbarContent/StatusIcon.tsx +0 -2
  529. package/src/SnackbarContent/index.ts +2 -2
  530. package/src/SvgIcon/index.ts +3 -2
  531. package/src/Tab/Tab.tsx +1 -1
  532. package/src/Tab/index.ts +2 -2
  533. package/src/Tab/useVariantStyleMap.ts +3 -3
  534. package/src/TabBase/index.ts +1 -1
  535. package/src/Tabs/Tabs.tsx +21 -3
  536. package/src/Tabs/TabsProps.ts +10 -1
  537. package/src/Tabs/index.ts +3 -2
  538. package/src/Tabs/useTabsStyle.ts +35 -0
  539. package/src/TextField/TextField.tsx +1 -2
  540. package/src/TextField/index.tsx +3 -2
  541. package/src/TextField/useVariantStyleMap.ts +2 -2
  542. package/src/Toggle/Toggle.tsx +7 -5
  543. package/src/Toolbar/Toolbar.tsx +13 -6
  544. package/src/Toolbar/ToolbarProps.ts +11 -2
  545. package/src/Toolbar/index.ts +2 -1
  546. package/src/Tooltip/Beaks/index.ts +4 -0
  547. package/src/Tooltip/Tooltip.tsx +5 -11
  548. package/src/Tooltip/index.ts +4 -2
  549. package/src/Typography/Typography.tsx +3 -1
  550. package/src/Typography/TypographyProps.ts +5 -0
  551. package/src/Typography/index.ts +3 -2
  552. package/src/hooks/useBreakpointUp.ts +3 -1
  553. package/src/hooks/useContentContainerStyle.ts +26 -34
  554. package/src/index.ts +12 -3
  555. package/src/internal/icons/LoadingSpinner/index.native.tsx +17 -7
  556. package/src/internal/icons/LoadingSpinner/index.tsx +17 -7
  557. package/src/utils/createSvgIcon.tsx +3 -21
  558. package/build/commonjs/Accordion/LegacyAccordion.js +0 -171
  559. package/build/commonjs/Accordion/LegacyAccordion.js.map +0 -1
  560. package/build/commonjs/Accordion/LegacyAccordionProps.js +0 -2
  561. package/build/commonjs/Accordion/LegacyAccordionProps.js.map +0 -1
  562. package/build/commonjs/Badge/LegacyBadge.js +0 -61
  563. package/build/commonjs/Badge/LegacyBadge.js.map +0 -1
  564. package/build/commonjs/Badge/LegacyBadgeProps.js +0 -2
  565. package/build/commonjs/Badge/LegacyBadgeProps.js.map +0 -1
  566. package/build/commonjs/Button/LegacyButton.js +0 -144
  567. package/build/commonjs/Button/LegacyButton.js.map +0 -1
  568. package/build/commonjs/Button/LegacyButtonProps.js +0 -2
  569. package/build/commonjs/Button/LegacyButtonProps.js.map +0 -1
  570. package/build/commonjs/Checkbox/LegacyCheckbox.js +0 -65
  571. package/build/commonjs/Checkbox/LegacyCheckbox.js.map +0 -1
  572. package/build/commonjs/Checkbox/LegacyCheckboxProps.js +0 -2
  573. package/build/commonjs/Checkbox/LegacyCheckboxProps.js.map +0 -1
  574. package/build/commonjs/CheckboxGroup/CheckboxGroup.js +0 -50
  575. package/build/commonjs/CheckboxGroup/CheckboxGroup.js.map +0 -1
  576. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js +0 -2
  577. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
  578. package/build/commonjs/CheckboxGroup/index.js.map +0 -1
  579. package/build/commonjs/Chip/LegacyChip.js +0 -98
  580. package/build/commonjs/Chip/LegacyChip.js.map +0 -1
  581. package/build/commonjs/Chip/LegacyChipProps.js +0 -2
  582. package/build/commonjs/Chip/LegacyChipProps.js.map +0 -1
  583. package/build/commonjs/Dialog/LegacyDialog.js +0 -181
  584. package/build/commonjs/Dialog/LegacyDialog.js.map +0 -1
  585. package/build/commonjs/Dialog/LegacyDialogProps.js +0 -2
  586. package/build/commonjs/Dialog/LegacyDialogProps.js.map +0 -1
  587. package/build/commonjs/DialogActions/LegacyDialogActions.js +0 -30
  588. package/build/commonjs/DialogActions/LegacyDialogActions.js.map +0 -1
  589. package/build/commonjs/DialogContent/LegacyDialogContent.js +0 -36
  590. package/build/commonjs/DialogContent/LegacyDialogContent.js.map +0 -1
  591. package/build/commonjs/DialogContent/LegacyDialogContentProps.js +0 -2
  592. package/build/commonjs/DialogContent/LegacyDialogContentProps.js.map +0 -1
  593. package/build/commonjs/DialogMedia/LegacyDialogMedia.js +0 -33
  594. package/build/commonjs/DialogMedia/LegacyDialogMedia.js.map +0 -1
  595. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js +0 -2
  596. package/build/commonjs/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
  597. package/build/commonjs/DialogTitle/LegacyDialogTitle.js +0 -36
  598. package/build/commonjs/DialogTitle/LegacyDialogTitle.js.map +0 -1
  599. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js +0 -2
  600. package/build/commonjs/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
  601. package/build/commonjs/Divider/LegacyDivider.js +0 -114
  602. package/build/commonjs/Divider/LegacyDivider.js.map +0 -1
  603. package/build/commonjs/Divider/LegacyDividerProps.js +0 -2
  604. package/build/commonjs/Divider/LegacyDividerProps.js.map +0 -1
  605. package/build/commonjs/IconButton/LegacyIconButton.js +0 -89
  606. package/build/commonjs/IconButton/LegacyIconButton.js.map +0 -1
  607. package/build/commonjs/IconButton/LegacyIconButtonProps.js +0 -2
  608. package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +0 -1
  609. package/build/commonjs/Pagination/LegacyPagination.js +0 -145
  610. package/build/commonjs/Pagination/LegacyPagination.js.map +0 -1
  611. package/build/commonjs/Pagination/LegacyPaginationProps.js +0 -2
  612. package/build/commonjs/Pagination/LegacyPaginationProps.js.map +0 -1
  613. package/build/commonjs/PaginationItem/LegacyPaginationItem.js.map +0 -1
  614. package/build/commonjs/Radio/LegacyRadio.js +0 -82
  615. package/build/commonjs/Radio/LegacyRadio.js.map +0 -1
  616. package/build/commonjs/Radio/LegacyRadioProps.js +0 -2
  617. package/build/commonjs/Radio/LegacyRadioProps.js.map +0 -1
  618. package/build/commonjs/RadioGroup/LegacyRadioGroup.js +0 -31
  619. package/build/commonjs/RadioGroup/LegacyRadioGroup.js.map +0 -1
  620. package/build/commonjs/Snackbar/LegacySnackbar.js +0 -134
  621. package/build/commonjs/Snackbar/LegacySnackbar.js.map +0 -1
  622. package/build/commonjs/Snackbar/LegacySnackbarProps.js +0 -2
  623. package/build/commonjs/Snackbar/LegacySnackbarProps.js.map +0 -1
  624. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js +0 -105
  625. package/build/commonjs/SnackbarContent/LegacySnackbarContent.js.map +0 -1
  626. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js +0 -2
  627. package/build/commonjs/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
  628. package/build/commonjs/SvgIcon/LegacySvgIcon.js.map +0 -1
  629. package/build/commonjs/SvgIcon/LegacySvgIconProps.js +0 -2
  630. package/build/commonjs/SvgIcon/LegacySvgIconProps.js.map +0 -1
  631. package/build/commonjs/Tab/LegacyTab.js +0 -126
  632. package/build/commonjs/Tab/LegacyTab.js.map +0 -1
  633. package/build/commonjs/Tab/LegacyTabProps.js +0 -2
  634. package/build/commonjs/Tab/LegacyTabProps.js.map +0 -1
  635. package/build/commonjs/Tab/TabIndicator.js +0 -44
  636. package/build/commonjs/Tab/TabIndicator.js.map +0 -1
  637. package/build/commonjs/TabBase/LegacyTabBase.js +0 -57
  638. package/build/commonjs/TabBase/LegacyTabBase.js.map +0 -1
  639. package/build/commonjs/Tabs/LegacyTabIndicator.js +0 -120
  640. package/build/commonjs/Tabs/LegacyTabIndicator.js.map +0 -1
  641. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js +0 -2
  642. package/build/commonjs/Tabs/LegacyTabIndicatorProps.js.map +0 -1
  643. package/build/commonjs/Tabs/LegacyTabs.js +0 -207
  644. package/build/commonjs/Tabs/LegacyTabs.js.map +0 -1
  645. package/build/commonjs/Tabs/LegacyTabsProps.js +0 -2
  646. package/build/commonjs/Tabs/LegacyTabsProps.js.map +0 -1
  647. package/build/commonjs/TextField/InputLabel.js +0 -163
  648. package/build/commonjs/TextField/InputLabel.js.map +0 -1
  649. package/build/commonjs/TextField/LegacyTextField.js +0 -195
  650. package/build/commonjs/TextField/LegacyTextField.js.map +0 -1
  651. package/build/commonjs/TextField/LegacyTextFieldProps.js +0 -2
  652. package/build/commonjs/TextField/LegacyTextFieldProps.js.map +0 -1
  653. package/build/commonjs/TextField/OutlinedTextField.js +0 -190
  654. package/build/commonjs/TextField/OutlinedTextField.js.map +0 -1
  655. package/build/commonjs/Tooltip/LegacyTooltip.js +0 -147
  656. package/build/commonjs/Tooltip/LegacyTooltip.js.map +0 -1
  657. package/build/commonjs/Tooltip/LegacyTooltipProps.js +0 -2
  658. package/build/commonjs/Tooltip/LegacyTooltipProps.js.map +0 -1
  659. package/build/commonjs/Tooltip/UpArrow.js +0 -34
  660. package/build/commonjs/Tooltip/UpArrow.js.map +0 -1
  661. package/build/commonjs/Tooltip/UpArrowProps.js +0 -2
  662. package/build/commonjs/Tooltip/UpArrowProps.js.map +0 -1
  663. package/build/commonjs/Typography/LegacyTypography.js +0 -142
  664. package/build/commonjs/Typography/LegacyTypography.js.map +0 -1
  665. package/build/commonjs/Typography/LegacyTypographyProps.js +0 -2
  666. package/build/commonjs/Typography/LegacyTypographyProps.js.map +0 -1
  667. package/build/module/Accordion/LegacyAccordion.js +0 -148
  668. package/build/module/Accordion/LegacyAccordion.js.map +0 -1
  669. package/build/module/Accordion/LegacyAccordionProps.js +0 -2
  670. package/build/module/Accordion/LegacyAccordionProps.js.map +0 -1
  671. package/build/module/Badge/LegacyBadge.js +0 -48
  672. package/build/module/Badge/LegacyBadge.js.map +0 -1
  673. package/build/module/Badge/LegacyBadgeProps.js +0 -2
  674. package/build/module/Badge/LegacyBadgeProps.js.map +0 -1
  675. package/build/module/Button/LegacyButton.js +0 -127
  676. package/build/module/Button/LegacyButton.js.map +0 -1
  677. package/build/module/Button/LegacyButtonProps.js +0 -2
  678. package/build/module/Button/LegacyButtonProps.js.map +0 -1
  679. package/build/module/Checkbox/LegacyCheckbox.js +0 -52
  680. package/build/module/Checkbox/LegacyCheckbox.js.map +0 -1
  681. package/build/module/Checkbox/LegacyCheckboxProps.js +0 -2
  682. package/build/module/Checkbox/LegacyCheckboxProps.js.map +0 -1
  683. package/build/module/CheckboxGroup/CheckboxGroup.js +0 -34
  684. package/build/module/CheckboxGroup/CheckboxGroup.js.map +0 -1
  685. package/build/module/CheckboxGroup/CheckboxGroupProps.js +0 -2
  686. package/build/module/CheckboxGroup/CheckboxGroupProps.js.map +0 -1
  687. package/build/module/CheckboxGroup/index.js +0 -2
  688. package/build/module/CheckboxGroup/index.js.map +0 -1
  689. package/build/module/Chip/LegacyChip.js +0 -84
  690. package/build/module/Chip/LegacyChip.js.map +0 -1
  691. package/build/module/Chip/LegacyChipProps.js +0 -2
  692. package/build/module/Chip/LegacyChipProps.js.map +0 -1
  693. package/build/module/Dialog/LegacyDialog.js +0 -160
  694. package/build/module/Dialog/LegacyDialog.js.map +0 -1
  695. package/build/module/Dialog/LegacyDialogProps.js +0 -2
  696. package/build/module/Dialog/LegacyDialogProps.js.map +0 -1
  697. package/build/module/DialogActions/LegacyDialogActions.js +0 -17
  698. package/build/module/DialogActions/LegacyDialogActions.js.map +0 -1
  699. package/build/module/DialogContent/LegacyDialogContent.js +0 -22
  700. package/build/module/DialogContent/LegacyDialogContent.js.map +0 -1
  701. package/build/module/DialogContent/LegacyDialogContentProps.js +0 -2
  702. package/build/module/DialogContent/LegacyDialogContentProps.js.map +0 -1
  703. package/build/module/DialogMedia/LegacyDialogMedia.js +0 -21
  704. package/build/module/DialogMedia/LegacyDialogMedia.js.map +0 -1
  705. package/build/module/DialogMedia/LegacyDialogMediaProps.js +0 -2
  706. package/build/module/DialogMedia/LegacyDialogMediaProps.js.map +0 -1
  707. package/build/module/DialogTitle/LegacyDialogTitle.js +0 -22
  708. package/build/module/DialogTitle/LegacyDialogTitle.js.map +0 -1
  709. package/build/module/DialogTitle/LegacyDialogTitleProps.js +0 -2
  710. package/build/module/DialogTitle/LegacyDialogTitleProps.js.map +0 -1
  711. package/build/module/Divider/LegacyDivider.js +0 -100
  712. package/build/module/Divider/LegacyDivider.js.map +0 -1
  713. package/build/module/Divider/LegacyDividerProps.js +0 -2
  714. package/build/module/Divider/LegacyDividerProps.js.map +0 -1
  715. package/build/module/IconButton/LegacyIconButton.js +0 -74
  716. package/build/module/IconButton/LegacyIconButton.js.map +0 -1
  717. package/build/module/IconButton/LegacyIconButtonProps.js +0 -2
  718. package/build/module/IconButton/LegacyIconButtonProps.js.map +0 -1
  719. package/build/module/Pagination/LegacyPagination.js +0 -129
  720. package/build/module/Pagination/LegacyPagination.js.map +0 -1
  721. package/build/module/Pagination/LegacyPaginationProps.js +0 -2
  722. package/build/module/Pagination/LegacyPaginationProps.js.map +0 -1
  723. package/build/module/PaginationItem/LegacyPaginationItem.js.map +0 -1
  724. package/build/module/Radio/LegacyRadio.js +0 -63
  725. package/build/module/Radio/LegacyRadio.js.map +0 -1
  726. package/build/module/Radio/LegacyRadioProps.js +0 -2
  727. package/build/module/Radio/LegacyRadioProps.js.map +0 -1
  728. package/build/module/RadioGroup/LegacyRadioGroup.js +0 -18
  729. package/build/module/RadioGroup/LegacyRadioGroup.js.map +0 -1
  730. package/build/module/Snackbar/LegacySnackbar.js +0 -107
  731. package/build/module/Snackbar/LegacySnackbar.js.map +0 -1
  732. package/build/module/Snackbar/LegacySnackbarProps.js +0 -2
  733. package/build/module/Snackbar/LegacySnackbarProps.js.map +0 -1
  734. package/build/module/SnackbarContent/LegacySnackbarContent.js +0 -84
  735. package/build/module/SnackbarContent/LegacySnackbarContent.js.map +0 -1
  736. package/build/module/SnackbarContent/LegacySnackbarContentProps.js +0 -2
  737. package/build/module/SnackbarContent/LegacySnackbarContentProps.js.map +0 -1
  738. package/build/module/SvgIcon/LegacySvgIcon.js +0 -30
  739. package/build/module/SvgIcon/LegacySvgIcon.js.map +0 -1
  740. package/build/module/SvgIcon/LegacySvgIconProps.js +0 -2
  741. package/build/module/SvgIcon/LegacySvgIconProps.js.map +0 -1
  742. package/build/module/Tab/LegacyTab.js +0 -105
  743. package/build/module/Tab/LegacyTab.js.map +0 -1
  744. package/build/module/Tab/LegacyTabProps.js +0 -2
  745. package/build/module/Tab/LegacyTabProps.js.map +0 -1
  746. package/build/module/Tab/TabIndicator.js +0 -31
  747. package/build/module/Tab/TabIndicator.js.map +0 -1
  748. package/build/module/TabBase/LegacyTabBase.js +0 -44
  749. package/build/module/TabBase/LegacyTabBase.js.map +0 -1
  750. package/build/module/Tabs/LegacyTabIndicator.js +0 -99
  751. package/build/module/Tabs/LegacyTabIndicator.js.map +0 -1
  752. package/build/module/Tabs/LegacyTabIndicatorProps.js +0 -2
  753. package/build/module/Tabs/LegacyTabIndicatorProps.js.map +0 -1
  754. package/build/module/Tabs/LegacyTabs.js +0 -182
  755. package/build/module/Tabs/LegacyTabs.js.map +0 -1
  756. package/build/module/Tabs/LegacyTabsProps.js +0 -2
  757. package/build/module/Tabs/LegacyTabsProps.js.map +0 -1
  758. package/build/module/TextField/InputLabel.js +0 -149
  759. package/build/module/TextField/InputLabel.js.map +0 -1
  760. package/build/module/TextField/LegacyTextField.js +0 -169
  761. package/build/module/TextField/LegacyTextField.js.map +0 -1
  762. package/build/module/TextField/LegacyTextFieldProps.js +0 -2
  763. package/build/module/TextField/LegacyTextFieldProps.js.map +0 -1
  764. package/build/module/TextField/OutlinedTextField.js +0 -174
  765. package/build/module/TextField/OutlinedTextField.js.map +0 -1
  766. package/build/module/Tooltip/LegacyTooltip.js +0 -121
  767. package/build/module/Tooltip/LegacyTooltip.js.map +0 -1
  768. package/build/module/Tooltip/LegacyTooltipProps.js +0 -2
  769. package/build/module/Tooltip/LegacyTooltipProps.js.map +0 -1
  770. package/build/module/Tooltip/UpArrow.js +0 -22
  771. package/build/module/Tooltip/UpArrow.js.map +0 -1
  772. package/build/module/Tooltip/UpArrowProps.js +0 -2
  773. package/build/module/Tooltip/UpArrowProps.js.map +0 -1
  774. package/build/module/Typography/LegacyTypography.js +0 -126
  775. package/build/module/Typography/LegacyTypography.js.map +0 -1
  776. package/build/module/Typography/LegacyTypographyProps.js +0 -2
  777. package/build/module/Typography/LegacyTypographyProps.js.map +0 -1
  778. package/build/typescript/Accordion/LegacyAccordion.d.ts +0 -3
  779. package/build/typescript/Accordion/LegacyAccordionProps.d.ts +0 -28
  780. package/build/typescript/Badge/LegacyBadge.d.ts +0 -3
  781. package/build/typescript/Badge/LegacyBadgeProps.d.ts +0 -34
  782. package/build/typescript/Button/LegacyButton.d.ts +0 -3
  783. package/build/typescript/Button/LegacyButtonProps.d.ts +0 -51
  784. package/build/typescript/Checkbox/LegacyCheckbox.d.ts +0 -3
  785. package/build/typescript/Checkbox/LegacyCheckboxProps.d.ts +0 -36
  786. package/build/typescript/CheckboxGroup/CheckboxGroup.d.ts +0 -3
  787. package/build/typescript/CheckboxGroup/CheckboxGroupProps.d.ts +0 -11
  788. package/build/typescript/CheckboxGroup/index.d.ts +0 -2
  789. package/build/typescript/Chip/LegacyChip.d.ts +0 -3
  790. package/build/typescript/Chip/LegacyChipProps.d.ts +0 -28
  791. package/build/typescript/Dialog/LegacyDialog.d.ts +0 -3
  792. package/build/typescript/Dialog/LegacyDialogProps.d.ts +0 -25
  793. package/build/typescript/DialogActions/LegacyDialogActions.d.ts +0 -3
  794. package/build/typescript/DialogContent/LegacyDialogContent.d.ts +0 -3
  795. package/build/typescript/DialogContent/LegacyDialogContentProps.d.ts +0 -10
  796. package/build/typescript/DialogMedia/LegacyDialogMedia.d.ts +0 -3
  797. package/build/typescript/DialogMedia/LegacyDialogMediaProps.d.ts +0 -15
  798. package/build/typescript/DialogTitle/LegacyDialogTitle.d.ts +0 -3
  799. package/build/typescript/DialogTitle/LegacyDialogTitleProps.d.ts +0 -15
  800. package/build/typescript/Divider/LegacyDivider.d.ts +0 -3
  801. package/build/typescript/Divider/LegacyDividerProps.d.ts +0 -41
  802. package/build/typescript/IconButton/LegacyIconButton.d.ts +0 -3
  803. package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +0 -30
  804. package/build/typescript/Pagination/LegacyPagination.d.ts +0 -3
  805. package/build/typescript/Pagination/LegacyPaginationProps.d.ts +0 -71
  806. package/build/typescript/PaginationItem/LegacyPaginationItem.d.ts +0 -5
  807. package/build/typescript/Radio/LegacyRadio.d.ts +0 -3
  808. package/build/typescript/Radio/LegacyRadioProps.d.ts +0 -43
  809. package/build/typescript/RadioGroup/LegacyRadioGroup.d.ts +0 -3
  810. package/build/typescript/Snackbar/LegacySnackbar.d.ts +0 -3
  811. package/build/typescript/Snackbar/LegacySnackbarProps.d.ts +0 -51
  812. package/build/typescript/SnackbarContent/LegacySnackbarContent.d.ts +0 -3
  813. package/build/typescript/SnackbarContent/LegacySnackbarContentProps.d.ts +0 -26
  814. package/build/typescript/SvgIcon/LegacySvgIcon.d.ts +0 -3
  815. package/build/typescript/SvgIcon/LegacySvgIconProps.d.ts +0 -35
  816. package/build/typescript/Tab/LegacyTab.d.ts +0 -3
  817. package/build/typescript/Tab/LegacyTabProps.d.ts +0 -58
  818. package/build/typescript/Tab/TabIndicator.d.ts +0 -7
  819. package/build/typescript/TabBase/LegacyTabBase.d.ts +0 -3
  820. package/build/typescript/Tabs/LegacyTabIndicator.d.ts +0 -3
  821. package/build/typescript/Tabs/LegacyTabIndicatorProps.d.ts +0 -32
  822. package/build/typescript/Tabs/LegacyTabs.d.ts +0 -5
  823. package/build/typescript/Tabs/LegacyTabsProps.d.ts +0 -79
  824. package/build/typescript/TextField/InputLabel.d.ts +0 -33
  825. package/build/typescript/TextField/LegacyTextField.d.ts +0 -5
  826. package/build/typescript/TextField/LegacyTextFieldProps.d.ts +0 -67
  827. package/build/typescript/TextField/OutlinedTextField.d.ts +0 -17
  828. package/build/typescript/Tooltip/LegacyTooltip.d.ts +0 -3
  829. package/build/typescript/Tooltip/LegacyTooltipProps.d.ts +0 -72
  830. package/build/typescript/Tooltip/UpArrow.d.ts +0 -5
  831. package/build/typescript/Tooltip/UpArrowProps.d.ts +0 -17
  832. package/build/typescript/Typography/LegacyTypography.d.ts +0 -5
  833. package/build/typescript/Typography/LegacyTypographyProps.d.ts +0 -81
  834. package/src/Accordion/LegacyAccordion.tsx +0 -188
  835. package/src/Accordion/LegacyAccordionProps.ts +0 -34
  836. package/src/Badge/LegacyBadge.tsx +0 -66
  837. package/src/Badge/LegacyBadgeProps.ts +0 -40
  838. package/src/Button/LegacyButton.tsx +0 -157
  839. package/src/Button/LegacyButtonProps.ts +0 -62
  840. package/src/Checkbox/LegacyCheckbox.tsx +0 -62
  841. package/src/Checkbox/LegacyCheckboxProps.ts +0 -42
  842. package/src/CheckboxGroup/CheckboxGroup.tsx +0 -47
  843. package/src/CheckboxGroup/CheckboxGroupProps.ts +0 -11
  844. package/src/CheckboxGroup/index.ts +0 -2
  845. package/src/Chip/LegacyChip.tsx +0 -116
  846. package/src/Chip/LegacyChipProps.ts +0 -33
  847. package/src/Dialog/LegacyDialog.tsx +0 -198
  848. package/src/Dialog/LegacyDialogProps.ts +0 -28
  849. package/src/DialogActions/LegacyDialogActions.tsx +0 -23
  850. package/src/DialogContent/LegacyDialogContent.tsx +0 -30
  851. package/src/DialogContent/LegacyDialogContentProps.ts +0 -10
  852. package/src/DialogMedia/LegacyDialogMedia.tsx +0 -21
  853. package/src/DialogMedia/LegacyDialogMediaProps.ts +0 -16
  854. package/src/DialogTitle/LegacyDialogTitle.tsx +0 -30
  855. package/src/DialogTitle/LegacyDialogTitleProps.ts +0 -16
  856. package/src/Divider/LegacyDivider.tsx +0 -114
  857. package/src/Divider/LegacyDividerProps.ts +0 -48
  858. package/src/IconButton/LegacyIconButton.tsx +0 -97
  859. package/src/IconButton/LegacyIconButtonProps.ts +0 -36
  860. package/src/Pagination/LegacyPagination.tsx +0 -168
  861. package/src/Pagination/LegacyPaginationProps.ts +0 -85
  862. package/src/PaginationItem/LegacyPaginationItem.tsx +0 -52
  863. package/src/Radio/LegacyRadio.tsx +0 -72
  864. package/src/Radio/LegacyRadioProps.ts +0 -50
  865. package/src/RadioGroup/LegacyRadioGroup.tsx +0 -20
  866. package/src/Snackbar/LegacySnackbar.tsx +0 -130
  867. package/src/Snackbar/LegacySnackbarProps.ts +0 -61
  868. package/src/SnackbarContent/LegacySnackbarContent.tsx +0 -129
  869. package/src/SnackbarContent/LegacySnackbarContentProps.ts +0 -30
  870. package/src/SvgIcon/LegacySvgIcon.tsx +0 -36
  871. package/src/SvgIcon/LegacySvgIconProps.ts +0 -41
  872. package/src/Tab/LegacyTab.tsx +0 -141
  873. package/src/Tab/LegacyTabProps.ts +0 -68
  874. package/src/Tab/TabIndicator.tsx +0 -38
  875. package/src/TabBase/LegacyTabBase.tsx +0 -55
  876. package/src/Tabs/LegacyTabIndicator.tsx +0 -112
  877. package/src/Tabs/LegacyTabIndicatorProps.ts +0 -37
  878. package/src/Tabs/LegacyTabs.tsx +0 -227
  879. package/src/Tabs/LegacyTabsProps.ts +0 -93
  880. package/src/TextField/InputLabel.tsx +0 -234
  881. package/src/TextField/LegacyTextField.tsx +0 -168
  882. package/src/TextField/LegacyTextFieldProps.ts +0 -80
  883. package/src/TextField/OutlinedTextField.tsx +0 -234
  884. package/src/Tooltip/LegacyTooltip.tsx +0 -167
  885. package/src/Tooltip/LegacyTooltipProps.ts +0 -86
  886. package/src/Tooltip/UpArrow.tsx +0 -21
  887. package/src/Tooltip/UpArrowProps.ts +0 -19
  888. package/src/Typography/LegacyTypography.tsx +0 -107
  889. package/src/Typography/LegacyTypographyProps.ts +0 -122
@@ -1,134 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Snackbar;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
13
-
14
- var _Slide = _interopRequireDefault(require("../Slide"));
15
-
16
- var _SnackbarContent = _interopRequireDefault(require("../SnackbarContent"));
17
-
18
- var _hooks = require("../hooks");
19
-
20
- var _styles = require("../styles");
21
-
22
- var _utils = require("../utils");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
- 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); }
27
-
28
- 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; }
29
-
30
- 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); }
31
-
32
- const fadeDuration = 300;
33
- const fadeAnimationDelay = 100;
34
-
35
- const useStyles = function () {
36
- const theme = (0, _styles.useTheme)();
37
- const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
38
- return {
39
- root: {
40
- alignSelf: 'center',
41
- bottom: theme.spacing(2),
42
- maxWidth: 480,
43
- paddingBottom: insets.bottom,
44
- paddingHorizontal: theme.spacing(2),
45
- position: 'absolute',
46
- width: '100%',
47
- // TODO: Need to remove zIndex.
48
- zIndex: 32
49
- }
50
- };
51
- };
52
-
53
- function Snackbar(props) {
54
- const {
55
- actionLabel,
56
- animatedY,
57
- autoHideDuration = null,
58
- children,
59
- message,
60
- title,
61
- startIcon,
62
- onActionPress,
63
- onClose,
64
- style,
65
- visible = false,
66
- ...otherProps
67
- } = props;
68
-
69
- const autoHideTimer = _react.default.useRef(null);
70
-
71
- const clearAutoHideTimeout = () => {
72
- if (autoHideTimer.current !== null) {
73
- clearTimeout(autoHideTimer.current);
74
- }
75
- };
76
-
77
- _react.default.useEffect(() => {
78
- return () => {
79
- clearAutoHideTimeout();
80
- };
81
- }, []);
82
-
83
- _react.default.useEffect(() => {
84
- if (visible && autoHideDuration !== null) {
85
- clearAutoHideTimeout(); // @ts-ignore
86
-
87
- autoHideTimer.current = setTimeout(() => {
88
- if (onClose) {
89
- onClose();
90
- }
91
- }, autoHideDuration);
92
- }
93
- }, [visible, autoHideDuration, onClose]);
94
-
95
- const styles = useStyles();
96
-
97
- const [exited, setExited] = _react.default.useState(true);
98
-
99
- const animatedOpacity = (0, _hooks.useAnimatedValue)(0);
100
- const animatedStyle = {
101
- opacity: animatedOpacity
102
- };
103
- (0, _react.useEffect)(() => {
104
- _reactNative.Animated.timing(animatedOpacity, {
105
- toValue: visible ? 1 : 0,
106
- duration: fadeDuration,
107
- delay: visible ? fadeAnimationDelay : 0,
108
- easing: _reactNative.Easing.out(_reactNative.Easing.exp),
109
- useNativeDriver: _utils.isNotAndroid12
110
- }).start();
111
- }, [visible]);
112
-
113
- if (!visible && exited) {
114
- return null;
115
- }
116
-
117
- return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, _extends({
118
- style: [animatedStyle, styles.root, style]
119
- }, otherProps), /*#__PURE__*/_react.default.createElement(_Slide.default, {
120
- animatedY: animatedY,
121
- appear: visible,
122
- onEnter: () => setExited(false),
123
- onExited: () => setExited(true)
124
- }, children ? children : /*#__PURE__*/_react.default.createElement(_SnackbarContent.default, {
125
- title: title,
126
- startIcon: startIcon,
127
- actionLabel: actionLabel,
128
- message: message,
129
- onActionPress: onActionPress
130
- })));
131
- }
132
-
133
- ;
134
- //# sourceMappingURL=LegacySnackbar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["fadeDuration","fadeAnimationDelay","useStyles","theme","useTheme","insets","useSafeAreaInsets","root","alignSelf","bottom","spacing","maxWidth","paddingBottom","paddingHorizontal","position","width","zIndex","Snackbar","props","actionLabel","animatedY","autoHideDuration","children","message","title","startIcon","onActionPress","onClose","style","visible","otherProps","autoHideTimer","React","useRef","clearAutoHideTimeout","current","clearTimeout","useEffect","setTimeout","styles","exited","setExited","useState","animatedOpacity","useAnimatedValue","animatedStyle","opacity","Animated","timing","toValue","duration","delay","easing","Easing","out","exp","useNativeDriver","isNotAndroid12","start"],"sources":["LegacySnackbar.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { Animated, Easing } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Slide from '../Slide';\nimport SnackbarContent from '../SnackbarContent';\nimport { useAnimatedValue } from '../hooks';\nimport { useTheme } from '../styles';\nimport { isNotAndroid12 } from '../utils';\nimport type SnackbarProps from './LegacySnackbarProps';\n\ntype SnackBarStyles = NamedStylesStringUnion<'root'>;\n\nconst fadeDuration = 300;\nconst fadeAnimationDelay = 100;\n\nconst useStyles: UseStyles<SnackBarStyles> = function (): SnackBarStyles {\n const theme = useTheme();\n const insets = useSafeAreaInsets();\n\n return {\n root: {\n alignSelf: 'center',\n bottom: theme.spacing(2),\n maxWidth: 480,\n paddingBottom: insets.bottom,\n paddingHorizontal: theme.spacing(2),\n position: 'absolute',\n width: '100%',\n // TODO: Need to remove zIndex.\n zIndex: 32,\n },\n };\n};\n\nexport default function Snackbar(props: SnackbarProps) {\n const {\n actionLabel,\n animatedY,\n autoHideDuration = null,\n children,\n message,\n title,\n startIcon,\n onActionPress,\n onClose,\n style,\n visible = false,\n ...otherProps\n } = props;\n\n const autoHideTimer = React.useRef<number | null>(null);\n\n const clearAutoHideTimeout = () => {\n if (autoHideTimer.current !== null) {\n clearTimeout(autoHideTimer.current);\n }\n };\n\n React.useEffect(() => {\n return () => {\n clearAutoHideTimeout();\n };\n }, []);\n\n React.useEffect(() => {\n if (visible && autoHideDuration !== null) {\n clearAutoHideTimeout();\n\n // @ts-ignore\n autoHideTimer.current = setTimeout(() => {\n if (onClose) {\n onClose();\n }\n }, autoHideDuration);\n }\n }, [visible, autoHideDuration, onClose]);\n\n const styles = useStyles();\n\n const [exited, setExited] = React.useState(true);\n\n const animatedOpacity = useAnimatedValue(0);\n\n const animatedStyle = {\n opacity: animatedOpacity,\n };\n\n useEffect(() => {\n Animated.timing(animatedOpacity, {\n toValue: visible ? 1 : 0,\n duration: fadeDuration,\n delay: visible ? fadeAnimationDelay : 0,\n easing: Easing.out(Easing.exp),\n useNativeDriver: isNotAndroid12,\n }).start();\n }, [visible]);\n\n if (!visible && exited) {\n return null;\n }\n\n return (\n <Animated.View\n style={[\n animatedStyle,\n styles.root,\n style,\n ]}\n {...otherProps}\n >\n <Slide\n animatedY={animatedY}\n appear={visible}\n onEnter={() => setExited(false)}\n onExited={() => setExited(true)}\n >\n {children ? children : (\n <SnackbarContent\n title={title}\n startIcon={startIcon}\n actionLabel={actionLabel}\n message={message}\n onActionPress={onActionPress}\n />\n )}\n </Slide>\n </Animated.View>\n );\n};\n"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=LegacySnackbarProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacySnackbarProps.ts"],"sourcesContent":["import React from 'react';\n\nimport type { Animated, ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface SnackbarProps extends OverridableComponentProps<ViewProps, {\n /**\n * The text to use for the action component.\n */\n actionLabel?: string;\n\n /**\n * y value for animating.\n */\n animatedY?: Animated.Value;\n\n /**\n * The number of milliseconds to wait before automatically calling the\n * `onDismiss` function. `onDismiss` should then set the state of the `visible`\n * prop to hide the `Snackbar`. This behavior is disabled by default with\n * the `null` value.\n * @default null\n */\n autoHideDuration?: number | null;\n\n /**\n * Replace the `SnackbarContent` component.\n */\n children?: React.ReactNode;\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 * Callback fired when the component requests to be closed.\n */\n onClose?: () => 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 /**\n * If `true`, `Snackbar` is shown.\n * @default false\n */\n visible?: boolean;\n}> {}\n"],"mappings":""}
@@ -1,105 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = SnackbarContent;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _styles = require("@fountain-ui/styles");
13
-
14
- var _utils = require("@fountain-ui/utils");
15
-
16
- var _styles2 = require("../styles");
17
-
18
- var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
19
-
20
- var _Column = _interopRequireDefault(require("../Column"));
21
-
22
- var _Paper = _interopRequireDefault(require("../Paper"));
23
-
24
- var _Spacer = _interopRequireDefault(require("../Spacer"));
25
-
26
- var _Typography = _interopRequireDefault(require("../Typography"));
27
-
28
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
-
30
- 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); }
31
-
32
- const useStyles = function () {
33
- const theme = (0, _styles2.useTheme)();
34
- const backgroundColor = theme.palette.primary.main;
35
-
36
- const [r, g, b] = _react.default.useMemo(() => (0, _utils.rgb)(backgroundColor), [backgroundColor]);
37
-
38
- return {
39
- root: {
40
- flexDirection: 'row',
41
- alignItems: 'center',
42
- backgroundColor: `rgba(${r}, ${g}, ${b}, .9)`,
43
- borderRadius: theme.shape.roundness,
44
- paddingHorizontal: theme.spacing(4),
45
- paddingVertical: theme.spacing(3)
46
- },
47
- action: {
48
- paddingVertical: theme.spacing(2)
49
- }
50
- };
51
- };
52
-
53
- function SnackbarContent(props) {
54
- const {
55
- actionLabel,
56
- message,
57
- title,
58
- onActionPress,
59
- style,
60
- startIcon,
61
- ...otherProps
62
- } = props;
63
- const styles = useStyles();
64
- const theme = (0, _styles2.useTheme)();
65
- const titleFontStyle = (0, _styles2.createFontStyle)(theme, {
66
- selector: typo => typo.subtitle2,
67
- color: theme.mode === 'light' ? _styles.lightTheme.palette.primary.contrastTextColor : _styles.lightTheme.palette.primary.main
68
- });
69
- const messageFontStyle = (0, _styles2.createFontStyle)(theme, {
70
- selector: typo => typo.body2,
71
- color: title ? theme.mode === 'light' ? _styles.darkTheme.palette.text.secondary : _styles.lightTheme.palette.text.secondary : theme.palette.primary.contrastTextColor
72
- });
73
- const labelFontStyle = (0, _styles2.createFontStyle)(theme, {
74
- selector: typo => typo.button2,
75
- color: theme.palette.primary.contrastTextColor
76
- });
77
- const labelStyle = (0, _styles2.css)([labelFontStyle, {
78
- padding: theme.spacing(2)
79
- }]);
80
- return /*#__PURE__*/_react.default.createElement(_Paper.default, _extends({
81
- elevation: 0,
82
- style: (0, _styles2.css)([styles.root, actionLabel ? styles.action : undefined, style])
83
- }, otherProps), startIcon ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, startIcon, /*#__PURE__*/_react.default.createElement(_Spacer.default, {
84
- size: 3
85
- })) : null, /*#__PURE__*/_react.default.createElement(_Column.default, null, title ? /*#__PURE__*/_react.default.createElement(_Typography.default, {
86
- children: title,
87
- style: (0, _styles2.css)([titleFontStyle])
88
- }) : null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
89
- children: message,
90
- style: (0, _styles2.css)([messageFontStyle])
91
- })), actionLabel ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Spacer.default, {
92
- flex: 1
93
- }), /*#__PURE__*/_react.default.createElement(_Spacer.default, {
94
- size: 1
95
- }), /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
96
- onPress: onActionPress,
97
- pressEffect: 'none'
98
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
99
- children: actionLabel,
100
- style: labelStyle
101
- }))) : null);
102
- }
103
-
104
- ;
105
- //# sourceMappingURL=LegacySnackbarContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","backgroundColor","palette","primary","main","r","g","b","React","useMemo","rgb","root","flexDirection","alignItems","borderRadius","shape","roundness","paddingHorizontal","spacing","paddingVertical","action","SnackbarContent","props","actionLabel","message","title","onActionPress","style","startIcon","otherProps","styles","titleFontStyle","createFontStyle","selector","typo","subtitle2","color","mode","lightTheme","contrastTextColor","messageFontStyle","body2","darkTheme","text","secondary","labelFontStyle","button2","labelStyle","css","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":"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"}
@@ -1,2 +0,0 @@
1
- "use strict";
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 +0,0 @@
1
- {"version":3,"names":["SvgIcon","props","color","colorProp","height","style","styleProp","viewBox","width","otherProps","theme","useTheme","palette","main","css","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;;AACA;;AACA;;;;;;AAGe,SAASA,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,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMT,KAAK,GAAGQ,KAAK,CAACE,OAAN,CAAcT,SAAd,EAAyBU,IAAvC;EAEA,MAAMR,KAAK,GAAG,IAAAS,WAAA,EAAI,CACd;IAAEC,UAAU,EAAE;EAAd,CADc,EAEdT,SAFc,CAAJ,CAAd;EAKA,oBACI,6BAAC,uBAAD;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
- "use strict";
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,126 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Tab;
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _Badge = _interopRequireDefault(require("../Badge"));
13
-
14
- var _TabBase = _interopRequireDefault(require("../TabBase"));
15
-
16
- var _styles = require("../styles");
17
-
18
- var _TabIndicator = _interopRequireDefault(require("./TabIndicator"));
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- 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); }
23
-
24
- 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; }
25
-
26
- 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); }
27
-
28
- const styles = _styles.StyleSheet.create({
29
- root: { // TODO: Remove redundant platform checking
30
- ...(_reactNative.Platform.OS === 'web' ? {
31
- minWidth: 'auto'
32
- } : {}),
33
- minHeight: 40
34
- },
35
- bottomNavigation: {
36
- minHeight: 56
37
- },
38
- filledInner: {
39
- justifyContent: 'center'
40
- },
41
- tertiary: {
42
- minHeight: 44
43
- }
44
- });
45
-
46
- function Tab(props) {
47
- const {
48
- badgeVisible = false,
49
- children,
50
- enableIndicator = false,
51
- icon: defaultIcon,
52
- indicatorColor = 'primary',
53
- indicatorSize = 'full',
54
- selected = false,
55
- selectedIcon,
56
- variant = 'primary',
57
- style,
58
- onTabInnerLayout,
59
- ...otherProps
60
- } = props;
61
- const theme = (0, _styles.useTheme)();
62
- const vertical = variant === 'bottom-navigation';
63
- const color = selected ? theme.palette.text.primary : variant === 'contained' ? theme.palette.text.secondary : theme.palette.text.hint;
64
- const containedStyle = {
65
- borderColor: selected ? theme.palette.primary.main : theme.palette.border.default,
66
- borderRadius: theme.shape.roundnessExtra,
67
- borderWidth: selected ? 1.5 : 1,
68
- minHeight: 'auto',
69
- paddingHorizontal: theme.spacing(3),
70
- paddingVertical: theme.spacing(1.5)
71
- };
72
- const tabBaseStyle = (0, _styles.css)([styles.root, variant === 'bottom-navigation' && styles.bottomNavigation, variant === 'contained' && containedStyle, variant === 'tertiary' && styles.tertiary, style]);
73
- const tabInnerStyle = (0, _styles.css)([styles.root, styles.filledInner]);
74
- const fontStyle = (0, _styles.createFontStyle)(theme, {
75
- selector: typo => {
76
- switch (variant) {
77
- case 'primary':
78
- return typo.h2;
79
-
80
- case 'secondary':
81
- return typo.button2;
82
-
83
- case 'tertiary':
84
- return typo.h3;
85
-
86
- case 'contained':
87
- return selected ? { ...typo.subtitle2,
88
- fontWeight: typo.fontWeight.medium
89
- } : typo.body2;
90
-
91
- default:
92
- return typo.flag;
93
- }
94
- },
95
- color
96
- });
97
- const pressEffect = selected ? 'none' : 'opacity';
98
- const icon = selected ? selectedIcon || defaultIcon : defaultIcon;
99
- const iconElement = icon ? /*#__PURE__*/(0, _react.cloneElement)(icon, {
100
- fill: color
101
- }) : null;
102
- const tabElement = typeof children !== 'string' ? /*#__PURE__*/_react.default.cloneElement(children, {
103
- selected
104
- }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Badge.default, {
105
- children: iconElement,
106
- invisible: !badgeVisible
107
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
108
- children: children,
109
- style: (0, _styles.css)(fontStyle)
110
- }));
111
- const tabIndicator = enableIndicator && selected ? /*#__PURE__*/_react.default.createElement(_TabIndicator.default, {
112
- indicatorSize: indicatorSize,
113
- color: indicatorColor
114
- }) : null;
115
- return /*#__PURE__*/_react.default.createElement(_TabBase.default, _extends({
116
- pressEffect: pressEffect,
117
- style: tabBaseStyle,
118
- vertical: vertical
119
- }, otherProps), indicatorSize === 'fit-content' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
120
- onLayout: onTabInnerLayout,
121
- style: tabInnerStyle
122
- }, tabElement, tabIndicator) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, tabElement, tabIndicator));
123
- }
124
-
125
- ;
126
- //# sourceMappingURL=LegacyTab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["styles","StyleSheet","create","root","Platform","OS","minWidth","minHeight","bottomNavigation","filledInner","justifyContent","tertiary","Tab","props","badgeVisible","children","enableIndicator","icon","defaultIcon","indicatorColor","indicatorSize","selected","selectedIcon","variant","style","onTabInnerLayout","otherProps","theme","useTheme","vertical","color","palette","text","primary","secondary","hint","containedStyle","borderColor","main","border","default","borderRadius","shape","roundnessExtra","borderWidth","paddingHorizontal","spacing","paddingVertical","tabBaseStyle","css","tabInnerStyle","fontStyle","createFontStyle","selector","typo","h2","button2","h3","subtitle2","fontWeight","medium","body2","flag","pressEffect","iconElement","cloneElement","fill","tabElement","React","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":"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"}
@@ -1,2 +0,0 @@
1
- "use strict";
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,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _styles = require("../styles");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- const useStyles = function (color, indicatorSize) {
17
- const theme = (0, _styles.useTheme)();
18
- return {
19
- root: {
20
- backgroundColor: theme.palette[color].main,
21
- bottom: 0,
22
- height: 2,
23
- left: indicatorSize === 'fit-content' ? 0 : 12,
24
- right: indicatorSize === 'fit-content' ? 0 : 12,
25
- position: 'absolute'
26
- }
27
- };
28
- };
29
-
30
- const TabIndicator = function TabIndicator(_ref) {
31
- let {
32
- indicatorSize,
33
- color
34
- } = _ref;
35
- const styles = useStyles(color, indicatorSize);
36
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
37
- style: styles.root
38
- });
39
- };
40
-
41
- var _default = /*#__PURE__*/_react.default.memo(TabIndicator);
42
-
43
- exports.default = _default;
44
- //# sourceMappingURL=TabIndicator.js.map
@@ -1 +0,0 @@
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,57 +0,0 @@
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
@@ -1 +0,0 @@
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"}