@fountain-ui/core 3.0.0-alpha.1 → 3.0.0-alpha.11

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 (455) hide show
  1. package/build/commonjs/Accordion/Accordion.js +4 -1
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/index.js +8 -0
  4. package/build/commonjs/Accordion/index.js.map +1 -1
  5. package/build/commonjs/Accordion/useVariantStyleMap.js +11 -10
  6. package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
  7. package/build/commonjs/AppBar/AppBar.js +6 -1
  8. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  9. package/build/commonjs/AppBar/index.js +8 -0
  10. package/build/commonjs/AppBar/index.js.map +1 -1
  11. package/build/commonjs/Badge/index.js +26 -0
  12. package/build/commonjs/Badge/index.js.map +1 -1
  13. package/build/commonjs/Badge/useVariantStyleMap.js +2 -2
  14. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  15. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +1 -0
  16. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  17. package/build/commonjs/Button/Button.js +15 -3
  18. package/build/commonjs/Button/Button.js.map +1 -1
  19. package/build/commonjs/Button/ButtonProps.js +7 -7
  20. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  21. package/build/commonjs/Button/index.js +20 -0
  22. package/build/commonjs/Button/index.js.map +1 -1
  23. package/build/commonjs/Button/useVariantStyleMap.js +5 -7
  24. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  25. package/build/commonjs/ButtonBase/index.js +2 -2
  26. package/build/commonjs/ButtonBase/index.js.map +1 -1
  27. package/build/commonjs/Checkbox/Checkbox.js +5 -2
  28. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  29. package/build/commonjs/Checkbox/index.js +8 -0
  30. package/build/commonjs/Checkbox/index.js.map +1 -1
  31. package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
  32. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  33. package/build/commonjs/Chip/Chip.js +21 -14
  34. package/build/commonjs/Chip/Chip.js.map +1 -1
  35. package/build/commonjs/Chip/ChipProps.js +3 -1
  36. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  37. package/build/commonjs/Chip/index.js +20 -0
  38. package/build/commonjs/Chip/index.js.map +1 -1
  39. package/build/commonjs/Chip/useChipStyle.js +31 -37
  40. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  41. package/build/commonjs/Dialog/Dialog.js +7 -8
  42. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  43. package/build/commonjs/Dialog/DialogProps.js +1 -1
  44. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  45. package/build/commonjs/Dialog/index.js +8 -0
  46. package/build/commonjs/Dialog/index.js.map +1 -1
  47. package/build/commonjs/Dialog/useDialogSectionStyle.js +5 -5
  48. package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
  49. package/build/commonjs/Dialog/useDialogStyle.js +9 -8
  50. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
  51. package/build/commonjs/DialogContent/DialogContent.js +1 -2
  52. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  53. package/build/commonjs/DialogTitle/BackButton.js +47 -0
  54. package/build/commonjs/DialogTitle/BackButton.js.map +1 -0
  55. package/build/commonjs/DialogTitle/CloseButton.js +45 -0
  56. package/build/commonjs/DialogTitle/CloseButton.js.map +1 -0
  57. package/build/commonjs/DialogTitle/DialogTitle.js +11 -4
  58. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  59. package/build/commonjs/Divider/Divider.js +18 -10
  60. package/build/commonjs/Divider/Divider.js.map +1 -1
  61. package/build/commonjs/Divider/DividerProps.js +4 -4
  62. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  63. package/build/commonjs/Divider/index.js +14 -0
  64. package/build/commonjs/Divider/index.js.map +1 -1
  65. package/build/commonjs/Empty/Empty.js +1 -2
  66. package/build/commonjs/Empty/Empty.js.map +1 -1
  67. package/build/commonjs/Flexbox/Flexbox.js +2 -0
  68. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  69. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  70. package/build/commonjs/IconButton/index.js +8 -0
  71. package/build/commonjs/IconButton/index.js.map +1 -1
  72. package/build/commonjs/ListItem/ListItem.js +47 -25
  73. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  74. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  75. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
  76. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  77. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  78. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  79. package/build/commonjs/ListItemText/ListItemText.js +20 -21
  80. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  81. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  82. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  83. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  84. package/build/commonjs/Pagination/NumberPagination.js +1 -1
  85. package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
  86. package/build/commonjs/Pagination/Pagination.js +2 -0
  87. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  88. package/build/commonjs/Pagination/PaginationProps.js +3 -1
  89. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  90. package/build/commonjs/Pagination/index.js +14 -0
  91. package/build/commonjs/Pagination/index.js.map +1 -1
  92. package/build/commonjs/PaginationItem/PaginationItem.js +32 -22
  93. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  94. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  95. package/build/commonjs/Radio/Radio.js +6 -2
  96. package/build/commonjs/Radio/Radio.js.map +1 -1
  97. package/build/commonjs/Section/Section.js +32 -0
  98. package/build/commonjs/Section/Section.js.map +1 -0
  99. package/build/commonjs/Section/SectionProps.js +2 -0
  100. package/build/commonjs/Section/SectionProps.js.map +1 -0
  101. package/build/commonjs/Section/index.js +16 -0
  102. package/build/commonjs/Section/index.js.map +1 -0
  103. package/build/commonjs/ShadowView/ShadowView.native.js +4 -0
  104. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  105. package/build/commonjs/Snackbar/index.js +8 -0
  106. package/build/commonjs/Snackbar/index.js.map +1 -1
  107. package/build/commonjs/SnackbarContent/SnackbarContent.js +27 -12
  108. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  109. package/build/commonjs/SvgIcon/index.js +14 -0
  110. package/build/commonjs/SvgIcon/index.js.map +1 -1
  111. package/build/commonjs/Tab/useVariantStyleMap.js +3 -3
  112. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
  113. package/build/commonjs/Tabs/Tabs.js +6 -1
  114. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  115. package/build/commonjs/Tabs/index.js +14 -0
  116. package/build/commonjs/Tabs/index.js.map +1 -1
  117. package/build/commonjs/Tabs/useTabsStyle.js +42 -0
  118. package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
  119. package/build/commonjs/TextField/TextField.js +1 -1
  120. package/build/commonjs/TextField/TextField.js.map +1 -1
  121. package/build/commonjs/TextField/index.js +8 -0
  122. package/build/commonjs/TextField/index.js.map +1 -1
  123. package/build/commonjs/TextField/useVariantStyleMap.js +2 -2
  124. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
  125. package/build/commonjs/Toolbar/BackButton/BackButton.js +47 -0
  126. package/build/commonjs/Toolbar/BackButton/BackButton.js.map +1 -0
  127. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js +2 -0
  128. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  129. package/build/commonjs/Toolbar/BackButton/index.js +16 -0
  130. package/build/commonjs/Toolbar/BackButton/index.js.map +1 -0
  131. package/build/commonjs/Toolbar/Toolbar.js +8 -4
  132. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  133. package/build/commonjs/Toolbar/index.js +8 -0
  134. package/build/commonjs/Toolbar/index.js.map +1 -1
  135. package/build/commonjs/Tooltip/Beaks/index.js +32 -0
  136. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
  137. package/build/commonjs/Tooltip/Tooltip.js +11 -24
  138. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  139. package/build/commonjs/Tooltip/index.js +39 -0
  140. package/build/commonjs/Tooltip/index.js.map +1 -1
  141. package/build/commonjs/Typography/Typography.js +9 -2
  142. package/build/commonjs/Typography/Typography.js.map +1 -1
  143. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  144. package/build/commonjs/Typography/index.js +8 -0
  145. package/build/commonjs/Typography/index.js.map +1 -1
  146. package/build/commonjs/hooks/useBreakpointUp.js +4 -1
  147. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  148. package/build/commonjs/hooks/useContentContainerStyle.js +21 -28
  149. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  150. package/build/commonjs/index.js +21 -0
  151. package/build/commonjs/index.js.map +1 -1
  152. package/build/commonjs/internal/icons/ChevronLeft.js +4 -2
  153. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  154. package/build/commonjs/internal/icons/ChevronRight.js +4 -2
  155. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  156. package/build/commonjs/internal/icons/Close.js +4 -2
  157. package/build/commonjs/internal/icons/Close.js.map +1 -1
  158. package/build/module/Accordion/Accordion.js +4 -1
  159. package/build/module/Accordion/Accordion.js.map +1 -1
  160. package/build/module/Accordion/index.js +1 -0
  161. package/build/module/Accordion/index.js.map +1 -1
  162. package/build/module/Accordion/useVariantStyleMap.js +11 -10
  163. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  164. package/build/module/AppBar/AppBar.js +5 -1
  165. package/build/module/AppBar/AppBar.js.map +1 -1
  166. package/build/module/AppBar/index.js +1 -0
  167. package/build/module/AppBar/index.js.map +1 -1
  168. package/build/module/Badge/index.js +1 -0
  169. package/build/module/Badge/index.js.map +1 -1
  170. package/build/module/Badge/useVariantStyleMap.js +2 -2
  171. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  172. package/build/module/BottomSheetTitle/BottomSheetTitle.js +1 -0
  173. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  174. package/build/module/Button/Button.js +16 -4
  175. package/build/module/Button/Button.js.map +1 -1
  176. package/build/module/Button/ButtonProps.js +3 -3
  177. package/build/module/Button/ButtonProps.js.map +1 -1
  178. package/build/module/Button/index.js +1 -0
  179. package/build/module/Button/index.js.map +1 -1
  180. package/build/module/Button/useVariantStyleMap.js +5 -7
  181. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  182. package/build/module/ButtonBase/index.js +1 -1
  183. package/build/module/ButtonBase/index.js.map +1 -1
  184. package/build/module/Checkbox/Checkbox.js +5 -2
  185. package/build/module/Checkbox/Checkbox.js.map +1 -1
  186. package/build/module/Checkbox/index.js +1 -0
  187. package/build/module/Checkbox/index.js.map +1 -1
  188. package/build/module/Checkbox/useVariantStyleMap.js +6 -2
  189. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  190. package/build/module/Chip/Chip.js +17 -13
  191. package/build/module/Chip/Chip.js.map +1 -1
  192. package/build/module/Chip/ChipProps.js +1 -0
  193. package/build/module/Chip/ChipProps.js.map +1 -1
  194. package/build/module/Chip/index.js +1 -0
  195. package/build/module/Chip/index.js.map +1 -1
  196. package/build/module/Chip/useChipStyle.js +31 -36
  197. package/build/module/Chip/useChipStyle.js.map +1 -1
  198. package/build/module/Dialog/Dialog.js +7 -8
  199. package/build/module/Dialog/Dialog.js.map +1 -1
  200. package/build/module/Dialog/DialogProps.js +1 -1
  201. package/build/module/Dialog/DialogProps.js.map +1 -1
  202. package/build/module/Dialog/index.js +1 -0
  203. package/build/module/Dialog/index.js.map +1 -1
  204. package/build/module/Dialog/useDialogSectionStyle.js +5 -5
  205. package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
  206. package/build/module/Dialog/useDialogStyle.js +9 -8
  207. package/build/module/Dialog/useDialogStyle.js.map +1 -1
  208. package/build/module/DialogContent/DialogContent.js +1 -2
  209. package/build/module/DialogContent/DialogContent.js.map +1 -1
  210. package/build/module/DialogTitle/BackButton.js +32 -0
  211. package/build/module/DialogTitle/BackButton.js.map +1 -0
  212. package/build/module/DialogTitle/CloseButton.js +30 -0
  213. package/build/module/DialogTitle/CloseButton.js.map +1 -0
  214. package/build/module/DialogTitle/DialogTitle.js +8 -3
  215. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  216. package/build/module/Divider/Divider.js +8 -1
  217. package/build/module/Divider/Divider.js.map +1 -1
  218. package/build/module/Divider/DividerProps.js +2 -2
  219. package/build/module/Divider/DividerProps.js.map +1 -1
  220. package/build/module/Divider/index.js +1 -0
  221. package/build/module/Divider/index.js.map +1 -1
  222. package/build/module/Empty/Empty.js +1 -2
  223. package/build/module/Empty/Empty.js.map +1 -1
  224. package/build/module/Flexbox/Flexbox.js +2 -0
  225. package/build/module/Flexbox/Flexbox.js.map +1 -1
  226. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  227. package/build/module/IconButton/index.js +1 -0
  228. package/build/module/IconButton/index.js.map +1 -1
  229. package/build/module/ListItem/ListItem.js +45 -27
  230. package/build/module/ListItem/ListItem.js.map +1 -1
  231. package/build/module/ListItem/ListItemProps.js.map +1 -1
  232. package/build/module/ListItemIcon/ListItemIcon.js +1 -2
  233. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  234. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  235. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  236. package/build/module/ListItemText/ListItemText.js +17 -19
  237. package/build/module/ListItemText/ListItemText.js.map +1 -1
  238. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  239. package/build/module/ListSubheader/ListSubheader.js +1 -1
  240. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  241. package/build/module/Pagination/NumberPagination.js +1 -1
  242. package/build/module/Pagination/NumberPagination.js.map +1 -1
  243. package/build/module/Pagination/Pagination.js +2 -0
  244. package/build/module/Pagination/Pagination.js.map +1 -1
  245. package/build/module/Pagination/PaginationProps.js +1 -0
  246. package/build/module/Pagination/PaginationProps.js.map +1 -1
  247. package/build/module/Pagination/index.js +1 -0
  248. package/build/module/Pagination/index.js.map +1 -1
  249. package/build/module/PaginationItem/PaginationItem.js +28 -21
  250. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  251. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  252. package/build/module/Radio/Radio.js +5 -2
  253. package/build/module/Radio/Radio.js.map +1 -1
  254. package/build/module/Section/Section.js +19 -0
  255. package/build/module/Section/Section.js.map +1 -0
  256. package/build/module/Section/SectionProps.js +2 -0
  257. package/build/module/Section/SectionProps.js.map +1 -0
  258. package/build/module/Section/index.js +2 -0
  259. package/build/module/Section/index.js.map +1 -0
  260. package/build/module/ShadowView/ShadowView.native.js +4 -0
  261. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  262. package/build/module/Snackbar/index.js +1 -0
  263. package/build/module/Snackbar/index.js.map +1 -1
  264. package/build/module/SnackbarContent/SnackbarContent.js +27 -12
  265. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  266. package/build/module/SvgIcon/index.js +1 -0
  267. package/build/module/SvgIcon/index.js.map +1 -1
  268. package/build/module/Tab/useVariantStyleMap.js +3 -3
  269. package/build/module/Tab/useVariantStyleMap.js.map +1 -1
  270. package/build/module/Tabs/Tabs.js +5 -1
  271. package/build/module/Tabs/Tabs.js.map +1 -1
  272. package/build/module/Tabs/index.js +1 -0
  273. package/build/module/Tabs/index.js.map +1 -1
  274. package/build/module/Tabs/useTabsStyle.js +32 -0
  275. package/build/module/Tabs/useTabsStyle.js.map +1 -0
  276. package/build/module/TextField/TextField.js +1 -1
  277. package/build/module/TextField/TextField.js.map +1 -1
  278. package/build/module/TextField/index.js +1 -0
  279. package/build/module/TextField/index.js.map +1 -1
  280. package/build/module/TextField/useVariantStyleMap.js +2 -2
  281. package/build/module/TextField/useVariantStyleMap.js.map +1 -1
  282. package/build/module/Toolbar/BackButton/BackButton.js +32 -0
  283. package/build/module/Toolbar/BackButton/BackButton.js.map +1 -0
  284. package/build/module/Toolbar/BackButton/BackButtonProps.js +2 -0
  285. package/build/module/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  286. package/build/module/Toolbar/BackButton/index.js +2 -0
  287. package/build/module/Toolbar/BackButton/index.js.map +1 -0
  288. package/build/module/Toolbar/Toolbar.js +7 -3
  289. package/build/module/Toolbar/Toolbar.js.map +1 -1
  290. package/build/module/Toolbar/index.js +1 -0
  291. package/build/module/Toolbar/index.js.map +1 -1
  292. package/build/module/Tooltip/Beaks/index.js +4 -0
  293. package/build/module/Tooltip/Beaks/index.js.map +1 -1
  294. package/build/module/Tooltip/Tooltip.js +4 -16
  295. package/build/module/Tooltip/Tooltip.js.map +1 -1
  296. package/build/module/Tooltip/index.js +2 -0
  297. package/build/module/Tooltip/index.js.map +1 -1
  298. package/build/module/Typography/Typography.js +9 -2
  299. package/build/module/Typography/Typography.js.map +1 -1
  300. package/build/module/Typography/TypographyProps.js.map +1 -1
  301. package/build/module/Typography/index.js +1 -0
  302. package/build/module/Typography/index.js.map +1 -1
  303. package/build/module/hooks/useBreakpointUp.js +4 -1
  304. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  305. package/build/module/hooks/useContentContainerStyle.js +23 -26
  306. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  307. package/build/module/index.js +2 -0
  308. package/build/module/index.js.map +1 -1
  309. package/build/module/internal/icons/ChevronLeft.js +4 -2
  310. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  311. package/build/module/internal/icons/ChevronRight.js +4 -2
  312. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  313. package/build/module/internal/icons/Close.js +4 -2
  314. package/build/module/internal/icons/Close.js.map +1 -1
  315. package/build/typescript/Accordion/index.d.ts +1 -0
  316. package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
  317. package/build/typescript/AppBar/index.d.ts +1 -0
  318. package/build/typescript/Badge/index.d.ts +2 -1
  319. package/build/typescript/Button/ButtonProps.d.ts +11 -6
  320. package/build/typescript/Button/index.d.ts +1 -0
  321. package/build/typescript/ButtonBase/index.d.ts +1 -1
  322. package/build/typescript/Checkbox/index.d.ts +1 -0
  323. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
  324. package/build/typescript/Chip/ChipProps.d.ts +11 -4
  325. package/build/typescript/Chip/index.d.ts +1 -0
  326. package/build/typescript/Chip/useChipStyle.d.ts +4 -3
  327. package/build/typescript/Dialog/DialogProps.d.ts +1 -6
  328. package/build/typescript/Dialog/index.d.ts +1 -0
  329. package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
  330. package/build/typescript/DialogTitle/BackButton.d.ts +6 -0
  331. package/build/typescript/DialogTitle/CloseButton.d.ts +6 -0
  332. package/build/typescript/DialogTitle/DialogTitle.d.ts +8 -1
  333. package/build/typescript/Divider/DividerProps.d.ts +4 -4
  334. package/build/typescript/Divider/index.d.ts +1 -0
  335. package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
  336. package/build/typescript/IconButton/index.d.ts +1 -0
  337. package/build/typescript/ListItem/ListItem.d.ts +1 -1
  338. package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
  339. package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
  340. package/build/typescript/Pagination/PaginationProps.d.ts +12 -0
  341. package/build/typescript/Pagination/index.d.ts +2 -1
  342. package/build/typescript/PaginationItem/PaginationItemProps.d.ts +6 -0
  343. package/build/typescript/Section/Section.d.ts +3 -0
  344. package/build/typescript/Section/SectionProps.d.ts +6 -0
  345. package/build/typescript/Section/index.d.ts +2 -0
  346. package/build/typescript/Snackbar/index.d.ts +1 -0
  347. package/build/typescript/SvgIcon/index.d.ts +1 -0
  348. package/build/typescript/Tabs/index.d.ts +1 -0
  349. package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
  350. package/build/typescript/TextField/index.d.ts +1 -0
  351. package/build/typescript/Toolbar/BackButton/BackButton.d.ts +3 -0
  352. package/build/typescript/Toolbar/BackButton/BackButtonProps.d.ts +4 -0
  353. package/build/typescript/Toolbar/BackButton/index.d.ts +2 -0
  354. package/build/typescript/Toolbar/Toolbar.d.ts +6 -1
  355. package/build/typescript/Toolbar/index.d.ts +1 -0
  356. package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
  357. package/build/typescript/Tooltip/index.d.ts +3 -1
  358. package/build/typescript/Typography/TypographyProps.d.ts +4 -0
  359. package/build/typescript/Typography/index.d.ts +1 -0
  360. package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
  361. package/build/typescript/index.d.ts +2 -0
  362. package/package.json +3 -3
  363. package/src/Accordion/Accordion.tsx +4 -1
  364. package/src/Accordion/index.ts +1 -0
  365. package/src/Accordion/useVariantStyleMap.ts +12 -10
  366. package/src/AppBar/AppBar.tsx +4 -0
  367. package/src/AppBar/index.ts +1 -0
  368. package/src/Badge/index.ts +12 -1
  369. package/src/Badge/useVariantStyleMap.ts +2 -2
  370. package/src/BottomSheetTitle/BottomSheetTitle.tsx +1 -0
  371. package/src/Button/Button.tsx +19 -4
  372. package/src/Button/ButtonProps.ts +12 -6
  373. package/src/Button/index.ts +1 -0
  374. package/src/Button/useVariantStyleMap.ts +3 -7
  375. package/src/ButtonBase/index.ts +1 -1
  376. package/src/Checkbox/Checkbox.tsx +12 -9
  377. package/src/Checkbox/index.ts +1 -0
  378. package/src/Checkbox/useVariantStyleMap.ts +6 -1
  379. package/src/Chip/Chip.tsx +20 -13
  380. package/src/Chip/ChipProps.ts +13 -4
  381. package/src/Chip/index.ts +1 -0
  382. package/src/Chip/useChipStyle.ts +36 -34
  383. package/src/Dialog/Dialog.tsx +7 -8
  384. package/src/Dialog/DialogProps.ts +1 -7
  385. package/src/Dialog/index.ts +1 -0
  386. package/src/Dialog/useDialogSectionStyle.ts +4 -4
  387. package/src/Dialog/useDialogStyle.ts +9 -7
  388. package/src/DialogContent/DialogContent.tsx +1 -2
  389. package/src/DialogTitle/BackButton.tsx +44 -0
  390. package/src/DialogTitle/CloseButton.tsx +42 -0
  391. package/src/DialogTitle/DialogTitle.tsx +9 -1
  392. package/src/Divider/Divider.tsx +6 -1
  393. package/src/Divider/DividerProps.ts +4 -4
  394. package/src/Divider/index.ts +1 -0
  395. package/src/Empty/Empty.tsx +1 -2
  396. package/src/Flexbox/Flexbox.tsx +2 -0
  397. package/src/Flexbox/FlexboxProps.ts +5 -0
  398. package/src/IconButton/index.ts +1 -0
  399. package/src/ListItem/ListItem.tsx +69 -28
  400. package/src/ListItem/ListItemProps.ts +5 -0
  401. package/src/ListItemIcon/ListItemIcon.tsx +1 -2
  402. package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
  403. package/src/ListItemText/ListItemText.tsx +20 -28
  404. package/src/ListItemText/ListItemTextProps.ts +2 -10
  405. package/src/ListSubheader/ListSubheader.tsx +1 -1
  406. package/src/Pagination/NumberPagination.tsx +1 -1
  407. package/src/Pagination/Pagination.tsx +3 -2
  408. package/src/Pagination/PaginationProps.ts +15 -0
  409. package/src/Pagination/index.ts +2 -1
  410. package/src/PaginationItem/PaginationItem.tsx +31 -24
  411. package/src/PaginationItem/PaginationItemProps.ts +7 -0
  412. package/src/Radio/Radio.tsx +8 -2
  413. package/src/Section/Section.tsx +26 -0
  414. package/src/Section/SectionProps.ts +6 -0
  415. package/src/Section/index.ts +2 -0
  416. package/src/ShadowView/ShadowView.native.tsx +4 -0
  417. package/src/Snackbar/index.ts +1 -0
  418. package/src/SnackbarContent/SnackbarContent.tsx +37 -18
  419. package/src/SvgIcon/index.ts +1 -0
  420. package/src/Tab/useVariantStyleMap.ts +3 -3
  421. package/src/Tabs/Tabs.tsx +4 -0
  422. package/src/Tabs/index.ts +1 -0
  423. package/src/Tabs/useTabsStyle.ts +38 -0
  424. package/src/TextField/TextField.tsx +1 -1
  425. package/src/TextField/index.tsx +1 -0
  426. package/src/TextField/useVariantStyleMap.ts +2 -2
  427. package/src/Toolbar/BackButton/BackButton.tsx +42 -0
  428. package/src/Toolbar/BackButton/BackButtonProps.ts +4 -0
  429. package/src/Toolbar/BackButton/index.ts +2 -0
  430. package/src/Toolbar/Toolbar.tsx +6 -1
  431. package/src/Toolbar/index.ts +1 -0
  432. package/src/Tooltip/Beaks/index.ts +4 -0
  433. package/src/Tooltip/Tooltip.tsx +5 -16
  434. package/src/Tooltip/index.ts +3 -1
  435. package/src/Typography/Typography.tsx +3 -1
  436. package/src/Typography/TypographyProps.ts +5 -0
  437. package/src/Typography/index.ts +1 -0
  438. package/src/hooks/useBreakpointUp.ts +3 -1
  439. package/src/hooks/useContentContainerStyle.ts +26 -34
  440. package/src/index.ts +3 -0
  441. package/src/internal/icons/ChevronLeft.tsx +4 -1
  442. package/src/internal/icons/ChevronRight.tsx +4 -1
  443. package/src/internal/icons/Close.tsx +4 -1
  444. package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
  445. package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
  446. package/build/commonjs/TextField/InputLabel.js +0 -163
  447. package/build/commonjs/TextField/InputLabel.js.map +0 -1
  448. package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
  449. package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
  450. package/build/module/TextField/InputLabel.js +0 -149
  451. package/build/module/TextField/InputLabel.js.map +0 -1
  452. package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
  453. package/build/typescript/TextField/InputLabel.d.ts +0 -33
  454. package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
  455. package/src/TextField/InputLabel.tsx +0 -234
@@ -1 +1 @@
1
- {"version":3,"names":["paginationVariants"],"sources":["PaginationProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const paginationVariants = ['dot', 'number'] as const;\nexport type PaginationVariant = typeof paginationVariants[number];\n\nexport interface PaginationRenderItemParams {\n /**\n * Index of the pagination item.\n */\n index: number;\n\n /**\n * If `true`, the pagination item is disabled.\n */\n disabled: boolean;\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: boolean;\n}\n\nexport default interface PaginationProps extends OverridableComponentProps<ViewProps, {\n /**\n * The Number of pages that change when the button is pressed\n * @default 1\n */\n bundleSize?: number,\n\n /**\n * The pagination will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * The total number of pages.\n */\n count: number,\n\n /**\n * If `true`, the pagination is disabled.\n * @default false\n */\n disabled?: boolean;\n\n\n /**\n * If `true`, hide the page indicator.\n * @default false\n */\n hideIndicator?: boolean,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton?: boolean,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton?: boolean,\n\n /**\n * If `true`, pagination is infinite.\n * @default false\n */\n infinite?: boolean,\n\n /**\n * Callback fired when the page is changed.\n */\n onChange?: (page: number) => void,\n\n /**\n * The current page number.\n */\n page: number;\n\n /**\n * Render the item.\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem?: (params: PaginationRenderItemParams) => React.ReactNode;\n\n /**\n * Determines design variations of the component.\n * @default 'dot'\n */\n variant?: PaginationVariant;\n}> {}\n"],"mappings":";;;;;;AAIO,MAAMA,kBAAkB,GAAG,CAAC,KAAD,EAAQ,QAAR,CAA3B"}
1
+ {"version":3,"names":["paginationColors","paginationVariants"],"sources":["PaginationProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const paginationColors = ['base', 'static'] as const;\nexport type PaginationColor = typeof paginationColors[number];\n\nexport const paginationVariants = ['dot', 'number'] as const;\nexport type PaginationVariant = typeof paginationVariants[number];\n\nexport interface PaginationRenderItemParams {\n /**\n * Set color of dot.\n * @default 'base'\n */\n color?: PaginationColor;\n\n /**\n * Index of the pagination item.\n */\n index: number;\n\n /**\n * If `true`, the pagination item is disabled.\n */\n disabled: boolean;\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: boolean;\n}\n\nexport default interface PaginationProps extends OverridableComponentProps<ViewProps, {\n /**\n * The Number of pages that change when the button is pressed\n * @default 1\n */\n bundleSize?: number,\n\n /**\n * The pagination will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * Set color of dot.\n * @default 'base'\n */\n color?: PaginationColor;\n\n /**\n * The total number of pages.\n */\n count: number,\n\n /**\n * If `true`, the pagination is disabled.\n * @default false\n */\n disabled?: boolean;\n\n\n /**\n * If `true`, hide the page indicator.\n * @default false\n */\n hideIndicator?: boolean,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton?: boolean,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton?: boolean,\n\n /**\n * If `true`, pagination is infinite.\n * @default false\n */\n infinite?: boolean,\n\n /**\n * Callback fired when the page is changed.\n */\n onChange?: (page: number) => void,\n\n /**\n * The current page number.\n */\n page: number;\n\n /**\n * Render the item.\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem?: (params: PaginationRenderItemParams) => React.ReactNode;\n\n /**\n * Determines design variations of the component.\n * @default 'dot'\n */\n variant?: PaginationVariant;\n}> {}\n"],"mappings":";;;;;;AAIO,MAAMA,gBAAgB,GAAG,CAAC,MAAD,EAAS,QAAT,CAAzB;;AAGA,MAAMC,kBAAkB,GAAG,CAAC,KAAD,EAAQ,QAAR,CAA3B"}
@@ -9,8 +9,22 @@ Object.defineProperty(exports, "default", {
9
9
  return _Pagination.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "paginationColors", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _PaginationProps.paginationColors;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "paginationVariants", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _PaginationProps.paginationVariants;
22
+ }
23
+ });
12
24
 
13
25
  var _Pagination = _interopRequireDefault(require("./Pagination"));
14
26
 
27
+ var _PaginationProps = require("./PaginationProps");
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 './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps, PaginationColor, PaginationVariant } from './PaginationProps';\nexport { paginationColors, paginationVariants } from './PaginationProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -9,41 +9,51 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _reactNative = require("react-native");
11
11
 
12
- var _styles = require("../styles");
12
+ var _styles = require("@fountain-ui/styles");
13
+
14
+ var _styles2 = require("../styles");
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
16
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); }
17
19
 
18
- const useStyles = function () {
19
- const theme = (0, _styles.useTheme)();
20
- const size = 6;
21
- return {
22
- root: {
23
- width: size,
24
- height: size,
25
- borderRadius: size * 0.5,
26
- marginHorizontal: theme.spacing(1)
27
- },
28
- selected: {
29
- backgroundColor: theme.palette.fill.base
30
- },
31
- unselected: {
32
- backgroundColor: theme.palette.status.disabled
33
- }
34
- };
35
- };
20
+ const DEFAULT_SIZE = 6;
21
+
22
+ const styles = _reactNative.StyleSheet.create({
23
+ root: {
24
+ width: DEFAULT_SIZE,
25
+ height: DEFAULT_SIZE,
26
+ borderRadius: DEFAULT_SIZE * 0.5,
27
+ marginHorizontal: 4
28
+ }
29
+ });
30
+
31
+ function getBackgroundColor(color, selected) {
32
+ const theme = (0, _styles2.useTheme)();
33
+
34
+ switch (color) {
35
+ case 'static':
36
+ return selected ? _styles.commonColors.static.strongInverse : _styles.commonColors.static.weakOpacityInverse;
37
+
38
+ case 'base':
39
+ default:
40
+ return selected ? theme.palette.fill.base : theme.palette.status.disabled;
41
+ }
42
+ }
36
43
 
37
44
  function PaginationItem(props) {
38
45
  const {
46
+ color = 'base',
39
47
  disabled,
40
- selected,
48
+ selected = false,
41
49
  style,
42
50
  ...otherProps
43
51
  } = props;
44
- const styles = useStyles();
52
+ const backgroundColor = getBackgroundColor(color, selected);
45
53
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
46
- style: (0, _styles.css)([styles.root, selected ? styles.selected : styles.unselected, style])
54
+ style: (0, _styles2.css)([styles.root, {
55
+ backgroundColor
56
+ }, style])
47
57
  }, otherProps));
48
58
  }
49
59
 
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","fill","base","unselected","status","disabled","PaginationItem","props","style","otherProps","styles","css","React","memo"],"sources":["PaginationItem.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.fill.base,\n },\n unselected: {\n backgroundColor: theme.palette.status.disabled,\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAA0C,GAAG,YAAkC;EACjF,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,IAAI,GAAG,CAAb;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAEF,IADL;MAEFG,MAAM,EAAEH,IAFN;MAGFI,YAAY,EAAEJ,IAAI,GAAG,GAHnB;MAIFK,gBAAgB,EAAEP,KAAK,CAACQ,OAAN,CAAc,CAAd;IAJhB,CADH;IAOHC,QAAQ,EAAE;MACNC,eAAe,EAAEV,KAAK,CAACW,OAAN,CAAcC,IAAd,CAAmBC;IAD9B,CAPP;IAUHC,UAAU,EAAE;MACRJ,eAAe,EAAEV,KAAK,CAACW,OAAN,CAAcI,MAAd,CAAqBC;IAD9B;EAVT,CAAP;AAcH,CAnBD;;AAqBA,SAASC,cAAT,CAAwBC,KAAxB,EAAoD;EAChD,MAAM;IACFF,QADE;IAEFP,QAFE;IAGFU,KAHE;IAIF,GAAGC;EAJD,IAKFF,KALJ;EAOA,MAAMG,MAAM,GAAGtB,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAuB,WAAA,EAAI,CACPD,MAAM,CAAClB,IADA,EAEPM,QAAQ,GAAGY,MAAM,CAACZ,QAAV,GAAqBY,MAAM,CAACP,UAF7B,EAGPK,KAHO,CAAJ;EADX,GAMQC,UANR,EADJ;AAUH;;4BAEcG,cAAA,CAAMC,IAAN,CAAWP,cAAX,C"}
1
+ {"version":3,"names":["DEFAULT_SIZE","styles","StyleSheet","create","root","width","height","borderRadius","marginHorizontal","getBackgroundColor","color","selected","theme","useTheme","commonColors","static","strongInverse","weakOpacityInverse","palette","fill","base","status","disabled","PaginationItem","props","style","otherProps","backgroundColor","css","React","memo"],"sources":["PaginationItem.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, View, ViewStyle } from 'react-native';\nimport { commonColors, NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { PaginationColor } from '../Pagination';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\nconst DEFAULT_SIZE = 6;\n\nconst styles = StyleSheet.create({\n root: {\n width: DEFAULT_SIZE,\n height: DEFAULT_SIZE,\n borderRadius: DEFAULT_SIZE * 0.5,\n marginHorizontal: 4,\n },\n});\n\nfunction getBackgroundColor(color: PaginationColor, selected: boolean): ViewStyle['backgroundColor'] {\n const theme = useTheme();\n\n switch (color) {\n case 'static':\n return selected\n ? commonColors.static.strongInverse\n : commonColors.static.weakOpacityInverse;\n case 'base':\n default:\n return selected\n ? theme.palette.fill.base\n : theme.palette.status.disabled;\n\n }\n}\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n color = 'base' as PaginationColor,\n disabled,\n selected = false,\n style,\n ...otherProps\n } = props;\n\n const backgroundColor = getBackgroundColor(color, selected);\n\n return (\n <View\n style={css([\n styles.root,\n { backgroundColor },\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;AAGA,MAAMA,YAAY,GAAG,CAArB;;AAEA,MAAMC,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC7BC,IAAI,EAAE;IACFC,KAAK,EAAEL,YADL;IAEFM,MAAM,EAAEN,YAFN;IAGFO,YAAY,EAAEP,YAAY,GAAG,GAH3B;IAIFQ,gBAAgB,EAAE;EAJhB;AADuB,CAAlB,CAAf;;AASA,SAASC,kBAAT,CAA4BC,KAA5B,EAAoDC,QAApD,EAAqG;EACjG,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;;EAEA,QAAQH,KAAR;IACI,KAAK,QAAL;MACI,OAAOC,QAAQ,GACTG,oBAAA,CAAaC,MAAb,CAAoBC,aADX,GAETF,oBAAA,CAAaC,MAAb,CAAoBE,kBAF1B;;IAGJ,KAAK,MAAL;IACA;MACI,OAAON,QAAQ,GACTC,KAAK,CAACM,OAAN,CAAcC,IAAd,CAAmBC,IADV,GAETR,KAAK,CAACM,OAAN,CAAcG,MAAd,CAAqBC,QAF3B;EAPR;AAYH;;AAED,SAASC,cAAT,CAAwBC,KAAxB,EAAoD;EAChD,MAAM;IACFd,KAAK,GAAG,MADN;IAEFY,QAFE;IAGFX,QAAQ,GAAG,KAHT;IAIFc,KAJE;IAKF,GAAGC;EALD,IAMFF,KANJ;EAQA,MAAMG,eAAe,GAAGlB,kBAAkB,CAACC,KAAD,EAAQC,QAAR,CAA1C;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAiB,YAAA,EAAI,CACP3B,MAAM,CAACG,IADA,EAEP;MAAEuB;IAAF,CAFO,EAGPF,KAHO,CAAJ;EADX,GAMQC,UANR,EADJ;AAUH;;4BAEcG,cAAA,CAAMC,IAAN,CAAWP,cAAX,C"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["PaginationItemProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {\n /**\n * If `true`, the pagination item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * If `true` the pagination item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["PaginationItemProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport { PaginationColor } from '../Pagination';\n\nexport default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {\n /**\n * Set color of dot.\n * @default 'base'\n */\n color?: PaginationColor;\n\n /**\n * If `true`, the pagination item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * If `true` the pagination item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}\n"],"mappings":""}
@@ -29,6 +29,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
29
29
 
30
30
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
31
 
32
+ const DEFAULT_START_ICON_SIZE = 21;
33
+
32
34
  const useStyles = function () {
33
35
  const theme = (0, _styles.useTheme)();
34
36
  return {
@@ -78,11 +80,13 @@ function Radio(props) {
78
80
  const checkedIcon = checkIconProp ?? defaultCheckedIcon;
79
81
  const icon = isChecked ? checkedIcon : null;
80
82
  const startIcon = (0, _utils.cloneElementSafely)(startIconProp, {
81
- color: 'strong'
83
+ color: 'strong',
84
+ height: DEFAULT_START_ICON_SIZE,
85
+ width: DEFAULT_START_ICON_SIZE
82
86
  });
83
87
  const rootStyle = (0, _styles.css)([styles.root, style]);
84
88
  const fontStyle = (0, _styles.createFontStyle)(theme, {
85
- // TODO: apply typo select.
89
+ selector: typography => typography.body1.regular,
86
90
  color: theme.palette.text.strong
87
91
  });
88
92
  return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","flexDirection","gap","spacing","justifyContent","content","minHeight","Radio","props","checked","children","checkedIcon","checkIconProp","disabled","onChange","onChangeProp","startIcon","startIconProp","style","value","otherProps","styles","context","useContext","RadioContext","handlePress","isChecked","defaultCheckedIcon","icon","cloneElementSafely","color","rootStyle","css","fontStyle","createFontStyle","palette","text","strong"],"sources":["Radio.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Check as CheckedIcon } from '../internal';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport { RadioContext } from '../RadioGroup/RadioContextProvider';\nimport type RadioProps from './RadioProps';\n\ntype RadioStyles = NamedStylesStringUnion<'root' | 'content'>;\n\nconst useStyles: UseStyles<RadioStyles> = function (): RadioStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n gap: theme.spacing(8),\n justifyContent: 'space-between',\n },\n content: {\n gap: theme.spacing(2),\n minHeight: 20,\n },\n };\n};\n\nexport default function Radio(props: RadioProps) {\n const {\n checked = false,\n children,\n checkedIcon: checkIconProp,\n disabled = false,\n onChange: onChangeProp,\n startIcon: startIconProp,\n style,\n value,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const context = useContext(RadioContext);\n\n const handlePress = () => {\n const onChange = context?.onChange ?? onChangeProp;\n if (onChange) {\n onChange(value);\n }\n };\n\n const isChecked = context?.value === value ?? checked;\n\n const defaultCheckedIcon = (\n <CheckedIcon color={'accent'}/>\n );\n\n const checkedIcon = checkIconProp ?? defaultCheckedIcon;\n const icon = isChecked ? checkedIcon : null;\n\n const startIcon = cloneElementSafely(startIconProp, { color: 'strong' });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n // TODO: apply typo select.\n color: theme.palette.text.strong,\n });\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <Row\n alignItems={'center'}\n style={styles.content}\n >\n {startIcon}\n\n <Text\n children={children}\n style={fontStyle}\n />\n </Row>\n\n {icon}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAKA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE,KAFb;MAGFC,GAAG,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CAHH;MAIFC,cAAc,EAAE;IAJd,CADH;IAOHC,OAAO,EAAE;MACLH,GAAG,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CADA;MAELG,SAAS,EAAE;IAFN;EAPN,CAAP;AAYH,CAfD;;AAiBe,SAASC,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,OAAO,GAAG,KADR;IAEFC,QAFE;IAGFC,WAAW,EAAEC,aAHX;IAIFC,QAAQ,GAAG,KAJT;IAKFC,QAAQ,EAAEC,YALR;IAMFC,SAAS,EAAEC,aANT;IAOFC,KAPE;IAQFC,KARE;IASF,GAAGC;EATD,IAUFZ,KAVJ;EAYA,MAAMX,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMuB,MAAM,GAAGzB,SAAS,EAAxB;EAEA,MAAM0B,OAAO,GAAG,IAAAC,iBAAA,EAAWC,kCAAX,CAAhB;;EAEA,MAAMC,WAAW,GAAG,MAAM;IACtB,MAAMX,QAAQ,GAAG,CAAAQ,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO,CAAER,QAAT,KAAqBC,YAAtC;;IACA,IAAID,QAAJ,EAAc;MACVA,QAAQ,CAACK,KAAD,CAAR;IACH;EACJ,CALD;;EAOA,MAAMO,SAAS,GAAG,CAAAJ,OAAO,SAAP,IAAAA,OAAO,WAAP,YAAAA,OAAO,CAAEH,KAAT,MAAmBA,KAAnB,IAA4BV,OAA9C;;EAEA,MAAMkB,kBAAkB,gBACpB,6BAAC,eAAD;IAAa,KAAK,EAAE;EAApB,EADJ;;EAIA,MAAMhB,WAAW,GAAGC,aAAa,IAAIe,kBAArC;EACA,MAAMC,IAAI,GAAGF,SAAS,GAAGf,WAAH,GAAiB,IAAvC;EAEA,MAAMK,SAAS,GAAG,IAAAa,yBAAA,EAAmBZ,aAAnB,EAAkC;IAAEa,KAAK,EAAE;EAAT,CAAlC,CAAlB;EAEA,MAAMC,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBX,MAAM,CAACtB,IADW,EAElBmB,KAFkB,CAAJ,CAAlB;EAKA,MAAMe,SAAS,GAAG,IAAAC,uBAAA,EAAgBrC,KAAhB,EAAuB;IACrC;IACAiC,KAAK,EAAEjC,KAAK,CAACsC,OAAN,CAAcC,IAAd,CAAmBC;EAFW,CAAvB,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAExB,QADd;IAEI,OAAO,EAAEY,WAFb;IAGI,KAAK,EAAEM;EAHX,GAIQX,UAJR,gBAMI,6BAAC,YAAD;IACI,UAAU,EAAE,QADhB;IAEI,KAAK,EAAEC,MAAM,CAAChB;EAFlB,GAIKW,SAJL,eAMI,6BAAC,iBAAD;IACI,QAAQ,EAAEN,QADd;IAEI,KAAK,EAAEuB;EAFX,EANJ,CANJ,EAkBKL,IAlBL,CADJ;AAsBH;;AAAA"}
1
+ {"version":3,"names":["DEFAULT_START_ICON_SIZE","useStyles","theme","useTheme","root","alignItems","flexDirection","gap","spacing","justifyContent","content","minHeight","Radio","props","checked","children","checkedIcon","checkIconProp","disabled","onChange","onChangeProp","startIcon","startIconProp","style","value","otherProps","styles","context","useContext","RadioContext","handlePress","isChecked","defaultCheckedIcon","icon","cloneElementSafely","color","height","width","rootStyle","css","fontStyle","createFontStyle","selector","typography","body1","regular","palette","text","strong"],"sources":["Radio.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Check as CheckedIcon } from '../internal';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport { RadioContext } from '../RadioGroup/RadioContextProvider';\nimport type RadioProps from './RadioProps';\n\nconst DEFAULT_START_ICON_SIZE = 21;\n\ntype RadioStyles = NamedStylesStringUnion<'root' | 'content'>;\n\nconst useStyles: UseStyles<RadioStyles> = function (): RadioStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n gap: theme.spacing(8),\n justifyContent: 'space-between',\n },\n content: {\n gap: theme.spacing(2),\n minHeight: 20,\n },\n };\n};\n\nexport default function Radio(props: RadioProps) {\n const {\n checked = false,\n children,\n checkedIcon: checkIconProp,\n disabled = false,\n onChange: onChangeProp,\n startIcon: startIconProp,\n style,\n value,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const context = useContext(RadioContext);\n\n const handlePress = () => {\n const onChange = context?.onChange ?? onChangeProp;\n if (onChange) {\n onChange(value);\n }\n };\n\n const isChecked = context?.value === value ?? checked;\n\n const defaultCheckedIcon = (\n <CheckedIcon color={'accent'}/>\n );\n\n const checkedIcon = checkIconProp ?? defaultCheckedIcon;\n const icon = isChecked ? checkedIcon : null;\n\n const startIcon = cloneElementSafely(startIconProp, {\n color: 'strong',\n height: DEFAULT_START_ICON_SIZE,\n width: DEFAULT_START_ICON_SIZE,\n });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typography) => typography.body1.regular,\n color: theme.palette.text.strong,\n });\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <Row\n alignItems={'center'}\n style={styles.content}\n >\n {startIcon}\n\n <Text\n children={children}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EH,KAAT,MAAmBA,KAAnB,IAA4BV,OAA9C;;EAEA,MAAMkB,kBAAkB,gBACpB,6BAAC,eAAD;IAAa,KAAK,EAAE;EAApB,EADJ;;EAIA,MAAMhB,WAAW,GAAGC,aAAa,IAAIe,kBAArC;EACA,MAAMC,IAAI,GAAGF,SAAS,GAAGf,WAAH,GAAiB,IAAvC;EAEA,MAAMK,SAAS,GAAG,IAAAa,yBAAA,EAAmBZ,aAAnB,EAAkC;IAChDa,KAAK,EAAE,QADyC;IAEhDC,MAAM,EAAEpC,uBAFwC;IAGhDqC,KAAK,EAAErC;EAHyC,CAAlC,CAAlB;EAMA,MAAMsC,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBb,MAAM,CAACtB,IADW,EAElBmB,KAFkB,CAAJ,CAAlB;EAKA,MAAMiB,SAAS,GAAG,IAAAC,uBAAA,EAAgBvC,KAAhB,EAAuB;IACrCwC,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,KAAX,CAAiBC,OADN;IAErCV,KAAK,EAAEjC,KAAK,CAAC4C,OAAN,CAAcC,IAAd,CAAmBC;EAFW,CAAvB,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAE9B,QADd;IAEI,OAAO,EAAEY,WAFb;IAGI,KAAK,EAAEQ;EAHX,GAIQb,UAJR,gBAMI,6BAAC,YAAD;IACI,UAAU,EAAE,QADhB;IAEI,KAAK,EAAEC,MAAM,CAAChB;EAFlB,GAIKW,SAJL,eAMI,6BAAC,iBAAD;IACI,QAAQ,EAAEN,QADd;IAEI,KAAK,EAAEyB;EAFX,EANJ,CANJ,EAkBKP,IAlBL,CADJ;AAsBH;;AAAA"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Section;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _hooks = require("../hooks");
13
+
14
+ var _styles = require("../styles");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function Section(props) {
19
+ const {
20
+ children,
21
+ maxWidth,
22
+ style: styleProp
23
+ } = props;
24
+ const styles = (0, _hooks.useContentContainerStyle)({
25
+ maxWidth
26
+ });
27
+ const rootStyle = (0, _styles.css)([styles, styleProp]);
28
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
29
+ style: rootStyle
30
+ }, children);
31
+ }
32
+ //# sourceMappingURL=Section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Section","props","children","maxWidth","style","styleProp","styles","useContentContainerStyle","rootStyle","css"],"sources":["Section.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { useContentContainerStyle } from '../hooks';\nimport { css } from '../styles';\nimport type SectionProps from './SectionProps';\n\nexport default function Section(props: SectionProps) {\n const {\n children,\n maxWidth,\n style: styleProp,\n } = props;\n\n const styles = useContentContainerStyle({ maxWidth });\n\n const rootStyle = css([\n styles,\n styleProp,\n ]);\n\n return (\n <View style={rootStyle}>\n {children}\n </View>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AAGe,SAASA,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,QADE;IAEFC,QAFE;IAGFC,KAAK,EAAEC;EAHL,IAIFJ,KAJJ;EAMA,MAAMK,MAAM,GAAG,IAAAC,+BAAA,EAAyB;IAAEJ;EAAF,CAAzB,CAAf;EAEA,MAAMK,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBH,MADkB,EAElBD,SAFkB,CAAJ,CAAlB;EAKA,oBACI,6BAAC,iBAAD;IAAM,KAAK,EAAEG;EAAb,GACKN,QADL,CADJ;AAKH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=SectionProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["SectionProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface SectionProps extends OverridableComponentProps<ViewProps, {\n maxWidth?: number;\n}> {}\n"],"mappings":""}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Section.default;
10
+ }
11
+ });
12
+
13
+ var _Section = _interopRequireDefault(require("./Section"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Section';\nexport type { default as SectionProps } from './SectionProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -29,6 +29,8 @@ function ShadowView(props) {
29
29
  const {
30
30
  borderRadius,
31
31
  height,
32
+ maxHeight,
33
+ maxWidth,
32
34
  width
33
35
  } = styleProp;
34
36
  return nativeShadows.reduce((accumulator, nativeShadow) => {
@@ -37,6 +39,8 @@ function ShadowView(props) {
37
39
  }, {
38
40
  borderRadius: borderRadius ?? 0,
39
41
  height,
42
+ maxHeight,
43
+ maxWidth,
40
44
  width
41
45
  }])
42
46
  }, accumulator);
@@ -1 +1 @@
1
- {"version":3,"names":["ShadowView","props","children","style","styleProp","variant","otherProps","theme","useTheme","nativeShadows","shadow","borderRadius","height","width","reduce","accumulator","nativeShadow","css"],"sources":["ShadowView.native.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport type { FountainUiStyle, ShadowVariant } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ShadowViewProps from './ShadowViewProps';\n\nexport default function ShadowView(props: ShadowViewProps) {\n const {\n children,\n style: styleProp = {},\n variant = 100 as ShadowVariant,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const { nativeShadows } = theme.shadow[variant];\n\n const {\n borderRadius,\n height,\n width,\n } = styleProp as FountainUiStyle;\n\n return nativeShadows.reduce((accumulator, nativeShadow) => {\n return (\n <View\n style={css([\n { ...nativeShadow },\n {\n borderRadius: borderRadius ?? 0,\n height,\n width,\n },\n ])}\n >\n {accumulator}\n </View>\n );\n }, (\n <View\n style={styleProp}\n {...otherProps}\n >\n {children}\n </View>\n ));\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAGe,SAASA,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAAS,GAAG,EAFjB;IAGFC,OAAO,GAAG,GAHR;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMM,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAM;IAAEC;EAAF,IAAoBF,KAAK,CAACG,MAAN,CAAaL,OAAb,CAA1B;EAEA,MAAM;IACFM,YADE;IAEFC,MAFE;IAGFC;EAHE,IAIFT,SAJJ;EAMA,OAAOK,aAAa,CAACK,MAAd,CAAqB,CAACC,WAAD,EAAcC,YAAd,KAA+B;IACvD,oBACI,6BAAC,iBAAD;MACI,KAAK,EAAE,IAAAC,WAAA,EAAI,CACP,EAAE,GAAGD;MAAL,CADO,EAEP;QACIL,YAAY,EAAEA,YAAY,IAAI,CADlC;QAEIC,MAFJ;QAGIC;MAHJ,CAFO,CAAJ;IADX,GAUKE,WAVL,CADJ;EAcH,CAfM,eAgBH,6BAAC,iBAAD;IACI,KAAK,EAAEX;EADX,GAEQE,UAFR,GAIKJ,QAJL,CAhBG,CAAP;AAuBH"}
1
+ {"version":3,"names":["ShadowView","props","children","style","styleProp","variant","otherProps","theme","useTheme","nativeShadows","shadow","borderRadius","height","maxHeight","maxWidth","width","reduce","accumulator","nativeShadow","css"],"sources":["ShadowView.native.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport type { FountainUiStyle, ShadowVariant } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ShadowViewProps from './ShadowViewProps';\n\nexport default function ShadowView(props: ShadowViewProps) {\n const {\n children,\n style: styleProp = {},\n variant = 100 as ShadowVariant,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const { nativeShadows } = theme.shadow[variant];\n\n const {\n borderRadius,\n height,\n maxHeight,\n maxWidth,\n width,\n } = styleProp as FountainUiStyle;\n\n return nativeShadows.reduce((accumulator, nativeShadow) => {\n return (\n <View\n style={css([\n { ...nativeShadow },\n {\n borderRadius: borderRadius ?? 0,\n height,\n maxHeight,\n maxWidth,\n width,\n },\n ])}\n >\n {accumulator}\n </View>\n );\n }, (\n <View\n style={styleProp}\n {...otherProps}\n >\n {children}\n </View>\n ));\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAGe,SAASA,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAAS,GAAG,EAFjB;IAGFC,OAAO,GAAG,GAHR;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMM,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAM;IAAEC;EAAF,IAAoBF,KAAK,CAACG,MAAN,CAAaL,OAAb,CAA1B;EAEA,MAAM;IACFM,YADE;IAEFC,MAFE;IAGFC,SAHE;IAIFC,QAJE;IAKFC;EALE,IAMFX,SANJ;EAQA,OAAOK,aAAa,CAACO,MAAd,CAAqB,CAACC,WAAD,EAAcC,YAAd,KAA+B;IACvD,oBACI,6BAAC,iBAAD;MACI,KAAK,EAAE,IAAAC,WAAA,EAAI,CACP,EAAE,GAAGD;MAAL,CADO,EAEP;QACIP,YAAY,EAAEA,YAAY,IAAI,CADlC;QAEIC,MAFJ;QAGIC,SAHJ;QAIIC,QAJJ;QAKIC;MALJ,CAFO,CAAJ;IADX,GAYKE,WAZL,CADJ;EAgBH,CAjBM,eAkBH,6BAAC,iBAAD;IACI,KAAK,EAAEb;EADX,GAEQE,UAFR,GAIKJ,QAJL,CAlBG,CAAP;AAyBH"}
@@ -9,8 +9,16 @@ Object.defineProperty(exports, "default", {
9
9
  return _Snackbar.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "snackbarStatus", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _SnackbarProps.snackbarStatus;
16
+ }
17
+ });
12
18
 
13
19
  var _Snackbar = _interopRequireDefault(require("./Snackbar"));
14
20
 
21
+ var _SnackbarProps = require("./SnackbarProps");
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 './Snackbar';\nexport type { default as SnackbarProps } from './SnackbarProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Snackbar';\nexport type { default as SnackbarProps } from './SnackbarProps';\nexport { snackbarStatus } from './SnackbarProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -43,6 +43,14 @@ const useStyles = function () {
43
43
  },
44
44
  actionButton: {
45
45
  marginLeft: theme.spacing(6)
46
+ },
47
+ actionLabel: {
48
+ paddingBottom: theme.spacing(1.5),
49
+ paddingTop: theme.spacing(1.25)
50
+ },
51
+ actionElement: {
52
+ paddingLeft: theme.spacing(2),
53
+ paddingVertical: theme.spacing(1.25)
46
54
  }
47
55
  };
48
56
  };
@@ -62,18 +70,23 @@ function SnackbarContent(props) {
62
70
  const theme = (0, _styles2.useTheme)();
63
71
  const titleFontStyle = (0, _styles2.createFontStyle)(theme, {
64
72
  selector: _ => (0, _styles.typographyOf)({
65
- fontSize: 14,
66
- lineHeight: 18.2,
67
- fontFamily: 'Pretendard-SemiBold',
73
+ fontSize: 15,
74
+ lineHeight: 19.5,
75
+ fontFamily: 'PretendardStd-SemiBold',
68
76
  letterSpacing: 0
69
77
  }),
70
78
  color: theme.palette.text.strongInverse
71
79
  });
72
80
  const messageFontStyle = (0, _styles2.createFontStyle)(theme, {
73
- selector: _ => (0, _styles.typographyOf)({
74
- fontSize: 13,
75
- lineHeight: 16.9,
76
- fontFamily: 'Pretendard-Regular',
81
+ selector: _ => title ? (0, _styles.typographyOf)({
82
+ fontSize: 12,
83
+ lineHeight: 15.6,
84
+ fontFamily: 'PretendardStd-Regular',
85
+ letterSpacing: 0
86
+ }) : (0, _styles.typographyOf)({
87
+ fontSize: 14,
88
+ lineHeight: 18.2,
89
+ fontFamily: 'PretendardStd-Regular',
77
90
  letterSpacing: 0
78
91
  }),
79
92
  color: theme.palette.text.strongInverse
@@ -85,9 +98,7 @@ function SnackbarContent(props) {
85
98
  fontFamily: 'LexendDeca-SemiBold',
86
99
  letterSpacing: -0.26
87
100
  }),
88
- color: '#0BCC99' // TODO: change color.
89
- // color: theme.palette.text.accent,
90
-
101
+ color: theme.palette.text.accent
91
102
  });
92
103
  const hasActionButton = !!(actionContent && onPress);
93
104
  const rootStyle = (0, _styles2.css)([styles.root, startIcon ? {
@@ -115,10 +126,14 @@ function SnackbarContent(props) {
115
126
  flex: 1
116
127
  }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
117
128
  style: styles.actionButton
118
- }, typeof actionContent === 'string' ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
129
+ }, typeof actionContent === 'string' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
130
+ style: styles.actionLabel
131
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
119
132
  children: actionContent,
120
133
  style: labelFontStyle
121
- }) : actionContent)) : null);
134
+ })) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
135
+ style: styles.actionElement
136
+ }, actionContent))) : null);
122
137
  }
123
138
 
124
139
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","flexDirection","alignItems","alignSelf","backgroundColor","palette","surface","accent","borderRadius","maxWidth","paddingBottom","spacing","paddingHorizontal","paddingTop","actionButton","marginLeft","SnackbarContent","props","actionContent","message","title","onPress","style","styleProp","status","startIcon","otherProps","styles","titleFontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","strongInverse","messageFontStyle","labelFontStyle","hasActionButton","rootStyle","css","shape","radius","xl","undefined","width"],"sources":["SnackbarContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { typographyOf } from '@fountain-ui/styles';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport ButtonBase from '../ButtonBase/ButtonBase';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport Typography from '../Typography';\nimport type SnackbarContentProps from './SnackbarContentProps';\nimport StatusIcon from './StatusIcon';\n\ntype SnackBarContentStyles = NamedStylesStringUnion<'root' | 'actionButton'>;\n\nconst useStyles: UseStyles<SnackBarContentStyles> = function (): SnackBarContentStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n alignItems: 'center',\n alignSelf: 'center',\n backgroundColor: theme.palette.surface.accent,\n borderRadius: 22,\n maxWidth: 400,\n paddingBottom: theme.spacing(2.25),\n paddingHorizontal: theme.spacing(4),\n paddingTop: theme.spacing(2),\n },\n actionButton: {\n marginLeft: theme.spacing(6),\n },\n };\n};\n\nexport default function SnackbarContent(props: SnackbarContentProps) {\n const {\n actionContent,\n message,\n title,\n onPress,\n style: styleProp,\n status = 'info',\n startIcon,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 18.2,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strongInverse,\n });\n\n const messageFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 13,\n lineHeight: 16.9,\n fontFamily: 'Pretendard-Regular',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strongInverse,\n });\n\n const labelFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 13,\n lineHeight: 16.25,\n fontFamily: 'LexendDeca-SemiBold',\n letterSpacing: -0.26,\n }),\n color: '#0BCC99',\n // TODO: change color.\n // color: theme.palette.text.accent,\n });\n\n const hasActionButton = !!(actionContent && onPress);\n\n const rootStyle = css([\n styles.root,\n startIcon ? { borderRadius: theme.shape.radius.xl } : undefined,\n hasActionButton ? { width: '100%' } : undefined,\n styleProp,\n ]);\n\n return (\n <ButtonBase\n disabled={!onPress}\n onPress={onPress}\n style={rootStyle}\n {...otherProps}\n >\n {startIcon ? (\n <React.Fragment>\n {startIcon}\n\n <Spacer size={3}/>\n </React.Fragment>\n ) : status !== 'info' ? (\n <React.Fragment>\n <StatusIcon status={status}/>\n\n <Spacer size={1.5}/>\n </React.Fragment>\n ) : null}\n\n <Column>\n {title ? (\n <Typography\n children={title}\n style={css([titleFontStyle])}\n />\n ) : null}\n\n <Text\n children={message}\n style={css([messageFontStyle])}\n />\n </Column>\n\n {actionContent ? (\n <React.Fragment>\n <Spacer flex={1}/>\n\n <View style={styles.actionButton}>\n {typeof actionContent === 'string' ? (\n <Text\n children={actionContent}\n style={labelFontStyle}\n />\n ) : (actionContent)}\n </View>\n </React.Fragment>\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAIA,MAAMA,SAA2C,GAAG,YAAmC;EACnF,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,UAAU,EAAE,QAFV;MAGFC,SAAS,EAAE,QAHT;MAIFC,eAAe,EAAEN,KAAK,CAACO,OAAN,CAAcC,OAAd,CAAsBC,MAJrC;MAKFC,YAAY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EAFX,EADE,GAKF,IANR,eAQI,6BAAC,iBAAD;IACI,QAAQ,EAAET,OADd;IAEI,KAAK,EAAE,IAAAyB,YAAA,EAAI,CAACJ,gBAAD,CAAJ;EAFX,EARJ,CApBJ,EAkCKtB,aAAa,gBACV,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,6BAAC,iBAAD;IAAM,KAAK,EAAES,MAAM,CAACb;EAApB,GACK,OAAOI,aAAP,KAAyB,QAAzB,gBACG,6BAAC,iBAAD;IACI,QAAQ,EAAEA,aADd;IAEI,KAAK,EAAEuB;EAFX,EADH,GAKIvB,aANT,CAHJ,CADU,GAaV,IA/CR,CADJ;AAmDH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","flexDirection","alignItems","alignSelf","backgroundColor","palette","surface","accent","borderRadius","maxWidth","paddingBottom","spacing","paddingHorizontal","paddingTop","actionButton","marginLeft","actionLabel","actionElement","paddingLeft","paddingVertical","SnackbarContent","props","actionContent","message","title","onPress","style","styleProp","status","startIcon","otherProps","styles","titleFontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","strongInverse","messageFontStyle","labelFontStyle","hasActionButton","rootStyle","css","shape","radius","xl","undefined","width"],"sources":["SnackbarContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { typographyOf } from '@fountain-ui/styles';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport ButtonBase from '../ButtonBase/ButtonBase';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport Typography from '../Typography';\nimport type SnackbarContentProps from './SnackbarContentProps';\nimport StatusIcon from './StatusIcon';\n\ntype SnackBarContentStyles = NamedStylesStringUnion<'root' | 'actionButton' | 'actionLabel' | 'actionElement'>;\n\nconst useStyles: UseStyles<SnackBarContentStyles> = function (): SnackBarContentStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n alignItems: 'center',\n alignSelf: 'center',\n backgroundColor: theme.palette.surface.accent,\n borderRadius: 22,\n maxWidth: 400,\n paddingBottom: theme.spacing(2.25),\n paddingHorizontal: theme.spacing(4),\n paddingTop: theme.spacing(2),\n },\n actionButton: {\n marginLeft: theme.spacing(6),\n },\n actionLabel: {\n paddingBottom: theme.spacing(1.5),\n paddingTop: theme.spacing(1.25),\n },\n actionElement: {\n paddingLeft: theme.spacing(2),\n paddingVertical: theme.spacing(1.25),\n },\n };\n};\n\nexport default function SnackbarContent(props: SnackbarContentProps) {\n const {\n actionContent,\n message,\n title,\n onPress,\n style: styleProp,\n status = 'info',\n startIcon,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 15,\n lineHeight: 19.5,\n fontFamily: 'PretendardStd-SemiBold',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strongInverse,\n });\n\n const messageFontStyle = createFontStyle(theme, {\n selector: (_) => title\n ? typographyOf({\n fontSize: 12,\n lineHeight: 15.6,\n fontFamily: 'PretendardStd-Regular',\n letterSpacing: 0,\n })\n : typographyOf({\n fontSize: 14,\n lineHeight: 18.2,\n fontFamily: 'PretendardStd-Regular',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strongInverse,\n });\n\n const labelFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 13,\n lineHeight: 16.25,\n fontFamily: 'LexendDeca-SemiBold',\n letterSpacing: -0.26,\n }),\n color: theme.palette.text.accent,\n });\n\n const hasActionButton = !!(actionContent && onPress);\n\n const rootStyle = css([\n styles.root,\n startIcon ? { borderRadius: theme.shape.radius.xl } : undefined,\n hasActionButton ? { width: '100%' } : undefined,\n styleProp,\n ]);\n\n return (\n <ButtonBase\n disabled={!onPress}\n onPress={onPress}\n style={rootStyle}\n {...otherProps}\n >\n {startIcon ? (\n <React.Fragment>\n {startIcon}\n\n <Spacer size={3}/>\n </React.Fragment>\n ) : status !== 'info' ? (\n <React.Fragment>\n <StatusIcon status={status}/>\n\n <Spacer size={1.5}/>\n </React.Fragment>\n ) : null}\n\n <Column>\n {title ? (\n <Typography\n children={title}\n style={css([titleFontStyle])}\n />\n ) : null}\n\n <Text\n children={message}\n style={css([messageFontStyle])}\n />\n </Column>\n\n {actionContent ? (\n <React.Fragment>\n <Spacer flex={1}/>\n\n <View style={styles.actionButton}>\n {typeof actionContent === 'string' ? (\n <View style={styles.actionLabel}>\n <Text\n children={actionContent}\n style={labelFontStyle}\n />\n </View>\n ) : (\n <View style={styles.actionElement}>\n {actionContent}\n </View>\n )}\n </View>\n </React.Fragment>\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAIA,MAAMA,SAA2C,GAAG,YAAmC;EACnF,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,UAAU,EAAE,QAFV;MAGFC,SAAS,EAAE,QAHT;MAIFC,eAAe,EAAEN,KAAK,CAACO,OAAN,CAAcC,OAAd,CAAsBC,MAJrC;MAKFC,YAAY,EAAE,EALZ;MAMFC,QAAQ,EAAE,GANR;MAOFC,aAAa,EAAEZ,KAAK,CAACa,OAAN,CAAc,IAAd,CAPb;MAQFC,iBAAiB,EAAEd,KAAK,CAACa,OAAN,CAAc,CAAd,CARjB;MASFE,UAAU,EAAEf,KAAK,CAACa,OAAN,CAAc,CAAd;IATV,CADH;IAYHG,YAAY,EAAE;MACVC,UAAU,EAAEjB,KAAK,CAACa,OAAN,CAAc,CAAd;IADF,CAZX;IAeHK,WAAW,EAAE;MACTN,aAAa,EAAEZ,KAAK,CAACa,OAAN,CAAc,GAAd,CADN;MAETE,UAAU,EAAEf,KAA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d;IAEI,KAAK,EAAE,IAAAwB,YAAA,EAAI,CAAChB,cAAD,CAAJ;EAFX,EADE,GAKF,IANR,eAQI,6BAAC,iBAAD;IACI,QAAQ,EAAET,OADd;IAEI,KAAK,EAAE,IAAAyB,YAAA,EAAI,CAACJ,gBAAD,CAAJ;EAFX,EARJ,CApBJ,EAkCKtB,aAAa,gBACV,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,eAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,6BAAC,iBAAD;IAAM,KAAK,EAAES,MAAM,CAACjB;EAApB,GACK,OAAOQ,aAAP,KAAyB,QAAzB,gBACG,6BAAC,iBAAD;IAAM,KAAK,EAAES,MAAM,CAACf;EAApB,gBACI,6BAAC,iBAAD;IACI,QAAQ,EAAEM,aADd;IAEI,KAAK,EAAEuB;EAFX,EADJ,CADH,gBAQG,6BAAC,iBAAD;IAAM,KAAK,EAAEd,MAAM,CAACd;EAApB,GACKK,aADL,CATR,CAHJ,CADU,GAmBV,IArDR,CADJ;AAyDH;;AAAA"}
@@ -9,8 +9,22 @@ Object.defineProperty(exports, "default", {
9
9
  return _SvgIcon.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "svgIconColors", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _SvgIconProps.svgIconColors;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "svgIconSizes", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _SvgIconProps.svgIconSizes;
22
+ }
23
+ });
12
24
 
13
25
  var _SvgIcon = _interopRequireDefault(require("./SvgIcon"));
14
26
 
27
+ var _SvgIconProps = require("./SvgIconProps");
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 './SvgIcon';\nexport type { default as SvgIconProps } from './SvgIconProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './SvgIcon';\nexport type { default as SvgIconProps } from './SvgIconProps';\nexport { svgIconColors, svgIconSizes } from './SvgIconProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -31,7 +31,7 @@ function useVariantStyleMap(variant, selected) {
31
31
  selector: _ => (0, _styles.typographyOf)({
32
32
  fontSize: 14,
33
33
  lineHeight: 18.2,
34
- fontFamily: 'Pretendard-SemiBold',
34
+ fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',
35
35
  letterSpacing: 0
36
36
  }),
37
37
  color: selected ? theme.palette.text.strongInverse : theme.palette.text.strong
@@ -51,7 +51,7 @@ function useVariantStyleMap(variant, selected) {
51
51
  selector: _ => (0, _styles.typographyOf)({
52
52
  fontSize: 10,
53
53
  lineHeight: 10,
54
- fontFamily: 'Pretendard-Medium',
54
+ fontFamily: 'PretendardStd-Medium',
55
55
  letterSpacing: -0.1
56
56
  }),
57
57
  color: selected ? theme.palette.text.strong : theme.palette.text.base
@@ -68,7 +68,7 @@ function useVariantStyleMap(variant, selected) {
68
68
  selector: _ => (0, _styles.typographyOf)({
69
69
  fontSize: 15,
70
70
  lineHeight: 18.75,
71
- fontFamily: 'Pretendard-SemiBold',
71
+ fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',
72
72
  letterSpacing: 0
73
73
  }),
74
74
  color: selected ? theme.palette.text.strong : theme.palette.text.base
@@ -1 +1 @@
1
- {"version":3,"names":["useVariantStyleMap","variant","selected","theme","useTheme","useMemo","container","paddingHorizontal","spacing","paddingVertical","inner","backgroundColor","palette","fill","base","weaker","borderRadius","shape","radius","full","label","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","strongInverse","strong","alignItems","height","justifyContent","paddingTop","width","padding"],"sources":["useVariantStyleMap.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { TextStyle } from 'react-native';\nimport type { FountainUiStyle } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport { createFontStyle, useTheme } from '../styles';\nimport type { TabVariant } from './TabProps';\n\ninterface VariantStyle {\n container: FountainUiStyle;\n inner?: FountainUiStyle;\n label: TextStyle;\n}\n\nexport default function useVariantStyleMap(variant: TabVariant, selected: boolean): VariantStyle {\n const theme = useTheme();\n\n return useMemo<VariantStyle>(() => {\n switch (variant) {\n case 'circular':\n return {\n container: {\n paddingHorizontal: theme.spacing(0.75),\n paddingVertical: theme.spacing(1),\n },\n inner: {\n backgroundColor: selected\n ? theme.palette.fill.base\n : theme.palette.fill.weaker,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(1.75),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 18.2,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strongInverse\n : theme.palette.text.strong,\n }),\n };\n case 'bottom-navigation':\n return {\n container: {\n alignItems: 'center',\n height: 49,\n justifyContent: 'flex-start',\n paddingTop: theme.spacing(2.625),\n width: 48,\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 10,\n lineHeight: 10,\n fontFamily: 'Pretendard-Medium',\n letterSpacing: -0.1,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n case 'default':\n default:\n return {\n container: {\n padding: theme.spacing(2.5),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 15,\n lineHeight: 18.75,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n }\n }, [theme, variant, selected]);\n}\n"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AASe,SAASA,kBAAT,CAA4BC,OAA5B,EAAiDC,QAA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QHjB,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,EAFc;cAG1BC,UAAU,EAAE,mBAHc;cAI1BC,aAAa,EAAE,CAAC;YAJU,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QARJ,CAAP;;MAoBJ,KAAK,SAAL;MACA;QACI,OAAO;UACHR,SAAS,EAAE;YACPgC,OAAO,EAAEnC,KAAK,CAACK,OAAN,CAAc,GAAd;UADF,CADR;UAIHY,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,KAFc;cAG1BC,UAAU,EAAE,qBAHc;cAI1BC,aAAa,EAAE;YAJW,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QAJJ,CAAP;IAlDR;EAmEH,CApEM,EAoEJ,CAACX,KAAD,EAAQF,OAAR,EAAiBC,QAAjB,CApEI,CAAP;AAqEH"}
1
+ {"version":3,"names":["useVariantStyleMap","variant","selected","theme","useTheme","useMemo","container","paddingHorizontal","spacing","paddingVertical","inner","backgroundColor","palette","fill","base","weaker","borderRadius","shape","radius","full","label","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","strongInverse","strong","alignItems","height","justifyContent","paddingTop","width","padding"],"sources":["useVariantStyleMap.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { TextStyle } from 'react-native';\nimport type { FountainUiStyle } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport { createFontStyle, useTheme } from '../styles';\nimport type { TabVariant } from './TabProps';\n\ninterface VariantStyle {\n container: FountainUiStyle;\n inner?: FountainUiStyle;\n label: TextStyle;\n}\n\nexport default function useVariantStyleMap(variant: TabVariant, selected: boolean): VariantStyle {\n const theme = useTheme();\n\n return useMemo<VariantStyle>(() => {\n switch (variant) {\n case 'circular':\n return {\n container: {\n paddingHorizontal: theme.spacing(0.75),\n paddingVertical: theme.spacing(1),\n },\n inner: {\n backgroundColor: selected\n ? theme.palette.fill.base\n : theme.palette.fill.weaker,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(1.75),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 18.2,\n fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strongInverse\n : theme.palette.text.strong,\n }),\n };\n case 'bottom-navigation':\n return {\n container: {\n alignItems: 'center',\n height: 49,\n justifyContent: 'flex-start',\n paddingTop: theme.spacing(2.625),\n width: 48,\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 10,\n lineHeight: 10,\n fontFamily: 'PretendardStd-Medium',\n letterSpacing: -0.1,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n case 'default':\n default:\n return {\n container: {\n padding: theme.spacing(2.5),\n },\n label: createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 15,\n lineHeight: 18.75,\n fontFamily: selected ? 'PretendardStd-SemiBold' : 'PretendardStd-Medium',\n letterSpacing: 0,\n }),\n color: selected\n ? theme.palette.text.strong\n : theme.palette.text.base,\n }),\n };\n }\n }, [theme, variant, selected]);\n}\n"],"mappings":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AAc,EAAE,YAHT;YAIPC,UAAU,EAAEjC,KAAK,CAACK,OAAN,CAAc,KAAd,CAJL;YAKP6B,KAAK,EAAE;UALA,CADR;UAQHjB,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,EAFc;cAG1BC,UAAU,EAAE,sBAHc;cAI1BC,aAAa,EAAE,CAAC;YAJU,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QARJ,CAAP;;MAoBJ,KAAK,SAAL;MACA;QACI,OAAO;UACHR,SAAS,EAAE;YACPgC,OAAO,EAAEnC,KAAK,CAACK,OAAN,CAAc,GAAd;UADF,CADR;UAIHY,KAAK,EAAE,IAAAC,wBAAA,EAAgBlB,KAAhB,EAAuB;YAC1BmB,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;cAC1BC,QAAQ,EAAE,EADgB;cAE1BC,UAAU,EAAE,KAFc;cAG1BC,UAAU,EAAEzB,QAAQ,GAAG,wBAAH,GAA8B,sBAHxB;cAI1B0B,aAAa,EAAE;YAJW,CAAb,CADS;YAO1BC,KAAK,EAAE3B,QAAQ,GACTC,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBE,MADV,GAET7B,KAAK,CAACS,OAAN,CAAckB,IAAd,CAAmBhB;UATC,CAAvB;QAJJ,CAAP;IAlDR;EAmEH,CApEM,EAoEJ,CAACX,KAAD,EAAQF,OAAR,EAAiBC,QAAjB,CApEI,CAAP;AAqEH"}
@@ -29,6 +29,8 @@ var _InternalContext = _interopRequireDefault(require("./InternalContext"));
29
29
 
30
30
  var _utils = require("./utils");
31
31
 
32
+ var _useTabsStyle = _interopRequireDefault(require("./useTabsStyle"));
33
+
32
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
35
 
34
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -81,6 +83,9 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)(function Tabs(props, ref) {
81
83
  const sharedIndex = UNSTABLE_sharedIndex ?? fallbackSharedIndex;
82
84
  const realInitialIndex = sharedIndex.initialValue;
83
85
  const currentIndexRef = (0, _react.useRef)(initialIndex);
86
+ const {
87
+ container: containerStyle
88
+ } = (0, _useTabsStyle.default)(variant);
84
89
 
85
90
  const setTab = newIndex => {
86
91
  const currentIndex = currentIndexRef.current;
@@ -195,7 +200,7 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)(function Tabs(props, ref) {
195
200
  indexStore
196
201
  }
197
202
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
198
- style: (0, _styles.css)([styles.root, {
203
+ style: (0, _styles.css)([styles.root, containerStyle, {
199
204
  backgroundColor: backgroundColorMap[color]
200
205
  }, showDivider ? styles.bottomDivider : undefined, scrollable ? undefined : styles.fixedRoot, style])
201
206
  }, scrollable ? /*#__PURE__*/_react.default.createElement(_ScrollableTabsView.default, {