@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
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _reactNative = require("react-native");
11
11
 
12
+ var _Dialog = require("../Dialog");
13
+
12
14
  var _styles = require("../styles");
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -35,7 +37,8 @@ function DialogTitle(props) {
35
37
  } = props;
36
38
  const theme = (0, _styles.useTheme)();
37
39
  const styles = useStyles();
38
- const rootStyle = (0, _styles.css)([styles.root, styleProp]);
40
+ const sectionStyle = (0, _Dialog.useDialogSectionStyle)();
41
+ const rootStyle = (0, _styles.css)([styles.root, sectionStyle, styleProp]);
39
42
  const titleFontStyle = (0, _styles.createFontStyle)(theme, {
40
43
  selector: typography => typography.header3.semiBold,
41
44
  color: theme.palette.text.strong
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","paddingTop","spacing","title","textAlign","DialogTitle","props","children","style","styleProp","otherProps","styles","rootStyle","css","titleFontStyle","createFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","titleStyle"],"sources":["DialogTitle.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type DialogTitleProps from './DialogTitleProps';\n\ntype DialogTitleStyles = NamedStylesStringUnion<'root' | 'title'>;\n\nconst useStyles: UseStyles<DialogTitleStyles> = function (): DialogTitleStyles {\n const theme = useTheme();\n\n return {\n root: {\n paddingTop: theme.spacing(6.5),\n },\n title: {\n textAlign: 'center',\n },\n };\n};\n\nexport default function DialogTitle(props: DialogTitleProps) {\n const {\n children,\n style: styleProp,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const titleStyle = css([\n styles.title,\n titleFontStyle,\n ]);\n\n return (\n <View\n {...otherProps}\n style={rootStyle}\n >\n {typeof children === 'string' ? (\n <Text style={titleStyle}>\n {children}\n </Text>\n ) : (children)}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAuC,GAAG,YAA+B;EAC3E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAc,GAAd;IADV,CADH;IAIHC,KAAK,EAAE;MACHC,SAAS,EAAE;IADR;EAJJ,CAAP;AAQH,CAXD;;AAae,SAASC,WAAT,CAAqBC,KAArB,EAA8C;EACzD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAFL;IAGF,GAAGC;EAHD,IAIFJ,KAJJ;EAMA,MAAMR,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMY,MAAM,GAAGd,SAAS,EAAxB;EAEA,MAAMe,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBF,MAAM,CAACX,IADW,EAElBS,SAFkB,CAAJ,CAAlB;EAKA,MAAMK,cAAc,GAAG,IAAAC,uBAAA,EAAgBjB,KAAhB,EAAuB;IAC1CkB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAEtB,KAAK,CAACuB,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAvB,CAAvB;EAKA,MAAMC,UAAU,GAAG,IAAAX,WAAA,EAAI,CACnBF,MAAM,CAACR,KADY,EAEnBW,cAFmB,CAAJ,CAAnB;EAKA,oBACI,6BAAC,iBAAD,eACQJ,UADR;IAEI,KAAK,EAAEE;EAFX,IAIK,OAAOL,QAAP,KAAoB,QAApB,gBACG,6BAAC,iBAAD;IAAM,KAAK,EAAEiB;EAAb,GACKjB,QADL,CADH,GAIIA,QART,CADJ;AAYH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","paddingTop","spacing","title","textAlign","DialogTitle","props","children","style","styleProp","otherProps","styles","sectionStyle","useDialogSectionStyle","rootStyle","css","titleFontStyle","createFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","titleStyle"],"sources":["DialogTitle.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useDialogSectionStyle } from '../Dialog';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type DialogTitleProps from './DialogTitleProps';\n\ntype DialogTitleStyles = NamedStylesStringUnion<'root' | 'title'>;\n\nconst useStyles: UseStyles<DialogTitleStyles> = function (): DialogTitleStyles {\n const theme = useTheme();\n\n return {\n root: {\n paddingTop: theme.spacing(6.5),\n },\n title: {\n textAlign: 'center',\n },\n };\n};\n\nexport default function DialogTitle(props: DialogTitleProps) {\n const {\n children,\n style: styleProp,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const sectionStyle = useDialogSectionStyle();\n\n const rootStyle = css([\n styles.root,\n sectionStyle,\n styleProp,\n ]);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const titleStyle = css([\n styles.title,\n titleFontStyle,\n ]);\n\n return (\n <View\n {...otherProps}\n style={rootStyle}\n >\n {typeof children === 'string' ? (\n <Text style={titleStyle}>\n {children}\n </Text>\n ) : (children)}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAuC,GAAG,YAA+B;EAC3E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAc,GAAd;IADV,CADH;IAIHC,KAAK,EAAE;MACHC,SAAS,EAAE;IADR;EAJJ,CAAP;AAQH,CAXD;;AAae,SAASC,WAAT,CAAqBC,KAArB,EAA8C;EACzD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAFL;IAGF,GAAGC;EAHD,IAIFJ,KAJJ;EAMA,MAAMR,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMY,MAAM,GAAGd,SAAS,EAAxB;EAEA,MAAMe,YAAY,GAAG,IAAAC,6BAAA,GAArB;EAEA,MAAMC,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBJ,MAAM,CAACX,IADW,EAElBY,YAFkB,EAGlBH,SAHkB,CAAJ,CAAlB;EAMA,MAAMO,cAAc,GAAG,IAAAC,uBAAA,EAAgBnB,KAAhB,EAAuB;IAC1CoB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAExB,KAAK,CAACyB,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAvB,CAAvB;EAKA,MAAMC,UAAU,GAAG,IAAAX,WAAA,EAAI,CACnBJ,MAAM,CAACR,KADY,EAEnBa,cAFmB,CAAJ,CAAnB;EAKA,oBACI,6BAAC,iBAAD,eACQN,UADR;IAEI,KAAK,EAAEI;EAFX,IAIK,OAAOP,QAAP,KAAoB,QAApB,gBACG,6BAAC,iBAAD;IAAM,KAAK,EAAEmB;EAAb,GACKnB,QADL,CADH,GAIIA,QART,CADJ;AAYH;;AAAA"}
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _LegacyDialogTitle.default;
9
+ return _DialogTitle.default;
10
10
  }
11
11
  });
12
12
 
13
- var _LegacyDialogTitle = _interopRequireDefault(require("./LegacyDialogTitle"));
13
+ var _DialogTitle = _interopRequireDefault(require("./DialogTitle"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyDialogTitle';\nexport type { default as DialogTitleProps } from './LegacyDialogTitleProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './DialogTitle';\nexport type { default as DialogTitleProps } from './DialogTitleProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -106,7 +106,7 @@ function Divider(props) {
106
106
  })
107
107
  };
108
108
  const fontStyle = (0, _styles.createFontStyle)(theme, {
109
- selector: typo => typo.caption2,
109
+ selector: typo => typo.caption2.medium,
110
110
  color: fontColor
111
111
  });
112
112
  const element = typeof childrenProp === 'string' ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
@@ -1 +1 @@
1
- {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","selectBorderColor","theme","variant","vertical","palette","border","weaker","weak","base","Divider","props","borderWidth","borderWidthProp","children","childrenProp","elementAlign","inset","marginBetweenChildren","style","otherProps","useTheme","fontColor","text","borderColor","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","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './DividerProps';\nimport type { DividerVariant } from './DividerProps';\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\nfunction selectBorderColor(theme: Theme, variant: DividerVariant, vertical: boolean) {\n switch (variant) {\n default:\n case 'base':\n return vertical ? theme.palette.border.weaker : theme.palette.border.weak;\n case 'strong':\n return vertical ? theme.palette.border.weak : theme.palette.border.base;\n }\n}\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth: borderWidthProp,\n children: childrenProp,\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n variant = 'base' as DividerVariant,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);\n const fontColor = theme.palette.text.weak;\n const borderColor = selectBorderColor(theme, variant, vertical);\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;;AAEA;;;;;;AAKA,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;;AAgBA,SAASC,iBAAT,CAA2BC,KAA3B,EAAyCC,OAAzC,EAAkEC,QAAlE,EAAqF;EACjF,QAAQD,OAAR;IACI;IACA,KAAK,MAAL;MACI,OAAOC,QAAQ,GAAGF,KAAK,CAACG,OAAN,CAAcC,MAAd,CAAqBC,MAAxB,GAAiCL,KAAK,CAACG,OAAN,CAAcC,MAAd,CAAqBE,IAArE;;IACJ,KAAK,QAAL;MACI,OAAOJ,QAAQ,GAAGF,KAAK,CAACG,OAAN,CAAcC,MAAd,CAAqBE,IAAxB,GAA+BN,KAAK,CAACG,OAAN,CAAcC,MAAd,CAAqBG,IAAnE;EALR;AAOH;;AAEc,SAASC,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,WAAW,EAAEC,eADX;IAEFC,QAAQ,EAAEC,YAFR;IAGFC,YAAY,GAAG,QAHb;IAIFC,KAAK,GAAG,CAJN;IAKFC,qBAAqB,GAAG,CALtB;IAMFC,KANE;IAOF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;EAAb,EADJ,EAEKS,OAFL,eAGI,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAb,WAAA,EAAI,CAACE,YAAD,EAAeI,eAAf,CAAJ;EAAb,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEP;EADX,GAEQlB,UAFR,GAIKN,QAJL,CADJ;AAQH;;AAAA"}
1
+ {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","selectBorderColor","theme","variant","vertical","palette","border","weaker","weak","base","Divider","props","borderWidth","borderWidthProp","children","childrenProp","elementAlign","inset","marginBetweenChildren","style","otherProps","useTheme","fontColor","text","borderColor","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","medium","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './DividerProps';\nimport type { DividerVariant } from './DividerProps';\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\nfunction selectBorderColor(theme: Theme, variant: DividerVariant, vertical: boolean) {\n switch (variant) {\n default:\n case 'base':\n return vertical ? theme.palette.border.weaker : theme.palette.border.weak;\n case 'strong':\n return vertical ? theme.palette.border.weak : theme.palette.border.base;\n }\n}\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth: borderWidthProp,\n children: childrenProp,\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n variant = 'base' as DividerVariant,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);\n const fontColor = theme.palette.text.weak;\n const borderColor = selectBorderColor(theme, variant, vertical);\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.medium,\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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,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.elementAligns = exports.dividerVariants = void 0;
7
- const elementAligns = ['start', 'center', 'end'];
8
- exports.elementAligns = elementAligns;
6
+ exports.dividerVariants = exports.dividerElementAligns = void 0;
7
+ const dividerElementAligns = ['start', 'center', 'end'];
8
+ exports.dividerElementAligns = dividerElementAligns;
9
9
  const dividerVariants = ['base', 'strong'];
10
10
  exports.dividerVariants = dividerVariants;
11
11
  //# sourceMappingURL=DividerProps.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["elementAligns","dividerVariants"],"sources":["DividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const elementAligns = ['start', 'center', 'end'] as const;\nexport type ElementAlign = typeof elementAligns[number];\n\nexport const dividerVariants = ['base', 'strong'] as const;\nexport type DividerVariant = typeof dividerVariants[number];\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 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 if vertical is true 1, otherwise 0.5\n */\n borderWidth?: number;\n\n /**\n * Set position of children.\n * @default center\n */\n elementAlign?: ElementAlign;\n\n /**\n * Select the style of the divider based on this value.\n * @default base\n */\n variant?: DividerVariant;\n}> {}\n"],"mappings":";;;;;;AAIO,MAAMA,aAAa,GAAG,CAAC,OAAD,EAAU,QAAV,EAAoB,KAApB,CAAtB;;AAGA,MAAMC,eAAe,GAAG,CAAC,MAAD,EAAS,QAAT,CAAxB"}
1
+ {"version":3,"names":["dividerElementAligns","dividerVariants"],"sources":["DividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const dividerElementAligns = ['start', 'center', 'end'] as const;\nexport type DividerElementAlign = typeof dividerElementAligns[number];\n\nexport const dividerVariants = ['base', 'strong'] as const;\nexport type DividerVariant = typeof dividerVariants[number];\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 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 if vertical is true 1, otherwise 0.5\n */\n borderWidth?: number;\n\n /**\n * Set position of children.\n * @default center\n */\n elementAlign?: DividerElementAlign;\n\n /**\n * Select the style of the divider based on this value.\n * @default base\n */\n variant?: DividerVariant;\n}> {}\n"],"mappings":";;;;;;AAIO,MAAMA,oBAAoB,GAAG,CAAC,OAAD,EAAU,QAAV,EAAoB,KAApB,CAA7B;;AAGA,MAAMC,eAAe,GAAG,CAAC,MAAD,EAAS,QAAT,CAAxB"}
@@ -6,11 +6,25 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _LegacyDivider.default;
9
+ return _Divider.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "dividerElementAligns", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _DividerProps.dividerElementAligns;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "dividerVariants", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _DividerProps.dividerVariants;
22
+ }
23
+ });
24
+
25
+ var _Divider = _interopRequireDefault(require("./Divider"));
12
26
 
13
- var _LegacyDivider = _interopRequireDefault(require("./LegacyDivider"));
27
+ var _DividerProps = require("./DividerProps");
14
28
 
15
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyDivider';\nexport type { default as DividerProps } from './LegacyDividerProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Divider';\nexport type { default as DividerProps } from './DividerProps';\nexport { dividerVariants, dividerElementAligns } from './DividerProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -30,7 +30,7 @@ const useStyles = function () {
30
30
  alignItems: 'center',
31
31
  flex: 1,
32
32
  justifyContent: 'center',
33
- paddingHorizontal: theme.spacing(12)
33
+ paddingHorizontal: theme.spacing(5)
34
34
  },
35
35
  cta: {
36
36
  alignSelf: 'center'
@@ -57,8 +57,7 @@ function Empty(props) {
57
57
  color: theme.palette.text.strong
58
58
  });
59
59
  const descriptionFontStyle = (0, _styles.createFontStyle)(theme, {
60
- // TODO: select typography.
61
- // selector: (typography) => typography.body2.regular,
60
+ selector: typography => typography.body3.regular,
62
61
  color: theme.palette.text.base
63
62
  });
64
63
  return /*#__PURE__*/_react.default.createElement(_Column.default, _extends({
@@ -80,7 +79,7 @@ function Empty(props) {
80
79
  color: 'accent',
81
80
  onPress: onButtonPress,
82
81
  style: styles.cta,
83
- variant: 'solid'
82
+ variant: 'capsuleSolid'
84
83
  })) : null);
85
84
  }
86
85
  //# sourceMappingURL=Empty.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","flex","justifyContent","paddingHorizontal","spacing","cta","alignSelf","Empty","props","buttonTitle","description","headerContent","headerContentProp","onButtonPress","style","styleProp","title","otherProps","styles","rootStyle","css","cloneElementSafely","titleFontStyle","createFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","descriptionFontStyle","base"],"sources":["Empty.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Button from '../Button/Button';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type { FalsyReactElement } from '../utils';\nimport { cloneElementSafely } from '../utils';\nimport type EmptyProps from './EmptyProps';\n\ntype EmptyStyles = NamedStylesStringUnion<'root' | 'cta'>;\n\nconst useStyles: UseStyles<EmptyStyles> = function (): EmptyStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(12),\n },\n cta: {\n alignSelf: 'center',\n },\n };\n};\n\nexport default function Empty(props: EmptyProps) {\n const {\n buttonTitle,\n description,\n headerContent: headerContentProp,\n onButtonPress,\n style: styleProp,\n title,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n const headerContent = cloneElementSafely(headerContentProp as FalsyReactElement);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const descriptionFontStyle = createFontStyle(theme, {\n // TODO: select typography.\n // selector: (typography) => typography.body2.regular,\n color: theme.palette.text.base,\n });\n\n return (\n <Column\n style={rootStyle}\n {...otherProps}\n >\n {headerContent ? (\n <React.Fragment>\n {headerContent}\n\n <Spacer size={6}/>\n </React.Fragment>\n ) : null}\n\n <Text\n children={title}\n style={titleFontStyle}\n />\n\n {description ? (\n <React.Fragment>\n <Spacer size={2}/>\n\n <Text\n children={description}\n style={descriptionFontStyle}\n />\n </React.Fragment>\n ) : null}\n\n {buttonTitle && onButtonPress ? (\n <React.Fragment>\n <Spacer size={6}/>\n\n {/* TODO: change Capsule solid variant. */}\n <Button\n children={buttonTitle}\n color={'accent'}\n onPress={onButtonPress}\n style={styles.cta}\n variant={'solid'}\n />\n </React.Fragment>\n ) : null}\n </Column>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,IAAI,EAAE,CAFJ;MAGFC,cAAc,EAAE,QAHd;MAIFC,iBAAiB,EAAEN,KAAK,CAACO,OAAN,CAAc,EAAd;IAJjB,CADH;IAOHC,GAAG,EAAE;MACDC,SAAS,EAAE;IADV;EAPF,CAAP;AAWH,CAdD;;AAgBe,SAASC,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,WADE;IAEFC,WAFE;IAGFC,aAAa,EAAEC,iBAHb;IAIFC,aAJE;IAKFC,KAAK,EAAEC,SALL;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFT,KARJ;EAUA,MAAMU,MAAM,GAAGtB,SAAS,EAAxB;EAEA,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMqB,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBF,MAAM,CAACnB,IADW,EAElBgB,SAFkB,CAAJ,CAAlB;EAKA,MAAMJ,aAAa,GAAG,IAAAU,yBAAA,EAAmBT,iBAAnB,CAAtB;EAEA,MAAMU,cAAc,GAAG,IAAAC,uBAAA,EAAgB1B,KAAhB,EAAuB;IAC1C2B,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAE/B,KAAK,CAACgC,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAvB,CAAvB;EAKA,MAAMC,oBAAoB,GAAG,IAAAT,uBAAA,EAAgB1B,KAAhB,EAAuB;IAChD;IACA;IACA+B,KAAK,EAAE/B,KAAK,CAACgC,OAAN,CAAcC,IAAd,CAAmBG;EAHsB,CAAvB,CAA7B;EAMA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAEd;EADX,GAEQF,UAFR,GAIKN,aAAa,gBACV,6BAAC,cAAD,CAAO,QAAP,QACKA,aADL,eAGI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EAHJ,CADU,GAMV,IAVR,eAYI,6BAAC,iBAAD;IACI,QAAQ,EAAEK,KADd;IAEI,KAAK,EAAEM;EAFX,EAZJ,EAiBKZ,WAAW,gBACR,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,6BAAC,iBAAD;IACI,QAAQ,EAAEA,WADd;IAEI,KAAK,EAAEsB;EAFX,EAHJ,CADQ,GASR,IA1BR,EA4BKvB,WAAW,IAAII,aAAf,gBACG,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAII,6BAAC,eAAD;IACI,QAAQ,EAAEJ,WADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAEI,aAHb;IAII,KAAK,EAAEK,MAAM,CAACb,GAJlB;IAKI,OAAO,EAAE;EALb,EAJJ,CADH,GAaG,IAzCR,CADJ;AA6CH"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","flex","justifyContent","paddingHorizontal","spacing","cta","alignSelf","Empty","props","buttonTitle","description","headerContent","headerContentProp","onButtonPress","style","styleProp","title","otherProps","styles","rootStyle","css","cloneElementSafely","titleFontStyle","createFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","descriptionFontStyle","body3","regular","base"],"sources":["Empty.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Button from '../Button/Button';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type { FalsyReactElement } from '../utils';\nimport { cloneElementSafely } from '../utils';\nimport type EmptyProps from './EmptyProps';\n\ntype EmptyStyles = NamedStylesStringUnion<'root' | 'cta'>;\n\nconst useStyles: UseStyles<EmptyStyles> = function (): EmptyStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(5),\n },\n cta: {\n alignSelf: 'center',\n },\n };\n};\n\nexport default function Empty(props: EmptyProps) {\n const {\n buttonTitle,\n description,\n headerContent: headerContentProp,\n onButtonPress,\n style: styleProp,\n title,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n const headerContent = cloneElementSafely(headerContentProp as FalsyReactElement);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const descriptionFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.body3.regular,\n color: theme.palette.text.base,\n });\n\n return (\n <Column\n style={rootStyle}\n {...otherProps}\n >\n {headerContent ? (\n <React.Fragment>\n {headerContent}\n\n <Spacer size={6}/>\n </React.Fragment>\n ) : null}\n\n <Text\n children={title}\n style={titleFontStyle}\n />\n\n {description ? (\n <React.Fragment>\n <Spacer size={2}/>\n\n <Text\n children={description}\n style={descriptionFontStyle}\n />\n </React.Fragment>\n ) : null}\n\n {buttonTitle && onButtonPress ? (\n <React.Fragment>\n <Spacer size={6}/>\n\n <Button\n children={buttonTitle}\n color={'accent'}\n onPress={onButtonPress}\n style={styles.cta}\n variant={'capsuleSolid'}\n />\n </React.Fragment>\n ) : null}\n </Column>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;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ADL,eAGI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EAHJ,CADU,GAMV,IAVR,eAYI,6BAAC,iBAAD;IACI,QAAQ,EAAEK,KADd;IAEI,KAAK,EAAEM;EAFX,EAZJ,EAiBKZ,WAAW,gBACR,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,6BAAC,iBAAD;IACI,QAAQ,EAAEA,WADd;IAEI,KAAK,EAAEsB;EAFX,EAHJ,CADQ,GASR,IA1BR,EA4BKvB,WAAW,IAAII,aAAf,gBACG,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,6BAAC,eAAD;IACI,QAAQ,EAAEJ,WADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAEI,aAHb;IAII,KAAK,EAAEK,MAAM,CAACb,GAJlB;IAKI,OAAO,EAAE;EALb,EAHJ,CADH,GAYG,IAxCR,CADJ;AA4CH"}
@@ -45,6 +45,7 @@ function createFlexbox(direction) {
45
45
  flexGrow,
46
46
  flexShrink,
47
47
  flexWrap,
48
+ gap,
48
49
  children,
49
50
  insets,
50
51
  justifyContent,
@@ -62,6 +63,7 @@ function createFlexbox(direction) {
62
63
  flexGrow,
63
64
  flexShrink,
64
65
  flexWrap,
66
+ gap,
65
67
  justifyContent,
66
68
  overflow
67
69
  };
@@ -1 +1 @@
1
- {"version":3,"names":["styles","StyleSheet","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","useTheme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","css","displayName"],"sources":["Flexbox.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...otherProps}\n />\n );\n }\n\n Flexbox.displayName = direction === 'row' ? 'Row' : 'Column';\n\n return Flexbox;\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGA,MAAMA,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BC,GAAG,EAAE;IAAEC,aAAa,EAAE;EAAjB,CADwB;EAE7BC,MAAM,EAAE;IAAED,aAAa,EAAE;EAAjB,CAFqB;EAG7BE,UAAU,EAAE;IAAEF,aAAa,EAAE;EAAjB,CAHiB;EAI7BG,aAAa,EAAE;IAAEH,aAAa,EAAE;EAAjB;AAJc,CAAlB,CAAf;;AAOe,SAASI,aAAT,CAAuBC,SAAvB,EAAoD;EAC/D,MAAM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AEDlB,OAAO,CAAC+B,WAAR,GAAsBlC,SAAS,KAAK,KAAd,GAAsB,KAAtB,GAA8B,QAApD;EAEA,OAAOG,OAAP;AACH"}
1
+ {"version":3,"names":["styles","StyleSheet","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","useTheme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","gap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","css","displayName"],"sources":["Flexbox.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...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AaA,MAAMK,OAAO,GAAGP,MAAM,KAAKQ,SAAX,GACV;MACEC,WAAW,EAAEnB,OAAO,CAACU,MAAM,CAACU,IAAR,CADtB;MAEEC,UAAU,EAAErB,OAAO,CAACU,MAAM,CAACY,GAAR,CAFrB;MAGEC,YAAY,EAAEvB,OAAO,CAACU,MAAM,CAACc,KAAR,CAHvB;MAIEC,aAAa,EAAEzB,OAAO,CAACU,MAAM,CAACgB,MAAR;IAJxB,CADU,GAOVR,SAPN;IASA,oBACI,6BAAC,iBAAD;MACI,QAAQ,EAAET,QADd;MAEI,KAAK,EAAE,IAAAkB,WAAA,EAAI,CACPlC,SADO,EAEPuB,UAFO,EAGPC,OAHO,EAIPH,KAJO,CAAJ;IAFX,GAQQC,UARR,EADJ;EAYH;;EAEDnB,OAAO,CAACgC,WAAR,GAAsBnC,SAAS,KAAK,KAAd,GAAsB,KAAtB,GAA8B,QAApD;EAEA,OAAOG,OAAP;AACH"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["FlexboxProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type { EdgeInsetsType } from '../styles';\n\nexport default interface FlexboxProps extends OverridableComponentProps<ViewProps, {\n /**\n * Controls how rows align in the cross direction.\n * @default 'stretch'\n */\n alignContent?: FlexStyle['alignContent'];\n\n /**\n * Aligns children in the cross direction.\n * @default 'stretch'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * Controls how a child aligns in the cross direction,\n * overriding the `alignItems` of the parent.\n * @default 'auto'\n */\n alignSelf?: FlexStyle['alignSelf'];\n\n /**\n * Providing the default size of an item along the main axis.\n */\n flexBasis?: FlexStyle['flexBasis'];\n\n /**\n * Describes how any space within a container should be distributed\n * among its children along the main axis.\n */\n flexGrow?: FlexStyle['flexGrow'];\n\n /**\n * Describes how to shrink children along the main axis in the case\n * in which the total size of the children overflows the size of the\n * container on the main axis.\n */\n flexShrink?: FlexStyle['flexShrink'];\n\n /**\n * Controls whether children can wrap around after they hit\n * the end of a flex container.\n * @default 'nowrap'\n */\n flexWrap?: FlexStyle['flexWrap'];\n\n /**\n * Content of this component.\n */\n children: React.ReactNode;\n\n /**\n * The amount of space by which to inset the child.\n */\n insets?: EdgeInsetsType;\n\n /**\n * Aligns children in the main direction.\n * @default 'flex-start'\n */\n justifyContent?: FlexStyle['justifyContent'];\n\n /**\n * Controls how children are measured and displayed.\n * @default 'visible'\n */\n overflow?: FlexStyle['overflow'];\n\n /**\n * Reverse flex direction.\n * @default false\n */\n reversed?: boolean;\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["FlexboxProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type { EdgeInsetsType } from '../styles';\n\nexport default interface FlexboxProps extends OverridableComponentProps<ViewProps, {\n /**\n * Controls how rows align in the cross direction.\n * @default 'stretch'\n */\n alignContent?: FlexStyle['alignContent'];\n\n /**\n * Aligns children in the cross direction.\n * @default 'stretch'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * Controls how a child aligns in the cross direction,\n * overriding the `alignItems` of the parent.\n * @default 'auto'\n */\n alignSelf?: FlexStyle['alignSelf'];\n\n /**\n * Providing the default size of an item along the main axis.\n */\n flexBasis?: FlexStyle['flexBasis'];\n\n /**\n * Describes how any space within a container should be distributed\n * among its children along the main axis.\n */\n flexGrow?: FlexStyle['flexGrow'];\n\n /**\n * Describes how to shrink children along the main axis in the case\n * in which the total size of the children overflows the size of the\n * container on the main axis.\n */\n flexShrink?: FlexStyle['flexShrink'];\n\n /**\n * Controls whether children can wrap around after they hit\n * the end of a flex container.\n * @default 'nowrap'\n */\n flexWrap?: FlexStyle['flexWrap'];\n\n /**\n * Defines the spacing between items in a flex container.\n */\n gap?: number | undefined;\n\n /**\n * Content of this component.\n */\n children: React.ReactNode;\n\n /**\n * The amount of space by which to inset the child.\n */\n insets?: EdgeInsetsType;\n\n /**\n * Aligns children in the main direction.\n * @default 'flex-start'\n */\n justifyContent?: FlexStyle['justifyContent'];\n\n /**\n * Controls how children are measured and displayed.\n * @default 'visible'\n */\n overflow?: FlexStyle['overflow'];\n\n /**\n * Reverse flex direction.\n * @default false\n */\n reversed?: boolean;\n}> {}\n"],"mappings":""}
@@ -13,6 +13,8 @@ var _styles = require("@fountain-ui/styles");
13
13
 
14
14
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
15
15
 
16
+ var _internal = require("../internal");
17
+
16
18
  var _styles2 = require("../styles");
17
19
 
18
20
  var _utils = require("../utils");
@@ -27,9 +29,18 @@ const styles = _reactNative.StyleSheet.create({
27
29
  height: 32,
28
30
  justifyContent: 'center',
29
31
  width: 32
32
+ },
33
+ loadingSpinner: {
34
+ position: 'absolute'
30
35
  }
31
36
  });
32
37
 
38
+ const loadingSpinnerSizeMap = {
39
+ small: 14,
40
+ medium: 16,
41
+ large: 18
42
+ };
43
+
33
44
  function selectIconColor(theme, color) {
34
45
  switch (color) {
35
46
  default:
@@ -50,14 +61,16 @@ function selectIconColor(theme, color) {
50
61
  function IconButton(props) {
51
62
  const {
52
63
  children,
53
- color = 'strong',
64
+ color: colorProp = 'strong',
54
65
  disabled = false,
55
66
  onPress,
56
67
  iconSize = 'medium',
68
+ isLoading = false,
57
69
  style,
58
70
  ...otherProps
59
71
  } = props;
60
72
  const theme = (0, _styles2.useTheme)();
73
+ const color = disabled ? 'disabled' : colorProp;
61
74
  const iconColor = selectIconColor(theme, color);
62
75
  const icon = (0, _utils.cloneElementSafely)(children, {
63
76
  enableV2: true,
@@ -65,6 +78,13 @@ function IconButton(props) {
65
78
  size: iconSize
66
79
  });
67
80
  const rootStyle = (0, _styles2.css)([styles.root, style]);
81
+ const contentStyle = (0, _styles2.css)({
82
+ opacity: isLoading ? 0 : 1
83
+ });
84
+ const loadingSpinnerStyle = (0, _styles2.css)([styles.loadingSpinner, {
85
+ height: loadingSpinnerSizeMap[iconSize],
86
+ width: loadingSpinnerSizeMap[iconSize]
87
+ }]);
68
88
 
69
89
  const handlePress = () => {
70
90
  if (disabled) {
@@ -78,7 +98,11 @@ function IconButton(props) {
78
98
  disabled: disabled,
79
99
  onPress: handlePress,
80
100
  style: rootStyle
81
- }, otherProps), icon);
101
+ }, otherProps), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
102
+ style: contentStyle
103
+ }, icon), isLoading ? /*#__PURE__*/_react.default.createElement(_internal.LoadingSpinner, {
104
+ style: loadingSpinnerStyle
105
+ }) : null);
82
106
  }
83
107
 
84
108
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["styles","StyleSheet","create","root","alignItems","height","justifyContent","width","selectIconColor","theme","color","palette","icon","strong","base","commonColors","static","strongInverse","status","disabled","IconButton","props","children","onPress","iconSize","style","otherProps","useTheme","iconColor","cloneElementSafely","enableV2","fill","size","rootStyle","css","handlePress"],"sources":["IconButton.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet } from 'react-native';\nimport { commonColors, Theme } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { css, useTheme } from '../styles';\nimport type { SvgIconSize } from '../SvgIcon/SvgIconProps';\nimport { cloneElementSafely } from '../utils';\nimport type IconButtonProps from './IconButtonProps';\nimport type { IconButtonColor } from './IconButtonProps';\n\nconst styles = StyleSheet.create({\n root: {\n alignItems: 'center',\n height: 32,\n justifyContent: 'center',\n width: 32,\n },\n});\n\nfunction selectIconColor(theme: Theme, color: IconButtonColor) {\n switch (color) {\n default:\n case 'strong':\n return theme.palette.icon.strong;\n case 'base':\n return theme.palette.icon.base;\n case 'staticStrongInverse':\n return commonColors.static.strongInverse;\n case 'disabled':\n return theme.palette.status.disabled;\n }\n}\n\nexport default function IconButton(props: IconButtonProps) {\n const {\n children,\n color = 'strong' as IconButtonColor,\n disabled = false,\n onPress,\n iconSize = 'medium' as SvgIconSize,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const iconColor = selectIconColor(theme, color);\n\n const icon = cloneElementSafely(children, {\n enableV2: true,\n fill: iconColor,\n size: iconSize,\n });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const handlePress = () => {\n if (disabled) {\n return;\n }\n\n onPress?.();\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {icon}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAIA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC7BC,IAAI,EAAE;IACFC,UAAU,EAAE,QADV;IAEFC,MAAM,EAAE,EAFN;IAGFC,cAAc,EAAE,QAHd;IAIFC,KAAK,EAAE;EAJL;AADuB,CAAlB,CAAf;;AASA,SAASC,eAAT,CAAyBC,KAAzB,EAAuCC,KAAvC,EAA+D;EAC3D,QAAQA,KAAR;IACI;IACA,KAAK,QAAL;MACI,OAAOD,KAAK,CAACE,OAAN,CAAcC,IAAd,CAAmBC,MAA1B;;IACJ,KAAK,MAAL;MACI,OAAOJ,KAAK,CAACE,OAAN,CAAcC,IAAd,CAAmBE,IAA1B;;IACJ,KAAK,qBAAL;MACI,OAAOC,oBAAA,CAAaC,MAAb,CAAoBC,aAA3B;;IACJ,KAAK,UAAL;MACI,OAAOR,KAAK,CAACE,OAAN,CAAcO,MAAd,CAAqBC,QAA5B;EATR;AAWH;;AAEc,SAASC,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFZ,KAAK,GAAG,QAFN;IAGFS,QAAQ,GAAG,KAHT;IAIFI,OAJE;IAKFC,QAAQ,GAAG,QALT;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFL,KARJ;EAUA,MAAMZ,KAAK,GAAG,IAAAkB,iBAAA,GAAd;EAEA,MAAMC,SAAS,GAAGpB,eAAe,CAACC,KAAD,EAAQC,KAAR,CAAjC;EAEA,MAAME,IAAI,GAAG,IAAAiB,yBAAA,EAAmBP,QAAnB,EAA6B;IACtCQ,QAAQ,EAAE,IAD4B;IAEtCC,IAAI,EAAEH,SAFgC;IAGtCI,IAAI,EAAER;EAHgC,CAA7B,CAAb;EAMA,MAAMS,SAAS,GAAG,IAAAC,YAAA,EAAI,CAClBlC,MAAM,CAACG,IADW,EAElBsB,KAFkB,CAAJ,CAAlB;;EAKA,MAAMU,WAAW,GAAG,MAAM;IACtB,IAAIhB,QAAJ,EAAc;MACV;IACH;;IAEDI,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO;EACV,CAND;;EAQA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEJ,QADd;IAEI,OAAO,EAAEgB,WAFb;IAGI,KAAK,EAAEF;EAHX,GAIQP,UAJR,GAMKd,IANL,CADJ;AAUH;;AAAA"}
1
+ {"version":3,"names":["styles","StyleSheet","create","root","alignItems","height","justifyContent","width","loadingSpinner","position","loadingSpinnerSizeMap","small","medium","large","selectIconColor","theme","color","palette","icon","strong","base","commonColors","static","strongInverse","status","disabled","IconButton","props","children","colorProp","onPress","iconSize","isLoading","style","otherProps","useTheme","iconColor","cloneElementSafely","enableV2","fill","size","rootStyle","css","contentStyle","opacity","loadingSpinnerStyle","handlePress"],"sources":["IconButton.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { commonColors, Theme } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { LoadingSpinner } from '../internal';\nimport { css, useTheme } from '../styles';\nimport type { SvgIconSize } from '../SvgIcon/SvgIconProps';\nimport { cloneElementSafely } from '../utils';\nimport type IconButtonProps from './IconButtonProps';\nimport type { IconButtonColor } from './IconButtonProps';\n\nconst styles = StyleSheet.create({\n root: {\n alignItems: 'center',\n height: 32,\n justifyContent: 'center',\n width: 32,\n },\n loadingSpinner: {\n position: 'absolute',\n },\n});\n\nconst loadingSpinnerSizeMap: Record<SvgIconSize, number> = {\n small: 14,\n medium: 16,\n large: 18,\n};\n\nfunction selectIconColor(theme: Theme, color: IconButtonColor) {\n switch (color) {\n default:\n case 'strong':\n return theme.palette.icon.strong;\n case 'base':\n return theme.palette.icon.base;\n case 'staticStrongInverse':\n return commonColors.static.strongInverse;\n case 'disabled':\n return theme.palette.status.disabled;\n }\n}\n\nexport default function IconButton(props: IconButtonProps) {\n const {\n children,\n color: colorProp = 'strong' as IconButtonColor,\n disabled = false,\n onPress,\n iconSize = 'medium' as SvgIconSize,\n isLoading = false,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const color: IconButtonColor = disabled ? 'disabled' : colorProp;\n const iconColor = selectIconColor(theme, color);\n\n const icon = cloneElementSafely(children, {\n enableV2: true,\n fill: iconColor,\n size: iconSize,\n });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const contentStyle = css({\n opacity: isLoading ? 0 : 1,\n });\n\n const loadingSpinnerStyle = css([\n styles.loadingSpinner,\n {\n height: loadingSpinnerSizeMap[iconSize],\n width: loadingSpinnerSizeMap[iconSize],\n },\n ]);\n\n const handlePress = () => {\n if (disabled) {\n return;\n }\n\n onPress?.();\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <View style={contentStyle}>\n {icon}\n </View>\n\n {isLoading ? (\n <LoadingSpinner style={loadingSpinnerStyle}/>\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAIA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC7BC,IAAI,EAAE;IACFC,UAAU,EAAE,QADV;IAEFC,MAAM,EAAE,EAFN;IAGFC,cAAc,EAAE,QAHd;IAIFC,KAAK,EAAE;EAJL,CADuB;EAO7BC,cAAc,EAAE;IACZC,QAAQ,EAAE;EADE;AAPa,CAAlB,CAAf;;AAYA,MAAMC,qBAAkD,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AAS,GAAG,CAAH,GAAO;EADJ,CAAJ,CAArB;EAIA,MAAMa,mBAAmB,GAAG,IAAAH,YAAA,EAAI,CAC5B1C,MAAM,CAACQ,cADqB,EAE5B;IACIH,MAAM,EAAEK,qBAAqB,CAACqB,QAAD,CADjC;IAEIxB,KAAK,EAAEG,qBAAqB,CAACqB,QAAD;EAFhC,CAF4B,CAAJ,CAA5B;;EAQA,MAAMe,WAAW,GAAG,MAAM;IACtB,IAAIrB,QAAJ,EAAc;MACV;IACH;;IAEDK,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO;EACV,CAND;;EAQA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEL,QADd;IAEI,OAAO,EAAEqB,WAFb;IAGI,KAAK,EAAEL;EAHX,GAIQP,UAJR,gBAMI,6BAAC,iBAAD;IAAM,KAAK,EAAES;EAAb,GACKzB,IADL,CANJ,EAUKc,SAAS,gBACN,6BAAC,wBAAD;IAAgB,KAAK,EAAEa;EAAvB,EADM,GAEN,IAZR,CADJ;AAgBH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["iconButtonColors"],"sources":["IconButtonProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { SvgIconSize } from '../SvgIcon/SvgIconProps';\nimport type { OverridableComponentProps } from '../types';\n\nexport const iconButtonColors = [\n 'strong',\n 'base',\n 'staticStrongInverse',\n 'disabled',\n] as const;\nexport type IconButtonColor = typeof iconButtonColors[number];\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 'strong'\n */\n color?: IconButtonColor;\n\n /**\n * Determines the size of the icon that goes inside the button.\n * @default 'medium'\n */\n iconSize?: SvgIconSize;\n}> {}\n"],"mappings":";;;;;;AAKO,MAAMA,gBAAgB,GAAG,CAC5B,QAD4B,EAE5B,MAF4B,EAG5B,qBAH4B,EAI5B,UAJ4B,CAAzB"}
1
+ {"version":3,"names":["iconButtonColors"],"sources":["IconButtonProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { SvgIconSize } from '../SvgIcon/SvgIconProps';\nimport type { OverridableComponentProps } from '../types';\n\nexport const iconButtonColors = [\n 'strong',\n 'base',\n 'staticStrongInverse',\n 'disabled',\n] as const;\nexport type IconButtonColor = typeof iconButtonColors[number];\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 'strong'\n */\n color?: IconButtonColor;\n\n /**\n * Determines the size of the icon that goes inside the button.\n * @default 'medium'\n */\n iconSize?: SvgIconSize;\n\n /**\n * Determines whether to show the loading status or not.\n * @default false\n */\n isLoading?: boolean;\n}> {}\n"],"mappings":";;;;;;AAKO,MAAMA,gBAAgB,GAAG,CAC5B,QAD4B,EAE5B,MAF4B,EAG5B,qBAH4B,EAI5B,UAJ4B,CAAzB"}
@@ -6,11 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _LegacyIconButton.default;
9
+ return _IconButton.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "iconButtonColors", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _IconButtonProps.iconButtonColors;
16
+ }
17
+ });
18
+
19
+ var _IconButton = _interopRequireDefault(require("./IconButton"));
12
20
 
13
- var _LegacyIconButton = _interopRequireDefault(require("./LegacyIconButton"));
21
+ var _IconButtonProps = require("./IconButtonProps");
14
22
 
15
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyIconButton';\nexport type { default as IconButtonProps } from './LegacyIconButtonProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';\nexport { iconButtonColors } from './IconButtonProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -9,22 +9,34 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _reactNative = require("react-native");
11
11
 
12
+ var _styles = require("@fountain-ui/styles");
13
+
12
14
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
13
15
 
14
- var _styles = require("../styles");
16
+ var _Row = _interopRequireDefault(require("../Row"));
15
17
 
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ var _styles2 = require("../styles");
17
19
 
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
22
  const useStyles = function () {
21
- const theme = (0, _styles.useTheme)();
23
+ const theme = (0, _styles2.useTheme)();
22
24
  return {
23
- root: {
24
- flexDirection: 'row',
25
- paddingVertical: theme.spacing(3),
25
+ content: {
26
+ gap: theme.spacing(2),
27
+ paddingVertical: theme.spacing(3.75),
26
28
  paddingHorizontal: theme.spacing(4),
27
29
  width: '100%'
30
+ },
31
+ description: {
32
+ paddingRight: theme.spacing(20)
33
+ },
34
+ divider: {
35
+ borderBottomColor: theme.palette.border.weak,
36
+ borderBottomWidth: 0.5
37
+ },
38
+ dividerWrapper: {
39
+ paddingHorizontal: theme.spacing(4)
28
40
  }
29
41
  };
30
42
  };
@@ -34,39 +46,49 @@ function ListItem(props) {
34
46
  alignItems = 'center',
35
47
  button = false,
36
48
  children,
49
+ description,
37
50
  disabled = false,
38
51
  onPress,
39
52
  style,
40
53
  ...otherProps
41
54
  } = props;
55
+ const theme = (0, _styles2.useTheme)();
42
56
  const styles = useStyles();
43
57
  const rootComponentProps = {
44
58
  accessibilityRole: _reactNative.Platform.OS === 'web' ? 'listitem' : undefined,
45
59
  ...otherProps
46
60
  };
47
- const rootStyle = (0, _styles.css)([styles.root, {
48
- alignItems
49
- }, style]);
61
+ const contentWrapperStyle = (0, _styles2.css)([styles.content, style]);
62
+ const descriptionFontStyle = (0, _styles2.createFontStyle)(theme, {
63
+ selector: _ => (0, _styles.typographyOf)({
64
+ fontSize: 14,
65
+ lineHeight: 19.6,
66
+ fontFamily: 'PretendardStd-Regular',
67
+ letterSpacing: 0
68
+ }),
69
+ color: theme.palette.text.base
70
+ });
50
71
 
51
- if (button) {
52
- return (
53
- /*#__PURE__*/
54
- // @ts-ignore
55
- _react.default.createElement(_reactNative.View, rootComponentProps, /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
56
- disabled: disabled,
57
- onPress: onPress,
58
- style: rootStyle
59
- }, children))
60
- );
61
- }
72
+ const content = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Row.default, {
73
+ alignItems: alignItems
74
+ }, children), description ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
75
+ style: (0, _styles2.css)([styles.description, descriptionFontStyle])
76
+ }, description) : null);
62
77
 
63
78
  return (
64
79
  /*#__PURE__*/
65
80
  // @ts-ignore
66
- _react.default.createElement(_reactNative.View, _extends({
67
- children: children,
68
- style: rootStyle
69
- }, rootComponentProps))
81
+ _react.default.createElement(_reactNative.View, rootComponentProps, button ? /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
82
+ disabled: disabled,
83
+ onPress: onPress,
84
+ style: contentWrapperStyle
85
+ }, content) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
86
+ style: contentWrapperStyle
87
+ }, content), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
88
+ style: styles.dividerWrapper
89
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
90
+ style: styles.divider
91
+ })))
70
92
  );
71
93
  }
72
94
 
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","flexDirection","paddingVertical","spacing","paddingHorizontal","width","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","rootStyle","css"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { css, useTheme } from '../styles';\nimport ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n paddingVertical: theme.spacing(3),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center',\n button = false,\n children,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const rootStyle = css([\n styles.root,\n { alignItems },\n style,\n ]);\n\n if (button) {\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={rootStyle}\n >\n {children}\n </ButtonBase>\n </View>\n );\n }\n\n return (\n // @ts-ignore\n <View\n children={children}\n style={rootStyle}\n {...rootComponentProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd,CAFf;MAGFC,iBAAiB,EAAEN,KAAK,CAACK,OAAN,CAAc,CAAd,CAHjB;MAIFE,KAAK,EAAE;IAJL;EADH,CAAP;AAQH,CAXD;;AAae,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,UAAU,GAAG,QADX;IAEFC,MAAM,GAAG,KAFP;IAGFC,QAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,OALE;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGlB,SAAS,EAAxB;EAEA,MAAMmB,kBAAkB,GAAG;IACvBC,iBAAiB,EAAEC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SADjC;IAEvB,GAAGN;EAFoB,CAA3B;EAKA,MAAMO,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBP,MAAM,CAACf,IADW,EAElB;IAAEQ;EAAF,CAFkB,EAGlBK,KAHkB,CAAJ,CAAlB;;EAMA,IAAIJ,MAAJ,EAAY;IACR;MAAA;MACI;MACA,6BAAC,iBAAD,EAAUO,kBAAV,eACI,6BAAC,mBAAD;QACI,QAAQ,EAAEL,QADd;QAEI,OAAO,EAAEC,OAFb;QAGI,KAAK,EAAES;MAHX,GAKKX,QALL,CADJ;IAFJ;EAYH;;EAED;IAAA;IACI;IACA,6BAAC,iBAAD;MACI,QAAQ,EAAEA,QADd;MAEI,KAAK,EAAEW;IAFX,GAGQL,kBAHR;EAFJ;AAQH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","content","gap","spacing","paddingVertical","paddingHorizontal","width","description","paddingRight","divider","borderBottomColor","palette","border","weak","borderBottomWidth","dividerWrapper","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","contentWrapperStyle","css","descriptionFontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","base"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle } from 'react-native';\nimport { Platform, Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'content' | 'description' | 'divider' | 'dividerWrapper'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n content: {\n gap: theme.spacing(2),\n paddingVertical: theme.spacing(3.75),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n description: {\n paddingRight: theme.spacing(20),\n },\n divider: {\n borderBottomColor: theme.palette.border.weak,\n borderBottomWidth: 0.5,\n },\n dividerWrapper: {\n paddingHorizontal: theme.spacing(4),\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center' as FlexStyle['alignItems'],\n button = false,\n children,\n description,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const contentWrapperStyle = css([\n styles.content,\n style,\n ]);\n\n const descriptionFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 19.6,\n fontFamily: 'PretendardStd-Regular',\n letterSpacing: 0,\n }),\n color: theme.palette.text.base,\n });\n\n const content = (\n <React.Fragment>\n <Row alignItems={alignItems}>\n {children}\n </Row>\n\n {description ? (\n <Text style={css([\n styles.description,\n descriptionFontStyle,\n ])}>\n {description}\n </Text>\n ) : null}\n </React.Fragment>\n );\n\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n {button ? (\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={contentWrapperStyle}\n >\n {content}\n </ButtonBase>\n ) : (\n <View style={contentWrapperStyle}>\n {content}\n </View>\n )}\n\n <View style={styles.dividerWrapper}>\n <View style={styles.divider}/>\n </View>\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,OAAO,EAAE;MACLC,GAAG,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADA;MAELC,eAAe,EAAEL,KAAK,CAACI,OAAN,CAAc,IAAd,CAFZ;MAGLE,iBAAiB,EAAEN,KAAK,CAACI,OAAN,CAAc,CAAd,CAHd;MAILG,KAAK,EAAE;IAJF,CADN;IAOHC,WAAW,EAAE;MACTC,YAAY,EAAET,KAAK,CAACI,OAAN,CAAc,EAAd;IADL,CAPV;IAUHM,OAAO,EAAE;MACLC,iBAAiB,EAAEX,KAAK,CAACY,OAAN,CAAcC,MAAd,CAAqBC,IADnC;MAELC,iBAAiB,EAAE;IAFd,CAVN;IAcHC,cAAc,EAAE;MACZV,iBAAiB,EAAEN,KAAK,CAACI,OAAN,CAAc,CAAd;IADP;EAdb,CAAP;AAkBH,CArBD;;AAuBe,SAASa,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,UAAU,GAAG,QADX;IAEFC,MAAM,GAAG,KAFP;IAGFC,QAHE;IAIFb,WAJE;IAKFc,QAAQ,GAAG,KALT;IAMFC,OANE;IAOFC,KAPE;IAQF,GAAGC;EARD,IASFP,KATJ;EAWA,MAAMlB,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,MAAMyB,MAAM,GAAG3B,SAAS,EAAxB;EAEA,MAAM4B,kBAAkB,GAAG;IACvBC,iBAAiB,EAAEC,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":[],"sources":["ListItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>, {\n /**\n * Aligns children vertical direction.\n * @default 'center'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * If `true`, the list item is a button (using `ButtonBase`).\n * @default false\n */\n button?: boolean;\n\n /**\n * Whether to prevent interaction with the ButtonBase.\n * @default false\n */\n disabled?: ButtonBaseProps['disabled'];\n\n /**\n * Function to execute on press. If not set, will cause the ButtonBase to be disabled.\n */\n onPress?: ButtonBaseProps['onPress'];\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["ListItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>, {\n /**\n * Aligns children vertical direction.\n * @default 'center'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * If `true`, the list item is a button (using `ButtonBase`).\n * @default false\n */\n button?: boolean;\n\n /**\n * Displays a description in this item.\n */\n description?: string;\n\n /**\n * Whether to prevent interaction with the ButtonBase.\n * @default false\n */\n disabled?: ButtonBaseProps['disabled'];\n\n /**\n * Function to execute on press. If not set, will cause the ButtonBase to be disabled.\n */\n onPress?: ButtonBaseProps['onPress'];\n}> {}\n"],"mappings":""}
@@ -19,8 +19,7 @@ const useStyles = function () {
19
19
  const theme = (0, _styles.useTheme)();
20
20
  return {
21
21
  root: {
22
- marginRight: theme.spacing(2),
23
- minWidth: 24,
22
+ marginRight: theme.spacing(3),
24
23
  flexShrink: 0
25
24
  }
26
25
  };
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","marginRight","spacing","minWidth","flexShrink","ListItemIcon","props","style","otherProps","styles","css"],"sources":["ListItemIcon.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 ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(2),\n minWidth: 24,\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,WAAW,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADX;MAEFC,QAAQ,EAAE,EAFR;MAGFC,UAAU,EAAE;IAHV;EADH,CAAP;AAOH,CAVD;;AAYe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGZ,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAa,WAAA,EAAI,CACPD,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","marginRight","spacing","flexShrink","ListItemIcon","props","style","otherProps","styles","css"],"sources":["ListItemIcon.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 ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(3),\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,WAAW,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADX;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CATD;;AAWe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGX,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAY,WAAA,EAAI,CACPD,MAAM,CAACR,IADA,EAEPM,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -18,6 +18,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
18
18
  const useStyles = function () {
19
19
  return {
20
20
  root: {
21
+ alignItems: 'center',
22
+ flexDirection: 'row',
21
23
  flexShrink: 0,
22
24
  marginLeft: 'auto'
23
25
  }