@fountain-ui/core 3.0.0-alpha.3 → 3.0.0-alpha.30

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 (476) hide show
  1. package/build/commonjs/Accordion/Accordion.js +15 -8
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
  4. package/build/commonjs/Accordion/useVariantStyleMap.js +15 -8
  5. package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
  6. package/build/commonjs/AppBar/AppBar.js +7 -2
  7. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  8. package/build/commonjs/Badge/Badge.js +4 -3
  9. package/build/commonjs/Badge/Badge.js.map +1 -1
  10. package/build/commonjs/Badge/BadgeProps.js.map +1 -1
  11. package/build/commonjs/Badge/useVariantStyleMap.js +2 -2
  12. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  13. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +5 -2
  14. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  15. package/build/commonjs/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
  16. package/build/commonjs/Button/Button.js +26 -12
  17. package/build/commonjs/Button/Button.js.map +1 -1
  18. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  19. package/build/commonjs/ButtonBase/ButtonBase.js +1 -1
  20. package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
  21. package/build/commonjs/ButtonBase/index.js +2 -2
  22. package/build/commonjs/ButtonBase/index.js.map +1 -1
  23. package/build/commonjs/Checkbox/Checkbox.js +4 -1
  24. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  25. package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
  26. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  27. package/build/commonjs/Chip/Chip.js +25 -14
  28. package/build/commonjs/Chip/Chip.js.map +1 -1
  29. package/build/commonjs/Chip/ChipProps.js +3 -1
  30. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  31. package/build/commonjs/Chip/index.js +6 -0
  32. package/build/commonjs/Chip/index.js.map +1 -1
  33. package/build/commonjs/Chip/useChipStyle.js +51 -31
  34. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  35. package/build/commonjs/Dialog/Dialog.js +10 -12
  36. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  37. package/build/commonjs/Dialog/DialogProps.js +1 -1
  38. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  39. package/build/commonjs/Dialog/useDialogSectionStyle.js +6 -4
  40. package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
  41. package/build/commonjs/Dialog/useDialogStyle.js +19 -8
  42. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
  43. package/build/commonjs/DialogActions/DialogActions.js +0 -1
  44. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  45. package/build/commonjs/DialogTitle/DialogLargeTitle.js +80 -0
  46. package/build/commonjs/DialogTitle/DialogLargeTitle.js.map +1 -0
  47. package/build/commonjs/DialogTitle/DialogTitle.js +8 -4
  48. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  49. package/build/commonjs/Divider/Divider.js +17 -9
  50. package/build/commonjs/Divider/Divider.js.map +1 -1
  51. package/build/commonjs/Divider/DividerProps.js +1 -1
  52. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  53. package/build/commonjs/Empty/Empty.js +1 -1
  54. package/build/commonjs/Empty/Empty.js.map +1 -1
  55. package/build/commonjs/Flexbox/Flexbox.js +2 -0
  56. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  57. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  58. package/build/commonjs/IconButton/IconButton.js +3 -0
  59. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  60. package/build/commonjs/IconButton/IconButtonProps.js +1 -1
  61. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  62. package/build/commonjs/Image/Image.js +2 -2
  63. package/build/commonjs/Image/Image.js.map +1 -1
  64. package/build/commonjs/ImageCore/ImageCoreNative.js +1 -1
  65. package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
  66. package/build/commonjs/ListItem/ListItem.js +38 -26
  67. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  68. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  69. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
  70. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  71. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  72. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  73. package/build/commonjs/ListItemText/ListItemText.js +20 -21
  74. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  75. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  76. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  77. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  78. package/build/commonjs/Pagination/NumberPagination.js +4 -2
  79. package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
  80. package/build/commonjs/Pagination/Pagination.js +2 -0
  81. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  82. package/build/commonjs/Pagination/PaginationProps.js +3 -1
  83. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  84. package/build/commonjs/Pagination/index.js +6 -0
  85. package/build/commonjs/Pagination/index.js.map +1 -1
  86. package/build/commonjs/PaginationItem/PaginationItem.js +32 -22
  87. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  88. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  89. package/build/commonjs/Radio/Radio.js +11 -4
  90. package/build/commonjs/Radio/Radio.js.map +1 -1
  91. package/build/commonjs/RadioGroup/RadioGroup.js +2 -27
  92. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  93. package/build/commonjs/Section/Section.js +32 -0
  94. package/build/commonjs/Section/Section.js.map +1 -0
  95. package/build/commonjs/Section/SectionProps.js +2 -0
  96. package/build/commonjs/Section/SectionProps.js.map +1 -0
  97. package/build/commonjs/Section/index.js +16 -0
  98. package/build/commonjs/Section/index.js.map +1 -0
  99. package/build/commonjs/ShadowView/ShadowView.native.js +4 -0
  100. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  101. package/build/commonjs/SnackbarContent/SnackbarContent.js +26 -9
  102. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  103. package/build/commonjs/Tab/Tab.js +21 -19
  104. package/build/commonjs/Tab/Tab.js.map +1 -1
  105. package/build/commonjs/Tab/TabProps.js +4 -2
  106. package/build/commonjs/Tab/TabProps.js.map +1 -1
  107. package/build/commonjs/Tab/index.js +14 -0
  108. package/build/commonjs/Tab/index.js.map +1 -1
  109. package/build/commonjs/Tab/useVariantStyleMap.js +59 -18
  110. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
  111. package/build/commonjs/TabBase/TabBase.js +1 -8
  112. package/build/commonjs/TabBase/TabBase.js.map +1 -1
  113. package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
  114. package/build/commonjs/Tabs/Tabs.js +23 -7
  115. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  116. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  117. package/build/commonjs/Tabs/index.js.map +1 -1
  118. package/build/commonjs/Tabs/useTabsStyle.js +80 -0
  119. package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
  120. package/build/commonjs/TextField/TextField.js +48 -12
  121. package/build/commonjs/TextField/TextField.js.map +1 -1
  122. package/build/commonjs/TextField/useVariantStyleMap.js +29 -29
  123. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
  124. package/build/commonjs/Toolbar/BackButton/BackButton.js +47 -0
  125. package/build/commonjs/Toolbar/BackButton/BackButton.js.map +1 -0
  126. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js +2 -0
  127. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  128. package/build/commonjs/Toolbar/BackButton/index.js +16 -0
  129. package/build/commonjs/Toolbar/BackButton/index.js.map +1 -0
  130. package/build/commonjs/Toolbar/Toolbar.js +8 -4
  131. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  132. package/build/commonjs/Tooltip/Beaks/index.js +32 -0
  133. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
  134. package/build/commonjs/Tooltip/Tooltip.js +11 -18
  135. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  136. package/build/commonjs/Tooltip/index.js +19 -0
  137. package/build/commonjs/Tooltip/index.js.map +1 -1
  138. package/build/commonjs/Typography/Typography.js +9 -2
  139. package/build/commonjs/Typography/Typography.js.map +1 -1
  140. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  141. package/build/commonjs/hooks/useBreakpointUp.js +4 -1
  142. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  143. package/build/commonjs/hooks/useCollapsibleAppBar.js +3 -10
  144. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  145. package/build/commonjs/hooks/useContentContainerStyle.js +39 -25
  146. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  147. package/build/commonjs/hooks/useFadeInAppBar.js +2 -2
  148. package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
  149. package/build/commonjs/index.js +21 -0
  150. package/build/commonjs/index.js.map +1 -1
  151. package/build/commonjs/internal/icons/AppBarChevronLeft.js +23 -0
  152. package/build/commonjs/internal/icons/AppBarChevronLeft.js.map +1 -0
  153. package/build/commonjs/internal/icons/ChevronLeft.js +4 -2
  154. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  155. package/build/commonjs/internal/icons/ChevronRight.js +4 -2
  156. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  157. package/build/commonjs/internal/icons/ChipClose.js +23 -0
  158. package/build/commonjs/internal/icons/ChipClose.js.map +1 -0
  159. package/build/commonjs/internal/icons/Clear.js +3 -3
  160. package/build/commonjs/internal/icons/Clear.js.map +1 -1
  161. package/build/commonjs/internal/icons/Close.js +4 -2
  162. package/build/commonjs/internal/icons/Close.js.map +1 -1
  163. package/build/commonjs/internal/icons/Search.js +2 -2
  164. package/build/commonjs/internal/icons/Search.js.map +1 -1
  165. package/build/commonjs/internal/icons/index.js +16 -0
  166. package/build/commonjs/internal/icons/index.js.map +1 -1
  167. package/build/module/Accordion/Accordion.js +15 -8
  168. package/build/module/Accordion/Accordion.js.map +1 -1
  169. package/build/module/Accordion/AccordionProps.js.map +1 -1
  170. package/build/module/Accordion/useVariantStyleMap.js +15 -8
  171. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  172. package/build/module/AppBar/AppBar.js +6 -2
  173. package/build/module/AppBar/AppBar.js.map +1 -1
  174. package/build/module/Badge/Badge.js +4 -3
  175. package/build/module/Badge/Badge.js.map +1 -1
  176. package/build/module/Badge/BadgeProps.js.map +1 -1
  177. package/build/module/Badge/useVariantStyleMap.js +2 -2
  178. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  179. package/build/module/BottomSheetTitle/BottomSheetTitle.js +5 -2
  180. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  181. package/build/module/BottomSheetTitle/BottomSheetTitleProps.js.map +1 -1
  182. package/build/module/Button/Button.js +27 -13
  183. package/build/module/Button/Button.js.map +1 -1
  184. package/build/module/Button/ButtonProps.js.map +1 -1
  185. package/build/module/ButtonBase/ButtonBase.js +1 -1
  186. package/build/module/ButtonBase/ButtonBase.js.map +1 -1
  187. package/build/module/ButtonBase/index.js +1 -1
  188. package/build/module/ButtonBase/index.js.map +1 -1
  189. package/build/module/Checkbox/Checkbox.js +4 -1
  190. package/build/module/Checkbox/Checkbox.js.map +1 -1
  191. package/build/module/Checkbox/useVariantStyleMap.js +6 -2
  192. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  193. package/build/module/Chip/Chip.js +21 -13
  194. package/build/module/Chip/Chip.js.map +1 -1
  195. package/build/module/Chip/ChipProps.js +1 -0
  196. package/build/module/Chip/ChipProps.js.map +1 -1
  197. package/build/module/Chip/index.js +1 -1
  198. package/build/module/Chip/index.js.map +1 -1
  199. package/build/module/Chip/useChipStyle.js +51 -31
  200. package/build/module/Chip/useChipStyle.js.map +1 -1
  201. package/build/module/Dialog/Dialog.js +10 -11
  202. package/build/module/Dialog/Dialog.js.map +1 -1
  203. package/build/module/Dialog/DialogProps.js +1 -1
  204. package/build/module/Dialog/DialogProps.js.map +1 -1
  205. package/build/module/Dialog/useDialogSectionStyle.js +6 -4
  206. package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
  207. package/build/module/Dialog/useDialogStyle.js +18 -8
  208. package/build/module/Dialog/useDialogStyle.js.map +1 -1
  209. package/build/module/DialogActions/DialogActions.js +0 -1
  210. package/build/module/DialogActions/DialogActions.js.map +1 -1
  211. package/build/module/DialogTitle/DialogLargeTitle.js +65 -0
  212. package/build/module/DialogTitle/DialogLargeTitle.js.map +1 -0
  213. package/build/module/DialogTitle/DialogTitle.js +6 -3
  214. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  215. package/build/module/Divider/Divider.js +7 -0
  216. package/build/module/Divider/Divider.js.map +1 -1
  217. package/build/module/Divider/DividerProps.js +1 -1
  218. package/build/module/Divider/DividerProps.js.map +1 -1
  219. package/build/module/Empty/Empty.js +1 -1
  220. package/build/module/Empty/Empty.js.map +1 -1
  221. package/build/module/Flexbox/Flexbox.js +2 -0
  222. package/build/module/Flexbox/Flexbox.js.map +1 -1
  223. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  224. package/build/module/IconButton/IconButton.js +3 -0
  225. package/build/module/IconButton/IconButton.js.map +1 -1
  226. package/build/module/IconButton/IconButtonProps.js +1 -1
  227. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  228. package/build/module/Image/Image.js +2 -2
  229. package/build/module/Image/Image.js.map +1 -1
  230. package/build/module/ImageCore/ImageCoreNative.js +1 -1
  231. package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
  232. package/build/module/ListItem/ListItem.js +36 -28
  233. package/build/module/ListItem/ListItem.js.map +1 -1
  234. package/build/module/ListItem/ListItemProps.js.map +1 -1
  235. package/build/module/ListItemIcon/ListItemIcon.js +1 -2
  236. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  237. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  238. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  239. package/build/module/ListItemText/ListItemText.js +17 -19
  240. package/build/module/ListItemText/ListItemText.js.map +1 -1
  241. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  242. package/build/module/ListSubheader/ListSubheader.js +1 -1
  243. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  244. package/build/module/Pagination/NumberPagination.js +4 -2
  245. package/build/module/Pagination/NumberPagination.js.map +1 -1
  246. package/build/module/Pagination/Pagination.js +2 -0
  247. package/build/module/Pagination/Pagination.js.map +1 -1
  248. package/build/module/Pagination/PaginationProps.js +1 -0
  249. package/build/module/Pagination/PaginationProps.js.map +1 -1
  250. package/build/module/Pagination/index.js +1 -1
  251. package/build/module/Pagination/index.js.map +1 -1
  252. package/build/module/PaginationItem/PaginationItem.js +28 -21
  253. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  254. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  255. package/build/module/Radio/Radio.js +10 -4
  256. package/build/module/Radio/Radio.js.map +1 -1
  257. package/build/module/RadioGroup/RadioGroup.js +2 -20
  258. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  259. package/build/module/Section/Section.js +19 -0
  260. package/build/module/Section/Section.js.map +1 -0
  261. package/build/module/Section/SectionProps.js +2 -0
  262. package/build/module/Section/SectionProps.js.map +1 -0
  263. package/build/module/Section/index.js +2 -0
  264. package/build/module/Section/index.js.map +1 -0
  265. package/build/module/ShadowView/ShadowView.native.js +4 -0
  266. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  267. package/build/module/SnackbarContent/SnackbarContent.js +26 -9
  268. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  269. package/build/module/Tab/Tab.js +22 -19
  270. package/build/module/Tab/Tab.js.map +1 -1
  271. package/build/module/Tab/TabProps.js +2 -1
  272. package/build/module/Tab/TabProps.js.map +1 -1
  273. package/build/module/Tab/index.js +1 -0
  274. package/build/module/Tab/index.js.map +1 -1
  275. package/build/module/Tab/useVariantStyleMap.js +59 -18
  276. package/build/module/Tab/useVariantStyleMap.js.map +1 -1
  277. package/build/module/TabBase/TabBase.js +1 -8
  278. package/build/module/TabBase/TabBase.js.map +1 -1
  279. package/build/module/TabBase/TabBaseProps.js.map +1 -1
  280. package/build/module/Tabs/Tabs.js +21 -7
  281. package/build/module/Tabs/Tabs.js.map +1 -1
  282. package/build/module/Tabs/TabsProps.js.map +1 -1
  283. package/build/module/Tabs/index.js.map +1 -1
  284. package/build/module/Tabs/useTabsStyle.js +70 -0
  285. package/build/module/Tabs/useTabsStyle.js.map +1 -0
  286. package/build/module/TextField/TextField.js +48 -12
  287. package/build/module/TextField/TextField.js.map +1 -1
  288. package/build/module/TextField/useVariantStyleMap.js +29 -29
  289. package/build/module/TextField/useVariantStyleMap.js.map +1 -1
  290. package/build/module/Toolbar/BackButton/BackButton.js +32 -0
  291. package/build/module/Toolbar/BackButton/BackButton.js.map +1 -0
  292. package/build/module/Toolbar/BackButton/BackButtonProps.js +2 -0
  293. package/build/module/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  294. package/build/module/Toolbar/BackButton/index.js +2 -0
  295. package/build/module/Toolbar/BackButton/index.js.map +1 -0
  296. package/build/module/Toolbar/Toolbar.js +7 -3
  297. package/build/module/Toolbar/Toolbar.js.map +1 -1
  298. package/build/module/Tooltip/Beaks/index.js +4 -0
  299. package/build/module/Tooltip/Beaks/index.js.map +1 -1
  300. package/build/module/Tooltip/Tooltip.js +4 -10
  301. package/build/module/Tooltip/Tooltip.js.map +1 -1
  302. package/build/module/Tooltip/index.js +1 -0
  303. package/build/module/Tooltip/index.js.map +1 -1
  304. package/build/module/Typography/Typography.js +9 -2
  305. package/build/module/Typography/Typography.js.map +1 -1
  306. package/build/module/Typography/TypographyProps.js.map +1 -1
  307. package/build/module/hooks/useBreakpointUp.js +4 -1
  308. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  309. package/build/module/hooks/useCollapsibleAppBar.js +4 -10
  310. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  311. package/build/module/hooks/useContentContainerStyle.js +43 -25
  312. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  313. package/build/module/hooks/useFadeInAppBar.js +2 -2
  314. package/build/module/hooks/useFadeInAppBar.js.map +1 -1
  315. package/build/module/index.js +2 -0
  316. package/build/module/index.js.map +1 -1
  317. package/build/module/internal/icons/AppBarChevronLeft.js +9 -0
  318. package/build/module/internal/icons/AppBarChevronLeft.js.map +1 -0
  319. package/build/module/internal/icons/ChevronLeft.js +4 -2
  320. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  321. package/build/module/internal/icons/ChevronRight.js +4 -2
  322. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  323. package/build/module/internal/icons/ChipClose.js +9 -0
  324. package/build/module/internal/icons/ChipClose.js.map +1 -0
  325. package/build/module/internal/icons/Clear.js +3 -3
  326. package/build/module/internal/icons/Clear.js.map +1 -1
  327. package/build/module/internal/icons/Close.js +4 -2
  328. package/build/module/internal/icons/Close.js.map +1 -1
  329. package/build/module/internal/icons/Search.js +2 -2
  330. package/build/module/internal/icons/Search.js.map +1 -1
  331. package/build/module/internal/icons/index.js +2 -0
  332. package/build/module/internal/icons/index.js.map +1 -1
  333. package/build/typescript/Accordion/AccordionProps.d.ts +4 -1
  334. package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
  335. package/build/typescript/Badge/BadgeProps.d.ts +10 -5
  336. package/build/typescript/BottomSheetTitle/BottomSheetTitleProps.d.ts +1 -0
  337. package/build/typescript/Button/ButtonProps.d.ts +5 -0
  338. package/build/typescript/ButtonBase/index.d.ts +1 -1
  339. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
  340. package/build/typescript/Chip/ChipProps.d.ts +11 -4
  341. package/build/typescript/Chip/index.d.ts +1 -1
  342. package/build/typescript/Chip/useChipStyle.d.ts +6 -3
  343. package/build/typescript/Dialog/DialogProps.d.ts +1 -6
  344. package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
  345. package/build/typescript/DialogTitle/DialogLargeTitle.d.ts +9 -0
  346. package/build/typescript/DialogTitle/DialogTitle.d.ts +6 -1
  347. package/build/typescript/Divider/DividerProps.d.ts +1 -1
  348. package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
  349. package/build/typescript/IconButton/IconButtonProps.d.ts +1 -1
  350. package/build/typescript/ListItem/ListItem.d.ts +1 -1
  351. package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
  352. package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
  353. package/build/typescript/Pagination/PaginationProps.d.ts +12 -0
  354. package/build/typescript/Pagination/index.d.ts +2 -2
  355. package/build/typescript/PaginationItem/PaginationItemProps.d.ts +6 -0
  356. package/build/typescript/Section/Section.d.ts +3 -0
  357. package/build/typescript/Section/SectionProps.d.ts +6 -0
  358. package/build/typescript/Section/index.d.ts +2 -0
  359. package/build/typescript/Tab/TabProps.d.ts +21 -2
  360. package/build/typescript/Tab/index.d.ts +2 -1
  361. package/build/typescript/Tab/useVariantStyleMap.d.ts +4 -2
  362. package/build/typescript/TabBase/TabBaseProps.d.ts +0 -5
  363. package/build/typescript/Tabs/Tabs.d.ts +1 -1
  364. package/build/typescript/Tabs/TabsProps.d.ts +6 -1
  365. package/build/typescript/Tabs/index.d.ts +1 -1
  366. package/build/typescript/Tabs/useTabsStyle.d.ts +8 -0
  367. package/build/typescript/TextField/useVariantStyleMap.d.ts +2 -0
  368. package/build/typescript/Toolbar/BackButton/BackButton.d.ts +3 -0
  369. package/build/typescript/Toolbar/BackButton/BackButtonProps.d.ts +4 -0
  370. package/build/typescript/Toolbar/BackButton/index.d.ts +2 -0
  371. package/build/typescript/Toolbar/Toolbar.d.ts +6 -1
  372. package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
  373. package/build/typescript/Tooltip/index.d.ts +1 -0
  374. package/build/typescript/Typography/TypographyProps.d.ts +4 -0
  375. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +0 -1
  376. package/build/typescript/hooks/useContentContainerStyle.d.ts +5 -8
  377. package/build/typescript/index.d.ts +2 -0
  378. package/build/typescript/internal/icons/AppBarChevronLeft.d.ts +131 -0
  379. package/build/typescript/internal/icons/ChipClose.d.ts +131 -0
  380. package/build/typescript/internal/icons/index.d.ts +2 -0
  381. package/package.json +5 -5
  382. package/src/Accordion/Accordion.tsx +18 -9
  383. package/src/Accordion/AccordionProps.ts +4 -2
  384. package/src/Accordion/useVariantStyleMap.ts +14 -6
  385. package/src/AppBar/AppBar.tsx +5 -1
  386. package/src/Badge/Badge.tsx +4 -3
  387. package/src/Badge/BadgeProps.ts +12 -6
  388. package/src/Badge/useVariantStyleMap.ts +2 -2
  389. package/src/BottomSheetTitle/BottomSheetTitle.tsx +4 -1
  390. package/src/BottomSheetTitle/BottomSheetTitleProps.ts +1 -0
  391. package/src/Button/Button.tsx +28 -12
  392. package/src/Button/ButtonProps.ts +6 -0
  393. package/src/ButtonBase/ButtonBase.tsx +1 -1
  394. package/src/ButtonBase/index.ts +1 -1
  395. package/src/Checkbox/Checkbox.tsx +11 -8
  396. package/src/Checkbox/useVariantStyleMap.ts +6 -1
  397. package/src/Chip/Chip.tsx +24 -13
  398. package/src/Chip/ChipProps.ts +13 -4
  399. package/src/Chip/index.ts +1 -1
  400. package/src/Chip/useChipStyle.ts +59 -29
  401. package/src/Dialog/Dialog.tsx +12 -11
  402. package/src/Dialog/DialogProps.ts +1 -7
  403. package/src/Dialog/useDialogSectionStyle.ts +6 -4
  404. package/src/Dialog/useDialogStyle.ts +19 -7
  405. package/src/DialogActions/DialogActions.tsx +0 -1
  406. package/src/DialogTitle/DialogLargeTitle.tsx +95 -0
  407. package/src/DialogTitle/DialogTitle.tsx +6 -1
  408. package/src/Divider/Divider.tsx +5 -0
  409. package/src/Divider/DividerProps.ts +1 -1
  410. package/src/Empty/Empty.tsx +1 -1
  411. package/src/Flexbox/Flexbox.tsx +2 -0
  412. package/src/Flexbox/FlexboxProps.ts +5 -0
  413. package/src/IconButton/IconButton.tsx +2 -0
  414. package/src/IconButton/IconButtonProps.ts +1 -0
  415. package/src/Image/Image.tsx +3 -3
  416. package/src/ImageCore/ImageCoreNative.tsx +1 -1
  417. package/src/ListItem/ListItem.tsx +61 -30
  418. package/src/ListItem/ListItemProps.ts +5 -0
  419. package/src/ListItemIcon/ListItemIcon.tsx +1 -2
  420. package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
  421. package/src/ListItemText/ListItemText.tsx +20 -28
  422. package/src/ListItemText/ListItemTextProps.ts +2 -10
  423. package/src/ListSubheader/ListSubheader.tsx +1 -1
  424. package/src/Pagination/NumberPagination.tsx +7 -2
  425. package/src/Pagination/Pagination.tsx +3 -2
  426. package/src/Pagination/PaginationProps.ts +15 -0
  427. package/src/Pagination/index.ts +2 -2
  428. package/src/PaginationItem/PaginationItem.tsx +31 -24
  429. package/src/PaginationItem/PaginationItemProps.ts +7 -0
  430. package/src/Radio/Radio.tsx +12 -3
  431. package/src/RadioGroup/RadioGroup.tsx +2 -28
  432. package/src/Section/Section.tsx +26 -0
  433. package/src/Section/SectionProps.ts +6 -0
  434. package/src/Section/index.ts +2 -0
  435. package/src/ShadowView/ShadowView.native.tsx +4 -0
  436. package/src/SnackbarContent/SnackbarContent.tsx +36 -15
  437. package/src/Tab/Tab.tsx +32 -22
  438. package/src/Tab/TabProps.ts +25 -2
  439. package/src/Tab/index.ts +2 -1
  440. package/src/Tab/useVariantStyleMap.ts +72 -19
  441. package/src/TabBase/TabBase.tsx +1 -9
  442. package/src/TabBase/TabBaseProps.ts +0 -6
  443. package/src/Tabs/Tabs.tsx +26 -8
  444. package/src/Tabs/TabsProps.ts +7 -1
  445. package/src/Tabs/index.ts +1 -1
  446. package/src/Tabs/useTabsStyle.ts +77 -0
  447. package/src/TextField/TextField.tsx +69 -26
  448. package/src/TextField/useVariantStyleMap.ts +29 -27
  449. package/src/Toolbar/BackButton/BackButton.tsx +44 -0
  450. package/src/Toolbar/BackButton/BackButtonProps.ts +4 -0
  451. package/src/Toolbar/BackButton/index.ts +2 -0
  452. package/src/Toolbar/Toolbar.tsx +6 -1
  453. package/src/Tooltip/Beaks/index.ts +4 -0
  454. package/src/Tooltip/Tooltip.tsx +4 -9
  455. package/src/Tooltip/index.ts +1 -0
  456. package/src/Typography/Typography.tsx +3 -1
  457. package/src/Typography/TypographyProps.ts +5 -0
  458. package/src/hooks/useBreakpointUp.ts +3 -1
  459. package/src/hooks/useCollapsibleAppBar.ts +4 -23
  460. package/src/hooks/useContentContainerStyle.ts +43 -31
  461. package/src/hooks/useFadeInAppBar.ts +2 -2
  462. package/src/index.ts +3 -0
  463. package/src/internal/icons/AppBarChevronLeft.tsx +15 -0
  464. package/src/internal/icons/ChevronLeft.tsx +4 -1
  465. package/src/internal/icons/ChevronRight.tsx +4 -1
  466. package/src/internal/icons/ChipClose.tsx +13 -0
  467. package/src/internal/icons/Clear.tsx +3 -3
  468. package/src/internal/icons/Close.tsx +4 -1
  469. package/src/internal/icons/Search.tsx +2 -2
  470. package/src/internal/icons/index.ts +2 -0
  471. package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
  472. package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
  473. package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
  474. package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
  475. package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
  476. package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
@@ -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":""}
@@ -53,6 +53,9 @@ function selectIconColor(theme, color) {
53
53
  case 'staticStrongInverse':
54
54
  return _styles.commonColors.static.strongInverse;
55
55
 
56
+ case 'staticBaseOpacityInverse':
57
+ return _styles.commonColors.static.baseOpacityInverse;
58
+
56
59
  case 'disabled':
57
60
  return theme.palette.status.disabled;
58
61
  }
@@ -1 +1 @@
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,GAAG;EACvDC,KAAK,EAAE,EADgD;EAEvDC,MAAM,EAAE,EAF+C;EAGvDC,KAAK,EAAE;AAHgD,CAA3D;;AAMA,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,EAAEa,SAAS,GAAG,QAFjB;IAGFJ,QAAQ,GAAG,KAHT;IAIFK,OAJE;IAK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;AAgBH;;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","baseOpacityInverse","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 'staticBaseOpacityInverse':\n return commonColors.static.baseOpacityInverse;\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,GAAG;EACvDC,KAAK,EAAE,EADgD;EAEvDC,MAAM,EAAE,EAF+C;EAGvDC,KAAK,EAAE;AAHgD,CAA3D;;AAMA,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,0BAAL;MACI,OAAOF,oBAAA,CAAaC,MAAb,CAAoBE,k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AC,mBAAD;IACI,QAAQ,EAAEL,QADd;IAEI,OAAO,EAAEqB,WAFb;IAGI,KAAK,EAAEL;EAHX,GAIQP,UAJR,gBAMI,6BAAC,iBAAD;IAAM,KAAK,EAAES;EAAb,GACK1B,IADL,CANJ,EAUKe,SAAS,gBACN,6BAAC,wBAAD;IAAgB,KAAK,EAAEa;EAAvB,EADM,GAEN,IAZR,CADJ;AAgBH;;AAAA"}
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.iconButtonColors = void 0;
7
- const iconButtonColors = ['strong', 'base', 'staticStrongInverse', 'disabled'];
7
+ const iconButtonColors = ['strong', 'base', 'staticStrongInverse', 'staticBaseOpacityInverse', 'disabled'];
8
8
  exports.iconButtonColors = iconButtonColors;
9
9
  //# sourceMappingURL=IconButtonProps.js.map
@@ -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 /**\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"}
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 'staticBaseOpacityInverse',\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,0BAJ4B,EAK5B,UAL4B,CAAzB"}
@@ -33,9 +33,9 @@ const useStyles = function () {
33
33
  backgroundColor: theme.palette.paper.grey
34
34
  },
35
35
  outlined: {
36
- borderWidth: _styles.StyleSheet.hairlineWidth,
36
+ borderWidth: 0.5,
37
37
  borderStyle: 'solid',
38
- borderColor: theme.palette.paper.grey
38
+ borderColor: theme.palette.border.weak
39
39
  },
40
40
  error: {
41
41
  alignItems: 'center',
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","rounded","borderRadius","shape","roundness","overflow","placeholder","backgroundColor","palette","paper","grey","outlined","borderWidth","StyleSheet","hairlineWidth","borderStyle","borderColor","error","alignItems","height","justifyContent","width","errorText","color","text","primary","fontFamily","fontSize","letterSpacing","lineHeight","textAlign","determinePlaceholderMode","props","disablePlaceholder","Image","alt","cache","disableDrag","disableLongClick","disableOutline","loading","onError","onErrorProp","onLoad","onLoadProp","overlaidChildren","resizeMode","source","style","square","otherProps","failed","setFailed","useState","styles","placeholderMode","css","undefined","absoluteFill","zIndex","uri"],"sources":["Image.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport type { ImageCoreProps } from '../ImageCore';\nimport ImageCore from '../ImageCore';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type ImageProps from './ImageProps';\n\ntype PlaceholderMode =\n | 'default'\n | 'custom'\n | 'none';\n\ntype ImageStyleKeys =\n | 'root'\n | 'rounded'\n | 'placeholder'\n | 'outlined'\n | 'error'\n | 'errorText';\n\ntype ImageStyles = NamedStylesStringUnion<ImageStyleKeys>;\n\nconst useStyles: UseStyles<ImageStyles> = function (): ImageStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rounded: {\n borderRadius: theme.shape.roundness,\n overflow: 'hidden',\n },\n placeholder: {\n backgroundColor: theme.palette.paper.grey,\n },\n outlined: {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.paper.grey,\n },\n error: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n errorText: {\n color: theme.palette.text.primary,\n fontFamily: 'Inter-Medium',\n fontSize: 12,\n letterSpacing: 0,\n lineHeight: 18,\n textAlign: 'center',\n },\n };\n};\n\nfunction determinePlaceholderMode(props: ImageProps): PlaceholderMode {\n if (props.disablePlaceholder) {\n return 'none';\n }\n\n return props.placeholder ? 'custom' : 'default';\n}\n\nexport default function Image(props: ImageProps) {\n const {\n alt,\n cache = 'immutable',\n disableDrag,\n disableLongClick,\n disableOutline,\n disablePlaceholder,\n error,\n loading = 'lazy',\n onError: onErrorProp,\n onLoad: onLoadProp,\n overlaidChildren,\n placeholder,\n resizeMode = 'cover',\n source,\n style,\n square = false,\n ...otherProps\n } = props;\n\n const [failed, setFailed] = useState(false);\n\n const styles = useStyles();\n\n const onLoad: ImageCoreProps['onLoad'] = () => {\n setFailed(false);\n\n onLoadProp?.();\n };\n\n const onError: ImageCoreProps['onError'] = () => {\n setFailed(true);\n\n onErrorProp?.();\n };\n\n const placeholderMode = determinePlaceholderMode(props);\n\n return (\n <View\n style={css([\n styles.root,\n !disableOutline ? styles.outlined : undefined,\n !square ? styles.rounded : undefined,\n placeholderMode === 'default' ? styles.placeholder : undefined,\n style,\n ])}\n {...otherProps}\n >\n {placeholderMode === 'custom' ? (\n <View\n style={css([\n StyleSheet.absoluteFill,\n { zIndex: -1 },\n ])}\n >\n {placeholder}\n </View>\n ) : null}\n\n {failed ? (\n <View style={styles.error}>\n {error ?? (\n <Text\n children={alt}\n style={styles.errorText}\n />\n )}\n </View>\n ) : source.uri ? (\n <ImageCore\n alt={alt}\n cache={cache}\n disableDrag={disableDrag}\n disableLongClick={disableLongClick}\n height={'100%'}\n loading={loading}\n onError={onError}\n onLoad={onLoad}\n resizeMode={resizeMode}\n source={source}\n width={'100%'}\n />\n ) : null}\n\n {overlaidChildren ? (\n <View style={StyleSheet.absoluteFill}>\n {overlaidChildren}\n </View>\n ) : null}\n </View>\n );\n};"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;AACA;;;;;;;;;;AAkBA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,OAAO,EAAE;MACLC,YAAY,EAAEJ,KAAK,CAACK,KAAN,CAAYC,SADrB;MAELC,QAAQ,EAAE;IAFL,CAFN;IAMHC,WAAW,EAAE;MACTC,eAAe,EAAET,KAAK,CAACU,OAAN,CAAcC,KAAd,CAAoBC;IAD5B,CANV;IASHC,QAAQ,EAAE;MACNC,WAAW,EAAEC,kBAAA,CAAWC,aADlB;MAENC,WAAW,EAAE,OAFP;MAGNC,WAAW,EAAElB,KAAK,CAACU,OAAN,CAAcC,KAAd,CAAoBC;IAH3B,CATP;IAcHO,KAAK,EAAE;MACHC,UAAU,EAAE,QADT;MAEHC,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DR,CADJ;AAsDH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","rounded","borderRadius","shape","roundness","overflow","placeholder","backgroundColor","palette","paper","grey","outlined","borderWidth","borderStyle","borderColor","border","weak","error","alignItems","height","justifyContent","width","errorText","color","text","primary","fontFamily","fontSize","letterSpacing","lineHeight","textAlign","determinePlaceholderMode","props","disablePlaceholder","Image","alt","cache","disableDrag","disableLongClick","disableOutline","loading","onError","onErrorProp","onLoad","onLoadProp","overlaidChildren","resizeMode","source","style","square","otherProps","failed","setFailed","useState","styles","placeholderMode","css","undefined","StyleSheet","absoluteFill","zIndex","uri"],"sources":["Image.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport type { ImageCoreProps } from '../ImageCore';\nimport ImageCore from '../ImageCore';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type ImageProps from './ImageProps';\n\ntype PlaceholderMode =\n | 'default'\n | 'custom'\n | 'none';\n\ntype ImageStyleKeys =\n | 'root'\n | 'rounded'\n | 'placeholder'\n | 'outlined'\n | 'error'\n | 'errorText';\n\ntype ImageStyles = NamedStylesStringUnion<ImageStyleKeys>;\n\nconst useStyles: UseStyles<ImageStyles> = function (): ImageStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rounded: {\n borderRadius: theme.shape.roundness,\n overflow: 'hidden',\n },\n placeholder: {\n backgroundColor: theme.palette.paper.grey,\n },\n outlined: {\n borderWidth: 0.5,\n borderStyle: 'solid',\n borderColor: theme.palette.border.weak,\n },\n error: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n errorText: {\n color: theme.palette.text.primary,\n fontFamily: 'Inter-Medium',\n fontSize: 12,\n letterSpacing: 0,\n lineHeight: 18,\n textAlign: 'center',\n },\n };\n};\n\nfunction determinePlaceholderMode(props: ImageProps): PlaceholderMode {\n if (props.disablePlaceholder) {\n return 'none';\n }\n\n return props.placeholder ? 'custom' : 'default';\n}\n\nexport default function Image(props: ImageProps) {\n const {\n alt,\n cache = 'immutable',\n disableDrag,\n disableLongClick,\n disableOutline,\n disablePlaceholder,\n error,\n loading = 'lazy',\n onError: onErrorProp,\n onLoad: onLoadProp,\n overlaidChildren,\n placeholder,\n resizeMode = 'cover',\n source,\n style,\n square = false,\n ...otherProps\n } = props;\n\n const [failed, setFailed] = useState(false);\n\n const styles = useStyles();\n\n const onLoad: ImageCoreProps['onLoad'] = () => {\n setFailed(false);\n\n onLoadProp?.();\n };\n\n const onError: ImageCoreProps['onError'] = () => {\n setFailed(true);\n\n onErrorProp?.();\n };\n\n const placeholderMode = determinePlaceholderMode(props);\n\n return (\n <View\n style={css([\n styles.root,\n !disableOutline ? styles.outlined : undefined,\n !square ? styles.rounded : undefined,\n placeholderMode === 'default' ? styles.placeholder : undefined,\n style,\n ])}\n {...otherProps}\n >\n {placeholderMode === 'custom' ? (\n <View\n style={css([\n StyleSheet.absoluteFill,\n { zIndex: -1 },\n ])}\n >\n {placeholder}\n </View>\n ) : null}\n\n {failed ? (\n <View style={styles.error}>\n {error ?? (\n <Text\n children={alt}\n style={styles.errorText}\n />\n )}\n </View>\n ) : source.uri ? (\n <ImageCore\n alt={alt}\n cache={cache}\n disableDrag={disableDrag}\n disableLongClick={disableLongClick}\n height={'100%'}\n loading={loading}\n onError={onError}\n onLoad={onLoad}\n resizeMode={resizeMode}\n source={source}\n width={'100%'}\n />\n ) : null}\n\n {overlaidChildren ? (\n <View style={StyleSheet.absoluteFill}>\n {overlaidChildren}\n </View>\n ) : null}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;AACA;;;;;;;;;;AAkBA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,OAAO,EAAE;MACLC,YAAY,EAAEJ,KAAK,CAACK,KAAN,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AAgB,EAAEC,gBAJtB;IAKI,MAAM,EAAE,MALZ;IAMI,OAAO,EAAEE,OANb;IAOI,OAAO,EAAEC,OAPb;IAQI,MAAM,EAAEE,MARZ;IASI,UAAU,EAAEG,UAThB;IAUI,MAAM,EAAEC,MAVZ;IAWI,KAAK,EAAE;EAXX,EADA,GAcA,IA5CR,EA8CKF,gBAAgB,gBACb,6BAAC,iBAAD;IAAM,KAAK,EAAEa,kBAAA,CAAWC;EAAxB,GACKd,gBADL,CADa,GAIb,IAlDR,CADJ;AAsDH;;AAAA"}
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _reactNative = require("react-native");
11
11
 
12
- var _reactNativeFastImage = _interopRequireDefault(require("react-native-fast-image"));
12
+ var _reactNativeFastImage = _interopRequireDefault(require("@d11/react-native-fast-image"));
13
13
 
14
14
  var _hooks = require("../hooks");
15
15
 
@@ -1 +1 @@
1
- {"version":3,"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","INITIAL_OPACITY","LOADED_OPACITY","ANIMATION_DURATION","ImageCore","props","cache","height","onError","onLoad","resizeMode","source","width","opacity","useAnimatedValue","acceptHeader","useContext","ImageFileExtensionContext","handleLoad","useCallback","timing","toValue","duration","useNativeDriver","isNotAndroid12","start","uri","headers"],"sources":["ImageCoreNative.tsx"],"sourcesContent":["import React, { useCallback, useContext } from 'react';\nimport { Animated } from 'react-native';\nimport FastImage from 'react-native-fast-image';\nimport { useAnimatedValue } from '../hooks';\nimport { isNotAndroid12 } from '../utils';\nimport type ImageCoreProps from './ImageCoreProps';\nimport ImageFileExtensionContext from './ImageFileExtensionContext';\n\n// @ts-ignore\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nconst INITIAL_OPACITY = 0;\nconst LOADED_OPACITY = 1;\n\nconst ANIMATION_DURATION = 200;\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n cache,\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const opacity = useAnimatedValue(INITIAL_OPACITY);\n\n const acceptHeader = useContext(ImageFileExtensionContext);\n\n const handleLoad = useCallback(() => {\n Animated.timing(opacity, {\n toValue: LOADED_OPACITY,\n duration: ANIMATION_DURATION,\n useNativeDriver: isNotAndroid12,\n }).start();\n\n onLoad?.();\n }, [onLoad]);\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{\n cache,\n uri: source.uri,\n headers: {\n 'Accept': acceptHeader,\n },\n }}\n style={[\n { opacity },\n { width, height },\n ]}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAEA;AACA,MAAMA,iBAAiB,GAAGC,qBAAA,CAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEA,MAAMC,eAAe,GAAG,CAAxB;AACA,MAAMC,cAAc,GAAG,CAAvB;AAEA,MAAMC,kBAAkB,GAAG,GAA3B;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;EACrD,MAAM;IACFC,KADE;IAEFC,MAFE;IAGFC,OAHE;IAIFC,MAJE;IAKFC,UALE;IAMFC,MANE;IAOFC;EAPE,IAQFP,KARJ;EAUA,MAAMQ,OAAO,GAAG,IAAAC,uBAAA,EAAiBb,eAAjB,CAAhB;EAEA,MAAMc,YAAY,GAAG,IAAAC,iBAAA,EAAWC,kCAAX,CAArB;EAEA,MAAMC,UAAU,GAAG,IAAAC,kBAAA,EAAY,MAAM;IACjCrB,qBAAA,CAASsB,MAAT,CAAgBP,OAAhB,EAAyB;MACrBQ,OAAO,EAAEnB,cADY;MAErBoB,QAAQ,EAAEnB,kBAFW;MAGrBoB,eAAe,EAAEC;IAHI,CAAzB,EAIGC,KAJH;;IAMAhB,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM;EACT,CARkB,EAQhB,CAACA,MAAD,CARgB,CAAnB;EAUA,oBACI,6BAAC,iBAAD;IACI,OAAO,EAAED,OADb;IAEI,MAAM,EAAEU,UAFZ;IAGI,UAAU,EAAER,UAHhB;IAII,MAAM,EAAE;MACJJ,KADI;MAEJoB,GAAG,EAAEf,MAAM,CAACe,GAFR;MAGJC,OAAO,EAAE;QACL,UAAUZ;MADL;IAHL,CAJZ;IAWI,KAAK,EAAE,CACH;MAAEF;IAAF,CADG,EAEH;MAAED,KAAF;MAASL;IAAT,CAFG;EAXX,EADJ;AAkBH;;AAAA"}
1
+ {"version":3,"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","INITIAL_OPACITY","LOADED_OPACITY","ANIMATION_DURATION","ImageCore","props","cache","height","onError","onLoad","resizeMode","source","width","opacity","useAnimatedValue","acceptHeader","useContext","ImageFileExtensionContext","handleLoad","useCallback","timing","toValue","duration","useNativeDriver","isNotAndroid12","start","uri","headers"],"sources":["ImageCoreNative.tsx"],"sourcesContent":["import React, { useCallback, useContext } from 'react';\nimport { Animated } from 'react-native';\nimport FastImage from '@d11/react-native-fast-image';\nimport { useAnimatedValue } from '../hooks';\nimport { isNotAndroid12 } from '../utils';\nimport type ImageCoreProps from './ImageCoreProps';\nimport ImageFileExtensionContext from './ImageFileExtensionContext';\n\n// @ts-ignore\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nconst INITIAL_OPACITY = 0;\nconst LOADED_OPACITY = 1;\n\nconst ANIMATION_DURATION = 200;\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n cache,\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const opacity = useAnimatedValue(INITIAL_OPACITY);\n\n const acceptHeader = useContext(ImageFileExtensionContext);\n\n const handleLoad = useCallback(() => {\n Animated.timing(opacity, {\n toValue: LOADED_OPACITY,\n duration: ANIMATION_DURATION,\n useNativeDriver: isNotAndroid12,\n }).start();\n\n onLoad?.();\n }, [onLoad]);\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{\n cache,\n uri: source.uri,\n headers: {\n 'Accept': acceptHeader,\n },\n }}\n style={[\n { opacity },\n { width, height },\n ]}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAEA;AACA,MAAMA,iBAAiB,GAAGC,qBAAA,CAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEA,MAAMC,eAAe,GAAG,CAAxB;AACA,MAAMC,cAAc,GAAG,CAAvB;AAEA,MAAMC,kBAAkB,GAAG,GAA3B;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;EACrD,MAAM;IACFC,KADE;IAEFC,MAFE;IAGFC,OAHE;IAIFC,MAJE;IAKFC,UALE;IAMFC,MANE;IAOFC;EAPE,IAQFP,KARJ;EAUA,MAAMQ,OAAO,GAAG,IAAAC,uBAAA,EAAiBb,eAAjB,CAAhB;EAEA,MAAMc,YAAY,GAAG,IAAAC,iBAAA,EAAWC,kCAAX,CAArB;EAEA,MAAMC,UAAU,GAAG,IAAAC,kBAAA,EAAY,MAAM;IACjCrB,qBAAA,CAASsB,MAAT,CAAgBP,OAAhB,EAAyB;MACrBQ,OAAO,EAAEnB,cADY;MAErBoB,QAAQ,EAAEnB,kBAFW;MAGrBoB,eAAe,EAAEC;IAHI,CAAzB,EAIGC,KAJH;;IAMAhB,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM;EACT,CARkB,EAQhB,CAACA,MAAD,CARgB,CAAnB;EAUA,oBACI,6BAAC,iBAAD;IACI,OAAO,EAAED,OADb;IAEI,MAAM,EAAEU,UAFZ;IAGI,UAAU,EAAER,UAHhB;IAII,MAAM,EAAE;MACJJ,KADI;MAEJoB,GAAG,EAAEf,MAAM,CAACe,GAFR;MAGJC,OAAO,EAAE;QACL,UAAUZ;MADL;IAHL,CAJZ;IAWI,KAAK,EAAE,CACH;MAAEF;IAAF,CADG,EAEH;MAAED,KAAF;MAASL;IAAT,CAFG;EAXX,EADJ;AAkBH;;AAAA"}
@@ -9,22 +9,28 @@ 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),
26
- paddingHorizontal: theme.spacing(4),
25
+ content: {
26
+ borderBottomColor: theme.palette.border.weak,
27
+ borderBottomWidth: 0.5,
28
+ gap: theme.spacing(2),
29
+ paddingVertical: theme.spacing(3.75),
27
30
  width: '100%'
31
+ },
32
+ description: {
33
+ paddingRight: theme.spacing(20)
28
34
  }
29
35
  };
30
36
  };
@@ -34,39 +40,45 @@ function ListItem(props) {
34
40
  alignItems = 'center',
35
41
  button = false,
36
42
  children,
43
+ description,
37
44
  disabled = false,
38
45
  onPress,
39
46
  style,
40
47
  ...otherProps
41
48
  } = props;
49
+ const theme = (0, _styles2.useTheme)();
42
50
  const styles = useStyles();
43
51
  const rootComponentProps = {
44
52
  accessibilityRole: _reactNative.Platform.OS === 'web' ? 'listitem' : undefined,
45
53
  ...otherProps
46
54
  };
47
- const rootStyle = (0, _styles.css)([styles.root, {
48
- alignItems
49
- }, style]);
55
+ const contentWrapperStyle = (0, _styles2.css)([styles.content, style]);
56
+ const descriptionFontStyle = (0, _styles2.createFontStyle)(theme, {
57
+ selector: _ => (0, _styles.typographyOf)({
58
+ fontSize: 14,
59
+ lineHeight: 19.6,
60
+ fontFamily: 'PretendardStd-Regular',
61
+ letterSpacing: 0
62
+ }),
63
+ color: theme.palette.text.base
64
+ });
50
65
 
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
- }
66
+ const content = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Row.default, {
67
+ alignItems: alignItems
68
+ }, children), description ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
69
+ style: (0, _styles2.css)([styles.description, descriptionFontStyle])
70
+ }, description) : null);
62
71
 
63
72
  return (
64
73
  /*#__PURE__*/
65
74
  // @ts-ignore
66
- _react.default.createElement(_reactNative.View, _extends({
67
- children: children,
68
- style: rootStyle
69
- }, rootComponentProps))
75
+ _react.default.createElement(_reactNative.View, rootComponentProps, button ? /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
76
+ disabled: disabled,
77
+ onPress: onPress,
78
+ style: contentWrapperStyle
79
+ }, content) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
80
+ style: contentWrapperStyle
81
+ }, content))
70
82
  );
71
83
  }
72
84
 
@@ -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","borderBottomColor","palette","border","weak","borderBottomWidth","gap","spacing","paddingVertical","width","description","paddingRight","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'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n content: {\n borderBottomColor: theme.palette.border.weak,\n borderBottomWidth: 0.5,\n gap: theme.spacing(2),\n paddingVertical: theme.spacing(3.75),\n width: '100%',\n },\n description: {\n paddingRight: theme.spacing(20),\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 </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,iBAAiB,EAAEH,KAAK,CAACI,OAAN,CAAcC,MAAd,CAAqBC,IADnC;MAELC,iBAAiB,EAAE,GAFd;MAGLC,GAAG,EAAER,KAAK,CAACS,OAAN,CAAc,CAAd,CAHA;MAILC,eAAe,EAAEV,KAAK,CAACS,OAAN,CA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mB,oBAFa,CAAJ;EAAb,GAIKnB,WAJL,CADQ,GAOR,IAZR,CADJ;;EAiBA;IAAA;IACI;IACA,6BAAC,iBAAD,EAAUY,kBAAV,EACKP,MAAM,gBACH,6BAAC,mBAAD;MACI,QAAQ,EAAEE,QADd;MAEI,OAAO,EAAEC,OAFb;MAGI,KAAK,EAAES;IAHX,GAKK3B,OALL,CADG,gBASH,6BAAC,iBAAD;MAAM,KAAK,EAAE2B;IAAb,GACK3B,OADL,CAVR;EAFJ;AAkBH;;AAAA"}
@@ -1 +1 @@
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 * 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
  }
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","root","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles","css"],"sources":["ListItemSecondaryAction.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\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,SAAmD,GAAG,YAA2C;EACnG,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,CADV;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;EACjF,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGR,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAS,WAAA,EAAI,CACPD,MAAM,CAACP,IADA,EAEPK,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
1
+ {"version":3,"names":["useStyles","root","alignItems","flexDirection","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles","css"],"sources":["ListItemSecondaryAction.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\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,SAAmD,GAAG,YAA2C;EACnG,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE,KAFb;MAGFC,UAAU,EAAE,CAHV;MAIFC,UAAU,EAAE;IAJV;EADH,CAAP;AAQH,CATD;;AAWe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;EACjF,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGV,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAW,WAAA,EAAI,CACPD,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -7,50 +7,49 @@ exports.default = ListItemText;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _Column = _interopRequireDefault(require("../Column"));
10
+ var _reactNative = require("react-native");
11
+
12
+ var _styles = require("@fountain-ui/styles");
11
13
 
12
- var _Typography = _interopRequireDefault(require("../Typography"));
14
+ var _Column = _interopRequireDefault(require("../Column"));
13
15
 
14
- var _styles = require("../styles");
16
+ var _styles2 = require("../styles");
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
21
 
20
22
  const useStyles = function () {
21
- const theme = (0, _styles.useTheme)();
22
23
  return {
23
24
  root: {
24
25
  flexGrow: 1,
25
26
  flexShrink: 1
26
- },
27
- multiline: {
28
- marginBottom: theme.spacing(1)
29
27
  }
30
28
  };
31
29
  };
32
30
 
33
31
  function ListItemText(props) {
34
32
  const {
35
- primary,
36
- secondary,
33
+ children,
37
34
  style,
38
35
  ...otherProps
39
36
  } = props;
37
+ const theme = (0, _styles2.useTheme)();
40
38
  const styles = useStyles();
41
- const isMultiline = !!(primary && secondary);
39
+ const fontStyle = (0, _styles2.createFontStyle)(theme, {
40
+ selector: _ => (0, _styles.typographyOf)({
41
+ fontSize: 16,
42
+ lineHeight: 19.2,
43
+ fontFamily: 'PretendardStd-Medium',
44
+ letterSpacing: 0
45
+ }),
46
+ color: theme.palette.text.strong
47
+ });
42
48
  return /*#__PURE__*/_react.default.createElement(_Column.default, _extends({
43
- style: (0, _styles.css)([styles.root, style])
44
- }, otherProps), primary ? /*#__PURE__*/_react.default.createElement(_Typography.default, {
45
- children: primary,
46
- color: 'strong',
47
- variant: 'body3',
48
- style: isMultiline ? styles.multiline : undefined
49
- }) : null, secondary ? /*#__PURE__*/_react.default.createElement(_Typography.default, {
50
- children: secondary,
51
- color: 'strong',
52
- variant: 'body3'
53
- }) : null);
49
+ style: (0, _styles2.css)([styles.root, style])
50
+ }, otherProps), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
51
+ style: fontStyle
52
+ }, children));
54
53
  }
55
54
 
56
55
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","css","undefined"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'strong'}\n variant={'body3'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'strong'}\n variant={'body3'}\n />\n ) : null}\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV,CADH;IAKHC,SAAS,EAAE;MACPC,YAAY,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;IADP;EALR,CAAP;AASH,CAZD;;AAce,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,OADE;IAEFC,SAFE;IAGFC,KAHE;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,MAAMK,MAAM,GAAGf,SAAS,EAAxB;EAEA,MAAMgB,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;EAEA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAE,IAAAK,WAAA,EAAI,CACPF,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAJ;EADX,GAKQC,UALR,GAOKH,OAAO,gBACJ,6BAAC,mBAAD;IACI,QAAQ,EAAEA,OADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE,OAHb;IAII,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBY;EAJ5C,EADI,GAOJ,IAdR,EAgBKN,SAAS,gBACN,6BAAC,mBAAD;IACI,QAAQ,EAAEA,SADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EADM,GAMN,IAtBR,CADJ;AA0BH;;AAAA"}
1
+ {"version":3,"names":["useStyles","root","flexGrow","flexShrink","ListItemText","props","children","style","otherProps","theme","useTheme","styles","fontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","palette","text","strong","css"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n children,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const fontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 16,\n lineHeight: 19.2,\n fontFamily: 'PretendardStd-Medium',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strong,\n });\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n <Text style={fontStyle}>\n {children}\n </Text>\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,OAAO;IACHC,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,QADE;IAEFC,KAFE;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,MAAMC,MAAM,GAAGX,SAAS,EAAxB;EAEA,MAAMY,SAAS,GAAG,IAAAC,wBAAA,EAAgBJ,KAAhB,EAAuB;IACrCK,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;MAC1BC,QAAQ,EAAE,EADgB;MAE1BC,UAAU,EAAE,IAFc;MAG1BC,UAAU,EAAE,sBAHc;MAI1BC,aAAa,EAAE;IAJW,CAAb,CADoB;IAOrCC,KAAK,EAAEZ,KAAK,CAACa,OAAN,CAAcC,IAAd,CAAmBC;EAPW,CAAvB,CAAlB;EAUA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAE,IAAAC,YAAA,EAAI,CACPd,MAAM,CAACV,IADA,EAEPM,KAFO,CAAJ;EADX,GAKQC,UALR,gBAOI,6BAAC,iBAAD;IAAM,KAAK,EAAEI;EAAb,GACKN,QADL,CAPJ,CADJ;AAaH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\ntype BaseProps = Omit<ColumnProps, 'children'>;\n\nexport default interface ListItemTextProps extends OverridableComponentProps<BaseProps, {\n /**\n * The main content element.\n */\n primary?: TypographyProps['children'];\n\n /**\n * The secondary content element.\n */\n secondary?: TypographyProps['children'];\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\nexport default interface ListItemTextProps extends OverridableComponentProps<ColumnProps, {\n /**\n * The main content element.\n */\n children: string;\n}> {}\n"],"mappings":""}
@@ -33,7 +33,7 @@ function ListSubheader(props) {
33
33
  }, otherProps), disableTypography ? children : /*#__PURE__*/_react.default.createElement(_Typography.default, {
34
34
  children: children,
35
35
  color: 'strong',
36
- variant: 'caption3'
36
+ variant: 'caption2'
37
37
  }));
38
38
  }
39
39
 
@@ -1 +1 @@
1
- {"version":3,"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'strong'}\n variant={'caption3'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,6BAAC,YAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH,iBAFvB;IAGI,MAAM,EAAEI,kBAAA,CAAWC,UAAX,CAAsB,CAAtB;EAHZ,GAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;;AAAA"}
1
+ {"version":3,"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'strong'}\n variant={'caption2'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,6BAAC,YAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH,iBAFvB;IAGI,MAAM,EAAEI,kBAAA,CAAWC,UAAX,CAAsB,CAAtB;EAHZ,GAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;;AAAA"}
@@ -46,7 +46,7 @@ function NumberPagination(props) {
46
46
  const typography = (0, _styles.typographyOf)({
47
47
  fontSize: 9.5,
48
48
  lineHeight: 11.4,
49
- fontFamily: 'Pretendard-SemiBold',
49
+ fontFamily: 'PretendardStd-SemiBold',
50
50
  letterSpacing: -0.19
51
51
  });
52
52
  const currentFontStyle = (0, _styles2.createFontStyle)(theme, {
@@ -60,7 +60,9 @@ function NumberPagination(props) {
60
60
  return /*#__PURE__*/_react.default.createElement(_Row.default, {
61
61
  style: styles.root
62
62
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
63
- style: currentFontStyle
63
+ style: [currentFontStyle, {
64
+ fontVariant: ['tabular-nums']
65
+ }]
64
66
  }, currentPage + 1), /*#__PURE__*/_react.default.createElement(_Divider.default, {
65
67
  style: styles.divider,
66
68
  vertical: true
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","backgroundColor","commonColors","static","weakOpacity","borderRadius","shape","radius","full","paddingHorizontal","spacing","paddingVertical","divider","alignSelf","borderColor","weakOpacityInverse","height","NumberPagination","props","currentPage","maxPage","styles","typography","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","currentFontStyle","createFontStyle","selector","_","color","strongInverse","countFontStyle","baseOpacityInverse"],"sources":["NumberPagination.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { commonColors, typographyOf } from '@fountain-ui/styles';\nimport Divider from '../Divider';\nimport Row from '../Row';\nimport { createFontStyle, useTheme } from '../styles';\nimport type PaginationProps from './PaginationProps';\n\ntype NumberPaginationStyles = NamedStylesStringUnion<'root' | 'divider'>;\n\nconst useStyles: UseStyles<NumberPaginationStyles> = function (): NumberPaginationStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: commonColors.static.weakOpacity,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(1.25),\n paddingVertical: theme.spacing(0.5),\n },\n divider: {\n alignSelf: 'center',\n borderColor: commonColors.static.weakOpacityInverse,\n height: 6,\n },\n };\n};\n\ninterface NumberPaginationProps {\n currentPage: PaginationProps['page'];\n maxPage: PaginationProps['count'];\n}\n\nexport default function NumberPagination(props: NumberPaginationProps) {\n const {\n currentPage,\n maxPage,\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const typography = typographyOf({\n fontSize: 9.5,\n lineHeight: 11.4,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: -0.19,\n });\n\n const currentFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.strongInverse,\n });\n\n const countFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.baseOpacityInverse,\n });\n\n return (\n <Row style={styles.root}>\n <Text style={currentFontStyle}>\n {currentPage + 1}\n </Text>\n\n <Divider\n style={styles.divider}\n vertical={true}\n />\n\n <Text style={countFontStyle}>\n {maxPage}\n </Text>\n </Row>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAKA,MAAMA,SAA4C,GAAG,YAAoC;EACrF,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEC,oBAAA,CAAaC,MAAb,CAAoBC,WADnC;MAEFC,YAAY,EAAEP,KAAK,CAACQ,KAAN,CAAYC,MAAZ,CAAmBC,IAF/B;MAGFC,iBAAiB,EAAEX,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AK,EAAEsB;EAAb,GACKd,OADL,CAVJ,CADJ;AAgBH"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","backgroundColor","commonColors","static","weakOpacity","borderRadius","shape","radius","full","paddingHorizontal","spacing","paddingVertical","divider","alignSelf","borderColor","weakOpacityInverse","height","NumberPagination","props","currentPage","maxPage","styles","typography","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","currentFontStyle","createFontStyle","selector","_","color","strongInverse","countFontStyle","baseOpacityInverse","fontVariant"],"sources":["NumberPagination.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { commonColors, typographyOf } from '@fountain-ui/styles';\nimport Divider from '../Divider';\nimport Row from '../Row';\nimport { createFontStyle, useTheme } from '../styles';\nimport type PaginationProps from './PaginationProps';\n\ntype NumberPaginationStyles = NamedStylesStringUnion<'root' | 'divider'>;\n\nconst useStyles: UseStyles<NumberPaginationStyles> = function (): NumberPaginationStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: commonColors.static.weakOpacity,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(1.25),\n paddingVertical: theme.spacing(0.5),\n },\n divider: {\n alignSelf: 'center',\n borderColor: commonColors.static.weakOpacityInverse,\n height: 6,\n },\n };\n};\n\ninterface NumberPaginationProps {\n currentPage: PaginationProps['page'];\n maxPage: PaginationProps['count'];\n}\n\nexport default function NumberPagination(props: NumberPaginationProps) {\n const {\n currentPage,\n maxPage,\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const typography = typographyOf({\n fontSize: 9.5,\n lineHeight: 11.4,\n fontFamily: 'PretendardStd-SemiBold',\n letterSpacing: -0.19,\n });\n\n const currentFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.strongInverse,\n });\n\n const countFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.baseOpacityInverse,\n });\n\n return (\n <Row style={styles.root}>\n <Text\n style={[\n currentFontStyle,\n { fontVariant: ['tabular-nums'] },\n ]}\n >\n {currentPage + 1}\n </Text>\n\n <Divider\n style={styles.divider}\n vertical={true}\n />\n\n <Text style={countFontStyle}>\n {maxPage}\n </Text>\n </Row>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAKA,MAAMA,SAA4C,GAAG,YAAoC;EACrF,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEC,oBAAA,CAAaC,MAAb,CAAoBC,WADnC;MAEFC,YAAY,EAAEP,KAAK,CAACQ,KAAN,CAAYC,MAAZ,CAAmBC,IAF/B;MAGFC,iBAAiB,EAAEX,KAAK,CAACY,OAAN,CAAc,IAAd,CAHjB;MAIFC,eAAe,EAAEb,KAAK,CAACY,OAAN,CAAc,GAAd;IAJf,CADH;IAOHE,OAAO,EAAE;MACLC,SAAS,EAAE,QADN;MAELC,WAAW,EAAEZ,oBAAA,CAAaC,MAAb,CAAoBY,kBAF5B;MAGLC,MAAM,EAAE;IAHH;EAPN,CAAP;AAaH,CAhBD;;AAuBe,SAASC,gBAAT,CAA0BC,KAA1B,EAAwD;EACnE,MAAM;IACFC,WADE;IAEFC;EAFE,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGxB,SAAS,EAAxB;EAEA,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,MAAMuB,UAAU,GAAG,IAAAC,oBAAA,EAAa;IAC5BC,QAAQ,EAAE,GADkB;IAE5BC,UAAU,EAAE,IAFgB;IAG5BC,UAAU,EAAE,wBAHgB;IAI5BC,aAAa,EAAE,CAAC;EAJY,CAAb,CAAnB;EAOA,MAAMC,gBAAgB,GAAG,IAAAC,wBAAA,EAAgB/B,KAAhB,EAAuB;IAC5CgC,QAAQ,EAAGC,CAAD,IAAOT,UAD2B;IAE5CU,KAAK,EAAE9B,oBAAA,CAAaC,MAAb,CAAoB8B;EAFiB,CAAvB,CAAzB;EAKA,MAAMC,cAAc,GAAG,IAAAL,wBAAA,EAAgB/B,KAAhB,EAAuB;IAC1CgC,QAAQ,EAAGC,CAAD,IAAOT,UADyB;IAE1CU,KAAK,EAAE9B,oBAAA,CAAaC,MAAb,CAAoBgC;EAFe,CAAvB,CAAvB;EAKA,oBACI,6BAAC,YAAD;IAAK,KAAK,EAAEd,MAAM,CAACrB;EAAnB,gBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,CACH4B,gBADG,EAEH;MAAEQ,WAAW,EAAE,CAAC,cAAD;IAAf,CAFG;EADX,GAMKjB,WAAW,GAAG,CANnB,CADJ,eAUI,6BAAC,gBAAD;IACI,KAAK,EAAEE,MAAM,CAACT,OADlB;IAEI,QAAQ,EAAE;EAFd,EAVJ,eAeI,6BAAC,iBAAD;IAAM,KAAK,EAAEsB;EAAb,GACKd,OADL,CAfJ,CADJ;AAqBH"}
@@ -66,6 +66,7 @@ function Pagination(props) {
66
66
  const {
67
67
  bundleSize = 1,
68
68
  children,
69
+ color = 'base',
69
70
  count,
70
71
  disabled = false,
71
72
  hideIndicator = false,
@@ -123,6 +124,7 @@ function Pagination(props) {
123
124
  currentPage: page,
124
125
  maxPage: count
125
126
  }) : (0, _utils.times)(i => renderItem({
127
+ color,
126
128
  index: i,
127
129
  disabled,
128
130
  selected: i === page
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","variant","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","times","i","selected","containerProps","css"],"sources":["Pagination.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport NumberPagination from './NumberPagination';\nimport type PaginationProps from './PaginationProps';\nimport type { PaginationVariant } from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n variant = 'dot' as PaginationVariant,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n style={children ? styles.prevAnchor : styles.prevInline}\n >\n <ChevronLeft/>\n </IconButton>\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n style={children ? styles.nextAnchor : styles.nextInline}\n >\n <ChevronRight/>\n </IconButton>\n ) : null;\n\n const items = !hideIndicator ? (\n variant === 'number' ? (\n <NumberPagination\n currentPage={page}\n maxPage={count}\n />\n ) : times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAiBA,MAAMA,SAAsC,GAAG,YAA8B;EACzE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,UAAU,EAAE;MACRC,aAAa,EAAE,KADP;MAERC,UAAU,EAAE;IAFJ,CAFT;IAMHC,UAAU,EAAE;MACRF,aAAa,EAAE;IADP,CANT;IASHG,KAAK,EAAE;MACHH,aAAa,EAAE,KADZ;MAEHI,cAAc,EAAE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AEL,IADjB;IAEI,OAAO,EAAEP;EAFb,EADJ,GAKI,IAAAwB,YAAA,EAAMC,CAAC,IAAIjB,UAAU,CAAC;IAAEC,KAAK,EAAEgB,CAAT;IAAYxB,QAAZ;IAAsByB,QAAQ,EAAED,CAAC,KAAKlB;EAAtC,CAAD,CAArB,EAAqEP,KAArE,CANM,GAOV,IAPJ;EASA,MAAM2B,cAAc,GAAG;IACnBhB,KAAK,EAAE,IAAAiB,WAAA,EAAI,CACPd,MAAM,CAACrC,IADA,EAEPsB,QAAQ,GAAGe,MAAM,CAACjC,UAAV,GAAuBiC,MAAM,CAACpC,UAF/B,EAGPiC,KAHO,CAAJ,CADY;IAMnB,GAAGE;EANgB,CAAvB;;EASA,IAAId,QAAJ,EAAc;IACV,oBACI,6BAAC,iBAAD,EAAU4B,cAAV,eACI,6BAAC,iBAAD;MAAM,KAAK,EAAE,IAAAC,WAAA,EAAId,MAAM,CAAC5B,cAAX;IAAb,GACKa,QADL,EAEKuB,UAFL,EAGKC,UAHL,CADJ,eAOI,6BAAC,iBAAD;MAAM,KAAK,EAAE,IAAAK,WAAA,EAAId,MAAM,CAAChC,KAAX;IAAb,GACKA,KADL,CAPJ,CADJ;EAaH;;EAED,oBACI,6BAAC,iBAAD,EAAU6C,cAAV,EACKL,UADL,EAEKxC,KAFL,EAGKyC,UAHL,CADJ;AAOH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","color","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","variant","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","times","i","selected","containerProps","css"],"sources":["Pagination.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport NumberPagination from './NumberPagination';\nimport type PaginationProps from './PaginationProps';\nimport type { PaginationColor, PaginationVariant } from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n color = 'base' as PaginationColor,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n variant = 'dot' as PaginationVariant,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n style={children ? styles.prevAnchor : styles.prevInline}\n >\n <ChevronLeft/>\n </IconButton>\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n style={children ? styles.nextAnchor : styles.nextInline}\n >\n <ChevronRight/>\n </IconButton>\n ) : null;\n\n const items = !hideIndicator ? (\n variant === 'number' ? (\n <NumberPagination\n currentPage={page}\n maxPage={count}\n />\n ) : times(i => renderItem({ color, index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAiBA,MAAMA,SAAsC,GAAG,YAA8B;EACzE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,UAAU,EAAE;MACRC,aAAa,EAAE,KADP;MAERC,UAAU,EAAE;IAFJ,CAFT;IAMHC,UAAU,EAAE;MACRF,aAAa,EAAE;IADP,CANT;IASHG,KAAK,EAAE;MACHH,aAAa,EAAE,KADZ;MAEHI,cAAc,EAAE,QAF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I,6BAAC,yBAAD;IACI,WAAW,EAAEL,IADjB;IAEI,OAAO,EAAEP;EAFb,EADJ,GAKI,IAAAwB,YAAA,EAAMC,CAAC,IAAIjB,UAAU,CAAC;IAAET,KAAF;IAASU,KAAK,EAAEgB,CAAhB;IAAmBxB,QAAnB;IAA6ByB,QAAQ,EAAED,CAAC,KAAKlB;EAA7C,CAAD,CAArB,EAA4EP,KAA5E,CANM,GAOV,IAPJ;EASA,MAAM2B,cAAc,GAAG;IACnBhB,KAAK,EAAE,IAAAiB,WAAA,EAAI,CACPd,MAAM,CAACtC,IADA,EAEPsB,QAAQ,GAAGgB,MAAM,CAAClC,UAAV,GAAuBkC,MAAM,CAACrC,UAF/B,EAGPkC,KAHO,CAAJ,CADY;IAMnB,GAAGE;EANgB,CAAvB;;EASA,IAAIf,QAAJ,EAAc;IACV,oBACI,6BAAC,iBAAD,EAAU6B,cAAV,eACI,6BAAC,iBAAD;MAAM,KAAK,EAAE,IAAAC,WAAA,EAAId,MAAM,CAAC7B,cAAX;IAAb,GACKa,QADL,EAEKwB,UAFL,EAGKC,UAHL,CADJ,eAOI,6BAAC,iBAAD;MAAM,KAAK,EAAE,IAAAK,WAAA,EAAId,MAAM,CAACjC,KAAX;IAAb,GACKA,KADL,CAPJ,CADJ;EAaH;;EAED,oBACI,6BAAC,iBAAD,EAAU8C,cAAV,EACKL,UADL,EAEKzC,KAFL,EAGK0C,UAHL,CADJ;AAOH;;AAAA"}
@@ -3,7 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.paginationVariants = void 0;
6
+ exports.paginationVariants = exports.paginationColors = void 0;
7
+ const paginationColors = ['base', 'static'];
8
+ exports.paginationColors = paginationColors;
7
9
  const paginationVariants = ['dot', 'number'];
8
10
  exports.paginationVariants = paginationVariants;
9
11
  //# sourceMappingURL=PaginationProps.js.map