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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) 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/index.js +8 -0
  8. package/build/commonjs/AppBar/index.js.map +1 -1
  9. package/build/commonjs/Badge/index.js +26 -0
  10. package/build/commonjs/Badge/index.js.map +1 -1
  11. package/build/commonjs/Badge/useVariantStyleMap.js +2 -2
  12. package/build/commonjs/Badge/useVariantStyleMap.js.map +1 -1
  13. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js +1 -0
  14. package/build/commonjs/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  15. package/build/commonjs/Button/Button.js +15 -3
  16. package/build/commonjs/Button/Button.js.map +1 -1
  17. package/build/commonjs/Button/ButtonProps.js +7 -7
  18. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  19. package/build/commonjs/Button/index.js +20 -0
  20. package/build/commonjs/Button/index.js.map +1 -1
  21. package/build/commonjs/Button/useVariantStyleMap.js +5 -7
  22. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -1
  23. package/build/commonjs/Checkbox/Checkbox.js +5 -2
  24. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  25. package/build/commonjs/Checkbox/index.js +8 -0
  26. package/build/commonjs/Checkbox/index.js.map +1 -1
  27. package/build/commonjs/Checkbox/useVariantStyleMap.js +6 -2
  28. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -1
  29. package/build/commonjs/Chip/index.js +14 -0
  30. package/build/commonjs/Chip/index.js.map +1 -1
  31. package/build/commonjs/Chip/useChipStyle.js +2 -18
  32. package/build/commonjs/Chip/useChipStyle.js.map +1 -1
  33. package/build/commonjs/Dialog/index.js +8 -0
  34. package/build/commonjs/Dialog/index.js.map +1 -1
  35. package/build/commonjs/DialogContent/DialogContent.js +1 -2
  36. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  37. package/build/commonjs/Divider/Divider.js +1 -1
  38. package/build/commonjs/Divider/Divider.js.map +1 -1
  39. package/build/commonjs/Divider/DividerProps.js +3 -3
  40. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  41. package/build/commonjs/Divider/index.js +14 -0
  42. package/build/commonjs/Divider/index.js.map +1 -1
  43. package/build/commonjs/Empty/Empty.js +1 -2
  44. package/build/commonjs/Empty/Empty.js.map +1 -1
  45. package/build/commonjs/Flexbox/Flexbox.js +2 -0
  46. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  47. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  48. package/build/commonjs/IconButton/index.js +8 -0
  49. package/build/commonjs/IconButton/index.js.map +1 -1
  50. package/build/commonjs/ListItem/ListItem.js +47 -25
  51. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  52. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  53. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -2
  54. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  55. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  56. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  57. package/build/commonjs/ListItemText/ListItemText.js +20 -21
  58. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  59. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  60. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  61. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  62. package/build/commonjs/Pagination/NumberPagination.js +1 -1
  63. package/build/commonjs/Pagination/NumberPagination.js.map +1 -1
  64. package/build/commonjs/Pagination/index.js +8 -0
  65. package/build/commonjs/Pagination/index.js.map +1 -1
  66. package/build/commonjs/Radio/Radio.js +6 -2
  67. package/build/commonjs/Radio/Radio.js.map +1 -1
  68. package/build/commonjs/Section/Section.js +32 -0
  69. package/build/commonjs/Section/Section.js.map +1 -0
  70. package/build/commonjs/Section/SectionProps.js +2 -0
  71. package/build/commonjs/Section/SectionProps.js.map +1 -0
  72. package/build/commonjs/Section/index.js +16 -0
  73. package/build/commonjs/Section/index.js.map +1 -0
  74. package/build/commonjs/ShadowView/ShadowView.native.js +4 -0
  75. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -1
  76. package/build/commonjs/Snackbar/index.js +8 -0
  77. package/build/commonjs/Snackbar/index.js.map +1 -1
  78. package/build/commonjs/SnackbarContent/SnackbarContent.js +27 -12
  79. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  80. package/build/commonjs/SvgIcon/index.js +14 -0
  81. package/build/commonjs/SvgIcon/index.js.map +1 -1
  82. package/build/commonjs/Tab/useVariantStyleMap.js +3 -3
  83. package/build/commonjs/Tab/useVariantStyleMap.js.map +1 -1
  84. package/build/commonjs/Tabs/Tabs.js +6 -1
  85. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  86. package/build/commonjs/Tabs/index.js +14 -0
  87. package/build/commonjs/Tabs/index.js.map +1 -1
  88. package/build/commonjs/Tabs/useTabsStyle.js +39 -0
  89. package/build/commonjs/Tabs/useTabsStyle.js.map +1 -0
  90. package/build/commonjs/TextField/TextField.js +1 -1
  91. package/build/commonjs/TextField/TextField.js.map +1 -1
  92. package/build/commonjs/TextField/index.js +8 -0
  93. package/build/commonjs/TextField/index.js.map +1 -1
  94. package/build/commonjs/TextField/useVariantStyleMap.js +2 -2
  95. package/build/commonjs/TextField/useVariantStyleMap.js.map +1 -1
  96. package/build/commonjs/Toolbar/index.js +8 -0
  97. package/build/commonjs/Toolbar/index.js.map +1 -1
  98. package/build/commonjs/Tooltip/Beaks/index.js +32 -0
  99. package/build/commonjs/Tooltip/Beaks/index.js.map +1 -1
  100. package/build/commonjs/Tooltip/Tooltip.js +11 -24
  101. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  102. package/build/commonjs/Tooltip/index.js +39 -0
  103. package/build/commonjs/Tooltip/index.js.map +1 -1
  104. package/build/commonjs/Typography/Typography.js +9 -2
  105. package/build/commonjs/Typography/Typography.js.map +1 -1
  106. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  107. package/build/commonjs/Typography/index.js +8 -0
  108. package/build/commonjs/Typography/index.js.map +1 -1
  109. package/build/commonjs/hooks/useBreakpointUp.js +4 -1
  110. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  111. package/build/commonjs/hooks/useContentContainerStyle.js +21 -28
  112. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  113. package/build/commonjs/index.js +21 -0
  114. package/build/commonjs/index.js.map +1 -1
  115. package/build/module/Accordion/Accordion.js +4 -1
  116. package/build/module/Accordion/Accordion.js.map +1 -1
  117. package/build/module/Accordion/index.js +1 -0
  118. package/build/module/Accordion/index.js.map +1 -1
  119. package/build/module/Accordion/useVariantStyleMap.js +11 -10
  120. package/build/module/Accordion/useVariantStyleMap.js.map +1 -1
  121. package/build/module/AppBar/index.js +1 -0
  122. package/build/module/AppBar/index.js.map +1 -1
  123. package/build/module/Badge/index.js +1 -0
  124. package/build/module/Badge/index.js.map +1 -1
  125. package/build/module/Badge/useVariantStyleMap.js +2 -2
  126. package/build/module/Badge/useVariantStyleMap.js.map +1 -1
  127. package/build/module/BottomSheetTitle/BottomSheetTitle.js +1 -0
  128. package/build/module/BottomSheetTitle/BottomSheetTitle.js.map +1 -1
  129. package/build/module/Button/Button.js +16 -4
  130. package/build/module/Button/Button.js.map +1 -1
  131. package/build/module/Button/ButtonProps.js +3 -3
  132. package/build/module/Button/ButtonProps.js.map +1 -1
  133. package/build/module/Button/index.js +1 -0
  134. package/build/module/Button/index.js.map +1 -1
  135. package/build/module/Button/useVariantStyleMap.js +5 -7
  136. package/build/module/Button/useVariantStyleMap.js.map +1 -1
  137. package/build/module/Checkbox/Checkbox.js +5 -2
  138. package/build/module/Checkbox/Checkbox.js.map +1 -1
  139. package/build/module/Checkbox/index.js +1 -0
  140. package/build/module/Checkbox/index.js.map +1 -1
  141. package/build/module/Checkbox/useVariantStyleMap.js +6 -2
  142. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -1
  143. package/build/module/Chip/index.js +1 -0
  144. package/build/module/Chip/index.js.map +1 -1
  145. package/build/module/Chip/useChipStyle.js +2 -17
  146. package/build/module/Chip/useChipStyle.js.map +1 -1
  147. package/build/module/Dialog/index.js +1 -0
  148. package/build/module/Dialog/index.js.map +1 -1
  149. package/build/module/DialogContent/DialogContent.js +1 -2
  150. package/build/module/DialogContent/DialogContent.js.map +1 -1
  151. package/build/module/Divider/Divider.js +1 -1
  152. package/build/module/Divider/Divider.js.map +1 -1
  153. package/build/module/Divider/DividerProps.js +1 -1
  154. package/build/module/Divider/DividerProps.js.map +1 -1
  155. package/build/module/Divider/index.js +1 -0
  156. package/build/module/Divider/index.js.map +1 -1
  157. package/build/module/Empty/Empty.js +1 -2
  158. package/build/module/Empty/Empty.js.map +1 -1
  159. package/build/module/Flexbox/Flexbox.js +2 -0
  160. package/build/module/Flexbox/Flexbox.js.map +1 -1
  161. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  162. package/build/module/IconButton/index.js +1 -0
  163. package/build/module/IconButton/index.js.map +1 -1
  164. package/build/module/ListItem/ListItem.js +45 -27
  165. package/build/module/ListItem/ListItem.js.map +1 -1
  166. package/build/module/ListItem/ListItemProps.js.map +1 -1
  167. package/build/module/ListItemIcon/ListItemIcon.js +1 -2
  168. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  169. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  170. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  171. package/build/module/ListItemText/ListItemText.js +17 -19
  172. package/build/module/ListItemText/ListItemText.js.map +1 -1
  173. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  174. package/build/module/ListSubheader/ListSubheader.js +1 -1
  175. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  176. package/build/module/Pagination/NumberPagination.js +1 -1
  177. package/build/module/Pagination/NumberPagination.js.map +1 -1
  178. package/build/module/Pagination/index.js +1 -0
  179. package/build/module/Pagination/index.js.map +1 -1
  180. package/build/module/Radio/Radio.js +5 -2
  181. package/build/module/Radio/Radio.js.map +1 -1
  182. package/build/module/Section/Section.js +19 -0
  183. package/build/module/Section/Section.js.map +1 -0
  184. package/build/module/Section/SectionProps.js +2 -0
  185. package/build/module/Section/SectionProps.js.map +1 -0
  186. package/build/module/Section/index.js +2 -0
  187. package/build/module/Section/index.js.map +1 -0
  188. package/build/module/ShadowView/ShadowView.native.js +4 -0
  189. package/build/module/ShadowView/ShadowView.native.js.map +1 -1
  190. package/build/module/Snackbar/index.js +1 -0
  191. package/build/module/Snackbar/index.js.map +1 -1
  192. package/build/module/SnackbarContent/SnackbarContent.js +27 -12
  193. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  194. package/build/module/SvgIcon/index.js +1 -0
  195. package/build/module/SvgIcon/index.js.map +1 -1
  196. package/build/module/Tab/useVariantStyleMap.js +3 -3
  197. package/build/module/Tab/useVariantStyleMap.js.map +1 -1
  198. package/build/module/Tabs/Tabs.js +5 -1
  199. package/build/module/Tabs/Tabs.js.map +1 -1
  200. package/build/module/Tabs/index.js +1 -0
  201. package/build/module/Tabs/index.js.map +1 -1
  202. package/build/module/Tabs/useTabsStyle.js +30 -0
  203. package/build/module/Tabs/useTabsStyle.js.map +1 -0
  204. package/build/module/TextField/TextField.js +1 -1
  205. package/build/module/TextField/TextField.js.map +1 -1
  206. package/build/module/TextField/index.js +1 -0
  207. package/build/module/TextField/index.js.map +1 -1
  208. package/build/module/TextField/useVariantStyleMap.js +2 -2
  209. package/build/module/TextField/useVariantStyleMap.js.map +1 -1
  210. package/build/module/Toolbar/index.js +1 -0
  211. package/build/module/Toolbar/index.js.map +1 -1
  212. package/build/module/Tooltip/Beaks/index.js +4 -0
  213. package/build/module/Tooltip/Beaks/index.js.map +1 -1
  214. package/build/module/Tooltip/Tooltip.js +4 -16
  215. package/build/module/Tooltip/Tooltip.js.map +1 -1
  216. package/build/module/Tooltip/index.js +2 -0
  217. package/build/module/Tooltip/index.js.map +1 -1
  218. package/build/module/Typography/Typography.js +9 -2
  219. package/build/module/Typography/Typography.js.map +1 -1
  220. package/build/module/Typography/TypographyProps.js.map +1 -1
  221. package/build/module/Typography/index.js +1 -0
  222. package/build/module/Typography/index.js.map +1 -1
  223. package/build/module/hooks/useBreakpointUp.js +4 -1
  224. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  225. package/build/module/hooks/useContentContainerStyle.js +23 -26
  226. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  227. package/build/module/index.js +2 -0
  228. package/build/module/index.js.map +1 -1
  229. package/build/typescript/Accordion/index.d.ts +1 -0
  230. package/build/typescript/Accordion/useVariantStyleMap.d.ts +1 -0
  231. package/build/typescript/AppBar/index.d.ts +1 -0
  232. package/build/typescript/Badge/index.d.ts +2 -1
  233. package/build/typescript/Button/ButtonProps.d.ts +11 -6
  234. package/build/typescript/Button/index.d.ts +1 -0
  235. package/build/typescript/Checkbox/index.d.ts +1 -0
  236. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +1 -0
  237. package/build/typescript/Chip/index.d.ts +1 -0
  238. package/build/typescript/Dialog/index.d.ts +1 -0
  239. package/build/typescript/Divider/DividerProps.d.ts +3 -3
  240. package/build/typescript/Divider/index.d.ts +1 -0
  241. package/build/typescript/Flexbox/FlexboxProps.d.ts +4 -0
  242. package/build/typescript/IconButton/index.d.ts +1 -0
  243. package/build/typescript/ListItem/ListItem.d.ts +1 -1
  244. package/build/typescript/ListItem/ListItemProps.d.ts +4 -0
  245. package/build/typescript/ListItemText/ListItemTextProps.d.ts +2 -9
  246. package/build/typescript/Pagination/index.d.ts +1 -0
  247. package/build/typescript/Section/Section.d.ts +3 -0
  248. package/build/typescript/Section/SectionProps.d.ts +6 -0
  249. package/build/typescript/Section/index.d.ts +2 -0
  250. package/build/typescript/Snackbar/index.d.ts +1 -0
  251. package/build/typescript/SvgIcon/index.d.ts +1 -0
  252. package/build/typescript/Tabs/index.d.ts +1 -0
  253. package/build/typescript/Tabs/useTabsStyle.d.ts +7 -0
  254. package/build/typescript/TextField/index.d.ts +1 -0
  255. package/build/typescript/Toolbar/index.d.ts +1 -0
  256. package/build/typescript/Tooltip/Beaks/index.d.ts +4 -0
  257. package/build/typescript/Tooltip/index.d.ts +3 -1
  258. package/build/typescript/Typography/TypographyProps.d.ts +4 -0
  259. package/build/typescript/Typography/index.d.ts +1 -0
  260. package/build/typescript/hooks/useContentContainerStyle.d.ts +4 -8
  261. package/build/typescript/index.d.ts +2 -0
  262. package/package.json +3 -3
  263. package/src/Accordion/Accordion.tsx +4 -1
  264. package/src/Accordion/index.ts +1 -0
  265. package/src/Accordion/useVariantStyleMap.ts +12 -10
  266. package/src/AppBar/index.ts +1 -0
  267. package/src/Badge/index.ts +12 -1
  268. package/src/Badge/useVariantStyleMap.ts +2 -2
  269. package/src/BottomSheetTitle/BottomSheetTitle.tsx +1 -0
  270. package/src/Button/Button.tsx +19 -4
  271. package/src/Button/ButtonProps.ts +12 -6
  272. package/src/Button/index.ts +1 -0
  273. package/src/Button/useVariantStyleMap.ts +3 -7
  274. package/src/Checkbox/Checkbox.tsx +12 -9
  275. package/src/Checkbox/index.ts +1 -0
  276. package/src/Checkbox/useVariantStyleMap.ts +6 -1
  277. package/src/Chip/index.ts +1 -0
  278. package/src/Chip/useChipStyle.ts +2 -17
  279. package/src/Dialog/index.ts +1 -0
  280. package/src/DialogContent/DialogContent.tsx +1 -2
  281. package/src/Divider/Divider.tsx +1 -1
  282. package/src/Divider/DividerProps.ts +3 -3
  283. package/src/Divider/index.ts +1 -0
  284. package/src/Empty/Empty.tsx +1 -2
  285. package/src/Flexbox/Flexbox.tsx +2 -0
  286. package/src/Flexbox/FlexboxProps.ts +5 -0
  287. package/src/IconButton/index.ts +1 -0
  288. package/src/ListItem/ListItem.tsx +69 -28
  289. package/src/ListItem/ListItemProps.ts +5 -0
  290. package/src/ListItemIcon/ListItemIcon.tsx +1 -2
  291. package/src/ListItemSecondaryAction/ListItemSecondaryAction.tsx +2 -0
  292. package/src/ListItemText/ListItemText.tsx +20 -28
  293. package/src/ListItemText/ListItemTextProps.ts +2 -10
  294. package/src/ListSubheader/ListSubheader.tsx +1 -1
  295. package/src/Pagination/NumberPagination.tsx +1 -1
  296. package/src/Pagination/index.ts +1 -0
  297. package/src/Radio/Radio.tsx +8 -2
  298. package/src/Section/Section.tsx +26 -0
  299. package/src/Section/SectionProps.ts +6 -0
  300. package/src/Section/index.ts +2 -0
  301. package/src/ShadowView/ShadowView.native.tsx +4 -0
  302. package/src/Snackbar/index.ts +1 -0
  303. package/src/SnackbarContent/SnackbarContent.tsx +37 -18
  304. package/src/SvgIcon/index.ts +1 -0
  305. package/src/Tab/useVariantStyleMap.ts +3 -3
  306. package/src/Tabs/Tabs.tsx +4 -0
  307. package/src/Tabs/index.ts +1 -0
  308. package/src/Tabs/useTabsStyle.ts +35 -0
  309. package/src/TextField/TextField.tsx +1 -1
  310. package/src/TextField/index.tsx +1 -0
  311. package/src/TextField/useVariantStyleMap.ts +2 -2
  312. package/src/Toolbar/index.ts +1 -0
  313. package/src/Tooltip/Beaks/index.ts +4 -0
  314. package/src/Tooltip/Tooltip.tsx +5 -16
  315. package/src/Tooltip/index.ts +3 -1
  316. package/src/Typography/Typography.tsx +3 -1
  317. package/src/Typography/TypographyProps.ts +5 -0
  318. package/src/Typography/index.ts +1 -0
  319. package/src/hooks/useBreakpointUp.ts +3 -1
  320. package/src/hooks/useContentContainerStyle.ts +26 -34
  321. package/src/index.ts +3 -0
  322. package/build/commonjs/TextField/InputLabel.js +0 -163
  323. package/build/commonjs/TextField/InputLabel.js.map +0 -1
  324. package/build/module/TextField/InputLabel.js +0 -149
  325. package/build/module/TextField/InputLabel.js.map +0 -1
  326. package/build/typescript/TextField/InputLabel.d.ts +0 -33
  327. package/src/TextField/InputLabel.tsx +0 -234
@@ -9,8 +9,16 @@ Object.defineProperty(exports, "default", {
9
9
  return _IconButton.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "iconButtonColors", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _IconButtonProps.iconButtonColors;
16
+ }
17
+ });
12
18
 
13
19
  var _IconButton = _interopRequireDefault(require("./IconButton"));
14
20
 
21
+ var _IconButtonProps = require("./IconButtonProps");
22
+
15
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';\nexport { iconButtonColors } from './IconButtonProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -9,22 +9,34 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _reactNative = require("react-native");
11
11
 
12
+ var _styles = require("@fountain-ui/styles");
13
+
12
14
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
13
15
 
14
- var _styles = require("../styles");
16
+ var _Row = _interopRequireDefault(require("../Row"));
15
17
 
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ var _styles2 = require("../styles");
17
19
 
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
22
  const useStyles = function () {
21
- const theme = (0, _styles.useTheme)();
23
+ const theme = (0, _styles2.useTheme)();
22
24
  return {
23
- root: {
24
- flexDirection: 'row',
25
- paddingVertical: theme.spacing(3),
25
+ content: {
26
+ gap: theme.spacing(2),
27
+ paddingVertical: theme.spacing(3.75),
26
28
  paddingHorizontal: theme.spacing(4),
27
29
  width: '100%'
30
+ },
31
+ description: {
32
+ paddingRight: theme.spacing(20)
33
+ },
34
+ divider: {
35
+ borderBottomColor: theme.palette.border.weak,
36
+ borderBottomWidth: 0.5
37
+ },
38
+ dividerWrapper: {
39
+ paddingHorizontal: theme.spacing(4)
28
40
  }
29
41
  };
30
42
  };
@@ -34,39 +46,49 @@ function ListItem(props) {
34
46
  alignItems = 'center',
35
47
  button = false,
36
48
  children,
49
+ description,
37
50
  disabled = false,
38
51
  onPress,
39
52
  style,
40
53
  ...otherProps
41
54
  } = props;
55
+ const theme = (0, _styles2.useTheme)();
42
56
  const styles = useStyles();
43
57
  const rootComponentProps = {
44
58
  accessibilityRole: _reactNative.Platform.OS === 'web' ? 'listitem' : undefined,
45
59
  ...otherProps
46
60
  };
47
- const rootStyle = (0, _styles.css)([styles.root, {
48
- alignItems
49
- }, style]);
61
+ const contentWrapperStyle = (0, _styles2.css)([styles.content, style]);
62
+ const descriptionFontStyle = (0, _styles2.createFontStyle)(theme, {
63
+ selector: _ => (0, _styles.typographyOf)({
64
+ fontSize: 14,
65
+ lineHeight: 19.6,
66
+ fontFamily: 'PretendardStd-Regular',
67
+ letterSpacing: 0
68
+ }),
69
+ color: theme.palette.text.base
70
+ });
50
71
 
51
- if (button) {
52
- return (
53
- /*#__PURE__*/
54
- // @ts-ignore
55
- _react.default.createElement(_reactNative.View, rootComponentProps, /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
56
- disabled: disabled,
57
- onPress: onPress,
58
- style: rootStyle
59
- }, children))
60
- );
61
- }
72
+ const content = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Row.default, {
73
+ alignItems: alignItems
74
+ }, children), description ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
75
+ style: (0, _styles2.css)([styles.description, descriptionFontStyle])
76
+ }, description) : null);
62
77
 
63
78
  return (
64
79
  /*#__PURE__*/
65
80
  // @ts-ignore
66
- _react.default.createElement(_reactNative.View, _extends({
67
- children: children,
68
- style: rootStyle
69
- }, rootComponentProps))
81
+ _react.default.createElement(_reactNative.View, rootComponentProps, button ? /*#__PURE__*/_react.default.createElement(_ButtonBase.default, {
82
+ disabled: disabled,
83
+ onPress: onPress,
84
+ style: contentWrapperStyle
85
+ }, content) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
86
+ style: contentWrapperStyle
87
+ }, content), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
88
+ style: styles.dividerWrapper
89
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
90
+ style: styles.divider
91
+ })))
70
92
  );
71
93
  }
72
94
 
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","flexDirection","paddingVertical","spacing","paddingHorizontal","width","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","rootStyle","css"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { css, useTheme } from '../styles';\nimport ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n paddingVertical: theme.spacing(3),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center',\n button = false,\n children,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const rootStyle = css([\n styles.root,\n { alignItems },\n style,\n ]);\n\n if (button) {\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={rootStyle}\n >\n {children}\n </ButtonBase>\n </View>\n );\n }\n\n return (\n // @ts-ignore\n <View\n children={children}\n style={rootStyle}\n {...rootComponentProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd,CAFf;MAGFC,iBAAiB,EAAEN,KAAK,CAACK,OAAN,CAAc,CAAd,CAHjB;MAIFE,KAAK,EAAE;IAJL;EADH,CAAP;AAQH,CAXD;;AAae,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,UAAU,GAAG,QADX;IAEFC,MAAM,GAAG,KAFP;IAGFC,QAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,OALE;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGlB,SAAS,EAAxB;EAEA,MAAMmB,kBAAkB,GAAG;IACvBC,iBAAiB,EAAEC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SADjC;IAEvB,GAAGN;EAFoB,CAA3B;EAKA,MAAMO,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBP,MAAM,CAACf,IADW,EAElB;IAAEQ;EAAF,CAFkB,EAGlBK,KAHkB,CAAJ,CAAlB;;EAMA,IAAIJ,MAAJ,EAAY;IACR;MAAA;MACI;MACA,6BAAC,iBAAD,EAAUO,kBAAV,eACI,6BAAC,mBAAD;QACI,QAAQ,EAAEL,QADd;QAEI,OAAO,EAAEC,OAFb;QAGI,KAAK,EAAES;MAHX,GAKKX,QALL,CADJ;IAFJ;EAYH;;EAED;IAAA;IACI;IACA,6BAAC,iBAAD;MACI,QAAQ,EAAEA,QADd;MAEI,KAAK,EAAEW;IAFX,GAGQL,kBAHR;EAFJ;AAQH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","content","gap","spacing","paddingVertical","paddingHorizontal","width","description","paddingRight","divider","borderBottomColor","palette","border","weak","borderBottomWidth","dividerWrapper","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","contentWrapperStyle","css","descriptionFontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","text","base"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle } from 'react-native';\nimport { Platform, Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'content' | 'description' | 'divider' | 'dividerWrapper'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n content: {\n gap: theme.spacing(2),\n paddingVertical: theme.spacing(3.75),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n description: {\n paddingRight: theme.spacing(20),\n },\n divider: {\n borderBottomColor: theme.palette.border.weak,\n borderBottomWidth: 0.5,\n },\n dividerWrapper: {\n paddingHorizontal: theme.spacing(4),\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center' as FlexStyle['alignItems'],\n button = false,\n children,\n description,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const contentWrapperStyle = css([\n styles.content,\n style,\n ]);\n\n const descriptionFontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 14,\n lineHeight: 19.6,\n fontFamily: 'PretendardStd-Regular',\n letterSpacing: 0,\n }),\n color: theme.palette.text.base,\n });\n\n const content = (\n <React.Fragment>\n <Row alignItems={alignItems}>\n {children}\n </Row>\n\n {description ? (\n <Text style={css([\n styles.description,\n descriptionFontStyle,\n ])}>\n {description}\n </Text>\n ) : null}\n </React.Fragment>\n );\n\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n {button ? (\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={contentWrapperStyle}\n >\n {content}\n </ButtonBase>\n ) : (\n <View style={contentWrapperStyle}>\n {content}\n </View>\n )}\n\n <View style={styles.dividerWrapper}>\n <View style={styles.divider}/>\n </View>\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,OAAO,EAAE;MACLC,GAAG,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADA;MAELC,eAAe,EAAEL,KAAK,CAACI,OAAN,CAAc,IAAd,CAFZ;MAGLE,iBAAiB,EAAEN,KAAK,CAACI,OAAN,CAAc,CAAd,CAHd;MAILG,KAAK,EAAE;IAJF,CADN;IAOHC,WAAW,EAAE;MACTC,YAAY,E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iB;EAAjB,GACKE,QADL,CADJ,EAKKb,WAAW,gBACR,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAyB,YAAA,EAAI,CACbP,MAAM,CAAClB,WADM,EAEb0B,oBAFa,CAAJ;EAAb,GAIK1B,WAJL,CADQ,GAOR,IAZR,CADJ;;EAiBA;IAAA;IACI;IACA,6BAAC,iBAAD,EAAUmB,kBAAV,EACKP,MAAM,gBACH,6BAAC,mBAAD;MACI,QAAQ,EAAEE,QADd;MAEI,OAAO,EAAEC,OAFb;MAGI,KAAK,EAAES;IAHX,GAKK9B,OALL,CADG,gBASH,6BAAC,iBAAD;MAAM,KAAK,EAAE8B;IAAb,GACK9B,OADL,CAVR,eAeI,6BAAC,iBAAD;MAAM,KAAK,EAAEwB,MAAM,CAACV;IAApB,gBACI,6BAAC,iBAAD;MAAM,KAAK,EAAEU,MAAM,CAAChB;IAApB,EADJ,CAfJ;EAFJ;AAsBH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ListItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>, {\n /**\n * Aligns children vertical direction.\n * @default 'center'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * If `true`, the list item is a button (using `ButtonBase`).\n * @default false\n */\n button?: boolean;\n\n /**\n * Whether to prevent interaction with the ButtonBase.\n * @default false\n */\n disabled?: ButtonBaseProps['disabled'];\n\n /**\n * Function to execute on press. If not set, will cause the ButtonBase to be disabled.\n */\n onPress?: ButtonBaseProps['onPress'];\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["ListItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>, {\n /**\n * Aligns children vertical direction.\n * @default 'center'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * If `true`, the list item is a button (using `ButtonBase`).\n * @default false\n */\n button?: boolean;\n\n /**\n * Displays a description in this item.\n */\n description?: string;\n\n /**\n * Whether to prevent interaction with the ButtonBase.\n * @default false\n */\n disabled?: ButtonBaseProps['disabled'];\n\n /**\n * Function to execute on press. If not set, will cause the ButtonBase to be disabled.\n */\n onPress?: ButtonBaseProps['onPress'];\n}> {}\n"],"mappings":""}
@@ -19,8 +19,7 @@ const useStyles = function () {
19
19
  const theme = (0, _styles.useTheme)();
20
20
  return {
21
21
  root: {
22
- marginRight: theme.spacing(2),
23
- minWidth: 24,
22
+ marginRight: theme.spacing(3),
24
23
  flexShrink: 0
25
24
  }
26
25
  };
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","marginRight","spacing","minWidth","flexShrink","ListItemIcon","props","style","otherProps","styles","css"],"sources":["ListItemIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(2),\n minWidth: 24,\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,WAAW,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADX;MAEFC,QAAQ,EAAE,EAFR;MAGFC,UAAU,EAAE;IAHV;EADH,CAAP;AAOH,CAVD;;AAYe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGZ,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAa,WAAA,EAAI,CACPD,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","marginRight","spacing","flexShrink","ListItemIcon","props","style","otherProps","styles","css"],"sources":["ListItemIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(3),\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,WAAW,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADX;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CATD;;AAWe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGX,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAY,WAAA,EAAI,CACPD,MAAM,CAACR,IADA,EAEPM,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -18,6 +18,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
18
18
  const useStyles = function () {
19
19
  return {
20
20
  root: {
21
+ alignItems: 'center',
22
+ flexDirection: 'row',
21
23
  flexShrink: 0,
22
24
  marginLeft: 'auto'
23
25
  }
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","root","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles","css"],"sources":["ListItemSecondaryAction.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAmD,GAAG,YAA2C;EACnG,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,CADV;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;EACjF,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGR,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAS,WAAA,EAAI,CACPD,MAAM,CAACP,IADA,EAEPK,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
1
+ {"version":3,"names":["useStyles","root","alignItems","flexDirection","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles","css"],"sources":["ListItemSecondaryAction.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAmD,GAAG,YAA2C;EACnG,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE,KAFb;MAGFC,UAAU,EAAE,CAHV;MAIFC,UAAU,EAAE;IAJV;EADH,CAAP;AAQH,CATD;;AAWe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;EACjF,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGV,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAW,WAAA,EAAI,CACPD,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -7,50 +7,49 @@ exports.default = ListItemText;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _Column = _interopRequireDefault(require("../Column"));
10
+ var _reactNative = require("react-native");
11
+
12
+ var _styles = require("@fountain-ui/styles");
11
13
 
12
- var _Typography = _interopRequireDefault(require("../Typography"));
14
+ var _Column = _interopRequireDefault(require("../Column"));
13
15
 
14
- var _styles = require("../styles");
16
+ var _styles2 = require("../styles");
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
21
 
20
22
  const useStyles = function () {
21
- const theme = (0, _styles.useTheme)();
22
23
  return {
23
24
  root: {
24
25
  flexGrow: 1,
25
26
  flexShrink: 1
26
- },
27
- multiline: {
28
- marginBottom: theme.spacing(1)
29
27
  }
30
28
  };
31
29
  };
32
30
 
33
31
  function ListItemText(props) {
34
32
  const {
35
- primary,
36
- secondary,
33
+ children,
37
34
  style,
38
35
  ...otherProps
39
36
  } = props;
37
+ const theme = (0, _styles2.useTheme)();
40
38
  const styles = useStyles();
41
- const isMultiline = !!(primary && secondary);
39
+ const fontStyle = (0, _styles2.createFontStyle)(theme, {
40
+ selector: _ => (0, _styles.typographyOf)({
41
+ fontSize: 16,
42
+ lineHeight: 19.2,
43
+ fontFamily: 'PretendardStd-Medium',
44
+ letterSpacing: 0
45
+ }),
46
+ color: theme.palette.text.strong
47
+ });
42
48
  return /*#__PURE__*/_react.default.createElement(_Column.default, _extends({
43
- style: (0, _styles.css)([styles.root, style])
44
- }, otherProps), primary ? /*#__PURE__*/_react.default.createElement(_Typography.default, {
45
- children: primary,
46
- color: 'strong',
47
- variant: 'body3',
48
- style: isMultiline ? styles.multiline : undefined
49
- }) : null, secondary ? /*#__PURE__*/_react.default.createElement(_Typography.default, {
50
- children: secondary,
51
- color: 'strong',
52
- variant: 'body3'
53
- }) : null);
49
+ style: (0, _styles2.css)([styles.root, style])
50
+ }, otherProps), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
51
+ style: fontStyle
52
+ }, children));
54
53
  }
55
54
 
56
55
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","css","undefined"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'strong'}\n variant={'body3'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'strong'}\n variant={'body3'}\n />\n ) : null}\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV,CADH;IAKHC,SAAS,EAAE;MACPC,YAAY,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;IADP;EALR,CAAP;AASH,CAZD;;AAce,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,OADE;IAEFC,SAFE;IAGFC,KAHE;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,MAAMK,MAAM,GAAGf,SAAS,EAAxB;EAEA,MAAMgB,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;EAEA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAE,IAAAK,WAAA,EAAI,CACPF,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAJ;EADX,GAKQC,UALR,GAOKH,OAAO,gBACJ,6BAAC,mBAAD;IACI,QAAQ,EAAEA,OADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE,OAHb;IAII,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBY;EAJ5C,EADI,GAOJ,IAdR,EAgBKN,SAAS,gBACN,6BAAC,mBAAD;IACI,QAAQ,EAAEA,SADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EADM,GAMN,IAtBR,CADJ;AA0BH;;AAAA"}
1
+ {"version":3,"names":["useStyles","root","flexGrow","flexShrink","ListItemText","props","children","style","otherProps","theme","useTheme","styles","fontStyle","createFontStyle","selector","_","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","color","palette","text","strong","css"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { typographyOf } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n children,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const fontStyle = createFontStyle(theme, {\n selector: (_) => typographyOf({\n fontSize: 16,\n lineHeight: 19.2,\n fontFamily: 'PretendardStd-Medium',\n letterSpacing: 0,\n }),\n color: theme.palette.text.strong,\n });\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n <Text style={fontStyle}>\n {children}\n </Text>\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,OAAO;IACHC,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,QADE;IAEFC,KAFE;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,MAAMC,MAAM,GAAGX,SAAS,EAAxB;EAEA,MAAMY,SAAS,GAAG,IAAAC,wBAAA,EAAgBJ,KAAhB,EAAuB;IACrCK,QAAQ,EAAGC,CAAD,IAAO,IAAAC,oBAAA,EAAa;MAC1BC,QAAQ,EAAE,EADgB;MAE1BC,UAAU,EAAE,IAFc;MAG1BC,UAAU,EAAE,sBAHc;MAI1BC,aAAa,EAAE;IAJW,CAAb,CADoB;IAOrCC,KAAK,EAAEZ,KAAK,CAACa,OAAN,CAAcC,IAAd,CAAmBC;EAPW,CAAvB,CAAlB;EAUA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAE,IAAAC,YAAA,EAAI,CACPd,MAAM,CAACV,IADA,EAEPM,KAFO,CAAJ;EADX,GAKQC,UALR,gBAOI,6BAAC,iBAAD;IAAM,KAAK,EAAEI;EAAb,GACKN,QADL,CAPJ,CADJ;AAaH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\ntype BaseProps = Omit<ColumnProps, 'children'>;\n\nexport default interface ListItemTextProps extends OverridableComponentProps<BaseProps, {\n /**\n * The main content element.\n */\n primary?: TypographyProps['children'];\n\n /**\n * The secondary content element.\n */\n secondary?: TypographyProps['children'];\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\nexport default interface ListItemTextProps extends OverridableComponentProps<ColumnProps, {\n /**\n * The main content element.\n */\n children: string;\n}> {}\n"],"mappings":""}
@@ -33,7 +33,7 @@ function ListSubheader(props) {
33
33
  }, otherProps), disableTypography ? children : /*#__PURE__*/_react.default.createElement(_Typography.default, {
34
34
  children: children,
35
35
  color: 'strong',
36
- variant: 'caption3'
36
+ variant: 'caption2'
37
37
  }));
38
38
  }
39
39
 
@@ -1 +1 @@
1
- {"version":3,"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'strong'}\n variant={'caption3'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,6BAAC,YAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH,iBAFvB;IAGI,MAAM,EAAEI,kBAAA,CAAWC,UAAX,CAAsB,CAAtB;EAHZ,GAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;;AAAA"}
1
+ {"version":3,"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'strong'}\n variant={'caption2'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,6BAAC,YAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH,iBAFvB;IAGI,MAAM,EAAEI,kBAAA,CAAWC,UAAX,CAAsB,CAAtB;EAHZ,GAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,QAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;;AAAA"}
@@ -46,7 +46,7 @@ function NumberPagination(props) {
46
46
  const typography = (0, _styles.typographyOf)({
47
47
  fontSize: 9.5,
48
48
  lineHeight: 11.4,
49
- fontFamily: 'Pretendard-SemiBold',
49
+ fontFamily: 'PretendardStd-SemiBold',
50
50
  letterSpacing: -0.19
51
51
  });
52
52
  const currentFontStyle = (0, _styles2.createFontStyle)(theme, {
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","backgroundColor","commonColors","static","weakOpacity","borderRadius","shape","radius","full","paddingHorizontal","spacing","paddingVertical","divider","alignSelf","borderColor","weakOpacityInverse","height","NumberPagination","props","currentPage","maxPage","styles","typography","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","currentFontStyle","createFontStyle","selector","_","color","strongInverse","countFontStyle","baseOpacityInverse"],"sources":["NumberPagination.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { commonColors, typographyOf } from '@fountain-ui/styles';\nimport Divider from '../Divider';\nimport Row from '../Row';\nimport { createFontStyle, useTheme } from '../styles';\nimport type PaginationProps from './PaginationProps';\n\ntype NumberPaginationStyles = NamedStylesStringUnion<'root' | 'divider'>;\n\nconst useStyles: UseStyles<NumberPaginationStyles> = function (): NumberPaginationStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: commonColors.static.weakOpacity,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(1.25),\n paddingVertical: theme.spacing(0.5),\n },\n divider: {\n alignSelf: 'center',\n borderColor: commonColors.static.weakOpacityInverse,\n height: 6,\n },\n };\n};\n\ninterface NumberPaginationProps {\n currentPage: PaginationProps['page'];\n maxPage: PaginationProps['count'];\n}\n\nexport default function NumberPagination(props: NumberPaginationProps) {\n const {\n currentPage,\n maxPage,\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const typography = typographyOf({\n fontSize: 9.5,\n lineHeight: 11.4,\n fontFamily: 'Pretendard-SemiBold',\n letterSpacing: -0.19,\n });\n\n const currentFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.strongInverse,\n });\n\n const countFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.baseOpacityInverse,\n });\n\n return (\n <Row style={styles.root}>\n <Text style={currentFontStyle}>\n {currentPage + 1}\n </Text>\n\n <Divider\n style={styles.divider}\n vertical={true}\n />\n\n <Text style={countFontStyle}>\n {maxPage}\n </Text>\n </Row>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAKA,MAAMA,SAA4C,GAAG,YAAoC;EACrF,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,eAAe,EAAEC,oBAAA,CAAaC,MAAb,CAAoBC,WADnC;MAEFC,YAAY,EAAEP,KAAK,CAACQ,KAAN,CAAYC,MAAZ,CAAmBC,IAF/B;MAGFC,iBAAiB,EAAEX,KAAK,CAACY,OAAN,CAA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d,OADL,CAVJ,CADJ;AAgBH"}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","backgroundColor","commonColors","static","weakOpacity","borderRadius","shape","radius","full","paddingHorizontal","spacing","paddingVertical","divider","alignSelf","borderColor","weakOpacityInverse","height","NumberPagination","props","currentPage","maxPage","styles","typography","typographyOf","fontSize","lineHeight","fontFamily","letterSpacing","currentFontStyle","createFontStyle","selector","_","color","strongInverse","countFontStyle","baseOpacityInverse"],"sources":["NumberPagination.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { commonColors, typographyOf } from '@fountain-ui/styles';\nimport Divider from '../Divider';\nimport Row from '../Row';\nimport { createFontStyle, useTheme } from '../styles';\nimport type PaginationProps from './PaginationProps';\n\ntype NumberPaginationStyles = NamedStylesStringUnion<'root' | 'divider'>;\n\nconst useStyles: UseStyles<NumberPaginationStyles> = function (): NumberPaginationStyles {\n const theme = useTheme();\n\n return {\n root: {\n backgroundColor: commonColors.static.weakOpacity,\n borderRadius: theme.shape.radius.full,\n paddingHorizontal: theme.spacing(1.25),\n paddingVertical: theme.spacing(0.5),\n },\n divider: {\n alignSelf: 'center',\n borderColor: commonColors.static.weakOpacityInverse,\n height: 6,\n },\n };\n};\n\ninterface NumberPaginationProps {\n currentPage: PaginationProps['page'];\n maxPage: PaginationProps['count'];\n}\n\nexport default function NumberPagination(props: NumberPaginationProps) {\n const {\n currentPage,\n maxPage,\n } = props;\n\n const styles = useStyles();\n\n const theme = useTheme();\n\n const typography = typographyOf({\n fontSize: 9.5,\n lineHeight: 11.4,\n fontFamily: 'PretendardStd-SemiBold',\n letterSpacing: -0.19,\n });\n\n const currentFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.strongInverse,\n });\n\n const countFontStyle = createFontStyle(theme, {\n selector: (_) => typography,\n color: commonColors.static.baseOpacityInverse,\n });\n\n return (\n <Row style={styles.root}>\n <Text style={currentF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AMC,cAAc,GAAG,IAAAL,wBAAA,EAAgB/B,KAAhB,EAAuB;IAC1CgC,QAAQ,EAAGC,CAAD,IAAOT,UADyB;IAE1CU,KAAK,EAAE9B,oBAAA,CAAaC,MAAb,CAAoBgC;EAFe,CAAvB,CAAvB;EAKA,oBACI,6BAAC,YAAD;IAAK,KAAK,EAAEd,MAAM,CAACrB;EAAnB,gBACI,6BAAC,iBAAD;IAAM,KAAK,EAAE4B;EAAb,GACKT,WAAW,GAAG,CADnB,CADJ,eAKI,6BAAC,gBAAD;IACI,KAAK,EAAEE,MAAM,CAACT,OADlB;IAEI,QAAQ,EAAE;EAFd,EALJ,eAUI,6BAAC,iBAAD;IAAM,KAAK,EAAEsB;EAAb,GACKd,OADL,CAVJ,CADJ;AAgBH"}
@@ -9,8 +9,16 @@ Object.defineProperty(exports, "default", {
9
9
  return _Pagination.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "paginationVariants", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _PaginationProps.paginationVariants;
16
+ }
17
+ });
12
18
 
13
19
  var _Pagination = _interopRequireDefault(require("./Pagination"));
14
20
 
21
+ var _PaginationProps = require("./PaginationProps");
22
+
15
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';\nexport { paginationVariants } from './PaginationProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -29,6 +29,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
29
29
 
30
30
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
31
 
32
+ const DEFAULT_START_ICON_SIZE = 21;
33
+
32
34
  const useStyles = function () {
33
35
  const theme = (0, _styles.useTheme)();
34
36
  return {
@@ -78,11 +80,13 @@ function Radio(props) {
78
80
  const checkedIcon = checkIconProp ?? defaultCheckedIcon;
79
81
  const icon = isChecked ? checkedIcon : null;
80
82
  const startIcon = (0, _utils.cloneElementSafely)(startIconProp, {
81
- color: 'strong'
83
+ color: 'strong',
84
+ height: DEFAULT_START_ICON_SIZE,
85
+ width: DEFAULT_START_ICON_SIZE
82
86
  });
83
87
  const rootStyle = (0, _styles.css)([styles.root, style]);
84
88
  const fontStyle = (0, _styles.createFontStyle)(theme, {
85
- // TODO: apply typo select.
89
+ selector: typography => typography.body1.regular,
86
90
  color: theme.palette.text.strong
87
91
  });
88
92
  return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","theme","useTheme","root","alignItems","flexDirection","gap","spacing","justifyContent","content","minHeight","Radio","props","checked","children","checkedIcon","checkIconProp","disabled","onChange","onChangeProp","startIcon","startIconProp","style","value","otherProps","styles","context","useContext","RadioContext","handlePress","isChecked","defaultCheckedIcon","icon","cloneElementSafely","color","rootStyle","css","fontStyle","createFontStyle","palette","text","strong"],"sources":["Radio.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Check as CheckedIcon } from '../internal';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport { RadioContext } from '../RadioGroup/RadioContextProvider';\nimport type RadioProps from './RadioProps';\n\ntype RadioStyles = NamedStylesStringUnion<'root' | 'content'>;\n\nconst useStyles: UseStyles<RadioStyles> = function (): RadioStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n gap: theme.spacing(8),\n justifyContent: 'space-between',\n },\n content: {\n gap: theme.spacing(2),\n minHeight: 20,\n },\n };\n};\n\nexport default function Radio(props: RadioProps) {\n const {\n checked = false,\n children,\n checkedIcon: checkIconProp,\n disabled = false,\n onChange: onChangeProp,\n startIcon: startIconProp,\n style,\n value,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const context = useContext(RadioContext);\n\n const handlePress = () => {\n const onChange = context?.onChange ?? onChangeProp;\n if (onChange) {\n onChange(value);\n }\n };\n\n const isChecked = context?.value === value ?? checked;\n\n const defaultCheckedIcon = (\n <CheckedIcon color={'accent'}/>\n );\n\n const checkedIcon = checkIconProp ?? defaultCheckedIcon;\n const icon = isChecked ? checkedIcon : null;\n\n const startIcon = cloneElementSafely(startIconProp, { color: 'strong' });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n // TODO: apply typo select.\n color: theme.palette.text.strong,\n });\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <Row\n alignItems={'center'}\n style={styles.content}\n >\n {startIcon}\n\n <Text\n children={children}\n style={fontStyle}\n />\n </Row>\n\n {icon}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAKA,MAAMA,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE,KAFb;MAGFC,GAAG,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CAHH;MAIFC,cAAc,EAAE;IAJd,CADH;IAOHC,OAAO,EAAE;MACL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AMe,SAAS,GAAG,IAAAC,uBAAA,EAAgBrC,KAAhB,EAAuB;IACrC;IACAiC,KAAK,EAAEjC,KAAK,CAACsC,OAAN,CAAcC,IAAd,CAAmBC;EAFW,CAAvB,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAExB,QADd;IAEI,OAAO,EAAEY,WAFb;IAGI,KAAK,EAAEM;EAHX,GAIQX,UAJR,gBAMI,6BAAC,YAAD;IACI,UAAU,EAAE,QADhB;IAEI,KAAK,EAAEC,MAAM,CAAChB;EAFlB,GAIKW,SAJL,eAMI,6BAAC,iBAAD;IACI,QAAQ,EAAEN,QADd;IAEI,KAAK,EAAEuB;EAFX,EANJ,CANJ,EAkBKL,IAlBL,CADJ;AAsBH;;AAAA"}
1
+ {"version":3,"names":["DEFAULT_START_ICON_SIZE","useStyles","theme","useTheme","root","alignItems","flexDirection","gap","spacing","justifyContent","content","minHeight","Radio","props","checked","children","checkedIcon","checkIconProp","disabled","onChange","onChangeProp","startIcon","startIconProp","style","value","otherProps","styles","context","useContext","RadioContext","handlePress","isChecked","defaultCheckedIcon","icon","cloneElementSafely","color","height","width","rootStyle","css","fontStyle","createFontStyle","selector","typography","body1","regular","palette","text","strong"],"sources":["Radio.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { Text } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Check as CheckedIcon } from '../internal';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport { RadioContext } from '../RadioGroup/RadioContextProvider';\nimport type RadioProps from './RadioProps';\n\nconst DEFAULT_START_ICON_SIZE = 21;\n\ntype RadioStyles = NamedStylesStringUnion<'root' | 'content'>;\n\nconst useStyles: UseStyles<RadioStyles> = function (): RadioStyles {\n const theme = useTheme();\n\n return {\n root: {\n alignItems: 'center',\n flexDirection: 'row',\n gap: theme.spacing(8),\n justifyContent: 'space-between',\n },\n content: {\n gap: theme.spacing(2),\n minHeight: 20,\n },\n };\n};\n\nexport default function Radio(props: RadioProps) {\n const {\n checked = false,\n children,\n checkedIcon: checkIconProp,\n disabled = false,\n onChange: onChangeProp,\n startIcon: startIconProp,\n style,\n value,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const styles = useStyles();\n\n const context = useContext(RadioContext);\n\n const handlePress = () => {\n const onChange = context?.onChange ?? onChangeProp;\n if (onChange) {\n onChange(value);\n }\n };\n\n const isChecked = context?.value === value ?? checked;\n\n const defaultCheckedIcon = (\n <CheckedIcon color={'accent'}/>\n );\n\n const checkedIcon = checkIconProp ?? defaultCheckedIcon;\n const icon = isChecked ? checkedIcon : null;\n\n const startIcon = cloneElementSafely(startIconProp, {\n color: 'strong',\n height: DEFAULT_START_ICON_SIZE,\n width: DEFAULT_START_ICON_SIZE,\n });\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typography) => typography.body1.regular,\n color: theme.palette.text.strong,\n });\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <Row\n alignItems={'center'}\n style={styles.content}\n >\n {startIcon}\n\n <Text\n children={children}\n style={fontStyle}\n />\n </Row>\n\n {icon}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAGA,MAAMA,uBAAuB,GAAG,EAAhC;;AAIA,MAAMC,SAAiC,GAAG,YAAyB;EAC/D,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,QADV;MAEFC,aAAa,EAAE,KAFb;MAGFC,GAAG,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd,CAHH;MAIFC,cAAc,EAAE;IAJd,CADH;IAOHC,OAAO,EAAE;MACLH,GAAG,EA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,CAACtB,IADW,EAElBmB,KAFkB,CAAJ,CAAlB;EAKA,MAAMiB,SAAS,GAAG,IAAAC,uBAAA,EAAgBvC,KAAhB,EAAuB;IACrCwC,QAAQ,EAAGC,UAAD,IAAgBA,UAAU,CAACC,KAAX,CAAiBC,OADN;IAErCV,KAAK,EAAEjC,KAAK,CAAC4C,OAAN,CAAcC,IAAd,CAAmBC;EAFW,CAAvB,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAE9B,QADd;IAEI,OAAO,EAAEY,WAFb;IAGI,KAAK,EAAEQ;EAHX,GAIQb,UAJR,gBAMI,6BAAC,YAAD;IACI,UAAU,EAAE,QADhB;IAEI,KAAK,EAAEC,MAAM,CAAChB;EAFlB,GAIKW,SAJL,eAMI,6BAAC,iBAAD;IACI,QAAQ,EAAEN,QADd;IAEI,KAAK,EAAEyB;EAFX,EANJ,CANJ,EAkBKP,IAlBL,CADJ;AAsBH;;AAAA"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Section;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _hooks = require("../hooks");
13
+
14
+ var _styles = require("../styles");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function Section(props) {
19
+ const {
20
+ children,
21
+ maxWidth,
22
+ style: styleProp
23
+ } = props;
24
+ const styles = (0, _hooks.useContentContainerStyle)({
25
+ maxWidth
26
+ });
27
+ const rootStyle = (0, _styles.css)([styles, styleProp]);
28
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
29
+ style: rootStyle
30
+ }, children);
31
+ }
32
+ //# sourceMappingURL=Section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Section","props","children","maxWidth","style","styleProp","styles","useContentContainerStyle","rootStyle","css"],"sources":["Section.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { useContentContainerStyle } from '../hooks';\nimport { css } from '../styles';\nimport type SectionProps from './SectionProps';\n\nexport default function Section(props: SectionProps) {\n const {\n children,\n maxWidth,\n style: styleProp,\n } = props;\n\n const styles = useContentContainerStyle({ maxWidth });\n\n const rootStyle = css([\n styles,\n styleProp,\n ]);\n\n return (\n <View style={rootStyle}>\n {children}\n </View>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AAGe,SAASA,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,QADE;IAEFC,QAFE;IAGFC,KAAK,EAAEC;EAHL,IAIFJ,KAJJ;EAMA,MAAMK,MAAM,GAAG,IAAAC,+BAAA,EAAyB;IAAEJ;EAAF,CAAzB,CAAf;EAEA,MAAMK,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBH,MADkB,EAElBD,SAFkB,CAAJ,CAAlB;EAKA,oBACI,6BAAC,iBAAD;IAAM,KAAK,EAAEG;EAAb,GACKN,QADL,CADJ;AAKH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=SectionProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["SectionProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface SectionProps extends OverridableComponentProps<ViewProps, {\n maxWidth?: number;\n}> {}\n"],"mappings":""}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Section.default;
10
+ }
11
+ });
12
+
13
+ var _Section = _interopRequireDefault(require("./Section"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Section';\nexport type { default as SectionProps } from './SectionProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -29,6 +29,8 @@ function ShadowView(props) {
29
29
  const {
30
30
  borderRadius,
31
31
  height,
32
+ maxHeight,
33
+ maxWidth,
32
34
  width
33
35
  } = styleProp;
34
36
  return nativeShadows.reduce((accumulator, nativeShadow) => {
@@ -37,6 +39,8 @@ function ShadowView(props) {
37
39
  }, {
38
40
  borderRadius: borderRadius ?? 0,
39
41
  height,
42
+ maxHeight,
43
+ maxWidth,
40
44
  width
41
45
  }])
42
46
  }, accumulator);
@@ -1 +1 @@
1
- {"version":3,"names":["ShadowView","props","children","style","styleProp","variant","otherProps","theme","useTheme","nativeShadows","shadow","borderRadius","height","width","reduce","accumulator","nativeShadow","css"],"sources":["ShadowView.native.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport type { FountainUiStyle, ShadowVariant } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ShadowViewProps from './ShadowViewProps';\n\nexport default function ShadowView(props: ShadowViewProps) {\n const {\n children,\n style: styleProp = {},\n variant = 100 as ShadowVariant,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const { nativeShadows } = theme.shadow[variant];\n\n const {\n borderRadius,\n height,\n width,\n } = styleProp as FountainUiStyle;\n\n return nativeShadows.reduce((accumulator, nativeShadow) => {\n return (\n <View\n style={css([\n { ...nativeShadow },\n {\n borderRadius: borderRadius ?? 0,\n height,\n width,\n },\n ])}\n >\n {accumulator}\n </View>\n );\n }, (\n <View\n style={styleProp}\n {...otherProps}\n >\n {children}\n </View>\n ));\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAGe,SAASA,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAAS,GAAG,EAFjB;IAGFC,OAAO,GAAG,GAHR;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMM,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAM;IAAEC;EAAF,IAAoBF,KAAK,CAACG,MAAN,CAAaL,OAAb,CAA1B;EAEA,MAAM;IACFM,YADE;IAEFC,MAFE;IAGFC;EAHE,IAIFT,SAJJ;EAMA,OAAOK,aAAa,CAACK,MAAd,CAAqB,CAACC,WAAD,EAAcC,YAAd,KAA+B;IACvD,oBACI,6BAAC,iBAAD;MACI,KAAK,EAAE,IAAAC,WAAA,EAAI,CACP,EAAE,GAAGD;MAAL,CADO,EAEP;QACIL,YAAY,EAAEA,YAAY,IAAI,CADlC;QAEIC,MAFJ;QAGIC;MAHJ,CAFO,CAAJ;IADX,GAUKE,WAVL,CADJ;EAcH,CAfM,eAgBH,6BAAC,iBAAD;IACI,KAAK,EAAEX;EADX,GAEQE,UAFR,GAIKJ,QAJL,CAhBG,CAAP;AAuBH"}
1
+ {"version":3,"names":["ShadowView","props","children","style","styleProp","variant","otherProps","theme","useTheme","nativeShadows","shadow","borderRadius","height","maxHeight","maxWidth","width","reduce","accumulator","nativeShadow","css"],"sources":["ShadowView.native.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport type { FountainUiStyle, ShadowVariant } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ShadowViewProps from './ShadowViewProps';\n\nexport default function ShadowView(props: ShadowViewProps) {\n const {\n children,\n style: styleProp = {},\n variant = 100 as ShadowVariant,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const { nativeShadows } = theme.shadow[variant];\n\n const {\n borderRadius,\n height,\n maxHeight,\n maxWidth,\n width,\n } = styleProp as FountainUiStyle;\n\n return nativeShadows.reduce((accumulator, nativeShadow) => {\n return (\n <View\n style={css([\n { ...nativeShadow },\n {\n borderRadius: borderRadius ?? 0,\n height,\n maxHeight,\n maxWidth,\n width,\n },\n ])}\n >\n {accumulator}\n </View>\n );\n }, (\n <View\n style={styleProp}\n {...otherProps}\n >\n {children}\n </View>\n ));\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAGe,SAASA,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFC,KAAK,EAAEC,SAAS,GAAG,EAFjB;IAGFC,OAAO,GAAG,GAHR;IAIF,GAAGC;EAJD,IAKFL,KALJ;EAOA,MAAMM,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAM;IAAEC;EAAF,IAAoBF,KAAK,CAACG,MAAN,CAAaL,OAAb,CAA1B;EAEA,MAAM;IACFM,YADE;IAEFC,MAFE;IAGFC,SAHE;IAIFC,QAJE;IAKFC;EALE,IAMFX,SANJ;EAQA,OAAOK,aAAa,CAACO,MAAd,CAAqB,CAACC,WAAD,EAAcC,YAAd,KAA+B;IACvD,oBACI,6BAAC,iBAAD;MACI,KAAK,EAAE,IAAAC,WAAA,EAAI,CACP,EAAE,GAAGD;MAAL,CADO,EAEP;QACIP,YAAY,EAAEA,YAAY,IAAI,CADlC;QAEIC,MAFJ;QAGIC,SAHJ;QAIIC,QAJJ;QAKIC;MALJ,CAFO,CAAJ;IADX,GAYKE,WAZL,CADJ;EAgBH,CAjBM,eAkBH,6BAAC,iBAAD;IACI,KAAK,EAAEb;EADX,GAEQE,UAFR,GAIKJ,QAJL,CAlBG,CAAP;AAyBH"}
@@ -9,8 +9,16 @@ Object.defineProperty(exports, "default", {
9
9
  return _Snackbar.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "snackbarStatus", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _SnackbarProps.snackbarStatus;
16
+ }
17
+ });
12
18
 
13
19
  var _Snackbar = _interopRequireDefault(require("./Snackbar"));
14
20
 
21
+ var _SnackbarProps = require("./SnackbarProps");
22
+
15
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Snackbar';\nexport type { default as SnackbarProps } from './SnackbarProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Snackbar';\nexport type { default as SnackbarProps } from './SnackbarProps';\nexport { snackbarStatus } from './SnackbarProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}