@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,525 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SystemAlert = void 0;
7
+ Object.defineProperty(exports, "useSystemAlertStatusBarStyle", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _useSystemAlertStatusBarStyle.useSystemAlertStatusBarStyle;
11
+ }
12
+ });
13
+ var _react = require("react");
14
+ var _reactNative = require("react-native");
15
+ var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
16
+ var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
17
+ var _primitives = require("@cdx-ui/primitives");
18
+ var _icons = require("@cdx-ui/icons");
19
+ var _utils = require("@cdx-ui/utils");
20
+ var _Button = require("../Button");
21
+ var _Icon = require("../Icon");
22
+ var _IconButton = require("../IconButton");
23
+ var _animation = require("./animation");
24
+ var _styles = require("./styles");
25
+ var _jsxRuntime = require("react/jsx-runtime");
26
+ var _useSystemAlertStatusBarStyle = require("./useSystemAlertStatusBarStyle");
27
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
+ // =============================================================================
29
+ // CONTEXT
30
+ // =============================================================================
31
+ const SCOPE = 'SYSTEM_ALERT';
32
+ const useSystemAlertStyleContext = () => {
33
+ const ctx = (0, _utils.useStyleContext)(SCOPE);
34
+ return {
35
+ color: ctx?.color ?? 'info',
36
+ hasClose: ctx?.hasClose ?? false
37
+ };
38
+ };
39
+ // Provided only in presence mode, so a static banner's Description never registers.
40
+ const [SystemAlertDescriptionRegistryProvider, useSystemAlertDescriptionRegistry] = (0, _utils.createContext)('SystemAlertDescriptionRegistry', {
41
+ strict: false
42
+ });
43
+ const COLOR_ICONS = {
44
+ danger: _icons.EmergencyHome,
45
+ warning: _icons.Warning,
46
+ success: _icons.CheckCircle,
47
+ info: _icons.Info,
48
+ brand: _icons.Error
49
+ };
50
+
51
+ // =============================================================================
52
+ // PRESENCE (internal, `isOpen` only)
53
+ // =============================================================================
54
+
55
+ const AnimatedSlot = _reactNativeReanimated.default.createAnimatedComponent(_primitives.Slot);
56
+
57
+ // Screen-reader focus on a leaving surface would land somewhere unpredictable.
58
+ const EXITING_SURFACE_PROPS = {
59
+ importantForAccessibility: 'no-hide-descendants',
60
+ accessibilityElementsHidden: true,
61
+ pointerEvents: 'none'
62
+ };
63
+
64
+ // `scroll` clips like `hidden` on iOS and Android, but Yoga caps a child's flex-basis height at
65
+ // its parent's height unless the parent's overflow is `scroll`. Under `hidden`, the moving
66
+ // wrapper's fixed height caps the surface, iOS lays the description out as one clipped line,
67
+ // and the banner jumps by a line when it settles. Inline because Uniwind compiles
68
+ // `overflow-scroll` to `{ x, y }` keys that React Native ignores.
69
+ const NATIVE_WRAPPER_STYLE = {
70
+ overflow: 'scroll'
71
+ };
72
+
73
+ // RNW ignores the native hiding props and deprecates the `pointerEvents` prop.
74
+ const WEB_EXITING_SURFACE_PROPS = {
75
+ 'aria-hidden': true
76
+ };
77
+ const WEB_EXITING_SURFACE_STYLE = {
78
+ pointerEvents: 'none'
79
+ };
80
+ function SystemAlertPresenceSurface({
81
+ presence,
82
+ asChild,
83
+ surfaceRef,
84
+ style,
85
+ onLayout,
86
+ children,
87
+ ...props
88
+ }) {
89
+ const {
90
+ setSurfaceHeight,
91
+ phase
92
+ } = presence;
93
+ const isWeb = _reactNative.Platform.OS === 'web';
94
+ const nodeRef = (0, _react.useRef)(null);
95
+ const ref = (0, _react.useMemo)(() => (0, _utils.mergeRefs)(surfaceRef, nodeRef), [surfaceRef]);
96
+ const surfaceStyle = (0, _animation.useSystemAlertSurfaceStyle)(presence);
97
+ (0, _react.useLayoutEffect)(() => {
98
+ const node = nodeRef.current;
99
+ // RNW's `measure` is deferred, which would let the first frames transition toward 0.
100
+ if (isWeb) {
101
+ const element = node;
102
+ if (typeof element?.getBoundingClientRect === 'function') {
103
+ setSurfaceHeight(element.getBoundingClientRect().height);
104
+ }
105
+ return;
106
+ }
107
+ if (typeof node?.measure !== 'function') return;
108
+ node.measure((_x, _y, _width, height) => {
109
+ setSurfaceHeight(height);
110
+ });
111
+ }, [isWeb, setSurfaceHeight]);
112
+ const handleLayout = (0, _react.useCallback)(event => {
113
+ onLayout?.(event);
114
+ setSurfaceHeight(event.nativeEvent.layout.height);
115
+ }, [onLayout, setSurfaceHeight]);
116
+ const isExiting = phase === 'exiting';
117
+ if (isWeb) {
118
+ const WebComp = asChild ? _primitives.Slot : _reactNative.View;
119
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(WebComp, {
120
+ ref: ref,
121
+ style: [style, isExiting ? WEB_EXITING_SURFACE_STYLE : undefined],
122
+ ...props,
123
+ ...(isExiting ? WEB_EXITING_SURFACE_PROPS : undefined),
124
+ onLayout: handleLayout,
125
+ children: children
126
+ });
127
+ }
128
+ const Comp = asChild ? AnimatedSlot : _reactNativeReanimated.default.View;
129
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
130
+ ref: ref,
131
+ style: [style, surfaceStyle],
132
+ ...props,
133
+ ...(isExiting ? EXITING_SURFACE_PROPS : undefined),
134
+ onLayout: handleLayout,
135
+ children: children
136
+ });
137
+ }
138
+ function SystemAlertPresence({
139
+ isOpen,
140
+ animation,
141
+ collapsedHeight,
142
+ isAssertive,
143
+ liveRegion,
144
+ ...surfaceProps
145
+ }) {
146
+ const presence = (0, _animation.useSystemAlertPresence)({
147
+ isOpen,
148
+ animation,
149
+ collapsedHeight
150
+ });
151
+ const descriptionRef = (0, _react.useRef)(null);
152
+ const registerDescription = (0, _react.useCallback)((owner, text) => {
153
+ if (text !== null) {
154
+ descriptionRef.current = {
155
+ owner,
156
+ text
157
+ };
158
+ } else if (descriptionRef.current?.owner === owner) {
159
+ descriptionRef.current = null;
160
+ }
161
+ }, []);
162
+ const registry = (0, _react.useMemo)(() => ({
163
+ registerDescription
164
+ }), [registerDescription]);
165
+
166
+ // iOS has no live regions. Announce on the open edge only, after the newly mounted
167
+ // Description has registered, and without waiting for the slide.
168
+ const wasOpenRef = (0, _react.useRef)(isOpen);
169
+ (0, _react.useEffect)(() => {
170
+ const wasOpen = wasOpenRef.current;
171
+ wasOpenRef.current = isOpen;
172
+ if (!isOpen || wasOpen || _reactNative.Platform.OS !== 'ios') return;
173
+ const text = descriptionRef.current?.text ?? '';
174
+ if (!text) {
175
+ if (__DEV__) {
176
+ console.warn('[SystemAlert] Opened without an announcement: `SystemAlert.Description` children must contain text. Text a component resolves itself, outside its children, cannot be read.');
177
+ }
178
+ return;
179
+ }
180
+ _reactNative.AccessibilityInfo.announceForAccessibilityWithOptions(text, {
181
+ queue: !isAssertive
182
+ });
183
+ }, [isOpen, isAssertive]);
184
+ const surface = presence.isSurfaceMounted ? /*#__PURE__*/(0, _jsxRuntime.jsx)(SystemAlertPresenceSurface, {
185
+ presence: presence,
186
+ ...surfaceProps
187
+ }) : null;
188
+
189
+ // Web announces the surface's `role` insertion; an `aria-live` wrapper around it could
190
+ // announce it twice.
191
+ if (_reactNative.Platform.OS === 'web') {
192
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SystemAlertDescriptionRegistryProvider, {
193
+ value: registry,
194
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
195
+ ref: presence.wrapperRef,
196
+ className: (0, _styles.systemAlertPresenceVariants)(),
197
+ style: {
198
+ height: presence.webWrapperHeight,
199
+ minHeight: collapsedHeight
200
+ },
201
+ ...(0, _primitives.dataAttributes)({
202
+ state: presence.webState
203
+ }),
204
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
205
+ className: (0, _styles.systemAlertPresenceClipVariants)(),
206
+ style: {
207
+ height: presence.webWrapperHeight
208
+ },
209
+ ...(0, _primitives.dataAttributes)({
210
+ state: presence.webState
211
+ }),
212
+ children: surface
213
+ })
214
+ })
215
+ });
216
+ }
217
+
218
+ // The live region sits on the wrapper, which stays mounted while closed, so TalkBack
219
+ // hears the open as a change inside an existing region.
220
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SystemAlertDescriptionRegistryProvider, {
221
+ value: registry,
222
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
223
+ className: (0, _styles.systemAlertPresenceVariants)(),
224
+ style: [NATIVE_WRAPPER_STYLE, presence.wrapperStyle],
225
+ accessibilityLiveRegion: liveRegion,
226
+ children: surface
227
+ })
228
+ });
229
+ }
230
+
231
+ // =============================================================================
232
+ // ROOT
233
+ // =============================================================================
234
+
235
+ const SystemAlertRoot = /*#__PURE__*/(0, _react.forwardRef)(({
236
+ asChild,
237
+ isOpen,
238
+ animation,
239
+ color = 'info',
240
+ hasSafeAreaInset = true,
241
+ onClose,
242
+ closeAccessibilityLabel = 'Dismiss alert',
243
+ className,
244
+ style,
245
+ children,
246
+ ...props
247
+ }, ref) => {
248
+ const insets = (0, _react.useContext)(_reactNativeSafeAreaContext.SafeAreaInsetsContext);
249
+ const hasClose = !!onClose;
250
+ const parent = (0, _utils.useParentContext)();
251
+ const ctx = (0, _react.useMemo)(() => ({
252
+ ...parent,
253
+ [SCOPE]: {
254
+ color,
255
+ hasClose
256
+ }
257
+ }), [parent, color, hasClose]);
258
+ const isAssertive = color === 'danger' || color === 'warning';
259
+ const role = isAssertive ? 'alert' : 'status';
260
+ const liveRegion = isAssertive ? 'assertive' : 'polite';
261
+ const insetTop = hasSafeAreaInset ? insets?.top ?? 0 : 0;
262
+ const rootStyle = hasSafeAreaInset ? [{
263
+ paddingTop: insetTop
264
+ }, style] : style;
265
+ const dataProps = (0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
266
+ slot: 'system-alert'
267
+ }));
268
+ const body = asChild ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
269
+ className: (0, _styles.systemAlertBodyVariants)(),
270
+ children: [children, onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.IconButton, {
271
+ as: _icons.Close,
272
+ variant: "ghost",
273
+ size: "small",
274
+ onPress: onClose,
275
+ accessibilityLabel: closeAccessibilityLabel,
276
+ className: (0, _styles.systemAlertCloseVariants)({
277
+ color
278
+ }),
279
+ iconClassName: (0, _styles.systemAlertCloseIconVariants)({
280
+ color
281
+ }),
282
+ ...(0, _primitives.dataAttributes)({
283
+ slot: 'system-alert-close'
284
+ })
285
+ }) : null]
286
+ });
287
+ if (isOpen !== undefined) {
288
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
289
+ value: ctx,
290
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SystemAlertPresence, {
291
+ isOpen: isOpen,
292
+ animation: animation,
293
+ collapsedHeight: insetTop,
294
+ isAssertive: isAssertive,
295
+ liveRegion: liveRegion,
296
+ surfaceRef: ref,
297
+ asChild: asChild,
298
+ className: (0, _utils.cn)((0, _styles.systemAlertRootVariants)({
299
+ color
300
+ }), (0, _styles.systemAlertPresenceSurfaceVariants)(), className),
301
+ style: rootStyle,
302
+ role: role,
303
+ ...props,
304
+ ...dataProps,
305
+ children: asChild ? children : body
306
+ })
307
+ });
308
+ }
309
+ const rootClassName = (0, _utils.cn)((0, _styles.systemAlertRootVariants)({
310
+ color
311
+ }), className);
312
+ if (asChild) {
313
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
314
+ value: ctx,
315
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Slot, {
316
+ ref: ref,
317
+ className: rootClassName,
318
+ style: rootStyle,
319
+ role: role,
320
+ accessibilityLiveRegion: liveRegion,
321
+ ...props,
322
+ ...dataProps,
323
+ children: children
324
+ })
325
+ });
326
+ }
327
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
328
+ value: ctx,
329
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
330
+ ref: ref,
331
+ className: rootClassName,
332
+ style: rootStyle,
333
+ role: role,
334
+ accessibilityLiveRegion: liveRegion,
335
+ ...props,
336
+ ...dataProps,
337
+ children: body
338
+ })
339
+ });
340
+ });
341
+ SystemAlertRoot.displayName = 'SystemAlert';
342
+
343
+ // =============================================================================
344
+ // ICON
345
+ // =============================================================================
346
+
347
+ const SystemAlertIcon = /*#__PURE__*/(0, _react.forwardRef)(({
348
+ asChild,
349
+ as: asOverride,
350
+ className,
351
+ style,
352
+ ...props
353
+ }, ref) => {
354
+ const {
355
+ color
356
+ } = useSystemAlertStyleContext();
357
+ const computedClassName = (0, _utils.cn)((0, _styles.systemAlertIconVariants)({
358
+ color
359
+ }), className);
360
+ const dataProps = (0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
361
+ slot: 'system-alert-icon'
362
+ }));
363
+ if (asChild) {
364
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Slot, {
365
+ ref: ref,
366
+ className: computedClassName,
367
+ style: style,
368
+ ...props,
369
+ ...dataProps
370
+ });
371
+ }
372
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
373
+ as: asOverride ?? COLOR_ICONS[color],
374
+ className: computedClassName,
375
+ style: style,
376
+ ...props,
377
+ ...dataProps
378
+ });
379
+ });
380
+ SystemAlertIcon.displayName = 'SystemAlert.Icon';
381
+
382
+ // =============================================================================
383
+ // DESCRIPTION
384
+ // =============================================================================
385
+
386
+ const SystemAlertDescription = /*#__PURE__*/(0, _react.forwardRef)(({
387
+ asChild,
388
+ className,
389
+ style,
390
+ children,
391
+ ...props
392
+ }, ref) => {
393
+ const {
394
+ color
395
+ } = useSystemAlertStyleContext();
396
+ const registry = useSystemAlertDescriptionRegistry();
397
+ const [owner] = (0, _react.useState)(() => ({}));
398
+ const text = registry ? (0, _utils.getTextContent)(children) : '';
399
+ (0, _react.useLayoutEffect)(() => {
400
+ registry?.registerDescription(owner, text);
401
+ }, [registry, owner, text]);
402
+ (0, _react.useLayoutEffect)(() => () => registry?.registerDescription(owner, null), [registry, owner]);
403
+ const computedClassName = (0, _utils.cn)((0, _styles.systemAlertDescriptionVariants)({
404
+ color
405
+ }), className);
406
+ const Comp = asChild ? _primitives.Slot : _reactNative.Text;
407
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
408
+ ref: ref,
409
+ className: computedClassName,
410
+ style: style,
411
+ ...props,
412
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
413
+ slot: 'system-alert-description'
414
+ })),
415
+ children: children
416
+ });
417
+ });
418
+ SystemAlertDescription.displayName = 'SystemAlert.Description';
419
+
420
+ // =============================================================================
421
+ // ACTIONS
422
+ // =============================================================================
423
+
424
+ const SystemAlertActions = /*#__PURE__*/(0, _react.forwardRef)(({
425
+ asChild,
426
+ className,
427
+ style,
428
+ children,
429
+ ...props
430
+ }, ref) => {
431
+ const {
432
+ hasClose
433
+ } = useSystemAlertStyleContext();
434
+ const computedClassName = (0, _utils.cn)((0, _styles.systemAlertActionsVariants)({
435
+ hasClose
436
+ }), className);
437
+ const Comp = asChild ? _primitives.Slot : _reactNative.View;
438
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
439
+ ref: ref,
440
+ className: computedClassName,
441
+ style: style,
442
+ ...props,
443
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
444
+ slot: 'system-alert-actions'
445
+ })),
446
+ children: children
447
+ });
448
+ });
449
+ SystemAlertActions.displayName = 'SystemAlert.Actions';
450
+
451
+ // =============================================================================
452
+ // ACTION
453
+ // =============================================================================
454
+
455
+ const SystemAlertAction = /*#__PURE__*/(0, _react.forwardRef)(({
456
+ className,
457
+ children,
458
+ ...props
459
+ }, ref) => {
460
+ const {
461
+ color
462
+ } = useSystemAlertStyleContext();
463
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
464
+ ref: ref,
465
+ variant: "ghost",
466
+ size: "small",
467
+ className: (0, _utils.cn)((0, _styles.systemAlertActionVariants)({
468
+ color
469
+ }), className),
470
+ ...props,
471
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
472
+ slot: 'system-alert-action'
473
+ })),
474
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button.Label, {
475
+ className: (0, _styles.systemAlertActionLabelVariants)({
476
+ color
477
+ }),
478
+ children: children
479
+ })
480
+ });
481
+ });
482
+ SystemAlertAction.displayName = 'SystemAlert.Action';
483
+
484
+ // =============================================================================
485
+ // ICON ACTION
486
+ // =============================================================================
487
+
488
+ const SystemAlertIconAction = /*#__PURE__*/(0, _react.forwardRef)(({
489
+ className,
490
+ iconClassName,
491
+ ...props
492
+ }, ref) => {
493
+ const {
494
+ color
495
+ } = useSystemAlertStyleContext();
496
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.IconButton, {
497
+ ref: ref,
498
+ variant: "ghost",
499
+ size: "small",
500
+ className: (0, _utils.cn)((0, _styles.systemAlertIconActionVariants)({
501
+ color
502
+ }), className),
503
+ iconClassName: (0, _utils.cn)((0, _styles.systemAlertIconActionIconVariants)({
504
+ color
505
+ }), iconClassName),
506
+ ...props,
507
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
508
+ slot: 'system-alert-icon-action'
509
+ }))
510
+ });
511
+ });
512
+ SystemAlertIconAction.displayName = 'SystemAlert.IconAction';
513
+
514
+ // =============================================================================
515
+ // COMPOUND EXPORT
516
+ // =============================================================================
517
+
518
+ const SystemAlert = exports.SystemAlert = Object.assign(SystemAlertRoot, {
519
+ Icon: SystemAlertIcon,
520
+ Description: SystemAlertDescription,
521
+ Actions: SystemAlertActions,
522
+ Action: SystemAlertAction,
523
+ IconAction: SystemAlertIconAction
524
+ });
525
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_reactNativeSafeAreaContext","_primitives","_icons","_utils","_Button","_Icon","_IconButton","_animation","_styles","_jsxRuntime","_useSystemAlertStatusBarStyle","e","__esModule","default","SCOPE","useSystemAlertStyleContext","ctx","useStyleContext","color","hasClose","SystemAlertDescriptionRegistryProvider","useSystemAlertDescriptionRegistry","createContext","strict","COLOR_ICONS","danger","EmergencyHome","warning","Warning","success","CheckCircle","info","Info","brand","ErrorIcon","AnimatedSlot","Animated","createAnimatedComponent","Slot","EXITING_SURFACE_PROPS","importantForAccessibility","accessibilityElementsHidden","pointerEvents","NATIVE_WRAPPER_STYLE","overflow","WEB_EXITING_SURFACE_PROPS","WEB_EXITING_SURFACE_STYLE","SystemAlertPresenceSurface","presence","asChild","surfaceRef","style","onLayout","children","props","setSurfaceHeight","phase","isWeb","Platform","OS","nodeRef","useRef","ref","useMemo","mergeRefs","surfaceStyle","useSystemAlertSurfaceStyle","useLayoutEffect","node","current","element","getBoundingClientRect","height","measure","_x","_y","_width","handleLayout","useCallback","event","nativeEvent","layout","isExiting","WebComp","View","jsx","undefined","Comp","SystemAlertPresence","isOpen","animation","collapsedHeight","isAssertive","liveRegion","surfaceProps","useSystemAlertPresence","descriptionRef","registerDescription","owner","text","registry","wasOpenRef","useEffect","wasOpen","__DEV__","console","warn","AccessibilityInfo","announceForAccessibilityWithOptions","queue","surface","isSurfaceMounted","value","wrapperRef","className","systemAlertPresenceVariants","webWrapperHeight","minHeight","dataAttributes","state","webState","systemAlertPresenceClipVariants","wrapperStyle","accessibilityLiveRegion","SystemAlertRoot","forwardRef","hasSafeAreaInset","onClose","closeAccessibilityLabel","insets","useContext","SafeAreaInsetsContext","parent","useParentContext","role","insetTop","top","rootStyle","paddingTop","dataProps","mergeDataAttributes","slot","body","jsxs","systemAlertBodyVariants","IconButton","as","Close","variant","size","onPress","accessibilityLabel","systemAlertCloseVariants","iconClassName","systemAlertCloseIconVariants","ParentContext","Provider","cn","systemAlertRootVariants","systemAlertPresenceSurfaceVariants","rootClassName","displayName","SystemAlertIcon","asOverride","computedClassName","systemAlertIconVariants","Icon","SystemAlertDescription","useState","getTextContent","systemAlertDescriptionVariants","Text","SystemAlertActions","systemAlertActionsVariants","SystemAlertAction","Button","systemAlertActionVariants","Label","systemAlertActionLabelVariants","SystemAlertIconAction","systemAlertIconActionVariants","systemAlertIconActionIconVariants","SystemAlert","exports","Object","assign","Description","Actions","Action","IconAction"],"sourceRoot":"../../../../src","sources":["components/SystemAlert/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAaA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAQA,IA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