@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,114 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Divider;
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
- 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); }
17
-
18
- const styles = _styles.StyleSheet.create({
19
- container: {
20
- alignSelf: 'stretch',
21
- alignItems: 'center'
22
- },
23
- row: {
24
- flexDirection: 'row'
25
- },
26
- column: {
27
- flexDirection: 'column'
28
- },
29
- divider: {
30
- flexGrow: 1
31
- }
32
- });
33
-
34
- function Divider(props) {
35
- const {
36
- borderWidth = 1,
37
- children: childrenProp,
38
- color = 'divider',
39
- elementAlign = 'center',
40
- inset = 0,
41
- marginBetweenChildren = 2,
42
- style,
43
- vertical = false,
44
- ...otherProps
45
- } = props;
46
- const theme = (0, _styles.useTheme)();
47
- const fontColor = theme.palette.text.secondary;
48
- const borderColor = color === 'divider' ? theme.palette.divider : color === 'border' ? theme.palette.border.default : theme.palette[color].main;
49
- const marginSize = theme.spacing(1);
50
- const insetSize = theme.spacing(inset);
51
- const marginLeft = marginSize;
52
- const marginRight = marginSize;
53
- const marginTop = marginSize;
54
- const marginBottom = marginSize;
55
- const marginStyle = vertical ? {
56
- marginLeft,
57
- marginRight
58
- } : {
59
- marginTop,
60
- marginBottom
61
- };
62
- const insetStyle = vertical ? {
63
- marginTop: insetSize,
64
- marginBottom: insetSize
65
- } : {
66
- marginLeft: insetSize,
67
- marginRight: insetSize
68
- };
69
- const borderColorStyle = {
70
- borderColor
71
- };
72
- const borderWidthStyle = vertical ? {
73
- borderRightWidth: borderWidth
74
- } : {
75
- borderBottomWidth: borderWidth
76
- };
77
- const containerStyle = (0, _styles.css)([insetStyle, marginStyle, styles.container, vertical ? styles.column : styles.row, childrenProp ? undefined : borderColorStyle, childrenProp ? undefined : borderWidthStyle, style]);
78
- const dividerStyle = (0, _styles.css)([borderColorStyle, borderWidthStyle, styles.divider]);
79
- const dividerMarginSize = theme.spacing(marginBetweenChildren);
80
- const startDividerStyle = {
81
- display: elementAlign !== 'start' ? 'flex' : 'none',
82
- ...(vertical ? {
83
- marginBottom: dividerMarginSize
84
- } : {
85
- marginRight: dividerMarginSize
86
- })
87
- };
88
- const endDividerStyle = {
89
- display: elementAlign !== 'end' ? 'flex' : 'none',
90
- ...(vertical ? {
91
- marginTop: dividerMarginSize
92
- } : {
93
- marginLeft: dividerMarginSize
94
- })
95
- };
96
- const fontStyle = (0, _styles.createFontStyle)(theme, {
97
- selector: typo => typo.caption2,
98
- color: fontColor
99
- });
100
- const element = typeof childrenProp === 'string' ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
101
- style: (0, _styles.css)(fontStyle)
102
- }, childrenProp) : childrenProp;
103
- const children = childrenProp ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
104
- style: (0, _styles.css)([dividerStyle, startDividerStyle])
105
- }), element, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
106
- style: (0, _styles.css)([dividerStyle, endDividerStyle])
107
- })) : null;
108
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
109
- style: containerStyle
110
- }, otherProps), children);
111
- }
112
-
113
- ;
114
- //# sourceMappingURL=LegacyDivider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","Divider","props","borderWidth","children","childrenProp","color","elementAlign","inset","marginBetweenChildren","style","vertical","otherProps","theme","useTheme","fontColor","palette","text","secondary","borderColor","border","default","main","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","borderRightWidth","borderBottomWidth","containerStyle","css","undefined","dividerStyle","dividerMarginSize","startDividerStyle","display","endDividerStyle","fontStyle","createFontStyle","selector","typo","caption2","element"],"sources":["LegacyDivider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './LegacyDividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n});\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth = 1,\n children: childrenProp,\n color = 'divider',\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const fontColor = theme.palette.text.secondary;\n const borderColor = color === 'divider'\n ? theme.palette.divider\n : color === 'border'\n ? theme.palette.border.default\n : theme.palette[color].main;\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? { borderRightWidth: borderWidth } : { borderBottomWidth: borderWidth });\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(marginBetweenChildren);\n const startDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'start' ? 'flex' : 'none',\n ...(vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize }),\n };\n const endDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'end' ? 'flex' : 'none',\n ...(vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize }),\n };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <React.Fragment>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </React.Fragment>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAIA,MAAMA,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BC,SAAS,EAAE;IACPC,SAAS,EAAE,SADJ;IAEPC,UAAU,EAAE;EAFL,CADkB;EAK7BC,GAAG,EAAE;IACDC,aAAa,EAAE;EADd,CALwB;EAQ7BC,MAAM,EAAE;IACJD,aAAa,EAAE;EADX,CARqB;EAW7BE,OAAO,EAAE;IACLC,QAAQ,EAAE;EADL;AAXoB,CAAlB,CAAf;;AAgBe,SAASC,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,WAAW,GAAG,CADZ;IAEFC,QAAQ,EAAEC,YAFR;IAGFC,KAAK,GAAG,SAHN;IAIFC,YAAY,GAAG,QAJb;IAKFC,KAAK,GAAG,CALN;IAMFC,qBAAqB,GAAG,CANtB;IAOFC,KAPE;IAQFC,QAAQ,GAAG,KART;IASF,GAAGC;EATD,IAUFV,KAVJ;EAYA,MAAMW,KAAK,GAAG,IAAAC,gBAAA,G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A,EAAI,CAACE,YAAD,EAAeI,eAAf,CAAJ;EAAb,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEP;EADX,GAEQxB,UAFR,GAIKR,QAJL,CADJ;AAQH;;AAAA"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=LegacyDividerProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyDividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\n\nexport type DividerColor = 'divider' | 'border' | CommonComponentColor;\n\nexport default interface DividerProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The size of the inset. It works as a multiplier factor based on spacing system.\n * @default 0\n */\n inset?: number;\n\n /**\n * If `true`, the divider orientation is set to vertical.\n * @default false\n */\n vertical?: boolean;\n\n /**\n * The color of divider. It supports default divider color and those theme colors that make sense for this component.\n * @default 'divider'\n */\n color?: DividerColor;\n\n /**\n * The size of margin between child element and the divider. It works as a multiplier factor based on spacing system.\n * @default 2\n */\n marginBetweenChildren?: number;\n\n /**\n * The size of border width. It works as an actual pixel-based border width value of a divider.\n * @default 1\n */\n borderWidth?: number;\n\n /**\n * Set position of children.\n * @default center\n */\n elementAlign?: 'start' | 'center' | 'end';\n}> {}\n"],"mappings":""}
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = IconButton;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
13
-
14
- var _styles = require("../styles");
15
-
16
- var _utils = require("../utils");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- 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); }
21
-
22
- const iconSizes = {
23
- tiny: 16,
24
- small: 20,
25
- medium: 24,
26
- large: 28
27
- };
28
-
29
- const useStyles = function () {
30
- const theme = (0, _styles.useTheme)();
31
- return {
32
- root: {
33
- flexDirection: 'column',
34
- justifyContent: 'center',
35
- alignItems: 'center',
36
- padding: theme.spacing(1)
37
- }
38
- };
39
- };
40
-
41
- function IconButton(props) {
42
- const {
43
- children,
44
- color = 'primary',
45
- disabled = false,
46
- label,
47
- onPress,
48
- size = 'medium',
49
- style,
50
- iconSize,
51
- ...otherProps
52
- } = props;
53
- const theme = (0, _styles.useTheme)();
54
- const styles = useStyles();
55
- const icon = (0, _utils.cloneElementSafely)(children, {
56
- width: iconSize ?? iconSizes[size],
57
- height: iconSize ?? iconSizes[size],
58
- color: color
59
- });
60
- const fontStyle = (0, _styles.createFontStyle)(theme, {
61
- selector: typo => typo.caption1,
62
- color: theme.palette[color].main
63
- });
64
- const labelStyle = (0, _styles.css)([fontStyle]);
65
- const rootStyle = (0, _styles.css)([styles.root, style]);
66
-
67
- const handlePress = async () => {
68
- if (disabled) {
69
- return;
70
- }
71
-
72
- if (onPress) {
73
- onPress();
74
- return;
75
- }
76
- };
77
-
78
- return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
79
- disabled: disabled,
80
- onPress: handlePress,
81
- style: rootStyle
82
- }, otherProps), icon, label ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
83
- children: label,
84
- style: labelStyle
85
- }) : null);
86
- }
87
-
88
- ;
89
- //# sourceMappingURL=LegacyIconButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["iconSizes","tiny","small","medium","large","useStyles","theme","useTheme","root","flexDirection","justifyContent","alignItems","padding","spacing","IconButton","props","children","color","disabled","label","onPress","size","style","iconSize","otherProps","styles","icon","cloneElementSafely","width","height","fontStyle","createFontStyle","selector","typo","caption1","palette","main","labelStyle","css","rootStyle","handlePress"],"sources":["LegacyIconButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport type IconButtonProps from './LegacyIconButtonProps';\nimport type { IconButtonSize } from './LegacyIconButtonProps';\n\ntype IconButtonStyles = NamedStylesStringUnion<'root'>;\n\ntype IconSizes = { [n in IconButtonSize]: number };\n\nconst iconSizes: IconSizes = {\n tiny: 16,\n small: 20,\n medium: 24,\n large: 28,\n};\n\nconst useStyles: UseStyles<IconButtonStyles> = function (): IconButtonStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n padding: theme.spacing(1),\n },\n };\n};\n\nexport default function IconButton(props: IconButtonProps) {\n const {\n children,\n color = 'primary',\n disabled = false,\n label,\n onPress,\n size = 'medium',\n style,\n iconSize,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n const styles = useStyles();\n\n const icon = cloneElementSafely(children, {\n width: iconSize ?? iconSizes[size],\n height: iconSize ?? iconSizes[size],\n color: color,\n });\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption1,\n color: theme.palette[color].main,\n });\n\n const labelStyle = css([\n fontStyle,\n ]);\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {icon}\n\n {label ? (\n <Text\n children={label}\n style={labelStyle}\n />\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;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AAS,GAAG,IAAAD,WAAA,EAAI,CAClBb,MAAM,CAACjB,IADW,EAElBc,KAFkB,CAAJ,CAAlB;;EAKA,MAAMkB,WAAW,GAAG,YAAY;IAC5B,IAAItB,QAAJ,EAAc;MACV;IACH;;IACD,IAAIE,OAAJ,EAAa;MACTA,OAAO;MACP;IACH;EACJ,CARD;;EAUA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEF,QADd;IAEI,OAAO,EAAEsB,WAFb;IAGI,KAAK,EAAED;EAHX,GAIQf,UAJR,GAMKE,IANL,EAQKP,KAAK,gBACF,6BAAC,iBAAD;IACI,QAAQ,EAAEA,KADd;IAEI,KAAK,EAAEkB;EAFX,EADE,GAKF,IAbR,CADJ;AAiBH;;AAAA"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=LegacyIconButtonProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyIconButtonProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\n\nexport type IconButtonColor = CommonComponentColor;\n\nexport type IconButtonSize = 'medium' | 'large' | 'small' | 'tiny';\n\nexport default interface IconButtonProps extends OverridableComponentProps<ButtonBaseProps, {\n /**\n * The icon element.\n */\n children: React.ReactElement;\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?: IconButtonColor;\n\n /**\n * If present, this is typography displayed at the bottom of the icon.\n */\n label?: string;\n\n /**\n * The size of the button.\n * @default 'medium'\n */\n size?: IconButtonSize;\n\n /**\n * The custom size of the Icon. Not preDefined.\n */\n iconSize?: number;\n}> {}\n"],"mappings":""}
@@ -1,145 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Pagination;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _utils = require("@fountain-ui/utils");
13
-
14
- var _icons = require("../internal/icons");
15
-
16
- var _styles = require("../styles");
17
-
18
- var _IconButton = _interopRequireDefault(require("../IconButton"));
19
-
20
- var _LegacyPaginationItem = _interopRequireDefault(require("../PaginationItem/LegacyPaginationItem"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
- 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); }
25
-
26
- const useStyles = function () {
27
- const theme = (0, _styles.useTheme)();
28
- return {
29
- root: {},
30
- rootInline: {
31
- flexDirection: 'row',
32
- alignItems: 'center'
33
- },
34
- rootAnchor: {
35
- flexDirection: 'column'
36
- },
37
- items: {
38
- flexDirection: 'row',
39
- justifyContent: 'center',
40
- marginTop: theme.spacing(2)
41
- },
42
- arrowContainer: {
43
- flexDirection: 'column',
44
- justifyContent: 'center'
45
- },
46
- prevInline: {
47
- marginRight: theme.spacing(1)
48
- },
49
- prevAnchor: {
50
- position: 'absolute',
51
- left: -24
52
- },
53
- nextInline: {
54
- marginLeft: theme.spacing(1)
55
- },
56
- nextAnchor: {
57
- position: 'absolute',
58
- right: -24
59
- }
60
- };
61
- };
62
-
63
- function Pagination(props) {
64
- const {
65
- bundleSize = 1,
66
- children,
67
- count,
68
- disabled = false,
69
- hideIndicator = false,
70
- hideNextButton = false,
71
- hidePrevButton = false,
72
- infinite = false,
73
- onChange,
74
- page,
75
- renderItem = _ref => {
76
- let {
77
- index,
78
- ...rest
79
- } = _ref;
80
- return /*#__PURE__*/_react.default.createElement(_LegacyPaginationItem.default, _extends({
81
- key: `${index}`
82
- }, rest));
83
- },
84
- style,
85
- ...otherProps
86
- } = props;
87
- const styles = useStyles();
88
- const firstPage = 0;
89
- const lastPage = count - 1;
90
-
91
- const handleChange = nextPage => {
92
- if (nextPage >= firstPage && nextPage <= lastPage) {
93
- if (onChange) {
94
- onChange(nextPage);
95
- }
96
- }
97
- };
98
-
99
- const handlePrevPress = () => {
100
- const prevPage = page - bundleSize >= firstPage ? page - bundleSize : infinite ? count - bundleSize + page : firstPage;
101
- handleChange(prevPage);
102
- };
103
-
104
- const handleNextPress = () => {
105
- const nextPage = page + bundleSize <= lastPage ? page + bundleSize : infinite ? page + bundleSize - count : lastPage;
106
- handleChange(nextPage);
107
- };
108
-
109
- const prevButton = !hidePrevButton ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
110
- color: 'tertiary',
111
- disabled: disabled || !infinite && page <= firstPage,
112
- onPress: handlePrevPress,
113
- size: 'small',
114
- style: children ? styles.prevAnchor : styles.prevInline
115
- }, /*#__PURE__*/_react.default.createElement(_icons.ChevronLeft, null)) : null;
116
- const nextButton = !hideNextButton ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
117
- color: 'tertiary',
118
- disabled: disabled || !infinite && page + bundleSize > lastPage,
119
- onPress: handleNextPress,
120
- size: 'small',
121
- style: children ? styles.nextAnchor : styles.nextInline
122
- }, /*#__PURE__*/_react.default.createElement(_icons.ChevronRight, null)) : null;
123
- const items = !hideIndicator ? (0, _utils.times)(i => renderItem({
124
- index: i,
125
- disabled,
126
- selected: i === page
127
- }), count) : null;
128
- const containerProps = {
129
- style: (0, _styles.css)([styles.root, children ? styles.rootAnchor : styles.rootInline, style]),
130
- ...otherProps
131
- };
132
-
133
- if (children) {
134
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, containerProps, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
135
- style: (0, _styles.css)(styles.arrowContainer)
136
- }, children, prevButton, nextButton), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
137
- style: (0, _styles.css)(styles.items)
138
- }, items));
139
- }
140
-
141
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, containerProps, prevButton, items, nextButton);
142
- }
143
-
144
- ;
145
- //# sourceMappingURL=LegacyPagination.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","times","i","selected","containerProps","css"],"sources":["LegacyPagination.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem/LegacyPaginationItem';\nimport type PaginationProps from './LegacyPaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n color={'tertiary'}\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n size={'small'}\n style={children ? styles.prevAnchor : styles.prevInline}\n >\n <ChevronLeft/>\n </IconButton>\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n color={'tertiary'}\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n size={'small'}\n style={children ? styles.nextAnchor : styles.nextInline}\n >\n <ChevronRight/>\n </IconButton>\n ) : null;\n\n const items = !hideIndicator ? (\n times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;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ationProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport interface PaginationRenderItemParams {\n /**\n * Index of the pagination item.\n */\n index: number;\n\n /**\n * If `true`, the pagination item is disabled.\n */\n disabled: boolean;\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: boolean;\n}\n\nexport default interface PaginationProps extends OverridableComponentProps<ViewProps, {\n /**\n * The Number of pages that change when the button is pressed\n * @default 1\n */\n bundleSize?: number,\n\n /**\n * The pagination will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * The total number of pages.\n */\n count: number,\n\n /**\n * If `true`, the pagination is disabled.\n * @default false\n */\n disabled?: boolean;\n\n\n /**\n * If `true`, hide the page indicator.\n * @default false\n */\n hideIndicator?: boolean,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton?: boolean,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton?: boolean,\n\n /**\n * If `true`, pagination is infinite.\n * @default false\n */\n infinite?: boolean,\n\n /**\n * Callback fired when the page is changed.\n */\n onChange?: (page: number) => void,\n\n /**\n * The current page number.\n */\n page: number;\n\n /**\n * Render the item.\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem?: (params: PaginationRenderItemParams) => React.ReactNode;\n}> {}\n"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","secondary","main","unselected","PaginationItem","props","disabled","style","otherProps","styles","css","React","memo"],"sources":["LegacyPaginationItem.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.secondary.main,\n },\n unselected: {\n backgroundColor: '#D1D1D1',\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAA0C,GAAG,YAAkC;EACjF,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,IAAI,GAAG,CAAb;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAEF,IADL;MAEFG,MAAM,EAAEH,IAFN;MAGFI,YAAY,EAAEJ,IAAI,GAAG,GAHnB;MAIFK,gBAAgB,EAAEP,KAAK,CAACQ,OAAN,CAAc,CAAd;IAJhB,CADH;IAOHC,QAAQ,EAAE;MACNC,eAAe,EAAEV,KAAK,CAACW,OAAN,CAAcC,SAAd,CAAwBC;IADnC,CAPP;IAUHC,UAAU,EAAE;MACRJ,eAAe,EAAE;IADT;EAVT,CAAP;AAcH,CAnBD;;AAqBA,SAASK,cAAT,CAAwBC,KAAxB,EAAoD;EAChD,MAAM;IACFC,QADE;IAEFR,QAFE;IAGFS,KAHE;IAIF,GAAGC;EAJD,IAKFH,KALJ;EAOA,MAAMI,MAAM,GAAGrB,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAsB,WAAA,EAAI,CACPD,MAAM,CAACjB,IADA,EAEPM,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBW,MAAM,CAACN,UAF7B,EAGPI,KAHO,CAAJ;EADX,GAMQC,UANR,EADJ;AAUH;;4BAEcG,cAAA,CAAMC,IAAN,CAAWR,cAAX,C"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = Radio;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
11
-
12
- var _internal = require("../internal");
13
-
14
- var _styles = require("../styles");
15
-
16
- var _RadioContextProvider = require("../RadioGroup/RadioContextProvider");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- 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); }
21
-
22
- const ICON_SIZE = 20;
23
-
24
- const useStyles = function () {
25
- return {
26
- root: {
27
- alignItems: 'center',
28
- flexDirection: 'row'
29
- }
30
- };
31
- };
32
-
33
- function Radio(props) {
34
- const {
35
- checked = false,
36
- children,
37
- checkedIcon: checkIconProp,
38
- uncheckedIcon: uncheckedIconProp,
39
- disabled = false,
40
- iconPlacement = 'left',
41
- onChange: onChangeProp,
42
- style,
43
- value,
44
- ...otherProps
45
- } = props;
46
- const styles = useStyles();
47
-
48
- const context = _react.default.useContext(_RadioContextProvider.RadioContext);
49
-
50
- const handlePress = () => {
51
- const onChange = (context === null || context === void 0 ? void 0 : context.onChange) ?? onChangeProp;
52
-
53
- if (onChange) {
54
- onChange(value);
55
- }
56
- };
57
-
58
- const isChecked = (context === null || context === void 0 ? void 0 : context.value) === value ?? checked;
59
-
60
- const checkedIcon = checkIconProp ?? /*#__PURE__*/_react.default.createElement(_internal.RadioChecked, {
61
- width: ICON_SIZE,
62
- height: ICON_SIZE,
63
- color: 'primary'
64
- });
65
-
66
- const uncheckedIcon = uncheckedIconProp ?? /*#__PURE__*/_react.default.createElement(_internal.Radio, {
67
- width: ICON_SIZE,
68
- height: ICON_SIZE,
69
- color: 'tertiary'
70
- });
71
-
72
- const icon = isChecked ? checkedIcon : uncheckedIcon;
73
- const rootStyle = (0, _styles.css)([styles.root, style]);
74
- return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
75
- disabled: disabled,
76
- onPress: handlePress,
77
- style: rootStyle
78
- }, otherProps), iconPlacement === 'left' ? icon : null, children ? children : null, iconPlacement === 'right' ? icon : null);
79
- }
80
-
81
- ;
82
- //# sourceMappingURL=LegacyRadio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ICON_SIZE","useStyles","root","alignItems","flexDirection","Radio","props","checked","children","checkedIcon","checkIconProp","uncheckedIcon","uncheckedIconProp","disabled","iconPlacement","onChange","onChangeProp","style","value","otherProps","styles","context","React","useContext","RadioContext","handlePress","isChecked","icon","rootStyle","css"],"sources":["LegacyRadio.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Radio as RadioIcon, RadioChecked as RadioCheckedIcon } from '../internal';\nimport { css } from '../styles';\nimport { RadioContext } from '../RadioGroup/RadioContextProvider';\nimport type RadioProps from './LegacyRadioProps';\n\ntype RadioStyles = NamedStylesStringUnion<'root'>;\n\nconst ICON_SIZE = 20;\n\nconst useStyles: UseStyles<RadioStyles> = function (): RadioStyles {\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n },\n };\n};\n\nexport default function Radio(props: RadioProps) {\n const {\n checked = false,\n children,\n checkedIcon: checkIconProp,\n uncheckedIcon: uncheckedIconProp,\n disabled = false,\n iconPlacement = 'left',\n onChange: onChangeProp,\n style,\n value,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const context = React.useContext(RadioContext);\n\n const handlePress = () => {\n const onChange = context?.onChange ?? onChangeProp;\n if (onChange) {\n onChange(value);\n }\n };\n\n const isChecked = context?.value === value ?? checked;\n\n const checkedIcon = checkIconProp ?? <RadioCheckedIcon width={ICON_SIZE} height={ICON_SIZE} color={'primary'}/>;\n const uncheckedIcon = uncheckedIconProp ?? <RadioIcon width={ICON_SIZE} height={ICON_SIZE} color={'tertiary'}/>;\n const icon = isChecked ? checkedIcon : uncheckedIcon;\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {iconPlacement === 'left' ? icon : null}\n\n {children ? children : null}\n\n {iconPlacement === 'right' ? icon : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAS,GAAG,EAAlB;;AAEA,MAAMC,SAAiC,GAAG,YAAyB;EAC/D,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE;IAFb;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,OAAO,GAAG,KADR;IAEFC,QAFE;IAGFC,WAAW,EAAEC,aAHX;IAIFC,aAAa,EAAEC,iBAJb;IAKFC,QAAQ,GAAG,KALT;IAMFC,aAAa,GAAG,MANd;IAOFC,QAAQ,EAAEC,YAPR;IAQFC,KARE;IASFC,KATE;IAUF,GAAGC;EAVD,IAWFb,KAXJ;EAaA,MAAMc,MAAM,GAAGnB,SAAS,EAAxB;;EAEA,MAAMoB,OAAO,GAAGC,cAAA,CAAMC,UAAN,CAAiBC,kCAAjB,CAAhB;;EAEA,MAAMC,WAAW,GAAG,MAAM;IACtB,MAAMV,QAAQ,GAAG,CAAAM,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO,CAAEN,QAAT,KAAqBC,YAAtC;;IACA,IAAID,QAAJ,EAAc;MACVA,QAAQ,CAACG,KAAD,CAAR;IACH;EACJ,CALD;;EAOA,MAAMQ,SAAS,GAAG,CAAAL,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO,CAAEH,KAAT,MAAmBA,KAAnB,IAA4BX,OAA9C;;EAEA,MAAME,WAAW,GAAGC,aAAa,iBAAI,6BAAC,sBAAD;IAAkB,KAAK,EAAEV,SAAzB;IAAoC,MAAM,EAAEA,SAA5C;IAAuD,KAAK,EAAE;EAA9D,EAArC;;EACA,MAAMW,aAAa,GAAGC,iBAAiB,iBAAI,6BAAC,eAAD;IAAW,KAAK,EAAEZ,SAAlB;IAA6B,MAAM,EAAEA,SAArC;IAAgD,KAAK,EAAE;EAAvD,EAA3C;;EACA,MAAM2B,IAAI,GAAGD,SAAS,GAAGjB,WAAH,GAAiBE,aAAvC;EAEA,MAAMiB,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBT,MAAM,CAAClB,IADW,EAElBe,KAFkB,CAAJ,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEJ,QADd;IAEI,OAAO,EAAEY,WAFb;IAGI,KAAK,EAAEG;EAHX,GAIQT,UAJR,GAMKL,aAAa,KAAK,MAAlB,GAA2Ba,IAA3B,GAAkC,IANvC,EAQKnB,QAAQ,GAAGA,QAAH,GAAc,IAR3B,EAUKM,aAAa,KAAK,OAAlB,GAA4Ba,IAA5B,GAAmC,IAVxC,CADJ;AAcH;;AAAA"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=LegacyRadioProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["LegacyRadioProps.ts"],"sourcesContent":["import React from 'react';\nimport type { OverridableComponentProps } from '../types';\nimport type { ButtonBaseProps } from '../ButtonBase';\n\ntype BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;\n\nexport default interface RadioProps extends OverridableComponentProps<BaseProps, {\n /**\n * If `true`, the component is checked.\n * @default false\n */\n checked?: boolean;\n\n /**\n * Content which is sharing pressable next to radio.\n */\n children?: React.ReactNode;\n\n /**\n * If `true`, the radio is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Callback fired when the component is pressed.\n */\n onChange?: (newValue: string) => void;\n\n /**\n * Value of the component.\n */\n value: string;\n\n /**\n * Determines the placement of the icon relative to the children.\n * @default 'left'\n */\n iconPlacement?: 'right' | 'left';\n\n /**\n * Custom icon element to display when the radio is unchecked.\n */\n uncheckedIcon?: React.ReactNode;\n\n /**\n * Custom icon element to display when the radio is checked.\n */\n checkedIcon?: React.ReactNode;\n}> {}\n"],"mappings":""}
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = RadioGroup;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _reactNative = require("react-native");
11
-
12
- var _RadioContextProvider = _interopRequireDefault(require("./RadioContextProvider"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- function RadioGroup(props) {
17
- const {
18
- value,
19
- onChange,
20
- ...otherProps
21
- } = props;
22
- return /*#__PURE__*/_react.default.createElement(_RadioContextProvider.default, {
23
- value: {
24
- value,
25
- onChange
26
- }
27
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, otherProps));
28
- }
29
-
30
- ;
31
- //# sourceMappingURL=LegacyRadioGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["RadioGroup","props","value","onChange","otherProps"],"sources":["LegacyRadioGroup.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport RadioContextProvider from './RadioContextProvider';\nimport type RadioGroupProps from './RadioGroupProps';\n\nexport default function RadioGroup(props: RadioGroupProps) {\n const {\n value,\n onChange,\n ...otherProps\n } = props;\n\n return (\n <RadioContextProvider value={{ value, onChange }}>\n <View\n {...otherProps}\n />\n </RadioContextProvider>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAGe,SAASA,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,KADE;IAEFC,QAFE;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,oBACI,6BAAC,6BAAD;IAAsB,KAAK,EAAE;MAAEC,KAAF;MAASC;IAAT;EAA7B,gBACI,6BAAC,iBAAD,EACQC,UADR,CADJ,CADJ;AAOH;;AAAA"}