@cdx-ui/components 0.3.5 → 0.3.7

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 (416) hide show
  1. package/README.md +1 -1
  2. package/coverage.svg +1 -1
  3. package/docs/components/bar-chart/content.md +703 -0
  4. package/docs/components/content.md +10 -1
  5. package/docs/components/country-flag/content.md +232 -0
  6. package/docs/components/data-grid/content.md +3 -1
  7. package/docs/components/icon/content.md +1 -1
  8. package/docs/components/input/content.md +1 -0
  9. package/docs/components/line-chart/content.md +567 -0
  10. package/docs/components/pie-chart/content.md +493 -0
  11. package/docs/components/progress-bar/content.md +164 -3
  12. package/docs/components/progress-segmented/content.md +1 -1
  13. package/docs/components/select/content.md +1 -0
  14. package/docs/components/stepper/content.md +599 -0
  15. package/docs/components/system-alert/content.md +533 -0
  16. package/docs/foundations/expressions/icons/content.md +2 -1
  17. package/docs/foundations/styles/tokens/all-tokens/content.md +2 -1
  18. package/docs/getting-started/developers/content.md +1 -1
  19. package/docs/llms.txt +12 -0
  20. package/docs/patterns/content.md +1 -0
  21. package/docs/patterns/dashboard/content.md +423 -19
  22. package/docs/patterns/insights/content.md +659 -0
  23. package/docs/resources/content.md +1 -0
  24. package/docs/resources/release-notes/0.3.5/content.md +7 -0
  25. package/docs/resources/release-notes/0.3.6/content.md +29 -0
  26. package/docs/resources/release-notes/content.md +2 -0
  27. package/docs/resources/skills/content.md +66 -0
  28. package/lib/commonjs/components/BarChart/geometry.js +1130 -0
  29. package/lib/commonjs/components/BarChart/geometry.js.map +1 -0
  30. package/lib/commonjs/components/BarChart/index.js +935 -0
  31. package/lib/commonjs/components/BarChart/index.js.map +1 -0
  32. package/lib/commonjs/components/BarChart/styles.js +26 -0
  33. package/lib/commonjs/components/BarChart/styles.js.map +1 -0
  34. package/lib/commonjs/components/Button/index.js +2 -2
  35. package/lib/commonjs/components/Button/index.js.map +1 -1
  36. package/lib/commonjs/components/CountryFlag/index.js +56 -0
  37. package/lib/commonjs/components/CountryFlag/index.js.map +1 -0
  38. package/lib/commonjs/components/Input/index.js.map +1 -1
  39. package/lib/commonjs/components/LineChart/geometry.js +698 -0
  40. package/lib/commonjs/components/LineChart/geometry.js.map +1 -0
  41. package/lib/commonjs/components/LineChart/index.js +744 -0
  42. package/lib/commonjs/components/LineChart/index.js.map +1 -0
  43. package/lib/commonjs/components/LineChart/styles.js +25 -0
  44. package/lib/commonjs/components/LineChart/styles.js.map +1 -0
  45. package/lib/commonjs/components/PieChart/geometry.js +216 -0
  46. package/lib/commonjs/components/PieChart/geometry.js.map +1 -0
  47. package/lib/commonjs/components/PieChart/index.js +476 -0
  48. package/lib/commonjs/components/PieChart/index.js.map +1 -0
  49. package/lib/commonjs/components/PieChart/styles.js +88 -0
  50. package/lib/commonjs/components/PieChart/styles.js.map +1 -0
  51. package/lib/commonjs/components/ProgressBar/index.js +44 -12
  52. package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
  53. package/lib/commonjs/components/ProgressBar/styles.js +31 -2
  54. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
  55. package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js +9 -31
  56. package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js.map +1 -1
  57. package/lib/commonjs/components/ProgressCircle/ProgressRing.js +52 -0
  58. package/lib/commonjs/components/ProgressCircle/ProgressRing.js.map +1 -0
  59. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +8 -7
  60. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -1
  61. package/lib/commonjs/components/Select/index.js.map +1 -1
  62. package/lib/commonjs/components/Stepper/index.js +369 -0
  63. package/lib/commonjs/components/Stepper/index.js.map +1 -0
  64. package/lib/commonjs/components/Stepper/styles.js +211 -0
  65. package/lib/commonjs/components/Stepper/styles.js.map +1 -0
  66. package/lib/commonjs/components/Stepper/useStepperLabelFit.js +22 -0
  67. package/lib/commonjs/components/Stepper/useStepperLabelFit.js.map +1 -0
  68. package/lib/commonjs/components/Stepper/useStepperLabelFit.web.js +52 -0
  69. package/lib/commonjs/components/Stepper/useStepperLabelFit.web.js.map +1 -0
  70. package/lib/commonjs/components/Stepper/useStepperRingColors.js +31 -0
  71. package/lib/commonjs/components/Stepper/useStepperRingColors.js.map +1 -0
  72. package/lib/commonjs/components/SystemAlert/animation.js +218 -0
  73. package/lib/commonjs/components/SystemAlert/animation.js.map +1 -0
  74. package/lib/commonjs/components/SystemAlert/index.js +525 -0
  75. package/lib/commonjs/components/SystemAlert/index.js.map +1 -0
  76. package/lib/commonjs/components/SystemAlert/styles.js +178 -0
  77. package/lib/commonjs/components/SystemAlert/styles.js.map +1 -0
  78. package/lib/commonjs/components/SystemAlert/useSystemAlertStatusBarStyle.js +53 -0
  79. package/lib/commonjs/components/SystemAlert/useSystemAlertStatusBarStyle.js.map +1 -0
  80. package/lib/commonjs/components/Tabs/index.js +4 -0
  81. package/lib/commonjs/components/Tabs/index.js.map +1 -1
  82. package/lib/commonjs/components/Tabs/styles.js +1 -1
  83. package/lib/commonjs/components/Tabs/styles.js.map +1 -1
  84. package/lib/commonjs/components/chart/ChartInspector.js +610 -0
  85. package/lib/commonjs/components/chart/ChartInspector.js.map +1 -0
  86. package/lib/commonjs/components/chart/format.js +93 -0
  87. package/lib/commonjs/components/chart/format.js.map +1 -0
  88. package/lib/commonjs/components/chart/hiddenSvgProps.js +23 -0
  89. package/lib/commonjs/components/chart/hiddenSvgProps.js.map +1 -0
  90. package/lib/commonjs/components/chart/index.js +2 -0
  91. package/lib/commonjs/components/chart/index.js.map +1 -0
  92. package/lib/commonjs/components/chart/motion.js +97 -0
  93. package/lib/commonjs/components/chart/motion.js.map +1 -0
  94. package/lib/commonjs/components/chart/palette.js +178 -0
  95. package/lib/commonjs/components/chart/palette.js.map +1 -0
  96. package/lib/commonjs/components/chart/size.js +34 -0
  97. package/lib/commonjs/components/chart/size.js.map +1 -0
  98. package/lib/commonjs/components/chart/ticks.js +59 -0
  99. package/lib/commonjs/components/chart/ticks.js.map +1 -0
  100. package/lib/commonjs/components/chart/types.js +6 -0
  101. package/lib/commonjs/components/chart/types.js.map +1 -0
  102. package/lib/commonjs/components/chart/useChartHostWidth.js +27 -0
  103. package/lib/commonjs/components/chart/useChartHostWidth.js.map +1 -0
  104. package/lib/commonjs/components/index.js +72 -0
  105. package/lib/commonjs/components/index.js.map +1 -1
  106. package/lib/commonjs/figma/Accordion.figma.js +2 -2
  107. package/lib/commonjs/figma/Accordion.figma.js.map +1 -1
  108. package/lib/commonjs/figma/Alert.figma.js +7 -7
  109. package/lib/commonjs/figma/Alert.figma.js.map +1 -1
  110. package/lib/commonjs/figma/Badge.Indicator.figma.js +6 -5
  111. package/lib/commonjs/figma/Badge.Indicator.figma.js.map +1 -1
  112. package/lib/commonjs/figma/Badge.figma.js +22 -22
  113. package/lib/commonjs/figma/Badge.figma.js.map +1 -1
  114. package/lib/commonjs/figma/Button.figma.js +5 -2
  115. package/lib/commonjs/figma/Button.figma.js.map +1 -1
  116. package/lib/commonjs/figma/CLAUDE.md +1 -0
  117. package/lib/commonjs/figma/Card.Header.figma.js +8 -4
  118. package/lib/commonjs/figma/Card.Header.figma.js.map +1 -1
  119. package/lib/commonjs/figma/Card.figma.js +2 -1
  120. package/lib/commonjs/figma/Card.figma.js.map +1 -1
  121. package/lib/commonjs/figma/Chip.figma.js +2 -2
  122. package/lib/commonjs/figma/Chip.figma.js.map +1 -1
  123. package/lib/commonjs/figma/CurrencyInput.figma.js +1 -1
  124. package/lib/commonjs/figma/CurrencyInput.figma.js.map +1 -1
  125. package/lib/commonjs/figma/Dialog.figma.js +5 -2
  126. package/lib/commonjs/figma/Dialog.figma.js.map +1 -1
  127. package/lib/commonjs/figma/Divider.figma.js +1 -1
  128. package/lib/commonjs/figma/Divider.figma.js.map +1 -1
  129. package/lib/commonjs/figma/Drawer.figma.js +3 -3
  130. package/lib/commonjs/figma/Drawer.figma.js.map +1 -1
  131. package/lib/commonjs/figma/IconButton.figma.js +10 -4
  132. package/lib/commonjs/figma/IconButton.figma.js.map +1 -1
  133. package/lib/commonjs/figma/Input.figma.js +2 -1
  134. package/lib/commonjs/figma/Input.figma.js.map +1 -1
  135. package/lib/commonjs/figma/Insight.figma.js +3 -3
  136. package/lib/commonjs/figma/Insight.figma.js.map +1 -1
  137. package/lib/commonjs/figma/ProgressBar.figma.js +11 -2
  138. package/lib/commonjs/figma/ProgressBar.figma.js.map +1 -1
  139. package/lib/commonjs/figma/ProgressSegmented.figma.js +9 -1
  140. package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -1
  141. package/lib/commonjs/figma/Select.figma.js +2 -1
  142. package/lib/commonjs/figma/Select.figma.js.map +1 -1
  143. package/lib/commonjs/figma/SystemAlert.Button.figma.js +28 -0
  144. package/lib/commonjs/figma/SystemAlert.Button.figma.js.map +1 -0
  145. package/lib/commonjs/figma/SystemAlert.Close.figma.js +22 -0
  146. package/lib/commonjs/figma/SystemAlert.Close.figma.js.map +1 -0
  147. package/lib/commonjs/figma/SystemAlert.Description.figma.js +20 -0
  148. package/lib/commonjs/figma/SystemAlert.Description.figma.js.map +1 -0
  149. package/lib/commonjs/figma/SystemAlert.IconButton.figma.js +31 -0
  150. package/lib/commonjs/figma/SystemAlert.IconButton.figma.js.map +1 -0
  151. package/lib/commonjs/figma/SystemAlert.figma.js +47 -0
  152. package/lib/commonjs/figma/SystemAlert.figma.js.map +1 -0
  153. package/lib/commonjs/styles.css +0 -1
  154. package/lib/module/components/BarChart/geometry.js +1110 -0
  155. package/lib/module/components/BarChart/geometry.js.map +1 -0
  156. package/lib/module/components/BarChart/index.js +929 -0
  157. package/lib/module/components/BarChart/index.js.map +1 -0
  158. package/lib/module/components/BarChart/styles.js +22 -0
  159. package/lib/module/components/BarChart/styles.js.map +1 -0
  160. package/lib/module/components/Button/index.js +2 -2
  161. package/lib/module/components/Button/index.js.map +1 -1
  162. package/lib/module/components/CountryFlag/index.js +52 -0
  163. package/lib/module/components/CountryFlag/index.js.map +1 -0
  164. package/lib/module/components/Input/index.js.map +1 -1
  165. package/lib/module/components/LineChart/geometry.js +685 -0
  166. package/lib/module/components/LineChart/geometry.js.map +1 -0
  167. package/lib/module/components/LineChart/index.js +738 -0
  168. package/lib/module/components/LineChart/index.js.map +1 -0
  169. package/lib/module/components/LineChart/styles.js +21 -0
  170. package/lib/module/components/LineChart/styles.js.map +1 -0
  171. package/lib/module/components/PieChart/geometry.js +209 -0
  172. package/lib/module/components/PieChart/geometry.js.map +1 -0
  173. package/lib/module/components/PieChart/index.js +471 -0
  174. package/lib/module/components/PieChart/index.js.map +1 -0
  175. package/lib/module/components/PieChart/styles.js +84 -0
  176. package/lib/module/components/PieChart/styles.js.map +1 -0
  177. package/lib/module/components/ProgressBar/index.js +47 -15
  178. package/lib/module/components/ProgressBar/index.js.map +1 -1
  179. package/lib/module/components/ProgressBar/styles.js +31 -2
  180. package/lib/module/components/ProgressBar/styles.js.map +1 -1
  181. package/lib/module/components/ProgressCircle/ProgressCircleRing.js +10 -32
  182. package/lib/module/components/ProgressCircle/ProgressCircleRing.js.map +1 -1
  183. package/lib/module/components/ProgressCircle/ProgressRing.js +48 -0
  184. package/lib/module/components/ProgressCircle/ProgressRing.js.map +1 -0
  185. package/lib/module/components/ScrollShadow/useScrollShadow.js +8 -7
  186. package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -1
  187. package/lib/module/components/Select/index.js.map +1 -1
  188. package/lib/module/components/Stepper/index.js +360 -0
  189. package/lib/module/components/Stepper/index.js.map +1 -0
  190. package/lib/module/components/Stepper/styles.js +206 -0
  191. package/lib/module/components/Stepper/styles.js.map +1 -0
  192. package/lib/module/components/Stepper/useStepperLabelFit.js +18 -0
  193. package/lib/module/components/Stepper/useStepperLabelFit.js.map +1 -0
  194. package/lib/module/components/Stepper/useStepperLabelFit.web.js +48 -0
  195. package/lib/module/components/Stepper/useStepperLabelFit.web.js.map +1 -0
  196. package/lib/module/components/Stepper/useStepperRingColors.js +28 -0
  197. package/lib/module/components/Stepper/useStepperRingColors.js.map +1 -0
  198. package/lib/module/components/SystemAlert/animation.js +213 -0
  199. package/lib/module/components/SystemAlert/animation.js.map +1 -0
  200. package/lib/module/components/SystemAlert/index.js +515 -0
  201. package/lib/module/components/SystemAlert/index.js.map +1 -0
  202. package/lib/module/components/SystemAlert/styles.js +174 -0
  203. package/lib/module/components/SystemAlert/styles.js.map +1 -0
  204. package/lib/module/components/SystemAlert/useSystemAlertStatusBarStyle.js +49 -0
  205. package/lib/module/components/SystemAlert/useSystemAlertStatusBarStyle.js.map +1 -0
  206. package/lib/module/components/Tabs/index.js +4 -0
  207. package/lib/module/components/Tabs/index.js.map +1 -1
  208. package/lib/module/components/Tabs/styles.js +1 -1
  209. package/lib/module/components/Tabs/styles.js.map +1 -1
  210. package/lib/module/components/chart/ChartInspector.js +600 -0
  211. package/lib/module/components/chart/ChartInspector.js.map +1 -0
  212. package/lib/module/components/chart/format.js +84 -0
  213. package/lib/module/components/chart/format.js.map +1 -0
  214. package/lib/module/components/chart/hiddenSvgProps.js +20 -0
  215. package/lib/module/components/chart/hiddenSvgProps.js.map +1 -0
  216. package/lib/module/components/chart/index.js +2 -0
  217. package/lib/module/components/chart/index.js.map +1 -0
  218. package/lib/module/components/chart/motion.js +89 -0
  219. package/lib/module/components/chart/motion.js.map +1 -0
  220. package/lib/module/components/chart/palette.js +168 -0
  221. package/lib/module/components/chart/palette.js.map +1 -0
  222. package/lib/module/components/chart/size.js +29 -0
  223. package/lib/module/components/chart/size.js.map +1 -0
  224. package/lib/module/components/chart/ticks.js +55 -0
  225. package/lib/module/components/chart/ticks.js.map +1 -0
  226. package/lib/module/components/chart/types.js +4 -0
  227. package/lib/module/components/chart/types.js.map +1 -0
  228. package/lib/module/components/chart/useChartHostWidth.js +23 -0
  229. package/lib/module/components/chart/useChartHostWidth.js.map +1 -0
  230. package/lib/module/components/index.js +6 -0
  231. package/lib/module/components/index.js.map +1 -1
  232. package/lib/module/figma/Accordion.figma.js +2 -2
  233. package/lib/module/figma/Accordion.figma.js.map +1 -1
  234. package/lib/module/figma/Alert.figma.js +7 -7
  235. package/lib/module/figma/Alert.figma.js.map +1 -1
  236. package/lib/module/figma/Badge.Indicator.figma.js +6 -5
  237. package/lib/module/figma/Badge.Indicator.figma.js.map +1 -1
  238. package/lib/module/figma/Badge.figma.js +22 -22
  239. package/lib/module/figma/Badge.figma.js.map +1 -1
  240. package/lib/module/figma/Button.figma.js +5 -2
  241. package/lib/module/figma/Button.figma.js.map +1 -1
  242. package/lib/module/figma/CLAUDE.md +1 -0
  243. package/lib/module/figma/Card.Header.figma.js +8 -4
  244. package/lib/module/figma/Card.Header.figma.js.map +1 -1
  245. package/lib/module/figma/Card.figma.js +2 -1
  246. package/lib/module/figma/Card.figma.js.map +1 -1
  247. package/lib/module/figma/Chip.figma.js +2 -2
  248. package/lib/module/figma/Chip.figma.js.map +1 -1
  249. package/lib/module/figma/CurrencyInput.figma.js +1 -1
  250. package/lib/module/figma/CurrencyInput.figma.js.map +1 -1
  251. package/lib/module/figma/Dialog.figma.js +5 -2
  252. package/lib/module/figma/Dialog.figma.js.map +1 -1
  253. package/lib/module/figma/Divider.figma.js +1 -1
  254. package/lib/module/figma/Divider.figma.js.map +1 -1
  255. package/lib/module/figma/Drawer.figma.js +3 -3
  256. package/lib/module/figma/Drawer.figma.js.map +1 -1
  257. package/lib/module/figma/IconButton.figma.js +10 -4
  258. package/lib/module/figma/IconButton.figma.js.map +1 -1
  259. package/lib/module/figma/Input.figma.js +2 -1
  260. package/lib/module/figma/Input.figma.js.map +1 -1
  261. package/lib/module/figma/Insight.figma.js +3 -3
  262. package/lib/module/figma/Insight.figma.js.map +1 -1
  263. package/lib/module/figma/ProgressBar.figma.js +12 -2
  264. package/lib/module/figma/ProgressBar.figma.js.map +1 -1
  265. package/lib/module/figma/ProgressSegmented.figma.js +9 -1
  266. package/lib/module/figma/ProgressSegmented.figma.js.map +1 -1
  267. package/lib/module/figma/Select.figma.js +2 -1
  268. package/lib/module/figma/Select.figma.js.map +1 -1
  269. package/lib/module/figma/SystemAlert.Button.figma.js +22 -0
  270. package/lib/module/figma/SystemAlert.Button.figma.js.map +1 -0
  271. package/lib/module/figma/SystemAlert.Close.figma.js +18 -0
  272. package/lib/module/figma/SystemAlert.Close.figma.js.map +1 -0
  273. package/lib/module/figma/SystemAlert.Description.figma.js +14 -0
  274. package/lib/module/figma/SystemAlert.Description.figma.js.map +1 -0
  275. package/lib/module/figma/SystemAlert.IconButton.figma.js +25 -0
  276. package/lib/module/figma/SystemAlert.IconButton.figma.js.map +1 -0
  277. package/lib/module/figma/SystemAlert.figma.js +41 -0
  278. package/lib/module/figma/SystemAlert.figma.js.map +1 -0
  279. package/lib/module/styles.css +0 -1
  280. package/lib/typescript/components/BarChart/geometry.d.ts +236 -0
  281. package/lib/typescript/components/BarChart/geometry.d.ts.map +1 -0
  282. package/lib/typescript/components/BarChart/index.d.ts +193 -0
  283. package/lib/typescript/components/BarChart/index.d.ts.map +1 -0
  284. package/lib/typescript/components/BarChart/styles.d.ts +32 -0
  285. package/lib/typescript/components/BarChart/styles.d.ts.map +1 -0
  286. package/lib/typescript/components/CountryFlag/index.d.ts +35 -0
  287. package/lib/typescript/components/CountryFlag/index.d.ts.map +1 -0
  288. package/lib/typescript/components/Input/index.d.ts +2 -0
  289. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  290. package/lib/typescript/components/LineChart/geometry.d.ts +248 -0
  291. package/lib/typescript/components/LineChart/geometry.d.ts.map +1 -0
  292. package/lib/typescript/components/LineChart/index.d.ts +105 -0
  293. package/lib/typescript/components/LineChart/index.d.ts.map +1 -0
  294. package/lib/typescript/components/LineChart/styles.d.ts +12 -0
  295. package/lib/typescript/components/LineChart/styles.d.ts.map +1 -0
  296. package/lib/typescript/components/PieChart/geometry.d.ts +43 -0
  297. package/lib/typescript/components/PieChart/geometry.d.ts.map +1 -0
  298. package/lib/typescript/components/PieChart/index.d.ts +147 -0
  299. package/lib/typescript/components/PieChart/index.d.ts.map +1 -0
  300. package/lib/typescript/components/PieChart/styles.d.ts +27 -0
  301. package/lib/typescript/components/PieChart/styles.d.ts.map +1 -0
  302. package/lib/typescript/components/ProgressBar/index.d.ts +16 -1
  303. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
  304. package/lib/typescript/components/ProgressBar/styles.d.ts +7 -2
  305. package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -1
  306. package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts.map +1 -1
  307. package/lib/typescript/components/ProgressCircle/ProgressRing.d.ts +17 -0
  308. package/lib/typescript/components/ProgressCircle/ProgressRing.d.ts.map +1 -0
  309. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -1
  310. package/lib/typescript/components/Select/index.d.ts +2 -0
  311. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  312. package/lib/typescript/components/Stepper/index.d.ts +68 -0
  313. package/lib/typescript/components/Stepper/index.d.ts.map +1 -0
  314. package/lib/typescript/components/Stepper/styles.d.ts +46 -0
  315. package/lib/typescript/components/Stepper/styles.d.ts.map +1 -0
  316. package/lib/typescript/components/Stepper/useStepperLabelFit.d.ts +15 -0
  317. package/lib/typescript/components/Stepper/useStepperLabelFit.d.ts.map +1 -0
  318. package/lib/typescript/components/Stepper/useStepperLabelFit.web.d.ts +10 -0
  319. package/lib/typescript/components/Stepper/useStepperLabelFit.web.d.ts.map +1 -0
  320. package/lib/typescript/components/Stepper/useStepperRingColors.d.ts +6 -0
  321. package/lib/typescript/components/Stepper/useStepperRingColors.d.ts.map +1 -0
  322. package/lib/typescript/components/SystemAlert/animation.d.ts +56 -0
  323. package/lib/typescript/components/SystemAlert/animation.d.ts.map +1 -0
  324. package/lib/typescript/components/SystemAlert/index.d.ts +110 -0
  325. package/lib/typescript/components/SystemAlert/index.d.ts.map +1 -0
  326. package/lib/typescript/components/SystemAlert/styles.d.ts +38 -0
  327. package/lib/typescript/components/SystemAlert/styles.d.ts.map +1 -0
  328. package/lib/typescript/components/SystemAlert/useSystemAlertStatusBarStyle.d.ts +14 -0
  329. package/lib/typescript/components/SystemAlert/useSystemAlertStatusBarStyle.d.ts.map +1 -0
  330. package/lib/typescript/components/Tabs/index.d.ts.map +1 -1
  331. package/lib/typescript/components/chart/ChartInspector.d.ts +101 -0
  332. package/lib/typescript/components/chart/ChartInspector.d.ts.map +1 -0
  333. package/lib/typescript/components/chart/format.d.ts +16 -0
  334. package/lib/typescript/components/chart/format.d.ts.map +1 -0
  335. package/lib/typescript/components/chart/hiddenSvgProps.d.ts +17 -0
  336. package/lib/typescript/components/chart/hiddenSvgProps.d.ts.map +1 -0
  337. package/lib/typescript/components/chart/index.d.ts +3 -0
  338. package/lib/typescript/components/chart/index.d.ts.map +1 -0
  339. package/lib/typescript/components/chart/motion.d.ts +27 -0
  340. package/lib/typescript/components/chart/motion.d.ts.map +1 -0
  341. package/lib/typescript/components/chart/palette.d.ts +44 -0
  342. package/lib/typescript/components/chart/palette.d.ts.map +1 -0
  343. package/lib/typescript/components/chart/size.d.ts +25 -0
  344. package/lib/typescript/components/chart/size.d.ts.map +1 -0
  345. package/lib/typescript/components/chart/ticks.d.ts +3 -0
  346. package/lib/typescript/components/chart/ticks.d.ts.map +1 -0
  347. package/lib/typescript/components/chart/types.d.ts +163 -0
  348. package/lib/typescript/components/chart/types.d.ts.map +1 -0
  349. package/lib/typescript/components/chart/useChartHostWidth.d.ts +9 -0
  350. package/lib/typescript/components/chart/useChartHostWidth.d.ts.map +1 -0
  351. package/lib/typescript/components/index.d.ts +6 -0
  352. package/lib/typescript/components/index.d.ts.map +1 -1
  353. package/lib/typescript/figma/Alert.figma.d.ts.map +1 -1
  354. package/lib/typescript/figma/Badge.Indicator.figma.d.ts.map +1 -1
  355. package/lib/typescript/figma/Badge.figma.d.ts.map +1 -1
  356. package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
  357. package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -1
  358. package/lib/typescript/figma/Card.figma.d.ts.map +1 -1
  359. package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -1
  360. package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -1
  361. package/lib/typescript/figma/Input.figma.d.ts.map +1 -1
  362. package/lib/typescript/figma/ProgressBar.figma.d.ts.map +1 -1
  363. package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -1
  364. package/lib/typescript/figma/Select.figma.d.ts.map +1 -1
  365. package/lib/typescript/figma/SystemAlert.Button.figma.d.ts +11 -0
  366. package/lib/typescript/figma/SystemAlert.Button.figma.d.ts.map +1 -0
  367. package/lib/typescript/figma/SystemAlert.Close.figma.d.ts +11 -0
  368. package/lib/typescript/figma/SystemAlert.Close.figma.d.ts.map +1 -0
  369. package/lib/typescript/figma/SystemAlert.Description.figma.d.ts +8 -0
  370. package/lib/typescript/figma/SystemAlert.Description.figma.d.ts.map +1 -0
  371. package/lib/typescript/figma/SystemAlert.IconButton.figma.d.ts +11 -0
  372. package/lib/typescript/figma/SystemAlert.IconButton.figma.d.ts.map +1 -0
  373. package/lib/typescript/figma/SystemAlert.figma.d.ts +8 -0
  374. package/lib/typescript/figma/SystemAlert.figma.d.ts.map +1 -0
  375. package/package.json +5 -5
  376. package/src/components/BarChart/geometry.ts +1469 -0
  377. package/src/components/BarChart/index.tsx +1417 -0
  378. package/src/components/BarChart/styles.ts +31 -0
  379. package/src/components/Button/index.tsx +1 -1
  380. package/src/components/CountryFlag/index.tsx +53 -0
  381. package/src/components/Input/index.tsx +2 -0
  382. package/src/components/LineChart/geometry.ts +957 -0
  383. package/src/components/LineChart/index.tsx +1106 -0
  384. package/src/components/LineChart/styles.ts +26 -0
  385. package/src/components/PieChart/geometry.ts +295 -0
  386. package/src/components/PieChart/index.tsx +715 -0
  387. package/src/components/PieChart/styles.ts +101 -0
  388. package/src/components/ProgressBar/index.tsx +66 -14
  389. package/src/components/ProgressBar/styles.ts +35 -4
  390. package/src/components/ProgressCircle/ProgressCircleRing.tsx +10 -39
  391. package/src/components/ProgressCircle/ProgressRing.tsx +60 -0
  392. package/src/components/ScrollShadow/useScrollShadow.ts +12 -11
  393. package/src/components/Select/index.tsx +2 -0
  394. package/src/components/Stepper/index.tsx +452 -0
  395. package/src/components/Stepper/styles.ts +234 -0
  396. package/src/components/Stepper/useStepperLabelFit.ts +21 -0
  397. package/src/components/Stepper/useStepperLabelFit.web.ts +53 -0
  398. package/src/components/Stepper/useStepperRingColors.ts +29 -0
  399. package/src/components/SystemAlert/animation.ts +252 -0
  400. package/src/components/SystemAlert/index.tsx +684 -0
  401. package/src/components/SystemAlert/styles.ts +212 -0
  402. package/src/components/SystemAlert/useSystemAlertStatusBarStyle.ts +57 -0
  403. package/src/components/Tabs/index.tsx +4 -0
  404. package/src/components/Tabs/styles.ts +1 -1
  405. package/src/components/chart/ChartInspector.tsx +726 -0
  406. package/src/components/chart/format.ts +95 -0
  407. package/src/components/chart/hiddenSvgProps.ts +15 -0
  408. package/src/components/chart/index.ts +24 -0
  409. package/src/components/chart/motion.ts +98 -0
  410. package/src/components/chart/palette.tsx +247 -0
  411. package/src/components/chart/size.ts +21 -0
  412. package/src/components/chart/ticks.ts +53 -0
  413. package/src/components/chart/types.ts +183 -0
  414. package/src/components/chart/useChartHostWidth.ts +26 -0
  415. package/src/components/index.ts +6 -0
  416. package/src/styles.css +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/LineChart/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyC,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AACpG,OAAO,EAAoB,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAiBtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAU/D,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EAGd,iBAAiB,EAElB,MAAM,g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,EAAE,SAAS,eAAe,EAAE,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,0FAA0F;IAC1F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA4VD,eAAO,MAAM,SAAS,EAAiC,CAAC,CAAC,IAAI,SAAS,MAAM,EAC1E,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;CAAE,KACvD,YAAY,GAAG,IAAI,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type VariantProps } from '@cdx-ui/utils';
2
+ export declare const lineChartRootVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ export declare const lineChartLegendVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ export declare const lineChartLegendItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const lineChartLegendLabelVariants: (props?: ({
6
+ selected?: boolean | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export type LineChartLegendLabelVariantProps = VariantProps<typeof lineChartLegendLabelVariants>;
9
+ export declare const LINE_STROKE_WIDTH = 2;
10
+ export declare const LINE_DOT_RADIUS = 3;
11
+ export declare const LINE_ACTIVE_DOT_RADIUS = 5;
12
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/LineChart/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,qBAAqB,oFAA8C,CAAC;AAEjF,eAAO,MAAM,uBAAuB,oFAEnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,oFAAuC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;8EAUvC,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjG,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,sBAAsB,IAAI,CAAC"}
@@ -0,0 +1,43 @@
1
+ export interface PieSliceInput {
2
+ readonly id: string;
3
+ readonly label: string;
4
+ readonly value: number;
5
+ }
6
+ export interface PieSliceLayout {
7
+ readonly id: string;
8
+ readonly index: number;
9
+ readonly label: string;
10
+ readonly value: number;
11
+ readonly percentage: number;
12
+ readonly startAngle: number;
13
+ readonly endAngle: number;
14
+ readonly path: string;
15
+ }
16
+ export interface PieRadii {
17
+ readonly cx: number;
18
+ readonly cy: number;
19
+ readonly outerRadius: number;
20
+ readonly innerRadius: number;
21
+ }
22
+ export interface SlicePathOptions extends PieRadii {
23
+ readonly startAngle: number;
24
+ readonly endAngle: number;
25
+ readonly cornerRadius?: number;
26
+ }
27
+ /**
28
+ * SVG arc commands cannot draw a 360° sweep in one segment, so a full ring is
29
+ * two semicircles.
30
+ */
31
+ export declare function slicePath({ cx, cy, outerRadius, innerRadius, startAngle, endAngle, cornerRadius, }: SlicePathOptions): string;
32
+ export declare function pieRadii(size: number, innerRadiusRatio: number): PieRadii;
33
+ /** `innerRadius` in pixels or as a percent of the outer radius, as a 0–1 ratio. */
34
+ export declare function resolveInnerRadiusRatio(innerRadius: number | string, size: number): number;
35
+ export declare function layoutPieSlices({ data, size, innerRadiusRatio, paddingAngle, cornerRadius, }: {
36
+ readonly data: readonly PieSliceInput[];
37
+ readonly size: number;
38
+ readonly innerRadiusRatio: number;
39
+ /** Degrees between neighboring slices. */
40
+ readonly paddingAngle?: number;
41
+ readonly cornerRadius?: number;
42
+ }): PieSliceLayout[];
43
+ //# sourceMappingURL=geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/components/PieChart/geometry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AA4CD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,EAAE,EACF,WAAW,EACX,WAAW,EACX,UAAU,EACV,QAAQ,EACR,YAAgB,GACjB,EAAE,gBAAgB,GAAG,MAAM,CAmI3B;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,QAAQ,CAQzE;AAED,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAU1F;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,YAAgB,EAChB,YAAY,GACb,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,cAAc,EAAE,CAyCnB"}
@@ -0,0 +1,147 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import type { AnimationRootDisableAll } from '../../animation';
4
+ import type { ChartLocaleText, ChartSelectedItem, ChartSeriesCommon, ChartSizeProps, ChartTooltipProps, ChartValueFormatterContext } from '../chart/types';
5
+ import { type ChartColor } from '../chart/palette';
6
+ import { type PieChartLegendLayout, type PieChartLegendPlacement } from './styles';
7
+ export type * from '../chart';
8
+ export type { PieChartLegendLayout, PieChartLegendPlacement };
9
+ /** One slice. Same shape as MUI X `PieValueType`. */
10
+ export interface PieChartValue {
11
+ /**
12
+ * Stable slice id. React keys and animation follow it, so a reordered slice moves to its new
13
+ * position instead of the slices morphing by index.
14
+ */
15
+ id: string;
16
+ /**
17
+ * Must be a positive finite number. Zero, negative, and `NaN` slices are skipped so they cannot
18
+ * break an arc; `dataIndex` still counts them.
19
+ */
20
+ value: number;
21
+ /** Legend, tooltip, and screen reader name. Defaults to `id`. */
22
+ label?: string;
23
+ /** Chart token for this slice. Defaults to the next `categorical-1`…`6` slot. */
24
+ color?: ChartColor;
25
+ }
26
+ /**
27
+ * Turns a slice's 0–1 share of the visible total into text. `location` is `label` for the
28
+ * legend and `a11y` for screen reader labels and the summary.
29
+ */
30
+ export type PieShareFormatter = (share: number, context: ChartValueFormatterContext) => string;
31
+ /** One ring of slices. Same shape as MUI X `PieSeriesType`; slices carry their own `color`. */
32
+ export interface PieChartSeries extends Omit<ChartSeriesCommon, 'color'> {
33
+ /** Series kind. Optional while `PieChart` only draws pies. */
34
+ type?: 'pie';
35
+ /** Slices, drawn clockwise from 12 o'clock in array order. */
36
+ data: readonly PieChartValue[];
37
+ /**
38
+ * Hole radius. A number is pixels; a string such as `'68%'` is a percent of the outer radius.
39
+ * `0` is a full pie. Clamped to 85% of the outer radius.
40
+ * @default 0
41
+ */
42
+ innerRadius?: number | `${number}%`;
43
+ /**
44
+ * Degrees between neighboring slices. Skipped on slices too thin to fit it.
45
+ * @default 0
46
+ */
47
+ paddingAngle?: number;
48
+ /**
49
+ * Rounds slice corners in pixels. Donuts round all four corners; pies round the outer edge.
50
+ * Clamped so thin slices stay valid.
51
+ * @default 0
52
+ */
53
+ cornerRadius?: number;
54
+ /**
55
+ * Formats the legend share column and the share in screen reader text. MUI X has no share
56
+ * column, so there is no MUI name. Defaults to a whole percent for `locale`.
57
+ */
58
+ shareFormatter?: PieShareFormatter;
59
+ }
60
+ /** The slice under the pointer or keyboard focus, falling back to the selected slice. */
61
+ export interface PieChartActiveSlice {
62
+ /** The slice `id`. */
63
+ id: string;
64
+ /** Index into the series `data`, including slices that were skipped. */
65
+ dataIndex: number;
66
+ /** The slice `label`, or its `id` when it has none. */
67
+ label: string;
68
+ /** The raw slice `value`, unformatted. */
69
+ value: number;
70
+ /** Share of the visible total, from 0 to 1. */
71
+ percentage: number;
72
+ }
73
+ export interface PieChartProps extends ViewProps, ChartSizeProps {
74
+ /**
75
+ * Pie series. Only the first renders; more than one logs a development warning. The pie
76
+ * diameter is the shorter side of the `size` / `width` / `height` box.
77
+ */
78
+ series: readonly PieChartSeries[];
79
+ /**
80
+ * Hides the category legend. With the legend hidden, a selectable chart makes each slice a
81
+ * button; otherwise the plot is one image with a generated summary.
82
+ * @default false
83
+ */
84
+ hideLegend?: boolean;
85
+ /**
86
+ * How legend items are laid out when `legendPlacement` is `top` or `bottom`.
87
+ * `wrap` is centered chips (`Housing 46%`). `list` is full-width rows: name
88
+ * on the left, formatted value and share on the right, with a hairline between
89
+ * rows. Ignored when the legend is on the left or right.
90
+ * @default 'wrap'
91
+ */
92
+ legendLayout?: PieChartLegendLayout;
93
+ /**
94
+ * Where the legend sits relative to the plot, matching Drawer `placement`.
95
+ * `top` / `bottom` use `legendLayout`. `left` / `right` are swatch + name only
96
+ * (no amount, no percent).
97
+ * @default 'bottom'
98
+ */
99
+ legendPlacement?: PieChartLegendPlacement;
100
+ /**
101
+ * `item` shows the slice under the pointer or keyboard focus (on touch, the slice under the finger until it lifts).
102
+ * `axis` behaves like `item` because a pie has no axis. `none` hides the tooltip.
103
+ * @default { trigger: 'item' }
104
+ */
105
+ tooltip?: ChartTooltipProps;
106
+ /**
107
+ * Content in the donut hole. A string becomes styled `Text`. Pass a `View` for
108
+ * stacked copy such as “Total” over an amount.
109
+ * Pass a function to follow the active slice: it receives the hovered or focused
110
+ * slice, else the selected one, else `null` — return the total for `null`.
111
+ */
112
+ centerLabel?: ReactNode | ((slice: PieChartActiveSlice | null) => ReactNode);
113
+ /**
114
+ * Controlled selected slice: `{ seriesId, dataIndex }`, where `dataIndex` counts skipped
115
+ * slices. Pass `null` to clear the selection while staying controlled.
116
+ */
117
+ selectedItem?: ChartSelectedItem;
118
+ /** Initial selected slice when `selectedItem` is omitted. */
119
+ defaultSelectedItem?: ChartSelectedItem;
120
+ /**
121
+ * Called when a slice or legend row is pressed. Pressing the selected slice again reports
122
+ * `null`. Providing this, `selectedItem`, or `defaultSelectedItem` makes the chart selectable.
123
+ */
124
+ onSelectedItemChange?: (item: ChartSelectedItem) => void;
125
+ /**
126
+ * BCP 47 locale for default value and share formatting. Defaults to the `@cdx-ui/formatters`
127
+ * locale.
128
+ */
129
+ locale?: string;
130
+ /** Overrides for generated strings such as the screen reader summary. */
131
+ localeText?: Partial<ChartLocaleText>;
132
+ /**
133
+ * Slices sweep in clockwise on mount and tween to new shares when `data` changes. Pass
134
+ * `'disable-all'` to draw the final state. Reduce Motion and `GlobalAnimationSettingsProvider`
135
+ * `disable-all` also turn it off.
136
+ */
137
+ animation?: AnimationRootDisableAll;
138
+ /**
139
+ * Names the plot image. Defaults to `localeText.pieChartSummary` over labels and shares. Not
140
+ * applied when `hideLegend` on a selectable chart makes each slice a button.
141
+ */
142
+ accessibilityLabel?: string;
143
+ /** Additional Uniwind/Tailwind classes, merged after the root's own styles. */
144
+ className?: string;
145
+ }
146
+ export declare const PieChart: import("react").ForwardRefExoticComponent<PieChartProps & import("react").RefAttributes<View>>;
147
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PieChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzF,OAAO,EAA6B,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAK/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAI/D,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EAEd,iBAAiB,EACjB,0BAA0B,EAE3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EASL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAWlB,mBAAmB,UAAU,CAAC;AAC9B,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AO,CAAC;IACrB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC;IAC7E;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,gGAybpB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type VariantProps } from '@cdx-ui/utils';
2
+ export type PieChartLegendPlacement = 'top' | 'bottom' | 'left' | 'right';
3
+ export declare const pieChartRootVariants: (props?: ({
4
+ placement?: "bottom" | "left" | "right" | "top" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export declare const pieChartCanvasVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export type PieChartLegendLayout = 'wrap' | 'list';
10
+ export declare const pieChartLegendVariants: (props?: ({
11
+ layout?: "list" | "wrap" | "names" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ export declare const pieChartLegendItemVariants: (props?: ({
14
+ layout?: "list" | "wrap" | "names" | null | undefined;
15
+ divided?: boolean | null | undefined;
16
+ interactive?: boolean | null | undefined;
17
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
18
+ export declare const pieChartLegendLabelVariants: (props?: ({
19
+ selected?: boolean | null | undefined;
20
+ layout?: "list" | "wrap" | "names" | null | undefined;
21
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
+ export declare const pieChartLegendMetaVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
23
+ export declare const pieChartLegendShareVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
+ export declare const pieChartCenterLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
25
+ export type PieChartRootVariantProps = VariantProps<typeof pieChartCanvasVariants>;
26
+ export type PieChartLegendLabelVariantProps = VariantProps<typeof pieChartLegendLabelVariants>;
27
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/PieChart/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;8EAY/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;8EAelC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,eAAO,MAAM,sBAAsB;;8EAWjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;8EAqBrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;8EAgBtC,CAAC;AAEH,eAAO,MAAM,0BAA0B,oFAAkD,CAAC;AAE1F,eAAO,MAAM,2BAA2B,oFAAsD,CAAC;AAE/F,eAAO,MAAM,2BAA2B,oFAEvC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACnF,MAAM,MAAM,+BAA+B,GAAG,YAAY,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,10 +1,25 @@
1
1
  import { View, type ViewProps } from 'react-native';
2
2
  import { type IProgressProps } from '@cdx-ui/primitives';
3
- import { type ProgressBarTrackVariantProps } from './styles';
3
+ import { type ProgressBarIndicatorVariantProps, type ProgressBarTrackVariantProps } from './styles';
4
+ export type ProgressBarSize = NonNullable<ProgressBarTrackVariantProps['size']>;
5
+ export type ProgressBarColor = NonNullable<ProgressBarIndicatorVariantProps['color']>;
4
6
  export interface ProgressBarProps extends IProgressProps, ProgressBarTrackVariantProps {
7
+ /**
8
+ * Track height. Inherited by `ProgressBar.Indicator` via style context.
9
+ * @default 'default'
10
+ */
11
+ size?: ProgressBarSize;
12
+ /**
13
+ * Indicator fill color. Inherited by `ProgressBar.Indicator` via style context.
14
+ * The track is always `surface-neutral-subtle`.
15
+ * @default 'action'
16
+ */
17
+ color?: ProgressBarColor;
18
+ /** Additional Uniwind/Tailwind classes, merged after the track's own styles. */
5
19
  readonly className?: string;
6
20
  }
7
21
  export interface ProgressBarIndicatorProps extends ViewProps {
22
+ /** Additional Uniwind/Tailwind classes, merged after the indicator's own styles. */
8
23
  readonly className?: string;
9
24
  }
10
25
  declare const ProgressBarRootComponent: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<View>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressBar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEhG,OAAO,EAGL,KAAK,4BAA4B,EAClC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;AAED,QAAA,MAAM,wBAAwB,mGAqB7B,CAAC;AAIF,QAAA,MAAM,6BAA6B,4GAclC,CAAC;AAIF,KAAK,4BAA4B,GAAG,OAAO,wBAAwB,GAAG;IACpE,SAAS,EAAE,OAAO,6BAA6B,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAElB,4BAA4B,CAAC"}
@@ -1,5 +1,10 @@
1
1
  import { type VariantProps } from '@cdx-ui/utils';
2
- export declare const progressBarTrackVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
- export declare const progressBarIndicatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const progressBarTrackVariants: (props?: ({
3
+ size?: "default" | "large" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const progressBarIndicatorVariants: (props?: ({
6
+ color?: "action" | "danger" | "warning" | "success" | "info" | "categorical-1" | "categorical-2" | "categorical-3" | "categorical-4" | "categorical-5" | "categorical-6" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
8
  export type ProgressBarTrackVariantProps = VariantProps<typeof progressBarTrackVariants>;
9
+ export type ProgressBarIndicatorVariantProps = VariantProps<typeof progressBarIndicatorVariants>;
5
10
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressBar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,oFAEnC,CAAC;AAEH,eAAO,MAAM,4BAA4B,oFAAiD,CAAC;AAE3F,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressBar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB;;8EAapC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;8EAmBvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzF,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressCircleRing.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressCircle/ProgressCircleRing.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAM/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACxC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAc,EAAE,KAAiB,EAAE,EAAE,uBAAuB,2CAkFhG"}
1
+ {"version":3,"file":"ProgressCircleRing.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressCircle/ProgressCircleRing.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAM/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACxC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAc,EAAE,KAAiB,EAAE,EAAE,uBAAuB,2CAqDhG"}
@@ -0,0 +1,17 @@
1
+ export interface ProgressRingProps {
2
+ /** Outer diameter in px. */
3
+ readonly size: number;
4
+ readonly strokeWidth: number;
5
+ /** Arc length as a percentage of the circumference, 0–100. */
6
+ readonly value: number;
7
+ readonly trackColor: string;
8
+ readonly indicatorColor: string;
9
+ /** @default 1 */
10
+ readonly trackOpacity?: number;
11
+ }
12
+ /**
13
+ * Size-agnostic determinate ring: a full track plus a round-capped arc starting at 12 o'clock.
14
+ * Internal to `@cdx-ui/components`; shared by `ProgressCircle` and `Stepper.Indicator`.
15
+ */
16
+ export declare function ProgressRing({ size, strokeWidth, value, trackColor, indicatorColor, trackOpacity, }: ProgressRingProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=ProgressRing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressRing.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressCircle/ProgressRing.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,iBAAiB;IACjB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,WAAW,EACX,KAAK,EACL,UAAU,EACV,cAAc,EACd,YAAgB,GACjB,EAAE,iBAAiB,2CAkCnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/useScrollShadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/F,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACnE;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,sBAAsB,CAAC;IACnC,YAAY,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACxE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC7D;AAcD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,GAAG,UAAU,EACtC,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,OAAO,QAAQ,CAAC,EAAgB,GACzC,MAAM,CAOR;AA4BD,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,qBAAqB,CAE3F;AAED,wBAAgB,sBAAsB,CAAC,EACrC,WAAwB,EACxB,MAAU,EACV,OAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,GAAE,0BAA+B,GAAG,qBAAqB,CA6EzD"}
1
+ {"version":3,"file":"useScrollShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/useScrollShadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAA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gB,GACjB,GAAE,0BAA+B,GAAG,qBAAqB,CA8EzD"}
@@ -59,6 +59,8 @@ export interface SelectIconProps extends Omit<IconProps, 'children' | 'as' | 'co
59
59
  * Omit to apply the symmetric baseline gap.
60
60
  */
61
61
  position?: IconSlotPosition;
62
+ /** The element rendered when `asChild` is set. */
63
+ children?: ReactNode;
62
64
  }
63
65
  declare const SelectIcon: {
64
66
  ({ asChild, className, style, as, position, ...props }: SelectIconProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAY,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpG,OAAO,EAeL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAGvB,MAAM,oBAAoB,CAAC;AAW5B,OAAO,EAAQ,SAAS,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlD,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EACL,KAAK,kBAAkB,EAWxB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAe5B;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GACjC,kBAAkB,GAClB,YAAY,GAAG;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEJ,QAAA,MAAM,UAAU,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,kGA+Cf,CAAC;AAQF,MAAM,WAAW,oBAAqB,SAAQ,SAAS,EAAE,qBAAqB;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,uGAyBpB,CAAC;AAQF,KAAK,uBAAuB,GAAG,OAAO,UAAU,GAAG;IACjD,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B,WAAW,EAAE,OAAO,iBAAiB,CAAC;IACtC,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,SAAS,EAAE,OAAO,eAAe,CAAC;IAClC,WAAW,EAAE,OAAO,iBAAiB,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,MAAM,EAWb,uBAAuB,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { type ReactNode } from 'react';
2
+ import { Text, View, type TextProps, type ViewProps } from 'react-native';
3
+ import { type IStepperProps, type IStepperStepProps } from '@cdx-ui/primitives';
4
+ export { useStepperStep } from '@cdx-ui/primitives';
5
+ export type { StepperLabelPlacement, StepperOrientation, StepperStepState, } from '@cdx-ui/primitives';
6
+ export interface StepperProps extends IStepperProps {
7
+ readonly className?: string;
8
+ /**
9
+ * `Stepper.Step` elements. Every direct element child is a step and is numbered by position;
10
+ * arrays and fragments are unwrapped, and `false`/`null` children are skipped.
11
+ */
12
+ readonly children?: ReactNode;
13
+ }
14
+ declare const StepperRootComponent: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<View>>;
15
+ export interface StepperStepProps extends IStepperStepProps {
16
+ readonly className?: string;
17
+ /**
18
+ * `Stepper.Indicator`, `Stepper.Title`, `Stepper.Description`, `Stepper.Content` and
19
+ * `Stepper.Separator`. They must be **direct** children: the step sorts them into regions by
20
+ * component identity, so a `memo()`/HOC wrapper is not recognized and renders as content.
21
+ * Only the first of each slot is used. `asChild` skips the sorting.
22
+ */
23
+ readonly children?: ReactNode;
24
+ }
25
+ declare const StepperStepComponent: import("react").ForwardRefExoticComponent<StepperStepProps & import("react").RefAttributes<View>>;
26
+ export interface StepperIndicatorProps extends ViewProps {
27
+ /** Replaces the whole indicator with the child element via `Slot`. */
28
+ readonly asChild?: boolean;
29
+ readonly className?: string;
30
+ /**
31
+ * Replaces the glyph inside the disc. The disc, tone and progress ring still render.
32
+ * Defaults to a check when the step is complete, otherwise the 1-based step number.
33
+ */
34
+ readonly children?: ReactNode;
35
+ }
36
+ declare const StepperIndicatorComponent: import("react").ForwardRefExoticComponent<StepperIndicatorProps & import("react").RefAttributes<View>>;
37
+ export interface StepperTitleProps extends TextProps {
38
+ readonly asChild?: boolean;
39
+ readonly className?: string;
40
+ readonly children?: ReactNode;
41
+ }
42
+ declare const StepperTitleComponent: import("react").ForwardRefExoticComponent<StepperTitleProps & import("react").RefAttributes<Text>>;
43
+ export interface StepperDescriptionProps extends TextProps {
44
+ readonly asChild?: boolean;
45
+ readonly className?: string;
46
+ readonly children?: ReactNode;
47
+ }
48
+ declare const StepperDescriptionComponent: import("react").ForwardRefExoticComponent<StepperDescriptionProps & import("react").RefAttributes<Text>>;
49
+ export interface StepperContentProps extends ViewProps {
50
+ readonly asChild?: boolean;
51
+ readonly className?: string;
52
+ }
53
+ declare const StepperContentComponent: import("react").ForwardRefExoticComponent<StepperContentProps & import("react").RefAttributes<View>>;
54
+ export interface StepperSeparatorProps extends ViewProps {
55
+ readonly asChild?: boolean;
56
+ readonly className?: string;
57
+ }
58
+ declare const StepperSeparatorComponent: import("react").ForwardRefExoticComponent<StepperSeparatorProps & import("react").RefAttributes<View>>;
59
+ type StepperCompoundComponent = typeof StepperRootComponent & {
60
+ Step: typeof StepperStepComponent;
61
+ Indicator: typeof StepperIndicatorComponent;
62
+ Title: typeof StepperTitleComponent;
63
+ Description: typeof StepperDescriptionComponent;
64
+ Content: typeof StepperContentComponent;
65
+ Separator: typeof StepperSeparatorComponent;
66
+ };
67
+ export declare const Stepper: StepperCompoundComponent;
68
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AA4B5B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAuB5B,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED,QAAA,MAAM,oBAAoB,+FA+BzB,CAAC;AAQF,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAMD,QAAA,MAAM,oBAAoB,mGAiEzB,CAAC;AAQF,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,sEAAsE;IACtE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC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,eAAO,MAAM,OAAO,EAOd,wBAAwB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { StepperLabelPlacement, StepperOrientation } from '@cdx-ui/primitives';
2
+ import { type VariantProps } from '@cdx-ui/utils';
3
+ /** Indicator frame in px. The ring is drawn at this size around the 24px disc. */
4
+ export declare const STEPPER_INDICATOR_SIZE = 34;
5
+ export declare const STEPPER_RING_STROKE_WIDTH = 3;
6
+ export type StepperLayout = 'vertical' | 'horizontal-end' | 'horizontal-bottom';
7
+ export declare function getStepperLayout(orientation: StepperOrientation, labelPlacement: StepperLabelPlacement): StepperLayout;
8
+ export declare const stepperVariants: (props?: ({
9
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ export declare const stepperStepVariants: (props?: ({
12
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
13
+ isLast?: boolean | null | undefined;
14
+ labelFit?: "words" | "shrink" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ export declare const stepperStepMainVariants: (props?: ({
17
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
18
+ labelFit?: "words" | "shrink" | null | undefined;
19
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
+ export declare const stepperStepTriggerVariants: (props?: ({
21
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ export declare const stepperStepLabelVariants: (props?: ({
24
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
25
+ labelFit?: "words" | "shrink" | null | undefined;
26
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
+ export declare const stepperStepBodyVariants: (props?: ({
28
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
29
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
30
+ export declare const stepperIndicatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
31
+ export declare const stepperIndicatorRingVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
32
+ export declare const stepperIndicatorDiscVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
33
+ export declare const stepperIndicatorNumeralVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
34
+ export declare const stepperIndicatorCheckVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
35
+ export declare const stepperTitleVariants: (props?: ({
36
+ isCentered?: boolean | null | undefined;
37
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
38
+ export declare const stepperDescriptionVariants: (props?: ({
39
+ isCentered?: boolean | null | undefined;
40
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
41
+ export declare const stepperContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
42
+ export declare const stepperSeparatorVariants: (props?: ({
43
+ layout?: "vertical" | "horizontal-end" | "horizontal-bottom" | null | undefined;
44
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
45
+ export type StepperVariantProps = VariantProps<typeof stepperVariants>;
46
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAEhF,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,kBAAkB,EAC/B,cAAc,EAAE,qBAAqB,GACpC,aAAa,CAKf;AASD,eAAO,MAAM,eAAe;;8EAW1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;8EA0B9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;8EAiBlC,CAAC;AASH,eAAO,MAAM,0BAA0B;;8EA2BtC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;8EAiBnC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;8EAWlC,CAAC;AAIH,eAAO,MAAM,wBAAwB,oFAEnC,CAAC;AAEH,eAAO,MAAM,4BAA4B,oFAAgD,CAAC;AAE1F,eAAO,MAAM,4BAA4B,oFAGvC,CAAC;AAEH,eAAO,MAAM,+BAA+B,oFAG1C,CAAC;AAEH,eAAO,MAAM,6BAA6B,oFAExC,CAAC;AAIH,eAAO,MAAM,oBAAoB;;8EAgBhC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;8EAUrC,CAAC;AAEH,eAAO,MAAM,sBAAsB,oFAAsB,CAAC;AAS1D,eAAO,MAAM,wBAAwB;;8EAWnC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { RefCallback } from 'react';
2
+ import type { View } from 'react-native';
3
+ /**
4
+ * How `horizontal-end` labels give way when the row runs out of room. `'words'` keeps each
5
+ * step at least as wide as its longest word, so labels wrap only between words; `'shrink'` lets
6
+ * steps shrink below that so the row never overflows.
7
+ */
8
+ export type StepperLabelFit = 'words' | 'shrink';
9
+ export interface StepperLabelFitResult {
10
+ readonly fit: StepperLabelFit;
11
+ readonly measureRef: RefCallback<View> | undefined;
12
+ }
13
+ /** Native layout has no min-content sizing, so steps always shrink to fit. */
14
+ export declare function useStepperLabelFit(_enabled: boolean, _count: number): StepperLabelFitResult;
15
+ //# sourceMappingURL=useStepperLabelFit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepperLabelFit.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/useStepperLabelFit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;CACpD;AAID,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,qBAAqB,CAE3F"}
@@ -0,0 +1,10 @@
1
+ import type { StepperLabelFitResult } from './useStepperLabelFit';
2
+ export type { StepperLabelFit, StepperLabelFitResult } from './useStepperLabelFit';
3
+ /**
4
+ * CSS flex cannot keep min-content minimums only while they fit: `min-width: auto` overflows a
5
+ * tight row and `min-width: 0` breaks words even when there is room. So labels start at
6
+ * `'words'`, and if the root then overflows they switch to `'shrink'` before paint. The decision
7
+ * is kept until the root's width or the step count changes.
8
+ */
9
+ export declare function useStepperLabelFit(enabled: boolean, count: number): StepperLabelFitResult;
10
+ //# sourceMappingURL=useStepperLabelFit.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepperLabelFit.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/useStepperLabelFit.web.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAOnF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAmCzF"}
@@ -0,0 +1,6 @@
1
+ /** Ring stroke colors for `Stepper.Indicator`: brand on the current step, neutral otherwise. */
2
+ export declare function useStepperRingColors(isCurrent: boolean): {
3
+ track: string;
4
+ indicator: string;
5
+ };
6
+ //# sourceMappingURL=useStepperRingColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepperRingColors.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/useStepperRingColors.ts"],"names":[],"mappings":"AAgBA,gGAAgG;AAChG,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,OAAO;;;EAWtD"}
@@ -0,0 +1,56 @@
1
+ import { type RefObject } from 'react';
2
+ import { type View } from 'react-native';
3
+ import { useAnimatedStyle, type SharedValue } from 'react-native-reanimated';
4
+ import { type AnimationRootDisableAll } from '../../animation';
5
+ export declare const SYSTEM_ALERT_ENTER_MS = 300;
6
+ export declare const SYSTEM_ALERT_EXIT_MS = 220;
7
+ /** Unmounts an exiting web surface when `transitionend` never fires (reduced motion, hidden tab). */
8
+ export declare const SYSTEM_ALERT_WEB_SAFETY_MS: number;
9
+ /**
10
+ * `entering` and `exiting` exist only while motion runs. With motion off, `isOpen`
11
+ * moves straight between `open` and `closed`.
12
+ */
13
+ export type SystemAlertPresencePhase = 'closed' | 'entering' | 'open' | 'exiting';
14
+ /** Web `data-state`. `exiting` maps to `closed`, as in Dialog and FullScreenDialog. */
15
+ export type SystemAlertWebState = 'entering' | 'open' | 'closed';
16
+ export interface UseSystemAlertPresenceOptions {
17
+ isOpen: boolean;
18
+ animation: AnimationRootDisableAll | undefined;
19
+ /** Wrapper height while no surface pushes past it: the reserved top inset, or 0. */
20
+ collapsedHeight: number;
21
+ }
22
+ export interface SystemAlertPresence {
23
+ phase: SystemAlertPresencePhase;
24
+ isSurfaceMounted: boolean;
25
+ wrapperStyle: ReturnType<typeof useAnimatedStyle>;
26
+ /** Reports the surface's natural height, from a synchronous read or `onLayout`. */
27
+ setSurfaceHeight: (height: number) => void;
28
+ /** Bottom edge of the surface, `b`, from 0 (above the screen edge) to its height. */
29
+ edge: SharedValue<number>;
30
+ surfaceHeight: SharedValue<number>;
31
+ /** True while `open` and no motion runs: the wrapper sizes to its content. */
32
+ isSettled: SharedValue<boolean>;
33
+ /** Web only: drives the CSS transitions on the wrapper and the surface. */
34
+ webState: SystemAlertWebState | undefined;
35
+ /** Web only: the wrapper's inline height. `undefined` sizes it to its content. */
36
+ webWrapperHeight: number | undefined;
37
+ /** Web only: the wrapper node whose `height` transition ends the exit. */
38
+ wrapperRef: RefObject<View | null>;
39
+ }
40
+ /**
41
+ * Presence lifecycle and contact-push motion for an in-flow SystemAlert. One value, the
42
+ * surface's bottom edge `b`, is driven; the wrapper's height is `max(collapsedHeight, b)`,
43
+ * so content below only moves once the surface leaves the reserved strip.
44
+ *
45
+ * Web runs the same lifecycle on CSS transitions keyed on `data-state` instead of Reanimated:
46
+ * `entering` → (rAF) → `open`, and `closed` → `transitionend` on the wrapper's `height`, or a
47
+ * safety timer → unmount. The inset is 0 there, so the wrapper's height is `b`, and the surface,
48
+ * aligned to the wrapper's bottom edge, follows the same transition.
49
+ */
50
+ export declare function useSystemAlertPresence({ isOpen, animation, collapsedHeight, }: UseSystemAlertPresenceOptions): SystemAlertPresence;
51
+ /**
52
+ * The surface's slide, `translateY = b − H`. Call it from a component that mounts with the
53
+ * surface: Reanimated computes the initial style once, on the hook's first render.
54
+ */
55
+ export declare function useSystemAlertSurfaceStyle({ edge, surfaceHeight, isSettled, }: Pick<SystemAlertPresence, 'edge' | 'surfaceHeight' | 'isSettled'>): ReturnType<typeof useAnimatedStyle>;
56
+ //# sourceMappingURL=animation.d.ts.map