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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/build/commonjs/Accordion/Accordion.js +4 -1
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/index.js +8 -0
  4. package/build/commonjs/Accordion/index.js.map +1 -1
  5. package/build/commonjs/Accordion/useVariantStyleMap.js +11 -10
  6. package/build/commonjs/Accordion/useVariantStyleMap.js.map +1 -1
  7. package/build/commonjs/AppBar/AppBar.js +6 -1
  8. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  9. package/build/commonjs/AppBar/index.js +8 -0
  10. package/build/commonjs/AppBar/index.js.map +1 -1
  11. package/build/commonjs/Badge/index.js +26 -0
  12. package/build/commonjs/Badge/index.js.map +1 -1
  13. package/build/commonjs/Badge/useVariantStyleMap.js +2 -2
  14. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  15. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +1 -0
  16. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  17. package/build/commonjs/Button/Button.js +15 -3
  18. package/build/commonjs/Button/Button.js.map +1 -1
  19. package/build/commonjs/Button/ButtonProps.js +7 -7
  20. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  21. package/build/commonjs/Button/index.js +20 -0
  22. package/build/commonjs/Button/index.js.map +1 -1
  23. package/build/commonjs/Button/useVariantStyleMap.js +5 -7
  24. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  25. package/build/commonjs/ButtonBase/index.js +2 -2
  26. package/build/commonjs/ButtonBase/index.js.map +1 -1
  27. package/build/commonjs/Checkbox/Checkbox.js +5 -2
  28. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  29. package/build/commonjs/Checkbox/index.js +8 -0
  30. package/build/commonjs/Checkbox/index.js.map +1 -1
  31. package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
  32. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  33. package/build/commonjs/Chip/Chip.js +21 -14
  34. package/build/commonjs/Chip/Chip.js.map +1 -1
  35. package/build/commonjs/Chip/ChipProps.js +3 -1
  36. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  37. package/build/commonjs/Chip/index.js +20 -0
  38. package/build/commonjs/Chip/index.js.map +1 -1
  39. package/build/commonjs/Chip/useChipStyle.js +31 -37
  40. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  41. package/build/commonjs/Dialog/Dialog.js +7 -8
  42. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  43. package/build/commonjs/Dialog/DialogProps.js +1 -1
  44. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  45. package/build/commonjs/Dialog/index.js +8 -0
  46. package/build/commonjs/Dialog/index.js.map +1 -1
  47. package/build/commonjs/Dialog/useDialogSectionStyle.js +5 -5
  48. package/build/commonjs/Dialog/useDialogSectionStyle.js.map +1 -1
  49. package/build/commonjs/Dialog/useDialogStyle.js +9 -8
  50. package/build/commonjs/Dialog/useDialogStyle.js.map +1 -1
  51. package/build/commonjs/DialogContent/DialogContent.js +1 -2
  52. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  53. package/build/commonjs/DialogTitle/BackButton.js +47 -0
  54. package/build/commonjs/DialogTitle/BackButton.js.map +1 -0
  55. package/build/commonjs/DialogTitle/CloseButton.js +45 -0
  56. package/build/commonjs/DialogTitle/CloseButton.js.map +1 -0
  57. package/build/commonjs/DialogTitle/DialogTitle.js +11 -4
  58. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  59. package/build/commonjs/Divider/Divider.js +18 -10
  60. package/build/commonjs/Divider/Divider.js.map +1 -1
  61. package/build/commonjs/Divider/DividerProps.js +4 -4
  62. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  63. package/build/commonjs/Divider/index.js +14 -0
  64. package/build/commonjs/Divider/index.js.map +1 -1
  65. package/build/commonjs/Empty/Empty.js +1 -2
  66. package/build/commonjs/Empty/Empty.js.map +1 -1
  67. package/build/commonjs/Flexbox/Flexbox.js +2 -0
  68. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  69. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  70. package/build/commonjs/IconButton/index.js +8 -0
  71. package/build/commonjs/IconButton/index.js.map +1 -1
  72. package/build/commonjs/ListItem/ListItem.js +47 -25
  73. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  74. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  75. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
  76. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  77. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  78. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  79. package/build/commonjs/ListItemText/ListItemText.js +20 -21
  80. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  81. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  82. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  83. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  84. package/build/commonjs/Pagination/NumberPagination.js +1 -1
  85. package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
  86. package/build/commonjs/Pagination/Pagination.js +2 -0
  87. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  88. package/build/commonjs/Pagination/PaginationProps.js +3 -1
  89. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  90. package/build/commonjs/Pagination/index.js +14 -0
  91. package/build/commonjs/Pagination/index.js.map +1 -1
  92. package/build/commonjs/PaginationItem/PaginationItem.js +32 -22
  93. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  94. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  95. package/build/commonjs/Radio/Radio.js +6 -2
  96. package/build/commonjs/Radio/Radio.js.map +1 -1
  97. package/build/commonjs/Section/Section.js +32 -0
  98. package/build/commonjs/Section/Section.js.map +1 -0
  99. package/build/commonjs/Section/SectionProps.js +2 -0
  100. package/build/commonjs/Section/SectionProps.js.map +1 -0
  101. package/build/commonjs/Section/index.js +16 -0
  102. package/build/commonjs/Section/index.js.map +1 -0
  103. package/build/commonjs/ShadowView/ShadowView.native.js +4 -0
  104. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  105. package/build/commonjs/Snackbar/index.js +8 -0
  106. package/build/commonjs/Snackbar/index.js.map +1 -1
  107. package/build/commonjs/SnackbarContent/SnackbarContent.js +27 -12
  108. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  109. package/build/commonjs/SvgIcon/index.js +14 -0
  110. package/build/commonjs/SvgIcon/index.js.map +1 -1
  111. package/build/commonjs/Tab/useVariantStyleMap.js +3 -3
  112. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
  113. package/build/commonjs/Tabs/Tabs.js +6 -1
  114. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  115. package/build/commonjs/Tabs/index.js +14 -0
  116. package/build/commonjs/Tabs/index.js.map +1 -1
  117. package/build/commonjs/Tabs/useTabsStyle.js +42 -0
  118. package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
  119. package/build/commonjs/TextField/TextField.js +1 -1
  120. package/build/commonjs/TextField/TextField.js.map +1 -1
  121. package/build/commonjs/TextField/index.js +8 -0
  122. package/build/commonjs/TextField/index.js.map +1 -1
  123. package/build/commonjs/TextField/useVariantStyleMap.js +2 -2
  124. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
  125. package/build/commonjs/Toolbar/BackButton/BackButton.js +47 -0
  126. package/build/commonjs/Toolbar/BackButton/BackButton.js.map +1 -0
  127. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js +2 -0
  128. package/build/commonjs/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  129. package/build/commonjs/Toolbar/BackButton/index.js +16 -0
  130. package/build/commonjs/Toolbar/BackButton/index.js.map +1 -0
  131. package/build/commonjs/Toolbar/Toolbar.js +8 -4
  132. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  133. package/build/commonjs/Toolbar/index.js +8 -0
  134. package/build/commonjs/Toolbar/index.js.map +1 -1
  135. package/build/commonjs/Tooltip/Beaks/index.js +32 -0
  136. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
  137. package/build/commonjs/Tooltip/Tooltip.js +11 -24
  138. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  139. package/build/commonjs/Tooltip/index.js +39 -0
  140. package/build/commonjs/Tooltip/index.js.map +1 -1
  141. package/build/commonjs/Typography/Typography.js +9 -2
  142. package/build/commonjs/Typography/Typography.js.map +1 -1
  143. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  144. package/build/commonjs/Typography/index.js +8 -0
  145. package/build/commonjs/Typography/index.js.map +1 -1
  146. package/build/commonjs/hooks/useBreakpointUp.js +4 -1
  147. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  148. package/build/commonjs/hooks/useContentContainerStyle.js +21 -28
  149. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  150. package/build/commonjs/index.js +21 -0
  151. package/build/commonjs/index.js.map +1 -1
  152. package/build/commonjs/internal/icons/ChevronLeft.js +4 -2
  153. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  154. package/build/commonjs/internal/icons/ChevronRight.js +4 -2
  155. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  156. package/build/commonjs/internal/icons/Close.js +4 -2
  157. package/build/commonjs/internal/icons/Close.js.map +1 -1
  158. package/build/module/Accordion/Accordion.js +4 -1
  159. package/build/module/Accordion/Accordion.js.map +1 -1
  160. package/build/module/Accordion/index.js +1 -0
  161. package/build/module/Accordion/index.js.map +1 -1
  162. package/build/module/Accordion/useVariantStyleMap.js +11 -10
  163. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  164. package/build/module/AppBar/AppBar.js +5 -1
  165. package/build/module/AppBar/AppBar.js.map +1 -1
  166. package/build/module/AppBar/index.js +1 -0
  167. package/build/module/AppBar/index.js.map +1 -1
  168. package/build/module/Badge/index.js +1 -0
  169. package/build/module/Badge/index.js.map +1 -1
  170. package/build/module/Badge/useVariantStyleMap.js +2 -2
  171. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  172. package/build/module/BottomSheetTitle/BottomSheetTitle.js +1 -0
  173. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  174. package/build/module/Button/Button.js +16 -4
  175. package/build/module/Button/Button.js.map +1 -1
  176. package/build/module/Button/ButtonProps.js +3 -3
  177. package/build/module/Button/ButtonProps.js.map +1 -1
  178. package/build/module/Button/index.js +1 -0
  179. package/build/module/Button/index.js.map +1 -1
  180. package/build/module/Button/useVariantStyleMap.js +5 -7
  181. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  182. package/build/module/ButtonBase/index.js +1 -1
  183. package/build/module/ButtonBase/index.js.map +1 -1
  184. package/build/module/Checkbox/Checkbox.js +5 -2
  185. package/build/module/Checkbox/Checkbox.js.map +1 -1
  186. package/build/module/Checkbox/index.js +1 -0
  187. package/build/module/Checkbox/index.js.map +1 -1
  188. package/build/module/Checkbox/useVariantStyleMap.js +6 -2
  189. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  190. package/build/module/Chip/Chip.js +17 -13
  191. package/build/module/Chip/Chip.js.map +1 -1
  192. package/build/module/Chip/ChipProps.js +1 -0
  193. package/build/module/Chip/ChipProps.js.map +1 -1
  194. package/build/module/Chip/index.js +1 -0
  195. package/build/module/Chip/index.js.map +1 -1
  196. package/build/module/Chip/useChipStyle.js +31 -36
  197. package/build/module/Chip/useChipStyle.js.map +1 -1
  198. package/build/module/Dialog/Dialog.js +7 -8
  199. package/build/module/Dialog/Dialog.js.map +1 -1
  200. package/build/module/Dialog/DialogProps.js +1 -1
  201. package/build/module/Dialog/DialogProps.js.map +1 -1
  202. package/build/module/Dialog/index.js +1 -0
  203. package/build/module/Dialog/index.js.map +1 -1
  204. package/build/module/Dialog/useDialogSectionStyle.js +5 -5
  205. package/build/module/Dialog/useDialogSectionStyle.js.map +1 -1
  206. package/build/module/Dialog/useDialogStyle.js +9 -8
  207. package/build/module/Dialog/useDialogStyle.js.map +1 -1
  208. package/build/module/DialogContent/DialogContent.js +1 -2
  209. package/build/module/DialogContent/DialogContent.js.map +1 -1
  210. package/build/module/DialogTitle/BackButton.js +32 -0
  211. package/build/module/DialogTitle/BackButton.js.map +1 -0
  212. package/build/module/DialogTitle/CloseButton.js +30 -0
  213. package/build/module/DialogTitle/CloseButton.js.map +1 -0
  214. package/build/module/DialogTitle/DialogTitle.js +8 -3
  215. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  216. package/build/module/Divider/Divider.js +8 -1
  217. package/build/module/Divider/Divider.js.map +1 -1
  218. package/build/module/Divider/DividerProps.js +2 -2
  219. package/build/module/Divider/DividerProps.js.map +1 -1
  220. package/build/module/Divider/index.js +1 -0
  221. package/build/module/Divider/index.js.map +1 -1
  222. package/build/module/Empty/Empty.js +1 -2
  223. package/build/module/Empty/Empty.js.map +1 -1
  224. package/build/module/Flexbox/Flexbox.js +2 -0
  225. package/build/module/Flexbox/Flexbox.js.map +1 -1
  226. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  227. package/build/module/IconButton/index.js +1 -0
  228. package/build/module/IconButton/index.js.map +1 -1
  229. package/build/module/ListItem/ListItem.js +45 -27
  230. package/build/module/ListItem/ListItem.js.map +1 -1
  231. package/build/module/ListItem/ListItemProps.js.map +1 -1
  232. package/build/module/ListItemIcon/ListItemIcon.js +1 -2
  233. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  234. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  235. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  236. package/build/module/ListItemText/ListItemText.js +17 -19
  237. package/build/module/ListItemText/ListItemText.js.map +1 -1
  238. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  239. package/build/module/ListSubheader/ListSubheader.js +1 -1
  240. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  241. package/build/module/Pagination/NumberPagination.js +1 -1
  242. package/build/module/Pagination/NumberPagination.js.map +1 -1
  243. package/build/module/Pagination/Pagination.js +2 -0
  244. package/build/module/Pagination/Pagination.js.map +1 -1
  245. package/build/module/Pagination/PaginationProps.js +1 -0
  246. package/build/module/Pagination/PaginationProps.js.map +1 -1
  247. package/build/module/Pagination/index.js +1 -0
  248. package/build/module/Pagination/index.js.map +1 -1
  249. package/build/module/PaginationItem/PaginationItem.js +28 -21
  250. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  251. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  252. package/build/module/Radio/Radio.js +5 -2
  253. package/build/module/Radio/Radio.js.map +1 -1
  254. package/build/module/Section/Section.js +19 -0
  255. package/build/module/Section/Section.js.map +1 -0
  256. package/build/module/Section/SectionProps.js +2 -0
  257. package/build/module/Section/SectionProps.js.map +1 -0
  258. package/build/module/Section/index.js +2 -0
  259. package/build/module/Section/index.js.map +1 -0
  260. package/build/module/ShadowView/ShadowView.native.js +4 -0
  261. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  262. package/build/module/Snackbar/index.js +1 -0
  263. package/build/module/Snackbar/index.js.map +1 -1
  264. package/build/module/SnackbarContent/SnackbarContent.js +27 -12
  265. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  266. package/build/module/SvgIcon/index.js +1 -0
  267. package/build/module/SvgIcon/index.js.map +1 -1
  268. package/build/module/Tab/useVariantStyleMap.js +3 -3
  269. package/build/module/Tab/useVariantStyleMap.js.map +1 -1
  270. package/build/module/Tabs/Tabs.js +5 -1
  271. package/build/module/Tabs/Tabs.js.map +1 -1
  272. package/build/module/Tabs/index.js +1 -0
  273. package/build/module/Tabs/index.js.map +1 -1
  274. package/build/module/Tabs/useTabsStyle.js +32 -0
  275. package/build/module/Tabs/useTabsStyle.js.map +1 -0
  276. package/build/module/TextField/TextField.js +1 -1
  277. package/build/module/TextField/TextField.js.map +1 -1
  278. package/build/module/TextField/index.js +1 -0
  279. package/build/module/TextField/index.js.map +1 -1
  280. package/build/module/TextField/useVariantStyleMap.js +2 -2
  281. package/build/module/TextField/useVariantStyleMap.js.map +1 -1
  282. package/build/module/Toolbar/BackButton/BackButton.js +32 -0
  283. package/build/module/Toolbar/BackButton/BackButton.js.map +1 -0
  284. package/build/module/Toolbar/BackButton/BackButtonProps.js +2 -0
  285. package/build/module/Toolbar/BackButton/BackButtonProps.js.map +1 -0
  286. package/build/module/Toolbar/BackButton/index.js +2 -0
  287. package/build/module/Toolbar/BackButton/index.js.map +1 -0
  288. package/build/module/Toolbar/Toolbar.js +7 -3
  289. package/build/module/Toolbar/Toolbar.js.map +1 -1
  290. package/build/module/Toolbar/index.js +1 -0
  291. package/build/module/Toolbar/index.js.map +1 -1
  292. package/build/module/Tooltip/Beaks/index.js +4 -0
  293. package/build/module/Tooltip/Beaks/index.js.map +1 -1
  294. package/build/module/Tooltip/Tooltip.js +4 -16
  295. package/build/module/Tooltip/Tooltip.js.map +1 -1
  296. package/build/module/Tooltip/index.js +2 -0
  297. package/build/module/Tooltip/index.js.map +1 -1
  298. package/build/module/Typography/Typography.js +9 -2
  299. package/build/module/Typography/Typography.js.map +1 -1
  300. package/build/module/Typography/TypographyProps.js.map +1 -1
  301. package/build/module/Typography/index.js +1 -0
  302. package/build/module/Typography/index.js.map +1 -1
  303. package/build/module/hooks/useBreakpointUp.js +4 -1
  304. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  305. package/build/module/hooks/useContentContainerStyle.js +23 -26
  306. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  307. package/build/module/index.js +2 -0
  308. package/build/module/index.js.map +1 -1
  309. package/build/module/internal/icons/ChevronLeft.js +4 -2
  310. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  311. package/build/module/internal/icons/ChevronRight.js +4 -2
  312. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  313. package/build/module/internal/icons/Close.js +4 -2
  314. package/build/module/internal/icons/Close.js.map +1 -1
  315. package/build/typescript/Accordion/index.d.ts +1 -0
  316. package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
  317. package/build/typescript/AppBar/index.d.ts +1 -0
  318. package/build/typescript/Badge/index.d.ts +2 -1
  319. package/build/typescript/Button/ButtonProps.d.ts +11 -6
  320. package/build/typescript/Button/index.d.ts +1 -0
  321. package/build/typescript/ButtonBase/index.d.ts +1 -1
  322. package/build/typescript/Checkbox/index.d.ts +1 -0
  323. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
  324. package/build/typescript/Chip/ChipProps.d.ts +11 -4
  325. package/build/typescript/Chip/index.d.ts +1 -0
  326. package/build/typescript/Chip/useChipStyle.d.ts +4 -3
  327. package/build/typescript/Dialog/DialogProps.d.ts +1 -6
  328. package/build/typescript/Dialog/index.d.ts +1 -0
  329. package/build/typescript/Dialog/useDialogStyle.d.ts +1 -1
  330. package/build/typescript/DialogTitle/BackButton.d.ts +6 -0
  331. package/build/typescript/DialogTitle/CloseButton.d.ts +6 -0
  332. package/build/typescript/DialogTitle/DialogTitle.d.ts +8 -1
  333. package/build/typescript/Divider/DividerProps.d.ts +4 -4
  334. package/build/typescript/Divider/index.d.ts +1 -0
  335. package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
  336. package/build/typescript/IconButton/index.d.ts +1 -0
  337. package/build/typescript/ListItem/ListItem.d.ts +1 -1
  338. package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
  339. package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
  340. package/build/typescript/Pagination/PaginationProps.d.ts +12 -0
  341. package/build/typescript/Pagination/index.d.ts +2 -1
  342. package/build/typescript/PaginationItem/PaginationItemProps.d.ts +6 -0
  343. package/build/typescript/Section/Section.d.ts +3 -0
  344. package/build/typescript/Section/SectionProps.d.ts +6 -0
  345. package/build/typescript/Section/index.d.ts +2 -0
  346. package/build/typescript/Snackbar/index.d.ts +1 -0
  347. package/build/typescript/SvgIcon/index.d.ts +1 -0
  348. package/build/typescript/Tabs/index.d.ts +1 -0
  349. package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
  350. package/build/typescript/TextField/index.d.ts +1 -0
  351. package/build/typescript/Toolbar/BackButton/BackButton.d.ts +3 -0
  352. package/build/typescript/Toolbar/BackButton/BackButtonProps.d.ts +4 -0
  353. package/build/typescript/Toolbar/BackButton/index.d.ts +2 -0
  354. package/build/typescript/Toolbar/Toolbar.d.ts +6 -1
  355. package/build/typescript/Toolbar/index.d.ts +1 -0
  356. package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
  357. package/build/typescript/Tooltip/index.d.ts +3 -1
  358. package/build/typescript/Typography/TypographyProps.d.ts +4 -0
  359. package/build/typescript/Typography/index.d.ts +1 -0
  360. package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
  361. package/build/typescript/index.d.ts +2 -0
  362. package/package.json +3 -3
  363. package/src/Accordion/Accordion.tsx +4 -1
  364. package/src/Accordion/index.ts +1 -0
  365. package/src/Accordion/useVariantStyleMap.ts +12 -10
  366. package/src/AppBar/AppBar.tsx +4 -0
  367. package/src/AppBar/index.ts +1 -0
  368. package/src/Badge/index.ts +12 -1
  369. package/src/Badge/useVariantStyleMap.ts +2 -2
  370. package/src/BottomSheetTitle/BottomSheetTitle.tsx +1 -0
  371. package/src/Button/Button.tsx +19 -4
  372. package/src/Button/ButtonProps.ts +12 -6
  373. package/src/Button/index.ts +1 -0
  374. package/src/Button/useVariantStyleMap.ts +3 -7
  375. package/src/ButtonBase/index.ts +1 -1
  376. package/src/Checkbox/Checkbox.tsx +12 -9
  377. package/src/Checkbox/index.ts +1 -0
  378. package/src/Checkbox/useVariantStyleMap.ts +6 -1
  379. package/src/Chip/Chip.tsx +20 -13
  380. package/src/Chip/ChipProps.ts +13 -4
  381. package/src/Chip/index.ts +1 -0
  382. package/src/Chip/useChipStyle.ts +36 -34
  383. package/src/Dialog/Dialog.tsx +7 -8
  384. package/src/Dialog/DialogProps.ts +1 -7
  385. package/src/Dialog/index.ts +1 -0
  386. package/src/Dialog/useDialogSectionStyle.ts +4 -4
  387. package/src/Dialog/useDialogStyle.ts +9 -7
  388. package/src/DialogContent/DialogContent.tsx +1 -2
  389. package/src/DialogTitle/BackButton.tsx +44 -0
  390. package/src/DialogTitle/CloseButton.tsx +42 -0
  391. package/src/DialogTitle/DialogTitle.tsx +9 -1
  392. package/src/Divider/Divider.tsx +6 -1
  393. package/src/Divider/DividerProps.ts +4 -4
  394. package/src/Divider/index.ts +1 -0
  395. package/src/Empty/Empty.tsx +1 -2
  396. package/src/Flexbox/Flexbox.tsx +2 -0
  397. package/src/Flexbox/FlexboxProps.ts +5 -0
  398. package/src/IconButton/index.ts +1 -0
  399. package/src/ListItem/ListItem.tsx +69 -28
  400. package/src/ListItem/ListItemProps.ts +5 -0
  401. package/src/ListItemIcon/ListItemIcon.tsx +1 -2
  402. package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
  403. package/src/ListItemText/ListItemText.tsx +20 -28
  404. package/src/ListItemText/ListItemTextProps.ts +2 -10
  405. package/src/ListSubheader/ListSubheader.tsx +1 -1
  406. package/src/Pagination/NumberPagination.tsx +1 -1
  407. package/src/Pagination/Pagination.tsx +3 -2
  408. package/src/Pagination/PaginationProps.ts +15 -0
  409. package/src/Pagination/index.ts +2 -1
  410. package/src/PaginationItem/PaginationItem.tsx +31 -24
  411. package/src/PaginationItem/PaginationItemProps.ts +7 -0
  412. package/src/Radio/Radio.tsx +8 -2
  413. package/src/Section/Section.tsx +26 -0
  414. package/src/Section/SectionProps.ts +6 -0
  415. package/src/Section/index.ts +2 -0
  416. package/src/ShadowView/ShadowView.native.tsx +4 -0
  417. package/src/Snackbar/index.ts +1 -0
  418. package/src/SnackbarContent/SnackbarContent.tsx +37 -18
  419. package/src/SvgIcon/index.ts +1 -0
  420. package/src/Tab/useVariantStyleMap.ts +3 -3
  421. package/src/Tabs/Tabs.tsx +4 -0
  422. package/src/Tabs/index.ts +1 -0
  423. package/src/Tabs/useTabsStyle.ts +38 -0
  424. package/src/TextField/TextField.tsx +1 -1
  425. package/src/TextField/index.tsx +1 -0
  426. package/src/TextField/useVariantStyleMap.ts +2 -2
  427. package/src/Toolbar/BackButton/BackButton.tsx +42 -0
  428. package/src/Toolbar/BackButton/BackButtonProps.ts +4 -0
  429. package/src/Toolbar/BackButton/index.ts +2 -0
  430. package/src/Toolbar/Toolbar.tsx +6 -1
  431. package/src/Toolbar/index.ts +1 -0
  432. package/src/Tooltip/Beaks/index.ts +4 -0
  433. package/src/Tooltip/Tooltip.tsx +5 -16
  434. package/src/Tooltip/index.ts +3 -1
  435. package/src/Typography/Typography.tsx +3 -1
  436. package/src/Typography/TypographyProps.ts +5 -0
  437. package/src/Typography/index.ts +1 -0
  438. package/src/hooks/useBreakpointUp.ts +3 -1
  439. package/src/hooks/useContentContainerStyle.ts +26 -34
  440. package/src/index.ts +3 -0
  441. package/src/internal/icons/ChevronLeft.tsx +4 -1
  442. package/src/internal/icons/ChevronRight.tsx +4 -1
  443. package/src/internal/icons/Close.tsx +4 -1
  444. package/build/commonjs/ButtonBase/LegacyButtonBase.js +0 -126
  445. package/build/commonjs/ButtonBase/LegacyButtonBase.js.map +0 -1
  446. package/build/commonjs/TextField/InputLabel.js +0 -163
  447. package/build/commonjs/TextField/InputLabel.js.map +0 -1
  448. package/build/module/ButtonBase/LegacyButtonBase.js +0 -106
  449. package/build/module/ButtonBase/LegacyButtonBase.js.map +0 -1
  450. package/build/module/TextField/InputLabel.js +0 -149
  451. package/build/module/TextField/InputLabel.js.map +0 -1
  452. package/build/typescript/ButtonBase/LegacyButtonBase.d.ts +0 -5
  453. package/build/typescript/TextField/InputLabel.d.ts +0 -33
  454. package/src/ButtonBase/LegacyButtonBase.tsx +0 -135
  455. package/src/TextField/InputLabel.tsx +0 -234
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react';
2
2
  import { useWindowDimensions } from 'react-native';
3
3
  import { useTheme } from '../styles';
4
- export default function useDialogStyle(size, fullScreen) {
4
+ export default function useDialogStyle(size) {
5
5
  const theme = useTheme();
6
6
  const {
7
7
  height: windowHeight,
@@ -21,28 +21,29 @@ export default function useDialogStyle(size, fullScreen) {
21
21
  maxWidth: 512,
22
22
  minHeight: 360,
23
23
  width: 512
24
- }
24
+ },
25
+ full: {}
25
26
  };
26
- const containerPaddingVertical = theme.spacing(6);
27
+ const containerPaddingVertical = 24;
27
28
  const dialogMaxHeight = windowHeight - containerPaddingVertical * 2;
28
29
  const dialogMaxWidth = (_sizeStyleMap$size = sizeStyleMap[size]) === null || _sizeStyleMap$size === void 0 ? void 0 : _sizeStyleMap$size.maxWidth;
30
+ const isFullScreen = size === 'full';
29
31
  return {
30
32
  root: {
31
33
  alignItems: 'center',
32
34
  justifyContent: 'center',
33
35
  zIndex: theme.zIndex.dialog
34
36
  },
35
- container: fullScreen ? {
37
+ container: isFullScreen ? {
36
38
  height: '100%',
37
39
  width: '100%'
38
40
  } : {
39
41
  alignItems: 'center',
40
- // TODO: need to refactor breakpoints.
41
- paddingHorizontal: theme.spacing(windowWidth > 320 ? 6 : 4),
42
+ paddingHorizontal: windowWidth > theme.breakpoints.values.xs ? 24 : 16,
42
43
  paddingVertical: containerPaddingVertical,
43
44
  width: '100%'
44
45
  },
45
- paper: fullScreen ? {
46
+ paper: isFullScreen ? {
46
47
  backgroundColor: theme.palette.surface.base,
47
48
  height: '100%',
48
49
  width: '100%'
@@ -64,6 +65,6 @@ export default function useDialogStyle(size, fullScreen) {
64
65
  width: '100%'
65
66
  }
66
67
  };
67
- }, [theme, windowHeight, windowWidth, size, fullScreen]);
68
+ }, [theme, windowHeight, windowWidth, size]);
68
69
  }
69
70
  //# sourceMappingURL=useDialogStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","useWindowDimensions","useTheme","useDialogStyle","size","fullScreen","theme","height","windowHeight","width","windowWidth","sizeStyleMap","small","maxWidth","medium","large","minHeight","containerPaddingVertical","spacing","dialogMaxHeight","dialogMaxWidth","root","alignItems","justifyContent","zIndex","dialog","container","paddingHorizontal","paddingVertical","paper","backgroundColor","palette","surface","base","borderRadius","shape","radius","xl","maxHeight","overflow","topElementContainer","topElementContent","position","bottom"],"sources":["useDialogStyle.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { useWindowDimensions } from 'react-native';\nimport type { FountainUiStyle, NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport type { DialogSize } from './DialogProps';\n\ntype DialogStyleKeys =\n | 'root'\n | 'container'\n | 'paper'\n | 'topElementContainer'\n | 'topElementContent';\n\ntype DialogStyles = NamedStylesStringUnion<DialogStyleKeys>;\n\nexport default function useDialogStyle(size: DialogSize, fullScreen: boolean): DialogStyles {\n const theme = useTheme();\n\n const {\n height: windowHeight,\n width: windowWidth,\n } = useWindowDimensions();\n\n return useMemo(() => {\n const sizeStyleMap: Record<DialogSize, FountainUiStyle> = {\n small: {\n maxWidth: 260,\n },\n medium: {\n maxWidth: 400,\n },\n large: {\n maxWidth: 512,\n minHeight: 360,\n width: 512,\n },\n };\n\n const containerPaddingVertical = theme.spacing(6);\n const dialogMaxHeight = windowHeight - containerPaddingVertical * 2;\n const dialogMaxWidth = sizeStyleMap[size]?.maxWidth;\n\n return {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: theme.zIndex.dialog,\n },\n container: fullScreen ? {\n height: '100%',\n width: '100%',\n } : {\n alignItems: 'center',\n // TODO: need to refactor breakpoints.\n paddingHorizontal: theme.spacing(windowWidth > 320 ? 6 : 4),\n paddingVertical: containerPaddingVertical,\n width: '100%',\n },\n paper: fullScreen ? {\n backgroundColor: theme.palette.surface.base,\n height: '100%',\n width: '100%',\n } : {\n backgroundColor: theme.palette.surface.base,\n borderRadius: theme.shape.radius.xl,\n maxHeight: dialogMaxHeight,\n overflow: 'hidden',\n width: '100%',\n ...sizeStyleMap[size],\n },\n topElementContainer: {\n maxWidth: dialogMaxWidth,\n width: '100%',\n },\n topElementContent: {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n },\n };\n }, [theme, windowHeight, windowWidth, size, fullScreen]);\n}\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,mBAAT,QAAoC,cAApC;AAEA,SAASC,QAAT,QAAyB,WAAzB;AAYA,eAAe,SAASC,cAAT,CAAwBC,IAAxB,EAA0CC,UAA1C,EAA6E;EACxF,MAAMC,KAAK,GAAGJ,QAAQ,EAAtB;EAEA,MAAM;IACFK,MAAM,EAAEC,YADN;IAEFC,KAAK,EAAEC;EAFL,IAGFT,mBAAmB,EAHvB;EAKA,OAAOD,OAAO,CAAC,MAAM;IAAA;;IACjB,MAAMW,YAAiD,GAAG;MACtDC,KAAK,EAAE;QACHC,QAAQ,EAAE;MADP,CAD+C;MAItDC,MAAM,EAAE;QACJD,QAAQ,EAAE;MADN,CAJ8C;MAOtDE,KAAK,EAAE;QACHF,QAAQ,EAAE,GADP;QAEHG,SAAS,EAAE,GAFR;QAGHP,KAAK,EAAE;MAHJ;IAP+C,CAA1D;IAcA,MAAMQ,wBAAwB,GAAGX,KAAK,CAACY,OAAN,CAAc,CAAd,CAAjC;IACA,MAAMC,eAAe,GAAGX,YAAY,GAAGS,wBAAwB,GAAG,CAAlE;IACA,MAAMG,cAAc,yBAAGT,YAAY,CAACP,IAAD,CAAf,uDAAG,mBAAoBS,QAA3C;IAEA,OAAO;MACHQ,IAAI,EAAE;QACFC,UAAU,EAAE,QADV;QAEFC,cAAc,EAAE,QAFd;QAGFC,MAAM,EAAElB,KAAK,CAACkB,MAAN,CAAaC;MAHnB,CADH;MAMHC,SAAS,EAAErB,UAAU,GAAG;QACpBE,MAAM,EAAE,MADY;QAEpBE,KAAK,EAAE;MAFa,CAAH,GAGjB;QACAa,UAAU,EAAE,QADZ;QAEA;QACAK,iBAAiB,EAAErB,KAAK,CAACY,OAAN,CAAcR,WAAW,GAAG,GAAd,GAAoB,CAApB,GAAwB,CAAtC,CAHnB;QAIAkB,eAAe,EAAEX,wBAJjB;QAKAR,KAAK,EAAE;MALP,CATD;MAgBHoB,KAAK,EAAExB,UAAU,GAAG;QAChByB,eAAe,EAAExB,KAAK,CAACyB,OAAN,CAAcC,OAAd,CAAsBC,IADvB;QAEhB1B,MAAM,EAAE,MAFQ;QAGhBE,KAAK,EAAE;MAHS,CAAH,GAIb;QACAqB,eAAe,EAAExB,KAAK,CAACyB,OAAN,CAAcC,OAAd,CAAsBC,IADvC;QAEAC,YAAY,EAAE5B,KAAK,CAAC6B,KAAN,CAAYC,MAAZ,CAAmBC,EAFjC;QAGAC,SAAS,EAAEnB,eAHX;QAIAoB,QAAQ,EAAE,QAJV;QAKA9B,KAAK,EAAE,MALP;QAMA,GAAGE,YAAY,CAACP,IAAD;MANf,CApBD;MA4BHoC,mBAAmB,EAAE;QACjB3B,QAAQ,EAAEO,cADO;QAEjBX,KAAK,EAAE;MAFU,CA5BlB;MAgCHgC,iBAAiB,EAAE;QACfC,QAAQ,EAAE,UADK;QAEfC,MAAM,EAAE,CAFO;QAGflC,KAAK,EAAE;MAHQ;IAhChB,CAAP;EAsCH,CAzDa,EAyDX,CAACH,KAAD,EAAQE,YAAR,EAAsBE,WAAtB,EAAmCN,IAAnC,EAAyCC,UAAzC,CAzDW,CAAd;AA0DH"}
1
+ {"version":3,"names":["useMemo","useWindowDimensions","useTheme","useDialogStyle","size","theme","height","windowHeight","width","windowWidth","sizeStyleMap","small","maxWidth","medium","large","minHeight","full","containerPaddingVertical","dialogMaxHeight","dialogMaxWidth","isFullScreen","root","alignItems","justifyContent","zIndex","dialog","container","paddingHorizontal","breakpoints","values","xs","paddingVertical","paper","backgroundColor","palette","surface","base","borderRadius","shape","radius","xl","maxHeight","overflow","topElementContainer","topElementContent","position","bottom"],"sources":["useDialogStyle.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { useWindowDimensions } from 'react-native';\nimport type { FountainUiStyle, NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { useTheme } from '../styles';\nimport type { DialogSize } from './DialogProps';\n\ntype DialogStyleKeys =\n | 'root'\n | 'container'\n | 'paper'\n | 'topElementContainer'\n | 'topElementContent';\n\ntype DialogStyles = NamedStylesStringUnion<DialogStyleKeys>;\n\nexport default function useDialogStyle(size: DialogSize): DialogStyles {\n const theme = useTheme();\n\n const {\n height: windowHeight,\n width: windowWidth,\n } = useWindowDimensions();\n\n return useMemo(() => {\n const sizeStyleMap: Record<DialogSize, FountainUiStyle> = {\n small: {\n maxWidth: 260,\n },\n medium: {\n maxWidth: 400,\n },\n large: {\n maxWidth: 512,\n minHeight: 360,\n width: 512,\n },\n full: {},\n };\n\n const containerPaddingVertical = 24;\n const dialogMaxHeight = windowHeight - containerPaddingVertical * 2;\n const dialogMaxWidth = sizeStyleMap[size]?.maxWidth;\n\n const isFullScreen = size === 'full';\n\n return {\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: theme.zIndex.dialog,\n },\n container: isFullScreen ? {\n height: '100%',\n width: '100%',\n } : {\n alignItems: 'center',\n paddingHorizontal: windowWidth > theme.breakpoints.values.xs ? 24 : 16,\n paddingVertical: containerPaddingVertical,\n width: '100%',\n },\n paper: isFullScreen ? {\n backgroundColor: theme.palette.surface.base,\n height: '100%',\n width: '100%',\n } : {\n backgroundColor: theme.palette.surface.base,\n borderRadius: theme.shape.radius.xl,\n maxHeight: dialogMaxHeight,\n overflow: 'hidden',\n width: '100%',\n ...sizeStyleMap[size],\n },\n topElementContainer: {\n maxWidth: dialogMaxWidth,\n width: '100%',\n },\n topElementContent: {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n },\n };\n }, [theme, windowHeight, windowWidth, size]);\n}\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,mBAA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AE5B,KAAK,CAAC6B,OAAN,CAAcC,OAAd,CAAsBC,IADrB;QAElB9B,MAAM,EAAE,MAFU;QAGlBE,KAAK,EAAE;MAHW,CAAH,GAIf;QACAyB,eAAe,EAAE5B,KAAK,CAAC6B,OAAN,CAAcC,OAAd,CAAsBC,IADvC;QAEAC,YAAY,EAAEhC,KAAK,CAACiC,KAAN,CAAYC,MAAZ,CAAmBC,EAFjC;QAGAC,SAAS,EAAEvB,eAHX;QAIAwB,QAAQ,EAAE,QAJV;QAKAlC,KAAK,EAAE,MALP;QAMA,GAAGE,YAAY,CAACN,IAAD;MANf,CAnBD;MA2BHuC,mBAAmB,EAAE;QACjB/B,QAAQ,EAAEO,cADO;QAEjBX,KAAK,EAAE;MAFU,CA3BlB;MA+BHoC,iBAAiB,EAAE;QACfC,QAAQ,EAAE,UADK;QAEfC,MAAM,EAAE,CAFO;QAGftC,KAAK,EAAE;MAHQ;IA/BhB,CAAP;EAqCH,CA3Da,EA2DX,CAACH,KAAD,EAAQE,YAAR,EAAsBE,WAAtB,EAAmCL,IAAnC,CA3DW,CAAd;AA4DH"}
@@ -28,8 +28,7 @@ export default function DialogContent(props) {
28
28
  const sectionStyle = useDialogSectionStyle();
29
29
  const rootStyle = css([styles.root, sectionStyle, styleProp]);
30
30
  const contentFontStyle = createFontStyle(theme, {
31
- // TODO: select typography.
32
- // selector: (typography) => typography.body2.regular,
31
+ selector: typography => typography.body2.regular,
33
32
  color: theme.palette.text.base
34
33
  });
35
34
  const contentStyle = css([contentFontStyle, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","ScrollView","Text","useDialogSectionStyle","createFontStyle","css","useTheme","useStyles","theme","root","flexGrow","flexShrink","marginVertical","spacing","DialogContent","props","children","style","styleProp","textAlign","otherProps","styles","sectionStyle","rootStyle","contentFontStyle","color","palette","text","base","contentStyle"],"sources":["DialogContent.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, Text, TextStyle } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useDialogSectionStyle } from '../Dialog';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type DialogContentProps from './DialogContentProps';\n\ntype DialogContentStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<DialogContentStyles> = function (): DialogContentStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n marginVertical: theme.spacing(4),\n },\n };\n};\n\nexport default function DialogContent(props: DialogContentProps) {\n const {\n children,\n style: styleProp,\n textAlign = 'left' as TextStyle['textAlign'],\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const sectionStyle = useDialogSectionStyle();\n\n const rootStyle = css([\n styles.root,\n sectionStyle,\n styleProp,\n ]);\n\n const contentFontStyle = createFontStyle(theme, {\n // TODO: select typography.\n // selector: (typography) => typography.body2.regular,\n color: theme.palette.text.base,\n });\n\n const contentStyle = css([\n contentFontStyle,\n { textAlign },\n ]);\n\n return (\n <ScrollView\n bounces={false}\n style={rootStyle}\n {...otherProps}\n >\n {typeof children === 'string' ? (\n <Text style={contentStyle}>\n {children}\n </Text>\n ) : (children)}\n </ScrollView>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,EAAqBC,IAArB,QAA4C,cAA5C;AAEA,SAASC,qBAAT,QAAsC,WAAtC;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;;AAKA,MAAMC,SAAyC,GAAG,YAAiC;EAC/E,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,OAAO;IACHG,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE,CAFV;MAGFC,cAAc,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd;IAHd;EADH,CAAP;AAOH,CAVD;;AAYA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAFL;IAGFC,SAAS,GAAG,MAHV;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMP,KAAK,GAAGF,QAAQ,EAAtB;EAEA,MAAMe,MAAM,GAAGd,SAAS,EAAxB;EAEA,MAAMe,YAAY,GAAGnB,qBAAqB,EAA1C;EAEA,MAAMoB,SAAS,GAAGlB,GAAG,CAAC,CAClBgB,MAAM,CAACZ,IADW,EAElBa,YAFkB,EAGlBJ,SAHkB,CAAD,CAArB;EAMA,MAAMM,gBAAgB,GAAGpB,eAAe,CAACI,KAAD,EAAQ;IAC5C;IACA;IACAiB,KAAK,EAAEjB,KAAK,CAACkB,OAAN,CAAcC,IAAd,CAAmBC;EAHkB,CAAR,CAAxC;EAMA,MAAMC,YAAY,GAAGxB,GAAG,CAAC,CACrBmB,gBADqB,EAErB;IAAEL;EAAF,CAFqB,CAAD,CAAxB;EAKA,oBACI,oBAAC,UAAD;IACI,OAAO,EAAE,KADb;IAEI,KAAK,EAAEI;EAFX,GAGQH,UAHR,GAKK,OAAOJ,QAAP,KAAoB,QAApB,gBACG,oBAAC,IAAD;IAAM,KAAK,EAAEa;EAAb,GACKb,QADL,CADH,GAIIA,QATT,CADJ;AAaH;AAAA"}
1
+ {"version":3,"names":["React","ScrollView","Text","useDialogSectionStyle","createFontStyle","css","useTheme","useStyles","theme","root","flexGrow","flexShrink","marginVertical","spacing","DialogContent","props","children","style","styleProp","textAlign","otherProps","styles","sectionStyle","rootStyle","contentFontStyle","selector","typography","body2","regular","color","palette","text","base","contentStyle"],"sources":["DialogContent.tsx"],"sourcesContent":["import React from 'react';\nimport { ScrollView, Text, TextStyle } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useDialogSectionStyle } from '../Dialog';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type DialogContentProps from './DialogContentProps';\n\ntype DialogContentStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<DialogContentStyles> = function (): DialogContentStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n marginVertical: theme.spacing(4),\n },\n };\n};\n\nexport default function DialogContent(props: DialogContentProps) {\n const {\n children,\n style: styleProp,\n textAlign = 'left' as TextStyle['textAlign'],\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const sectionStyle = useDialogSectionStyle();\n\n const rootStyle = css([\n styles.root,\n sectionStyle,\n styleProp,\n ]);\n\n const contentFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.body2.regular,\n color: theme.palette.text.base,\n });\n\n const contentStyle = css([\n contentFontStyle,\n { textAlign },\n ]);\n\n return (\n <ScrollView\n bounces={false}\n style={rootStyle}\n {...otherProps}\n >\n {typeof children === 'string' ? (\n <Text style={contentStyle}>\n {children}\n </Text>\n ) : (children)}\n </ScrollView>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,EAAqBC,IAArB,QAA4C,cAA5C;AAEA,SAASC,qBAAT,QAAsC,WAAtC;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;;AAKA,MAAMC,SAAyC,GAAG,YAAiC;EAC/E,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,OAAO;IACHG,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE,CAFV;MAGFC,cAAc,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd;IAHd;EADH,CAAP;AAOH,CAVD;;AAYA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAFL;IAGFC,SAAS,GAAG,MAHV;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMP,KAAK,GAAGF,QAAQ,EAAtB;EAEA,MAAMe,MAAM,GAAGd,SAAS,EAAxB;EAEA,MAAMe,YAAY,GAAGnB,qBAAqB,EAA1C;EAEA,MAAMoB,SAAS,GAAGlB,GAAG,CAAC,CAClBgB,MAAM,CAACZ,IADW,EAElBa,YAFkB,EAGlBJ,SAHkB,CAAD,CAArB;EAMA,MAAMM,gBAAgB,GAAGpB,eAAe,CAACI,KAAD,EAAQ;IAC5CiB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,KAAX,CAAiBC,OADC;IAE5CC,KAAK,EAAErB,KAAK,CAACsB,OAAN,CAAcC,IAAd,CAAmBC;EAFkB,CAAR,CAAxC;EAKA,MAAMC,YAAY,GAAG5B,GAAG,CAAC,CACrBmB,gBADqB,EAErB;IAAEL;EAAF,CAFqB,CAAD,CAAxB;EAKA,oBACI,oBAAC,UAAD;IACI,OAAO,EAAE,KADb;IAEI,KAAK,EAAEI;EAFX,GAGQH,UAHR,GAKK,OAAOJ,QAAP,KAAoB,QAApB,gBACG,oBAAC,IAAD;IAAM,KAAK,EAAEiB;EAAb,GACKjB,QADL,CADH,GAIIA,QATT,CADJ;AAaH;AAAA"}
@@ -0,0 +1,32 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import { StyleSheet } from 'react-native';
5
+ import IconButton from '../IconButton';
6
+ import { ChevronLeft } from '../internal';
7
+ import { css } from '@fountain-ui/styles';
8
+ const styles = StyleSheet.create({
9
+ root: {
10
+ height: 40,
11
+ left: 20,
12
+ paddingLeft: 5,
13
+ paddingRight: 11,
14
+ paddingVertical: 8,
15
+ position: 'absolute',
16
+ width: 40
17
+ }
18
+ });
19
+ export default function BackButton(props) {
20
+ const {
21
+ style: styleProp,
22
+ ...otherProps
23
+ } = props;
24
+ const rootStyle = css([styles.root, styleProp]);
25
+ return /*#__PURE__*/React.createElement(IconButton, _extends({
26
+ style: rootStyle
27
+ }, otherProps), /*#__PURE__*/React.createElement(ChevronLeft, {
28
+ color: 'strong',
29
+ size: 'large'
30
+ }));
31
+ }
32
+ //# sourceMappingURL=BackButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","IconButton","ChevronLeft","css","styles","create","root","height","left","paddingLeft","paddingRight","paddingVertical","position","width","BackButton","props","style","styleProp","otherProps","rootStyle"],"sources":["BackButton.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet } from 'react-native';\nimport type { IconButtonProps } from '../IconButton';\nimport IconButton from '../IconButton';\nimport { ChevronLeft } from '../internal';\nimport { css } from '@fountain-ui/styles';\n\nconst styles = StyleSheet.create({\n root: {\n height: 40,\n left: 20,\n paddingLeft: 5,\n paddingRight: 11,\n paddingVertical: 8,\n position: 'absolute',\n width: 40,\n },\n});\n\ninterface BackButtonProps extends Omit<IconButtonProps, 'children'> {}\n\nexport default function BackButton(props: BackButtonProps) {\n const {\n style: styleProp,\n ...otherProps\n } = props;\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n return (\n <IconButton\n style={rootStyle}\n {...otherProps}\n >\n <ChevronLeft\n color={'strong'}\n size={'large'}\n />\n </IconButton>\n );\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAA2B,cAA3B;AAEA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,WAAT,QAA4B,aAA5B;AACA,SAASC,GAAT,QAAoB,qBAApB;AAEA,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAX,CAAkB;EAC7BC,IAAI,EAAE;IACFC,MAAM,EAAE,EADN;IAEFC,IAAI,EAAE,EAFJ;IAGFC,WAAW,EAAE,CAHX;IAIFC,YAAY,EAAE,EAJZ;IAKFC,eAAe,EAAE,CALf;IAMFC,QAAQ,EAAE,UANR;IAOFC,KAAK,EAAE;EAPL;AADuB,CAAlB,CAAf;AAcA,eAAe,SAASC,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,KAAK,EAAEC,SADL;IAEF,GAAGC;EAFD,IAGFH,KAHJ;EAKA,MAAMI,SAAS,GAAGhB,GAAG,CAAC,CAClBC,MAAM,CAACE,IADW,EAElBW,SAFkB,CAAD,CAArB;EAKA,oBACI,oBAAC,UAAD;IACI,KAAK,EAAEE;EADX,GAEQD,UAFR,gBAII,oBAAC,WAAD;IACI,KAAK,EAAE,QADX;IAEI,IAAI,EAAE;EAFV,EAJJ,CADJ;AAWH"}
@@ -0,0 +1,30 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import { StyleSheet } from 'react-native';
5
+ import IconButton from '../IconButton';
6
+ import { Close } from '../internal';
7
+ import { css } from '@fountain-ui/styles';
8
+ const styles = StyleSheet.create({
9
+ root: {
10
+ height: 40,
11
+ left: 20,
12
+ padding: 8,
13
+ position: 'absolute',
14
+ width: 40
15
+ }
16
+ });
17
+ export default function CloseButton(props) {
18
+ const {
19
+ style: styleProp,
20
+ ...otherProps
21
+ } = props;
22
+ const rootStyle = css([styles.root, styleProp]);
23
+ return /*#__PURE__*/React.createElement(IconButton, _extends({
24
+ style: rootStyle
25
+ }, otherProps), /*#__PURE__*/React.createElement(Close, {
26
+ color: 'strong',
27
+ size: 'large'
28
+ }));
29
+ }
30
+ //# sourceMappingURL=CloseButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","IconButton","Close","css","styles","create","root","height","left","padding","position","width","CloseButton","props","style","styleProp","otherProps","rootStyle"],"sources":["CloseButton.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet } from 'react-native';\nimport type { IconButtonProps } from '../IconButton';\nimport IconButton from '../IconButton';\nimport { Close } from '../internal';\nimport { css } from '@fountain-ui/styles';\n\nconst styles = StyleSheet.create({\n root: {\n height: 40,\n left: 20,\n padding: 8,\n position: 'absolute',\n width: 40,\n },\n});\n\ninterface CloseButtonProps extends Omit<IconButtonProps, 'children'> {}\n\nexport default function CloseButton(props: CloseButtonProps) {\n const {\n style: styleProp,\n ...otherProps\n } = props;\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n return (\n <IconButton\n style={rootStyle}\n {...otherProps}\n >\n <Close\n color={'strong'}\n size={'large'}\n />\n </IconButton>\n );\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAA2B,cAA3B;AAEA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,KAAT,QAAsB,aAAtB;AACA,SAASC,GAAT,QAAoB,qBAApB;AAEA,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAX,CAAkB;EAC7BC,IAAI,EAAE;IACFC,MAAM,EAAE,EADN;IAEFC,IAAI,EAAE,EAFJ;IAGFC,OAAO,EAAE,CAHP;IAIFC,QAAQ,EAAE,UAJR;IAKFC,KAAK,EAAE;EALL;AADuB,CAAlB,CAAf;AAYA,eAAe,SAASC,WAAT,CAAqBC,KAArB,EAA8C;EACzD,MAAM;IACFC,KAAK,EAAEC,SADL;IAEF,GAAGC;EAFD,IAGFH,KAHJ;EAKA,MAAMI,SAAS,GAAGd,GAAG,CAAC,CAClBC,MAAM,CAACE,IADW,EAElBS,SAFkB,CAAD,CAArB;EAKA,oBACI,oBAAC,UAAD;IACI,KAAK,EAAEE;EADX,GAEQD,UAFR,gBAII,oBAAC,KAAD;IACI,KAAK,EAAE,QADX;IAEI,IAAI,EAAE;EAFV,EAJJ,CADJ;AAWH"}
@@ -4,6 +4,8 @@ import React from 'react';
4
4
  import { Text, View } from 'react-native';
5
5
  import { useDialogSectionStyle } from '../Dialog';
6
6
  import { createFontStyle, css, useTheme } from '../styles';
7
+ import BackButton from './BackButton';
8
+ import CloseButton from './CloseButton';
7
9
 
8
10
  const useStyles = function () {
9
11
  const theme = useTheme();
@@ -17,7 +19,7 @@ const useStyles = function () {
17
19
  };
18
20
  };
19
21
 
20
- export default function DialogTitle(props) {
22
+ const DialogTitle = props => {
21
23
  const {
22
24
  children,
23
25
  style: styleProp,
@@ -37,6 +39,9 @@ export default function DialogTitle(props) {
37
39
  }), typeof children === 'string' ? /*#__PURE__*/React.createElement(Text, {
38
40
  style: titleStyle
39
41
  }, children) : children);
40
- }
41
- ;
42
+ };
43
+
44
+ DialogTitle.BackButton = BackButton;
45
+ DialogTitle.CloseButton = CloseButton;
46
+ export default DialogTitle;
42
47
  //# sourceMappingURL=DialogTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","useDialogSectionStyle","createFontStyle","css","useTheme","useStyles","theme","root","paddingTop","spacing","title","textAlign","DialogTitle","props","children","style","styleProp","otherProps","styles","sectionStyle","rootStyle","titleFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","titleStyle"],"sources":["DialogTitle.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useDialogSectionStyle } from '../Dialog';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type DialogTitleProps from './DialogTitleProps';\n\ntype DialogTitleStyles = NamedStylesStringUnion<'root' | 'title'>;\n\nconst useStyles: UseStyles<DialogTitleStyles> = function (): DialogTitleStyles {\n const theme = useTheme();\n\n return {\n root: {\n paddingTop: theme.spacing(6.5),\n },\n title: {\n textAlign: 'center',\n },\n };\n};\n\nexport default function DialogTitle(props: DialogTitleProps) {\n const {\n children,\n style: styleProp,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const sectionStyle = useDialogSectionStyle();\n\n const rootStyle = css([\n styles.root,\n sectionStyle,\n styleProp,\n ]);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const titleStyle = css([\n styles.title,\n titleFontStyle,\n ]);\n\n return (\n <View\n {...otherProps}\n style={rootStyle}\n >\n {typeof children === 'string' ? (\n <Text style={titleStyle}>\n {children}\n </Text>\n ) : (children)}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,EAAeC,IAAf,QAA2B,cAA3B;AAEA,SAASC,qBAAT,QAAsC,WAAtC;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;;AAKA,MAAMC,SAAuC,GAAG,YAA+B;EAC3E,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,OAAO;IACHG,IAAI,EAAE;MACFC,UAAU,EAAEF,KAAK,CAACG,OAAN,CAAc,GAAd;IADV,CADH;IAIHC,KAAK,EAAE;MACHC,SAAS,EAAE;IADR;EAJJ,CAAP;AAQH,CAXD;;AAaA,eAAe,SAASC,WAAT,CAAqBC,KAArB,EAA8C;EACzD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAFL;IAGF,GAAGC;EAHD,IAIFJ,KAJJ;EAMA,MAAMP,KAAK,GAAGF,QAAQ,EAAtB;EAEA,MAAMc,MAAM,GAAGb,SAAS,EAAxB;EAEA,MAAMc,YAAY,GAAGlB,qBAAqB,EAA1C;EAEA,MAAMmB,SAAS,GAAGjB,GAAG,CAAC,CAClBe,MAAM,CAACX,IADW,EAElBY,YAFkB,EAGlBH,SAHkB,CAAD,CAArB;EAMA,MAAMK,cAAc,GAAGnB,eAAe,CAACI,KAAD,EAAQ;IAC1CgB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAEpB,KAAK,CAACqB,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAR,CAAtC;EAKA,MAAMC,UAAU,GAAG3B,GAAG,CAAC,CACnBe,MAAM,CAACR,KADY,EAEnBW,cAFmB,CAAD,CAAtB;EAKA,oBACI,oBAAC,IAAD,eACQJ,UADR;IAEI,KAAK,EAAEG;EAFX,IAIK,OAAON,QAAP,KAAoB,QAApB,gBACG,oBAAC,IAAD;IAAM,KAAK,EAAEgB;EAAb,GACKhB,QADL,CADH,GAIIA,QART,CADJ;AAYH;AAAA"}
1
+ {"version":3,"names":["React","Text","View","useDialogSectionStyle","createFontStyle","css","useTheme","BackButton","CloseButton","useStyles","theme","root","paddingTop","spacing","title","textAlign","DialogTitle","props","children","style","styleProp","otherProps","styles","sectionStyle","rootStyle","titleFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","titleStyle"],"sources":["DialogTitle.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { useDialogSectionStyle } from '../Dialog';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport BackButton from './BackButton';\nimport CloseButton from './CloseButton';\nimport type DialogTitleProps from './DialogTitleProps';\n\ntype DialogTitleStyles = NamedStylesStringUnion<'root' | 'title'>;\n\nconst useStyles: UseStyles<DialogTitleStyles> = function (): DialogTitleStyles {\n const theme = useTheme();\n\n return {\n root: {\n paddingTop: theme.spacing(6.5),\n },\n title: {\n textAlign: 'center',\n },\n };\n};\n\nconst DialogTitle = (props: DialogTitleProps) => {\n const {\n children,\n style: styleProp,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const sectionStyle = useDialogSectionStyle();\n\n const rootStyle = css([\n styles.root,\n sectionStyle,\n styleProp,\n ]);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const titleStyle = css([\n styles.title,\n titleFontStyle,\n ]);\n\n return (\n <View\n {...otherProps}\n style={rootStyle}\n >\n {typeof children === 'string' ? (\n <Text style={titleStyle}>\n {children}\n </Text>\n ) : (children)}\n </View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,oBACI,oBAAC,IAAD,eACQJ,UADR;IAEI,KAAK,EAAEG;EAFX,IAIK,OAAON,QAAP,KAAoB,QAApB,gBACG,oBAAC,IAAD;IAAM,KAAK,EAAEgB;EAAb,GACKhB,QADL,CADH,GAIIA,QART,CADJ;AAYH,CAzCD;;AA2CAF,WAAW,CAACT,UAAZ,GAAyBA,UAAzB;AAEAS,WAAW,CAACR,WAAZ,GAA0BA,WAA1B;AAEA,eAAeQ,WAAf"}
@@ -2,6 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  import React from 'react';
4
4
  import { Text, View } from 'react-native';
5
+ import { commonColors } from '@fountain-ui/styles';
5
6
  import { createFontStyle, css, StyleSheet, useTheme } from '../styles';
6
7
  const styles = StyleSheet.create({
7
8
  container: {
@@ -27,6 +28,12 @@ function selectBorderColor(theme, variant, vertical) {
27
28
 
28
29
  case 'strong':
29
30
  return vertical ? theme.palette.border.weak : theme.palette.border.base;
31
+
32
+ case 'strongStatic':
33
+ return commonColors.opacity.white['13'];
34
+
35
+ case 'baseStatic':
36
+ return commonColors.opacity.white['10'];
30
37
  }
31
38
  }
32
39
 
@@ -94,7 +101,7 @@ export default function Divider(props) {
94
101
  })
95
102
  };
96
103
  const fontStyle = createFontStyle(theme, {
97
- selector: typo => typo.caption2,
104
+ selector: typo => typo.caption2.medium,
98
105
  color: fontColor
99
106
  });
100
107
  const element = typeof childrenProp === 'string' ? /*#__PURE__*/React.createElement(Text, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","createFontStyle","css","StyleSheet","useTheme","styles","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","selectBorderColor","theme","variant","vertical","palette","border","weaker","weak","base","Divider","props","borderWidth","borderWidthProp","children","childrenProp","elementAlign","inset","marginBetweenChildren","style","otherProps","fontColor","text","borderColor","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","borderRightWidth","borderBottomWidth","containerStyle","undefined","dividerStyle","dividerMarginSize","startDividerStyle","display","endDividerStyle","fontStyle","selector","typo","caption2","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './DividerProps';\nimport type { DividerVariant } from './DividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n});\n\nfunction selectBorderColor(theme: Theme, variant: DividerVariant, vertical: boolean) {\n switch (variant) {\n default:\n case 'base':\n return vertical ? theme.palette.border.weaker : theme.palette.border.weak;\n case 'strong':\n return vertical ? theme.palette.border.weak : theme.palette.border.base;\n }\n}\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth: borderWidthProp,\n children: childrenProp,\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n variant = 'base' as DividerVariant,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);\n const fontColor = theme.palette.text.weak;\n const borderColor = selectBorderColor(theme, variant, vertical);\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? { borderRightWidth: borderWidth } : { borderBottomWidth: borderWidth });\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(marginBetweenChildren);\n const startDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'start' ? 'flex' : 'none',\n ...(vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize }),\n };\n const endDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'end' ? 'flex' : 'none',\n ...(vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize }),\n };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <React.Fragment>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </React.Fragment>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,EAAeC,IAAf,QAA2B,cAA3B;AAEA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,UAA/B,EAA2CC,QAA3C,QAA2D,WAA3D;AAKA,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAX,CAAkB;EAC7BC,SAAS,EAAE;IACPC,SAAS,EAAE,SADJ;IAEPC,UAAU,EAAE;EAFL,CADkB;EAK7BC,GAAG,EAAE;IACDC,aAAa,EAAE;EADd,CALwB;EAQ7BC,MAAM,EAAE;IACJD,aAAa,EAAE;EADX,CARqB;EAW7BE,OAAO,EAAE;IACLC,QAAQ,EAAE;EADL;AAXoB,CAAlB,CAAf;;AAgBA,SAASC,iBAAT,CAA2BC,KAA3B,EAAyCC,OAAzC,EAAkEC,QAAlE,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MAAEb,UAAU,EAAEa;IAAd,CAAlD;EAFmC,CAAvC;EAKA,MAAMI,SAAS,GAAGzD,eAAe,CAACe,KAAD,EAAQ;IACrC2C,QAAQ,EAAGC,IAAD,IAAUA,IAAI,CAACC,QADY;IAErCC,KAAK,EAAE3B;EAF8B,CAAR,CAAjC;EAKA,MAAM4B,OAAO,GAAG,OAAOlC,YAAP,KAAwB,QAAxB,gBACV,oBAAC,IAAD;IAAM,KAAK,EAAE3B,GAAG,CAACwD,SAAD;EAAhB,GAA8B7B,YAA9B,CADU,GAEVA,YAFN;EAIA,MAAMD,QAAQ,GAAGC,YAAY,gBACzB,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,IAAD;IAAM,KAAK,EAAE3B,GAAG,CAAC,CAACmD,YAAD,EAAeE,iBAAf,CAAD;EAAhB,EADJ,EAEKQ,OAFL,eAGI,oBAAC,IAAD;IAAM,KAAK,EAAE7D,GAAG,CAAC,CAACmD,YAAD,EAAeI,eAAf,CAAD;EAAhB,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,oBAAC,IAAD;IACI,KAAK,EAAEN;EADX,GAEQjB,UAFR,GAIKN,QAJL,CADJ;AAQH;AAAA"}
1
+ {"version":3,"names":["React","Text","View","commonColors","createFontStyle","css","StyleSheet","useTheme","styles","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","selectBorderColor","theme","variant","vertical","palette","border","weaker","weak","base","opacity","white","Divider","props","borderWidth","borderWidthProp","children","childrenProp","elementAlign","inset","marginBetweenChildren","style","otherProps","fontColor","text","borderColor","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","borderRightWidth","borderBottomWidth","containerStyle","undefined","dividerStyle","dividerMarginSize","startDividerStyle","display","endDividerStyle","fontStyle","selector","typo","caption2","medium","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { commonColors } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './DividerProps';\nimport type { DividerVariant } from './DividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n});\n\nfunction selectBorderColor(theme: Theme, variant: DividerVariant, vertical: boolean) {\n switch (variant) {\n default:\n case 'base':\n return vertical ? theme.palette.border.weaker : theme.palette.border.weak;\n case 'strong':\n return vertical ? theme.palette.border.weak : theme.palette.border.base;\n case 'strongStatic':\n return commonColors.opacity.white['13'];\n case 'baseStatic':\n return commonColors.opacity.white['10'];\n }\n}\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth: borderWidthProp,\n children: childrenProp,\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n variant = 'base' as DividerVariant,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);\n const fontColor = theme.palette.text.weak;\n const borderColor = selectBorderColor(theme, variant, vertical);\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? { borderRightWidth: borderWidth } : { borderBottomWidth: borderWidth });\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(marginBetweenChildren);\n const startDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'start' ? 'flex' : 'none',\n ...(vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize }),\n };\n const endDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'end' ? 'flex' : 'none',\n ...(vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize }),\n };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2.medium,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <React.Fragment>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </React.Fragment>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,EAAeC,IAAf,QAA2B,cAA3B;AAEA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,UAA/B,EAA2CC,QAA3C,QAA2D,WAA3D;AAKA,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAX,CAAkB;EAC7BC,SAAS,EAAE;IACPC,SAAS,EAAE,SADJ;IAEPC,UAAU,EAAE;EAFL,CADkB;EAK7BC,GAAG,EAAE;IACDC,aAAa,EAAE;EADd,CALwB;EAQ7BC,MAAM,EAAE;IACJD,aAAa,EAAE;EADX,CARqB;EAW7BE,OAAO,EAAE;IACLC,QAAQ,EAAE;EADL;AAXoB,CAAlB,CAAf;;AAgBA,SAASC,iBAAT,CAA2BC,KAA3B,EAAyCC,OAAzC,EAAkEC,QAAlE,EAAqF;EACjF,QAAQD,OAAR;IACI;IACA,KA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ACnCD,OAAO,EAAE1B,YAAY,KAAK,KAAjB,GAAyB,MAAzB,GAAkC,MADR;IAEnC,IAAId,QAAQ,GAAG;MAAE2B,SAAS,EAAEW;IAAb,CAAH,GAAsC;MAAEb,UAAU,EAAEa;IAAd,CAAlD;EAFmC,CAAvC;EAKA,MAAMI,SAAS,GAAG3D,eAAe,CAACe,KAAD,EAAQ;IACrC6C,QAAQ,EAAGC,IAAD,IAAUA,IAAI,CAACC,QAAL,CAAcC,MADG;IAErCC,KAAK,EAAE5B;EAF8B,CAAR,CAAjC;EAKA,MAAM6B,OAAO,GAAG,OAAOnC,YAAP,KAAwB,QAAxB,gBACV,oBAAC,IAAD;IAAM,KAAK,EAAE7B,GAAG,CAAC0D,SAAD;EAAhB,GAA8B7B,YAA9B,CADU,GAEVA,YAFN;EAIA,MAAMD,QAAQ,GAAGC,YAAY,gBACzB,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,IAAD;IAAM,KAAK,EAAE7B,GAAG,CAAC,CAACqD,YAAD,EAAeE,iBAAf,CAAD;EAAhB,EADJ,EAEKS,OAFL,eAGI,oBAAC,IAAD;IAAM,KAAK,EAAEhE,GAAG,CAAC,CAACqD,YAAD,EAAeI,eAAf,CAAD;EAAhB,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,oBAAC,IAAD;IACI,KAAK,EAAEN;EADX,GAEQjB,UAFR,GAIKN,QAJL,CADJ;AAQH;AAAA"}
@@ -1,3 +1,3 @@
1
- export const elementAligns = ['start', 'center', 'end'];
2
- export const dividerVariants = ['base', 'strong'];
1
+ export const dividerElementAligns = ['start', 'center', 'end'];
2
+ export const dividerVariants = ['base', 'strong', 'baseStatic', 'strongStatic'];
3
3
  //# sourceMappingURL=DividerProps.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["elementAligns","dividerVariants"],"sources":["DividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const elementAligns = ['start', 'center', 'end'] as const;\nexport type ElementAlign = typeof elementAligns[number];\n\nexport const dividerVariants = ['base', 'strong'] as const;\nexport type DividerVariant = typeof dividerVariants[number];\n\nexport default interface DividerProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The size of the inset. It works as a multiplier factor based on spacing system.\n * @default 0\n */\n inset?: number;\n\n /**\n * If `true`, the divider orientation is set to vertical.\n * @default false\n */\n vertical?: boolean;\n\n /**\n * The size of margin between child element and the divider. It works as a multiplier factor based on spacing system.\n * @default 2\n */\n marginBetweenChildren?: number;\n\n /**\n * The size of border width. It works as an actual pixel-based border width value of a divider.\n * @default if vertical is true 1, otherwise 0.5\n */\n borderWidth?: number;\n\n /**\n * Set position of children.\n * @default center\n */\n elementAlign?: ElementAlign;\n\n /**\n * Select the style of the divider based on this value.\n * @default base\n */\n variant?: DividerVariant;\n}> {}\n"],"mappings":"AAIA,OAAO,MAAMA,aAAa,GAAG,CAAC,OAAD,EAAU,QAAV,EAAoB,KAApB,CAAtB;AAGP,OAAO,MAAMC,eAAe,GAAG,CAAC,MAAD,EAAS,QAAT,CAAxB"}
1
+ {"version":3,"names":["dividerElementAligns","dividerVariants"],"sources":["DividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport const dividerElementAligns = ['start', 'center', 'end'] as const;\nexport type DividerElementAlign = typeof dividerElementAligns[number];\n\nexport const dividerVariants = ['base', 'strong', 'baseStatic', 'strongStatic'] as const;\nexport type DividerVariant = typeof dividerVariants[number];\n\nexport default interface DividerProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The size of the inset. It works as a multiplier factor based on spacing system.\n * @default 0\n */\n inset?: number;\n\n /**\n * If `true`, the divider orientation is set to vertical.\n * @default false\n */\n vertical?: boolean;\n\n /**\n * The size of margin between child element and the divider. It works as a multiplier factor based on spacing system.\n * @default 2\n */\n marginBetweenChildren?: number;\n\n /**\n * The size of border width. It works as an actual pixel-based border width value of a divider.\n * @default if vertical is true 1, otherwise 0.5\n */\n borderWidth?: number;\n\n /**\n * Set position of children.\n * @default center\n */\n elementAlign?: DividerElementAlign;\n\n /**\n * Select the style of the divider based on this value.\n * @default base\n */\n variant?: DividerVariant;\n}> {}\n"],"mappings":"AAIA,OAAO,MAAMA,oBAAoB,GAAG,CAAC,OAAD,EAAU,QAAV,EAAoB,KAApB,CAA7B;AAGP,OAAO,MAAMC,eAAe,GAAG,CAAC,MAAD,EAAS,QAAT,EAAmB,YAAnB,EAAiC,cAAjC,CAAxB"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './Divider';
2
+ export { dividerVariants, dividerElementAligns } from './DividerProps';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Divider';\nexport type { default as DividerProps } from './DividerProps';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,WAAxB"}
1
+ {"version":3,"names":["default","dividerVariants","dividerElementAligns"],"sources":["index.ts"],"sourcesContent":["export { default } from './Divider';\nexport type { default as DividerProps } from './DividerProps';\nexport { dividerVariants, dividerElementAligns } from './DividerProps';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,WAAxB;AAEA,SAASC,eAAT,EAA0BC,oBAA1B,QAAsD,gBAAtD"}
@@ -42,8 +42,7 @@ export default function Empty(props) {
42
42
  color: theme.palette.text.strong
43
43
  });
44
44
  const descriptionFontStyle = createFontStyle(theme, {
45
- // TODO: select typography.
46
- // selector: (typography) => typography.body2.regular,
45
+ selector: typography => typography.body3.regular,
47
46
  color: theme.palette.text.base
48
47
  });
49
48
  return /*#__PURE__*/React.createElement(Column, _extends({
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","Button","Column","Spacer","createFontStyle","css","useTheme","cloneElementSafely","useStyles","theme","root","alignItems","flex","justifyContent","paddingHorizontal","spacing","cta","alignSelf","Empty","props","buttonTitle","description","headerContent","headerContentProp","onButtonPress","style","styleProp","title","otherProps","styles","rootStyle","titleFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","descriptionFontStyle","base"],"sources":["Empty.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Button from '../Button/Button';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type { FalsyReactElement } from '../utils';\nimport { cloneElementSafely } from '../utils';\nimport type EmptyProps from './EmptyProps';\n\ntype EmptyStyles = NamedStylesStringUnion<'root' | 'cta'>;\n\nconst useStyles: UseStyles<EmptyStyles> = function (): EmptyStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(5),\n },\n cta: {\n alignSelf: 'center',\n },\n };\n};\n\nexport default function Empty(props: EmptyProps) {\n const {\n buttonTitle,\n description,\n headerContent: headerContentProp,\n onButtonPress,\n style: styleProp,\n title,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n const headerContent = cloneElementSafely(headerContentProp as FalsyReactElement);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const descriptionFontStyle = createFontStyle(theme, {\n // TODO: select typography.\n // selector: (typography) => typography.body2.regular,\n color: theme.palette.text.base,\n });\n\n return (\n <Column\n style={rootStyle}\n {...otherProps}\n >\n {headerContent ? (\n <React.Fragment>\n {headerContent}\n\n <Spacer size={6}/>\n </React.Fragment>\n ) : null}\n\n <Text\n children={title}\n style={titleFontStyle}\n />\n\n {description ? (\n <React.Fragment>\n <Spacer size={2}/>\n\n <Text\n children={description}\n style={descriptionFontStyle}\n />\n </React.Fragment>\n ) : null}\n\n {buttonTitle && onButtonPress ? (\n <React.Fragment>\n <Spacer size={6}/>\n\n <Button\n children={buttonTitle}\n color={'accent'}\n onPress={onButtonPress}\n style={styles.cta}\n variant={'capsuleSolid'}\n />\n </React.Fragment>\n ) : null}\n </Column>\n );\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,OAAOC,MAAP,MAAmB,kBAAnB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;AAEA,SAASC,kBAAT,QAAmC,UAAnC;;AAKA,MAAMC,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;EAEA,OAAO;IACHI,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,IAAI,EAAE,CAFJ;MAGFC,cAAc,EAAE,QAHd;MAIFC,iBAAiB,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;IAJjB,CADH;IAOHC,GAAG,EAAE;MACDC,SAAS,EAAE;IADV;EAPF,CAAP;AAWH,CAdD;;AAgBA,eAAe,SAASC,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,WADE;IAEFC,WAFE;IAGFC,aAAa,EAAEC,iBAHb;IAIFC,aAJE;IAKFC,KAAK,EAAEC,SALL;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFT,KARJ;EAUA,MAAMU,MAAM,GAAGrB,SAAS,EAAxB;EAEA,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;EAEA,MAAMwB,SAAS,GAAGzB,GAAG,CAAC,CAClBwB,MAAM,CAACnB,IADW,EAElBgB,SAFkB,CAAD,CAArB;EAKA,MAAMJ,aAAa,GAAGf,kBAAkB,CAACgB,iBAAD,CAAxC;EAEA,MAAMQ,cAAc,GAAG3B,eAAe,CAACK,KAAD,EAAQ;IAC1CuB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAE3B,KAAK,CAAC4B,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAR,CAAtC;EAKA,MAAMC,oBAAoB,GAAGpC,eAAe,CAACK,KAAD,EAAQ;IAChD;IACA;IACA2B,KAAK,EAAE3B,KAAK,CAAC4B,OAAN,CAAcC,IAAd,CAAmBG;EAHsB,CAAR,CAA5C;EAMA,oBACI,oBAAC,MAAD;IACI,KAAK,EAAEX;EADX,GAEQF,UAFR,GAIKN,aAAa,gBACV,oBAAC,KAAD,CAAO,QAAP,QACKA,aADL,eAGI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EAHJ,CADU,GAMV,IAVR,eAYI,oBAAC,IAAD;IACI,QAAQ,EAAEK,KADd;IAEI,KAAK,EAAEI;EAFX,EAZJ,EAiBKV,WAAW,gBACR,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,oBAAC,IAAD;IACI,QAAQ,EAAEA,WADd;IAEI,KAAK,EAAEmB;EAFX,EAHJ,CADQ,GASR,IA1BR,EA4BKpB,WAAW,IAAII,aAAf,gBACG,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,oBAAC,MAAD;IACI,QAAQ,EAAEJ,WADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAEI,aAHb;IAII,KAAK,EAAEK,MAAM,CAACb,GAJlB;IAKI,OAAO,EAAE;EALb,EAHJ,CADH,GAYG,IAxCR,CADJ;AA4CH"}
1
+ {"version":3,"names":["React","Text","Button","Column","Spacer","createFontStyle","css","useTheme","cloneElementSafely","useStyles","theme","root","alignItems","flex","justifyContent","paddingHorizontal","spacing","cta","alignSelf","Empty","props","buttonTitle","description","headerContent","headerContentProp","onButtonPress","style","styleProp","title","otherProps","styles","rootStyle","titleFontStyle","selector","typography","header3","semiBold","color","palette","text","strong","descriptionFontStyle","body3","regular","base"],"sources":["Empty.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Button from '../Button/Button';\nimport Column from '../Column';\nimport Spacer from '../Spacer';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type { FalsyReactElement } from '../utils';\nimport { cloneElementSafely } from '../utils';\nimport type EmptyProps from './EmptyProps';\n\ntype EmptyStyles = NamedStylesStringUnion<'root' | 'cta'>;\n\nconst useStyles: UseStyles<EmptyStyles> = function (): EmptyStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n paddingHorizontal: theme.spacing(5),\n },\n cta: {\n alignSelf: 'center',\n },\n };\n};\n\nexport default function Empty(props: EmptyProps) {\n const {\n buttonTitle,\n description,\n headerContent: headerContentProp,\n onButtonPress,\n style: styleProp,\n title,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const rootStyle = css([\n styles.root,\n styleProp,\n ]);\n\n const headerContent = cloneElementSafely(headerContentProp as FalsyReactElement);\n\n const titleFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.header3.semiBold,\n color: theme.palette.text.strong,\n });\n\n const descriptionFontStyle = createFontStyle(theme, {\n selector: (typography) => typography.body3.regular,\n color: theme.palette.text.base,\n });\n\n return (\n <Column\n style={rootStyle}\n {...otherProps}\n >\n {headerContent ? (\n <React.Fragment>\n {headerContent}\n\n <Spacer size={6}/>\n </React.Fragment>\n ) : null}\n\n <Text\n children={title}\n style={titleFontStyle}\n />\n\n {description ? (\n <React.Fragment>\n <Spacer size={2}/>\n\n <Text\n children={description}\n style={descriptionFontStyle}\n />\n </React.Fragment>\n ) : null}\n\n {buttonTitle && onButtonPress ? (\n <React.Fragment>\n <Spacer size={6}/>\n\n <Button\n children={buttonTitle}\n color={'accent'}\n onPress={onButtonPress}\n style={styles.cta}\n variant={'capsuleSolid'}\n />\n </React.Fragment>\n ) : null}\n </Column>\n );\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,OAAOC,MAAP,MAAmB,kBAAnB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,SAASC,eAAT,EAA0BC,GAA1B,EAA+BC,QAA/B,QAA+C,WAA/C;AAEA,SAASC,kBAAT,QAAmC,UAAnC;;AAKA,MAAMC,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;EAEA,OAAO;IACHI,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,IAAI,EAAE,CAFJ;MAGFC,cAAc,EAAE,QAHd;MAIFC,iBAAiB,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;IAJjB,CADH;IAOHC,GAAG,EAAE;MACDC,SAAS,EAAE;IADV;EAPF,CAAP;AAWH,CAdD;;AAgBA,eAAe,SAASC,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,WADE;IAEFC,WAFE;IAGFC,aAAa,EAAEC,iBAHb;IAIFC,aAJE;IAKFC,KAAK,EAAEC,SALL;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFT,KARJ;EAUA,MAAMU,MAAM,GAAGrB,SAAS,EAAxB;EAEA,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;EAEA,MAAMwB,SAAS,GAAGzB,GAAG,CAAC,CAClBwB,MAAM,CAACnB,IADW,EAElBgB,SAFkB,CAAD,CAArB;EAKA,MAAMJ,aAAa,GAAGf,kBAAkB,CAACgB,iBAAD,CAAxC;EAEA,MAAMQ,cAAc,GAAG3B,eAAe,CAACK,KAAD,EAAQ;IAC1CuB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,OAAX,CAAmBC,QADH;IAE1CC,KAAK,EAAE3B,KAAK,CAAC4B,OAAN,CAAcC,IAAd,CAAmBC;EAFgB,CAAR,CAAtC;EAKA,MAAMC,oBAAoB,GAAGpC,eAAe,CAACK,KAAD,EAAQ;IAChDuB,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACQ,KAAX,CAAiBC,OADK;IAEhDN,KAAK,EAAE3B,KAAK,CAAC4B,OAAN,CAAcC,IAAd,CAAmBK;EAFsB,CAAR,CAA5C;EAKA,oBACI,oBAAC,MAAD;IACI,KAAK,EAAEb;EADX,GAEQF,UAFR,GAIKN,aAAa,gBACV,oBAAC,KAAD,CAAO,QAAP,QACKA,aADL,eAGI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EAHJ,CADU,GAMV,IAVR,eAYI,oBAAC,IAAD;IACI,QAAQ,EAAEK,KADd;IAEI,KAAK,EAAEI;EAFX,EAZJ,EAiBKV,WAAW,gBACR,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,oBAAC,IAAD;IACI,QAAQ,EAAEA,WADd;IAEI,KAAK,EAAEmB;EAFX,EAHJ,CADQ,GASR,IA1BR,EA4BKpB,WAAW,IAAII,aAAf,gBACG,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,MAAD;IAAQ,IAAI,EAAE;EAAd,EADJ,eAGI,oBAAC,MAAD;IACI,QAAQ,EAAEJ,WADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAEI,aAHb;IAII,KAAK,EAAEK,MAAM,CAACb,GAJlB;IAKI,OAAO,EAAE;EALb,EAHJ,CADH,GAYG,IAxCR,CADJ;AA4CH"}
@@ -32,6 +32,7 @@ export default function createFlexbox(direction) {
32
32
  flexGrow,
33
33
  flexShrink,
34
34
  flexWrap,
35
+ gap,
35
36
  children,
36
37
  insets,
37
38
  justifyContent,
@@ -49,6 +50,7 @@ export default function createFlexbox(direction) {
49
50
  flexGrow,
50
51
  flexShrink,
51
52
  flexWrap,
53
+ gap,
52
54
  justifyContent,
53
55
  overflow
54
56
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","css","StyleSheet","useTheme","styles","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","displayName"],"sources":["Flexbox.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...otherProps}\n />\n );\n }\n\n Flexb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QAPe;MAQfG,cARe;MASfC;IATe,CAAnB;IAYA,MAAMK,OAAO,GAAGP,MAAM,KAAKQ,SAAX,GACV;MACEC,WAAW,EAAElB,OAAO,CAACS,MAAM,CAACU,IAAR,CADtB;MAEEC,UAAU,EAAEpB,OAAO,CAACS,MAAM,CAACY,GAAR,CAFrB;MAGEC,YAAY,EAAEtB,OAAO,CAACS,MAAM,CAACc,KAAR,CAHvB;MAIEC,aAAa,EAAExB,OAAO,CAACS,MAAM,CAACgB,MAAR;IAJxB,CADU,GAOVR,SAPN;IASA,oBACI,oBAAC,IAAD;MACI,QAAQ,EAAET,QADd;MAEI,KAAK,EAAEzB,GAAG,CAAC,CACPW,SADO,EAEPqB,UAFO,EAGPC,OAHO,EAIPH,KAJO,CAAD;IAFd,GAQQC,UARR,EADJ;EAYH;;EAEDjB,OAAO,CAAC6B,WAAR,GAAsBhC,SAAS,KAAK,KAAd,GAAsB,KAAtB,GAA8B,QAApD;EAEA,OAAOG,OAAP;AACH"}
1
+ {"version":3,"names":["React","View","css","StyleSheet","useTheme","styles","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","gap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","displayName"],"sources":["Flexbox.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n gap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...otherProps}\n />\n );\n }\n\n Flexbox.displayName = direction === 'row' ? 'Row' : 'Column';\n\n return Flexbox;\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,GAAT,EAAcC,UAAd,EAA0BC,QAA1B,QAA0C,WAA1C;AAGA,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAX,CAAkB;EAC7BC,GAAG,EAAE;IAAEC,aAAa,EAAE;EAAjB,CADwB;EAE7BC,MAAM,EAAE;IAAED,aAAa,EAAE;EAAjB,CAFqB;EAG7BE,UAAU,EAAE;IAAEF,aAAa,EAAE;EAAjB,CAHiB;EAI7BG,aAAa,EAAE;IAAEH,aAAa,EAAE;EAAjB;AAJc,CAAlB,CAAf;AAOA,eAAe,SAASI,aAAT,CAAuBC,SAAvB,EAAoD;EAC/D,MAAMC,gBAAgB,GAAGD,SAAS,KAAK,KAAd,GAAsBR,MAAM,CAACE,GAA7B,GAAmCF,MAAM,CAACI,MAAnE;EACA,MAAMM,gBAAgB,GAAGF,SAAS,KAAK,KAAd,GAAsBR,MAAM,CAACK,UAA7B,GAA0C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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":""}
@@ -1,2 +1,3 @@
1
1
  export { default } from './IconButton';
2
+ export { iconButtonColors } from './IconButtonProps';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB"}
1
+ {"version":3,"names":["default","iconButtonColors"],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';\nexport { iconButtonColors } from './IconButtonProps';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB;AAEA,SAASC,gBAAT,QAAiC,mBAAjC"}
@@ -1,18 +1,28 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
- import { Platform, View } from 'react-native';
2
+ import { Platform, Text, View } from 'react-native';
3
+ import { typographyOf } from '@fountain-ui/styles';
5
4
  import ButtonBase from '../ButtonBase';
6
- import { css, useTheme } from '../styles';
5
+ import Row from '../Row';
6
+ import { createFontStyle, css, useTheme } from '../styles';
7
7
 
8
8
  const useStyles = function () {
9
9
  const theme = useTheme();
10
10
  return {
11
- root: {
12
- flexDirection: 'row',
13
- paddingVertical: theme.spacing(3),
11
+ content: {
12
+ gap: theme.spacing(2),
13
+ paddingVertical: theme.spacing(3.75),
14
14
  paddingHorizontal: theme.spacing(4),
15
15
  width: '100%'
16
+ },
17
+ description: {
18
+ paddingRight: theme.spacing(20)
19
+ },
20
+ divider: {
21
+ borderBottomColor: theme.palette.border.weak,
22
+ borderBottomWidth: 0.5
23
+ },
24
+ dividerWrapper: {
25
+ paddingHorizontal: theme.spacing(4)
16
26
  }
17
27
  };
18
28
  };
@@ -22,39 +32,47 @@ export default function ListItem(props) {
22
32
  alignItems = 'center',
23
33
  button = false,
24
34
  children,
35
+ description,
25
36
  disabled = false,
26
37
  onPress,
27
38
  style,
28
39
  ...otherProps
29
40
  } = props;
41
+ const theme = useTheme();
30
42
  const styles = useStyles();
31
43
  const rootComponentProps = {
32
44
  accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,
33
45
  ...otherProps
34
46
  };
35
- const rootStyle = css([styles.root, {
36
- alignItems
37
- }, style]);
38
-
39
- if (button) {
40
- return (
41
- /*#__PURE__*/
42
- // @ts-ignore
43
- React.createElement(View, rootComponentProps, /*#__PURE__*/React.createElement(ButtonBase, {
44
- disabled: disabled,
45
- onPress: onPress,
46
- style: rootStyle
47
- }, children))
48
- );
49
- }
50
-
47
+ const contentWrapperStyle = css([styles.content, style]);
48
+ const descriptionFontStyle = createFontStyle(theme, {
49
+ selector: _ => typographyOf({
50
+ fontSize: 14,
51
+ lineHeight: 19.6,
52
+ fontFamily: 'PretendardStd-Regular',
53
+ letterSpacing: 0
54
+ }),
55
+ color: theme.palette.text.base
56
+ });
57
+ const content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
58
+ alignItems: alignItems
59
+ }, children), description ? /*#__PURE__*/React.createElement(Text, {
60
+ style: css([styles.description, descriptionFontStyle])
61
+ }, description) : null);
51
62
  return (
52
63
  /*#__PURE__*/
53
64
  // @ts-ignore
54
- React.createElement(View, _extends({
55
- children: children,
56
- style: rootStyle
57
- }, rootComponentProps))
65
+ React.createElement(View, rootComponentProps, button ? /*#__PURE__*/React.createElement(ButtonBase, {
66
+ disabled: disabled,
67
+ onPress: onPress,
68
+ style: contentWrapperStyle
69
+ }, content) : /*#__PURE__*/React.createElement(View, {
70
+ style: contentWrapperStyle
71
+ }, content), /*#__PURE__*/React.createElement(View, {
72
+ style: styles.dividerWrapper
73
+ }, /*#__PURE__*/React.createElement(View, {
74
+ style: styles.divider
75
+ })))
58
76
  );
59
77
  }
60
78
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","View","ButtonBase","css","useTheme","useStyles","theme","root","flexDirection","paddingVertical","spacing","paddingHorizontal","width","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","OS","undefined","rootStyle"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,IAAnB,QAA+B,cAA/B;AAEA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;;AAKA,MAAMC,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,OAAO;IACHG,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CAFf;MAGFC,iBAAiB,EAAEL,KAAK,CAACI,OAAN,CAAc,CAAd,CAHjB;MAIFE,KAAK,EAAE;IAJL;EADH,CAAP;AAQH,CAXD;;AAaA,eAAe,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,GAAGjB,SAAS,EAAxB;EAEA,MAAMkB,kBAAkB,GAAG;IACvBC,iBAAiB,EAAExB,QAAQ,CAACyB,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SADjC;IAEvB,GAAGL;EAFoB,CAA3B;EAKA,MAAMM,SAAS,GAAGxB,GAAG,CAAC,CAClBmB,MAAM,CAACf,IADW,EAElB;IAAEQ;EAAF,CAFkB,EAGlBK,KAHkB,CAAD,CAArB;;EAMA,IAAIJ,MAAJ,EAAY;IACR;MAAA;MACI;MACA,oBAAC,IAAD,EAAUO,kBAAV,eACI,oBAAC,UAAD;QACI,QAAQ,EAAEL,QADd;QAEI,OAAO,EAAEC,OAFb;QAGI,KAAK,EAAEQ;MAHX,GAKKV,QALL,CADJ;IAFJ;EAYH;;EAED;IAAA;IACI;IACA,oBAAC,IAAD;MACI,QAAQ,EAAEA,QADd;MAEI,KAAK,EAAEU;IAFX,GAGQJ,kBAHR;EAFJ;AAQH;AAAA"}
1
+ {"version":3,"names":["React","Platform","Text","View","typographyOf","ButtonBase","Row","createFontStyle","css","useTheme","useStyles","theme","content","gap","spacing","paddingVertical","paddingHorizontal","width","description","paddingRight","divider","borderBottomColor","palette","border","weak","borderBottomWidth","dividerWrapper","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","OS","undefined","contentWrapperStyle","descriptionFontStyle","selector","_","fontSize","lineHeight","fontFamily","letterSpacing","color","text","base"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle } from 'react-native';\nimport { Platform, Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'content' | 'description' | 'divider' | 'dividerWrapper'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n content: {\n gap: theme.spacing(2),\n paddingVertical: theme.spacing(3.75),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n description: {\n paddingRight: theme.spacing(20),\n },\n divider: {\n borderBottomColor: theme.palette.border.weak,\n borderBottomWidth: 0.5,\n },\n dividerWrapper: {\n paddingHorizontal: theme.spacing(4),\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center' as FlexStyle['alignItems'],\n button = false,\n children,\n description,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const contentWrapperStyle = css([\n styles.content,\n style,\n ]);\n\n const descriptionFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 19.6,\n fontFamily: 'PretendardStd-Regular',\n letterSpacing: 0,\n }),\n color: theme.palette.text.base,\n });\n\n const content = (\n <React.Fragment>\n <Row alignItems={alignItems}>\n {children}\n </Row>\n\n {description ? (\n <Text style={css([\n styles.description,\n descriptionFontStyle,\n ])}>\n {description}\n </Text>\n ) : null}\n </React.Fragment>\n );\n\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n {button ? (\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={contentWrapperStyle}\n >\n {content}\n </ButtonBase>\n ) : (\n <View style={contentWrapperStyle}>\n {content}\n </View>\n )}\n\n <View style={styles.dividerWrapper}>\n <View style={styles.divider}/>\n </View>\n </View>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,IAAzB,QAAqC,cAArC;AAEA,SAASC,YAAT,QAA6B,qBAA7B;AACA,OAAOC,UAAP,MAAuB,eA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