@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,369 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Stepper = void 0;
7
+ Object.defineProperty(exports, "useStepperStep", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _primitives.useStepperStep;
11
+ }
12
+ });
13
+ var _react = require("react");
14
+ var _reactNative = require("react-native");
15
+ var _primitives = require("@cdx-ui/primitives");
16
+ var _icons = require("@cdx-ui/icons");
17
+ var _utils = require("@cdx-ui/utils");
18
+ var _Icon = require("../Icon");
19
+ var _ProgressRing = require("../ProgressCircle/ProgressRing");
20
+ var _styles = require("./styles");
21
+ var _useStepperLabelFit = require("./useStepperLabelFit");
22
+ var _useStepperRingColors = require("./useStepperRingColors");
23
+ var _jsxRuntime = require("react/jsx-runtime");
24
+ const StepperLabelFitContext = /*#__PURE__*/(0, _react.createContext)('shrink');
25
+
26
+ /** Counts steps the way `StepperRoot` numbers them, so the label-fit decision resets with them. */
27
+ function countSteps(children, asChild) {
28
+ const source = asChild && /*#__PURE__*/(0, _react.isValidElement)(children) ? children.props.children : children;
29
+ return (0, _utils.flattenChildren)(source).filter(child => /*#__PURE__*/(0, _react.isValidElement)(child)).length;
30
+ }
31
+ const HIDDEN_FROM_AT = {
32
+ 'aria-hidden': true,
33
+ accessibilityElementsHidden: true,
34
+ importantForAccessibility: 'no-hide-descendants'
35
+ };
36
+
37
+ // =============================================================================
38
+ // ROOT
39
+ // =============================================================================
40
+
41
+ const StepperRootComponent = /*#__PURE__*/(0, _react.forwardRef)(({
42
+ className,
43
+ style,
44
+ orientation = 'vertical',
45
+ labelPlacement = 'end',
46
+ children,
47
+ ...props
48
+ }, ref) => {
49
+ const layout = (0, _styles.getStepperLayout)(orientation, labelPlacement);
50
+ const {
51
+ fit,
52
+ measureRef
53
+ } = (0, _useStepperLabelFit.useStepperLabelFit)(layout === 'horizontal-end', countSteps(children, props.asChild));
54
+ const rootRef = (0, _react.useMemo)(() => measureRef === undefined ? ref : (0, _utils.mergeRefs)(ref, measureRef), [ref, measureRef]);
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(StepperLabelFitContext.Provider, {
56
+ value: fit,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.StepperRoot, {
58
+ ref: rootRef,
59
+ className: (0, _utils.cn)((0, _styles.stepperVariants)({
60
+ layout
61
+ }), className),
62
+ style: style,
63
+ orientation: orientation,
64
+ labelPlacement: labelPlacement,
65
+ ...props,
66
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
67
+ slot: 'stepper'
68
+ })),
69
+ children: children
70
+ })
71
+ });
72
+ });
73
+ StepperRootComponent.displayName = 'Stepper';
74
+
75
+ // =============================================================================
76
+ // STEP
77
+ // =============================================================================
78
+
79
+ function isSlot(child, type) {
80
+ return /*#__PURE__*/(0, _react.isValidElement)(child) && child.type === type;
81
+ }
82
+ const StepperStepComponent = /*#__PURE__*/(0, _react.forwardRef)(({
83
+ asChild,
84
+ className,
85
+ style,
86
+ children,
87
+ ...props
88
+ }, ref) => {
89
+ const {
90
+ orientation,
91
+ labelPlacement,
92
+ count
93
+ } = (0, _primitives.useStepperContext)();
94
+ const layout = (0, _styles.getStepperLayout)(orientation, labelPlacement);
95
+ const labelFit = (0, _react.useContext)(StepperLabelFitContext);
96
+ const isLast = (0, _primitives.useStepperIndex)() === count - 1;
97
+ const stepClass = (0, _utils.cn)((0, _styles.stepperStepVariants)({
98
+ layout,
99
+ isLast,
100
+ labelFit
101
+ }), className);
102
+ const slotAttributes = (0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
103
+ slot: 'stepper-step'
104
+ }));
105
+ if (asChild) {
106
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.StepperStep, {
107
+ ref: ref,
108
+ asChild: true,
109
+ className: stepClass,
110
+ style: style,
111
+ ...props,
112
+ ...slotAttributes,
113
+ children: children
114
+ });
115
+ }
116
+
117
+ // Indicator, Title and Description form the step trigger, which carries the accessible
118
+ // name; everything else is the body below the title. The Separator sits in the indicator
119
+ // track: before the main column when vertical, after it when horizontal.
120
+ const childArray = _react.Children.toArray(children);
121
+ const indicator = childArray.find(child => isSlot(child, StepperIndicatorComponent));
122
+ const title = childArray.find(child => isSlot(child, StepperTitleComponent));
123
+ const description = childArray.find(child => isSlot(child, StepperDescriptionComponent));
124
+ const separator = childArray.find(child => isSlot(child, StepperSeparatorComponent));
125
+ const body = childArray.filter(child => !isSlot(child, StepperIndicatorComponent) && !isSlot(child, StepperTitleComponent) && !isSlot(child, StepperDescriptionComponent) && !isSlot(child, StepperSeparatorComponent));
126
+ const hasLabel = title !== undefined || description !== undefined;
127
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.StepperStep, {
128
+ ref: ref,
129
+ className: stepClass,
130
+ style: style,
131
+ ...props,
132
+ ...slotAttributes,
133
+ children: [layout === 'vertical' ? separator : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
134
+ className: (0, _utils.cn)((0, _styles.stepperStepMainVariants)({
135
+ layout,
136
+ labelFit
137
+ })),
138
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.StepperStepTrigger, {
139
+ className: (0, _styles.stepperStepTriggerVariants)({
140
+ layout
141
+ }),
142
+ ...(0, _primitives.dataAttributes)({
143
+ slot: 'stepper-step-trigger'
144
+ }),
145
+ children: [indicator, hasLabel ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
146
+ className: (0, _utils.cn)((0, _styles.stepperStepLabelVariants)({
147
+ layout,
148
+ labelFit
149
+ })),
150
+ children: [title, description]
151
+ }) : null]
152
+ }), body.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
153
+ className: (0, _styles.stepperStepBodyVariants)({
154
+ layout
155
+ }),
156
+ children: body
157
+ }) : null]
158
+ }), layout === 'vertical' ? null : separator]
159
+ });
160
+ });
161
+ StepperStepComponent.displayName = 'Stepper.Step';
162
+
163
+ // =============================================================================
164
+ // INDICATOR
165
+ // =============================================================================
166
+
167
+ const StepperIndicatorComponent = /*#__PURE__*/(0, _react.forwardRef)(({
168
+ asChild,
169
+ className,
170
+ style,
171
+ children,
172
+ ...props
173
+ }, ref) => {
174
+ const {
175
+ index,
176
+ isCurrent,
177
+ isComplete,
178
+ hasProgress,
179
+ progress
180
+ } = (0, _primitives.useStepperStep)();
181
+ const ringColors = (0, _useStepperRingColors.useStepperRingColors)(isCurrent);
182
+ const currentAttribute = (0, _primitives.dataAttributes)({
183
+ current: isCurrent
184
+ });
185
+ const indicatorClass = (0, _utils.cn)((0, _styles.stepperIndicatorVariants)(), className);
186
+ const indicatorAttributes = (0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
187
+ slot: 'stepper-indicator',
188
+ current: isCurrent,
189
+ complete: isComplete,
190
+ progress: hasProgress
191
+ }));
192
+ if (asChild) {
193
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Slot, {
194
+ ref: ref,
195
+ className: indicatorClass,
196
+ style: style,
197
+ ...props,
198
+ ...HIDDEN_FROM_AT,
199
+ ...indicatorAttributes,
200
+ children: children
201
+ });
202
+ }
203
+ const hasCustomGlyph = children !== undefined && children !== null;
204
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
205
+ ref: ref,
206
+ className: indicatorClass,
207
+ style: style,
208
+ ...props,
209
+ ...HIDDEN_FROM_AT,
210
+ ...indicatorAttributes,
211
+ children: [hasProgress ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
212
+ className: (0, _styles.stepperIndicatorRingVariants)(),
213
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressRing.ProgressRing, {
214
+ size: _styles.STEPPER_INDICATOR_SIZE,
215
+ strokeWidth: _styles.STEPPER_RING_STROKE_WIDTH,
216
+ value: progress,
217
+ trackColor: ringColors.track,
218
+ indicatorColor: ringColors.indicator
219
+ })
220
+ }) : null, isComplete && !hasCustomGlyph ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
221
+ as: _icons.CheckCircle,
222
+ filled: true,
223
+ className: (0, _styles.stepperIndicatorCheckVariants)(),
224
+ ...currentAttribute
225
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
226
+ className: (0, _styles.stepperIndicatorDiscVariants)(),
227
+ ...currentAttribute,
228
+ children: hasCustomGlyph ? children : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
229
+ className: (0, _styles.stepperIndicatorNumeralVariants)(),
230
+ ...currentAttribute,
231
+ children: String(index + 1)
232
+ })
233
+ })]
234
+ });
235
+ });
236
+ StepperIndicatorComponent.displayName = 'Stepper.Indicator';
237
+
238
+ // =============================================================================
239
+ // TITLE
240
+ // =============================================================================
241
+
242
+ const StepperTitleComponent = /*#__PURE__*/(0, _react.forwardRef)(({
243
+ asChild,
244
+ className,
245
+ style,
246
+ ...props
247
+ }, ref) => {
248
+ const {
249
+ isCurrent,
250
+ orientation,
251
+ labelPlacement
252
+ } = (0, _primitives.useStepperStep)();
253
+ const isCentered = (0, _styles.getStepperLayout)(orientation, labelPlacement) === 'horizontal-bottom';
254
+ const Comp = asChild ? _primitives.Slot : _reactNative.Text;
255
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
256
+ ref: ref,
257
+ className: (0, _utils.cn)((0, _styles.stepperTitleVariants)({
258
+ isCentered
259
+ }), className),
260
+ style: style,
261
+ ...props,
262
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
263
+ slot: 'stepper-title',
264
+ current: isCurrent
265
+ }))
266
+ });
267
+ });
268
+ StepperTitleComponent.displayName = 'Stepper.Title';
269
+
270
+ // =============================================================================
271
+ // DESCRIPTION
272
+ // =============================================================================
273
+
274
+ const StepperDescriptionComponent = /*#__PURE__*/(0, _react.forwardRef)(({
275
+ asChild,
276
+ className,
277
+ style,
278
+ ...props
279
+ }, ref) => {
280
+ const {
281
+ orientation,
282
+ labelPlacement
283
+ } = (0, _primitives.useStepperStep)();
284
+ const isCentered = (0, _styles.getStepperLayout)(orientation, labelPlacement) === 'horizontal-bottom';
285
+ const Comp = asChild ? _primitives.Slot : _reactNative.Text;
286
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
287
+ ref: ref,
288
+ className: (0, _utils.cn)((0, _styles.stepperDescriptionVariants)({
289
+ isCentered
290
+ }), className),
291
+ style: style,
292
+ ...props,
293
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
294
+ slot: 'stepper-description'
295
+ }))
296
+ });
297
+ });
298
+ StepperDescriptionComponent.displayName = 'Stepper.Description';
299
+
300
+ // =============================================================================
301
+ // CONTENT
302
+ // =============================================================================
303
+
304
+ const StepperContentComponent = /*#__PURE__*/(0, _react.forwardRef)(({
305
+ asChild,
306
+ className,
307
+ style,
308
+ ...props
309
+ }, ref) => {
310
+ const Comp = asChild ? _primitives.Slot : _reactNative.View;
311
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
312
+ ref: ref,
313
+ className: (0, _utils.cn)((0, _styles.stepperContentVariants)(), className),
314
+ style: style,
315
+ ...props,
316
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
317
+ slot: 'stepper-content'
318
+ }))
319
+ });
320
+ });
321
+ StepperContentComponent.displayName = 'Stepper.Content';
322
+
323
+ // =============================================================================
324
+ // SEPARATOR
325
+ // =============================================================================
326
+
327
+ const StepperSeparatorComponent = /*#__PURE__*/(0, _react.forwardRef)(({
328
+ asChild,
329
+ className,
330
+ style,
331
+ ...props
332
+ }, ref) => {
333
+ const {
334
+ isLast,
335
+ orientation,
336
+ labelPlacement
337
+ } = (0, _primitives.useStepperStep)();
338
+ if (isLast) {
339
+ return null;
340
+ }
341
+ const Comp = asChild ? _primitives.Slot : _reactNative.View;
342
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
343
+ ref: ref,
344
+ className: (0, _utils.cn)((0, _styles.stepperSeparatorVariants)({
345
+ layout: (0, _styles.getStepperLayout)(orientation, labelPlacement)
346
+ }), className),
347
+ style: style,
348
+ ...props,
349
+ ...HIDDEN_FROM_AT,
350
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
351
+ slot: 'stepper-separator'
352
+ }))
353
+ });
354
+ });
355
+ StepperSeparatorComponent.displayName = 'Stepper.Separator';
356
+
357
+ // =============================================================================
358
+ // COMPOUND EXPORT
359
+ // =============================================================================
360
+
361
+ const Stepper = exports.Stepper = Object.assign(StepperRootComponent, {
362
+ Step: StepperStepComponent,
363
+ Indicator: StepperIndicatorComponent,
364
+ Title: StepperTitleComponent,
365
+ Description: StepperDescriptionComponent,
366
+ Content: StepperContentComponent,
367
+ Separator: StepperSeparatorComponent
368
+ });
369
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_primitives","_icons","_utils","_Icon","_ProgressRing","_styles","_useStepperLabelFit","_useStepperRingColors","_jsxRuntime","StepperLabelFitContext","createContext","countSteps","children","asChild","source","isValidElement","props","flattenChildren","filter","child","length","HIDDEN_FROM_AT","accessibilityElementsHidden","importantForAccessibility","StepperRootComponent","forwardRef","className","style","orientation","labelPlacement","ref","layout","getStepperLayout","fit","measureRef","useStepperLabelFit","rootRef","useMemo","undefined","mergeRefs","jsx","Provider","value","StepperRoot","cn","stepperVariants","mergeDataAttributes","dataAttributes","slot","displayName","isSlot","type","StepperStepComponent","count","useStepperContext","labelFit","useContext","isLast","useStepperIndex","stepClass","stepperStepVariants","slotAttributes","StepperStep","childArray","Children","toArray","indicator","find","StepperIndicatorComponent","title","StepperTitleComponent","description","StepperDescriptionComponent","separator","StepperSeparatorComponent","body","hasLabel","jsxs","View","stepperStepMainVariants","StepperStepTrigger","stepperStepTriggerVariants","stepperStepLabelVariants","stepperStepBodyVariants","index","isCurrent","isComplete","hasProgress","progress","useStepperStep","ringColors","useStepperRingColors","currentAttribute","current","indicatorClass","stepperIndicatorVariants","indicatorAttributes","complete","Slot","hasCustomGlyph","stepperIndicatorRingVariants","ProgressRing","size","STEPPER_INDICATOR_SIZE","strokeWidth","STEPPER_RING_STROKE_WIDTH","trackColor","track","indicatorColor","Icon","as","CheckCircle","filled","stepperIndicatorCheckVariants","stepperIndicatorDiscVariants","Text","stepperIndicatorNumeralVariants","String","isCentered","Comp","stepperTitleVariants","stepperDescriptionVariants","StepperContentComponent","stepperContentVariants","stepperSeparatorVariants","Stepper","exports","Object","assign","Step","Indicator","Title","Description","Content","Separator"],"sourceRoot":"../../../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oB,CAAC,CAAC;EAAC,CAC9E,CAAC;AAEN,CACF,CAAC;AAED0B,yBAAyB,CAACzB,WAAW,GAAG,mBAAmB;;AAE3D;AACA;AACA;;AAWO,MAAM4E,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGE,MAAM,CAACC,MAAM,CAACxG,oBAAoB,EAAE;EACzDyG,IAAI,EAAE7E,oBAAoB;EAC1B8E,SAAS,EAAE9D,yBAAyB;EACpC+D,KAAK,EAAE7D,qBAAqB;EAC5B8D,WAAW,EAAE5D,2BAA2B;EACxC6D,OAAO,EAAEX,uBAAuB;EAChCY,SAAS,EAAE5D;AACb,CAAC,CAA6B","ignoreList":[]}
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.STEPPER_RING_STROKE_WIDTH = exports.STEPPER_INDICATOR_SIZE = void 0;
7
+ exports.getStepperLayout = getStepperLayout;
8
+ exports.stepperVariants = exports.stepperTitleVariants = exports.stepperStepVariants = exports.stepperStepTriggerVariants = exports.stepperStepMainVariants = exports.stepperStepLabelVariants = exports.stepperStepBodyVariants = exports.stepperSeparatorVariants = exports.stepperIndicatorVariants = exports.stepperIndicatorRingVariants = exports.stepperIndicatorNumeralVariants = exports.stepperIndicatorDiscVariants = exports.stepperIndicatorCheckVariants = exports.stepperDescriptionVariants = exports.stepperContentVariants = void 0;
9
+ var _reactNative = require("react-native");
10
+ var _utils = require("@cdx-ui/utils");
11
+ var _constants = require("../../styles/constants");
12
+ /** Indicator frame in px. The ring is drawn at this size around the 24px disc. */
13
+ const STEPPER_INDICATOR_SIZE = exports.STEPPER_INDICATOR_SIZE = 34;
14
+ const STEPPER_RING_STROKE_WIDTH = exports.STEPPER_RING_STROKE_WIDTH = 3;
15
+ function getStepperLayout(orientation, labelPlacement) {
16
+ if (orientation === 'vertical') {
17
+ return 'vertical';
18
+ }
19
+ return labelPlacement === 'bottom' ? 'horizontal-bottom' : 'horizontal-end';
20
+ }
21
+
22
+ // Horizontal layouts:
23
+ // - `horizontal-end` (label after the indicator): steps start at their content width and every
24
+ // step but the last grows; that growth goes to its in-flow separator. With `labelFit: 'words'`
25
+ // (web, while the row fits) steps keep their min-content width so labels wrap between words;
26
+ // with `'shrink'` RN Web's `min-width: 0` lets them shrink further so the row never overflows.
27
+ // - `horizontal-bottom` (label centered below): equal columns; the separator is absolute, so it
28
+ // never affects column layout.
29
+ const stepperVariants = exports.stepperVariants = (0, _utils.cva)([], {
30
+ variants: {
31
+ layout: {
32
+ vertical: 'flex-col',
33
+ 'horizontal-end': 'w-full flex-row items-start',
34
+ 'horizontal-bottom': 'w-full flex-row items-start'
35
+ }
36
+ },
37
+ defaultVariants: {
38
+ layout: 'vertical'
39
+ }
40
+ });
41
+ const stepperStepVariants = exports.stepperStepVariants = (0, _utils.cva)([], {
42
+ variants: {
43
+ layout: {
44
+ vertical: 'flex-row',
45
+ 'horizontal-end': 'min-w-0 flex-row items-start',
46
+ 'horizontal-bottom': 'relative min-w-0 flex-1 basis-0 items-center'
47
+ },
48
+ isLast: {
49
+ true: '',
50
+ false: ''
51
+ },
52
+ labelFit: {
53
+ words: '',
54
+ shrink: ''
55
+ }
56
+ },
57
+ compoundVariants: [{
58
+ layout: 'horizontal-end',
59
+ isLast: false,
60
+ className: 'grow shrink basis-auto pe-2'
61
+ }, {
62
+ layout: 'horizontal-end',
63
+ isLast: true,
64
+ className: 'shrink'
65
+ }, {
66
+ layout: 'horizontal-end',
67
+ labelFit: 'words',
68
+ className: 'min-w-auto'
69
+ }],
70
+ defaultVariants: {
71
+ layout: 'vertical',
72
+ isLast: false,
73
+ labelFit: 'shrink'
74
+ }
75
+ });
76
+
77
+ // Unexported layout wrappers inside `Stepper.Step` (no `data-slot`).
78
+ const stepperStepMainVariants = exports.stepperStepMainVariants = (0, _utils.cva)(['min-w-0'], {
79
+ variants: {
80
+ layout: {
81
+ vertical: 'flex-1',
82
+ 'horizontal-end': 'shrink',
83
+ 'horizontal-bottom': 'items-center self-stretch px-2'
84
+ },
85
+ labelFit: {
86
+ words: '',
87
+ shrink: ''
88
+ }
89
+ },
90
+ compoundVariants: [{
91
+ layout: 'horizontal-end',
92
+ labelFit: 'words',
93
+ className: 'min-w-auto'
94
+ }],
95
+ defaultVariants: {
96
+ layout: 'vertical',
97
+ labelFit: 'shrink'
98
+ }
99
+ });
100
+
101
+ // Each layout pads the hover and press fill and cancels it with an equal negative margin, so a
102
+ // step keeps its geometry when it becomes clickable. The 24px disc sits 5px inside its 34px
103
+ // frame, so sides bounded by the disc get 4px and sides bounded by text get 9px; the fill then
104
+ // looks evenly padded. Each layout aligns the trigger to its content (`self-start`, or
105
+ // `self-center` under a centered label) so the fill hugs the indicator and label instead of
106
+ // spanning the step. Hover, press and focus-visible use the `Tabs` hover tokens and the Forge
107
+ // focus ring until the designer specifies clickable-step states.
108
+ const stepperStepTriggerVariants = exports.stepperStepTriggerVariants = (0, _utils.cva)(['rounded-md', _constants.TRANSITION_COLORS, _reactNative.Platform.select({
109
+ default: 'data-[active=true]:bg-surface-secondary-active',
110
+ web: ['outline-none data-[clickable=true]:cursor-pointer', 'data-[hover=true]:bg-surface-secondary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2'].join(' ')
111
+ })], {
112
+ variants: {
113
+ layout: {
114
+ vertical: 'flex-row items-start self-start gap-2 -my-1 -ms-1 -me-[9px] py-1 ps-1 pe-[9px]',
115
+ 'horizontal-end': 'flex-row items-start self-start gap-2 -my-1 -ms-1 -me-[9px] py-1 ps-1 pe-[9px]',
116
+ 'horizontal-bottom': 'min-w-0 items-center self-center gap-1 -mx-[9px] -mt-1 -mb-[9px] px-[9px] pt-1 pb-[9px]'
117
+ }
118
+ },
119
+ defaultVariants: {
120
+ layout: 'vertical'
121
+ }
122
+ });
123
+ const stepperStepLabelVariants = exports.stepperStepLabelVariants = (0, _utils.cva)(['min-w-0'], {
124
+ variants: {
125
+ layout: {
126
+ vertical: 'shrink py-[7px]',
127
+ 'horizontal-end': 'shrink py-[7px]',
128
+ 'horizontal-bottom': 'self-stretch'
129
+ },
130
+ labelFit: {
131
+ words: '',
132
+ shrink: ''
133
+ }
134
+ },
135
+ compoundVariants: [{
136
+ layout: 'horizontal-end',
137
+ labelFit: 'words',
138
+ className: 'min-w-auto'
139
+ }],
140
+ defaultVariants: {
141
+ layout: 'vertical',
142
+ labelFit: 'shrink'
143
+ }
144
+ });
145
+ const stepperStepBodyVariants = exports.stepperStepBodyVariants = (0, _utils.cva)([], {
146
+ variants: {
147
+ layout: {
148
+ vertical: 'ps-[42px]',
149
+ 'horizontal-end': 'ps-[42px]',
150
+ 'horizontal-bottom': 'self-stretch'
151
+ }
152
+ },
153
+ defaultVariants: {
154
+ layout: 'vertical'
155
+ }
156
+ });
157
+
158
+ // Indicator, disc, numeral and check each emit their own `data-current` because native
159
+ // Uniwind cannot style a child from its parent's data attributes.
160
+ const stepperIndicatorVariants = exports.stepperIndicatorVariants = (0, _utils.cva)(['relative size-[34px] shrink-0 items-center justify-center']);
161
+ const stepperIndicatorRingVariants = exports.stepperIndicatorRingVariants = (0, _utils.cva)(['pointer-events-none absolute inset-0']);
162
+ const stepperIndicatorDiscVariants = exports.stepperIndicatorDiscVariants = (0, _utils.cva)(['size-6 items-center justify-center rounded-full', 'bg-surface-neutral-strong data-[current=true]:bg-surface-brand-strong']);
163
+ const stepperIndicatorNumeralVariants = exports.stepperIndicatorNumeralVariants = (0, _utils.cva)(['body-sm font-medium', 'text-content-neutral-on-strong data-[current=true]:text-content-brand-on-strong']);
164
+ const stepperIndicatorCheckVariants = exports.stepperIndicatorCheckVariants = (0, _utils.cva)(['size-7 text-content-neutral data-[current=true]:text-content-brand']);
165
+
166
+ // Native text alignment does not inherit from a parent `View`, so centered labels set it on
167
+ // each text part.
168
+ const stepperTitleVariants = exports.stepperTitleVariants = (0, _utils.cva)(['body-md text-content-secondary', 'data-[current=true]:font-medium data-[current=true]:text-content-primary'], {
169
+ variants: {
170
+ isCentered: {
171
+ true: 'text-center',
172
+ false: ''
173
+ }
174
+ },
175
+ defaultVariants: {
176
+ isCentered: false
177
+ }
178
+ });
179
+ const stepperDescriptionVariants = exports.stepperDescriptionVariants = (0, _utils.cva)(['body-sm text-content-secondary'], {
180
+ variants: {
181
+ isCentered: {
182
+ true: 'text-center',
183
+ false: ''
184
+ }
185
+ },
186
+ defaultVariants: {
187
+ isCentered: false
188
+ }
189
+ });
190
+ const stepperContentVariants = exports.stepperContentVariants = (0, _utils.cva)(['gap-2 py-2']);
191
+
192
+ // Vertical: rendered before the step's main column with zero net width, centered under the
193
+ // 34px frame; `self-stretch` follows the title and content.
194
+ // `horizontal-end`: in flow after the label, centered on the frame's height; it takes the
195
+ // step's growth, and the step's `pe-2` leaves 8px before the next indicator.
196
+ // `horizontal-bottom`: absolute from this column's center to the next one's (columns are equal
197
+ // and have no gap), inset 25px at each end: half the 34px frame plus 8px.
198
+ // `z-10` keeps the line above a clickable trigger's hover and press fill.
199
+ const stepperSeparatorVariants = exports.stepperSeparatorVariants = (0, _utils.cva)(['z-10 bg-stroke-secondary'], {
200
+ variants: {
201
+ layout: {
202
+ vertical: 'relative mt-[34px] min-h-6 w-px self-stretch ms-[16.5px] -me-[17.5px]',
203
+ 'horizontal-end': 'relative mt-[16.5px] h-px min-w-6 flex-1 ms-2',
204
+ 'horizontal-bottom': 'absolute top-[16.5px] start-[50%] end-[-50%] h-px ms-[25px] me-[25px]'
205
+ }
206
+ },
207
+ defaultVariants: {
208
+ layout: 'vertical'
209
+ }
210
+ });
211
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_utils","_constants","STEPPER_INDICATOR_SIZE","exports","STEPPER_RING_STROKE_WIDTH","getStepperLayout","orientation","labelPlacement","stepperVariants","cva","variants","layout","vertical","defaultVariants","stepperStepVariants","isLast","true","false","labelFit","words","shrink","compoundVariants","className","stepperStepMainVariants","stepperStepTriggerVariants","TRANSITION_COLORS","Platform","select","default","web","join","stepperStepLabelVariants","stepperStepBodyVariants","stepperIndicatorVariants","stepperIndicatorRingVariants","stepperIndicatorDiscVariants","stepperIndicatorNumeralVariants","stepperIndicatorCheckVariants","stepperTitleVariants","isCentered","stepperDescriptionVariants","stepperContentVariants","stepperSeparatorVariants"],"sourceRoot":"../../../../src","sources":["components/Stepper/styles.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA;AACO,MAAMG,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,EAAE;AACjC,MAAME,yBAAyB,GAAAD,OAAA,CAAAC,yBAAA,GAAG,CAAC;AAInC,SAASC,gBAAgBA,CAC9BC,WAA+B,EAC/BC,cAAqC,EACtB;EACf,IAAID,WAAW,KAAK,UAAU,EAAE;IAC9B,OAAO,UAAU;EACnB;EACA,OAAOC,cAAc,KAAK,QAAQ,GAAG,mBAAmB,GAAG,gBAAgB;AAC7E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,eAAe,GAAAL,OAAA,CAAAK,eAAA,GAAG,IAAAC,UAAG,EAAC,EAAE,EAAE;EACrCC,QAAQ,EAAE;IACRC,MAAM,EAAE;MACNC,QAAQ,EAAE,UAAU;MACpB,gBAAgB,EAAE,6BAA6B;MAC/C,mBAAmB,EAAE;IACvB;EACF,CAAC;EACDC,eAAe,EAAE;IACfF,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEK,MAAMG,mBAAmB,GAAAX,OAAA,CAAAW,mBAAA,GAAG,IAAAL,UAAG,EAAC,EAAE,EAAE;EACzCC,QAAQ,EAAE;IACRC,MAAM,EAAE;MACNC,QAAQ,EAAE,UAAU;MACpB,gBAAgB,EAAE,8BAA8B;MAChD,mBAAmB,EAAE;IACvB,CAA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,IAAAjC,UAAG,EAAC,CAAC,0BAA0B,CAAC,EAAE;EACxEC,QAAQ,EAAE;IACRC,MAAM,EAAE;MACNC,QAAQ,EAAE,uEAAuE;MACjF,gBAAgB,EAAE,+CAA+C;MACjE,mBAAmB,EAAE;IACvB;EACF,CAAC;EACDC,eAAe,EAAE;IACfF,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useStepperLabelFit = useStepperLabelFit;
7
+ /**
8
+ * How `horizontal-end` labels give way when the row runs out of room. `'words'` keeps each
9
+ * step at least as wide as its longest word, so labels wrap only between words; `'shrink'` lets
10
+ * steps shrink below that so the row never overflows.
11
+ */
12
+
13
+ const NATIVE_RESULT = {
14
+ fit: 'shrink',
15
+ measureRef: undefined
16
+ };
17
+
18
+ /** Native layout has no min-content sizing, so steps always shrink to fit. */
19
+ function useStepperLabelFit(_enabled, _count) {
20
+ return NATIVE_RESULT;
21
+ }
22
+ //# sourceMappingURL=useStepperLabelFit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NATIVE_RESULT","fit","measureRef","undefined","useStepperLabelFit","_enabled","_count"],"sourceRoot":"../../../../src","sources":["components/Stepper/useStepperLabelFit.ts"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;;AAQA,MAAMA,aAAoC,GAAG;EAAEC,GAAG,EAAE,QAAQ;EAAEC,UAAU,EAAEC;AAAU,CAAC;;AAErF;AACO,SAASC,kBAAkBA,CAACC,QAAiB,EAAEC,MAAc,EAAyB;EAC3F,OAAON,aAAa;AACtB","ignoreList":[]}