@fountain-ui/core 2.0.0-beta.92 → 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 (343) 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/IconButton/IconButton.js +39 -42
  40. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  41. package/build/commonjs/IconButton/IconButtonProps.js +7 -0
  42. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  43. package/build/commonjs/IconButton/LegacyIconButton.js +88 -0
  44. package/build/commonjs/IconButton/LegacyIconButton.js.map +1 -0
  45. package/build/commonjs/IconButton/LegacyIconButtonProps.js +2 -0
  46. package/build/commonjs/IconButton/LegacyIconButtonProps.js.map +1 -0
  47. package/build/commonjs/IconButton/index.js +2 -2
  48. package/build/commonjs/IconButton/index.js.map +1 -1
  49. package/build/commonjs/Radio/LegacyRadio.js +82 -0
  50. package/build/commonjs/Radio/LegacyRadio.js.map +1 -0
  51. package/build/commonjs/Radio/LegacyRadioProps.js +2 -0
  52. package/build/commonjs/Radio/LegacyRadioProps.js.map +1 -0
  53. package/build/commonjs/Radio/Radio.js +40 -19
  54. package/build/commonjs/Radio/Radio.js.map +1 -1
  55. package/build/commonjs/Radio/RadioProps.js.map +1 -1
  56. package/build/commonjs/Radio/index.js +2 -2
  57. package/build/commonjs/Radio/index.js.map +1 -1
  58. package/build/commonjs/RadioGroup/LegacyRadioGroup.js +31 -0
  59. package/build/commonjs/RadioGroup/LegacyRadioGroup.js.map +1 -0
  60. package/build/commonjs/RadioGroup/RadioGroup.js +28 -2
  61. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  62. package/build/commonjs/RadioGroup/index.js +2 -2
  63. package/build/commonjs/RadioGroup/index.js.map +1 -1
  64. package/build/commonjs/ShadowView/ShadowView.js +35 -0
  65. package/build/commonjs/ShadowView/ShadowView.js.map +1 -0
  66. package/build/commonjs/ShadowView/ShadowView.native.js +35 -0
  67. package/build/commonjs/ShadowView/ShadowView.native.js.map +1 -0
  68. package/build/commonjs/ShadowView/ShadowViewProps.js +2 -0
  69. package/build/commonjs/ShadowView/ShadowViewProps.js.map +1 -0
  70. package/build/commonjs/ShadowView/index.js +16 -0
  71. package/build/commonjs/ShadowView/index.js.map +1 -0
  72. package/build/commonjs/SvgIcon/LegacySvgIcon.js +43 -0
  73. package/build/commonjs/SvgIcon/LegacySvgIcon.js.map +1 -0
  74. package/build/commonjs/SvgIcon/LegacySvgIconProps.js +2 -0
  75. package/build/commonjs/SvgIcon/LegacySvgIconProps.js.map +1 -0
  76. package/build/commonjs/SvgIcon/SvgIcon.js +16 -4
  77. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  78. package/build/commonjs/SvgIcon/SvgIconProps.js +15 -0
  79. package/build/commonjs/SvgIcon/SvgIconProps.js.map +1 -1
  80. package/build/commonjs/SvgIcon/index.js +2 -2
  81. package/build/commonjs/SvgIcon/index.js.map +1 -1
  82. package/build/commonjs/Toggle/Toggle.js +110 -0
  83. package/build/commonjs/Toggle/Toggle.js.map +1 -0
  84. package/build/commonjs/Toggle/ToggleProps.js +2 -0
  85. package/build/commonjs/Toggle/ToggleProps.js.map +1 -0
  86. package/build/commonjs/Toggle/index.js +16 -0
  87. package/build/commonjs/Toggle/index.js.map +1 -0
  88. package/build/commonjs/Typography/LegacyTypography.js +142 -0
  89. package/build/commonjs/Typography/LegacyTypography.js.map +1 -0
  90. package/build/commonjs/Typography/LegacyTypographyProps.js +2 -0
  91. package/build/commonjs/Typography/LegacyTypographyProps.js.map +1 -0
  92. package/build/commonjs/Typography/Typography.js +15 -54
  93. package/build/commonjs/Typography/Typography.js.map +1 -1
  94. package/build/commonjs/Typography/TypographyProps.js +7 -0
  95. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  96. package/build/commonjs/Typography/index.js +2 -2
  97. package/build/commonjs/Typography/index.js.map +1 -1
  98. package/build/commonjs/hooks/useCollapsibleAppBar.js +11 -2
  99. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  100. package/build/commonjs/index.js +84 -0
  101. package/build/commonjs/index.js.map +1 -1
  102. package/build/commonjs/internal/icons/Check.js +23 -0
  103. package/build/commonjs/internal/icons/Check.js.map +1 -0
  104. package/build/commonjs/internal/icons/CheckboxOn.js +23 -0
  105. package/build/commonjs/internal/icons/CheckboxOn.js.map +1 -0
  106. package/build/commonjs/internal/icons/index.js +16 -0
  107. package/build/commonjs/internal/icons/index.js.map +1 -1
  108. package/build/commonjs/styles/createFontStyle.js.map +1 -1
  109. package/build/commonjs/utils/cloneElementSafely.js.map +1 -1
  110. package/build/commonjs/utils/createSvgIcon.js +15 -3
  111. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  112. package/build/commonjs/utils/index.js.map +1 -1
  113. package/build/module/Button/Button.js +53 -63
  114. package/build/module/Button/Button.js.map +1 -1
  115. package/build/module/Button/ButtonProps.js +3 -1
  116. package/build/module/Button/ButtonProps.js.map +1 -1
  117. package/build/module/Button/LegacyButton.js +127 -0
  118. package/build/module/Button/LegacyButton.js.map +1 -0
  119. package/build/module/Button/LegacyButtonProps.js +2 -0
  120. package/build/module/Button/LegacyButtonProps.js.map +1 -0
  121. package/build/module/Button/index.js +1 -1
  122. package/build/module/Button/index.js.map +1 -1
  123. package/build/module/Button/useVariantStyleMap.js +85 -0
  124. package/build/module/Button/useVariantStyleMap.js.map +1 -0
  125. package/build/module/ButtonSet/ButtonSet.js +34 -0
  126. package/build/module/ButtonSet/ButtonSet.js.map +1 -0
  127. package/build/module/ButtonSet/ButtonSetProps.js +3 -0
  128. package/build/module/ButtonSet/ButtonSetProps.js.map +1 -0
  129. package/build/module/ButtonSet/index.js +3 -0
  130. package/build/module/ButtonSet/index.js.map +1 -0
  131. package/build/module/ButtonSet/useVariantStyleMap.js +76 -0
  132. package/build/module/ButtonSet/useVariantStyleMap.js.map +1 -0
  133. package/build/module/Checkbox/Checkbox.js +32 -26
  134. package/build/module/Checkbox/Checkbox.js.map +1 -1
  135. package/build/module/Checkbox/CheckboxProps.js +1 -1
  136. package/build/module/Checkbox/CheckboxProps.js.map +1 -1
  137. package/build/module/Checkbox/LegacyCheckbox.js +52 -0
  138. package/build/module/Checkbox/LegacyCheckbox.js.map +1 -0
  139. package/build/module/Checkbox/LegacyCheckboxProps.js +2 -0
  140. package/build/module/Checkbox/LegacyCheckboxProps.js.map +1 -0
  141. package/build/module/Checkbox/index.js +1 -1
  142. package/build/module/Checkbox/index.js.map +1 -1
  143. package/build/module/Checkbox/useVariantStyleMap.js +59 -0
  144. package/build/module/Checkbox/useVariantStyleMap.js.map +1 -0
  145. package/build/module/CheckboxGroup/CheckboxGroup.js +34 -0
  146. package/build/module/CheckboxGroup/CheckboxGroup.js.map +1 -0
  147. package/build/module/CheckboxGroup/CheckboxGroupProps.js +2 -0
  148. package/build/module/CheckboxGroup/CheckboxGroupProps.js.map +1 -0
  149. package/build/module/CheckboxGroup/index.js +2 -0
  150. package/build/module/CheckboxGroup/index.js.map +1 -0
  151. package/build/module/IconButton/IconButton.js +36 -40
  152. package/build/module/IconButton/IconButton.js.map +1 -1
  153. package/build/module/IconButton/IconButtonProps.js +1 -1
  154. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  155. package/build/module/IconButton/LegacyIconButton.js +73 -0
  156. package/build/module/IconButton/LegacyIconButton.js.map +1 -0
  157. package/build/module/IconButton/LegacyIconButtonProps.js +2 -0
  158. package/build/module/IconButton/LegacyIconButtonProps.js.map +1 -0
  159. package/build/module/IconButton/index.js +1 -1
  160. package/build/module/IconButton/index.js.map +1 -1
  161. package/build/module/Radio/LegacyRadio.js +63 -0
  162. package/build/module/Radio/LegacyRadio.js.map +1 -0
  163. package/build/module/Radio/LegacyRadioProps.js +2 -0
  164. package/build/module/Radio/LegacyRadioProps.js.map +1 -0
  165. package/build/module/Radio/Radio.js +35 -18
  166. package/build/module/Radio/Radio.js.map +1 -1
  167. package/build/module/Radio/RadioProps.js.map +1 -1
  168. package/build/module/Radio/index.js +1 -1
  169. package/build/module/Radio/index.js.map +1 -1
  170. package/build/module/RadioGroup/LegacyRadioGroup.js +18 -0
  171. package/build/module/RadioGroup/LegacyRadioGroup.js.map +1 -0
  172. package/build/module/RadioGroup/RadioGroup.js +21 -2
  173. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  174. package/build/module/RadioGroup/index.js +1 -1
  175. package/build/module/RadioGroup/index.js.map +1 -1
  176. package/build/module/ShadowView/ShadowView.js +23 -0
  177. package/build/module/ShadowView/ShadowView.js.map +1 -0
  178. package/build/module/ShadowView/ShadowView.native.js +23 -0
  179. package/build/module/ShadowView/ShadowView.native.js.map +1 -0
  180. package/build/module/ShadowView/ShadowViewProps.js +2 -0
  181. package/build/module/ShadowView/ShadowViewProps.js.map +1 -0
  182. package/build/module/ShadowView/index.js +2 -0
  183. package/build/module/ShadowView/index.js.map +1 -0
  184. package/build/module/SvgIcon/LegacySvgIcon.js +30 -0
  185. package/build/module/SvgIcon/LegacySvgIcon.js.map +1 -0
  186. package/build/module/SvgIcon/LegacySvgIconProps.js +2 -0
  187. package/build/module/SvgIcon/LegacySvgIconProps.js.map +1 -0
  188. package/build/module/SvgIcon/SvgIcon.js +15 -4
  189. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  190. package/build/module/SvgIcon/SvgIconProps.js +7 -1
  191. package/build/module/SvgIcon/SvgIconProps.js.map +1 -1
  192. package/build/module/SvgIcon/index.js +1 -1
  193. package/build/module/SvgIcon/index.js.map +1 -1
  194. package/build/module/Toggle/Toggle.js +90 -0
  195. package/build/module/Toggle/Toggle.js.map +1 -0
  196. package/build/module/Toggle/ToggleProps.js +2 -0
  197. package/build/module/Toggle/ToggleProps.js.map +1 -0
  198. package/build/module/Toggle/index.js +2 -0
  199. package/build/module/Toggle/index.js.map +1 -0
  200. package/build/module/Typography/LegacyTypography.js +126 -0
  201. package/build/module/Typography/LegacyTypography.js.map +1 -0
  202. package/build/module/Typography/LegacyTypographyProps.js +2 -0
  203. package/build/module/Typography/LegacyTypographyProps.js.map +1 -0
  204. package/build/module/Typography/Typography.js +15 -54
  205. package/build/module/Typography/Typography.js.map +1 -1
  206. package/build/module/Typography/TypographyProps.js +1 -1
  207. package/build/module/Typography/TypographyProps.js.map +1 -1
  208. package/build/module/Typography/index.js +1 -1
  209. package/build/module/Typography/index.js.map +1 -1
  210. package/build/module/hooks/useCollapsibleAppBar.js +12 -3
  211. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  212. package/build/module/index.js +8 -0
  213. package/build/module/index.js.map +1 -1
  214. package/build/module/internal/icons/Check.js +9 -0
  215. package/build/module/internal/icons/Check.js.map +1 -0
  216. package/build/module/internal/icons/CheckboxOn.js +9 -0
  217. package/build/module/internal/icons/CheckboxOn.js.map +1 -0
  218. package/build/module/internal/icons/index.js +2 -0
  219. package/build/module/internal/icons/index.js.map +1 -1
  220. package/build/module/styles/createFontStyle.js.map +1 -1
  221. package/build/module/utils/cloneElementSafely.js.map +1 -1
  222. package/build/module/utils/createSvgIcon.js +14 -3
  223. package/build/module/utils/createSvgIcon.js.map +1 -1
  224. package/build/module/utils/index.js.map +1 -1
  225. package/build/typescript/Button/ButtonProps.d.ts +13 -11
  226. package/build/typescript/Button/LegacyButton.d.ts +3 -0
  227. package/build/typescript/Button/LegacyButtonProps.d.ts +51 -0
  228. package/build/typescript/Button/index.d.ts +2 -2
  229. package/build/typescript/Button/useVariantStyleMap.d.ts +9 -0
  230. package/build/typescript/ButtonSet/ButtonSet.d.ts +3 -0
  231. package/build/typescript/ButtonSet/ButtonSetProps.d.ts +20 -0
  232. package/build/typescript/ButtonSet/index.d.ts +3 -0
  233. package/build/typescript/ButtonSet/useVariantStyleMap.d.ts +10 -0
  234. package/build/typescript/Checkbox/CheckboxProps.d.ts +10 -14
  235. package/build/typescript/Checkbox/LegacyCheckbox.d.ts +3 -0
  236. package/build/typescript/Checkbox/LegacyCheckboxProps.d.ts +36 -0
  237. package/build/typescript/Checkbox/index.d.ts +2 -2
  238. package/build/typescript/Checkbox/useVariantStyleMap.d.ts +9 -0
  239. package/build/typescript/CheckboxGroup/CheckboxGroup.d.ts +3 -0
  240. package/build/typescript/CheckboxGroup/CheckboxGroupProps.d.ts +11 -0
  241. package/build/typescript/CheckboxGroup/index.d.ts +2 -0
  242. package/build/typescript/IconButton/IconButtonProps.d.ts +7 -10
  243. package/build/typescript/IconButton/LegacyIconButton.d.ts +3 -0
  244. package/build/typescript/IconButton/LegacyIconButtonProps.d.ts +26 -0
  245. package/build/typescript/IconButton/index.d.ts +2 -2
  246. package/build/typescript/Radio/LegacyRadio.d.ts +3 -0
  247. package/build/typescript/Radio/LegacyRadioProps.d.ts +43 -0
  248. package/build/typescript/Radio/RadioProps.d.ts +9 -14
  249. package/build/typescript/Radio/index.d.ts +2 -2
  250. package/build/typescript/RadioGroup/LegacyRadioGroup.d.ts +3 -0
  251. package/build/typescript/RadioGroup/index.d.ts +1 -1
  252. package/build/typescript/ShadowView/ShadowView.d.ts +3 -0
  253. package/build/typescript/ShadowView/ShadowView.native.d.ts +3 -0
  254. package/build/typescript/ShadowView/ShadowViewProps.d.ts +11 -0
  255. package/build/typescript/ShadowView/index.d.ts +2 -0
  256. package/build/typescript/SvgIcon/LegacySvgIcon.d.ts +3 -0
  257. package/build/typescript/SvgIcon/LegacySvgIconProps.d.ts +35 -0
  258. package/build/typescript/SvgIcon/SvgIconProps.d.ts +17 -6
  259. package/build/typescript/SvgIcon/index.d.ts +2 -2
  260. package/build/typescript/Toggle/Toggle.d.ts +3 -0
  261. package/build/typescript/Toggle/ToggleProps.d.ts +19 -0
  262. package/build/typescript/Toggle/index.d.ts +2 -0
  263. package/build/typescript/Typography/LegacyTypography.d.ts +5 -0
  264. package/build/typescript/Typography/LegacyTypographyProps.d.ts +81 -0
  265. package/build/typescript/Typography/Typography.d.ts +1 -1
  266. package/build/typescript/Typography/TypographyProps.d.ts +12 -9
  267. package/build/typescript/Typography/index.d.ts +2 -2
  268. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +1 -0
  269. package/build/typescript/index.d.ts +8 -0
  270. package/build/typescript/internal/icons/Check.d.ts +8 -0
  271. package/build/typescript/internal/icons/Checkbox.d.ts +2 -124
  272. package/build/typescript/internal/icons/CheckboxChecked.d.ts +2 -124
  273. package/build/typescript/internal/icons/CheckboxOn.d.ts +8 -0
  274. package/build/typescript/internal/icons/ChevronDown.d.ts +2 -124
  275. package/build/typescript/internal/icons/ChevronLeft.d.ts +2 -124
  276. package/build/typescript/internal/icons/ChevronRight.d.ts +2 -124
  277. package/build/typescript/internal/icons/Close.d.ts +2 -124
  278. package/build/typescript/internal/icons/Radio.d.ts +2 -124
  279. package/build/typescript/internal/icons/RadioChecked.d.ts +2 -124
  280. package/build/typescript/internal/icons/index.d.ts +2 -0
  281. package/build/typescript/styles/createFontStyle.d.ts +1 -1
  282. package/build/typescript/utils/cloneElementSafely.d.ts +1 -2
  283. package/build/typescript/utils/createSvgIcon.d.ts +8 -3
  284. package/build/typescript/utils/index.d.ts +1 -0
  285. package/package.json +2 -2
  286. package/src/Button/Button.tsx +53 -71
  287. package/src/Button/ButtonProps.ts +29 -12
  288. package/src/Button/LegacyButton.tsx +157 -0
  289. package/src/Button/LegacyButtonProps.ts +62 -0
  290. package/src/Button/index.ts +2 -2
  291. package/src/Button/useVariantStyleMap.ts +99 -0
  292. package/src/ButtonSet/ButtonSet.tsx +43 -0
  293. package/src/ButtonSet/ButtonSetProps.ts +27 -0
  294. package/src/ButtonSet/index.ts +3 -0
  295. package/src/ButtonSet/useVariantStyleMap.ts +84 -0
  296. package/src/Checkbox/Checkbox.tsx +48 -33
  297. package/src/Checkbox/CheckboxProps.ts +10 -15
  298. package/src/Checkbox/LegacyCheckbox.tsx +62 -0
  299. package/src/Checkbox/LegacyCheckboxProps.ts +42 -0
  300. package/src/Checkbox/index.ts +2 -2
  301. package/src/Checkbox/useVariantStyleMap.ts +71 -0
  302. package/src/CheckboxGroup/CheckboxGroup.tsx +47 -0
  303. package/src/CheckboxGroup/CheckboxGroupProps.ts +11 -0
  304. package/src/CheckboxGroup/index.ts +2 -0
  305. package/src/IconButton/IconButton.tsx +36 -54
  306. package/src/IconButton/IconButtonProps.ts +12 -12
  307. package/src/IconButton/LegacyIconButton.tsx +96 -0
  308. package/src/IconButton/LegacyIconButtonProps.ts +31 -0
  309. package/src/IconButton/index.ts +2 -2
  310. package/src/Radio/LegacyRadio.tsx +72 -0
  311. package/src/Radio/LegacyRadioProps.ts +50 -0
  312. package/src/Radio/Radio.tsx +47 -16
  313. package/src/Radio/RadioProps.ts +10 -16
  314. package/src/Radio/index.ts +2 -2
  315. package/src/RadioGroup/LegacyRadioGroup.tsx +20 -0
  316. package/src/RadioGroup/RadioGroup.tsx +31 -4
  317. package/src/RadioGroup/index.ts +2 -2
  318. package/src/ShadowView/ShadowView.native.tsx +37 -0
  319. package/src/ShadowView/ShadowView.tsx +33 -0
  320. package/src/ShadowView/ShadowViewProps.ts +11 -0
  321. package/src/ShadowView/index.ts +2 -0
  322. package/src/SvgIcon/LegacySvgIcon.tsx +36 -0
  323. package/src/SvgIcon/LegacySvgIconProps.ts +41 -0
  324. package/src/SvgIcon/SvgIcon.tsx +19 -5
  325. package/src/SvgIcon/SvgIconProps.ts +33 -6
  326. package/src/SvgIcon/index.ts +2 -2
  327. package/src/Toggle/Toggle.tsx +113 -0
  328. package/src/Toggle/ToggleProps.ts +21 -0
  329. package/src/Toggle/index.ts +2 -0
  330. package/src/Typography/LegacyTypography.tsx +107 -0
  331. package/src/Typography/LegacyTypographyProps.ts +122 -0
  332. package/src/Typography/Typography.tsx +24 -30
  333. package/src/Typography/TypographyProps.ts +29 -34
  334. package/src/Typography/index.ts +2 -2
  335. package/src/hooks/useCollapsibleAppBar.ts +12 -2
  336. package/src/index.ts +12 -0
  337. package/src/internal/icons/Check.tsx +13 -0
  338. package/src/internal/icons/CheckboxOn.tsx +13 -0
  339. package/src/internal/icons/index.ts +2 -0
  340. package/src/styles/createFontStyle.ts +1 -1
  341. package/src/utils/cloneElementSafely.ts +1 -1
  342. package/src/utils/createSvgIcon.tsx +29 -6
  343. 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 buttonStyleMap: buttonStyleMap[color] ?? [],\n };\n }, [theme, variant, color]);\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAsBe,SAASA,kBAAT,CAA4BC,OAA5B,EAAuDC,KAAvD,EAA+G;EAC1H,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO,IAAAC,cAAA,EAAQ,MAAM;IACjB,MAAMC,eAAsC,GAAG;MAC3CC,UAAU,EAAE;QACRC,cAAc,EAAE;UACZC,aAAa,EAAE,KADH;UAEZC,GAAG,EAAEP,KAAK,CAACQ,OAAN,CAAc,CAAd,CAFO;UAGZC,eAAe,EAAET,KAAK,CAACQ,OAAN,CAAc,CAAd;QAHL,CADR;QAMRE,cAAc,EAAE;UACZC,MAAM,EAAE,CACJ;YAAEZ,KAAK,EAAE,SAAT;YAAoBD,OAAO,EAAE;UAA7B,CADI,EAEJ;YAAEC,KAAK,EAAE,QAAT;YAAmBD,OAAO,EAAE;UAA5B,CAFI,CADI;UAKZc,MAAM,EAAE,CACJ;YAAEb,KAAK,EAAE,SAAT;YAAoBD,OAAO,EAAE;UAA7B,CADI,EAEJ;YAAEC,KAAK,EAAE,QAAT;YAAmBD,OAAO,EAAE;UAA5B,CAFI;QALI;MANR,CAD+B;MAkB3Ce,QAAQ,EAAE;QACNR,cAAc,EAAE;UACZC,aAAa,EAAE,QADH;UAEZC,GAAG,EAAEP,KAAK,CAACQ,OAAN,CAAc,GAAd,CAFO;UAGZM,UAAU,EAAEd,KAAK,CAACQ,OAAN,CAAc,CAAd;QAHA,CADV;QAMNE,cAAc,EAAE;UACZC,MAAM,EAAE,CACJ;YAAEZ,KAAK,EAAE,QAAT;YAAmBD,OAAO,EAAE;UAA5B,CADI,EAEJ;YAAEC,KAAK,EAAE,WAAT;YAAsBD,OAAO,EAAE;UAA/B,CAFI,CADI;UAKZc,MAAM,EAAE,CACJ;YAAEb,KAAK,EAAE,QAAT;YAAmBD,OAAO,EAAE;UAA5B,CADI,EAEJ;YAAEC,KAAK,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"}