@fountain-ui/core 2.0.0-beta.91 → 2.0.0-beta.93

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 (378) hide show
  1. package/build/commonjs/Button/Button.js +51 -63
  2. package/build/commonjs/Button/Button.js.map +1 -1
  3. package/build/commonjs/Button/ButtonProps.js +11 -0
  4. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  5. package/build/commonjs/Button/LegacyButton.js +144 -0
  6. package/build/commonjs/Button/LegacyButton.js.map +1 -0
  7. package/build/commonjs/Button/LegacyButtonProps.js +2 -0
  8. package/build/commonjs/Button/LegacyButtonProps.js.map +1 -0
  9. package/build/commonjs/Button/index.js +2 -2
  10. package/build/commonjs/Button/index.js.map +1 -1
  11. package/build/commonjs/Button/useVariantStyleMap.js +95 -0
  12. package/build/commonjs/Button/useVariantStyleMap.js.map +1 -0
  13. package/build/commonjs/ButtonSet/ButtonSet.js +54 -0
  14. package/build/commonjs/ButtonSet/ButtonSet.js.map +1 -0
  15. package/build/commonjs/ButtonSet/ButtonSetProps.js +11 -0
  16. package/build/commonjs/ButtonSet/ButtonSetProps.js.map +1 -0
  17. package/build/commonjs/ButtonSet/index.js +30 -0
  18. package/build/commonjs/ButtonSet/index.js.map +1 -0
  19. package/build/commonjs/ButtonSet/useVariantStyleMap.js +85 -0
  20. package/build/commonjs/ButtonSet/useVariantStyleMap.js.map +1 -0
  21. package/build/commonjs/Checkbox/Checkbox.js +33 -23
  22. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  23. package/build/commonjs/Checkbox/CheckboxProps.js +7 -0
  24. package/build/commonjs/Checkbox/CheckboxProps.js.map +1 -1
  25. package/build/commonjs/Checkbox/LegacyCheckbox.js +65 -0
  26. package/build/commonjs/Checkbox/LegacyCheckbox.js.map +1 -0
  27. package/build/commonjs/Checkbox/LegacyCheckboxProps.js +2 -0
  28. package/build/commonjs/Checkbox/LegacyCheckboxProps.js.map +1 -0
  29. package/build/commonjs/Checkbox/index.js +2 -2
  30. package/build/commonjs/Checkbox/index.js.map +1 -1
  31. package/build/commonjs/Checkbox/useVariantStyleMap.js +70 -0
  32. package/build/commonjs/Checkbox/useVariantStyleMap.js.map +1 -0
  33. package/build/commonjs/CheckboxGroup/CheckboxGroup.js +50 -0
  34. package/build/commonjs/CheckboxGroup/CheckboxGroup.js.map +1 -0
  35. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js +2 -0
  36. package/build/commonjs/CheckboxGroup/CheckboxGroupProps.js.map +1 -0
  37. package/build/commonjs/CheckboxGroup/index.js +16 -0
  38. package/build/commonjs/CheckboxGroup/index.js.map +1 -0
  39. package/build/commonjs/Divider/Divider.js +16 -4
  40. package/build/commonjs/Divider/Divider.js.map +1 -1
  41. package/build/commonjs/Divider/DividerProps.js +9 -0
  42. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  43. package/build/commonjs/Divider/LegacyDivider.js +114 -0
  44. package/build/commonjs/Divider/LegacyDivider.js.map +1 -0
  45. package/build/commonjs/Divider/LegacyDividerProps.js +2 -0
  46. package/build/commonjs/Divider/LegacyDividerProps.js.map +1 -0
  47. package/build/commonjs/Divider/index.js +2 -2
  48. package/build/commonjs/Divider/index.js.map +1 -1
  49. package/build/commonjs/IconButton/IconButton.js +39 -42
  50. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  51. package/build/commonjs/IconButton/IconButtonProps.js +7 -0
  52. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  53. package/build/commonjs/IconButton/LegacyIconButton.js +88 -0
  54. package/build/commonjs/IconButton/LegacyIconButton.js.map +1 -0
  55. package/build/commonjs/IconButton/LegacyIconButtonProps.js +2 -0
  56. package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +1 -0
  57. package/build/commonjs/IconButton/index.js +2 -2
  58. package/build/commonjs/IconButton/index.js.map +1 -1
  59. package/build/commonjs/Modal/index.js +0 -10
  60. package/build/commonjs/Modal/index.js.map +1 -1
  61. package/build/commonjs/Radio/LegacyRadio.js +82 -0
  62. package/build/commonjs/Radio/LegacyRadio.js.map +1 -0
  63. package/build/commonjs/Radio/LegacyRadioProps.js +2 -0
  64. package/build/commonjs/Radio/LegacyRadioProps.js.map +1 -0
  65. package/build/commonjs/Radio/Radio.js +40 -19
  66. package/build/commonjs/Radio/Radio.js.map +1 -1
  67. package/build/commonjs/Radio/RadioProps.js.map +1 -1
  68. package/build/commonjs/Radio/index.js +2 -2
  69. package/build/commonjs/Radio/index.js.map +1 -1
  70. package/build/commonjs/RadioGroup/LegacyRadioGroup.js +31 -0
  71. package/build/commonjs/RadioGroup/LegacyRadioGroup.js.map +1 -0
  72. package/build/commonjs/RadioGroup/RadioGroup.js +28 -2
  73. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  74. package/build/commonjs/RadioGroup/index.js +2 -2
  75. package/build/commonjs/RadioGroup/index.js.map +1 -1
  76. package/build/commonjs/ShadowView/ShadowView.js +35 -0
  77. package/build/commonjs/ShadowView/ShadowView.js.map +1 -0
  78. package/build/commonjs/ShadowView/ShadowView.native.js +35 -0
  79. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -0
  80. package/build/commonjs/ShadowView/ShadowViewProps.js +2 -0
  81. package/build/commonjs/ShadowView/ShadowViewProps.js.map +1 -0
  82. package/build/commonjs/ShadowView/index.js +16 -0
  83. package/build/commonjs/ShadowView/index.js.map +1 -0
  84. package/build/commonjs/SvgIcon/LegacySvgIcon.js +43 -0
  85. package/build/commonjs/SvgIcon/LegacySvgIcon.js.map +1 -0
  86. package/build/commonjs/SvgIcon/LegacySvgIconProps.js +2 -0
  87. package/build/commonjs/SvgIcon/LegacySvgIconProps.js.map +1 -0
  88. package/build/commonjs/SvgIcon/SvgIcon.js +16 -4
  89. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  90. package/build/commonjs/SvgIcon/SvgIconProps.js +15 -0
  91. package/build/commonjs/SvgIcon/SvgIconProps.js.map +1 -1
  92. package/build/commonjs/SvgIcon/index.js +2 -2
  93. package/build/commonjs/SvgIcon/index.js.map +1 -1
  94. package/build/commonjs/Toggle/Toggle.js +110 -0
  95. package/build/commonjs/Toggle/Toggle.js.map +1 -0
  96. package/build/commonjs/Toggle/ToggleProps.js +2 -0
  97. package/build/commonjs/Toggle/ToggleProps.js.map +1 -0
  98. package/build/commonjs/Toggle/index.js +16 -0
  99. package/build/commonjs/Toggle/index.js.map +1 -0
  100. package/build/commonjs/Typography/LegacyTypography.js +142 -0
  101. package/build/commonjs/Typography/LegacyTypography.js.map +1 -0
  102. package/build/commonjs/Typography/LegacyTypographyProps.js +2 -0
  103. package/build/commonjs/Typography/LegacyTypographyProps.js.map +1 -0
  104. package/build/commonjs/Typography/Typography.js +15 -54
  105. package/build/commonjs/Typography/Typography.js.map +1 -1
  106. package/build/commonjs/Typography/TypographyProps.js +7 -0
  107. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  108. package/build/commonjs/Typography/index.js +2 -2
  109. package/build/commonjs/Typography/index.js.map +1 -1
  110. package/build/commonjs/hooks/useCollapsibleAppBar.js +11 -2
  111. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  112. package/build/commonjs/index.js +80 -3
  113. package/build/commonjs/index.js.map +1 -1
  114. package/build/commonjs/internal/icons/Check.js +23 -0
  115. package/build/commonjs/internal/icons/Check.js.map +1 -0
  116. package/build/commonjs/internal/icons/CheckboxOn.js +23 -0
  117. package/build/commonjs/internal/icons/CheckboxOn.js.map +1 -0
  118. package/build/commonjs/internal/icons/index.js +16 -0
  119. package/build/commonjs/internal/icons/index.js.map +1 -1
  120. package/build/commonjs/styles/createFontStyle.js.map +1 -1
  121. package/build/commonjs/utils/cloneElementSafely.js.map +1 -1
  122. package/build/commonjs/utils/createSvgIcon.js +15 -3
  123. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  124. package/build/commonjs/utils/index.js.map +1 -1
  125. package/build/module/Button/Button.js +53 -63
  126. package/build/module/Button/Button.js.map +1 -1
  127. package/build/module/Button/ButtonProps.js +3 -1
  128. package/build/module/Button/ButtonProps.js.map +1 -1
  129. package/build/module/Button/LegacyButton.js +127 -0
  130. package/build/module/Button/LegacyButton.js.map +1 -0
  131. package/build/module/Button/LegacyButtonProps.js +2 -0
  132. package/build/module/Button/LegacyButtonProps.js.map +1 -0
  133. package/build/module/Button/index.js +1 -1
  134. package/build/module/Button/index.js.map +1 -1
  135. package/build/module/Button/useVariantStyleMap.js +85 -0
  136. package/build/module/Button/useVariantStyleMap.js.map +1 -0
  137. package/build/module/ButtonSet/ButtonSet.js +34 -0
  138. package/build/module/ButtonSet/ButtonSet.js.map +1 -0
  139. package/build/module/ButtonSet/ButtonSetProps.js +3 -0
  140. package/build/module/ButtonSet/ButtonSetProps.js.map +1 -0
  141. package/build/module/ButtonSet/index.js +3 -0
  142. package/build/module/ButtonSet/index.js.map +1 -0
  143. package/build/module/ButtonSet/useVariantStyleMap.js +76 -0
  144. package/build/module/ButtonSet/useVariantStyleMap.js.map +1 -0
  145. package/build/module/Checkbox/Checkbox.js +32 -26
  146. package/build/module/Checkbox/Checkbox.js.map +1 -1
  147. package/build/module/Checkbox/CheckboxProps.js +1 -1
  148. package/build/module/Checkbox/CheckboxProps.js.map +1 -1
  149. package/build/module/Checkbox/LegacyCheckbox.js +52 -0
  150. package/build/module/Checkbox/LegacyCheckbox.js.map +1 -0
  151. package/build/module/Checkbox/LegacyCheckboxProps.js +2 -0
  152. package/build/module/Checkbox/LegacyCheckboxProps.js.map +1 -0
  153. package/build/module/Checkbox/index.js +1 -1
  154. package/build/module/Checkbox/index.js.map +1 -1
  155. package/build/module/Checkbox/useVariantStyleMap.js +59 -0
  156. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -0
  157. package/build/module/CheckboxGroup/CheckboxGroup.js +34 -0
  158. package/build/module/CheckboxGroup/CheckboxGroup.js.map +1 -0
  159. package/build/module/CheckboxGroup/CheckboxGroupProps.js +2 -0
  160. package/build/module/CheckboxGroup/CheckboxGroupProps.js.map +1 -0
  161. package/build/module/CheckboxGroup/index.js +2 -0
  162. package/build/module/CheckboxGroup/index.js.map +1 -0
  163. package/build/module/Divider/Divider.js +17 -4
  164. package/build/module/Divider/Divider.js.map +1 -1
  165. package/build/module/Divider/DividerProps.js +2 -1
  166. package/build/module/Divider/DividerProps.js.map +1 -1
  167. package/build/module/Divider/LegacyDivider.js +100 -0
  168. package/build/module/Divider/LegacyDivider.js.map +1 -0
  169. package/build/module/Divider/LegacyDividerProps.js +2 -0
  170. package/build/module/Divider/LegacyDividerProps.js.map +1 -0
  171. package/build/module/Divider/index.js +1 -1
  172. package/build/module/Divider/index.js.map +1 -1
  173. package/build/module/IconButton/IconButton.js +36 -40
  174. package/build/module/IconButton/IconButton.js.map +1 -1
  175. package/build/module/IconButton/IconButtonProps.js +1 -1
  176. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  177. package/build/module/IconButton/LegacyIconButton.js +73 -0
  178. package/build/module/IconButton/LegacyIconButton.js.map +1 -0
  179. package/build/module/IconButton/LegacyIconButtonProps.js +2 -0
  180. package/build/module/IconButton/LegacyIconButtonProps.js.map +1 -0
  181. package/build/module/IconButton/index.js +1 -1
  182. package/build/module/IconButton/index.js.map +1 -1
  183. package/build/module/Modal/index.js +0 -1
  184. package/build/module/Modal/index.js.map +1 -1
  185. package/build/module/Radio/LegacyRadio.js +63 -0
  186. package/build/module/Radio/LegacyRadio.js.map +1 -0
  187. package/build/module/Radio/LegacyRadioProps.js +2 -0
  188. package/build/module/Radio/LegacyRadioProps.js.map +1 -0
  189. package/build/module/Radio/Radio.js +35 -18
  190. package/build/module/Radio/Radio.js.map +1 -1
  191. package/build/module/Radio/RadioProps.js.map +1 -1
  192. package/build/module/Radio/index.js +1 -1
  193. package/build/module/Radio/index.js.map +1 -1
  194. package/build/module/RadioGroup/LegacyRadioGroup.js +18 -0
  195. package/build/module/RadioGroup/LegacyRadioGroup.js.map +1 -0
  196. package/build/module/RadioGroup/RadioGroup.js +21 -2
  197. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  198. package/build/module/RadioGroup/index.js +1 -1
  199. package/build/module/RadioGroup/index.js.map +1 -1
  200. package/build/module/ShadowView/ShadowView.js +23 -0
  201. package/build/module/ShadowView/ShadowView.js.map +1 -0
  202. package/build/module/ShadowView/ShadowView.native.js +23 -0
  203. package/build/module/ShadowView/ShadowView.native.js.map +1 -0
  204. package/build/module/ShadowView/ShadowViewProps.js +2 -0
  205. package/build/module/ShadowView/ShadowViewProps.js.map +1 -0
  206. package/build/module/ShadowView/index.js +2 -0
  207. package/build/module/ShadowView/index.js.map +1 -0
  208. package/build/module/SvgIcon/LegacySvgIcon.js +30 -0
  209. package/build/module/SvgIcon/LegacySvgIcon.js.map +1 -0
  210. package/build/module/SvgIcon/LegacySvgIconProps.js +2 -0
  211. package/build/module/SvgIcon/LegacySvgIconProps.js.map +1 -0
  212. package/build/module/SvgIcon/SvgIcon.js +15 -4
  213. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  214. package/build/module/SvgIcon/SvgIconProps.js +7 -1
  215. package/build/module/SvgIcon/SvgIconProps.js.map +1 -1
  216. package/build/module/SvgIcon/index.js +1 -1
  217. package/build/module/SvgIcon/index.js.map +1 -1
  218. package/build/module/Toggle/Toggle.js +90 -0
  219. package/build/module/Toggle/Toggle.js.map +1 -0
  220. package/build/module/Toggle/ToggleProps.js +2 -0
  221. package/build/module/Toggle/ToggleProps.js.map +1 -0
  222. package/build/module/Toggle/index.js +2 -0
  223. package/build/module/Toggle/index.js.map +1 -0
  224. package/build/module/Typography/LegacyTypography.js +126 -0
  225. package/build/module/Typography/LegacyTypography.js.map +1 -0
  226. package/build/module/Typography/LegacyTypographyProps.js +2 -0
  227. package/build/module/Typography/LegacyTypographyProps.js.map +1 -0
  228. package/build/module/Typography/Typography.js +15 -54
  229. package/build/module/Typography/Typography.js.map +1 -1
  230. package/build/module/Typography/TypographyProps.js +1 -1
  231. package/build/module/Typography/TypographyProps.js.map +1 -1
  232. package/build/module/Typography/index.js +1 -1
  233. package/build/module/Typography/index.js.map +1 -1
  234. package/build/module/hooks/useCollapsibleAppBar.js +12 -3
  235. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  236. package/build/module/index.js +9 -1
  237. package/build/module/index.js.map +1 -1
  238. package/build/module/internal/icons/Check.js +9 -0
  239. package/build/module/internal/icons/Check.js.map +1 -0
  240. package/build/module/internal/icons/CheckboxOn.js +9 -0
  241. package/build/module/internal/icons/CheckboxOn.js.map +1 -0
  242. package/build/module/internal/icons/index.js +2 -0
  243. package/build/module/internal/icons/index.js.map +1 -1
  244. package/build/module/styles/createFontStyle.js.map +1 -1
  245. package/build/module/utils/cloneElementSafely.js.map +1 -1
  246. package/build/module/utils/createSvgIcon.js +14 -3
  247. package/build/module/utils/createSvgIcon.js.map +1 -1
  248. package/build/module/utils/index.js.map +1 -1
  249. package/build/typescript/Button/ButtonProps.d.ts +13 -11
  250. package/build/typescript/Button/LegacyButton.d.ts +3 -0
  251. package/build/typescript/Button/LegacyButtonProps.d.ts +51 -0
  252. package/build/typescript/Button/index.d.ts +2 -2
  253. package/build/typescript/Button/useVariantStyleMap.d.ts +9 -0
  254. package/build/typescript/ButtonSet/ButtonSet.d.ts +3 -0
  255. package/build/typescript/ButtonSet/ButtonSetProps.d.ts +20 -0
  256. package/build/typescript/ButtonSet/index.d.ts +3 -0
  257. package/build/typescript/ButtonSet/useVariantStyleMap.d.ts +10 -0
  258. package/build/typescript/Checkbox/CheckboxProps.d.ts +10 -14
  259. package/build/typescript/Checkbox/LegacyCheckbox.d.ts +3 -0
  260. package/build/typescript/Checkbox/LegacyCheckboxProps.d.ts +36 -0
  261. package/build/typescript/Checkbox/index.d.ts +2 -2
  262. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +9 -0
  263. package/build/typescript/CheckboxGroup/CheckboxGroup.d.ts +3 -0
  264. package/build/typescript/CheckboxGroup/CheckboxGroupProps.d.ts +11 -0
  265. package/build/typescript/CheckboxGroup/index.d.ts +2 -0
  266. package/build/typescript/Divider/DividerProps.d.ts +12 -9
  267. package/build/typescript/Divider/LegacyDivider.d.ts +3 -0
  268. package/build/typescript/Divider/LegacyDividerProps.d.ts +41 -0
  269. package/build/typescript/Divider/index.d.ts +2 -2
  270. package/build/typescript/IconButton/IconButtonProps.d.ts +7 -10
  271. package/build/typescript/IconButton/LegacyIconButton.d.ts +3 -0
  272. package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +26 -0
  273. package/build/typescript/IconButton/index.d.ts +2 -2
  274. package/build/typescript/Modal/index.d.ts +0 -2
  275. package/build/typescript/Radio/LegacyRadio.d.ts +3 -0
  276. package/build/typescript/Radio/LegacyRadioProps.d.ts +43 -0
  277. package/build/typescript/Radio/RadioProps.d.ts +9 -14
  278. package/build/typescript/Radio/index.d.ts +2 -2
  279. package/build/typescript/RadioGroup/LegacyRadioGroup.d.ts +3 -0
  280. package/build/typescript/RadioGroup/index.d.ts +1 -1
  281. package/build/typescript/ShadowView/ShadowView.d.ts +3 -0
  282. package/build/typescript/ShadowView/ShadowView.native.d.ts +3 -0
  283. package/build/typescript/ShadowView/ShadowViewProps.d.ts +11 -0
  284. package/build/typescript/ShadowView/index.d.ts +2 -0
  285. package/build/typescript/SvgIcon/LegacySvgIcon.d.ts +3 -0
  286. package/build/typescript/SvgIcon/LegacySvgIconProps.d.ts +35 -0
  287. package/build/typescript/SvgIcon/SvgIconProps.d.ts +17 -6
  288. package/build/typescript/SvgIcon/index.d.ts +2 -2
  289. package/build/typescript/Toggle/Toggle.d.ts +3 -0
  290. package/build/typescript/Toggle/ToggleProps.d.ts +19 -0
  291. package/build/typescript/Toggle/index.d.ts +2 -0
  292. package/build/typescript/Typography/LegacyTypography.d.ts +5 -0
  293. package/build/typescript/Typography/LegacyTypographyProps.d.ts +81 -0
  294. package/build/typescript/Typography/Typography.d.ts +1 -1
  295. package/build/typescript/Typography/TypographyProps.d.ts +12 -9
  296. package/build/typescript/Typography/index.d.ts +2 -2
  297. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +1 -0
  298. package/build/typescript/index.d.ts +10 -2
  299. package/build/typescript/internal/icons/Check.d.ts +8 -0
  300. package/build/typescript/internal/icons/Checkbox.d.ts +2 -124
  301. package/build/typescript/internal/icons/CheckboxChecked.d.ts +2 -124
  302. package/build/typescript/internal/icons/CheckboxOn.d.ts +8 -0
  303. package/build/typescript/internal/icons/ChevronDown.d.ts +2 -124
  304. package/build/typescript/internal/icons/ChevronLeft.d.ts +2 -124
  305. package/build/typescript/internal/icons/ChevronRight.d.ts +2 -124
  306. package/build/typescript/internal/icons/Close.d.ts +2 -124
  307. package/build/typescript/internal/icons/Radio.d.ts +2 -124
  308. package/build/typescript/internal/icons/RadioChecked.d.ts +2 -124
  309. package/build/typescript/internal/icons/index.d.ts +2 -0
  310. package/build/typescript/styles/createFontStyle.d.ts +1 -1
  311. package/build/typescript/utils/cloneElementSafely.d.ts +1 -2
  312. package/build/typescript/utils/createSvgIcon.d.ts +8 -3
  313. package/build/typescript/utils/index.d.ts +1 -0
  314. package/package.json +2 -2
  315. package/src/Button/Button.tsx +53 -71
  316. package/src/Button/ButtonProps.ts +29 -12
  317. package/src/Button/LegacyButton.tsx +157 -0
  318. package/src/Button/LegacyButtonProps.ts +62 -0
  319. package/src/Button/index.ts +2 -2
  320. package/src/Button/useVariantStyleMap.ts +99 -0
  321. package/src/ButtonSet/ButtonSet.tsx +43 -0
  322. package/src/ButtonSet/ButtonSetProps.ts +27 -0
  323. package/src/ButtonSet/index.ts +3 -0
  324. package/src/ButtonSet/useVariantStyleMap.ts +84 -0
  325. package/src/Checkbox/Checkbox.tsx +48 -33
  326. package/src/Checkbox/CheckboxProps.ts +10 -15
  327. package/src/Checkbox/LegacyCheckbox.tsx +62 -0
  328. package/src/Checkbox/LegacyCheckboxProps.ts +42 -0
  329. package/src/Checkbox/index.ts +2 -2
  330. package/src/Checkbox/useVariantStyleMap.ts +71 -0
  331. package/src/CheckboxGroup/CheckboxGroup.tsx +47 -0
  332. package/src/CheckboxGroup/CheckboxGroupProps.ts +11 -0
  333. package/src/CheckboxGroup/index.ts +2 -0
  334. package/src/Divider/Divider.tsx +17 -8
  335. package/src/Divider/DividerProps.ts +14 -10
  336. package/src/Divider/LegacyDivider.tsx +114 -0
  337. package/src/Divider/LegacyDividerProps.ts +48 -0
  338. package/src/Divider/index.ts +2 -2
  339. package/src/IconButton/IconButton.tsx +36 -54
  340. package/src/IconButton/IconButtonProps.ts +12 -12
  341. package/src/IconButton/LegacyIconButton.tsx +96 -0
  342. package/src/IconButton/LegacyIconButtonProps.ts +31 -0
  343. package/src/IconButton/index.ts +2 -2
  344. package/src/Modal/index.ts +0 -2
  345. package/src/Radio/LegacyRadio.tsx +72 -0
  346. package/src/Radio/LegacyRadioProps.ts +50 -0
  347. package/src/Radio/Radio.tsx +47 -16
  348. package/src/Radio/RadioProps.ts +10 -16
  349. package/src/Radio/index.ts +2 -2
  350. package/src/RadioGroup/LegacyRadioGroup.tsx +20 -0
  351. package/src/RadioGroup/RadioGroup.tsx +31 -4
  352. package/src/RadioGroup/index.ts +2 -2
  353. package/src/ShadowView/ShadowView.native.tsx +37 -0
  354. package/src/ShadowView/ShadowView.tsx +33 -0
  355. package/src/ShadowView/ShadowViewProps.ts +11 -0
  356. package/src/ShadowView/index.ts +2 -0
  357. package/src/SvgIcon/LegacySvgIcon.tsx +36 -0
  358. package/src/SvgIcon/LegacySvgIconProps.ts +41 -0
  359. package/src/SvgIcon/SvgIcon.tsx +19 -5
  360. package/src/SvgIcon/SvgIconProps.ts +33 -6
  361. package/src/SvgIcon/index.ts +2 -2
  362. package/src/Toggle/Toggle.tsx +113 -0
  363. package/src/Toggle/ToggleProps.ts +21 -0
  364. package/src/Toggle/index.ts +2 -0
  365. package/src/Typography/LegacyTypography.tsx +107 -0
  366. package/src/Typography/LegacyTypographyProps.ts +122 -0
  367. package/src/Typography/Typography.tsx +24 -30
  368. package/src/Typography/TypographyProps.ts +29 -34
  369. package/src/Typography/index.ts +2 -2
  370. package/src/hooks/useCollapsibleAppBar.ts +12 -2
  371. package/src/index.ts +14 -2
  372. package/src/internal/icons/Check.tsx +13 -0
  373. package/src/internal/icons/CheckboxOn.tsx +13 -0
  374. package/src/internal/icons/index.ts +2 -0
  375. package/src/styles/createFontStyle.ts +1 -1
  376. package/src/utils/cloneElementSafely.ts +1 -1
  377. package/src/utils/createSvgIcon.tsx +29 -6
  378. package/src/utils/index.ts +1 -0
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "buttonSetColors", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ButtonSetProps.buttonSetColors;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "buttonSetVariants", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ButtonSetProps.buttonSetVariants;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "default", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _ButtonSet.default;
22
+ }
23
+ });
24
+
25
+ var _ButtonSet = _interopRequireDefault(require("./ButtonSet"));
26
+
27
+ var _ButtonSetProps = require("./ButtonSetProps");
28
+
29
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ButtonSet';\nexport type { default as ButtonSetProps, ButtonSetColor, ButtonSetVariant } from './ButtonSetProps';\nexport { buttonSetColors, buttonSetVariants } from './ButtonSetProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = useVariantStyleMap;
7
+
8
+ var _react = require("react");
9
+
10
+ var _styles = require("@fountain-ui/styles");
11
+
12
+ function useVariantStyleMap(variant, color) {
13
+ const theme = (0, _styles.useTheme)();
14
+ return (0, _react.useMemo)(() => {
15
+ const variantStyleMap = {
16
+ horizontal: {
17
+ containerStyle: {
18
+ flexDirection: 'row',
19
+ gap: theme.spacing(2),
20
+ paddingVertical: theme.spacing(2)
21
+ },
22
+ buttonStyleMap: {
23
+ accent: [{
24
+ color: 'primary',
25
+ variant: 'outlined'
26
+ }, {
27
+ color: 'accent',
28
+ variant: 'solid'
29
+ }],
30
+ danger: [{
31
+ color: 'primary',
32
+ variant: 'outlined'
33
+ }, {
34
+ color: 'danger',
35
+ variant: 'solid'
36
+ }]
37
+ }
38
+ },
39
+ vertical: {
40
+ containerStyle: {
41
+ flexDirection: 'column',
42
+ gap: theme.spacing(2.5),
43
+ paddingTop: theme.spacing(2)
44
+ },
45
+ buttonStyleMap: {
46
+ accent: [{
47
+ color: 'accent',
48
+ variant: 'solid'
49
+ }, {
50
+ color: 'secondary',
51
+ variant: 'text'
52
+ }],
53
+ danger: [{
54
+ color: 'danger',
55
+ variant: 'solid'
56
+ }, {
57
+ color: 'secondary',
58
+ variant: 'text'
59
+ }],
60
+ warning: [{
61
+ color: 'primary',
62
+ variant: 'solid'
63
+ }, {
64
+ color: 'danger',
65
+ variant: 'text'
66
+ }]
67
+ }
68
+ }
69
+ };
70
+ const {
71
+ containerStyle,
72
+ buttonStyleMap
73
+ } = variantStyleMap[variant];
74
+
75
+ if (process.env.NODE_ENV !== 'production' && buttonStyleMap[color] === undefined) {
76
+ console.warn('The selected color is not supported for the chosen variant.');
77
+ }
78
+
79
+ return {
80
+ containerStyle,
81
+ buttonStyleMap: buttonStyleMap[color] ?? []
82
+ };
83
+ }, [theme, variant, color]);
84
+ }
85
+ //# sourceMappingURL=useVariantStyleMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useVariantStyleMap","variant","color","theme","useTheme","useMemo","variantStyleMap","horizontal","containerStyle","flexDirection","gap","spacing","paddingVertical","buttonStyleMap","accent","danger","vertical","paddingTop","warning","process","env","NODE_ENV","undefined","console","warn"],"sources":["useVariantStyleMap.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { FountainUiStyle } from '@fountain-ui/styles';\nimport { useTheme } from '@fountain-ui/styles';\nimport type ButtonProps from '../Button/ButtonProps';\nimport type { ButtonSetColor, ButtonSetVariant } from './ButtonSetProps';\n\ntype ButtonStyle = Partial<ButtonProps>;\n\ntype ButtonStyleMap = {\n [color in ButtonSetColor]?: ButtonStyle[];\n};\n\ntype VariantButtonStyleMap = {\n [variant in ButtonSetVariant]: {\n containerStyle: FountainUiStyle;\n buttonStyleMap: ButtonStyleMap;\n };\n};\n\ntype UseVariantButtonStyleMapReturns = {\n containerStyle: FountainUiStyle;\n buttonStyleMap: ButtonStyle[];\n};\n\nexport default function useVariantStyleMap(variant: ButtonSetVariant, color: ButtonSetColor): UseVariantButtonStyleMapReturns {\n const theme = useTheme();\n\n return useMemo(() => {\n const variantStyleMap: VariantButtonStyleMap = {\n horizontal: {\n containerStyle: {\n flexDirection: 'row',\n gap: theme.spacing(2),\n paddingVertical: theme.spacing(2),\n },\n buttonStyleMap: {\n accent: [\n { color: 'primary', variant: 'outlined' },\n { color: 'accent', variant: 'solid' },\n ],\n danger: [\n { color: 'primary', variant: 'outlined' },\n { color: 'danger', variant: 'solid' },\n ],\n },\n },\n vertical: {\n containerStyle: {\n flexDirection: 'column',\n gap: theme.spacing(2.5),\n paddingTop: theme.spacing(2),\n },\n buttonStyleMap: {\n accent: [\n { color: 'accent', variant: 'solid' },\n { color: 'secondary', variant: 'text' },\n ],\n danger: [\n { color: 'danger', variant: 'solid' },\n { color: 'secondary', variant: 'text' },\n ],\n warning: [\n { color: 'primary', variant: 'solid' },\n { color: 'danger', variant: 'text' },\n ],\n },\n },\n };\n\n const {\n containerStyle,\n buttonStyleMap,\n } = variantStyleMap[variant];\n\n if (process.env.NODE_ENV !== 'production' && buttonStyleMap[color] === undefined) {\n console.warn('The selected color is not supported for the chosen variant.');\n }\n\n return {\n containerStyle,\n button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AAK,EAAE,WAAT;YAAsBD,OAAO,EAAE;UAA/B,CAFI,CALI;UASZiB,OAAO,EAAE,CACL;YAAEhB,KAAK,EAAE,SAAT;YAAoBD,OAAO,EAAE;UAA7B,CADK,EAEL;YAAEC,KAAK,EAAE,QAAT;YAAmBD,OAAO,EAAE;UAA5B,CAFK;QATG;MANV;IAlBiC,CAA/C;IAyCA,MAAM;MACFO,cADE;MAEFK;IAFE,IAGFP,eAAe,CAACL,OAAD,CAHnB;;IAKA,IAAIkB,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyCR,cAAc,CAACX,KAAD,CAAd,KAA0BoB,SAAvE,EAAkF;MAC9EC,OAAO,CAACC,IAAR,CAAa,6DAAb;IACH;;IAED,OAAO;MACHhB,cADG;MAEHK,cAAc,EAAEA,cAAc,CAACX,KAAD,CAAd,IAAyB;IAFtC,CAAP;EAIH,CAvDM,EAuDJ,CAACC,KAAD,EAAQF,OAAR,EAAiBC,KAAjB,CAvDI,CAAP;AAwDH"}
@@ -7,44 +7,42 @@ exports.default = Checkbox;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
+ var _reactNative = require("react-native");
11
+
10
12
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
11
13
 
12
14
  var _icons = require("../internal/icons");
13
15
 
16
+ var _Row = _interopRequireDefault(require("../Row"));
17
+
14
18
  var _styles = require("../styles");
15
19
 
20
+ var _useVariantStyleMap = _interopRequireDefault(require("./useVariantStyleMap"));
21
+
16
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
23
 
18
24
  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
25
 
20
- const useStyles = function () {
21
- return {
22
- root: {
23
- width: 24,
24
- height: 24,
25
- justifyContent: 'center',
26
- alignItems: 'center'
27
- }
28
- };
29
- };
30
-
31
26
  function Checkbox(props) {
32
27
  const {
33
28
  checked = false,
34
- checkedIcon: checkedIconProp,
35
- color = 'primary',
29
+ children,
36
30
  disabled = false,
37
- icon: iconProp,
38
31
  onChange,
39
- style,
32
+ style: styleProp,
33
+ variant = 'square',
40
34
  ...otherProps
41
35
  } = props;
42
- const styles = useStyles();
43
- const uncheckedIcon = iconProp ? iconProp : /*#__PURE__*/_react.default.createElement(_icons.Checkbox, {
44
- color: color
45
- });
46
- const checkedIcon = checkedIconProp ? checkedIconProp : /*#__PURE__*/_react.default.createElement(_icons.CheckboxChecked, {
47
- color: color
36
+ const theme = (0, _styles.useTheme)();
37
+ const {
38
+ checkboxStyle,
39
+ containerStyle,
40
+ iconColor
41
+ } = (0, _useVariantStyleMap.default)(variant, checked);
42
+ const rootStyle = (0, _styles.css)([children ? containerStyle : undefined, styleProp]);
43
+ const fontStyle = (0, _styles.createFontStyle)(theme, {
44
+ // TODO: apply typo select.
45
+ color: theme.palette.text.strong
48
46
  });
49
47
 
50
48
  const handlePress = () => {
@@ -53,12 +51,24 @@ function Checkbox(props) {
53
51
  }
54
52
  };
55
53
 
56
- const rootStyle = (0, _styles.css)([styles.root, style]);
57
54
  return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
58
55
  disabled: disabled,
59
56
  onPress: handlePress,
60
57
  style: rootStyle
61
- }, otherProps), checked ? checkedIcon : uncheckedIcon);
58
+ }, otherProps), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
59
+ style: checkboxStyle
60
+ }, checked ? /*#__PURE__*/_react.default.createElement(_icons.CheckboxOn, {
61
+ fill: iconColor,
62
+ enableV2: true,
63
+ height: 7.5,
64
+ width: 11
65
+ }) : null), children ? /*#__PURE__*/_react.default.createElement(_Row.default, {
66
+ flexGrow: 1,
67
+ flexShrink: 1
68
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
69
+ children: children,
70
+ style: fontStyle
71
+ })) : null);
62
72
  }
63
73
 
64
74
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["useStyles","root","width","height","justifyContent","alignItems","Checkbox","props","checked","checkedIcon","checkedIconProp","color","disabled","icon","iconProp","onChange","style","otherProps","styles","uncheckedIcon","handlePress","rootStyle","css"],"sources":["Checkbox.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport type CheckboxProps from './CheckboxProps';\nimport ButtonBase from '../ButtonBase';\nimport { Checkbox as CheckboxIcon, CheckboxChecked as CheckboxCheckedIcon } from '../internal/icons';\nimport { css } from '../styles';\n\ntype CheckboxStyle = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<CheckboxStyle> = function (): CheckboxStyle {\n return {\n root: {\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n },\n };\n};\n\nexport default function Checkbox(props: CheckboxProps) {\n const {\n checked = false,\n checkedIcon: checkedIconProp,\n color = 'primary',\n disabled = false,\n icon: iconProp,\n onChange,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const uncheckedIcon = iconProp ? iconProp : <CheckboxIcon color={color}/>;\n const checkedIcon = checkedIconProp ? checkedIconProp : <CheckboxCheckedIcon color={color}/>;\n\n const handlePress = () => {\n if (onChange) {\n onChange(!checked);\n }\n };\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {checked\n ? checkedIcon\n : uncheckedIcon\n }\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;AAIA,MAAMA,SAAmC,GAAG,YAA2B;EACnE,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAE,EADL;MAEFC,MAAM,EAAE,EAFN;MAGFC,cAAc,EAAE,QAHd;MAIFC,UAAU,EAAE;IAJV;EADH,CAAP;AAQH,CATD;;AAWe,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,OAAO,GAAG,KADR;IAEFC,WAAW,EAAEC,eAFX;IAGFC,KAAK,GAAG,SAHN;IAIFC,QAAQ,GAAG,KAJT;IAKFC,IAAI,EAAEC,QALJ;IAMFC,QANE;IAOFC,KAPE;IAQF,GAAGC;EARD,IASFV,KATJ;EAWA,MAAMW,MAAM,GAAGlB,SAAS,EAAxB;EAEA,MAAMmB,aAAa,GAAGL,QAAQ,GAAGA,QAAH,gBAAc,6BAAC,eAAD;IAAc,KAAK,EAAEH;EAArB,EAA5C;EACA,MAAMF,WAAW,GAAGC,eAAe,GAAGA,eAAH,gBAAqB,6BAAC,sBAAD;IAAqB,KAAK,EAAEC;EAA5B,EAAxD;;EAEA,MAAMS,WAAW,GAAG,MAAM;IACtB,IAAIL,QAAJ,EAAc;MACVA,QAAQ,CAAC,CAACP,OAAF,CAAR;IACH;EACJ,CAJD;;EAMA,MAAMa,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBJ,MAAM,CAACjB,IADW,EAElBe,KAFkB,CAAJ,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEJ,QADd;IAEI,OAAO,EAAEQ,WAFb;IAGI,KAAK,EAAEC;EAHX,GAIQJ,UAJR,GAMKT,OAAO,GACFC,WADE,GAEFU,aARV,CADJ;AAaH;;AAAA"}
1
+ {"version":3,"names":["Checkbox","props","checked","children","disabled","onChange","style","styleProp","variant","otherProps","theme","useTheme","checkboxStyle","containerStyle","iconColor","useVariantStyleMap","rootStyle","css","undefined","fontStyle","createFontStyle","color","palette","text","strong","handlePress"],"sources":["Checkbox.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport ButtonBase from '../ButtonBase';\nimport { CheckboxOn as CheckboxOnIcon } from '../internal/icons';\nimport Row from '../Row';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport type CheckboxProps from './CheckboxProps';\nimport type { CheckboxVariant } from './CheckboxProps';\nimport useVariantStyleMap from './useVariantStyleMap';\n\nexport default function Checkbox(props: CheckboxProps) {\n const {\n checked = false,\n children,\n disabled = false,\n onChange,\n style: styleProp,\n variant = 'square' as CheckboxVariant,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const {\n checkboxStyle,\n containerStyle,\n iconColor,\n } = useVariantStyleMap(variant, checked);\n\n const rootStyle = css([\n children ? containerStyle : undefined,\n styleProp,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n // TODO: apply typo select.\n color: theme.palette.text.strong,\n });\n\n const handlePress = () => {\n if (onChange) {\n onChange(!checked);\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n <View style={checkboxStyle}>\n {checked ? (\n <CheckboxOnIcon\n fill={iconColor}\n enableV2={true}\n height={7.5}\n width={11}\n />\n ) : null}\n </View>\n\n {children ? (\n <Row\n flexGrow={1}\n flexShrink={1}\n >\n <Text\n children={children}\n style={fontStyle}\n />\n </Row>\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA;;;;;;AAEe,SAASA,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,OAAO,GAAG,KADR;IAEFC,QAFE;IAGFC,QAAQ,GAAG,KAHT;IAIFC,QAJE;IAKFC,KAAK,EAAEC,SALL;IAMFC,OAAO,GAAG,QANR;IAOF,GAAGC;EAPD,IAQFR,KARJ;EAUA,MAAMS,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAM;IACFC,aADE;IAEFC,cAFE;IAGFC;EAHE,IAIF,IAAAC,2BAAA,EAAmBP,OAAnB,EAA4BN,OAA5B,CAJJ;EAMA,MAAMc,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBd,QAAQ,GAAGU,cAAH,GAAoBK,SADV,EAElBX,SAFkB,CAAJ,CAAlB;EAKA,MAAMY,SAAS,GAAG,IAAAC,uBAAA,EAAgBV,KAAhB,EAAuB;IACrC;IACAW,KAAK,EAAEX,KAAK,CAACY,OAAN,CAAcC,IAAd,CAAmBC;EAFW,CAAvB,CAAlB;;EAKA,MAAMC,WAAW,GAAG,MAAM;IACtB,IAAIpB,QAAJ,EAAc;MACVA,QAAQ,CAAC,CAACH,OAAF,CAAR;IACH;EACJ,CAJD;;EAMA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEE,QADd;IAEI,OAAO,EAAEqB,WAFb;IAGI,KAAK,EAAET;EAHX,GAIQP,UAJR,gBAMI,6BAAC,iBAAD;IAAM,KAAK,EAAEG;EAAb,GACKV,OAAO,gBACJ,6BAAC,iBAAD;IACI,IAAI,EAAEY,SADV;IAEI,QAAQ,EAAE,IAFd;IAGI,MAAM,EAAE,GAHZ;IAII,KAAK,EAAE;EAJX,EADI,GAOJ,IARR,CANJ,EAiBKX,QAAQ,gBACL,6BAAC,YAAD;IACI,QAAQ,EAAE,CADd;IAEI,UAAU,EAAE;EAFhB,gBAII,6BAAC,iBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAEgB;EAFX,EAJJ,CADK,GAUL,IA3BR,CADJ;AA+BH;;AAAA"}
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.checkboxVariants = void 0;
7
+ const checkboxVariants = ['square', 'round'];
8
+ exports.checkboxVariants = checkboxVariants;
2
9
  //# sourceMappingURL=CheckboxProps.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["CheckboxProps.ts"],"sourcesContent":["import React from 'react';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\nimport type { ButtonBaseProps } from '../ButtonBase';\n\ntype BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;\n\nexport type CheckboxColor = CommonComponentColor;\n\nexport default interface CheckboxProps extends OverridableComponentProps<BaseProps, {\n /**\n * If `true`, the component is checked.\n * @default false\n */\n checked?: boolean;\n\n /**\n * The checked Icon which is replaced.\n */\n checkedIcon?: React.ReactElement;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'primary'\n */\n color?: CheckboxColor;\n\n /**\n * If `true`, the checkbox is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * The unchecked Icon which is replaced.\n */\n icon?: React.ReactElement;\n\n /**\n * Callback fired when the state is changed.\n */\n onChange?: (newChecked: boolean) => void;\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":["checkboxVariants"],"sources":["CheckboxProps.ts"],"sourcesContent":["import type { OverridableComponentProps } from '../types';\nimport type { ButtonBaseProps } from '../ButtonBase';\n\ntype BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;\n\nexport const checkboxVariants = ['square', 'round'] as const;\nexport type CheckboxVariant = typeof checkboxVariants[number];\n\nexport default interface CheckboxProps extends OverridableComponentProps<BaseProps, {\n /**\n * If `true`, the component is checked.\n * @default false\n */\n checked?: boolean;\n\n /**\n * Content which is sharing pressable next to checkbox.\n */\n children?: string;\n\n /**\n * If `true`, the checkbox is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Callback fired when the state is changed.\n */\n onChange?: (newChecked: boolean) => void;\n\n /**\n * Determines the shape and style of the checkbox.\n * @default 'square'\n */\n variant?: CheckboxVariant\n}> {}\n"],"mappings":";;;;;;AAKO,MAAMA,gBAAgB,GAAG,CAAC,QAAD,EAAW,OAAX,CAAzB"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = Checkbox;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
11
+
12
+ var _icons = require("../internal/icons");
13
+
14
+ var _styles = require("../styles");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
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); }
19
+
20
+ const useStyles = function () {
21
+ return {
22
+ root: {
23
+ width: 24,
24
+ height: 24,
25
+ justifyContent: 'center',
26
+ alignItems: 'center'
27
+ }
28
+ };
29
+ };
30
+
31
+ function Checkbox(props) {
32
+ const {
33
+ checked = false,
34
+ checkedIcon: checkedIconProp,
35
+ color = 'primary',
36
+ disabled = false,
37
+ icon: iconProp,
38
+ onChange,
39
+ style,
40
+ ...otherProps
41
+ } = props;
42
+ const styles = useStyles();
43
+ const uncheckedIcon = iconProp ? iconProp : /*#__PURE__*/_react.default.createElement(_icons.Checkbox, {
44
+ color: color
45
+ });
46
+ const checkedIcon = checkedIconProp ? checkedIconProp : /*#__PURE__*/_react.default.createElement(_icons.CheckboxChecked, {
47
+ color: color
48
+ });
49
+
50
+ const handlePress = () => {
51
+ if (onChange) {
52
+ onChange(!checked);
53
+ }
54
+ };
55
+
56
+ const rootStyle = (0, _styles.css)([styles.root, style]);
57
+ return /*#__PURE__*/_react.default.createElement(_ButtonBase.default, _extends({
58
+ disabled: disabled,
59
+ onPress: handlePress,
60
+ style: rootStyle
61
+ }, otherProps), checked ? checkedIcon : uncheckedIcon);
62
+ }
63
+
64
+ ;
65
+ //# sourceMappingURL=LegacyCheckbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useStyles","root","width","height","justifyContent","alignItems","Checkbox","props","checked","checkedIcon","checkedIconProp","color","disabled","icon","iconProp","onChange","style","otherProps","styles","uncheckedIcon","handlePress","rootStyle","css"],"sources":["LegacyCheckbox.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { Checkbox as CheckboxIcon, CheckboxChecked as CheckboxCheckedIcon } from '../internal/icons';\nimport { css } from '../styles';\nimport type CheckboxProps from './LegacyCheckboxProps';\n\ntype CheckboxStyle = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<CheckboxStyle> = function (): CheckboxStyle {\n return {\n root: {\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n },\n };\n};\n\nexport default function Checkbox(props: CheckboxProps) {\n const {\n checked = false,\n checkedIcon: checkedIconProp,\n color = 'primary',\n disabled = false,\n icon: iconProp,\n onChange,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const uncheckedIcon = iconProp ? iconProp : <CheckboxIcon color={color}/>;\n const checkedIcon = checkedIconProp ? checkedIconProp : <CheckboxCheckedIcon color={color}/>;\n\n const handlePress = () => {\n if (onChange) {\n onChange(!checked);\n }\n };\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {checked\n ? checkedIcon\n : uncheckedIcon\n }\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAmC,GAAG,YAA2B;EACnE,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAE,EADL;MAEFC,MAAM,EAAE,EAFN;MAGFC,cAAc,EAAE,QAHd;MAIFC,UAAU,EAAE;IAJV;EADH,CAAP;AAQH,CATD;;AAWe,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,OAAO,GAAG,KADR;IAEFC,WAAW,EAAEC,eAFX;IAGFC,KAAK,GAAG,SAHN;IAIFC,QAAQ,GAAG,KAJT;IAKFC,IAAI,EAAEC,QALJ;IAMFC,QANE;IAOFC,KAPE;IAQF,GAAGC;EARD,IASFV,KATJ;EAWA,MAAMW,MAAM,GAAGlB,SAAS,EAAxB;EAEA,MAAMmB,aAAa,GAAGL,QAAQ,GAAGA,QAAH,gBAAc,6BAAC,eAAD;IAAc,KAAK,EAAEH;EAArB,EAA5C;EACA,MAAMF,WAAW,GAAGC,eAAe,GAAGA,eAAH,gBAAqB,6BAAC,sBAAD;IAAqB,KAAK,EAAEC;EAA5B,EAAxD;;EAEA,MAAMS,WAAW,GAAG,MAAM;IACtB,IAAIL,QAAJ,EAAc;MACVA,QAAQ,CAAC,CAACP,OAAF,CAAR;IACH;EACJ,CAJD;;EAMA,MAAMa,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBJ,MAAM,CAACjB,IADW,EAElBe,KAFkB,CAAJ,CAAlB;EAKA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEJ,QADd;IAEI,OAAO,EAAEQ,WAFb;IAGI,KAAK,EAAEC;EAHX,GAIQJ,UAJR,GAMKT,OAAO,GACFC,WADE,GAEFU,aARV,CADJ;AAaH;;AAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=LegacyCheckboxProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["LegacyCheckboxProps.ts"],"sourcesContent":["import React from 'react';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\nimport type { ButtonBaseProps } from '../ButtonBase';\n\ntype BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;\n\nexport type CheckboxColor = CommonComponentColor;\n\nexport default interface CheckboxProps extends OverridableComponentProps<BaseProps, {\n /**\n * If `true`, the component is checked.\n * @default false\n */\n checked?: boolean;\n\n /**\n * The checked Icon which is replaced.\n */\n checkedIcon?: React.ReactElement;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'primary'\n */\n color?: CheckboxColor;\n\n /**\n * If `true`, the checkbox is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * The unchecked Icon which is replaced.\n */\n icon?: React.ReactElement;\n\n /**\n * Callback fired when the state is changed.\n */\n onChange?: (newChecked: boolean) => void;\n}> {}\n"],"mappings":""}
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _Checkbox.default;
9
+ return _LegacyCheckbox.default;
10
10
  }
11
11
  });
12
12
 
13
- var _Checkbox = _interopRequireDefault(require("./Checkbox"));
13
+ var _LegacyCheckbox = _interopRequireDefault(require("./LegacyCheckbox"));
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Checkbox';\nexport type { default as CheckboxProps } from './CheckboxProps';"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyCheckbox';\nexport type { default as CheckboxProps } from './LegacyCheckboxProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = useVariantStyleMap;
7
+
8
+ var _reactNative = require("react-native");
9
+
10
+ var _styles = require("@fountain-ui/styles");
11
+
12
+ var _styles2 = require("../styles");
13
+
14
+ const styles = _reactNative.StyleSheet.create({
15
+ checkbox: {
16
+ alignItems: 'center',
17
+ borderWidth: 1,
18
+ justifyContent: 'center'
19
+ }
20
+ });
21
+
22
+ function useVariantStyleMap(variant, checked) {
23
+ const theme = (0, _styles2.useTheme)();
24
+
25
+ switch (variant) {
26
+ case 'square':
27
+ return {
28
+ checkboxStyle: (0, _styles2.css)([styles.checkbox, {
29
+ borderColor: theme.palette.border.base,
30
+ borderRadius: theme.shape.radius.xs,
31
+ height: 18,
32
+ width: 18,
33
+ ...(checked ? {
34
+ backgroundColor: theme.palette.fill.base,
35
+ borderColor: theme.palette.fill.base
36
+ } : {})
37
+ }]),
38
+ containerStyle: {
39
+ alignItems: 'center',
40
+ flexDirection: 'row',
41
+ gap: theme.spacing(3)
42
+ },
43
+ iconColor: theme.palette.fill.baseAlt
44
+ };
45
+
46
+ case 'round':
47
+ return {
48
+ checkboxStyle: (0, _styles2.css)([styles.checkbox, {
49
+ borderColor: theme.palette.border.base,
50
+ borderRadius: theme.shape.radius.full,
51
+ height: 20,
52
+ width: 20,
53
+ ...(checked ? {
54
+ backgroundColor: theme.palette.fill.accent,
55
+ borderColor: theme.palette.fill.accent
56
+ } : {})
57
+ }]),
58
+ containerStyle: {
59
+ alignItems: 'center',
60
+ flexDirection: 'row-reverse',
61
+ gap: theme.spacing(8)
62
+ },
63
+ iconColor: _styles.commonColors.static.strongInverse
64
+ };
65
+
66
+ default:
67
+ return {};
68
+ }
69
+ }
70
+ //# sourceMappingURL=useVariantStyleMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styles","StyleSheet","create","checkbox","alignItems","borderWidth","justifyContent","useVariantStyleMap","variant","checked","theme","useTheme","checkboxStyle","css","borderColor","palette","border","base","borderRadius","shape","radius","xs","height","width","backgroundColor","fill","containerStyle","flexDirection","gap","spacing","iconColor","baseAlt","full","accent","commonColors","static","strongInverse"],"sources":["useVariantStyleMap.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport { commonColors, FountainUiStyle } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type { CheckboxVariant } from './CheckboxProps';\n\nconst styles = StyleSheet.create({\n checkbox: {\n alignItems: 'center',\n borderWidth: 1,\n justifyContent: 'center',\n },\n});\n\ntype useVariantStyleMapReturns = {\n checkboxStyle?: FountainUiStyle;\n containerStyle?: FountainUiStyle;\n iconColor?: string;\n};\n\nexport default function useVariantStyleMap(variant: CheckboxVariant, checked: boolean): useVariantStyleMapReturns {\n const theme = useTheme();\n\n switch (variant) {\n case 'square':\n return {\n checkboxStyle: css([\n styles.checkbox,\n {\n borderColor: theme.palette.border.base,\n borderRadius: theme.shape.radius.xs,\n height: 18,\n width: 18,\n ...(checked ? {\n backgroundColor: theme.palette.fill.base,\n borderColor: theme.palette.fill.base,\n } : {}),\n },\n ]),\n containerStyle: {\n alignItems: 'center',\n flexDirection: 'row',\n gap: theme.spacing(3),\n },\n iconColor: theme.palette.fill.baseAlt,\n };\n case 'round':\n return {\n checkboxStyle: css([\n styles.checkbox,\n {\n borderColor: theme.palette.border.base,\n borderRadius: theme.shape.radius.full,\n height: 20,\n width: 20,\n ...(checked ? {\n backgroundColor: theme.palette.fill.accent,\n borderColor: theme.palette.fill.accent,\n } : {}),\n },\n ]),\n containerStyle: {\n alignItems: 'center',\n flexDirection: 'row-reverse',\n gap: theme.spacing(8),\n },\n iconColor: commonColors.static.strongInverse,\n };\n default:\n return {};\n }\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAGA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC7BC,QAAQ,EAAE;IACNC,UAAU,EAAE,QADN;IAENC,WAAW,EAAE,CAFP;IAGNC,cAAc,EAAE;EAHV;AADmB,CAAlB,CAAf;;AAce,SAASC,kBAAT,CAA4BC,OAA5B,EAAsDC,OAAtD,EAAmG;EAC9G,MAAMC,KAAK,GAAG,IAAAC,iBAAA,GAAd;;EAEA,QAAQH,OAAR;IACI,KAAK,QAAL;MACI,OAAO;QACHI,aAAa,EAAE,IAAAC,YAAA,EAAI,CACfb,MAAM,CAACG,QADQ,EAEf;UACIW,WAAW,EAAEJ,KAAK,CAACK,OAAN,CAAcC,MAAd,CAAqBC,IADtC;UAEIC,YAAY,EAAER,KAAK,CAACS,KAAN,CAAYC,MAAZ,CAAmBC,EAFrC;UAGIC,MAAM,EAAE,EAHZ;UAIIC,KAAK,EAAE,EAJX;UAKI,IAAId,OAAO,GAAG;YACVe,eAAe,EAAEd,KAAK,CAACK,OAAN,CAAcU,IAAd,CAAmBR,IAD1B;YAEVH,WAAW,EAAEJ,KAAK,CAACK,OAAN,CAAcU,IAAd,CAAmBR;UAFtB,CAAH,GAGP,EAHJ;QALJ,CAFe,CAAJ,CADZ;QAcHS,cAAc,EAAE;UACZtB,UAAU,EAAE,QADA;UAEZuB,aAAa,EAAE,KAFH;UAGZC,GAAG,EAAElB,KAAK,CAACmB,OAAN,CAAc,CAAd;QAHO,CAdb;QAmBHC,SAAS,EAAEpB,KAAK,CAACK,OAAN,CAAcU,IAAd,CAAmBM;MAnB3B,CAAP;;IAqBJ,KAAK,OAAL;MACI,OAAO;QACHnB,aAAa,EAAE,IAAAC,YAAA,EAAI,CACfb,MAAM,CAACG,QADQ,EAEf;UACIW,WAAW,EAAEJ,KAAK,CAACK,OAAN,CAAcC,MAAd,CAAqBC,IADtC;UAEIC,YAAY,EAAER,KAAK,CAACS,KAAN,CAAYC,MAAZ,CAAmBY,IAFrC;UAGIV,MAAM,EAAE,EAHZ;UAIIC,KAAK,EAAE,EAJX;UAKI,IAAId,OAAO,GAAG;YACVe,eAAe,EAAEd,KAAK,CAACK,OAAN,CAAcU,IAAd,CAAmBQ,MAD1B;YAEVnB,WAAW,EAAEJ,KAAK,CAACK,OAAN,CAAcU,IAAd,CAAmBQ;UAFtB,CAAH,GAGP,EAHJ;QALJ,CAFe,CAAJ,CADZ;QAcHP,cAAc,EAAE;UACZtB,UAAU,EAAE,QADA;UAEZuB,aAAa,EAAE,aAFH;UAGZC,GAAG,EAAElB,KAAK,CAACmB,OAAN,CAAc,CAAd;QAHO,CAdb;QAmBHC,SAAS,EAAEI,oBAAA,CAAaC,MAAb,CAAoBC;MAnB5B,CAAP;;IAqBJ;MACI,OAAO,EAAP;EA9CR;AAgDH"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = CheckboxGroup;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _styles = require("../styles");
13
+
14
+ var _utils = require("../utils");
15
+
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
+
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ const useStyles = function () {
21
+ const theme = (0, _styles.useTheme)();
22
+ return {
23
+ square: {
24
+ paddingVertical: theme.spacing(2)
25
+ },
26
+ round: {
27
+ borderBottomColor: theme.palette.border.weak,
28
+ borderBottomWidth: 0.5,
29
+ paddingVertical: theme.spacing(3.5)
30
+ }
31
+ };
32
+ };
33
+
34
+ function CheckboxGroup(props) {
35
+ const {
36
+ children,
37
+ variant = 'square',
38
+ ...otherProps
39
+ } = props;
40
+ const styles = useStyles();
41
+
42
+ const content = _react.Children.map(children, child => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
43
+ style: styles[variant]
44
+ }, (0, _utils.cloneElementSafely)(child, {
45
+ variant
46
+ })));
47
+
48
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, otherProps, content);
49
+ }
50
+ //# sourceMappingURL=CheckboxGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useStyles","theme","useTheme","square","paddingVertical","spacing","round","borderBottomColor","palette","border","weak","borderBottomWidth","CheckboxGroup","props","children","variant","otherProps","styles","content","Children","map","child","cloneElementSafely"],"sources":["CheckboxGroup.tsx"],"sourcesContent":["import React, { Children } from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport type { CheckboxVariant } from '../Checkbox/CheckboxProps';\nimport { useTheme } from '../styles';\nimport type { FalsyReactElement } from '../utils';\nimport { cloneElementSafely } from '../utils';\nimport type CheckboxGroupProps from './CheckboxGroupProps';\n\ntype CheckboxItemStyles = NamedStylesStringUnion<CheckboxVariant>;\n\nconst useStyles: UseStyles<CheckboxItemStyles> = function (): CheckboxItemStyles {\n const theme = useTheme();\n\n return {\n square: {\n paddingVertical: theme.spacing(2),\n },\n round: {\n borderBottomColor: theme.palette.border.weak,\n borderBottomWidth: 0.5,\n paddingVertical: theme.spacing(3.5),\n },\n };\n};\n\nexport default function CheckboxGroup(props: CheckboxGroupProps) {\n const {\n children,\n variant = 'square' as CheckboxVariant,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const content = Children.map(children, (child) => (\n <View style={styles[variant]}>\n {cloneElementSafely(child as FalsyReactElement, { variant })}\n </View>\n ));\n\n return (\n <View {...otherProps}>\n {content}\n </View>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,MAAM,EAAE;MACJC,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd;IADb,CADL;IAIHC,KAAK,EAAE;MACHC,iBAAiB,EAAEN,KAAK,CAACO,OAAN,CAAcC,MAAd,CAAqBC,IADrC;MAEHC,iBAAiB,EAAE,GAFhB;MAGHP,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAc,GAAd;IAHd;EAJJ,CAAP;AAUH,CAbD;;AAee,SAASO,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,OAAO,GAAG,QAFR;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,MAAM,GAAGjB,SAAS,EAAxB;;EAEA,MAAMkB,OAAO,GAAGC,eAAA,CAASC,GAAT,CAAaN,QAAb,EAAwBO,KAAD,iBACnC,6BAAC,iBAAD;IAAM,KAAK,EAAEJ,MAAM,CAACF,OAAD;EAAnB,GACK,IAAAO,yBAAA,EAAmBD,KAAnB,EAA+C;IAAEN;EAAF,CAA/C,CADL,CADY,CAAhB;;EAMA,oBACI,6BAAC,iBAAD,EAAUC,UAAV,EACKE,OADL,CADJ;AAKH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=CheckboxGroupProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["CheckboxGroupProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type { CheckboxVariant } from '../Checkbox/CheckboxProps';\n\nexport default interface CheckboxGroupProps extends OverridableComponentProps<ViewProps, {\n /**\n * Determines the shape and style of the checkbox.\n * @default 'square'\n */\n variant?: CheckboxVariant;\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 _CheckboxGroup.default;
10
+ }
11
+ });
12
+
13
+ var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
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 './CheckboxGroup';\nexport type { default as CheckboxGroupProps } from './CheckboxGroupProps';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -31,21 +31,33 @@ const styles = _styles.StyleSheet.create({
31
31
  }
32
32
  });
33
33
 
34
+ function selectBorderColor(theme, variant, vertical) {
35
+ switch (variant) {
36
+ default:
37
+ case 'base':
38
+ return vertical ? theme.palette.border.weaker : theme.palette.border.weak;
39
+
40
+ case 'strong':
41
+ return vertical ? theme.palette.border.weak : theme.palette.border.base;
42
+ }
43
+ }
44
+
34
45
  function Divider(props) {
35
46
  const {
36
- borderWidth = 1,
47
+ borderWidth: borderWidthProp,
37
48
  children: childrenProp,
38
- color = 'divider',
39
49
  elementAlign = 'center',
40
50
  inset = 0,
41
51
  marginBetweenChildren = 2,
42
52
  style,
53
+ variant = 'base',
43
54
  vertical = false,
44
55
  ...otherProps
45
56
  } = props;
46
57
  const theme = (0, _styles.useTheme)();
47
- const fontColor = theme.palette.text.secondary;
48
- const borderColor = color === 'divider' ? theme.palette.divider : color === 'border' ? theme.palette.border.default : theme.palette[color].main;
58
+ const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);
59
+ const fontColor = theme.palette.text.weak;
60
+ const borderColor = selectBorderColor(theme, variant, vertical);
49
61
  const marginSize = theme.spacing(1);
50
62
  const insetSize = theme.spacing(inset);
51
63
  const marginLeft = marginSize;
@@ -1 +1 @@
1
- {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","Divider","props","borderWidth","children","childrenProp","color","elementAlign","inset","marginBetweenChildren","style","vertical","otherProps","theme","useTheme","fontColor","palette","text","secondary","borderColor","border","default","main","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","borderRightWidth","borderBottomWidth","containerStyle","css","undefined","dividerStyle","dividerMarginSize","startDividerStyle","display","endDividerStyle","fontStyle","createFontStyle","selector","typo","caption2","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps 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\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth = 1,\n children: childrenProp,\n color = 'divider',\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const fontColor = theme.palette.text.secondary;\n const borderColor = color === 'divider'\n ? theme.palette.divider\n : color === 'border'\n ? theme.palette.border.default\n : theme.palette[color].main;\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? { borderRightWidth: borderWidth } : { borderBottomWidth: borderWidth });\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(marginBetweenChildren);\n const startDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'start' ? 'flex' : 'none',\n ...(vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize }),\n };\n const endDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'end' ? 'flex' : 'none',\n ...(vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize }),\n };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <React.Fragment>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </React.Fragment>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAIA,MAAMA,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BC,SAAS,EAAE;IACPC,SAAS,EAAE,SADJ;IAEPC,UAAU,EAAE;EAFL,CADkB;EAK7BC,GAAG,EAAE;IACDC,aAAa,EAAE;EADd,CALwB;EAQ7BC,MAAM,EAAE;IACJD,aAAa,EAAE;EADX,CARqB;EAW7BE,OAAO,EAAE;IACLC,QAAQ,EAAE;EADL;AAXoB,CAAlB,CAAf;;AAgBe,SAASC,OAAT,CAAiBC,KAAjB,EAAsC;EACjD,MAAM;IACFC,WAAW,GAAG,CADZ;IAEFC,QAAQ,EAAEC,YAFR;IAGFC,KAAK,GAAG,SAHN;IAIFC,YAAY,GAAG,QAJb;IAKFC,KAAK,GAAG,CALN;IAMFC,qBAAqB,GAAG,CANtB;IAOFC,KAPE;IAQFC,QAAQ,GAAG,KART;IASF,GAAGC;EATD,IAUFV,KAVJ;EAYA,MAAMW,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,SAAS,GAAGF,KAAK,CAACG,OAAN,CAAcC,IAAd,CAAmBC,SAArC;EACA,MAAMC,WAAW,GAAGb,KAAK,KAAK,SAAV,GACdO,KAAK,CAACG,OAAN,CAAcjB,OADA,GAEdO,KAAK,KAAK,QAAV,GACIO,KAAK,CAACG,OAAN,CAAcI,MAAd,CAAqBC,OADzB,GAEIR,KAAK,CAACG,OAAN,CAAcV,KAAd,EAAqBgB,IAJ/B;EAKA,MAAMC,UAAU,GAAGV,KAAK,CAACW,OAAN,CAAc,CAA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MADR;IAErC,IAAII,QAAQ,GAAG;MAAEkB,YAAY,EAAEW;IAAhB,CAAH,GAAyC;MAAEb,WAAW,EAAEa;IAAf,CAArD;EAFqC,CAAzC;EAIA,MAAMG,eAA8B,GAAG;IACnCD,OAAO,EAAEnC,YAAY,KAAK,KAAjB,GAAyB,MAAzB,GAAkC,MADR;IAEnC,IAAII,QAAQ,GAAG;MAAEiB,SAAS,EAAEY;IAAb,CAAH,GAAsC;MAAEd,UAAU,EAAEc;IAAd,CAAlD;EAFmC,CAAvC;EAKA,MAAMI,SAAS,GAAG,IAAAC,uBAAA,EAAgBhC,KAAhB,EAAuB;IACrCiC,QAAQ,EAAGC,IAAD,IAAUA,IAAI,CAACC,QADY;IAErC1C,KAAK,EAAES;EAF8B,CAAvB,CAAlB;EAKA,MAAMkC,OAAO,GAAG,OAAO5C,YAAP,KAAwB,QAAxB,gBACV,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAgC,WAAA,EAAIO,SAAJ;EAAb,GAA8BvC,YAA9B,CADU,GAEVA,YAFN;EAIA,MAAMD,QAAQ,GAAGC,YAAY,gBACzB,6BAAC,cAAD,CAAO,QAAP,qBACI,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAgC,WAAA,EAAI,CAACE,YAAD,EAAeE,iBAAf,CAAJ;EAAb,EADJ,EAEKQ,OAFL,eAGI,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAZ,WAAA,EAAI,CAACE,YAAD,EAAeI,eAAf,CAAJ;EAAb,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEP;EADX,GAEQxB,UAFR,GAIKR,QAJL,CADJ;AAQH;;AAAA"}
1
+ {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","selectBorderColor","theme","variant","vertical","palette","border","weaker","weak","base","Divider","props","borderWidth","borderWidthProp","children","childrenProp","elementAlign","inset","marginBetweenChildren","style","otherProps","useTheme","fontColor","text","borderColor","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","borderRightWidth","borderBottomWidth","containerStyle","css","undefined","dividerStyle","dividerMarginSize","startDividerStyle","display","endDividerStyle","fontStyle","createFontStyle","selector","typo","caption2","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { ExtendedStyle } from '../types';\nimport type DividerProps from './DividerProps';\nimport type { DividerVariant } from './DividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n});\n\nfunction selectBorderColor(theme: Theme, variant: DividerVariant, vertical: boolean) {\n switch (variant) {\n default:\n case 'base':\n return vertical ? theme.palette.border.weaker : theme.palette.border.weak;\n case 'strong':\n return vertical ? theme.palette.border.weak : theme.palette.border.base;\n }\n}\n\nexport default function Divider(props: DividerProps) {\n const {\n borderWidth: borderWidthProp,\n children: childrenProp,\n elementAlign = 'center',\n inset = 0,\n marginBetweenChildren = 2,\n style,\n variant = 'base' as DividerVariant,\n vertical = false,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const borderWidth = borderWidthProp ?? (vertical ? 1 : 0.5);\n const fontColor = theme.palette.text.weak;\n const borderColor = selectBorderColor(theme, variant, vertical);\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? { borderRightWidth: borderWidth } : { borderBottomWidth: borderWidth });\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(marginBetweenChildren);\n const startDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'start' ? 'flex' : 'none',\n ...(vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize }),\n };\n const endDividerStyle: ExtendedStyle = {\n display: elementAlign !== 'end' ? 'flex' : 'none',\n ...(vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize }),\n };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <React.Fragment>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </React.Fragment>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BC,SAAS,EAAE;IACPC,SAAS,EAAE,SADJ;IAEPC,UAAU,EAAE;EAFL,CADkB;EAK7BC,GAAG,EAAE;IACDC,aAAa,EAAE;EADd,CALwB;EAQ7BC,MAAM,EAAE;IACJD,aAAa,EAAE;EADX,CARqB;EAW7BE,OAAO,EAAE;IACLC,QAAQ,EAAE;EADL;AAXoB,CAAlB,CAAf;;AAgBA,SAASC,iBAAT,CAA2BC,KAA3B,EAAyCC,OAAzC,EAAkEC,QAAlE,EAAqF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