@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,34 +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 _reactNativeSvg = require("react-native-svg");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- function UpArrow(_ref) {
15
- let {
16
- upsideDown,
17
- fill,
18
- opacity
19
- } = _ref;
20
- return /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Svg, {
21
- width: 12,
22
- height: 10,
23
- viewBox: '0 0 12 10',
24
- fillOpacity: opacity
25
- }, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Polygon, {
26
- points: upsideDown ? '6,10 12,0 0,0' : '6,0 12,10 0,10',
27
- fill: fill
28
- }));
29
- }
30
-
31
- var _default = /*#__PURE__*/_react.default.memo(UpArrow);
32
-
33
- exports.default = _default;
34
- //# sourceMappingURL=UpArrow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["UpArrow","upsideDown","fill","opacity","React","memo"],"sources":["UpArrow.tsx"],"sourcesContent":["import React from 'react';\nimport { Polygon, Svg } from 'react-native-svg';\nimport type UpArrowProps from './UpArrowProps';\n\nfunction UpArrow({ upsideDown, fill, opacity }: UpArrowProps) {\n return (\n <Svg\n width={12}\n height={10}\n viewBox={'0 0 12 10'}\n fillOpacity={opacity}\n >\n <Polygon\n points={upsideDown ? '6,10 12,0 0,0' : '6,0 12,10 0,10'}\n fill={fill}\n />\n </Svg>\n );\n}\n\nexport default React.memo(UpArrow);\n"],"mappings":";;;;;;;AAAA;;AACA;;;;AAGA,SAASA,OAAT,OAA8D;EAAA,IAA7C;IAAEC,UAAF;IAAcC,IAAd;IAAoBC;EAApB,CAA6C;EAC1D,oBACI,6BAAC,mBAAD;IACI,KAAK,EAAE,EADX;IAEI,MAAM,EAAE,EAFZ;IAGI,OAAO,EAAE,WAHb;IAII,WAAW,EAAEA;EAJjB,gBAMI,6BAAC,uBAAD;IACI,MAAM,EAAEF,UAAU,GAAG,eAAH,GAAqB,gBAD3C;IAEI,IAAI,EAAEC;EAFV,EANJ,CADJ;AAaH;;4BAEcE,cAAA,CAAMC,IAAN,CAAWL,OAAX,C"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=UpArrowProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["UpArrowProps.ts"],"sourcesContent":["import type { ComponentProps } from '../types';\n\nexport default interface UpArrowProps extends ComponentProps<{\n /**\n * If `true`, arrow is rotating 180.\n * @default false\n */\n upsideDown?: boolean;\n\n /**\n * Fill color for arrow icon.\n */\n fill?: string;\n\n /**\n * opacity for arrow icon\n */\n opacity?: number;\n}> {}\n"],"mappings":""}
@@ -1,142 +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 accessibilityMap = {
17
- h1: {
18
- accessibilityRole: 'header',
19
- 'area-level': 1
20
- },
21
- h2: {
22
- accessibilityRole: 'header',
23
- 'area-level': 2
24
- },
25
- h3: {
26
- accessibilityRole: 'header',
27
- 'area-level': 3
28
- },
29
- subtitle1: {
30
- accessibilityRole: 'header',
31
- 'area-level': 6
32
- },
33
- subtitle2: {
34
- accessibilityRole: 'header',
35
- 'area-level': 6
36
- },
37
- body1: {
38
- accessibilityRole: 'text'
39
- },
40
- body2: {
41
- accessibilityRole: 'text'
42
- },
43
- caption1: {
44
- accessibilityRole: 'text'
45
- },
46
- caption2: {
47
- accessibilityRole: 'text'
48
- },
49
- flag: {
50
- accessibilityRole: 'text'
51
- }
52
- };
53
-
54
- function selectColor(theme, colorProp) {
55
- var _theme$palette$colorP;
56
-
57
- const palette = theme.palette.text;
58
-
59
- switch (colorProp) {
60
- case 'inherit':
61
- return _reactNative.Platform.OS === 'web' ? 'inherit' : undefined;
62
-
63
- case 'textPrimary':
64
- return palette.primary;
65
-
66
- case 'textSecondary':
67
- return palette.secondary;
68
-
69
- case 'textAccent':
70
- return palette.accent;
71
-
72
- case 'textHint':
73
- return palette.hint;
74
- }
75
-
76
- return (_theme$palette$colorP = theme.palette[colorProp]) === null || _theme$palette$colorP === void 0 ? void 0 : _theme$palette$colorP.main;
77
- }
78
-
79
- const styles = _styles.StyleSheet.create({
80
- root: {
81
- flexShrink: 1,
82
- ...(_reactNative.Platform.OS === 'web' ? {
83
- maxWidth: '100%'
84
- } : {})
85
- }
86
- });
87
-
88
- const Typography = /*#__PURE__*/_react.default.forwardRef(function Typography(props, ref) {
89
- const {
90
- accessibilityRole,
91
- align = 'inherit',
92
- ariaLevel,
93
- disableFontScaling = false,
94
- children,
95
- color: colorProp = 'inherit',
96
- ellipsizeMode = 'tail',
97
- href,
98
- numberOfLines,
99
- onPress,
100
- selectable,
101
- style,
102
- variant = 'body1',
103
- onLayout,
104
- onTextLayout
105
- } = props;
106
- const theme = (0, _styles.useTheme)();
107
- const fontStyle = (0, _styles.createFontStyle)(theme, {
108
- selector: typography => typography[variant],
109
- color: selectColor(theme, colorProp)
110
- }); // To prevent white-space: pre, word-wrap:break-word style conflicting issue at safari browser.
111
-
112
- const textWrapStyle = numberOfLines && numberOfLines > 0 && _reactNative.Platform.OS === 'web' ? {
113
- wordWrap: 'normal'
114
- } : {};
115
- const textStyle = (0, _styles.css)([styles.root, {
116
- textAlign: align === 'inherit' ? 'auto' : align
117
- }, textWrapStyle, fontStyle, style]);
118
- const accessibility = accessibilityMap[variant];
119
- const variantRole = href !== undefined ? 'link' : accessibility === null || accessibility === void 0 ? void 0 : accessibility.accessibilityRole;
120
- const variantLevel = accessibility === null || accessibility === void 0 ? void 0 : accessibility['area-level'];
121
- return /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
122
- ref: ref,
123
- accessibilityRole: accessibilityRole || variantRole,
124
- allowFontScaling: !disableFontScaling,
125
- "aria-level": ariaLevel || variantLevel,
126
- children: children,
127
- ellipsizeMode: ellipsizeMode // @ts-ignore
128
- ,
129
- href: href,
130
- numberOfLines: numberOfLines,
131
- onPress: onPress,
132
- selectable: selectable,
133
- style: textStyle,
134
- onLayout: onLayout,
135
- onTextLayout: onTextLayout
136
- });
137
- });
138
-
139
- var _default = /*#__PURE__*/_react.default.memo(Typography);
140
-
141
- exports.default = _default;
142
- //# sourceMappingURL=LegacyTypography.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["accessibilityMap","h1","accessibilityRole","h2","h3","subtitle1","subtitle2","body1","body2","caption1","caption2","flag","selectColor","theme","colorProp","palette","text","Platform","OS","undefined","primary","secondary","accent","hint","main","styles","StyleSheet","create","root","flexShrink","maxWidth","Typography","React","forwardRef","props","ref","align","ariaLevel","disableFontScaling","children","color","ellipsizeMode","href","numberOfLines","onPress","selectable","style","variant","onLayout","onTextLayout","useTheme","fontStyle","createFontStyle","selector","typography","textWrapStyle","wordWrap","textStyle","css","textAlign","accessibility","variantRole","variantLevel","memo"],"sources":["LegacyTypography.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, Text, TextStyle } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport TypographyProps, { AccessibilityMap, TypographyColor } from './LegacyTypographyProps';\n\nconst accessibilityMap: AccessibilityMap = {\n h1: { accessibilityRole: 'header', 'area-level': 1 },\n h2: { accessibilityRole: 'header', 'area-level': 2 },\n h3: { accessibilityRole: 'header', 'area-level': 3 },\n subtitle1: { accessibilityRole: 'header', 'area-level': 6 },\n subtitle2: { accessibilityRole: 'header', 'area-level': 6 },\n body1: { accessibilityRole: 'text' },\n body2: { accessibilityRole: 'text' },\n caption1: { accessibilityRole: 'text' },\n caption2: { accessibilityRole: 'text' },\n flag: { accessibilityRole: 'text' },\n};\n\nfunction selectColor(theme: Theme, colorProp: TypographyColor): string | undefined {\n const palette = theme.palette.text;\n\n switch (colorProp) {\n case 'inherit':\n return Platform.OS === 'web' ? 'inherit' : undefined;\n case 'textPrimary':\n return palette.primary;\n case 'textSecondary':\n return palette.secondary;\n case 'textAccent':\n return palette.accent;\n case 'textHint':\n return palette.hint;\n }\n\n return theme.palette[colorProp]?.main;\n}\n\nconst styles = StyleSheet.create({\n root: {\n flexShrink: 1,\n ...(Platform.OS === 'web' ? { maxWidth: '100%' } : {}),\n },\n});\n\nconst Typography = React.forwardRef<Text, TypographyProps>(function Typography(props, ref) {\n const {\n accessibilityRole,\n align = 'inherit',\n ariaLevel,\n disableFontScaling = false,\n children,\n color: colorProp = 'inherit',\n ellipsizeMode = 'tail',\n href,\n numberOfLines,\n onPress,\n selectable,\n style,\n variant = 'body1',\n onLayout,\n onTextLayout,\n } = props;\n\n const theme = useTheme();\n\n const fontStyle = createFontStyle(theme, {\n selector: (typography) => typography[variant],\n color: selectColor(theme, colorProp),\n });\n\n // To prevent white-space: pre, word-wrap:break-word style conflicting issue at safari browser.\n const textWrapStyle = numberOfLines && numberOfLines > 0 && Platform.OS === 'web' ? { wordWrap: 'normal' } : {};\n\n const textStyle = css([\n styles.root,\n { textAlign: align === 'inherit' ? 'auto' : align },\n textWrapStyle as TextStyle,\n fontStyle,\n style,\n ]);\n\n const accessibility = accessibilityMap[variant];\n const variantRole = href !== undefined ? 'link' : accessibility?.accessibilityRole;\n const variantLevel = accessibility?.['area-level'];\n\n return (\n <Text\n ref={ref}\n accessibilityRole={accessibilityRole || variantRole}\n allowFontScaling={!disableFontScaling}\n aria-level={ariaLevel || variantLevel}\n children={children}\n ellipsizeMode={ellipsizeMode}\n // @ts-ignore\n href={href}\n numberOfLines={numberOfLines}\n onPress={onPress}\n selectable={selectable}\n style={textStyle}\n onLayout={onLayout}\n onTextLayout={onTextLayout}\n />\n );\n});\n\nexport default React.memo(Typography);\n"],"mappings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mB,aAHkB,EAIlBJ,SAJkB,EAKlBL,KALkB,CAAJ,CAAlB;EAQA,MAAMc,aAAa,GAAG5D,gBAAgB,CAAC+C,OAAD,CAAtC;EACA,MAAMc,WAAW,GAAGnB,IAAI,KAAKvB,SAAT,GAAqB,MAArB,GAA8ByC,aAA9B,aAA8BA,aAA9B,uBAA8BA,aAAa,CAAE1D,iBAAjE;EACA,MAAM4D,YAAY,GAAGF,aAAH,aAAGA,aAAH,uBAAGA,aAAa,CAAG,YAAH,CAAlC;EAEA,oBACI,6BAAC,iBAAD;IACI,GAAG,EAAEzB,GADT;IAEI,iBAAiB,EAAEjC,iBAAiB,IAAI2D,WAF5C;IAGI,gBAAgB,EAAE,CAACvB,kBAHvB;IAII,cAAYD,SAAS,IAAIyB,YAJ7B;IAKI,QAAQ,EAAEvB,QALd;IAMI,aAAa,EAAEE,aANnB,CAOI;IAPJ;IAQI,IAAI,EAAEC,IARV;IASI,aAAa,EAAEC,aATnB;IAUI,OAAO,EAAEC,OAVb;IAWI,UAAU,EAAEC,UAXhB;IAYI,KAAK,EAAEY,SAZX;IAaI,QAAQ,EAAET,QAbd;IAcI,YAAY,EAAEC;EAdlB,EADJ;AAkBH,CA3DkB,CAAnB;;4BA6DejB,cAAA,CAAM+B,IAAN,CAAWhC,UAAX,C"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=LegacyTypographyProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyTypographyProps.ts"],"sourcesContent":["import React from 'react';\nimport type { AccessibilityProps, TextProps } from 'react-native';\nimport type { ComponentProps } from '../types';\n\nexport type TypographyAlign = 'inherit' | 'left' | 'center' | 'right' | 'justify';\n\nexport type TypographyColor =\n | 'inherit'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'warning'\n | 'error'\n | 'accent'\n | 'textPrimary'\n | 'textSecondary'\n | 'textAccent'\n | 'textHint';\n\nexport type TypographyVariant =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'subtitle1'\n | 'subtitle2'\n | 'body1'\n | 'body2'\n | 'caption1'\n | 'caption2'\n | 'flag'\n | 'button1'\n | 'button2';\n\nexport interface Accessibility {\n accessibilityRole: AccessibilityProps['accessibilityRole'];\n 'area-level'?: number;\n}\n\nexport interface AccessibilityMap extends Partial<{\n [key: string]: Accessibility;\n}> {}\n\nexport default interface TypographyProps extends ComponentProps<{\n /**\n * Applies HTML tag at web and communicates purpose of component at app\n */\n accessibilityRole?: AccessibilityProps['accessibilityRole'];\n\n /**\n * Set the text-align on the component.\n * The value 'justify' is not supported on Android and fallbacks to left.\n * @default 'inherit'\n */\n align?: TypographyAlign;\n\n /**\n * Applies HTML heading level\n */\n ariaLevel?: number;\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings.\n * @default false\n */\n disableFontScaling?: boolean;\n\n /**\n * The content of the component.\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 'inherit'\n */\n color?: TypographyColor;\n\n /**\n * The text ellipsis mode.\n * @default 'tail'\n */\n ellipsizeMode?: TextProps['ellipsizeMode'];\n\n /**\n * Internal use only. The hyperlink of the text.\n */\n href?: string;\n\n /**\n * Used to truncate the text with an ellipsis after computing the text\n * layout, including line wrapping, such that the total number of lines\n * does not exceed this number.\n */\n numberOfLines?: TextProps['numberOfLines'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n onPress?: TextProps['onPress'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n selectable?: boolean;\n\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant?: TypographyVariant;\n\n\n /**\n * Callback that is called when the text layout has been calculated.\n */\n onTextLayout?: TextProps['onTextLayout'];\n\n /**\n * Callback that is called when the layout of the Text component changes.\n */\n onLayout?: TextProps['onLayout'];\n}> {}\n"],"mappings":""}
@@ -1,148 +0,0 @@
1
- import React, { useEffect, useRef, useState } from 'react';
2
- import { View } from 'react-native';
3
- import Animated, { useAnimatedStyle, useSharedValue, withDelay, withTiming } from 'react-native-reanimated';
4
- import { useTheme } from '../styles';
5
- import { ChevronDown } from '../internal/icons';
6
- import ButtonBase from '../ButtonBase';
7
- import Column from '../Column';
8
- import Row from '../Row';
9
- import Spacer from '../Spacer';
10
- import Typography from '../Typography';
11
- const ROTATE_HIDE_DEGREE = 0;
12
- const ROTATE_SHOW_DEGREE = 180;
13
- const ANIMATION_CONFIG = {
14
- duration: 200
15
- };
16
- const INITIAL_EXPANDED_DELAY_MILLIS = 100;
17
- const CONTENT_OPACITY_DELAY_MILLIS = 200;
18
-
19
- const useStyles = function () {
20
- const theme = useTheme();
21
- return {
22
- root: {
23
- marginBottom: theme.spacing(2)
24
- },
25
- title: {
26
- borderRadius: theme.spacing(4),
27
- backgroundColor: theme.palette.paper.grey,
28
- paddingHorizontal: theme.spacing(4),
29
- paddingVertical: theme.spacing(3.5),
30
- alignItems: 'center',
31
- height: 64
32
- },
33
- titleColumn: {
34
- flexShrink: 1
35
- },
36
- subtitle: {
37
- fontSize: 11,
38
- lineHeight: 12,
39
- fontFamily: 'Inter-Regular'
40
- },
41
- contentView: {
42
- position: 'absolute',
43
- width: '100%',
44
- borderRadius: theme.spacing(4),
45
- backgroundColor: theme.palette.paper.grey,
46
- paddingHorizontal: theme.spacing(4),
47
- paddingVertical: theme.spacing(6),
48
- marginTop: theme.spacing(1)
49
- }
50
- };
51
- };
52
-
53
- export default function Accordion(props) {
54
- const {
55
- title,
56
- subTitle,
57
- content,
58
- RightIcon,
59
- LeftComponent,
60
- isInitialExpanded = false
61
- } = props;
62
- const styles = useStyles();
63
- const theme = useTheme();
64
- const CONTENT_MARGIN_HEIGHT = theme.spacing(2);
65
- const [isExpanded, setIsExpanded] = useState(false);
66
- const shouldInitialExpandedRef = useRef(isInitialExpanded);
67
- const rotate = useSharedValue(ROTATE_HIDE_DEGREE);
68
- const animatedOpacity = useSharedValue(0);
69
- const animatedHeight = useSharedValue(0);
70
- const [contentHeight, setContentHeight] = useState(0);
71
- const animatedChevronDownStyles = useAnimatedStyle(() => ({
72
- transform: [{
73
- rotate: `${rotate.value}deg`
74
- }]
75
- }), []);
76
- const animatedContentBackgroundStyles = useAnimatedStyle(() => ({
77
- height: animatedHeight.value,
78
- overflow: 'hidden'
79
- }), []);
80
- const animatedContentStyle = useAnimatedStyle(() => ({
81
- opacity: animatedOpacity.value
82
- }), []);
83
-
84
- const onPress = () => {
85
- setIsExpanded(prev => !prev);
86
- };
87
-
88
- const onLayout = event => {
89
- const height = event.nativeEvent.layout.height + CONTENT_MARGIN_HEIGHT;
90
- setContentHeight(height);
91
-
92
- if (shouldInitialExpandedRef.current) {
93
- shouldInitialExpandedRef.current = false;
94
- setTimeout(() => setIsExpanded(true), INITIAL_EXPANDED_DELAY_MILLIS);
95
- }
96
- };
97
-
98
- useEffect(() => {
99
- rotate.value = withTiming(isExpanded ? ROTATE_SHOW_DEGREE : ROTATE_HIDE_DEGREE, ANIMATION_CONFIG);
100
- animatedHeight.value = withTiming(isExpanded ? contentHeight : 0, ANIMATION_CONFIG);
101
- animatedOpacity.value = isExpanded ? withDelay(CONTENT_OPACITY_DELAY_MILLIS, withTiming(1, ANIMATION_CONFIG)) : withTiming(0, ANIMATION_CONFIG);
102
- }, [isExpanded, contentHeight]);
103
- return /*#__PURE__*/React.createElement(Column, {
104
- style: styles.root
105
- }, /*#__PURE__*/React.createElement(ButtonBase, {
106
- onPress: onPress
107
- }, /*#__PURE__*/React.createElement(Row, {
108
- style: styles.title
109
- }, LeftComponent ? LeftComponent : null, /*#__PURE__*/React.createElement(Column, {
110
- style: styles.titleColumn
111
- }, /*#__PURE__*/React.createElement(Typography, {
112
- variant: 'subtitle2',
113
- children: title,
114
- color: 'textPrimary',
115
- numberOfLines: 1,
116
- disableFontScaling: true
117
- }), subTitle ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spacer, {
118
- size: 0.5
119
- }), /*#__PURE__*/React.createElement(Typography, {
120
- style: styles.subtitle,
121
- color: 'tertiary',
122
- children: subTitle,
123
- numberOfLines: 1,
124
- disableFontScaling: true
125
- })) : null), /*#__PURE__*/React.createElement(Spacer, {
126
- flex: 1
127
- }), /*#__PURE__*/React.createElement(Spacer, {
128
- size: 3
129
- }), /*#__PURE__*/React.createElement(Animated.View, {
130
- style: animatedChevronDownStyles
131
- }, RightIcon ? RightIcon : /*#__PURE__*/React.createElement(ChevronDown, {
132
- width: 20,
133
- height: 20,
134
- color: 'tertiary'
135
- })))), /*#__PURE__*/React.createElement(Animated.View, {
136
- style: animatedContentBackgroundStyles
137
- }, /*#__PURE__*/React.createElement(View, {
138
- onLayout: onLayout,
139
- style: styles.contentView
140
- }, /*#__PURE__*/React.createElement(Animated.View, {
141
- style: animatedContentStyle
142
- }, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography, {
143
- variant: 'subtitle2',
144
- color: 'tertiary',
145
- children: content
146
- }) : content))));
147
- }
148
- //# sourceMappingURL=LegacyAccordion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useRef","useState","View","Animated","useAnimatedStyle","useSharedValue","withDelay","withTiming","useTheme","ChevronDown","ButtonBase","Column","Row","Spacer","Typography","ROTATE_HIDE_DEGREE","ROTATE_SHOW_DEGREE","ANIMATION_CONFIG","duration","INITIAL_EXPANDED_DELAY_MILLIS","CONTENT_OPACITY_DELAY_MILLIS","useStyles","theme","root","marginBottom","spacing","title","borderRadius","backgroundColor","palette","paper","grey","paddingHorizontal","paddingVertical","alignItems","height","titleColumn","flexShrink","subtitle","fontSize","lineHeight","fontFamily","contentView","position","width","marginTop","Accordion","props","subTitle","content","RightIcon","LeftComponent","isInitialExpanded","styles","CONTENT_MARGIN_HEIGHT","isExpanded","setIsExpanded","shouldInitialExpandedRef","rotate","animatedOpacity","animatedHeight","contentHeight","setContentHeight","animatedChevronDownStyles","transform","value","animatedContentBackgroundStyles","overflow","animatedContentStyle","opacity","onPress","prev","onLayout","event","nativeEvent","layout","current","setTimeout"],"sources":["LegacyAccordion.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { LayoutChangeEvent, View } from 'react-native';\nimport Animated, {\n useAnimatedStyle,\n useSharedValue,\n withDelay,\n withTiming,\n WithTimingConfig,\n} from 'react-native-reanimated';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport { ChevronDown } from '../internal/icons';\nimport ButtonBase from '../ButtonBase';\nimport Column from '../Column';\nimport Row from '../Row';\nimport Spacer from '../Spacer';\nimport Typography from '../Typography';\n\nimport AccordionProps from './LegacyAccordionProps';\n\ntype AccordionStyles = NamedStylesStringUnion<'root'\n | 'title'\n | 'titleColumn'\n | 'subtitle'\n | 'contentView'>;\n\nconst ROTATE_HIDE_DEGREE = 0;\nconst ROTATE_SHOW_DEGREE = 180;\nconst ANIMATION_CONFIG: Readonly<WithTimingConfig> = { duration: 200 };\nconst INITIAL_EXPANDED_DELAY_MILLIS = 100;\nconst CONTENT_OPACITY_DELAY_MILLIS = 200;\n\nconst useStyles: UseStyles<AccordionStyles> = function (): AccordionStyles {\n const theme = useTheme();\n\n return {\n root: { marginBottom: theme.spacing(2) },\n title: {\n borderRadius: theme.spacing(4),\n backgroundColor: theme.palette.paper.grey,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(3.5),\n alignItems: 'center',\n height: 64,\n },\n titleColumn: { flexShrink: 1 },\n subtitle: {\n fontSize: 11,\n lineHeight: 12,\n fontFamily: 'Inter-Regular',\n },\n contentView: {\n position: 'absolute',\n width: '100%',\n borderRadius: theme.spacing(4),\n backgroundColor: theme.palette.paper.grey,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(6),\n marginTop: theme.spacing(1),\n },\n };\n};\n\nexport default function Accordion(props: AccordionProps) {\n const {\n title,\n subTitle,\n content,\n RightIcon,\n LeftComponent,\n isInitialExpanded = false,\n } = props;\n\n const styles = useStyles();\n const theme = useTheme();\n const CONTENT_MARGIN_HEIGHT = theme.spacing(2);\n\n const [isExpanded, setIsExpanded] = useState(false);\n const shouldInitialExpandedRef = useRef<boolean>(isInitialExpanded);\n\n const rotate = useSharedValue(ROTATE_HIDE_DEGREE);\n const animatedOpacity = useSharedValue(0);\n\n const animatedHeight = useSharedValue(0);\n const [contentHeight, setContentHeight] = useState(0);\n\n const animatedChevronDownStyles = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotate.value}deg` }],\n }), []);\n\n const animatedContentBackgroundStyles = useAnimatedStyle(() => ({\n height: animatedHeight.value,\n overflow: 'hidden',\n }), []);\n\n const animatedContentStyle = useAnimatedStyle(() => ({\n opacity: animatedOpacity.value,\n }), []);\n\n const onPress = () => {\n setIsExpanded(prev => !prev);\n };\n\n const onLayout = (event: LayoutChangeEvent) => {\n const height = event.nativeEvent.layout.height + CONTENT_MARGIN_HEIGHT;\n setContentHeight(height);\n\n if (shouldInitialExpandedRef.current) {\n shouldInitialExpandedRef.current = false;\n setTimeout(() => setIsExpanded(true), INITIAL_EXPANDED_DELAY_MILLIS);\n }\n };\n\n useEffect(() => {\n rotate.value = withTiming(isExpanded ? ROTATE_SHOW_DEGREE : ROTATE_HIDE_DEGREE, ANIMATION_CONFIG);\n\n animatedHeight.value = withTiming(isExpanded ? contentHeight : 0, ANIMATION_CONFIG);\n\n animatedOpacity.value = isExpanded\n ? withDelay(CONTENT_OPACITY_DELAY_MILLIS, withTiming(1, ANIMATION_CONFIG))\n : withTiming(0, ANIMATION_CONFIG);\n }, [isExpanded, contentHeight]);\n\n return (\n <Column style={styles.root}>\n <ButtonBase onPress={onPress}>\n <Row style={styles.title}>\n {LeftComponent ? LeftComponent : null}\n\n <Column style={styles.titleColumn}>\n <Typography\n variant={'subtitle2'}\n children={title}\n color={'textPrimary'}\n numberOfLines={1}\n disableFontScaling={true}\n />\n\n {subTitle ? (\n <React.Fragment>\n <Spacer size={0.5}/>\n\n <Typography\n style={styles.subtitle}\n color={'tertiary'}\n children={subTitle}\n numberOfLines={1}\n disableFontScaling={true}\n />\n </React.Fragment>\n ) : null}\n </Column>\n\n <Spacer flex={1}/>\n\n <Spacer size={3}/>\n\n <Animated.View style={animatedChevronDownStyles}>\n {RightIcon ? RightIcon : (\n <ChevronDown\n width={20}\n height={20}\n color={'tertiary'}\n />\n )}\n </Animated.View>\n </Row>\n </ButtonBase>\n\n <Animated.View style={animatedContentBackgroundStyles}>\n <View\n onLayout={onLayout}\n style={styles.contentView}\n >\n <Animated.View style={animatedContentStyle}>\n {typeof content === 'string' ? (\n <Typography\n variant={'subtitle2'}\n color={'tertiary'}\n children={content}\n />\n ) : (content)}\n </Animated.View>\n </View>\n </Animated.View>\n </Column>\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,MAA3B,EAAmCC,QAAnC,QAAmD,OAAnD;AACA,SAA4BC,IAA5B,QAAwC,cAAxC;AACA,OAAOC,QAAP,IACIC,gBADJ,EAEIC,cAFJ,EAGIC,SAHJ,EAIIC,UAJJ,QAMO,yBANP;AAQA,SAASC,QAAT,QAAyB,WAAzB;AACA,SAASC,WAAT,QAA4B,mBAA5B;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,GAAP,MAAgB,QAAhB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,UAAP,MAAuB,eAAvB;AAUA,MAAMC,kBAAkB,GAAG,CAA3B;AACA,MAAMC,kBAAkB,GAAG,GAA3B;AACA,MAAMC,gBAA4C,GAAG;EAAEC,QAAQ,EAAE;AAAZ,CAArD;AACA,MAAMC,6BAA6B,GAAG,GAAtC;AACA,MAAMC,4BAA4B,GAAG,GAArC;;AAEA,MAAMC,SAAqC,GAAG,YAA6B;EACvE,MAAMC,KAAK,GAAGd,QAAQ,EAAtB;EAEA,OAAO;IACHe,IAAI,EAAE;MAAEC,YAAY,EAAEF,KAAK,CAACG,OAAN,CAAc,CAAd;I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A3BJ,eA6BI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EA7BJ,eA+BI,oBAAC,QAAD,CAAU,IAAV;IAAe,KAAK,EAAEe;EAAtB,GACKb,SAAS,GAAGA,SAAH,gBACN,oBAAC,WAAD;IACI,KAAK,EAAE,EADX;IAEI,MAAM,EAAE,EAFZ;IAGI,KAAK,EAAE;EAHX,EAFR,CA/BJ,CADJ,CADJ,eA6CI,oBAAC,QAAD,CAAU,IAAV;IAAe,KAAK,EAAEgB;EAAtB,gBACI,oBAAC,IAAD;IACI,QAAQ,EAAEM,QADd;IAEI,KAAK,EAAEnB,MAAM,CAACX;EAFlB,gBAII,oBAAC,QAAD,CAAU,IAAV;IAAe,KAAK,EAAE0B;EAAtB,GACK,OAAOnB,OAAP,KAAmB,QAAnB,gBACG,oBAAC,UAAD;IACI,OAAO,EAAE,WADb;IAEI,KAAK,EAAE,UAFX;IAGI,QAAQ,EAAEA;EAHd,EADH,GAMIA,OAPT,CAJJ,CADJ,CA7CJ,CADJ;AAgEH"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacyAccordionProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyAccordionProps.ts"],"sourcesContent":["import React from 'react';\n\nexport default interface AccordionProps {\n /**\n * The title of the component.\n */\n title: string | React.ReactNode;\n\n /**\n * The subtitle of the component.\n */\n subTitle?: string | React.ReactNode;\n\n /**\n * The component to the left of the title.\n */\n LeftComponent?: React.ReactNode;\n\n /**\n * The icon to the right of the title.\n */\n RightIcon?: React.ReactElement;\n\n /**\n * The content of the component.\n */\n content: string | React.ReactNode;\n\n /**\n * The initial state of expanding\n * @default false\n */\n isInitialExpanded?: boolean;\n}\n"],"mappings":""}
@@ -1,48 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import React from 'react';
4
- import { View } from 'react-native';
5
- import { css, useTheme } from '../styles';
6
- const defaultPosition = {
7
- vertical: 'top',
8
- horizontal: 'right'
9
- };
10
-
11
- const useStyles = function () {
12
- const theme = useTheme();
13
- const dotSize = 4;
14
- return {
15
- root: {},
16
- badge: {
17
- backgroundColor: theme.palette.secondary.main,
18
- borderRadius: dotSize * 0.5,
19
- height: dotSize,
20
- position: 'absolute',
21
- width: dotSize
22
- }
23
- };
24
- };
25
-
26
- export default function Badge(props) {
27
- const {
28
- children,
29
- invisible = false,
30
- position = defaultPosition,
31
- style,
32
- offset = 0,
33
- ...otherProps
34
- } = props;
35
- const styles = useStyles();
36
- const rootStyle = css([styles.root, style]);
37
- const badgeStyle = css([styles.badge, {
38
- [position.vertical]: offset,
39
- [position.horizontal]: offset
40
- }]);
41
- return /*#__PURE__*/React.createElement(View, _extends({
42
- style: rootStyle
43
- }, otherProps), children, !invisible ? /*#__PURE__*/React.createElement(View, {
44
- style: badgeStyle
45
- }) : null);
46
- }
47
- ;
48
- //# sourceMappingURL=LegacyBadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","css","useTheme","defaultPosition","vertical","horizontal","useStyles","theme","dotSize","root","badge","backgroundColor","palette","secondary","main","borderRadius","height","position","width","Badge","props","children","invisible","style","offset","otherProps","styles","rootStyle","badgeStyle"],"sources":["LegacyBadge.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport BadgeProps, { BadgePosition } from './LegacyBadgeProps';\n\nconst defaultPosition: BadgePosition = {\n vertical: 'top',\n horizontal: 'right',\n};\n\ntype BadgeStyles = NamedStylesStringUnion<'root' | 'badge'>;\n\nconst useStyles: UseStyles<BadgeStyles> = function (): BadgeStyles {\n const theme = useTheme();\n\n const dotSize = 4;\n\n return {\n root: {},\n badge: {\n backgroundColor: theme.palette.secondary.main,\n borderRadius: dotSize * 0.5,\n height: dotSize,\n position: 'absolute',\n width: dotSize,\n },\n };\n};\n\nexport default function Badge(props: BadgeProps) {\n const {\n children,\n invisible = false,\n position = defaultPosition,\n style,\n offset = 0,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const badgeStyle = css([\n styles.badge,\n {\n [position.vertical]: offset,\n [position.horizontal]: offset,\n },\n ]);\n\n return (\n <View\n style={rootStyle}\n {...otherProps}\n >\n {children}\n\n {!invisible ? <View style={badgeStyle}/> : null}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;AAGA,MAAMC,eAA8B,GAAG;EACnCC,QAAQ,EAAE,KADyB;EAEnCC,UAAU,EAAE;AAFuB,CAAvC;;AAOA,MAAMC,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAGL,QAAQ,EAAtB;EAEA,MAAMM,OAAO,GAAG,CAAhB;EAEA,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,KAAK,EAAE;MACHC,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAcC,SAAd,CAAwBC,IADtC;MAEHC,YAAY,EAAEP,OAAO,GAAG,GAFrB;MAGHQ,MAAM,EAAER,OAHL;MAIHS,QAAQ,EAAE,UAJP;MAKHC,KAAK,EAAEV;IALJ;EAFJ,CAAP;AAUH,CAfD;;AAiBA,eAAe,SAASW,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,QADE;IAEFC,SAAS,GAAG,KAFV;IAGFL,QAAQ,GAAGd,eAHT;IAIFoB,KAJE;IAKFC,MAAM,GAAG,CALP;IAMF,GAAGC;EAND,IAOFL,KAPJ;EASA,MAAMM,MAAM,GAAGpB,SAAS,EAAxB;EAEA,MAAMqB,SAAS,GAAG1B,GAAG,CAAC,CAClByB,MAAM,CAACjB,IADW,EAElBc,KAFkB,CAAD,CAArB;EAKA,MAAMK,UAAU,GAAG3B,GAAG,CAAC,CACnByB,MAAM,CAAChB,KADY,EAEnB;IACI,CAACO,QAAQ,CAACb,QAAV,GAAqBoB,MADzB;IAEI,CAACP,QAAQ,CAACZ,UAAV,GAAuBmB;EAF3B,CAFmB,CAAD,CAAtB;EAQA,oBACI,oBAAC,IAAD;IACI,KAAK,EAAEG;EADX,GAEQF,UAFR,GAIKJ,QAJL,EAMK,CAACC,SAAD,gBAAa,oBAAC,IAAD;IAAM,KAAK,EAAEM;EAAb,EAAb,GAA0C,IAN/C,CADJ;AAUH;AAAA"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=LegacyBadgeProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyBadgeProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport type BadgeHorizontalPosition = 'right' | 'left';\n\nexport type BadgeVerticalPosition = 'top' | 'bottom';\n\nexport interface BadgePosition {\n vertical: BadgeVerticalPosition;\n horizontal: BadgeHorizontalPosition;\n}\n\nexport default interface BadgeProps extends OverridableComponentProps<ViewProps, {\n /**\n * The badge will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * If `true`, the badge is invisible.\n * @default false\n */\n invisible?: boolean;\n\n /**\n * The position of the badge.\n * @default {\n * vertical: 'top',\n * horizontal: 'right',\n * }\n */\n position?: BadgePosition;\n\n /**\n * The offset of the badge.\n * @default 0\n */\n offset?: number;\n}> {}\n"],"mappings":""}
@@ -1,127 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import React from 'react';
4
- import { Linking, Text } from 'react-native';
5
- import ButtonBase from '../ButtonBase';
6
- import { createFontStyle, css, StyleSheet, useTheme } from '../styles';
7
- import { cloneElementSafely } from '../utils';
8
- const iconSizes = {
9
- small: 20,
10
- medium: 24
11
- };
12
- const styles = StyleSheet.create({
13
- root: {
14
- flexDirection: 'row',
15
- justifyContent: 'center',
16
- alignItems: 'center'
17
- },
18
- fullWidth: {
19
- width: '100%'
20
- },
21
- medium: {
22
- minWidth: 104,
23
- height: 48
24
- },
25
- small: {
26
- minWidth: 56,
27
- height: 32
28
- }
29
- });
30
- export default function Button(props) {
31
- const {
32
- children,
33
- clipHorizontalSpacing = false,
34
- color = 'primary',
35
- disabled = false,
36
- endIcon: endIconProp,
37
- fullWidth = false,
38
- href,
39
- onPress,
40
- pressEffect,
41
- size = 'medium',
42
- startIcon: startIconProp,
43
- style: styleProp,
44
- variant = 'contained',
45
- ...otherProps
46
- } = props;
47
- const theme = useTheme();
48
- const mainColor = theme.palette[color].main;
49
- const fontColor = variant === 'contained' ? theme.palette[color].contrastTextColor : theme.palette[color].main;
50
- const variantStyleMap = {
51
- contained: {
52
- backgroundColor: mainColor
53
- },
54
- outlined: {
55
- backgroundColor: 'transparent',
56
- borderColor: mainColor,
57
- borderStyle: 'solid',
58
- borderWidth: 1
59
- },
60
- text: {
61
- backgroundColor: 'transparent'
62
- }
63
- };
64
- const iconProps = {
65
- width: iconSizes[size],
66
- height: iconSizes[size],
67
- fill: fontColor
68
- };
69
- const startIcon = cloneElementSafely(startIconProp, iconProps);
70
- const endIcon = cloneElementSafely(endIconProp, iconProps);
71
- const paddingSize = size === 'small' ? theme.spacing(3) : theme.spacing(4);
72
- const paddingLeft = startIcon ? paddingSize - theme.spacing(1) : paddingSize;
73
- const paddingRight = endIcon ? paddingSize - theme.spacing(1) : paddingSize;
74
- const borderRadius = theme.shape.roundnessLarge;
75
- const buttonBaseStyle = css([styles.root, variantStyleMap[variant], size === 'medium' ? styles.medium : styles.small, fullWidth ? styles.fullWidth : undefined, {
76
- borderRadius,
77
- color: fontColor
78
- }, variant === 'text' && clipHorizontalSpacing ? {
79
- minWidth: 0
80
- } : {
81
- paddingLeft,
82
- paddingRight
83
- }, styleProp]);
84
- const fontStyle = createFontStyle(theme, {
85
- selector: typo => size === 'small' ? typo.button2 : typo.button1,
86
- color: fontColor
87
- });
88
- const textMarginSize = size === 'small' ? theme.spacing(1) : theme.spacing(2);
89
- const textMarginStyle = startIcon ? {
90
- marginLeft: textMarginSize
91
- } : endIcon ? {
92
- marginRight: textMarginSize
93
- } : undefined;
94
- const textStyle = css([fontStyle, textMarginStyle, {
95
- textAlign: 'center'
96
- }]);
97
- const modifiedPressEffect = variant !== 'text' && !pressEffect ? 'scale' : pressEffect;
98
-
99
- const handlePress = async () => {
100
- if (disabled) {
101
- return;
102
- }
103
-
104
- if (onPress) {
105
- onPress();
106
- return;
107
- }
108
-
109
- if (href) {
110
- if (await Linking.canOpenURL(href)) {
111
- await Linking.openURL(href);
112
- }
113
- }
114
- };
115
-
116
- return /*#__PURE__*/React.createElement(ButtonBase, _extends({
117
- disabled: disabled,
118
- onPress: handlePress,
119
- style: buttonBaseStyle,
120
- pressEffect: modifiedPressEffect
121
- }, otherProps), startIcon, /*#__PURE__*/React.createElement(Text, {
122
- children: children,
123
- style: textStyle
124
- }), endIcon);
125
- }
126
- ;
127
- //# sourceMappingURL=LegacyButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Linking","Text","ButtonBase","createFontStyle","css","StyleSheet","useTheme","cloneElementSafely","iconSizes","small","medium","styles","create","root","flexDirection","justifyContent","alignItems","fullWidth","width","minWidth","height","Button","props","children","clipHorizontalSpacing","color","disabled","endIcon","endIconProp","href","onPress","pressEffect","size","startIcon","startIconProp","style","styleProp","variant","otherProps","theme","mainColor","palette","main","fontColor","contrastTextColor","variantStyleMap","contained","backgroundColor","outlined","borderColor","borderStyle","borderWidth","text","iconProps","fill","paddingSize","spacing","paddingLeft","paddingRight","borderRadius","shape","roundnessLarge","buttonBaseStyle","undefined","fontStyle","selector","typo","button2","button1","textMarginSize","textMarginStyle","marginLeft","marginRight","textStyle","textAlign","modifiedPressEffect","handlePress","canOpenURL","openURL"],"sources":["LegacyButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Linking, Text } from 'react-native';\nimport ButtonBase from '../ButtonBase';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport type ButtonProps from './LegacyButtonProps';\nimport type { ButtonSize } from './LegacyButtonProps';\n\ntype IconSizes = { [n in ButtonSize]: number };\n\nconst iconSizes: IconSizes = {\n small: 20,\n medium: 24,\n};\n\nconst styles = StyleSheet.create({\n root: {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n },\n fullWidth: {\n width: '100%',\n },\n medium: {\n minWidth: 104,\n height: 48,\n },\n small: {\n minWidth: 56,\n height: 32,\n },\n});\n\nexport default function Button(props: ButtonProps) {\n const {\n children,\n clipHorizontalSpacing = false,\n color = 'primary',\n disabled = false,\n endIcon: endIconProp,\n fullWidth = false,\n href,\n onPress,\n pressEffect,\n size = 'medium',\n startIcon: startIconProp,\n style: styleProp,\n variant = 'contained',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const mainColor = theme.palette[color].main;\n\n const fontColor = variant === 'contained'\n ? theme.palette[color].contrastTextColor\n : theme.palette[color].main;\n\n const variantStyleMap = {\n contained: {\n backgroundColor: mainColor,\n },\n outlined: {\n backgroundColor: 'transparent',\n borderColor: mainColor,\n borderStyle: 'solid',\n borderWidth: 1,\n },\n text: {\n backgroundColor: 'transparent',\n },\n };\n\n const iconProps = {\n width: iconSizes[size],\n height: iconSizes[size],\n fill: fontColor,\n };\n\n const startIcon = cloneElementSafely(startIconProp, iconProps);\n const endIcon = cloneElementSafely(endIconProp, iconProps);\n\n const paddingSize = size === 'small' ? theme.spacing(3) : theme.spacing(4);\n const paddingLeft = startIcon ? paddingSize - theme.spacing(1) : paddingSize;\n const paddingRight = endIcon ? paddingSize - theme.spacing(1) : paddingSize;\n\n const borderRadius = theme.shape.roundnessLarge;\n const buttonBaseStyle = css([\n styles.root,\n variantStyleMap[variant],\n size === 'medium' ? styles.medium : styles.small,\n fullWidth ? styles.fullWidth : undefined,\n { borderRadius, color: fontColor },\n (variant === 'text' && clipHorizontalSpacing)\n ? { minWidth: 0 }\n : { paddingLeft, paddingRight },\n styleProp,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => size === 'small' ? typo.button2 : typo.button1,\n color: fontColor,\n });\n\n const textMarginSize = size === 'small' ? theme.spacing(1) : theme.spacing(2);\n const textMarginStyle = startIcon\n ? { marginLeft: textMarginSize }\n : endIcon\n ? { marginRight: textMarginSize }\n : undefined;\n\n const textStyle = css([\n fontStyle,\n textMarginStyle,\n { textAlign: 'center' },\n ]);\n\n const modifiedPressEffect = variant !== 'text' && !pressEffect\n ? 'scale'\n : pressEffect;\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n if (href) {\n if (await Linking.canOpenURL(href)) {\n await Linking.openURL(href);\n }\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={buttonBaseStyle}\n pressEffect={modifiedPressEffect}\n {...otherProps}\n >\n {startIcon}\n\n <Text\n children={children}\n style={textStyle}\n />\n\n {endIcon}\n </ButtonBase>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,OAAT,EAAkBC,IAAlB,QAA8B,cAA9B;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,UAA/B,EAA2CC,QAA3C,QAA2D,WAA3D;AACA,SAASC,kBAAT,QAAmC,UAAnC;AAMA,MAAMC,SAAoB,GAAG;EACzBC,KAAK,EAAE,EADkB;EAEzBC,MAAM,EAAE;AAFiB,CAA7B;AAKA,MAAMC,MAAM,GAAGN,UAAU,CAACO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sourceMappingURL=LegacyButtonProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyButtonProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps, CommonComponentColor } from '../types';\n\nexport type ButtonColor = CommonComponentColor;\n\nexport type ButtonSize = 'small' | 'medium';\n\nexport type ButtonVariant = 'contained' | 'outlined' | 'text';\n\nexport default interface ButtonProps extends OverridableComponentProps<ButtonBaseProps, {\n /**\n * The content of the button.\n */\n children: string;\n\n /**\n * If `true`, remove horizontal padding and minimum width.\n * This prop only applied on `text` variant.\n * @default false\n */\n clipHorizontalSpacing?: boolean;\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?: ButtonColor;\n\n /**\n * Element placed after the children.\n */\n endIcon?: React.ReactElement;\n\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth?: boolean;\n\n /**\n * The URL to link to when the button is clicked.\n */\n href?: string;\n\n /**\n * The size of the button.\n * @default 'medium'\n */\n size?: ButtonSize;\n\n /**\n * Element placed before the children.\n */\n startIcon?: React.ReactElement;\n\n /**\n * The variant to use.\n * @default 'contained'\n */\n variant?: ButtonVariant;\n}> {}\n"],"mappings":""}