@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
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["TypographyProps.ts"],"sourcesContent":["import React from 'react';\nimport type { AccessibilityProps, TextProps } from 'react-native';\nimport type { ComponentProps } from '../types';\n\nexport type TypographyAlign = 'inherit' | 'left' | 'center' | 'right' | 'justify';\n\nexport type TypographyColor =\n | 'inherit'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'warning'\n | 'error'\n | 'accent'\n | 'textPrimary'\n | 'textSecondary'\n | 'textAccent'\n | 'textHint';\n\nexport type TypographyVariant =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'subtitle1'\n | 'subtitle2'\n | 'body1'\n | 'body2'\n | 'caption1'\n | 'caption2'\n | 'flag'\n | 'button1'\n | 'button2';\n\nexport interface Accessibility {\n accessibilityRole: AccessibilityProps['accessibilityRole'];\n 'area-level'?: number;\n}\n\nexport interface AccessibilityMap extends Partial<{\n [key: string]: Accessibility;\n}> {}\n\nexport default interface TypographyProps extends ComponentProps<{\n /**\n * Applies HTML tag at web and communicates purpose of component at app\n */\n accessibilityRole?: AccessibilityProps['accessibilityRole'];\n\n /**\n * Set the text-align on the component.\n * The value 'justify' is not supported on Android and fallbacks to left.\n * @default 'inherit'\n */\n align?: TypographyAlign;\n\n /**\n * Applies HTML heading level\n */\n ariaLevel?: number;\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings.\n * @default false\n */\n disableFontScaling?: boolean;\n\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'inherit'\n */\n color?: TypographyColor;\n\n /**\n * The text ellipsis mode.\n * @default 'tail'\n */\n ellipsizeMode?: TextProps['ellipsizeMode'];\n\n /**\n * Internal use only. The hyperlink of the text.\n */\n href?: string;\n\n /**\n * Used to truncate the text with an ellipsis after computing the text\n * layout, including line wrapping, such that the total number of lines\n * does not exceed this number.\n */\n numberOfLines?: TextProps['numberOfLines'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n onPress?: TextProps['onPress'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n selectable?: boolean;\n\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant?: TypographyVariant;\n\n\n /**\n * Callback that is called when the text layout has been calculated.\n */\n onTextLayout?: TextProps['onTextLayout'];\n\n /**\n * Callback that is called when the layout of the Text component changes.\n */\n onLayout?: TextProps['onLayout'];\n}> {}\n"],"mappings":""}
1
+ {"version":3,"names":["typographyColors"],"sources":["TypographyProps.ts"],"sourcesContent":["import React from 'react';\nimport type { AccessibilityProps, TextProps, TextStyle } from 'react-native';\nimport type { FontVariant, FontWeight } from '@fountain-ui/styles';\nimport type { ComponentProps } from '../types';\n\nexport type TypographyAlign = 'inherit' | TextStyle['textAlign'];\n\nexport const typographyColors = [\n 'inherit',\n 'accent',\n 'accentAlt',\n 'strong',\n 'strongInverse',\n 'base',\n 'baseInverse',\n 'baseOpacity',\n 'baseOpacityInverse',\n 'weak',\n 'weakOpacity',\n 'weakInverse',\n 'weakOpacityInverse',\n] as const;\n\nexport type TypographyColor = typeof typographyColors[number];\n\nexport interface Accessibility {\n accessibilityRole: AccessibilityProps['accessibilityRole'];\n 'area-level'?: number;\n}\n\nexport type AccessibilityMap = Partial<Record<FontVariant, Accessibility>>;\n\nexport default interface TypographyProps extends ComponentProps<{\n /**\n * Applies HTML tag at web and communicates purpose of component at app\n */\n accessibilityRole?: AccessibilityProps['accessibilityRole'];\n\n /**\n * Set the text-align on the component.\n * The value 'justify' is not supported on Android and fallbacks to left.\n * @default 'inherit'\n */\n align?: TypographyAlign;\n\n /**\n * Applies HTML heading level\n */\n ariaLevel?: number;\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings.\n * @default false\n */\n disableFontScaling?: boolean;\n\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'inherit'\n */\n color?: TypographyColor;\n\n /**\n * The text ellipsis mode.\n * @default 'tail'\n */\n ellipsizeMode?: TextProps['ellipsizeMode'];\n\n /**\n * Internal use only. The hyperlink of the text.\n */\n href?: string;\n\n /**\n * Used to truncate the text with an ellipsis after computing the text\n * layout, including line wrapping, such that the total number of lines\n * does not exceed this number.\n */\n numberOfLines?: TextProps['numberOfLines'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n onPress?: TextProps['onPress'];\n\n /**\n * Lets the user select text, to use the native copy and paste functionality.\n */\n selectable?: boolean;\n\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant?: FontVariant;\n\n /**\n * Determines the font weight.\n * @default 'medium'\n */\n weight?: FontWeight;\n\n /**\n * Callback that is called when the text layout has been calculated.\n */\n onTextLayout?: TextProps['onTextLayout'];\n\n /**\n * Callback that is called when the layout of the Text component changes.\n */\n onLayout?: TextProps['onLayout'];\n}> {}\n"],"mappings":"AAOA,OAAO,MAAMA,gBAAgB,GAAG,CAC5B,SAD4B,EAE5B,QAF4B,EAG5B,WAH4B,EAI5B,QAJ4B,EAK5B,eAL4B,EAM5B,MAN4B,EAO5B,aAP4B,EAQ5B,aAR4B,EAS5B,oBAT4B,EAU5B,MAV4B,EAW5B,aAX4B,EAY5B,aAZ4B,EAa5B,oBAb4B,CAAzB"}
@@ -1,2 +1,2 @@
1
- export { default } from './Typography';
1
+ export { default } from './LegacyTypography';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Typography';\nexport type { default as TypographyProps } from './TypographyProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB"}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './LegacyTypography';\nexport type { default as TypographyProps } from './LegacyTypographyProps';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,oBAAxB"}
@@ -1,4 +1,4 @@
1
- import { useCallback, useRef } from 'react';
1
+ import { useCallback, useRef, useState } from 'react';
2
2
  import { Keyboard, Platform, StyleSheet } from 'react-native';
3
3
  import { runOnJS, useAnimatedScrollHandler, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming } from 'react-native-reanimated';
4
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -36,6 +36,7 @@ export default function useCollapsibleAppBar() {
36
36
  const lastTranslateY = useSharedValue(0);
37
37
  const lastOffsetY = useSharedValue(0);
38
38
  const overlapped = useSharedValue(false);
39
+ const [isScrolled, setIsScrolled] = useState(false);
39
40
  const theme = useTheme();
40
41
  const animatedStyle = useAnimatedStyle(() => {
41
42
  const transform = [{
@@ -80,6 +81,13 @@ export default function useCollapsibleAppBar() {
80
81
  },
81
82
  onScroll: event => {
82
83
  const offsetY = event.contentOffset.y;
84
+
85
+ if (!isScrolled && offsetY > 0) {
86
+ runOnJS(setIsScrolled)(true);
87
+ } else if (isScrolled && offsetY <= 0) {
88
+ runOnJS(setIsScrolled)(false);
89
+ }
90
+
83
91
  const maxTy = maxTranslateY.value;
84
92
 
85
93
  if (SUPPORTS_DRAG_DETECTION) {
@@ -117,7 +125,7 @@ export default function useCollapsibleAppBar() {
117
125
  overlapped.value = offsetY + nextTranslateY > 0;
118
126
  translateY.value = withTiming(nextTranslateY, ANIMATION_CONFIG);
119
127
  }
120
- }, [keyboardDismissMode, appBarHeight]);
128
+ }, [keyboardDismissMode, appBarHeight, isScrolled]);
121
129
  const hasCollapsible = collapsibleToolbarHeight > 0;
122
130
  const appBarStyle = [animatedStyle, {
123
131
  paddingTop: safeAreaInsets.top
@@ -130,7 +138,8 @@ export default function useCollapsibleAppBar() {
130
138
  onScrollViewChanged,
131
139
  scrollContentInsets: {
132
140
  top: hasCollapsible ? appBarHeight : 0
133
- }
141
+ },
142
+ isScrolled
134
143
  };
135
144
  }
136
145
  ;
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useRef","Keyboard","Platform","StyleSheet","runOnJS","useAnimatedScrollHandler","useAnimatedStyle","useDerivedValue","useSharedValue","withTiming","useSafeAreaInsets","useTheme","useHeight","useAppbarStyles","defaultOptions","keyboardDismissMode","dividerExposureMode","supportsReverseScroll","ANIMATION_CONFIG","duration","TRANSPARENT","SUPPORTS_DRAG_DETECTION","OS","dismissKeyboard","dismiss","useCollapsibleAppBar","userOptions","styles","safeAreaInsets","appBarHeight","onAppBarLayout","collapsibleToolbarHeight","onCollapsibleToolbarLayout","maxTranslateY","translateY","lastTranslateY","lastOffsetY","overlapped","theme","animatedStyle","transform","value","borderColor","palette","divider","borderBottomWidth","hairlineWidth","indexRef","offsetsRef","onScrollViewChanged","nextIndex","prevIndex","current","savedOffsetY","scrollHandler","onBeginDrag","onMomentumBegin","onScroll","event","offsetY","contentOffset","y","maxTy","dy","Math","min","max","minOffsetY","maxOffsetY","contentSize","height","layoutMeasurement","safeOffsetY","safeLastOffsetY","newTranslateY","onEndDrag","onMomentumEnd","ty","threshold","nextTranslateY","hasCollapsible","appBarStyle","paddingTop","top","floating","undefined","scrollContentInsets"],"sources":["useCollapsibleAppBar.ts"],"sourcesContent":["import { useCallback, useRef } from 'react';\nimport {\n Falsy,\n Keyboard,\n Platform,\n RegisteredStyle,\n ScrollViewProps,\n StyleSheet,\n ViewProps,\n ViewStyle,\n} from 'react-native';\nimport type { WithTimingConfig } from 'react-native-reanimated';\nimport {\n runOnJS,\n useAnimatedScrollHandler,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { useTheme } from '@fountain-ui/styles';\nimport { useHeight } from '../internal/hooks';\nimport useAppbarStyles from './useAppbarStyles';\n\ntype WebOnlyStyle = { boxShadow: any };\n\ntype ViewStyleProp = Array<ViewStyle | RegisteredStyle<ViewStyle> | WebOnlyStyle | Falsy>;\n\ntype OnScroll = ScrollViewProps['onScroll'];\n\ntype OnLayoutCallback = ViewProps['onLayout'];\n\nexport interface ContentInsets {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n}\n\nexport interface Options {\n keyboardDismissMode?: 'none' | 'on-drag';\n dividerExposureMode?: 'always' | 'overlapped';\n supportsReverseScroll?: boolean;\n}\n\nexport interface CollapsibleAppBar {\n appBarStyle: ViewStyleProp;\n onAppBarLayout: OnLayoutCallback;\n onCollapsibleToolbarLayout: OnLayoutCallback;\n onScroll: OnScroll;\n onScrollViewChanged: (index: number) => void;\n scrollContentInsets: ContentInsets;\n}\n\nconst defaultOptions: Required<Options> = {\n keyboardDismissMode: 'none',\n dividerExposureMode: 'overlapped',\n supportsReverseScroll: true,\n};\n\nconst ANIMATION_CONFIG: Readonly<WithTimingConfig> = { duration: 100 };\nconst TRANSPARENT = '#FFFFFF00';\n\nconst SUPPORTS_DRAG_DETECTION = Platform.OS !== 'web';\nconst dismissKeyboard = () => Keyboard.dismiss();\n\nexport default function useCollapsibleAppBar(userOptions: Options = defaultOptions): CollapsibleAppBar {\n const { keyboardDismissMode, dividerExposureMode, supportsReverseScroll }: Required<Options> = {\n ...defaultOptions,\n ...userOptions,\n };\n\n const styles = useAppbarStyles();\n\n const safeAreaInsets = useSafeAreaInsets();\n\n const [appBarHeight, onAppBarLayout] = useHeight();\n const [collapsibleToolbarHeight, onCollapsibleToolbarLayout] = useHeight();\n\n const maxTranslateY = useDerivedValue(() => -collapsibleToolbarHeight, [collapsibleToolbarHeight]);\n\n const translateY = useSharedValue<number>(0);\n const lastTranslateY = useSharedValue<number>(0);\n const lastOffsetY = useSharedValue<number>(0);\n const overlapped = useSharedValue<boolean>(false);\n\n const theme = useTheme();\n\n const animatedStyle = useAnimatedStyle(() => {\n const transform = [{ translateY: translateY.value }];\n\n return {\n transform,\n borderColor: dividerExposureMode === 'always' || overlapped.value ? theme.palette.divider : TRANSPARENT,\n borderBottomWidth: StyleSheet.hairlineWidth,\n };\n }, [\n theme,\n dividerExposureMode,\n ]);\n\n const indexRef = useRef<number>(0);\n const offsetsRef = useRef<Array<number>>([]);\n\n const onScrollViewChanged = useCallback((nextIndex: number) => {\n const prevIndex = indexRef.current;\n if (prevIndex === nextIndex) {\n return;\n }\n\n offsetsRef.current[prevIndex] = lastOffsetY.value;\n\n const savedOffsetY = offsetsRef.current[nextIndex] ?? 0;\n lastOffsetY.value = savedOffsetY;\n\n indexRef.current = nextIndex;\n\n // Determine whether to overlap every time index is changed.\n overlapped.value = savedOffsetY > 0;\n\n // If next ScrollView's offset is too short, expand app bar.\n if (translateY.value < 0 && savedOffsetY < appBarHeight) {\n translateY.value = withTiming(0, ANIMATION_CONFIG);\n }\n }, [appBarHeight]);\n\n const scrollHandler = useAnimatedScrollHandler({\n onBeginDrag: () => {\n if (keyboardDismissMode === 'on-drag') {\n runOnJS(dismissKeyboard)();\n }\n lastTranslateY.value = translateY.value;\n },\n onMomentumBegin: () => {\n lastTranslateY.value = translateY.value;\n },\n onScroll: (event) => {\n const offsetY = event.contentOffset.y;\n\n const maxTy = maxTranslateY.value;\n\n if (SUPPORTS_DRAG_DETECTION) {\n const dy = offsetY - lastOffsetY.value;\n\n translateY.value = offsetY <= 0 ? 0 : Math.min(Math.max(lastTranslateY.value - dy, maxTy), 0);\n\n overlapped.value = offsetY + translateY.value > 0;\n } else {\n const minOffsetY = -maxTy;\n const maxOffsetY = event.contentSize.height - event.layoutMeasurement.height;\n\n const safeOffsetY = Math.min(Math.max(offsetY, minOffsetY), maxOffsetY);\n const safeLastOffsetY = Math.min(Math.max(lastOffsetY.value, minOffsetY), maxOffsetY);\n const dy = safeOffsetY - safeLastOffsetY;\n\n const newTranslateY = supportsReverseScroll\n ? dy === 0\n ? lastTranslateY.value\n : dy > 0\n ? maxTy\n : 0\n : safeLastOffsetY === minOffsetY\n ? 0\n : maxTy;\n\n translateY.value = withTiming(newTranslateY, ANIMATION_CONFIG);\n lastTranslateY.value = newTranslateY;\n\n overlapped.value = offsetY > 0;\n\n lastOffsetY.value = offsetY;\n }\n },\n onEndDrag: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n onMomentumEnd: (event) => {\n const offsetY = event.contentOffset.y;\n\n lastOffsetY.value = offsetY;\n\n const ty = translateY.value;\n const maxTy = maxTranslateY.value;\n\n // If toolbar is already positioned on edge, do nothing.\n if (ty <= maxTy || ty >= 0) {\n return;\n }\n\n const threshold = maxTy * 0.5;\n\n const nextTranslateY = (ty > threshold || offsetY < appBarHeight) ? 0 : maxTy;\n\n overlapped.value = offsetY + nextTranslateY > 0;\n\n translateY.value = withTiming(nextTranslateY, ANIMATION_CONFIG);\n },\n }, [keyboardDismissMode, appBarHeight]);\n\n const hasCollapsible = collapsibleToolbarHeight > 0;\n\n const appBarStyle = [\n animatedStyle,\n { paddingTop: safeAreaInsets.top },\n hasCollapsible ? styles.floating : undefined,\n ];\n\n return {\n appBarStyle,\n onAppBarLayout,\n onCollapsibleToolbarLayout,\n onScroll: scrollHandler,\n onScrollViewChanged,\n scrollContentInsets: { top: hasCollapsible ? appBarHeight : 0 },\n };\n};\n"],"mappings":"AAAA,SAASA,WAAT,EAAsBC,MAAtB,QAAoC,OAApC;AACA,SAEIC,QAFJ,EAGIC,QAHJ,EAMIC,UANJ,QASO,cATP;AAWA,SACIC,OADJ,EAEIC,wBAFJ,EAGIC,gBAHJ,EAIIC,eAJJ,EAKIC,cALJ,EAMIC,UANJ,QAOO,yBAPP;AAQA,SAASC,iBAAT,QAAkC,gCAAlC;AACA,SAASC,QAAT,QAAyB,qBAAzB;AACA,SAASC,SAAT,QAA0B,mBAA1B;AACA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AG,CAChB1C,aADgB,EAEhB;IAAE2C,UAAU,EAAEtD,cAAc,CAACuD;EAA7B,CAFgB,EAGhBH,cAAc,GAAGrD,MAAM,CAACyD,QAAV,GAAqBC,SAHnB,CAApB;EAMA,OAAO;IACHJ,WADG;IAEHnD,cAFG;IAGHE,0BAHG;IAIHyB,QAAQ,EAAEH,aAJP;IAKHL,mBALG;IAMHqC,mBAAmB,EAAE;MAAEH,GAAG,EAAEH,cAAc,GAAGnD,YAAH,GAAkB;IAAvC;EANlB,CAAP;AAQH;AAAA"}
1
+ {"version":3,"names":["useCallback","useRef","useState","Keyboard","Platform","StyleSheet","runOnJS","useAnimatedScrollHandler","useAnimatedStyle","useDerivedValue","useSharedValue","withTiming","useSafeAreaInsets","useTheme","useHeight","useAppbarStyles","defaultOptions","keyboardDismissMode","dividerExposureMode","supportsReverseScroll","ANIMATION_CONFIG","duration","TRANSPARENT","SUPPORTS_DRAG_DETECTION","OS","dismissKeyboard","dismiss","useCollapsibleAppBar","userOptions","styles","safeAreaInsets","appBarHeight","onAppBarLayout","collapsibleToolbarHeight","onCollapsibleToolbarLayout","maxTranslateY","translateY","lastTranslateY","lastOffsetY","overlapped","isScrolled","setIsScrolled","theme","animatedStyle","transform","value","borderColor","palette","divider","borderBottomWidth","hairlineWidth","indexRef","offsetsRef","onScrollViewChanged","nextIndex","prevIndex","current","savedOffsetY","scrollHandler","onBeginDrag","onMomentumBegin","onScroll","event","offsetY","contentOffset","y","maxTy","dy","Math","min","max","minOffsetY","maxOffsetY","contentSize","height","layoutMeasurement","safeOffsetY","safeLastOffsetY","newTranslateY","onEndDrag","onMomentumEnd","ty","threshold","nextTranslateY","hasCollapsible","appBarStyle","paddingTop","top","floating","undefined","scrollContentInsets"],"sources":["useCollapsibleAppBar.ts"],"sourcesContent":["import { useCallback, useRef, useState } from 'react';\nimport {\n Falsy,\n Keyboard,\n Platform,\n RegisteredStyle,\n ScrollViewProps,\n StyleSheet,\n ViewProps,\n ViewStyle,\n} from 'react-native';\nimport type { WithTimingConfig } from 'react-native-reanimated';\nimport {\n runOnJS,\n useAnimatedScrollHandler,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { useTheme } from '@fountain-ui/styles';\nimport { useHeight } from '../internal/hooks';\nimport useAppbarStyles from './useAppbarStyles';\n\ntype WebOnlyStyle = { boxShadow: any };\n\ntype ViewStyleProp = Array<ViewStyle | RegisteredStyle<ViewStyle> | WebOnlyStyle | Falsy>;\n\ntype OnScroll = ScrollViewProps['onScroll'];\n\ntype OnLayoutCallback = ViewProps['onLayout'];\n\nexport interface ContentInsets {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n}\n\nexport interface Options {\n keyboardDismissMode?: 'none' | 'on-drag';\n dividerExposureMode?: 'always' | 'overlapped';\n supportsReverseScroll?: boolean;\n}\n\nexport interface CollapsibleAppBar {\n appBarStyle: ViewStyleProp;\n onAppBarLayout: OnLayoutCallback;\n onCollapsibleToolbarLayout: OnLayoutCallback;\n onScroll: OnScroll;\n onScrollViewChanged: (index: number) => void;\n scrollContentInsets: ContentInsets;\n isScrolled: boolean;\n}\n\nconst defaultOptions: Required<Options> = {\n keyboardDismissMode: 'none',\n dividerExposureMode: 'overlapped',\n supportsReverseScroll: true,\n};\n\nconst ANIMATION_CONFIG: Readonly<WithTimingConfig> = { duration: 100 };\nconst TRANSPARENT = '#FFFFFF00';\n\nconst SUPPORTS_DRAG_DETECTION = Platform.OS !== 'web';\nconst dismissKeyboard = () => Keyboard.dismiss();\n\nexport default function useCollapsibleAppBar(userOptions: Options = defaultOptions): CollapsibleAppBar {\n const { keyboardDismissMode, dividerExposureMode, supportsReverseScroll }: Required<Options> = {\n ...defaultOptions,\n ...userOptions,\n };\n\n const styles = useAppbarStyles();\n\n const safeAreaInsets = useSafeAreaInsets();\n\n const [appBarHeight, onAppBarLayout] = useHeight();\n const [collapsibleToolbarHeight, onCollapsibleToolbarLayout] = useHeight();\n\n const maxTranslateY = useDerivedValue(() => -collapsibleToolbarHeight, [collapsibleToolbarHeight]);\n\n const translateY = useSharedValue<number>(0);\n const lastTranslateY = useSharedValue<number>(0);\n const lastOffsetY = useSharedValue<number>(0);\n const overlapped = useSharedValue<boolean>(false);\n\n const [isScrolled, setIsScrolled] = useState<boolean>(false);\n\n const theme = useTheme();\n\n const animatedStyle = useAnimatedStyle(() => {\n const transform = [{ translateY: translateY.value }];\n\n return {\n transform,\n borderColor: dividerExposureMode === 'always' || overlapped.value ? theme.palette.divider : TRANSPARENT,\n borderBottomWidth: StyleSheet.hairlineWidth,\n };\n }, [\n theme,\n dividerExposureMode,\n ]);\n\n const indexRef = useRef<number>(0);\n const offsetsRef = useRef<Array<number>>([]);\n\n const onScrollViewChanged = useCallback((nextIndex: number) => {\n const prevIndex = indexRef.current;\n if (prevIndex === nextIndex) {\n return;\n }\n\n offsetsRef.current[prevIndex] = lastOffsetY.value;\n\n const savedOffsetY = offsetsRef.current[nextIndex] ?? 0;\n lastOffsetY.value = savedOffsetY;\n\n indexRef.current = nextIndex;\n\n // Determine whether to overlap every time index is changed.\n overlapped.value = savedOffsetY > 0;\n\n // If next ScrollView's offset is too short, expand app bar.\n if (translateY.value < 0 && savedOffsetY < appBarHeight) {\n translateY.value = withTiming(0, ANIMATION_CONFIG);\n }\n }, [appBarHeight]);\n\n const scrollHandler = useAnimatedScrollHandler({\n onBeginDrag: () => {\n if (keyboardDismissMode === 'on-drag') {\n runOnJS(dismissKeyboard)();\n }\n lastTranslateY.value = translateY.value;\n },\n onMomentumBegin: () => {\n lastTranslateY.value = translateY.value;\n },\n onScroll: (event) => {\n const offsetY = event.contentOffset.y;\n\n if (!isScrolled && offsetY > 0) {\n runOnJS(setIsScrolled)(true);\n } else if (isScrolled && offsetY <= 0) {\n runOnJS(setIsScrolled)(false);\n }\n\n const maxTy = maxTranslateY.value;\n\n if (SUPPORTS_DRAG_DETECTION) {\n const dy = offsetY - lastOffsetY.value;\n\n translateY.value = offsetY <= 0 ? 0 : Math.min(Math.max(lastTranslateY.value - dy, maxTy), 0);\n\n overlapped.value = offsetY + translateY.value > 0;\n } else {\n const minOffsetY = -maxTy;\n const maxOffsetY = event.contentSize.height - event.layoutMeasurement.height;\n\n const safeOffsetY = Math.min(Math.max(offsetY, minOffsetY), maxOffsetY);\n const safeLastOffsetY = Math.min(Math.max(lastOffsetY.value, minOffsetY), maxOffsetY);\n const dy = safeOffsetY - safeLastOffsetY;\n\n const newTranslateY = supportsReverseScroll\n ? dy === 0\n ? lastTranslateY.value\n : dy > 0\n ? maxTy\n : 0\n : safeLastOffsetY === minOffsetY\n ? 0\n : maxTy;\n\n translateY.value = withTiming(newTranslateY, ANIMATION_CONFIG);\n lastTranslateY.value = newTranslateY;\n\n overlapped.value = offsetY > 0;\n\n lastOffsetY.value = offsetY;\n }\n },\n onEndDrag: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n onMomentumEnd: (event) => {\n const offsetY = event.contentOffset.y;\n\n lastOffsetY.value = offsetY;\n\n const ty = translateY.value;\n const maxTy = maxTranslateY.value;\n\n // If toolbar is already positioned on edge, do nothing.\n if (ty <= maxTy || ty >= 0) {\n return;\n }\n\n const threshold = maxTy * 0.5;\n\n const nextTranslateY = (ty > threshold || offsetY < appBarHeight) ? 0 : maxTy;\n\n overlapped.value = offsetY + nextTranslateY > 0;\n\n translateY.value = withTiming(nextTranslateY, ANIMATION_CONFIG);\n },\n }, [keyboardDismissMode, appBarHeight, isScrolled]);\n\n const hasCollapsible = collapsibleToolbarHeight > 0;\n\n const appBarStyle = [\n animatedStyle,\n { paddingTop: safeAreaInsets.top },\n hasCollapsible ? styles.floating : undefined,\n ];\n\n return {\n appBarStyle,\n onAppBarLayout,\n onCollapsibleToolbarLayout,\n onScroll: scrollHandler,\n onScrollViewChanged,\n scrollContentInsets: { top: hasCollapsible ? appBarHeight : 0 },\n isScrolled,\n };\n};\n"],"mappings":"AAAA,SAASA,WA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GAAG7C,UAAU,CAACS,KAAtB;MACA,MAAMqB,KAAK,GAAG/B,aAAa,CAACU,KAA5B,CANsB,CAQtB;;MACA,IAAIoC,EAAE,IAAIf,KAAN,IAAee,EAAE,IAAI,CAAzB,EAA4B;QACxB;MACH;;MAED,MAAMC,SAAS,GAAGhB,KAAK,GAAG,GAA1B;MAEA,MAAMiB,cAAc,GAAIF,EAAE,GAAGC,SAAL,IAAkBnB,OAAO,GAAGhC,YAA7B,GAA6C,CAA7C,GAAiDmC,KAAxE;MAEA3B,UAAU,CAACM,KAAX,GAAmBkB,OAAO,GAAGoB,cAAV,GAA2B,CAA9C;MAEA/C,UAAU,CAACS,KAAX,GAAmBlC,UAAU,CAACwE,cAAD,EAAiB/D,gBAAjB,CAA7B;IACH;EA5E0C,CAAD,EA6E3C,CAACH,mBAAD,EAAsBc,YAAtB,EAAoCS,UAApC,CA7E2C,CAA9C;EA+EA,MAAM4C,cAAc,GAAGnD,wBAAwB,GAAG,CAAlD;EAEA,MAAMoD,WAAW,GAAG,CAChB1C,aADgB,EAEhB;IAAE2C,UAAU,EAAExD,cAAc,CAACyD;EAA7B,CAFgB,EAGhBH,cAAc,GAAGvD,MAAM,CAAC2D,QAAV,GAAqBC,SAHnB,CAApB;EAMA,OAAO;IACHJ,WADG;IAEHrD,cAFG;IAGHE,0BAHG;IAIH2B,QAAQ,EAAEH,aAJP;IAKHL,mBALG;IAMHqC,mBAAmB,EAAE;MAAEH,GAAG,EAAEH,cAAc,GAAGrD,YAAH,GAAkB;IAAvC,CANlB;IAOHS;EAPG,CAAP;AASH;AAAA"}
@@ -17,6 +17,8 @@ export { default as Button } from './Button';
17
17
  export * from './Button';
18
18
  export { default as ButtonBase } from './ButtonBase';
19
19
  export * from './ButtonBase';
20
+ export { default as ButtonSet } from './ButtonSet';
21
+ export * from './ButtonSet';
20
22
  export { default as Card } from './Card';
21
23
  export * from './Card';
22
24
  export { default as CardActions } from './CardActions';
@@ -27,6 +29,8 @@ export { default as CardMedia } from './CardMedia';
27
29
  export * from './CardMedia';
28
30
  export { default as Checkbox } from './Checkbox';
29
31
  export * from './Checkbox';
32
+ export { default as CheckboxGroup } from './CheckboxGroup';
33
+ export * from './CheckboxGroup';
30
34
  export { default as Chip } from './Chip';
31
35
  export * from './Chip';
32
36
  export { default as CircularProgress } from './CircularProgress';
@@ -86,6 +90,8 @@ export { default as RadioGroup } from './RadioGroup';
86
90
  export * from './RadioGroup';
87
91
  export { default as Row } from './Row';
88
92
  export * from './Row';
93
+ export { default as ShadowView } from './ShadowView';
94
+ export * from './ShadowView';
89
95
  export { default as Slide } from './Slide';
90
96
  export * from './Slide';
91
97
  export { default as Slider } from './Slider';
@@ -108,6 +114,8 @@ export { default as Tabs } from './Tabs';
108
114
  export * from './Tabs';
109
115
  export { default as TextField } from './TextField';
110
116
  export * from './TextField';
117
+ export { default as Toggle } from './Toggle';
118
+ export * from './Toggle';
111
119
  export { default as Toolbar } from './Toolbar';
112
120
  export * from './Toolbar';
113
121
  export { default as Tooltip } from './Tooltip';
@@ -1 +1 @@
1
- {"version":3,"names":["default","Accordion","AppBar","AspectRatio","Avatar","Badge","Button","ButtonBase","Card","CardActions","CardContent","CardMedia","Checkbox","Chip","CircularProgress","Column","Dialog","DialogActions","DialogContent","DialogMedia","DialogTitle","Divider","Fab","IconButton","Image","Link","List","ListItem","ListItemIcon","ListItemSecondaryAction","ListItemText","ListSubheader","Menu","MenuItem","Modal","createModalCloseEvent","Pagination","PaginationItem","Paper","Portal","Radio","RadioGroup","Row","Slide","Slider","Snackbar","SnackbarContent","Spacer","SvgIcon","Switch","Tab","TabBase","Tabs","TextField","Toolbar","Tooltip","Typography"],"sources":["index.ts"],"sourcesContent":["export * from './styles';\n\nexport * from './types';\n\nexport * from './hooks';\n\nexport * from './utils';\n\nexport * from './store';\n\nexport { default as Accordion } from './Accordion';\nexport * from './Accordion';\n\nexport { default as AppBar } from './AppBar';\nexport * from './AppBar';\n\nexport { default as AspectRatio } from './AspectRatio';\nexport * from './AspectRatio';\n\nexport { default as Avatar } from './Avatar';\nexport * from './Avatar';\n\nexport { default as Badge } from './Badge';\nexport * from './Badge';\n\nexport { default as Button } from './Button';\nexport * from './Button';\n\nexport { default as ButtonBase } from './ButtonBase';\nexport * from './ButtonBase';\n\nexport { default as Card } from './Card';\nexport * from './Card';\n\nexport { default as CardActions } from './CardActions';\nexport * from './CardActions';\n\nexport { default as CardContent } from './CardContent';\nexport * from './CardContent';\n\nexport { default as CardMedia } from './CardMedia';\nexport * from './CardMedia';\n\nexport { default as Checkbox } from './Checkbox';\nexport * from './Checkbox';\n\nexport { default as Chip } from './Chip';\nexport * from './Chip';\n\nexport { default as CircularProgress } from './CircularProgress';\nexport * from './CircularProgress';\n\nexport { default as Column } from './Column';\nexport * from './Column';\n\nexport { default as Dialog } from './Dialog';\nexport * from './Dialog';\n\nexport { default as DialogActions } from './DialogActions';\nexport * from './DialogActions';\n\nexport { default as DialogContent } from './DialogContent';\nexport * from './DialogContent';\n\nexport { default as DialogMedia } from './DialogMedia';\nexport * from './DialogMedia';\n\nexport { default as DialogTitle } from './DialogTitle';\nexport * from './DialogTitle';\n\nexport { default as Divider } from './Divider';\nexport * from './Divider';\n\nexport { default as Fab } from './Fab';\nexport * from './Fab';\n\nexport { default as IconButton } from './IconButton';\nexport * from './IconButton';\n\nexport { default as Image } from './Image';\nexport * from './Image';\n\nexport * from './ImageCore';\n\nexport { default as Link } from './Link';\nexport * from './Link';\n\nexport { default as List } from './List';\nexport * from './List';\n\nexport { default as ListItem } from './ListItem';\nexport * from './ListItem';\n\nexport { default as ListItemIcon } from './ListItemIcon';\nexport * from './ListItemIcon';\n\nexport { default as ListItemSecondaryAction } from './ListItemSecondaryAction';\nexport * from './ListItemSecondaryAction';\n\nexport { default as ListItemText } from './ListItemText';\nexport * from './ListItemText';\n\nexport { default as ListSubheader } from './ListSubheader';\nexport * from './ListSubheader';\n\nexport { default as Menu } from './Menu';\nexport * from './Menu';\n\nexport { default as MenuItem } from './MenuItem';\nexport * from './MenuItem';\n\nexport { default as Modal, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport * from './Modal';\n\nexport { default as Pagination } from './Pagination';\nexport * from './Pagination';\n\nexport { default as PaginationItem } from './PaginationItem';\nexport * from './PaginationItem';\n\nexport { default as Paper } from './Paper';\nexport * from './Paper';\n\nexport { default as Portal } from './Portal';\nexport * from './Portal';\n\nexport { default as Radio } from './Radio';\nexport * from './Radio';\n\nexport { default as RadioGroup } from './RadioGroup';\nexport * from './RadioGroup';\n\nexport { default as Row } from './Row';\nexport * from './Row';\n\nexport { default as Slide } from './Slide';\nexport * from './Slide';\n\nexport { default as Slider } from './Slider';\nexport * from './Slider';\n\nexport { default as Snackbar } from './Snackbar';\nexport * from './Snackbar';\n\nexport { default as SnackbarContent } from './SnackbarContent';\nexport * from './SnackbarContent';\n\nexport { default as Spacer } from './Spacer';\nexport * from './Spacer';\n\nexport { default as SvgIcon } from './SvgIcon';\nexport * from './SvgIcon';\n\nexport { default as Switch } from './Switch';\nexport * from './Switch';\n\nexport { default as Tab } from './Tab';\nexport * from './Tab';\n\nexport { default as TabBase } from './TabBase';\nexport * from './TabBase';\n\nexport { default as Tabs } from './Tabs';\nexport * from './Tabs';\n\nexport { default as TextField } from './TextField';\nexport * from './TextField';\n\nexport { default as Toolbar } from './Toolbar';\nexport * from './Toolbar';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as Typography } from './Typography';\nexport * from './Typography';\n\nexport * from './animated';\n"],"mappings":"AAAA,cAAc,UAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,SAASA,OAAO,IAAIC,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASD,OAAO,IAAIE,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;A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ApB,QAA+B,OAA/B;AACA,cAAc,OAAd;AAEA,SAAS1C,OAAO,IAAI2C,KAApB,QAAiC,SAAjC;AACA,cAAc,SAAd;AAEA,SAAS3C,OAAO,IAAI4C,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAAS5C,OAAO,IAAI6C,QAApB,QAAoC,YAApC;AACA,cAAc,YAAd;AAEA,SAAS7C,OAAO,IAAI8C,eAApB,QAA2C,mBAA3C;AACA,cAAc,mBAAd;AAEA,SAAS9C,OAAO,IAAI+C,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAAS/C,OAAO,IAAIgD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAShD,OAAO,IAAIiD,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASjD,OAAO,IAAIkD,GAApB,QAA+B,OAA/B;AACA,cAAc,OAAd;AAEA,SAASlD,OAAO,IAAImD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAASnD,OAAO,IAAIoD,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASpD,OAAO,IAAIqD,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASrD,OAAO,IAAIsD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAStD,OAAO,IAAIuD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAASvD,OAAO,IAAIwD,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,cAAc,YAAd"}
1
+ {"version":3,"names":["default","Accordion","AppBar","AspectRatio","Avatar","Badge","Button","ButtonBase","ButtonSet","Card","CardActions","CardContent","CardMedia","Checkbox","CheckboxGroup","Chip","CircularProgress","Column","Dialog","DialogActions","DialogContent","DialogMedia","DialogTitle","Divider","Fab","IconButton","Image","Link","List","ListItem","ListItemIcon","ListItemSecondaryAction","ListItemText","ListSubheader","Menu","MenuItem","Modal","createModalCloseEvent","Pagination","PaginationItem","Paper","Portal","Radio","RadioGroup","Row","ShadowView","Slide","Slider","Snackbar","SnackbarContent","Spacer","SvgIcon","Switch","Tab","TabBase","Tabs","TextField","Toggle","Toolbar","Tooltip","Typography"],"sources":["index.ts"],"sourcesContent":["export * from './styles';\n\nexport * from './types';\n\nexport * from './hooks';\n\nexport * from './utils';\n\nexport * from './store';\n\nexport { default as Accordion } from './Accordion';\nexport * from './Accordion';\n\nexport { default as AppBar } from './AppBar';\nexport * from './AppBar';\n\nexport { default as AspectRatio } from './AspectRatio';\nexport * from './AspectRatio';\n\nexport { default as Avatar } from './Avatar';\nexport * from './Avatar';\n\nexport { default as Badge } from './Badge';\nexport * from './Badge';\n\nexport { default as Button } from './Button';\nexport * from './Button';\n\nexport { default as ButtonBase } from './ButtonBase';\nexport * from './ButtonBase';\n\nexport { default as ButtonSet } from './ButtonSet';\nexport * from './ButtonSet';\n\nexport { default as Card } from './Card';\nexport * from './Card';\n\nexport { default as CardActions } from './CardActions';\nexport * from './CardActions';\n\nexport { default as CardContent } from './CardContent';\nexport * from './CardContent';\n\nexport { default as CardMedia } from './CardMedia';\nexport * from './CardMedia';\n\nexport { default as Checkbox } from './Checkbox';\nexport * from './Checkbox';\n\nexport { default as CheckboxGroup } from './CheckboxGroup';\nexport * from './CheckboxGroup';\n\nexport { default as Chip } from './Chip';\nexport * from './Chip';\n\nexport { default as CircularProgress } from './CircularProgress';\nexport * from './CircularProgress';\n\nexport { default as Column } from './Column';\nexport * from './Column';\n\nexport { default as Dialog } from './Dialog';\nexport * from './Dialog';\n\nexport { default as DialogActions } from './DialogActions';\nexport * from './DialogActions';\n\nexport { default as DialogContent } from './DialogContent';\nexport * from './DialogContent';\n\nexport { default as DialogMedia } from './DialogMedia';\nexport * from './DialogMedia';\n\nexport { default as DialogTitle } from './DialogTitle';\nexport * from './DialogTitle';\n\nexport { default as Divider } from './Divider';\nexport * from './Divider';\n\nexport { default as Fab } from './Fab';\nexport * from './Fab';\n\nexport { default as IconButton } from './IconButton';\nexport * from './IconButton';\n\nexport { default as Image } from './Image';\nexport * from './Image';\n\nexport * from './ImageCore';\n\nexport { default as Link } from './Link';\nexport * from './Link';\n\nexport { default as List } from './List';\nexport * from './List';\n\nexport { default as ListItem } from './ListItem';\nexport * from './ListItem';\n\nexport { default as ListItemIcon } from './ListItemIcon';\nexport * from './ListItemIcon';\n\nexport { default as ListItemSecondaryAction } from './ListItemSecondaryAction';\nexport * from './ListItemSecondaryAction';\n\nexport { default as ListItemText } from './ListItemText';\nexport * from './ListItemText';\n\nexport { default as ListSubheader } from './ListSubheader';\nexport * from './ListSubheader';\n\nexport { default as Menu } from './Menu';\nexport * from './Menu';\n\nexport { default as MenuItem } from './MenuItem';\nexport * from './MenuItem';\n\nexport { default as Modal, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport * from './Modal';\n\nexport { default as Pagination } from './Pagination';\nexport * from './Pagination';\n\nexport { default as PaginationItem } from './PaginationItem';\nexport * from './PaginationItem';\n\nexport { default as Paper } from './Paper';\nexport * from './Paper';\n\nexport { default as Portal } from './Portal';\nexport * from './Portal';\n\nexport { default as Radio } from './Radio';\nexport * from './Radio';\n\nexport { default as RadioGroup } from './RadioGroup';\nexport * from './RadioGroup';\n\nexport { default as Row } from './Row';\nexport * from './Row';\n\nexport { default as ShadowView } from './ShadowView';\nexport * from './ShadowView';\n\nexport { default as Slide } from './Slide';\nexport * from './Slide';\n\nexport { default as Slider } from './Slider';\nexport * from './Slider';\n\nexport { default as Snackbar } from './Snackbar';\nexport * from './Snackbar';\n\nexport { default as SnackbarContent } from './SnackbarContent';\nexport * from './SnackbarContent';\n\nexport { default as Spacer } from './Spacer';\nexport * from './Spacer';\n\nexport { default as SvgIcon } from './SvgIcon';\nexport * from './SvgIcon';\n\nexport { default as Switch } from './Switch';\nexport * from './Switch';\n\nexport { default as Tab } from './Tab';\nexport * from './Tab';\n\nexport { default as TabBase } from './TabBase';\nexport * from './TabBase';\n\nexport { default as Tabs } from './Tabs';\nexport * from './Tabs';\n\nexport { default as TextField } from './TextField';\nexport * from './TextField';\n\nexport { default as Toggle } from './Toggle';\nexport * from './Toggle';\n\nexport { default as Toolbar } from './Toolbar';\nexport * from './Toolbar';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as Typography } from './Typography';\nexport * from './Typography';\n\nexport * from './animated';\n"],"mappings":"AAAA,cAAc,UAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,SAASA,OAAO,IAAIC,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASD,OAAO,IAAIE,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASH,OAAO,IAAII,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASJ,OAAO,IAAIK,KAApB,QAAiC,SAAjC;AACA,cAAc,SAAd;AAEA,SAASL,OAAO,IAAIM,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASN,OAAO,IAAIO,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,SAASP,OAAO,IAAIQ,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASR,OAAO,IAAIS,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAAST,OAAO,IAAIU,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASV,OAAO,IAAIW,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASX,OAAO,IAAIY,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASZ,OAAO,IAAIa,QAApB,QAAoC,YAApC;AACA,cAAc,YAAd;AAEA,SAASb,OAAO,IAAIc,aAApB,QAAyC,iBAAzC;AACA,cAAc,iBAAd;AAEA,S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A,SAASpD,OAAO,IAAIqD,GAApB,QAA+B,OAA/B;AACA,cAAc,OAAd;AAEA,SAASrD,OAAO,IAAIsD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAStD,OAAO,IAAIuD,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASvD,OAAO,IAAIwD,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASxD,OAAO,IAAIyD,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASzD,OAAO,IAAI0D,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAS1D,OAAO,IAAI2D,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAS3D,OAAO,IAAI4D,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,cAAc,YAAd"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+ export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
+ fillRule: "evenodd",
6
+ clipRule: "evenodd",
7
+ d: "M16.7071 6.29289C17.0976 6.68342 17.0976 7.31658 16.7071 7.70711L6.70711 17.7071C6.31658 18.0976 5.68342 18.0976 5.29289 17.7071L0.292893 12.7071C-0.0976311 12.3166 -0.0976311 11.6834 0.292893 11.2929C0.683417 10.9024 1.31658 10.9024 1.70711 11.2929L6 15.5858L15.2929 6.29289C15.6834 5.90237 16.3166 5.90237 16.7071 6.29289Z"
8
+ }), 'Check', '0 0 17 24');
9
+ //# sourceMappingURL=Check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Path","createSvgIcon"],"sources":["Check.tsx"],"sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.7071 6.29289C17.0976 6.68342 17.0976 7.31658 16.7071 7.70711L6.70711 17.7071C6.31658 18.0976 5.68342 18.0976 5.29289 17.7071L0.292893 12.7071C-0.0976311 12.3166 -0.0976311 11.6834 0.292893 11.2929C0.683417 10.9024 1.31658 10.9024 1.70711 11.2929L6 15.5858L15.2929 6.29289C15.6834 5.90237 16.3166 5.90237 16.7071 6.29289Z\"\n />,\n 'Check',\n '0 0 17 24',\n);\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;EACI,QAAQ,EAAC,SADb;EAEI,QAAQ,EAAC,SAFb;EAGI,CAAC,EAAC;AAHN,EADwB,EAMxB,OANwB,EAOxB,WAPwB,CAA5B"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+ export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
+ fillRule: "evenodd",
6
+ clipRule: "evenodd",
7
+ d: "M11.5374 0.476788C11.8263 0.77356 11.82 1.24839 11.5232 1.53735L5.36106 7.53735C5.07816 7.8128 4.63016 7.82175 4.3365 7.55781L0.998658 4.55781C0.690589 4.28092 0.665312 3.80672 0.942199 3.49865C1.21909 3.19058 1.69329 3.16531 2.00136 3.44219L4.81735 5.97316L10.4768 0.462647C10.7736 0.173685 11.2484 0.180016 11.5374 0.476788Z"
8
+ }), 'CheckboxOn', '0 0 12 8');
9
+ //# sourceMappingURL=CheckboxOn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Path","createSvgIcon"],"sources":["CheckboxOn.tsx"],"sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.5374 0.476788C11.8263 0.77356 11.82 1.24839 11.5232 1.53735L5.36106 7.53735C5.07816 7.8128 4.63016 7.82175 4.3365 7.55781L0.998658 4.55781C0.690589 4.28092 0.665312 3.80672 0.942199 3.49865C1.21909 3.19058 1.69329 3.16531 2.00136 3.44219L4.81735 5.97316L10.4768 0.462647C10.7736 0.173685 11.2484 0.180016 11.5374 0.476788Z\"\n />,\n 'CheckboxOn',\n '0 0 12 8',\n);\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;EACI,QAAQ,EAAC,SADb;EAEI,QAAQ,EAAC,SAFb;EAGI,CAAC,EAAC;AAHN,EADwB,EAMxB,YANwB,EAOxB,UAPwB,CAA5B"}
@@ -1,5 +1,7 @@
1
+ export { default as Check } from './Check';
1
2
  export { default as Checkbox } from './Checkbox';
2
3
  export { default as CheckboxChecked } from './CheckboxChecked';
4
+ export { default as CheckboxOn } from './CheckboxOn';
3
5
  export { default as ChevronDown } from './ChevronDown';
4
6
  export { default as ChevronLeft } from './ChevronLeft';
5
7
  export { default as ChevronRight } from './ChevronRight';
@@ -1 +1 @@
1
- {"version":3,"names":["default","Checkbox","CheckboxChecked","ChevronDown","ChevronLeft","ChevronRight","CircularProgress","Close","Radio","RadioChecked"],"sources":["index.ts"],"sourcesContent":["export { default as Checkbox } from './Checkbox';\nexport { default as CheckboxChecked } from './CheckboxChecked';\nexport { default as ChevronDown } from './ChevronDown';\nexport { default as ChevronLeft } from './ChevronLeft';\nexport { default as ChevronRight } from './ChevronRight';\nexport { default as CircularProgress } from './CircularProgress';\nexport { default as Close } from './Close';\nexport { default as Radio } from './Radio';\nexport { default as RadioChecked } from './RadioChecked';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAApB,QAAoC,YAApC;AACA,SAASD,OAAO,IAAIE,eAApB,QAA2C,mBAA3C;AACA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,SAASH,OAAO,IAAII,WAApB,QAAuC,eAAvC;AACA,SAASJ,OAAO,IAAIK,YAApB,QAAwC,gBAAxC;AACA,SAASL,OAAO,IAAIM,gBAApB,QAA4C,oBAA5C;AACA,SAASN,OAAO,IAAIO,KAApB,QAAiC,SAAjC;AACA,SAASP,OAAO,IAAIQ,KAApB,QAAiC,SAAjC;AACA,SAASR,OAAO,IAAIS,YAApB,QAAwC,gBAAxC"}
1
+ {"version":3,"names":["default","Check","Checkbox","CheckboxChecked","CheckboxOn","ChevronDown","ChevronLeft","ChevronRight","CircularProgress","Close","Radio","RadioChecked"],"sources":["index.ts"],"sourcesContent":["export { default as Check } from './Check';\nexport { default as Checkbox } from './Checkbox';\nexport { default as CheckboxChecked } from './CheckboxChecked';\nexport { default as CheckboxOn } from './CheckboxOn';\nexport { default as ChevronDown } from './ChevronDown';\nexport { default as ChevronLeft } from './ChevronLeft';\nexport { default as ChevronRight } from './ChevronRight';\nexport { default as CircularProgress } from './CircularProgress';\nexport { default as Close } from './Close';\nexport { default as Radio } from './Radio';\nexport { default as RadioChecked } from './RadioChecked';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,KAApB,QAAiC,SAAjC;AACA,SAASD,OAAO,IAAIE,QAApB,QAAoC,YAApC;AACA,SAASF,OAAO,IAAIG,eAApB,QAA2C,mBAA3C;AACA,SAASH,OAAO,IAAII,UAApB,QAAsC,cAAtC;AACA,SAASJ,OAAO,IAAIK,WAApB,QAAuC,eAAvC;AACA,SAASL,OAAO,IAAIM,WAApB,QAAuC,eAAvC;AACA,SAASN,OAAO,IAAIO,YAApB,QAAwC,gBAAxC;AACA,SAASP,OAAO,IAAIQ,gBAApB,QAA4C,oBAA5C;AACA,SAASR,OAAO,IAAIS,KAApB,QAAiC,SAAjC;AACA,SAAST,OAAO,IAAIU,KAApB,QAAiC,SAAjC;AACA,SAASV,OAAO,IAAIW,YAApB,QAAwC,gBAAxC"}
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","createFontStyle","theme","config","typography","selected","selector","fontFamily","fontWeight","fontSize","OS","rem","unitless","lineHeight","letterSpacing","em","color"],"sources":["createFontStyle.ts"],"sourcesContent":["import type { TextStyle } from 'react-native';\nimport { Platform } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\n\ntype Typography = Theme['typography'];\n\ntype Variant = Typography['h1'];\n\ninterface FontStyleConfig {\n selector?: (typography: Typography) => Variant;\n color?: TextStyle['color'];\n}\n\nexport default function createFontStyle(theme: Theme, config?: FontStyleConfig): TextStyle {\n const typography = theme.typography;\n const selected = config?.selector?.(typography);\n\n const fontFamily = selected?.fontFamily;\n\n const fontWeight = selected?.fontWeight;\n\n // @ts-ignore\n const fontSize: TextStyle['fontSize'] = Platform.OS === 'web'\n ? selected?.fontSize.rem\n : selected?.fontSize.unitless\n ?? typography.fontSize;\n\n // @ts-ignore\n const lineHeight: TextStyle['lineHeight'] = Platform.OS === 'web'\n ? selected?.lineHeight.rem\n : selected?.lineHeight.unitless;\n\n // @ts-ignore\n const letterSpacing: TextStyle['letterSpacing'] = Platform.OS === 'web'\n ? selected?.letterSpacing.em\n : selected?.letterSpacing.unitless;\n\n return {\n color: config?.color,\n fontFamily,\n fontSize,\n fontWeight,\n lineHeight,\n letterSpacing,\n };\n};\n"],"mappings":"AACA,SAASA,QAAT,QAAyB,cAAzB;AAYA,eAAe,SAASC,eAAT,CAAyBC,KAAzB,EAAuCC,MAAvC,EAA4E;EAAA;;EACvF,MAAMC,UAAU,GAAGF,KAAK,CAACE,UAAzB;EACA,MAAMC,QAAQ,GAAGF,MAAH,aAAGA,MAAH,2CAAGA,MAAM,CAAEG,QAAX,qDAAG,sBAAAH,MAAM,EAAaC,UAAb,CAAvB;EAEA,MAAMG,UAAU,GAAGF,QAAH,aAAGA,QAAH,uBAAGA,QAAQ,CAAEE,UAA7B;EAEA,MAAMC,UAAU,GAAGH,QAAH,aAAGA,QAAH,uBAAGA,QAAQ,CAAEG,UAA7B,CANuF,CAQvF;;EACA,MAAMC,QAA+B,GAAGT,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAClCL,QADkC,aAClCA,QADkC,uBAClCA,QAAQ,CAAEI,QAAV,CAAmBE,GADe,GAElC,CAAAN,QAAQ,SAAR,IAAAA,QAAQ,WAAR,YAAAA,QAAQ,CAAEI,QAAV,CAAmBG,QAAnB,KACCR,UAAU,CAACK,QAHlB,CATuF,CAcvF;;EACA,MAAMI,UAAmC,GAAGb,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GACtCL,QADsC,aACtCA,QADsC,uBACtCA,QAAQ,CAAEQ,UAAV,CAAqBF,GADiB,GAEtCN,QAFsC,aAEtCA,QAFsC,uBAEtCA,QAAQ,CAAEQ,UAAV,CAAqBD,QAF3B,CAfuF,CAmBvF;;EACA,MAAME,aAAyC,GAAGd,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAC5CL,QAD4C,aAC5CA,QAD4C,uBAC5CA,QAAQ,CAAES,aAAV,CAAwBC,EADoB,GAE5CV,QAF4C,aAE5CA,QAF4C,uBAE5CA,QAAQ,CAAES,aAAV,CAAwBF,QAF9B;EAIA,OAAO;IACHI,KAAK,EAAEb,MAAF,aAAEA,MAAF,uBAAEA,MAAM,CAAEa,KADZ;IAEHT,UAFG;IAGHE,QAHG;IAIHD,UAJG;IAKHK,UALG;IAMHC;EANG,CAAP;AAQH;AAAA"}
1
+ {"version":3,"names":["Platform","createFontStyle","theme","config","typography","selected","selector","fontFamily","fontWeight","fontSize","OS","rem","unitless","lineHeight","letterSpacing","em","color"],"sources":["createFontStyle.ts"],"sourcesContent":["import type { TextStyle } from 'react-native';\nimport { Platform } from 'react-native';\nimport type { Theme } from '@fountain-ui/styles';\n\ntype Typography = Theme['typography'];\n\ntype Variant = Typography['h1'];\n\ninterface FontStyleConfig {\n selector?: (typography: Typography) => Variant | undefined;\n color?: TextStyle['color'];\n}\n\nexport default function createFontStyle(theme: Theme, config?: FontStyleConfig): TextStyle {\n const typography = theme.typography;\n const selected = config?.selector?.(typography);\n\n const fontFamily = selected?.fontFamily;\n\n const fontWeight = selected?.fontWeight;\n\n // @ts-ignore\n const fontSize: TextStyle['fontSize'] = Platform.OS === 'web'\n ? selected?.fontSize.rem\n : selected?.fontSize.unitless\n ?? typography.fontSize;\n\n // @ts-ignore\n const lineHeight: TextStyle['lineHeight'] = Platform.OS === 'web'\n ? selected?.lineHeight.rem\n : selected?.lineHeight.unitless;\n\n // @ts-ignore\n const letterSpacing: TextStyle['letterSpacing'] = Platform.OS === 'web'\n ? selected?.letterSpacing.em\n : selected?.letterSpacing.unitless;\n\n return {\n color: config?.color,\n fontFamily,\n fontSize,\n fontWeight,\n lineHeight,\n letterSpacing,\n };\n};\n"],"mappings":"AACA,SAASA,QAAT,QAAyB,cAAzB;AAYA,eAAe,SAASC,eAAT,CAAyBC,KAAzB,EAAuCC,MAAvC,EAA4E;EAAA;;EACvF,MAAMC,UAAU,GAAGF,KAAK,CAACE,UAAzB;EACA,MAAMC,QAAQ,GAAGF,MAAH,aAAGA,MAAH,2CAAGA,MAAM,CAAEG,QAAX,qDAAG,sBAAAH,MAAM,EAAaC,UAAb,CAAvB;EAEA,MAAMG,UAAU,GAAGF,QAAH,aAAGA,QAAH,uBAAGA,QAAQ,CAAEE,UAA7B;EAEA,MAAMC,UAAU,GAAGH,QAAH,aAAGA,QAAH,uBAAGA,QAAQ,CAAEG,UAA7B,CANuF,CAQvF;;EACA,MAAMC,QAA+B,GAAGT,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAClCL,QADkC,aAClCA,QADkC,uBAClCA,QAAQ,CAAEI,QAAV,CAAmBE,GADe,GAElC,CAAAN,QAAQ,SAAR,IAAAA,QAAQ,WAAR,YAAAA,QAAQ,CAAEI,QAAV,CAAmBG,QAAnB,KACCR,UAAU,CAACK,QAHlB,CATuF,CAcvF;;EACA,MAAMI,UAAmC,GAAGb,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GACtCL,QADsC,aACtCA,QADsC,uBACtCA,QAAQ,CAAEQ,UAAV,CAAqBF,GADiB,GAEtCN,QAFsC,aAEtCA,QAFsC,uBAEtCA,QAAQ,CAAEQ,UAAV,CAAqBD,QAF3B,CAfuF,CAmBvF;;EACA,MAAME,aAAyC,GAAGd,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAC5CL,QAD4C,aAC5CA,QAD4C,uBAC5CA,QAAQ,CAAES,aAAV,CAAwBC,EADoB,GAE5CV,QAF4C,aAE5CA,QAF4C,uBAE5CA,QAAQ,CAAES,aAAV,CAAwBF,QAF9B;EAIA,OAAO;IACHI,KAAK,EAAEb,MAAF,aAAEA,MAAF,uBAAEA,MAAM,CAAEa,KADZ;IAEHT,UAFG;IAGHE,QAHG;IAIHD,UAJG;IAKHK,UALG;IAMHC;EANG,CAAP;AAQH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["cloneElement","cloneElementSafely","element","props"],"sources":["cloneElementSafely.ts"],"sourcesContent":["import { cloneElement, ReactElement } from 'react';\n\ntype FalsyReactElement = ReactElement | null | undefined;\n\nexport default function cloneElementSafely(element: FalsyReactElement, props?: any): FalsyReactElement {\n return element\n ? cloneElement(element, { ...props, ...element?.props })\n : null;\n};\n"],"mappings":"AAAA,SAASA,YAAT,QAA2C,OAA3C;AAIA,eAAe,SAASC,kBAAT,CAA4BC,OAA5B,EAAwDC,KAAxD,EAAwF;EACnG,OAAOD,OAAO,gBACRF,YAAY,CAACE,OAAD,EAAU,EAAE,GAAGC,KAAL;IAAY,IAAGD,OAAH,aAAGA,OAAH,uBAAGA,OAAO,CAAEC,KAAZ;EAAZ,CAAV,CADJ,GAER,IAFN;AAGH;AAAA"}
1
+ {"version":3,"names":["cloneElement","cloneElementSafely","element","props"],"sources":["cloneElementSafely.ts"],"sourcesContent":["import { cloneElement, ReactElement } from 'react';\n\nexport type FalsyReactElement = ReactElement | null | undefined;\n\nexport default function cloneElementSafely(element: FalsyReactElement, props?: any): FalsyReactElement {\n return element\n ? cloneElement(element, { ...props, ...element?.props })\n : null;\n};\n"],"mappings":"AAAA,SAASA,YAAT,QAA2C,OAA3C;AAIA,eAAe,SAASC,kBAAT,CAA4BC,OAA5B,EAAwDC,KAAxD,EAAwF;EACnG,OAAOD,OAAO,gBACRF,YAAY,CAACE,OAAD,EAAU,EAAE,GAAGC,KAAL;IAAY,IAAGD,OAAH,aAAGA,OAAH,uBAAGA,OAAO,CAAEC,KAAZ;EAAZ,CAAV,CADJ,GAER,IAFN;AAGH;AAAA"}
@@ -1,9 +1,20 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  import React from 'react';
2
- import SvgIcon from '../SvgIcon';
4
+ import SvgIcon from '../SvgIcon/SvgIcon';
5
+ import LegacySvgIcon from '../SvgIcon/LegacySvgIcon';
3
6
 
4
- const createSvgIcon = (path, displayName) => {
7
+ const createSvgIcon = (path, displayName, viewBox) => {
5
8
  function Component(props) {
6
- return /*#__PURE__*/React.createElement(SvgIcon, props, path);
9
+ const {
10
+ enableV2 = false,
11
+ ...otherProps
12
+ } = props;
13
+ return enableV2 ? /*#__PURE__*/React.createElement(SvgIcon, _extends({
14
+ viewBox: viewBox
15
+ }, otherProps), path) : /*#__PURE__*/React.createElement(LegacySvgIcon, _extends({
16
+ viewBox: viewBox
17
+ }, otherProps), path);
7
18
  }
8
19
 
9
20
  Component.displayName = `${displayName}Icon`;
@@ -1 +1 @@
1
- {"version":3,"names":["React","SvgIcon","createSvgIcon","path","displayName","Component","props","memo"],"sources":["createSvgIcon.tsx"],"sourcesContent":["import React from 'react';\nimport type { SvgIconProps } from '../SvgIcon';\nimport SvgIcon from '../SvgIcon';\n\ntype SvgIconBaseProps = Omit<SvgIconProps, 'children'>;\n\nconst createSvgIcon = (path: React.ReactElement | React.ReactFragment, displayName: string) => {\n function Component(props: SvgIconBaseProps) {\n return (\n <SvgIcon {...props}>\n {path}\n </SvgIcon>\n );\n }\n\n Component.displayName = `${displayName}Icon`;\n\n return React.memo(Component);\n};\n\nexport default createSvgIcon;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,OAAP,MAAoB,YAApB;;AAIA,MAAMC,aAAa,GAAG,CAACC,IAAD,EAAiDC,WAAjD,KAAyE;EAC3F,SAASC,SAAT,CAAmBC,KAAnB,EAA4C;IACxC,oBACI,oBAAC,OAAD,EAAaA,KAAb,EACKH,IADL,CADJ;EAKH;;EAEDE,SAAS,CAACD,WAAV,GAAyB,GAAEA,WAAY,MAAvC;EAEA,oBAAOJ,KAAK,CAACO,IAAN,CAAWF,SAAX,CAAP;AACH,CAZD;;AAcA,eAAeH,aAAf"}
1
+ {"version":3,"names":["React","SvgIcon","LegacySvgIcon","createSvgIcon","path","displayName","viewBox","Component","props","enableV2","otherProps","memo"],"sources":["createSvgIcon.tsx"],"sourcesContent":["import React from 'react';\nimport SvgIcon from '../SvgIcon/SvgIcon';\nimport type SvgIconProps from '../SvgIcon/SvgIconProps';\nimport LegacySvgIcon from '../SvgIcon/LegacySvgIcon';\nimport type LegacySvgIconProps from '../SvgIcon/LegacySvgIconProps';\n\ntype Path = React.ReactElement | React.ReactFragment;\n\ntype SvgIconPropsWithoutChildren = Omit<SvgIconProps, 'children'> | Omit<LegacySvgIconProps, 'children'>;\n\ntype SvgIconBaseProps = SvgIconPropsWithoutChildren & {\n enableV2?: boolean;\n};\n\nconst createSvgIcon = (path: Path, displayName: string, viewBox?: string) => {\n function Component(props: SvgIconBaseProps) {\n const {\n enableV2 = false,\n ...otherProps\n } = props;\n\n return enableV2 ? (\n <SvgIcon\n viewBox={viewBox}\n {...otherProps as SvgIconProps}\n >\n {path}\n </SvgIcon>\n ) : (\n <LegacySvgIcon\n viewBox={viewBox}\n {...otherProps as LegacySvgIconProps}\n >\n {path}\n </LegacySvgIcon>\n );\n }\n\n Component.displayName = `${displayName}Icon`;\n\n return React.memo(Component);\n};\n\nexport default createSvgIcon;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,oBAApB;AAEA,OAAOC,aAAP,MAA0B,0BAA1B;;AAWA,MAAMC,aAAa,GAAG,CAACC,IAAD,EAAaC,WAAb,EAAkCC,OAAlC,KAAuD;EACzE,SAASC,SAAT,CAAmBC,KAAnB,EAA4C;IACxC,MAAM;MACFC,QAAQ,GAAG,KADT;MAEF,GAAGC;IAFD,IAGFF,KAHJ;IAKA,OAAOC,QAAQ,gBACX,oBAAC,OAAD;MACI,OAAO,EAAEH;IADb,GAEQI,UAFR,GAIKN,IAJL,CADW,gBAQX,oBAAC,aAAD;MACI,OAAO,EAAEE;IADb,GAEQI,UAFR,GAIKN,IAJL,CARJ;EAeH;;EAEDG,SAAS,CAACF,WAAV,GAAyB,GAAEA,WAAY,MAAvC;EAEA,oBAAOL,KAAK,CAACW,IAAN,CAAWJ,SAAX,CAAP;AACH,CA3BD;;AA6BA,eAAeJ,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"names":["default","cloneElementSafely","createSvgIcon","isNotAndroid12"],"sources":["index.ts"],"sourcesContent":["export { default as cloneElementSafely } from './cloneElementSafely';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as isNotAndroid12 } from './isNotAndroid12';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,kBAApB,QAA8C,sBAA9C;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,iBAAzC;AACA,SAASF,OAAO,IAAIG,cAApB,QAA0C,kBAA1C"}
1
+ {"version":3,"names":["default","cloneElementSafely","createSvgIcon","isNotAndroid12"],"sources":["index.ts"],"sourcesContent":["export { default as cloneElementSafely } from './cloneElementSafely';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport type { FalsyReactElement } from './cloneElementSafely';\nexport { default as isNotAndroid12 } from './isNotAndroid12';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,kBAApB,QAA8C,sBAA9C;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,iBAAzC;AAEA,SAASF,OAAO,IAAIG,cAApB,QAA0C,kBAA1C"}
@@ -1,25 +1,27 @@
1
1
  import React from 'react';
2
2
  import type { ButtonBaseProps } from '../ButtonBase';
3
- import type { OverridableComponentProps, CommonComponentColor } from '../types';
4
- export declare type ButtonColor = CommonComponentColor;
5
- export declare type ButtonSize = 'small' | 'medium';
6
- export declare type ButtonVariant = 'contained' | 'outlined' | 'text';
3
+ import type { OverridableComponentProps } from '../types';
4
+ export declare const ButtonColors: readonly ["accent", "primary", "danger", "disabled", "secondary", "accentAlt"];
5
+ export declare type ButtonColor = typeof ButtonColors[number];
6
+ export declare const ButtonSizes: readonly ["small", "medium", "large"];
7
+ export declare type ButtonSize = typeof ButtonSizes[number];
8
+ export declare const ButtonVariants: readonly ["solid", "outlined", "text"];
9
+ export declare type ButtonVariant = typeof ButtonVariants[number];
7
10
  export default interface ButtonProps extends OverridableComponentProps<ButtonBaseProps, {
8
11
  /**
9
12
  * The content of the button.
10
13
  */
11
14
  children: string;
12
- /**
13
- * If `true`, remove horizontal padding and minimum width.
14
- * This prop only applied on `text` variant.
15
- * @default false
16
- */
17
- clipHorizontalSpacing?: boolean;
18
15
  /**
19
16
  * The color of the component. It supports those theme colors that make sense for this component.
20
17
  * @default 'primary'
21
18
  */
22
19
  color?: ButtonColor;
20
+ /**
21
+ * Determines whether minWidth should be applied.
22
+ * @default false
23
+ */
24
+ disableMinWidth?: boolean;
23
25
  /**
24
26
  * Element placed after the children.
25
27
  */
@@ -44,7 +46,7 @@ export default interface ButtonProps extends OverridableComponentProps<ButtonBas
44
46
  startIcon?: React.ReactElement;
45
47
  /**
46
48
  * The variant to use.
47
- * @default 'contained'
49
+ * @default 'solid'
48
50
  */
49
51
  variant?: ButtonVariant;
50
52
  }> {
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type ButtonProps from './LegacyButtonProps';
3
+ export default function Button(props: ButtonProps): JSX.Element;
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import type { ButtonBaseProps } from '../ButtonBase';
3
+ import type { OverridableComponentProps, CommonComponentColor } from '../types';
4
+ export declare type ButtonColor = CommonComponentColor;
5
+ export declare type ButtonSize = 'small' | 'medium';
6
+ export declare type ButtonVariant = 'contained' | 'outlined' | 'text';
7
+ export default interface ButtonProps extends OverridableComponentProps<ButtonBaseProps, {
8
+ /**
9
+ * The content of the button.
10
+ */
11
+ children: string;
12
+ /**
13
+ * If `true`, remove horizontal padding and minimum width.
14
+ * This prop only applied on `text` variant.
15
+ * @default false
16
+ */
17
+ clipHorizontalSpacing?: boolean;
18
+ /**
19
+ * The color of the component. It supports those theme colors that make sense for this component.
20
+ * @default 'primary'
21
+ */
22
+ color?: ButtonColor;
23
+ /**
24
+ * Element placed after the children.
25
+ */
26
+ endIcon?: React.ReactElement;
27
+ /**
28
+ * If `true`, the button will take up the full width of its container.
29
+ * @default false
30
+ */
31
+ fullWidth?: boolean;
32
+ /**
33
+ * The URL to link to when the button is clicked.
34
+ */
35
+ href?: string;
36
+ /**
37
+ * The size of the button.
38
+ * @default 'medium'
39
+ */
40
+ size?: ButtonSize;
41
+ /**
42
+ * Element placed before the children.
43
+ */
44
+ startIcon?: React.ReactElement;
45
+ /**
46
+ * The variant to use.
47
+ * @default 'contained'
48
+ */
49
+ variant?: ButtonVariant;
50
+ }> {
51
+ }
@@ -1,2 +1,2 @@
1
- export { default } from './Button';
2
- export type { default as ButtonProps } from './ButtonProps';
1
+ export { default } from './LegacyButton';
2
+ export type { default as ButtonProps } from './LegacyButtonProps';
@@ -0,0 +1,9 @@
1
+ import { ButtonColor, ButtonVariant } from './ButtonProps';
2
+ declare type UseVariantStyleMapReturns = {
3
+ borderColor?: string;
4
+ fillColor?: string;
5
+ iconColor?: string;
6
+ labelColor?: string;
7
+ };
8
+ export default function useVariantStyleMap(variant: ButtonVariant, color: ButtonColor): UseVariantStyleMapReturns;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type ButtonSetProps from './ButtonSetProps';
3
+ export default function ButtonSet(props: ButtonSetProps): JSX.Element;
@@ -0,0 +1,20 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { OverridableComponentProps } from '../types';
4
+ export declare const buttonSetColors: readonly ["accent", "danger", "warning"];
5
+ export declare type ButtonSetColor = typeof buttonSetColors[number];
6
+ export declare const buttonSetVariants: readonly ["horizontal", "vertical"];
7
+ export declare type ButtonSetVariant = typeof buttonSetVariants[number];
8
+ export default interface ButtonSetProps extends OverridableComponentProps<PropsWithChildren<ViewProps>, {
9
+ /**
10
+ * Determines the base color of the button set that goes inside.
11
+ * @default 'accent'
12
+ */
13
+ color?: ButtonSetColor;
14
+ /**
15
+ * Determines design variations of the component.
16
+ * @default 'horizontal'
17
+ */
18
+ variant?: ButtonSetVariant;
19
+ }> {
20
+ }
@@ -0,0 +1,3 @@
1
+ export { default } from './ButtonSet';
2
+ export type { default as ButtonSetProps, ButtonSetColor, ButtonSetVariant } from './ButtonSetProps';
3
+ export { buttonSetColors, buttonSetVariants } from './ButtonSetProps';
@@ -0,0 +1,10 @@
1
+ import type { FountainUiStyle } from '@fountain-ui/styles';
2
+ import type ButtonProps from '../Button/ButtonProps';
3
+ import type { ButtonSetColor, ButtonSetVariant } from './ButtonSetProps';
4
+ declare type ButtonStyle = Partial<ButtonProps>;
5
+ declare type UseVariantButtonStyleMapReturns = {
6
+ containerStyle: FountainUiStyle;
7
+ buttonStyleMap: ButtonStyle[];
8
+ };
9
+ export default function useVariantStyleMap(variant: ButtonSetVariant, color: ButtonSetColor): UseVariantButtonStyleMapReturns;
10
+ export {};
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import type { CommonComponentColor, OverridableComponentProps } from '../types';
1
+ import type { OverridableComponentProps } from '../types';
3
2
  import type { ButtonBaseProps } from '../ButtonBase';
4
3
  declare type BaseProps = Omit<ButtonBaseProps, 'onPress' | 'children'>;
5
- export declare type CheckboxColor = CommonComponentColor;
4
+ export declare const checkboxVariants: readonly ["square", "round"];
5
+ export declare type CheckboxVariant = typeof checkboxVariants[number];
6
6
  export default interface CheckboxProps extends OverridableComponentProps<BaseProps, {
7
7
  /**
8
8
  * If `true`, the component is checked.
@@ -10,27 +10,23 @@ export default interface CheckboxProps extends OverridableComponentProps<BasePro
10
10
  */
11
11
  checked?: boolean;
12
12
  /**
13
- * The checked Icon which is replaced.
13
+ * Content which is sharing pressable next to checkbox.
14
14
  */
15
- checkedIcon?: React.ReactElement;
16
- /**
17
- * The color of the component. It supports those theme colors that make sense for this component.
18
- * @default 'primary'
19
- */
20
- color?: CheckboxColor;
15
+ children?: string;
21
16
  /**
22
17
  * If `true`, the checkbox is disabled.
23
18
  * @default false
24
19
  */
25
20
  disabled?: boolean;
26
- /**
27
- * The unchecked Icon which is replaced.
28
- */
29
- icon?: React.ReactElement;
30
21
  /**
31
22
  * Callback fired when the state is changed.
32
23
  */
33
24
  onChange?: (newChecked: boolean) => void;
25
+ /**
26
+ * Determines the shape and style of the checkbox.
27
+ * @default 'square'
28
+ */
29
+ variant?: CheckboxVariant;
34
30
  }> {
35
31
  }
36
32
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type CheckboxProps from './LegacyCheckboxProps';
3
+ export default function Checkbox(props: CheckboxProps): JSX.Element;