@cdx-ui/components 0.1.6 → 0.2.0

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 (435) hide show
  1. package/coverage.svg +1 -1
  2. package/lib/commonjs/components/Alert/index.js.map +1 -1
  3. package/lib/commonjs/components/Avatar/index.js +6 -4
  4. package/lib/commonjs/components/Avatar/index.js.map +1 -1
  5. package/lib/commonjs/components/Badge/index.js.map +1 -1
  6. package/lib/commonjs/components/Badge/styles.js +2 -2
  7. package/lib/commonjs/components/BottomSheet/index.js +106 -91
  8. package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
  9. package/lib/commonjs/components/BottomSheet/styles.js +1 -12
  10. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
  11. package/lib/commonjs/components/Button/index.js.map +1 -1
  12. package/lib/commonjs/components/Card/index.js.map +1 -1
  13. package/lib/commonjs/components/ColorArea/ColorAreaPaint.js +78 -0
  14. package/lib/commonjs/components/ColorArea/ColorAreaPaint.js.map +1 -0
  15. package/lib/commonjs/components/ColorArea/ColorAreaPaint.web.js +31 -0
  16. package/lib/commonjs/components/ColorArea/ColorAreaPaint.web.js.map +1 -0
  17. package/lib/commonjs/components/ColorArea/index.js +57 -0
  18. package/lib/commonjs/components/ColorArea/index.js.map +1 -0
  19. package/lib/commonjs/components/ColorArea/styles.js +12 -0
  20. package/lib/commonjs/components/ColorArea/styles.js.map +1 -0
  21. package/lib/commonjs/components/ColorField/index.js +138 -0
  22. package/lib/commonjs/components/ColorField/index.js.map +1 -0
  23. package/lib/commonjs/components/ColorField/styles.js +14 -0
  24. package/lib/commonjs/components/ColorField/styles.js.map +1 -0
  25. package/lib/commonjs/components/ColorPicker/index.js +88 -0
  26. package/lib/commonjs/components/ColorPicker/index.js.map +1 -0
  27. package/lib/commonjs/components/ColorPicker/styles.js +22 -0
  28. package/lib/commonjs/components/ColorPicker/styles.js.map +1 -0
  29. package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.js +68 -0
  30. package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.js.map +1 -0
  31. package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.web.js +41 -0
  32. package/lib/commonjs/components/ColorSlider/ColorSliderRailPaint.web.js.map +1 -0
  33. package/lib/commonjs/components/ColorSlider/index.js +123 -0
  34. package/lib/commonjs/components/ColorSlider/index.js.map +1 -0
  35. package/lib/commonjs/components/ColorSlider/styles.js +50 -0
  36. package/lib/commonjs/components/ColorSlider/styles.js.map +1 -0
  37. package/lib/commonjs/components/ColorSwatch/index.js +54 -0
  38. package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
  39. package/lib/commonjs/components/ColorSwatch/styles.js +25 -0
  40. package/lib/commonjs/components/ColorSwatch/styles.js.map +1 -0
  41. package/lib/commonjs/components/ColorSwatchPicker/index.js +110 -0
  42. package/lib/commonjs/components/ColorSwatchPicker/index.js.map +1 -0
  43. package/lib/commonjs/components/ColorSwatchPicker/styles.js +17 -0
  44. package/lib/commonjs/components/ColorSwatchPicker/styles.js.map +1 -0
  45. package/lib/commonjs/components/Dialog/index.js.map +1 -1
  46. package/lib/commonjs/components/Divider/index.js.map +1 -1
  47. package/lib/commonjs/components/Form/styles.js +1 -1
  48. package/lib/commonjs/components/Form/styles.js.map +1 -1
  49. package/lib/commonjs/components/FullScreenDialog/animation.js +46 -0
  50. package/lib/commonjs/components/FullScreenDialog/animation.js.map +1 -0
  51. package/lib/commonjs/components/FullScreenDialog/index.js +343 -0
  52. package/lib/commonjs/components/FullScreenDialog/index.js.map +1 -0
  53. package/lib/commonjs/components/FullScreenDialog/styles.js +14 -0
  54. package/lib/commonjs/components/FullScreenDialog/styles.js.map +1 -0
  55. package/lib/commonjs/components/Heading/styles.js +3 -0
  56. package/lib/commonjs/components/Heading/styles.js.map +1 -1
  57. package/lib/commonjs/components/Icon/index.js +27 -3
  58. package/lib/commonjs/components/Icon/index.js.map +1 -1
  59. package/lib/commonjs/components/Icon/styles.js +19 -0
  60. package/lib/commonjs/components/Icon/styles.js.map +1 -0
  61. package/lib/commonjs/components/IconButton/styles.js +7 -5
  62. package/lib/commonjs/components/IconButton/styles.js.map +1 -1
  63. package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -1
  64. package/lib/commonjs/components/Link/index.js.map +1 -1
  65. package/lib/commonjs/components/ListItem/index.js +2 -0
  66. package/lib/commonjs/components/ListItem/index.js.map +1 -1
  67. package/lib/commonjs/components/ListItem/styles.js +6 -0
  68. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  69. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
  70. package/lib/commonjs/components/Radio/index.js.map +1 -1
  71. package/lib/commonjs/components/ScopedTheme/index.js +11 -3
  72. package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
  73. package/lib/commonjs/components/Skeleton/index.js.map +1 -1
  74. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  75. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  76. package/lib/commonjs/components/Text/index.js +13 -4
  77. package/lib/commonjs/components/Text/index.js.map +1 -1
  78. package/lib/commonjs/components/Text/styles.js +39 -3
  79. package/lib/commonjs/components/Text/styles.js.map +1 -1
  80. package/lib/commonjs/components/Textarea/index.js.map +1 -1
  81. package/lib/commonjs/components/Tile/index.js.map +1 -1
  82. package/lib/commonjs/components/Toast/hooks.js +0 -1
  83. package/lib/commonjs/components/Toast/hooks.js.map +1 -1
  84. package/lib/commonjs/components/Toast/index.js +49 -18
  85. package/lib/commonjs/components/Toast/index.js.map +1 -1
  86. package/lib/commonjs/components/Toast/styles.js +49 -21
  87. package/lib/commonjs/components/Toast/styles.js.map +1 -1
  88. package/lib/commonjs/components/ToggleButton/index.js +5 -4
  89. package/lib/commonjs/components/ToggleButton/index.js.map +1 -1
  90. package/lib/commonjs/components/index.js +80 -0
  91. package/lib/commonjs/components/index.js.map +1 -1
  92. package/lib/commonjs/components/picker/styles.js +6 -2
  93. package/lib/commonjs/components/picker/styles.js.map +1 -1
  94. package/lib/commonjs/components/picker/surfaces.js +9 -2
  95. package/lib/commonjs/components/picker/surfaces.js.map +1 -1
  96. package/lib/commonjs/components/sheet-header/index.js +97 -0
  97. package/lib/commonjs/components/sheet-header/index.js.map +1 -0
  98. package/lib/commonjs/components/sheet-header/styles.js +28 -0
  99. package/lib/commonjs/components/sheet-header/styles.js.map +1 -0
  100. package/lib/commonjs/figma/BottomSheet.figma.js +1 -1
  101. package/lib/commonjs/figma/Icon.figma.js +30 -3
  102. package/lib/commonjs/figma/Icon.figma.js.map +1 -1
  103. package/lib/commonjs/figma/Text.figma.js +15 -1
  104. package/lib/commonjs/figma/Text.figma.js.map +1 -1
  105. package/lib/commonjs/providers/toast/insets-container.js +15 -3
  106. package/lib/commonjs/providers/toast/insets-container.js.map +1 -1
  107. package/lib/commonjs/providers/toast/provider.js +45 -11
  108. package/lib/commonjs/providers/toast/provider.js.map +1 -1
  109. package/lib/commonjs/styles/constants.js +14 -1
  110. package/lib/commonjs/styles/constants.js.map +1 -1
  111. package/lib/module/components/Alert/index.js.map +1 -1
  112. package/lib/module/components/Avatar/index.js +6 -4
  113. package/lib/module/components/Avatar/index.js.map +1 -1
  114. package/lib/module/components/Badge/index.js.map +1 -1
  115. package/lib/module/components/Badge/styles.js +2 -2
  116. package/lib/module/components/BottomSheet/index.js +110 -95
  117. package/lib/module/components/BottomSheet/index.js.map +1 -1
  118. package/lib/module/components/BottomSheet/styles.js +0 -11
  119. package/lib/module/components/BottomSheet/styles.js.map +1 -1
  120. package/lib/module/components/Button/index.js.map +1 -1
  121. package/lib/module/components/Card/index.js.map +1 -1
  122. package/lib/module/components/ColorArea/ColorAreaPaint.js +74 -0
  123. package/lib/module/components/ColorArea/ColorAreaPaint.js.map +1 -0
  124. package/lib/module/components/ColorArea/ColorAreaPaint.web.js +27 -0
  125. package/lib/module/components/ColorArea/ColorAreaPaint.web.js.map +1 -0
  126. package/lib/module/components/ColorArea/index.js +53 -0
  127. package/lib/module/components/ColorArea/index.js.map +1 -0
  128. package/lib/module/components/ColorArea/styles.js +8 -0
  129. package/lib/module/components/ColorArea/styles.js.map +1 -0
  130. package/lib/module/components/ColorField/index.js +134 -0
  131. package/lib/module/components/ColorField/index.js.map +1 -0
  132. package/lib/module/components/ColorField/styles.js +10 -0
  133. package/lib/module/components/ColorField/styles.js.map +1 -0
  134. package/lib/module/components/ColorPicker/index.js +79 -0
  135. package/lib/module/components/ColorPicker/index.js.map +1 -0
  136. package/lib/module/components/ColorPicker/styles.js +18 -0
  137. package/lib/module/components/ColorPicker/styles.js.map +1 -0
  138. package/lib/module/components/ColorSlider/ColorSliderRailPaint.js +64 -0
  139. package/lib/module/components/ColorSlider/ColorSliderRailPaint.js.map +1 -0
  140. package/lib/module/components/ColorSlider/ColorSliderRailPaint.web.js +37 -0
  141. package/lib/module/components/ColorSlider/ColorSliderRailPaint.web.js.map +1 -0
  142. package/lib/module/components/ColorSlider/index.js +119 -0
  143. package/lib/module/components/ColorSlider/index.js.map +1 -0
  144. package/lib/module/components/ColorSlider/styles.js +46 -0
  145. package/lib/module/components/ColorSlider/styles.js.map +1 -0
  146. package/lib/module/components/ColorSwatch/index.js +50 -0
  147. package/lib/module/components/ColorSwatch/index.js.map +1 -0
  148. package/lib/module/components/ColorSwatch/styles.js +21 -0
  149. package/lib/module/components/ColorSwatch/styles.js.map +1 -0
  150. package/lib/module/components/ColorSwatchPicker/index.js +106 -0
  151. package/lib/module/components/ColorSwatchPicker/index.js.map +1 -0
  152. package/lib/module/components/ColorSwatchPicker/styles.js +13 -0
  153. package/lib/module/components/ColorSwatchPicker/styles.js.map +1 -0
  154. package/lib/module/components/Dialog/index.js.map +1 -1
  155. package/lib/module/components/Divider/index.js.map +1 -1
  156. package/lib/module/components/Form/styles.js +1 -1
  157. package/lib/module/components/Form/styles.js.map +1 -1
  158. package/lib/module/components/FullScreenDialog/animation.js +41 -0
  159. package/lib/module/components/FullScreenDialog/animation.js.map +1 -0
  160. package/lib/module/components/FullScreenDialog/index.js +338 -0
  161. package/lib/module/components/FullScreenDialog/index.js.map +1 -0
  162. package/lib/module/components/FullScreenDialog/styles.js +10 -0
  163. package/lib/module/components/FullScreenDialog/styles.js.map +1 -0
  164. package/lib/module/components/Heading/styles.js +3 -0
  165. package/lib/module/components/Heading/styles.js.map +1 -1
  166. package/lib/module/components/Icon/index.js +27 -3
  167. package/lib/module/components/Icon/index.js.map +1 -1
  168. package/lib/module/components/Icon/styles.js +16 -0
  169. package/lib/module/components/Icon/styles.js.map +1 -0
  170. package/lib/module/components/IconButton/styles.js +7 -4
  171. package/lib/module/components/IconButton/styles.js.map +1 -1
  172. package/lib/module/components/InsuranceDisclosure/index.js.map +1 -1
  173. package/lib/module/components/Link/index.js.map +1 -1
  174. package/lib/module/components/ListItem/index.js +2 -0
  175. package/lib/module/components/ListItem/index.js.map +1 -1
  176. package/lib/module/components/ListItem/styles.js +6 -0
  177. package/lib/module/components/ListItem/styles.js.map +1 -1
  178. package/lib/module/components/ProgressSegmented/index.js.map +1 -1
  179. package/lib/module/components/Radio/index.js.map +1 -1
  180. package/lib/module/components/ScopedTheme/index.js +11 -3
  181. package/lib/module/components/ScopedTheme/index.js.map +1 -1
  182. package/lib/module/components/Skeleton/index.js.map +1 -1
  183. package/lib/module/components/Stack/HStack.js.map +1 -1
  184. package/lib/module/components/Stack/VStack.js.map +1 -1
  185. package/lib/module/components/Text/index.js +14 -5
  186. package/lib/module/components/Text/index.js.map +1 -1
  187. package/lib/module/components/Text/styles.js +38 -2
  188. package/lib/module/components/Text/styles.js.map +1 -1
  189. package/lib/module/components/Textarea/index.js.map +1 -1
  190. package/lib/module/components/Tile/index.js.map +1 -1
  191. package/lib/module/components/Toast/hooks.js +0 -1
  192. package/lib/module/components/Toast/hooks.js.map +1 -1
  193. package/lib/module/components/Toast/index.js +52 -21
  194. package/lib/module/components/Toast/index.js.map +1 -1
  195. package/lib/module/components/Toast/styles.js +48 -21
  196. package/lib/module/components/Toast/styles.js.map +1 -1
  197. package/lib/module/components/ToggleButton/index.js +3 -3
  198. package/lib/module/components/ToggleButton/index.js.map +1 -1
  199. package/lib/module/components/index.js +7 -0
  200. package/lib/module/components/index.js.map +1 -1
  201. package/lib/module/components/picker/styles.js +6 -2
  202. package/lib/module/components/picker/styles.js.map +1 -1
  203. package/lib/module/components/picker/surfaces.js +10 -3
  204. package/lib/module/components/picker/surfaces.js.map +1 -1
  205. package/lib/module/components/sheet-header/index.js +94 -0
  206. package/lib/module/components/sheet-header/index.js.map +1 -0
  207. package/lib/module/components/sheet-header/styles.js +25 -0
  208. package/lib/module/components/sheet-header/styles.js.map +1 -0
  209. package/lib/module/figma/BottomSheet.figma.js +1 -1
  210. package/lib/module/figma/Icon.figma.js +30 -3
  211. package/lib/module/figma/Icon.figma.js.map +1 -1
  212. package/lib/module/figma/Text.figma.js +15 -1
  213. package/lib/module/figma/Text.figma.js.map +1 -1
  214. package/lib/module/providers/toast/insets-container.js +15 -4
  215. package/lib/module/providers/toast/insets-container.js.map +1 -1
  216. package/lib/module/providers/toast/provider.js +46 -12
  217. package/lib/module/providers/toast/provider.js.map +1 -1
  218. package/lib/module/styles/constants.js +13 -0
  219. package/lib/module/styles/constants.js.map +1 -1
  220. package/lib/typescript/components/Alert/index.d.ts +5 -2
  221. package/lib/typescript/components/Alert/index.d.ts.map +1 -1
  222. package/lib/typescript/components/Avatar/index.d.ts +11 -5
  223. package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
  224. package/lib/typescript/components/Badge/index.d.ts +34 -0
  225. package/lib/typescript/components/Badge/index.d.ts.map +1 -1
  226. package/lib/typescript/components/Badge/styles.d.ts +3 -3
  227. package/lib/typescript/components/BottomSheet/index.d.ts +12 -1
  228. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
  229. package/lib/typescript/components/BottomSheet/styles.d.ts +0 -5
  230. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
  231. package/lib/typescript/components/Breadcrumbs/styles.d.ts +1 -1
  232. package/lib/typescript/components/Button/index.d.ts +10 -2
  233. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  234. package/lib/typescript/components/Button/styles.d.ts +4 -4
  235. package/lib/typescript/components/Card/index.d.ts +14 -0
  236. package/lib/typescript/components/Card/index.d.ts.map +1 -1
  237. package/lib/typescript/components/Checkbox/index.d.ts +1 -1
  238. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  239. package/lib/typescript/components/Chip/index.d.ts +2 -2
  240. package/lib/typescript/components/Chip/index.d.ts.map +1 -1
  241. package/lib/typescript/components/Chip/styles.d.ts +3 -3
  242. package/lib/typescript/components/ColorArea/ColorAreaPaint.d.ts +5 -0
  243. package/lib/typescript/components/ColorArea/ColorAreaPaint.d.ts.map +1 -0
  244. package/lib/typescript/components/ColorArea/ColorAreaPaint.web.d.ts +5 -0
  245. package/lib/typescript/components/ColorArea/ColorAreaPaint.web.d.ts.map +1 -0
  246. package/lib/typescript/components/ColorArea/index.d.ts +20 -0
  247. package/lib/typescript/components/ColorArea/index.d.ts.map +1 -0
  248. package/lib/typescript/components/ColorArea/styles.d.ts +4 -0
  249. package/lib/typescript/components/ColorArea/styles.d.ts.map +1 -0
  250. package/lib/typescript/components/ColorField/index.d.ts +41 -0
  251. package/lib/typescript/components/ColorField/index.d.ts.map +1 -0
  252. package/lib/typescript/components/ColorField/styles.d.ts +13 -0
  253. package/lib/typescript/components/ColorField/styles.d.ts.map +1 -0
  254. package/lib/typescript/components/ColorPicker/index.d.ts +28 -0
  255. package/lib/typescript/components/ColorPicker/index.d.ts.map +1 -0
  256. package/lib/typescript/components/ColorPicker/styles.d.ts +9 -0
  257. package/lib/typescript/components/ColorPicker/styles.d.ts.map +1 -0
  258. package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.d.ts +5 -0
  259. package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.d.ts.map +1 -0
  260. package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.web.d.ts +5 -0
  261. package/lib/typescript/components/ColorSlider/ColorSliderRailPaint.web.d.ts.map +1 -0
  262. package/lib/typescript/components/ColorSlider/index.d.ts +33 -0
  263. package/lib/typescript/components/ColorSlider/index.d.ts.map +1 -0
  264. package/lib/typescript/components/ColorSlider/styles.d.ts +14 -0
  265. package/lib/typescript/components/ColorSlider/styles.d.ts.map +1 -0
  266. package/lib/typescript/components/ColorSwatch/index.d.ts +19 -0
  267. package/lib/typescript/components/ColorSwatch/index.d.ts.map +1 -0
  268. package/lib/typescript/components/ColorSwatch/styles.d.ts +7 -0
  269. package/lib/typescript/components/ColorSwatch/styles.d.ts.map +1 -0
  270. package/lib/typescript/components/ColorSwatchPicker/index.d.ts +37 -0
  271. package/lib/typescript/components/ColorSwatchPicker/index.d.ts.map +1 -0
  272. package/lib/typescript/components/ColorSwatchPicker/styles.d.ts +5 -0
  273. package/lib/typescript/components/ColorSwatchPicker/styles.d.ts.map +1 -0
  274. package/lib/typescript/components/CurrencyInput/index.d.ts +2 -2
  275. package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
  276. package/lib/typescript/components/Dialog/index.d.ts +10 -0
  277. package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
  278. package/lib/typescript/components/Dialog/styles.d.ts +1 -0
  279. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
  280. package/lib/typescript/components/Divider/index.d.ts +6 -1
  281. package/lib/typescript/components/Divider/index.d.ts.map +1 -1
  282. package/lib/typescript/components/Drawer/styles.d.ts +1 -1
  283. package/lib/typescript/components/Form/styles.d.ts.map +1 -1
  284. package/lib/typescript/components/FullScreenDialog/animation.d.ts +9 -0
  285. package/lib/typescript/components/FullScreenDialog/animation.d.ts.map +1 -0
  286. package/lib/typescript/components/FullScreenDialog/index.d.ts +85 -0
  287. package/lib/typescript/components/FullScreenDialog/index.d.ts.map +1 -0
  288. package/lib/typescript/components/FullScreenDialog/styles.d.ts +6 -0
  289. package/lib/typescript/components/FullScreenDialog/styles.d.ts.map +1 -0
  290. package/lib/typescript/components/Heading/styles.d.ts.map +1 -1
  291. package/lib/typescript/components/Icon/index.d.ts +14 -22
  292. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  293. package/lib/typescript/components/Icon/styles.d.ts +6 -0
  294. package/lib/typescript/components/Icon/styles.d.ts.map +1 -0
  295. package/lib/typescript/components/IconButton/styles.d.ts +7 -2
  296. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
  297. package/lib/typescript/components/Input/index.d.ts +2 -2
  298. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  299. package/lib/typescript/components/InsuranceDisclosure/index.d.ts +1 -0
  300. package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -1
  301. package/lib/typescript/components/Link/index.d.ts +3 -1
  302. package/lib/typescript/components/Link/index.d.ts.map +1 -1
  303. package/lib/typescript/components/ListItem/index.d.ts +43 -4
  304. package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
  305. package/lib/typescript/components/ListItem/styles.d.ts +2 -0
  306. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  307. package/lib/typescript/components/Menu/index.d.ts +2 -2
  308. package/lib/typescript/components/Menu/index.d.ts.map +1 -1
  309. package/lib/typescript/components/ProgressSegmented/index.d.ts +10 -3
  310. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
  311. package/lib/typescript/components/Radio/index.d.ts +1 -0
  312. package/lib/typescript/components/Radio/index.d.ts.map +1 -1
  313. package/lib/typescript/components/ScopedTheme/index.d.ts +11 -3
  314. package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
  315. package/lib/typescript/components/Select/index.d.ts +1 -1
  316. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  317. package/lib/typescript/components/Skeleton/index.d.ts +5 -1
  318. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
  319. package/lib/typescript/components/Slider/styles.d.ts +3 -3
  320. package/lib/typescript/components/Stack/HStack.d.ts +6 -0
  321. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
  322. package/lib/typescript/components/Stack/VStack.d.ts +6 -0
  323. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
  324. package/lib/typescript/components/Switch/index.d.ts +1 -1
  325. package/lib/typescript/components/Tabs/index.d.ts +2 -2
  326. package/lib/typescript/components/Text/index.d.ts +40 -3
  327. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  328. package/lib/typescript/components/Text/styles.d.ts +9 -0
  329. package/lib/typescript/components/Text/styles.d.ts.map +1 -1
  330. package/lib/typescript/components/Textarea/index.d.ts +1 -0
  331. package/lib/typescript/components/Textarea/index.d.ts.map +1 -1
  332. package/lib/typescript/components/Tile/index.d.ts +49 -0
  333. package/lib/typescript/components/Tile/index.d.ts.map +1 -1
  334. package/lib/typescript/components/Toast/hooks.d.ts +1 -1
  335. package/lib/typescript/components/Toast/hooks.d.ts.map +1 -1
  336. package/lib/typescript/components/Toast/index.d.ts +15 -0
  337. package/lib/typescript/components/Toast/index.d.ts.map +1 -1
  338. package/lib/typescript/components/Toast/styles.d.ts +14 -0
  339. package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
  340. package/lib/typescript/components/Toast/types.d.ts +10 -1
  341. package/lib/typescript/components/Toast/types.d.ts.map +1 -1
  342. package/lib/typescript/components/ToggleButton/index.d.ts +5 -3
  343. package/lib/typescript/components/ToggleButton/index.d.ts.map +1 -1
  344. package/lib/typescript/components/index.d.ts +7 -0
  345. package/lib/typescript/components/index.d.ts.map +1 -1
  346. package/lib/typescript/components/picker/styles.d.ts +5 -2
  347. package/lib/typescript/components/picker/styles.d.ts.map +1 -1
  348. package/lib/typescript/components/picker/surfaces.d.ts +5 -1
  349. package/lib/typescript/components/picker/surfaces.d.ts.map +1 -1
  350. package/lib/typescript/components/sheet-header/index.d.ts +24 -0
  351. package/lib/typescript/components/sheet-header/index.d.ts.map +1 -0
  352. package/lib/typescript/components/sheet-header/styles.d.ts +12 -0
  353. package/lib/typescript/components/sheet-header/styles.d.ts.map +1 -0
  354. package/lib/typescript/figma/Icon.figma.d.ts.map +1 -1
  355. package/lib/typescript/figma/Text.figma.d.ts.map +1 -1
  356. package/lib/typescript/providers/toast/insets-container.d.ts +12 -0
  357. package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -1
  358. package/lib/typescript/providers/toast/provider.d.ts +1 -1
  359. package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
  360. package/lib/typescript/providers/toast/types.d.ts +21 -4
  361. package/lib/typescript/providers/toast/types.d.ts.map +1 -1
  362. package/lib/typescript/styles/constants.d.ts +10 -0
  363. package/lib/typescript/styles/constants.d.ts.map +1 -1
  364. package/package.json +5 -5
  365. package/src/components/Alert/index.tsx +5 -2
  366. package/src/components/Avatar/index.tsx +11 -5
  367. package/src/components/Badge/index.tsx +34 -0
  368. package/src/components/Badge/styles.ts +2 -2
  369. package/src/components/BottomSheet/index.tsx +156 -125
  370. package/src/components/BottomSheet/styles.ts +1 -22
  371. package/src/components/Button/index.tsx +10 -2
  372. package/src/components/Card/index.tsx +14 -0
  373. package/src/components/Checkbox/index.tsx +1 -1
  374. package/src/components/Chip/index.tsx +2 -2
  375. package/src/components/ColorArea/ColorAreaPaint.tsx +51 -0
  376. package/src/components/ColorArea/ColorAreaPaint.web.tsx +31 -0
  377. package/src/components/ColorArea/index.tsx +71 -0
  378. package/src/components/ColorArea/styles.ts +18 -0
  379. package/src/components/ColorField/index.tsx +181 -0
  380. package/src/components/ColorField/styles.ts +20 -0
  381. package/src/components/ColorPicker/index.tsx +110 -0
  382. package/src/components/ColorPicker/styles.ts +33 -0
  383. package/src/components/ColorSlider/ColorSliderRailPaint.tsx +60 -0
  384. package/src/components/ColorSlider/ColorSliderRailPaint.web.tsx +33 -0
  385. package/src/components/ColorSlider/index.tsx +147 -0
  386. package/src/components/ColorSlider/styles.ts +72 -0
  387. package/src/components/ColorSwatch/index.tsx +56 -0
  388. package/src/components/ColorSwatch/styles.ts +24 -0
  389. package/src/components/ColorSwatchPicker/index.tsx +150 -0
  390. package/src/components/ColorSwatchPicker/styles.ts +32 -0
  391. package/src/components/CurrencyInput/index.tsx +2 -2
  392. package/src/components/Dialog/index.tsx +10 -0
  393. package/src/components/Dialog/styles.ts +1 -0
  394. package/src/components/Divider/index.tsx +6 -1
  395. package/src/components/Form/styles.ts +1 -1
  396. package/src/components/FullScreenDialog/animation.ts +22 -0
  397. package/src/components/FullScreenDialog/index.tsx +484 -0
  398. package/src/components/FullScreenDialog/styles.ts +23 -0
  399. package/src/components/Heading/styles.ts +3 -0
  400. package/src/components/Icon/index.tsx +46 -6
  401. package/src/components/Icon/styles.ts +15 -0
  402. package/src/components/IconButton/styles.ts +7 -4
  403. package/src/components/Input/index.tsx +2 -2
  404. package/src/components/InsuranceDisclosure/index.tsx +1 -0
  405. package/src/components/Link/index.tsx +3 -1
  406. package/src/components/ListItem/index.tsx +48 -4
  407. package/src/components/ListItem/styles.ts +7 -0
  408. package/src/components/Menu/index.tsx +2 -2
  409. package/src/components/ProgressSegmented/index.tsx +10 -3
  410. package/src/components/Radio/index.tsx +1 -0
  411. package/src/components/ScopedTheme/index.tsx +11 -3
  412. package/src/components/Select/index.tsx +1 -1
  413. package/src/components/Skeleton/index.tsx +5 -1
  414. package/src/components/Stack/HStack.tsx +6 -0
  415. package/src/components/Stack/VStack.tsx +6 -0
  416. package/src/components/Switch/index.tsx +1 -1
  417. package/src/components/Tabs/index.tsx +2 -2
  418. package/src/components/Text/index.tsx +32 -5
  419. package/src/components/Text/styles.ts +39 -1
  420. package/src/components/Textarea/index.tsx +1 -0
  421. package/src/components/Tile/index.tsx +49 -0
  422. package/src/components/Toast/hooks.ts +0 -1
  423. package/src/components/Toast/index.tsx +69 -17
  424. package/src/components/Toast/styles.ts +60 -21
  425. package/src/components/Toast/types.ts +10 -1
  426. package/src/components/ToggleButton/index.tsx +9 -7
  427. package/src/components/index.ts +7 -0
  428. package/src/components/picker/styles.ts +6 -2
  429. package/src/components/picker/surfaces.tsx +15 -2
  430. package/src/components/sheet-header/index.tsx +148 -0
  431. package/src/components/sheet-header/styles.ts +28 -0
  432. package/src/providers/toast/insets-container.tsx +23 -9
  433. package/src/providers/toast/provider.tsx +49 -15
  434. package/src/providers/toast/types.ts +21 -4
  435. package/src/styles/constants.ts +13 -0
@@ -5,9 +5,14 @@ export interface DividerProps extends ViewProps {
5
5
  className?: string;
6
6
  /** Renders a vertical divider instead of the default horizontal orientation. */
7
7
  vertical?: boolean;
8
+ /**
9
+ * When present, splits the divider into line, content, line.
10
+ * Use `Divider.Label` so the label receives the correct typography and accessibility treatment.
11
+ */
8
12
  children?: ReactNode;
9
13
  }
10
- export interface DividerLabelProps extends TextProps {
14
+ export interface DividerLabelProps extends Omit<TextProps, 'color'> {
15
+ /** Renders the consumer's child element in place of the default `Text` host. */
11
16
  asChild?: boolean;
12
17
  className?: string;
13
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Divider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAS/C,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,QAAA,MAAM,WAAW,+FAkChB,CAAC;AAIF,QAAA,MAAM,YAAY,oGAgBjB,CAAC;AAIF,KAAK,wBAAwB,GAAG,OAAO,WAAW,GAAG;IACnD,KAAK,EAAE,OAAO,YAAY,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,OAAO,EAEd,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Divider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAS/C,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;IACjE,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,QAAA,MAAM,WAAW,+FAkChB,CAAC;AAIF,QAAA,MAAM,YAAY,oGAgBjB,CAAC;AAIF,KAAK,wBAAwB,GAAG,OAAO,WAAW,GAAG;IACnD,KAAK,EAAE,OAAO,YAAY,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,OAAO,EAEd,wBAAwB,CAAC"}
@@ -3,7 +3,7 @@ export declare const drawerPortalVariants: (props?: import("class-variance-autho
3
3
  export declare const drawerOverlayVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
4
  export declare const drawerPanelVariants: (props?: ({
5
5
  size?: "small" | "default" | "large" | null | undefined;
6
- variant?: "permanent" | "modal" | null | undefined;
6
+ variant?: "modal" | "permanent" | null | undefined;
7
7
  placement?: "bottom" | "left" | "right" | "top" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export declare const drawerHeaderVariants: (props?: ({
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,oFAA0B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,oFAA+B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const FULL_SCREEN_DIALOG_ENTER_MS = 300;
2
+ export declare const FULL_SCREEN_DIALOG_EXIT_MS = 220;
3
+ export declare const WEB_TRANSITION_SAFETY_MS: number;
4
+ /** Native slide-up surface motion. `offscreen` is the distance below the viewport to start from. */
5
+ export declare function getFullScreenDialogSurfaceMotion(offscreen: number): {
6
+ entering: import("react-native-reanimated").ReanimatedKeyframe;
7
+ exiting: import("react-native-reanimated").ReanimatedKeyframe;
8
+ };
9
+ //# sourceMappingURL=animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScreenDialog/animation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAoC,CAAC;AAK1E,oGAAoG;AACpG,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,MAAM;;;EAWjE"}
@@ -0,0 +1,85 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type IDialogContentProps, type IDialogRootProps, type IDialogTriggerProps } from '@cdx-ui/primitives';
4
+ import { type AnimationRootDisableAll } from '../../animation';
5
+ export interface FullScreenDialogRootProps extends Omit<ViewProps, 'children' | 'role'>, Omit<IDialogRootProps, 'closeOnBackdropPress' | 'role' | 'onOpenChange' | 'defaultOpen' | 'closeOnEscKey' | 'children'> {
6
+ /**
7
+ * Called with the next open state. Fires `false` for the header close button, Escape, and
8
+ * Android back while the header has no `onBack`.
9
+ */
10
+ onOpenChange?: (open: boolean) => void;
11
+ /** Initial open state when uncontrolled. @default false */
12
+ defaultOpen?: boolean;
13
+ /**
14
+ * Close when Escape is pressed. Web only. Escape never steps back; Android back is routed
15
+ * by the header's `onBack` independently of this prop.
16
+ * @default true
17
+ */
18
+ closeOnEscKey?: boolean;
19
+ /** `FullScreenDialog.Trigger` and `FullScreenDialog.Popup`. */
20
+ children: ReactNode;
21
+ /** Classes for the root wrapper around the trigger. */
22
+ className?: string;
23
+ /** Pass `'disable-all'` to turn off the popup's enter and exit motion. */
24
+ animation?: AnimationRootDisableAll;
25
+ }
26
+ declare const FullScreenDialogRoot: import("react").ForwardRefExoticComponent<FullScreenDialogRootProps & import("react").RefAttributes<View>>;
27
+ export interface FullScreenDialogTriggerProps extends Omit<IDialogTriggerProps, 'asChild'> {
28
+ /** Render the single child as the trigger instead of a `Pressable`. */
29
+ asChild?: boolean;
30
+ /** Classes for the trigger. */
31
+ className?: string;
32
+ /** Content that opens the dialog when pressed. */
33
+ children?: ReactNode;
34
+ }
35
+ declare const FullScreenDialogTrigger: import("react").ForwardRefExoticComponent<FullScreenDialogTriggerProps & import("react").RefAttributes<View>>;
36
+ export interface FullScreenDialogPopupProps extends Omit<IDialogContentProps, 'asChild' | 'forceMount' | 'avoidKeyboard' | 'keyboardVerticalOffset'> {
37
+ /** Classes for the page surface, merged after the defaults. */
38
+ className?: string;
39
+ /** `FullScreenDialog.Header` and `FullScreenDialog.Content`. Bottom sheets declared here present above the page. */
40
+ children?: ReactNode;
41
+ }
42
+ declare const FullScreenDialogPopup: import("react").ForwardRefExoticComponent<FullScreenDialogPopupProps & import("react").RefAttributes<View>>;
43
+ export interface FullScreenDialogHeaderProps {
44
+ /** Title text. Labels the dialog. Ignored when `children` is set. */
45
+ title?: string;
46
+ /** Secondary line under the title. Has no effect without `title`, or when `children` is set. */
47
+ subtitle?: string;
48
+ /**
49
+ * Custom header content. Replaces `title` and `subtitle`. The consumer then owns the
50
+ * dialog's accessible name and focus on step change: focus doesn't move to the header.
51
+ */
52
+ children?: ReactNode;
53
+ /** Classes for the header region, which includes the top safe-area padding. */
54
+ className?: string;
55
+ /** Called by the close button. @default Closes the dialog (`onOpenChange(false)`). */
56
+ onClose?: () => void;
57
+ /** Accessible name for the close button. @default Close */
58
+ closeAccessibilityLabel?: string;
59
+ /**
60
+ * Shows the back button when set. Android system back calls it too, instead of
61
+ * closing the dialog. Escape on web always closes.
62
+ */
63
+ onBack?: () => void;
64
+ /** Accessible name for the back button. @default Go back */
65
+ backAccessibilityLabel?: string;
66
+ }
67
+ declare const FullScreenDialogHeader: import("react").ForwardRefExoticComponent<FullScreenDialogHeaderProps & import("react").RefAttributes<View>>;
68
+ export interface FullScreenDialogContentProps extends ViewProps {
69
+ /** Render the single child as the content region instead of a `View`. */
70
+ asChild?: boolean;
71
+ /** Classes for the content region, merged after the defaults. */
72
+ className?: string;
73
+ /** Page body. Usually a `ScrollView`. */
74
+ children?: ReactNode;
75
+ }
76
+ declare const FullScreenDialogContent: import("react").ForwardRefExoticComponent<FullScreenDialogContentProps & import("react").RefAttributes<View>>;
77
+ type FullScreenDialogCompoundComponent = typeof FullScreenDialogRoot & {
78
+ Trigger: typeof FullScreenDialogTrigger;
79
+ Popup: typeof FullScreenDialogPopup;
80
+ Header: typeof FullScreenDialogHeader;
81
+ Content: typeof FullScreenDialogContent;
82
+ };
83
+ export declare const FullScreenDialog: FullScreenDialogCompoundComponent;
84
+ export {};
85
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScreenDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,IAAI,EACJ,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAUL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK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E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2DAA2D;IAC3D,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,4DAA4D;IAC5D,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,sBAAsB,8GAuD3B,CAAC;AAQF,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,uBAAuB,+GAiB5B,CAAC;AAQF,KAAK,iCAAiC,GAAG,OAAO,oBAAoB,GAAG;IACrE,OAAO,EAAE,OAAO,uBAAuB,CAAC;IACxC,KAAK,EAAE,OAAO,qBAAqB,CAAC;IACpC,MAAM,EAAE,OAAO,sBAAsB,CAAC;IACtC,OAAO,EAAE,OAAO,uBAAuB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAKvB,iCAAiC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const fullScreenDialogPortalVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const fullScreenDialogPopupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ /** Paints the surface behind the status bar inset above the header row. */
4
+ export declare const fullScreenDialogHeaderVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const fullScreenDialogContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/FullScreenDialog/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,oFAIzC,CAAC;AAEH,eAAO,MAAM,6BAA6B,oFASxC,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,8BAA8B,oFAA0C,CAAC;AAEtF,eAAO,MAAM,+BAA+B,oFAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,YAAY;;8EAmBxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,YAAY;;8EAsBxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1,27 +1,19 @@
1
1
  import type { ForgeIcon, ForgeIconProps } from '@cdx-ui/icons';
2
- export type IconProps = ForgeIconProps & {
2
+ import { type IconVariantProps } from './styles';
3
+ export type IconColor = NonNullable<IconVariantProps['color']>;
4
+ type SvgColor = NonNullable<ForgeIconProps['color']>;
5
+ export type IconProps = Omit<ForgeIconProps, 'color'> & {
6
+ /**
7
+ * Semantic content color, mapped to the matching `text-content-*` token.
8
+ *
9
+ * Any other value is deprecated: it is passed to the SVG unchanged, as before
10
+ * the semantic colors existed, and warns once in development.
11
+ * @default 'primary'
12
+ */
13
+ color?: IconColor | (string & {}) | Exclude<SvgColor, string>;
3
14
  className?: string;
4
15
  as: ForgeIcon;
5
16
  };
6
- /**
7
- * A wrapper component for CDX icons with Uniwind `className` support via `withUniwind`.
8
- *
9
- * This component allows you to render any CDX icon while applying utility classes
10
- * using `uniwind`. It avoids the need to wrap or configure each icon individually.
11
- *
12
- * @component
13
- * @example
14
- * ```tsx
15
- * import { Icon } from '@cdx-ui/components';
16
- * import { ArrowRight } from '@cdx-ui/icons';
17
- *
18
- * <Icon as={ArrowRight} className="text-red-500 size-4" />
19
- * ```
20
- *
21
- * @param {ForgeIcon} as - The Forge icon component to render.
22
- * @param {string} className - Utility classes to style the icon using Uniwind.
23
- * @param {number} size - Icon size (overrides the size class).
24
- * @param {...ForgeIconProps} ...props - Additional icon props passed to the "as" icon.
25
- */
26
- export declare function Icon({ as: IconComponent, className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Icon({ as: IconComponent, color, className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
27
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,SAAS,CAAC;CACf,CAAC;AAwBF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAQzE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/D,KAAK,QAAQ,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAErD,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,SAAS,CAAC;CACf,CAAC;AAqDF,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,KAAiB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAwB5F"}
@@ -0,0 +1,6 @@
1
+ import { type VariantProps } from '@cdx-ui/utils';
2
+ export declare const iconStyle: (props?: ({
3
+ color?: "primary" | "secondary" | "tertiary" | "action" | "danger" | "warning" | "success" | "info" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export type IconVariantProps = VariantProps<typeof iconStyle>;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAKvD,eAAO,MAAM,SAAS;;8EAOpB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -1,7 +1,12 @@
1
1
  import { type VariantProps } from '@cdx-ui/utils';
2
+ /** Box classes per size. Shared with layout placeholders that must match an `IconButton`'s footprint. */
3
+ export declare const iconButtonSizeClassNames: {
4
+ readonly default: "h-11 w-11 min-w-11 shrink-0 p-2.5";
5
+ readonly small: "h-8 w-8 min-w-8 shrink-0 p-1.5";
6
+ };
2
7
  export declare const iconButtonRootVariants: (props?: ({
3
8
  variant?: "solid" | "ghost" | "subtle" | null | undefined;
4
- color?: "danger" | "action" | "neutral" | null | undefined;
9
+ color?: "action" | "danger" | "neutral" | null | undefined;
5
10
  size?: "small" | "default" | null | undefined;
6
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
12
  export declare const iconButtonGlyphVariants: (props?: ({
@@ -9,7 +14,7 @@ export declare const iconButtonGlyphVariants: (props?: ({
9
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
15
  export declare const iconButtonIconColorVariants: (props?: ({
11
16
  variant?: "solid" | "ghost" | "subtle" | null | undefined;
12
- color?: "danger" | "action" | "neutral" | null | undefined;
17
+ color?: "action" | "danger" | "neutral" | null | undefined;
13
18
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
19
  export type IconButtonVariantProps = VariantProps<typeof iconButtonRootVariants>;
15
20
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,sBAAsB;;;;8EAwIlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;8EA4BtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,yGAAyG;AACzG,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;8EAqIlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;8EA4BtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -15,7 +15,7 @@ export interface InputProps extends ViewProps, IInputFieldProps {
15
15
  */
16
16
  variant?: 'outline';
17
17
  /**
18
- * Height and padding scale.
18
+ * Height, padding, and field font size.
19
19
  * @default 'default'
20
20
  */
21
21
  size?: 'default' | 'small';
@@ -37,7 +37,7 @@ export interface InputSlotProps extends ViewProps, IInputSlotProps {
37
37
  children?: ReactNode;
38
38
  }
39
39
  declare const InputSlot: import("react").ForwardRefExoticComponent<InputSlotProps & import("react").RefAttributes<View>>;
40
- export interface InputIconProps extends Omit<IconProps, 'children' | 'as'> {
40
+ export interface InputIconProps extends Omit<IconProps, 'children' | 'as' | 'color'> {
41
41
  /** Render the consumer's child element in place of the default icon host. */
42
42
  asChild?: boolean;
43
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAkB/C,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,gBAAgB;IAC7D,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;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ACH,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;CACtB;AAED,QAAA,MAAM,SAAS;kDAAiD,cAAc;;CA4B7E,CAAC;AAQF,KAAK,sBAAsB,GAAG,OAAO,SAAS,GAAG;IAC/C,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAIZ,sBAAsB,CAAC"}
@@ -9,6 +9,7 @@ type InsuranceDisclosureSharedProps = Omit<HStackProps, 'children'> & {
9
9
  * Pass `framed` to restore chrome; padding is now `px-3 py-2`.
10
10
  */
11
11
  framed?: boolean;
12
+ /** Disclosure copy rendered beside the logo. */
12
13
  label?: string;
13
14
  className?: string;
14
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InsuranceDisclosure/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAI9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS3D,KAAK,8BAA8B,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG;IACpE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,mCAAoC,SAAQ,8BAA8B;IACzF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,mEAAmE;AACnE,MAAM,WAAW,kCAAmC,SAAQ,8BAA8B;IACxF,uEAAuE;IACvE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACzC,+EAA+E;IAC/E,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAChC,mCAAmC,GACnC,kCAAkC,CAAC;AAEvC,eAAO,MAAM,mBAAmB,2GAkD9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InsuranceDisclosure/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAI9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS3D,KAAK,8BAA8B,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG;IACpE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,mCAAoC,SAAQ,8BAA8B;IACzF,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,mEAAmE;AACnE,MAAM,WAAW,kCAAmC,SAAQ,8BAA8B;IACxF,uEAAuE;IACvE,UAAU,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACzC,+EAA+E;IAC/E,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAChC,mCAAmC,GACnC,kCAAkC,CAAC;AAEvC,eAAO,MAAM,mBAAmB,2GAkD9B,CAAC"}
@@ -4,18 +4,20 @@ import { type ILinkProps } from '@cdx-ui/primitives';
4
4
  import { type IconProps } from '../Icon';
5
5
  export { LinkProvider, type LinkConfig, type LinkAction } from '@cdx-ui/primitives';
6
6
  export interface LinkProps extends ILinkProps {
7
+ /** Renders the consumer's child element in place of the default pressable host. */
7
8
  asChild?: boolean;
8
9
  className?: string;
9
10
  children?: ReactNode;
10
11
  }
11
12
  declare const LinkRoot: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<View>>;
12
13
  export interface LinkLabelProps extends TextProps {
14
+ /** Renders the consumer's child element in place of the default `Text` host. */
13
15
  asChild?: boolean;
14
16
  className?: string;
15
17
  children?: ReactNode;
16
18
  }
17
19
  declare const LinkLabel: import("react").ForwardRefExoticComponent<LinkLabelProps & import("react").RefAttributes<Text>>;
18
- export interface LinkIconProps extends Omit<IconProps, 'children'> {
20
+ export interface LinkIconProps extends Omit<IconProps, 'children' | 'color'> {
19
21
  }
20
22
  declare const LinkIcon: {
21
23
  ({ className, style, as, ...props }: LinkIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAY,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAQ/C,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMpF,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,QAAQ,4FAcZ,CAAC;AAQH,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,iGA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QAAA,MAAM,QAAQ;yCAAwC,aAAa;;CAalE,CAAC;AAQF,KAAK,qBAAqB,GAAG,OAAO,QAAQ,GAAG;IAC7C,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,IAAI,EAAE,OAAO,QAAQ,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,IAAI,EAGX,qBAAqB,CAAC"}
@@ -1,12 +1,35 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { Text, View, type TextProps, type ViewProps } from 'react-native';
3
3
  import { type IListItemProps, type ListItemCrossAlign } from '@cdx-ui/primitives';
4
- import { type ListItemVariantProps } from './styles';
4
+ import { type ListItemSectionHeaderVariantProps, type ListItemVariantProps } from './styles';
5
5
  export interface ListItemProps extends Omit<IListItemProps, 'crossAlign'>, ListItemVariantProps {
6
+ /**
7
+ * Vertical density. `compact` reduces padding and min-height; typography stays the same.
8
+ * @default 'default'
9
+ * @remarks `'default' | 'compact'`
10
+ * @fumadocsType `'default' | 'compact'`
11
+ */
12
+ size?: 'default' | 'compact' | null | undefined;
13
+ /**
14
+ * Bottom border between rows. Set `false` on the last row to avoid a trailing border.
15
+ * @default true
16
+ * @remarks `boolean`
17
+ * @fumadocsType `boolean`
18
+ */
19
+ showSeparator?: boolean | null | undefined;
20
+ /**
21
+ * Vertical alignment of the leading, content, and trailing slots.
22
+ * `start` top-aligns them so trailing text lines up with the title.
23
+ * @default 'center'
24
+ * @remarks `'center' | 'start'`
25
+ * @fumadocsType `'center' | 'start'`
26
+ */
27
+ crossAlign?: 'center' | 'start' | null | undefined;
6
28
  className?: string;
7
29
  }
8
30
  declare const ListItemRoot: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<View>>;
9
31
  export interface ListItemLeadingSlotProps extends ViewProps {
32
+ /** Renders the consumer's child element in place of the default `View` host. */
10
33
  asChild?: boolean;
11
34
  className?: string;
12
35
  /**
@@ -18,39 +41,55 @@ export interface ListItemLeadingSlotProps extends ViewProps {
18
41
  }
19
42
  declare const ListItemLeadingSlot: import("react").ForwardRefExoticComponent<ListItemLeadingSlotProps & import("react").RefAttributes<View>>;
20
43
  export interface ListItemContentProps extends ViewProps {
44
+ /** Renders the consumer's child element in place of the default `View` host. */
21
45
  asChild?: boolean;
22
46
  className?: string;
23
47
  }
24
48
  declare const ListItemContent: import("react").ForwardRefExoticComponent<ListItemContentProps & import("react").RefAttributes<View>>;
25
49
  export interface ListItemTitleProps extends TextProps {
50
+ /** Renders the consumer's child element in place of the default `Text` host. */
26
51
  asChild?: boolean;
27
52
  className?: string;
28
53
  }
29
54
  declare const ListItemTitle: import("react").ForwardRefExoticComponent<ListItemTitleProps & import("react").RefAttributes<Text>>;
30
55
  export interface ListItemDescriptionProps extends TextProps {
56
+ /** Renders the consumer's child element in place of the default `Text` host. */
31
57
  asChild?: boolean;
32
58
  className?: string;
33
59
  }
34
60
  declare const ListItemDescription: import("react").ForwardRefExoticComponent<ListItemDescriptionProps & import("react").RefAttributes<Text>>;
35
61
  export interface ListItemMetaProps extends TextProps {
62
+ /** Renders the consumer's child element in place of the default `Text` host. */
36
63
  asChild?: boolean;
37
64
  className?: string;
38
65
  }
39
66
  declare const ListItemMeta: import("react").ForwardRefExoticComponent<ListItemMetaProps & import("react").RefAttributes<Text>>;
40
67
  export interface ListItemTrailingSlotProps extends ViewProps {
68
+ /** Renders the consumer's child element in place of the default `View` host. */
41
69
  asChild?: boolean;
42
70
  className?: string;
43
71
  }
44
72
  declare const ListItemTrailingSlot: import("react").ForwardRefExoticComponent<ListItemTrailingSlotProps & import("react").RefAttributes<View>>;
73
+ export type ListItemSectionHeaderVariant = NonNullable<ListItemSectionHeaderVariantProps['variant']>;
45
74
  export interface ListItemSectionHeaderProps extends ViewProps {
75
+ /** Renders the consumer's child element in place of the default `View` host. */
46
76
  asChild?: boolean;
47
77
  className?: string;
48
- /** Primary section label (e.g. date heading). */
78
+ /** Primary section label. String or number children are styled as an uppercase label. */
49
79
  children: ReactNode;
50
80
  /** Optional right-aligned adornment (e.g. section Chip). */
51
81
  trailing?: ReactNode;
52
82
  /**
53
- * Whether to expose the top divider marker for styling.
83
+ * Background treatment. `ghost` has no fill and a bottom border; `subtle` adds a neutral fill
84
+ * (matching `subtle` on Avatar, Chip, and IconButton) and drops the bottom border.
85
+ * Label typography is the same for both.
86
+ * @default 'ghost'
87
+ * @remarks `'ghost' | 'subtle'`
88
+ * @fumadocsType `'ghost' | 'subtle'`
89
+ */
90
+ variant?: ListItemSectionHeaderVariant;
91
+ /**
92
+ * Accent top border above the header.
54
93
  * @default true
55
94
  */
56
95
  showDivider?: boolean;
@@ -66,6 +105,6 @@ type ListItemCompound = typeof ListItemRoot & {
66
105
  SectionHeader: typeof ListItemSectionHeader;
67
106
  };
68
107
  export declare const ListItem: ListItemCompound;
69
- export type { ListItemCrossAlign, ListItemVariantProps };
108
+ export type { ListItemCrossAlign, ListItemSectionHeaderVariantProps, ListItemVariantProps };
70
109
  export { listItemContentVariants, listItemDescriptionVariants, listItemLeadingSlotVariants, listItemMetaVariants, listItemRootVariants, listItemSectionHeaderLabelVariants, listItemSectionHeaderVariants, listItemTitleVariants, listItemTrailingSlotVariants, } from './styles';
71
110
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAUL,KAAK,oBAAoB,EAC1B,MAAM,UAAU,CAAC;AAalB,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE,oBAAoB;IAC7F,SAAS,CAAC,EAAE,MAA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const listItemTitleVariants: (props?: import("class-variance-auth
15
15
  export declare const listItemDescriptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
16
16
  export declare const listItemMetaVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
17
17
  export declare const listItemSectionHeaderVariants: (props?: ({
18
+ variant?: "ghost" | "subtle" | null | undefined;
18
19
  showDivider?: boolean | null | undefined;
19
20
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
21
  /** Default section-title typography; applied by `ListItem.SectionHeader` for string/number children. Exported for rare custom composition. */
21
22
  export declare const listItemSectionHeaderLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
22
23
  export type ListItemVariantProps = VariantProps<typeof listItemRootVariants>;
24
+ export type ListItemSectionHeaderVariantProps = VariantProps<typeof listItemSectionHeaderVariants>;
23
25
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B;;8EAgBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAE9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAcvD,eAAO,MAAM,oBAAoB;;;;8EA2ChC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;8EAaxC,CAAC;AAIF,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB,oFAAkD,CAAC;AAErF,eAAO,MAAM,2BAA2B,oFAAwC,CAAC;AAEjF,eAAO,MAAM,oBAAoB,oFAAuC,CAAC;AAIzE,eAAO,MAAM,6BAA6B;;;8EAsBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAE9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC7E,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -62,7 +62,7 @@ export interface MenuItemLabelProps extends TextProps {
62
62
  isChecked?: boolean;
63
63
  }
64
64
  declare const MenuItemLabel: import("react").ForwardRefExoticComponent<MenuItemLabelProps & import("react").RefAttributes<Text>>;
65
- export interface MenuItemIconProps extends Omit<IconProps, 'as' | 'children'> {
65
+ export interface MenuItemIconProps extends Omit<IconProps, 'as' | 'children' | 'color'> {
66
66
  asChild?: boolean;
67
67
  as?: IconProps['as'];
68
68
  position?: IconSlotPosition;
@@ -78,7 +78,7 @@ export interface MenuItemShortcutProps extends TextProps {
78
78
  className?: string;
79
79
  }
80
80
  declare const MenuItemShortcut: import("react").ForwardRefExoticComponent<MenuItemShortcutProps & import("react").RefAttributes<Text>>;
81
- export interface MenuItemIndicatorProps extends Omit<IconProps, 'as' | 'children'> {
81
+ export interface MenuItemIndicatorProps extends Omit<IconProps, 'as' | 'children' | 'color'> {
82
82
  asChild?: boolean;
83
83
  as?: IconProps['as'];
84
84
  isChecked?: boolean;
@@ -1 +1 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,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,QAAQ,EAAE,OAAO,YAAY,CAAC;IAC9B,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,aAAa,EAAE,OAAO,iBAAiB,CAAC;IACxC,UAAU,EAAE,OAAO,cAAc,CAAC;IAClC,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,IAAI,EAkBX,qBAAqB,CAAC"}
@@ -1,18 +1,25 @@
1
1
  import { View, type ViewProps } from 'react-native';
2
2
  import { type ProgressSegmentedVariants } from './styles';
3
3
  export interface ProgressSegmentedProps extends ViewProps, ProgressSegmentedVariants {
4
- /** Current step (1-based index into the segment count) */
4
+ /**
5
+ * Current step (1-based index into the segment count).
6
+ * Clamped to `[0, segments]` (`0` leaves every segment incomplete).
7
+ */
5
8
  readonly step: number;
6
9
  /**
7
10
  * Number of segments in the bar. Matches the Figma `segments` variant (2–6 in the design
8
11
  * system file); the prop accepts any positive integer for backward compatibility.
12
+ * @default 5
9
13
  */
10
14
  readonly segments?: number;
11
- /** When true, the current step segment is marked as complete rather than in-progress */
15
+ /**
16
+ * When true, the current step segment is marked as complete rather than in-progress.
17
+ * @default false
18
+ */
12
19
  readonly isStepComplete?: boolean;
13
20
  /**
14
21
  * Returns the accessibility value text announced by screen readers. Receives the clamped
15
- * step, segment count, and whether the step is complete.
22
+ * step, segment count, and whether the step is complete. Replaces the English default.
16
23
  */
17
24
  readonly getAccessibilityText?: (step: number, segmentCount: number, isStepComplete: boolean) => string;
18
25
  readonly className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressSegmented/index.tsx"],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,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,yGA2D7B,CAAC"}
@@ -27,6 +27,7 @@ export interface RadioGroupProps extends ViewProps {
27
27
  isDisabled?: boolean;
28
28
  isInvalid?: boolean;
29
29
  isRequired?: boolean;
30
+ /** Makes every radio in the group read-only. Items stay focusable, but the selection cannot be changed. */
30
31
  isReadOnly?: boolean;
31
32
  direction?: 'column' | 'row';
32
33
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAOL,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAc5B,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,6FAeb,CAAC;AAoBH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,cAAc,sGAwDnB,CAAC;AAQF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,kGAyBf,CAAC;AAQF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,S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ScopedTheme` to keep `uniwind` an internal implementation detail.
10
10
  *
11
- * Web requires `@custom-variant dark (&:where(.dark, .dark *));` in the consuming
12
- * app's `global.css`. See the Storybook story (`Theming/ScopedTheme`) for the full
13
- * mechanism, light-vs-dark asymmetry, and dynamic-switch caveat.
11
+ * On web, the consuming app's `global.css` must include
12
+ * `@custom-variant dark (&:where(.dark, .dark *));`. Without that directive,
13
+ * `theme="dark"` does not flip CSS variables. Native applies the scoped theme
14
+ * through React context and does not use the directive.
15
+ *
16
+ * On web, `theme="dark"` forces dark tokens inside a light app. `theme="light"`
17
+ * applies when no `.dark` ancestor is present; there is no `@custom-variant light`
18
+ * to override one. Native honors either value through context.
19
+ *
20
+ * Pass a static `theme`. Changing `theme` on an already-mounted instance can leave
21
+ * stale styles; remount to switch.
14
22
  */
15
23
  export declare const ScopedTheme: (props: ScopedThemeProps) => import("react/jsx-runtime").JSX.Element;
16
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}