@alfadocs/ui-kit-debug 0.89.0 → 0.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/_chunks/{antenatal-schedule-timeline-UiZQze4P.js → antenatal-schedule-timeline-BMMpi2lb.js} +17 -17
  2. package/dist/_chunks/{antenatal-schedule-timeline-UiZQze4P.js.map → antenatal-schedule-timeline-BMMpi2lb.js.map} +1 -1
  3. package/dist/_chunks/apexcharts-theme-fAQXLIMW.js +67 -0
  4. package/dist/_chunks/apexcharts-theme-fAQXLIMW.js.map +1 -0
  5. package/dist/_chunks/{appointment-timeline-CwpbQGC1.js → appointment-timeline-BB-c1LeR.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-CwpbQGC1.js.map → appointment-timeline-BB-c1LeR.js.map} +1 -1
  7. package/dist/_chunks/{ar-C9FRRqJs.js → ar-THMLfSoN.js} +22 -22
  8. package/dist/_chunks/{ar-C9FRRqJs.js.map → ar-THMLfSoN.js.map} +1 -1
  9. package/dist/_chunks/{booking-DEwmDprH.js → booking-BSpSMmJ2.js} +4 -4
  10. package/dist/_chunks/{booking-DEwmDprH.js.map → booking-BSpSMmJ2.js.map} +1 -1
  11. package/dist/_chunks/{chart-CNaLgvx4.js → chart-DqxVCm1I.js} +288 -257
  12. package/dist/_chunks/chart-DqxVCm1I.js.map +1 -0
  13. package/dist/_chunks/{cycle-calculator-DXSNIWFk.js → cycle-calculator-DNvvr0bP.js} +3 -3
  14. package/dist/_chunks/{cycle-calculator-DXSNIWFk.js.map → cycle-calculator-DNvvr0bP.js.map} +1 -1
  15. package/dist/_chunks/date-picker-BP_W6VtE.js +265 -0
  16. package/dist/_chunks/date-picker-BP_W6VtE.js.map +1 -0
  17. package/dist/_chunks/{date-picker-variants-D9B6hg15.js → date-picker-variants-eL6HjWvw.js} +966 -841
  18. package/dist/_chunks/{date-picker-variants-D9B6hg15.js.map → date-picker-variants-eL6HjWvw.js.map} +1 -1
  19. package/dist/_chunks/date-range-picker-Cfv4Sr63.js +832 -0
  20. package/dist/_chunks/date-range-picker-Cfv4Sr63.js.map +1 -0
  21. package/dist/_chunks/{date-time-picker-BU-j0qj4.js → date-time-picker-695QvBGj.js} +2 -2
  22. package/dist/_chunks/{date-time-picker-BU-j0qj4.js.map → date-time-picker-695QvBGj.js.map} +1 -1
  23. package/dist/_chunks/{de-C3_KZ6mR.js → de-DmZ-8rTN.js} +4 -4
  24. package/dist/_chunks/{de-C3_KZ6mR.js.map → de-DmZ-8rTN.js.map} +1 -1
  25. package/dist/_chunks/{due-date-calculator-BR_GuqHH.js → due-date-calculator-BEcdoy_E.js} +3 -3
  26. package/dist/_chunks/{due-date-calculator-BR_GuqHH.js.map → due-date-calculator-BEcdoy_E.js.map} +1 -1
  27. package/dist/_chunks/{el-v9xDKHgu.js → el-Bela9mxs.js} +6 -6
  28. package/dist/_chunks/{el-v9xDKHgu.js.map → el-Bela9mxs.js.map} +1 -1
  29. package/dist/_chunks/{es-Lgmjq9Rp.js → es-BNncHKex.js} +10 -10
  30. package/dist/_chunks/{es-Lgmjq9Rp.js.map → es-BNncHKex.js.map} +1 -1
  31. package/dist/_chunks/{fr-INS1OD7m.js → fr-CH8ADfhN.js} +12 -12
  32. package/dist/_chunks/{fr-INS1OD7m.js.map → fr-CH8ADfhN.js.map} +1 -1
  33. package/dist/_chunks/{gestational-age-calculator-DBIcxfjP.js → gestational-age-calculator-CuGkVqKp.js} +5 -5
  34. package/dist/_chunks/{gestational-age-calculator-DBIcxfjP.js.map → gestational-age-calculator-CuGkVqKp.js.map} +1 -1
  35. package/dist/_chunks/{hcg-doubling-BgCkds8R.js → hcg-doubling-fZ6qQN08.js} +2 -2
  36. package/dist/_chunks/{hcg-doubling-BgCkds8R.js.map → hcg-doubling-fZ6qQN08.js.map} +1 -1
  37. package/dist/_chunks/{hi-BUYtlosF.js → hi-Bppfxp8l.js} +16 -16
  38. package/dist/_chunks/{hi-BUYtlosF.js.map → hi-Bppfxp8l.js.map} +1 -1
  39. package/dist/_chunks/{isSameWeek-BUNsv4OO.js → isSameWeek-CK4HS9lH.js} +2 -2
  40. package/dist/_chunks/{isSameWeek-BUNsv4OO.js.map → isSameWeek-CK4HS9lH.js.map} +1 -1
  41. package/dist/_chunks/{it-VfsdUqeV.js → it-B4ySaRyK.js} +24 -24
  42. package/dist/_chunks/{it-VfsdUqeV.js.map → it-B4ySaRyK.js.map} +1 -1
  43. package/dist/_chunks/{ja-Dfk9qwzE.js → ja-CGF6Io9P.js} +12 -12
  44. package/dist/_chunks/{ja-Dfk9qwzE.js.map → ja-CGF6Io9P.js.map} +1 -1
  45. package/dist/_chunks/{link-cell-renderer-BzITwSXq.js → link-cell-renderer-_LDZhY4r.js} +214 -197
  46. package/dist/_chunks/link-cell-renderer-_LDZhY4r.js.map +1 -0
  47. package/dist/_chunks/{nl-Crxwg0IZ.js → nl-DuShqwuV.js} +12 -12
  48. package/dist/_chunks/{nl-Crxwg0IZ.js.map → nl-DuShqwuV.js.map} +1 -1
  49. package/dist/_chunks/parse-DvA97ro9.js +1601 -0
  50. package/dist/_chunks/parse-DvA97ro9.js.map +1 -0
  51. package/dist/_chunks/{patient-details-Dggsz-ki.js → patient-details-DrhlTrLf.js} +2 -2
  52. package/dist/_chunks/{patient-details-Dggsz-ki.js.map → patient-details-DrhlTrLf.js.map} +1 -1
  53. package/dist/_chunks/{patient-table-ps4byVwA.js → patient-table-CFM92QqU.js} +2 -2
  54. package/dist/_chunks/{patient-table-ps4byVwA.js.map → patient-table-CFM92QqU.js.map} +1 -1
  55. package/dist/_chunks/{pl-IdHtxWTl.js → pl-CKQwX9Fk.js} +22 -22
  56. package/dist/_chunks/{pl-IdHtxWTl.js.map → pl-CKQwX9Fk.js.map} +1 -1
  57. package/dist/_chunks/{pregnancy-dating-CvIRwWaG.js → pregnancy-dating-BdFl-rB1.js} +5 -5
  58. package/dist/_chunks/{pregnancy-dating-CvIRwWaG.js.map → pregnancy-dating-BdFl-rB1.js.map} +1 -1
  59. package/dist/_chunks/{pt-CY2m2bBz.js → pt-_njpXyOZ.js} +16 -16
  60. package/dist/_chunks/{pt-CY2m2bBz.js.map → pt-_njpXyOZ.js.map} +1 -1
  61. package/dist/_chunks/{radiograph-panel.agent-C93AXgtV.js → radiograph-panel.agent-DDnDGVpN.js} +3 -3
  62. package/dist/_chunks/{radiograph-panel.agent-C93AXgtV.js.map → radiograph-panel.agent-DDnDGVpN.js.map} +1 -1
  63. package/dist/_chunks/{ro-qoxLkXED.js → ro-3X6_4FcN.js} +14 -14
  64. package/dist/_chunks/{ro-qoxLkXED.js.map → ro-3X6_4FcN.js.map} +1 -1
  65. package/dist/_chunks/{ru-BVZlxoKf.js → ru-bAcgmnS-.js} +20 -20
  66. package/dist/_chunks/{ru-BVZlxoKf.js.map → ru-bAcgmnS-.js.map} +1 -1
  67. package/dist/_chunks/{sparkline-iOXYgvJe.js → sparkline-o6JH4O66.js} +2 -2
  68. package/dist/_chunks/{sparkline-iOXYgvJe.js.map → sparkline-o6JH4O66.js.map} +1 -1
  69. package/dist/_chunks/{sq--eT8hIiD.js → sq-jYFqr4Ga.js} +6 -6
  70. package/dist/_chunks/{sq--eT8hIiD.js.map → sq-jYFqr4Ga.js.map} +1 -1
  71. package/dist/_chunks/subDays-BcNi04uf.js +8 -0
  72. package/dist/_chunks/{subDays-fEHRx4hg.js.map → subDays-BcNi04uf.js.map} +1 -1
  73. package/dist/_chunks/{sv-BGNQ5gX6.js → sv-BSGEJ-8B.js} +10 -10
  74. package/dist/_chunks/{sv-BGNQ5gX6.js.map → sv-BSGEJ-8B.js.map} +1 -1
  75. package/dist/_chunks/{tr-B2NEu6Gy.js → tr-CTpgUtw6.js} +14 -14
  76. package/dist/_chunks/{tr-B2NEu6Gy.js.map → tr-CTpgUtw6.js.map} +1 -1
  77. package/dist/_chunks/{zh-CN-DClT1wDk.js → zh-CN-BgM0Io2O.js} +22 -22
  78. package/dist/_chunks/{zh-CN-DClT1wDk.js.map → zh-CN-BgM0Io2O.js.map} +1 -1
  79. package/dist/agent-catalog.json +101 -2
  80. package/dist/agent-i18n/en.json +8 -2
  81. package/dist/components/_shared/calendar-class-names.d.ts +5 -0
  82. package/dist/components/_shared/calendar-class-names.d.ts.map +1 -1
  83. package/dist/components/_shared/date-picker-variants.d.ts +23 -1
  84. package/dist/components/_shared/date-picker-variants.d.ts.map +1 -1
  85. package/dist/components/_shared/index.d.ts +2 -2
  86. package/dist/components/_shared/index.d.ts.map +1 -1
  87. package/dist/components/appointment-timeline/index.js +1 -1
  88. package/dist/components/booking/index.js +1 -1
  89. package/dist/components/chart/chart.agent.d.ts.map +1 -1
  90. package/dist/components/chart/chart.d.ts +20 -0
  91. package/dist/components/chart/chart.d.ts.map +1 -1
  92. package/dist/components/chart/index.js +1 -1
  93. package/dist/components/cycle-calculator/index.js +1 -1
  94. package/dist/components/data-table/filters/date-range-filter.d.ts +13 -0
  95. package/dist/components/data-table/filters/date-range-filter.d.ts.map +1 -1
  96. package/dist/components/data-table/index.js +1 -1
  97. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  98. package/dist/components/date-picker/index.js +1 -1
  99. package/dist/components/date-range-picker/date-range-picker.agent.d.ts.map +1 -1
  100. package/dist/components/date-range-picker/date-range-picker.d.ts +91 -1
  101. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  102. package/dist/components/date-range-picker/index.d.ts +1 -1
  103. package/dist/components/date-range-picker/index.d.ts.map +1 -1
  104. package/dist/components/date-range-picker/index.js +1 -1
  105. package/dist/components/date-time-picker/index.js +1 -1
  106. package/dist/components/due-date-calculator/index.js +2 -2
  107. package/dist/components/gestational-age-calculator/index.js +1 -1
  108. package/dist/components/hcg-doubling/index.js +1 -1
  109. package/dist/components/patient-details/index.js +1 -1
  110. package/dist/components/patient-table/index.js +1 -1
  111. package/dist/components/pregnancy-dating/index.js +1 -1
  112. package/dist/components/radiograph-panel/index.js +1 -1
  113. package/dist/components/sparkline/index.js +1 -1
  114. package/dist/i18n/locales/ar.d.ts +24 -0
  115. package/dist/i18n/locales/ar.d.ts.map +1 -1
  116. package/dist/i18n/locales/ar.js +24 -0
  117. package/dist/i18n/locales/ar.js.map +1 -1
  118. package/dist/i18n/locales/de.d.ts +24 -0
  119. package/dist/i18n/locales/de.d.ts.map +1 -1
  120. package/dist/i18n/locales/de.js +24 -0
  121. package/dist/i18n/locales/de.js.map +1 -1
  122. package/dist/i18n/locales/el.d.ts +24 -0
  123. package/dist/i18n/locales/el.d.ts.map +1 -1
  124. package/dist/i18n/locales/el.js +24 -0
  125. package/dist/i18n/locales/el.js.map +1 -1
  126. package/dist/i18n/locales/en.d.ts +24 -0
  127. package/dist/i18n/locales/en.d.ts.map +1 -1
  128. package/dist/i18n/locales/en.js +24 -0
  129. package/dist/i18n/locales/en.js.map +1 -1
  130. package/dist/i18n/locales/es.d.ts +24 -0
  131. package/dist/i18n/locales/es.d.ts.map +1 -1
  132. package/dist/i18n/locales/es.js +24 -0
  133. package/dist/i18n/locales/es.js.map +1 -1
  134. package/dist/i18n/locales/fr.d.ts +24 -0
  135. package/dist/i18n/locales/fr.d.ts.map +1 -1
  136. package/dist/i18n/locales/fr.js +24 -0
  137. package/dist/i18n/locales/fr.js.map +1 -1
  138. package/dist/i18n/locales/hi.d.ts +24 -0
  139. package/dist/i18n/locales/hi.d.ts.map +1 -1
  140. package/dist/i18n/locales/hi.js +24 -0
  141. package/dist/i18n/locales/hi.js.map +1 -1
  142. package/dist/i18n/locales/it.d.ts +24 -0
  143. package/dist/i18n/locales/it.d.ts.map +1 -1
  144. package/dist/i18n/locales/it.js +24 -0
  145. package/dist/i18n/locales/it.js.map +1 -1
  146. package/dist/i18n/locales/ja.d.ts +24 -0
  147. package/dist/i18n/locales/ja.d.ts.map +1 -1
  148. package/dist/i18n/locales/ja.js +24 -0
  149. package/dist/i18n/locales/ja.js.map +1 -1
  150. package/dist/i18n/locales/nl.d.ts +24 -0
  151. package/dist/i18n/locales/nl.d.ts.map +1 -1
  152. package/dist/i18n/locales/nl.js +24 -0
  153. package/dist/i18n/locales/nl.js.map +1 -1
  154. package/dist/i18n/locales/pl.d.ts +24 -0
  155. package/dist/i18n/locales/pl.d.ts.map +1 -1
  156. package/dist/i18n/locales/pl.js +24 -0
  157. package/dist/i18n/locales/pl.js.map +1 -1
  158. package/dist/i18n/locales/pt.d.ts +24 -0
  159. package/dist/i18n/locales/pt.d.ts.map +1 -1
  160. package/dist/i18n/locales/pt.js +24 -0
  161. package/dist/i18n/locales/pt.js.map +1 -1
  162. package/dist/i18n/locales/ro.d.ts +24 -0
  163. package/dist/i18n/locales/ro.d.ts.map +1 -1
  164. package/dist/i18n/locales/ro.js +24 -0
  165. package/dist/i18n/locales/ro.js.map +1 -1
  166. package/dist/i18n/locales/ru.d.ts +24 -0
  167. package/dist/i18n/locales/ru.d.ts.map +1 -1
  168. package/dist/i18n/locales/ru.js +24 -0
  169. package/dist/i18n/locales/ru.js.map +1 -1
  170. package/dist/i18n/locales/sq.d.ts +24 -0
  171. package/dist/i18n/locales/sq.d.ts.map +1 -1
  172. package/dist/i18n/locales/sq.js +24 -0
  173. package/dist/i18n/locales/sq.js.map +1 -1
  174. package/dist/i18n/locales/sv.d.ts +24 -0
  175. package/dist/i18n/locales/sv.d.ts.map +1 -1
  176. package/dist/i18n/locales/sv.js +24 -0
  177. package/dist/i18n/locales/sv.js.map +1 -1
  178. package/dist/i18n/locales/tr.d.ts +24 -0
  179. package/dist/i18n/locales/tr.d.ts.map +1 -1
  180. package/dist/i18n/locales/tr.js +24 -0
  181. package/dist/i18n/locales/tr.js.map +1 -1
  182. package/dist/i18n/locales/zh.d.ts +24 -0
  183. package/dist/i18n/locales/zh.d.ts.map +1 -1
  184. package/dist/i18n/locales/zh.js +24 -0
  185. package/dist/i18n/locales/zh.js.map +1 -1
  186. package/dist/index.js +17 -17
  187. package/dist/locales/ar.json +24 -0
  188. package/dist/locales/de.json +24 -0
  189. package/dist/locales/el.json +24 -0
  190. package/dist/locales/en.json +24 -0
  191. package/dist/locales/es.json +24 -0
  192. package/dist/locales/fr.json +24 -0
  193. package/dist/locales/hi.json +24 -0
  194. package/dist/locales/it.json +24 -0
  195. package/dist/locales/ja.json +24 -0
  196. package/dist/locales/nl.json +24 -0
  197. package/dist/locales/pl.json +24 -0
  198. package/dist/locales/pt.json +24 -0
  199. package/dist/locales/ro.json +24 -0
  200. package/dist/locales/ru.json +24 -0
  201. package/dist/locales/sq.json +24 -0
  202. package/dist/locales/sv.json +24 -0
  203. package/dist/locales/tr.json +24 -0
  204. package/dist/locales/zh.json +24 -0
  205. package/dist/tokens/apexcharts-theme.d.ts +36 -1
  206. package/dist/tokens/apexcharts-theme.d.ts.map +1 -1
  207. package/dist/tokens.css +1 -1
  208. package/package.json +1 -1
  209. package/dist/_chunks/apexcharts-theme-BJigns_V.js +0 -53
  210. package/dist/_chunks/apexcharts-theme-BJigns_V.js.map +0 -1
  211. package/dist/_chunks/chart-CNaLgvx4.js.map +0 -1
  212. package/dist/_chunks/date-picker-ffmyjvlI.js +0 -1845
  213. package/dist/_chunks/date-picker-ffmyjvlI.js.map +0 -1
  214. package/dist/_chunks/date-range-picker-DSOH50-f.js +0 -325
  215. package/dist/_chunks/date-range-picker-DSOH50-f.js.map +0 -1
  216. package/dist/_chunks/link-cell-renderer-BzITwSXq.js.map +0 -1
  217. package/dist/_chunks/subDays-fEHRx4hg.js +0 -8
@@ -1,22 +1,22 @@
1
- import { jsxs as I, jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as Se, useId as we, useMemo as d, useRef as Ie, useState as G, useEffect as re, useImperativeHandle as Ce } from "react";
3
- import { c as ke } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Re } from "react-i18next";
5
- import _e from "react-apexcharts";
6
- import oe from "apexcharts";
7
- import { u as Le, g as ie } from "./apexcharts-theme-BJigns_V.js";
8
- import { u as xe } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
- import { u as Ee } from "./registry-DvAUVLHh.js";
10
- import { I as Ne } from "./icon-button-C_kbcd7I.js";
11
- import { I as ze } from "./icon-button-group-BLHPN6jg.js";
12
- import { c as C } from "./createLucideIcon-DhHxpK9K.js";
1
+ import { jsxs as R, jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as _e, useId as xe, useMemo as h, useRef as ze, useState as D, useEffect as he, useImperativeHandle as Ee } from "react";
3
+ import { c as Ne } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Ae } from "react-i18next";
5
+ import Oe from "react-apexcharts";
6
+ import ue from "apexcharts";
7
+ import { u as Be, g as me } from "./apexcharts-theme-fAQXLIMW.js";
8
+ import { u as Pe } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
+ import { u as Me } from "./registry-DvAUVLHh.js";
10
+ import { I as $e } from "./icon-button-C_kbcd7I.js";
11
+ import { I as He } from "./icon-button-group-BLHPN6jg.js";
12
+ import { c as L } from "./createLucideIcon-DhHxpK9K.js";
13
13
  /**
14
14
  * @license lucide-react v1.22.0 - ISC
15
15
  *
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const Pe = [
19
+ const We = [
20
20
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
21
21
  [
22
22
  "path",
@@ -25,36 +25,36 @@ const Pe = [
25
25
  key: "q0gr47"
26
26
  }
27
27
  ]
28
- ], Ae = C("chart-area", Pe);
28
+ ], Ge = L("chart-area", We);
29
29
  /**
30
30
  * @license lucide-react v1.22.0 - ISC
31
31
  *
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
34
  */
35
- const Be = [
35
+ const je = [
36
36
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
37
37
  ["path", { d: "M18 17V9", key: "2bz60n" }],
38
38
  ["path", { d: "M13 17V5", key: "1frdt8" }],
39
39
  ["path", { d: "M8 17v-3", key: "17ska0" }]
40
- ], Oe = C("chart-column", Be);
40
+ ], De = L("chart-column", je);
41
41
  /**
42
42
  * @license lucide-react v1.22.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
46
  */
47
- const Me = [
47
+ const Ke = [
48
48
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
49
49
  ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
50
- ], $e = C("chart-line", Me);
50
+ ], Ue = L("chart-line", Ke);
51
51
  /**
52
52
  * @license lucide-react v1.22.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
56
  */
57
- const He = [
57
+ const Ve = [
58
58
  [
59
59
  "path",
60
60
  {
@@ -63,14 +63,14 @@ const He = [
63
63
  }
64
64
  ],
65
65
  ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
66
- ], Ge = C("chart-pie", He);
66
+ ], Ye = L("chart-pie", Ve);
67
67
  /**
68
68
  * @license lucide-react v1.22.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
72
  */
73
- const je = [
73
+ const qe = [
74
74
  [
75
75
  "path",
76
76
  {
@@ -79,7 +79,7 @@ const je = [
79
79
  }
80
80
  ],
81
81
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
82
- ], De = C("donut", je), Ke = {
82
+ ], Ze = L("donut", qe), Fe = {
83
83
  id: "chart",
84
84
  // view_change backs the opt-in type switcher (`switchableTypes` prop):
85
85
  // the same chart re-presented as line / bar / area / pie / donut.
@@ -89,19 +89,19 @@ const je = [
89
89
  type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
90
90
  descriptionKey: "ui.agent.chart.state.declaredType",
91
91
  description: "The consumer-declared chart type — the shape `update_series` expects.",
92
- read: (r) => r.getTypeState().declaredType
92
+ read: (o) => o.getTypeState().declaredType
93
93
  },
94
94
  effectiveType: {
95
95
  type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
96
96
  descriptionKey: "ui.agent.chart.state.effectiveType",
97
97
  description: "The type currently rendered — differs from declaredType after a type-switcher pick.",
98
- read: (r) => r.getTypeState().effectiveType
98
+ read: (o) => o.getTypeState().effectiveType
99
99
  },
100
100
  availableTypes: {
101
101
  type: "ChartType[]",
102
102
  descriptionKey: "ui.agent.chart.state.availableTypes",
103
103
  description: "Types the switcher offers. Empty when the chart has no type switcher.",
104
- read: (r) => r.getTypeState().availableTypes
104
+ read: (o) => o.getTypeState().availableTypes
105
105
  }
106
106
  },
107
107
  actions: {
@@ -129,7 +129,7 @@ const je = [
129
129
  idempotent: !0,
130
130
  descriptionKey: "ui.agent.chart.actions.changeView",
131
131
  description: "Switch the rendered chart type via the type switcher. No-op (returns false) when the chart has no switcher or the type is not offered.",
132
- invoke: (r, h) => r.setType(h.type)
132
+ invoke: (o, f) => o.setType(f.type)
133
133
  },
134
134
  update_series: {
135
135
  // Replacing the rendered series mutates what the chart displays — it
@@ -151,7 +151,12 @@ const je = [
151
151
  type: "object",
152
152
  properties: {
153
153
  name: { type: "string" },
154
- data: { type: "array", items: { type: "number" } }
154
+ data: { type: "array", items: { type: "number" } },
155
+ role: {
156
+ type: "string",
157
+ enum: ["primary", "compare"],
158
+ description: "Optional. 'compare' renders this series as a secondary, colour-blind-safe overlay (e.g. the previous period) — dashed grey for line/area, hatched grey for bar. Omit for a normal primary series."
159
+ }
155
160
  },
156
161
  required: ["name", "data"]
157
162
  }
@@ -169,8 +174,8 @@ const je = [
169
174
  idempotent: !0,
170
175
  descriptionKey: "ui.agent.chart.actions.updateSeries",
171
176
  description: "Replace the chart series without remounting. Pass the DECLARED type’s shape (see declaredType state) — when the user has switched the view cross-shape the values are converted to the rendered shape. The write targets the live instance only: a later type switch re-reads the original props and discards it.",
172
- invoke: (r, h) => {
173
- r.updateSeries(h.series);
177
+ invoke: (o, f) => {
178
+ o.updateSeries(f.series);
174
179
  }
175
180
  },
176
181
  export_png: {
@@ -183,7 +188,7 @@ const je = [
183
188
  idempotent: !0,
184
189
  descriptionKey: "ui.agent.chart.actions.exportPng",
185
190
  description: "Return a PNG data URI of the chart for export or screenshotting.",
186
- invoke: (r) => r.dataURI()
191
+ invoke: (o) => o.dataURI()
187
192
  }
188
193
  },
189
194
  domHooks: {
@@ -194,7 +199,7 @@ const je = [
194
199
  description: "Sourced from the id prop."
195
200
  }
196
201
  }
197
- }, Ue = ke("ds:relative ds:block ds:w-full", {
202
+ }, Je = Ne("ds:relative ds:block ds:w-full", {
198
203
  variants: {
199
204
  density: {
200
205
  compact: "ds:min-h-[var(--chart-min-height-compact)]",
@@ -206,90 +211,88 @@ const je = [
206
211
  }
207
212
  },
208
213
  defaultVariants: { density: "comfortable" }
209
- }), Ve = [
214
+ }), K = [
210
215
  "verticalLines",
211
216
  "horizontalLines",
212
217
  "slantedLines",
213
218
  "squares",
214
219
  "circles"
215
- ], We = ["line", "bar", "area"], Ye = ["pie", "donut", "radialBar"], ne = [
220
+ ], Qe = ["line", "bar", "area"], Xe = ["pie", "donut", "radialBar"], fe = [
216
221
  "line",
217
222
  "bar",
218
223
  "area",
219
224
  "pie",
220
225
  "donut"
221
- ], qe = {
226
+ ], et = {
222
227
  line: "chart.typeSwitcher.line",
223
228
  bar: "chart.typeSwitcher.bar",
224
229
  area: "chart.typeSwitcher.area",
225
230
  pie: "chart.typeSwitcher.pie",
226
231
  donut: "chart.typeSwitcher.donut"
227
- }, Ze = {
228
- line: /* @__PURE__ */ c($e, {}),
229
- bar: /* @__PURE__ */ c(Oe, {}),
230
- area: /* @__PURE__ */ c(Ae, {}),
231
- pie: /* @__PURE__ */ c(Ge, {}),
232
- donut: /* @__PURE__ */ c(De, {})
232
+ }, tt = {
233
+ line: /* @__PURE__ */ c(Ue, {}),
234
+ bar: /* @__PURE__ */ c(De, {}),
235
+ area: /* @__PURE__ */ c(Ge, {}),
236
+ pie: /* @__PURE__ */ c(Ye, {}),
237
+ donut: /* @__PURE__ */ c(Ze, {})
233
238
  };
234
- function m(r) {
235
- return Ye.includes(r);
239
+ function v(o) {
240
+ return Xe.includes(o);
236
241
  }
237
- function se(r) {
238
- return We.includes(r);
242
+ function U(o) {
243
+ return Qe.includes(o);
239
244
  }
240
- function Fe(r, h) {
241
- return m(h) ? [
245
+ function at(o, f) {
246
+ return v(f) ? [
242
247
  {
243
248
  name: "",
244
- data: r
249
+ data: o
245
250
  }
246
- ] : r;
251
+ ] : o;
247
252
  }
248
- const Je = Se(
253
+ const rt = _e(
249
254
  ({
250
- title: r,
251
- id: h,
252
- type: l,
253
- series: k,
254
- categories: j,
255
- labels: x,
256
- height: D,
257
- width: ce,
258
- patterns: K = !1,
259
- stacked: U = !1,
260
- orientation: E = "vertical",
261
- curve: V = "smooth",
262
- colors: R,
263
- toolbar: N = !1,
264
- locale: de,
265
- radialValueFormatter: y,
266
- valueFormatter: W,
267
- switchableTypes: _,
268
- onTypeChange: z,
269
- density: le,
270
- className: Y
271
- }, pe) => {
272
- const { t: o, i18n: he } = Re(), q = we(), b = d(
273
- () => `chart-${q.replace(/[^a-zA-Z0-9-_]/g, "")}`,
274
- [q]
275
- ), P = `${b}-summary`, A = Ie(null), [Z, ue] = G(0);
276
- Le(A);
277
- const v = de ?? he.language ?? "en", [F, fe] = G(
278
- () => {
279
- try {
280
- return ie();
281
- } catch {
282
- return {};
283
- }
255
+ title: o,
256
+ id: f,
257
+ type: u,
258
+ series: _,
259
+ categories: V,
260
+ labels: N,
261
+ height: Y,
262
+ width: ye,
263
+ patterns: q = !1,
264
+ stacked: Z = !1,
265
+ orientation: A = "vertical",
266
+ curve: F = "smooth",
267
+ colors: x,
268
+ toolbar: O = !1,
269
+ locale: be,
270
+ radialValueFormatter: g,
271
+ valueFormatter: J,
272
+ switchableTypes: z,
273
+ onTypeChange: B,
274
+ density: ve,
275
+ className: Q
276
+ }, ge) => {
277
+ const { t: i, i18n: Te } = Ae(), X = xe(), T = h(
278
+ () => `chart-${X.replace(/[^a-zA-Z0-9-_]/g, "")}`,
279
+ [X]
280
+ ), P = `${T}-summary`, M = ze(null), [ee, Se] = D(0);
281
+ Be(M);
282
+ const S = be ?? Te.language ?? "en", [te, we] = D(() => {
283
+ try {
284
+ return me();
285
+ } catch {
286
+ return {};
284
287
  }
285
- );
286
- re(() => {
288
+ });
289
+ he(() => {
287
290
  if (typeof document > "u") return;
288
291
  let e;
289
292
  const t = new MutationObserver(() => {
290
293
  clearTimeout(e), e = setTimeout(() => {
291
294
  try {
292
- fe(ie());
295
+ we(me());
293
296
  } catch {
294
297
  }
295
298
  }, 50);
@@ -300,140 +303,142 @@ const Je = Se(
300
303
  }), () => {
301
304
  clearTimeout(e), t.disconnect();
302
305
  };
303
- }, []), re(() => {
304
- const e = A.current;
306
+ }, []), he(() => {
307
+ const e = M.current;
305
308
  if (!e || typeof ResizeObserver > "u") return;
306
309
  const t = new ResizeObserver((n) => {
307
- const s = n[0];
308
- s && ue(Math.floor(s.contentRect.width));
310
+ const p = n[0];
311
+ p && Se(Math.floor(p.contentRect.width));
309
312
  });
310
313
  return t.observe(e), () => t.disconnect();
311
314
  }, []);
312
- const g = d(() => {
313
- if (!_ || _.length === 0) return [];
314
- const e = _.filter(
315
- (n) => ne.includes(n)
315
+ const w = h(() => {
316
+ if (!z || z.length === 0) return [];
317
+ const e = z.filter(
318
+ (n) => fe.includes(n)
316
319
  );
317
- if (!ne.includes(l))
320
+ if (!fe.includes(u))
318
321
  return [];
319
- const t = e.includes(l) ? e : [l, ...e];
322
+ const t = e.includes(u) ? e : [u, ...e];
320
323
  return [...new Set(t)];
321
- }, [_, l]), u = g.length >= 2, [B, J] = G(null), a = u && B && g.includes(B) ? B : l, O = m(l), Q = m(a), { effectiveSeries: S, effectiveCategories: L, effectiveLabels: w } = d(() => {
322
- if (O === Q)
324
+ }, [z, u]), b = w.length >= 2, [$, ae] = D(null), a = b && $ && w.includes($) ? $ : u, H = v(u), re = v(a), { effectiveSeries: y, effectiveCategories: E, effectiveLabels: I } = h(() => {
325
+ if (H === re)
323
326
  return {
324
- effectiveSeries: k,
325
- effectiveCategories: j,
326
- effectiveLabels: x
327
+ effectiveSeries: _,
328
+ effectiveCategories: V,
329
+ effectiveLabels: N
327
330
  };
328
- if (!O) {
329
- const t = k;
331
+ if (!H) {
332
+ const n = _.filter((s) => s.role !== "compare");
330
333
  return {
331
- effectiveSeries: t.map(
332
- (s) => s.data.reduce((p, i) => p + i, 0)
334
+ effectiveSeries: n.map(
335
+ (s) => s.data.reduce((d, C) => d + C, 0)
333
336
  ),
334
337
  effectiveCategories: void 0,
335
- effectiveLabels: t.map((s) => s.name)
338
+ effectiveLabels: n.map((s) => s.name)
336
339
  };
337
340
  }
338
- const e = k;
341
+ const e = _;
339
342
  return {
340
343
  effectiveSeries: [
341
- { name: o("chart.table.value"), data: e }
344
+ { name: i("chart.table.value"), data: e }
342
345
  ],
343
- effectiveCategories: x ?? [],
346
+ effectiveCategories: N ?? [],
344
347
  effectiveLabels: void 0
345
348
  };
346
- }, [k, j, x, O, Q, o]), M = d(
349
+ }, [_, V, N, H, re, i]), W = h(
347
350
  () => ({
348
351
  async dataURI() {
349
- const e = oe.getChartByID(b);
352
+ const e = ue.getChartByID(T);
350
353
  return e ? (await e.dataURI()).imgURI : "";
351
354
  },
352
355
  updateSeries(e) {
353
- const t = oe.getChartByID(b);
356
+ const t = ue.getChartByID(T);
354
357
  if (!t) return;
355
- const n = m(l), s = m(a);
356
- if (n === s) {
358
+ const n = v(u), p = v(a);
359
+ if (n === p) {
357
360
  t.updateSeries(e);
358
361
  return;
359
362
  }
360
363
  if (!n) {
361
- const p = e;
364
+ const s = e.filter(
365
+ (d) => d.role !== "compare"
366
+ );
362
367
  t.updateOptions(
363
- { labels: p.map((i) => i.name) },
368
+ { labels: s.map((d) => d.name) },
364
369
  !1,
365
370
  !0
366
371
  ), t.updateSeries(
367
- p.map((i) => i.data.reduce((f, Te) => f + Te, 0))
372
+ s.map((d) => d.data.reduce((C, l) => C + l, 0))
368
373
  );
369
374
  return;
370
375
  }
371
376
  t.updateSeries([
372
- { name: o("chart.table.value"), data: e }
377
+ { name: i("chart.table.value"), data: e }
373
378
  ]);
374
379
  },
375
380
  setType(e) {
376
- return !u || !g.includes(e) ? !1 : (J(e), !0);
381
+ return !b || !w.includes(e) ? !1 : (ae(e), !0);
377
382
  },
378
383
  getTypeState() {
379
384
  return {
380
- declaredType: l,
385
+ declaredType: u,
381
386
  effectiveType: a,
382
- availableTypes: u ? [...g] : []
387
+ availableTypes: b ? [...w] : []
383
388
  };
384
389
  }
385
390
  }),
386
- [b, l, a, o, u, g]
391
+ [T, u, a, i, b, w]
387
392
  );
388
- Ce(pe, () => M, [M]), Ee(Ke, M, h);
389
- const $ = typeof document < "u" && document.documentElement.dir === "rtl", X = d(
390
- () => Fe(S, a),
391
- [S, a]
392
- ), ee = d(
393
- () => new Intl.NumberFormat(v),
394
- [v]
395
- ), T = d(
396
- () => W ?? ((e) => ee.format(e)),
397
- [W, ee]
398
- ), te = d(
393
+ Ee(ge, () => W, [W]), Me(Fe, W, f);
394
+ const G = typeof document < "u" && document.documentElement.dir === "rtl", oe = h(
395
+ () => at(y, a),
396
+ [y, a]
397
+ ), ie = h(
398
+ () => new Intl.NumberFormat(S),
399
+ [S]
400
+ ), k = h(
401
+ () => J ?? ((e) => ie.format(e)),
402
+ [J, ie]
403
+ ), se = h(
399
404
  () => ({
400
- name: v,
405
+ name: S,
401
406
  options: {
402
407
  toolbar: {
403
- download: o("chart.toolbar.download"),
404
- selection: o("chart.toolbar.selection"),
405
- selectionZoom: o("chart.toolbar.selectionZoom"),
406
- zoomIn: o("chart.toolbar.zoomIn"),
407
- zoomOut: o("chart.toolbar.zoomOut"),
408
- pan: o("chart.toolbar.pan"),
409
- reset: o("chart.toolbar.reset"),
410
- exportToSVG: o("chart.toolbar.exportToSVG"),
411
- exportToPNG: o("chart.toolbar.exportToPNG"),
412
- exportToCSV: o("chart.toolbar.exportToCSV")
408
+ download: i("chart.toolbar.download"),
409
+ selection: i("chart.toolbar.selection"),
410
+ selectionZoom: i("chart.toolbar.selectionZoom"),
411
+ zoomIn: i("chart.toolbar.zoomIn"),
412
+ zoomOut: i("chart.toolbar.zoomOut"),
413
+ pan: i("chart.toolbar.pan"),
414
+ reset: i("chart.toolbar.reset"),
415
+ exportToSVG: i("chart.toolbar.exportToSVG"),
416
+ exportToPNG: i("chart.toolbar.exportToPNG"),
417
+ exportToCSV: i("chart.toolbar.exportToCSV")
413
418
  }
414
419
  }
415
420
  }),
416
- [v, o]
417
- ), H = xe(), me = d(() => {
418
- var n, s, p;
419
- const e = F, t = {
420
- ...e,
421
+ [S, i]
422
+ ), j = Pe(), ke = h(() => {
423
+ var ce, de, le;
424
+ const { compare: e, ...t } = te, n = (e == null ? void 0 : e.mark) ?? "", p = (e == null ? void 0 : e.wash) ?? "", s = U(a) && Array.isArray(y) ? y.map((r) => r.role === "compare") : [], d = s.some(Boolean), C = d && a === "bar", l = {
425
+ ...t,
421
426
  chart: {
422
- ...e.chart,
423
- id: b,
424
- toolbar: { show: N },
425
- zoom: { enabled: N },
427
+ ...t.chart,
428
+ id: T,
429
+ toolbar: { show: O },
430
+ zoom: { enabled: O },
426
431
  animations: {
427
- enabled: !H,
428
- dynamicAnimation: { enabled: !H }
432
+ enabled: !j,
433
+ dynamicAnimation: { enabled: !j }
429
434
  },
430
- locales: [te],
431
- defaultLocale: v,
435
+ locales: [se],
436
+ defaultLocale: S,
432
437
  parentHeightOffset: 0,
433
438
  // Stacking is an axis-only concept — gate on the categorical types
434
439
  // so a slice/radial chart never receives it, and omit the key
435
440
  // entirely when unstacked so the default output is byte-identical.
436
- ...U && se(a) ? { stacked: !0 } : {}
441
+ ...Z && U(a) ? { stacked: !0 } : {}
437
442
  },
438
443
  // Only set `labels` when the effective type actually has them (slice
439
444
  // charts). Emitting `labels: undefined` crashes ApexCharts' bar
@@ -441,146 +446,172 @@ const Je = Se(
441
446
  // "Cannot read properties of undefined (reading 'length')", which
442
447
  // aborts the render and leaves a blank chart. Absent is safe; area /
443
448
  // line tolerate the undefined but bar does not, so never pass it.
444
- ...w ? { labels: w } : {},
449
+ ...I ? { labels: I } : {},
445
450
  legend: {
446
- ...e.legend,
451
+ ...t.legend,
447
452
  position: "bottom",
448
453
  // ApexCharts legend.horizontalAlign is a physical prop mapped internally
449
454
  // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
450
455
  // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
451
456
  // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
452
- horizontalAlign: $ ? "right" : "left",
457
+ horizontalAlign: G ? "right" : "left",
453
458
  fontFamily: "inherit"
454
459
  },
455
460
  tooltip: {
456
- ...e.tooltip,
461
+ ...t.tooltip,
457
462
  y: {
458
- formatter: (i) => T(i)
463
+ formatter: (r) => k(r)
459
464
  }
460
465
  },
461
466
  noData: {
462
- text: o("chart.noData")
467
+ text: i("chart.noData")
463
468
  }
464
469
  };
465
- if (R && R.length > 0 && (t.colors = R), se(a)) {
466
- const i = a === "bar" && E === "horizontal";
467
- t.xaxis = {
468
- ...e.xaxis,
469
- categories: L ?? [],
470
- ...i ? {
470
+ if (x && x.length > 0 && (l.colors = x), d) {
471
+ const r = l.colors ?? t.colors ?? [];
472
+ l.colors = y.map(
473
+ (m, pe) => s[pe] ? n : r[pe % Math.max(r.length, 1)]
474
+ );
475
+ }
476
+ if (U(a)) {
477
+ const r = a === "bar" && A === "horizontal";
478
+ l.xaxis = {
479
+ ...t.xaxis,
480
+ categories: E ?? [],
481
+ ...r ? {
471
482
  labels: {
472
- formatter: (f) => T(Number(f))
483
+ formatter: (m) => k(Number(m))
473
484
  }
474
485
  } : {}
475
- }, t.yaxis = {
476
- ...e.yaxis,
477
- opposite: $,
478
- ...i ? {} : { labels: { formatter: (f) => T(f) } }
479
- }, t.stroke = {
480
- curve: V,
481
- width: a === "bar" ? 0 : 2
482
- }, t.dataLabels = { enabled: !1 };
486
+ }, l.yaxis = {
487
+ ...t.yaxis,
488
+ opposite: G,
489
+ ...r ? {} : { labels: { formatter: (m) => k(m) } }
490
+ }, l.stroke = {
491
+ curve: F,
492
+ width: a === "bar" ? 0 : 2,
493
+ ...d && a !== "bar" ? { dashArray: s.map((m) => m ? 6 : 0) } : {}
494
+ }, l.dataLabels = { enabled: !1 };
483
495
  }
484
- if (a === "radialBar" && y) {
485
- const i = e.plotOptions ?? {};
486
- t.plotOptions = {
487
- ...i,
496
+ if (a === "radialBar" && g) {
497
+ const r = t.plotOptions ?? {};
498
+ l.plotOptions = {
499
+ ...r,
488
500
  radialBar: {
489
- ...i.radialBar ?? {},
501
+ ...r.radialBar ?? {},
490
502
  dataLabels: {
491
- ...((n = i.radialBar) == null ? void 0 : n.dataLabels) ?? {},
503
+ ...((ce = r.radialBar) == null ? void 0 : ce.dataLabels) ?? {},
492
504
  value: {
493
- ...((p = (s = i.radialBar) == null ? void 0 : s.dataLabels) == null ? void 0 : p.value) ?? {},
494
- formatter: (f) => y(Number(f))
505
+ ...((le = (de = r.radialBar) == null ? void 0 : de.dataLabels) == null ? void 0 : le.value) ?? {},
506
+ formatter: (m) => g(Number(m))
495
507
  }
496
508
  }
497
509
  }
498
510
  };
499
511
  }
500
- if (a === "bar" && E === "horizontal") {
501
- const i = e.plotOptions ?? {};
502
- t.plotOptions = {
503
- ...i,
504
- bar: { ...i.bar ?? {}, horizontal: !0 }
512
+ if (a === "bar" && A === "horizontal") {
513
+ const r = t.plotOptions ?? {};
514
+ l.plotOptions = {
515
+ ...r,
516
+ bar: { ...r.bar ?? {}, horizontal: !0 }
505
517
  };
506
518
  }
507
- return K ? t.fill = {
519
+ return q ? l.fill = {
508
520
  type: "pattern",
509
521
  opacity: a === "area" ? 0.3 : 1,
510
522
  pattern: {
511
- style: [...Ve],
523
+ style: d ? s.map(
524
+ (r, m) => r ? "slantedLines" : K[m % K.length]
525
+ ) : [...K],
526
+ strokeWidth: 2
527
+ }
528
+ } : C ? l.fill = {
529
+ type: s.map((r) => r ? "pattern" : "solid"),
530
+ pattern: {
531
+ style: s.map(
532
+ (r) => r ? "slantedLines" : "horizontalLines"
533
+ ),
512
534
  strokeWidth: 2
513
535
  }
514
- } : a === "area" && (t.fill = {
536
+ } : a === "area" && (l.fill = d ? {
537
+ type: "gradient",
538
+ opacity: s.map((r) => r ? 0.15 : 0.3),
539
+ gradient: {
540
+ gradientToColors: s.map(
541
+ (r) => r ? p : void 0
542
+ )
543
+ }
544
+ } : {
515
545
  type: "gradient",
516
546
  opacity: 0.3
517
- }), t;
547
+ }), l;
518
548
  }, [
519
- F,
520
- b,
521
- N,
522
- H,
523
549
  te,
524
- v,
525
- w,
526
550
  T,
527
- o,
551
+ O,
552
+ j,
553
+ se,
554
+ S,
555
+ I,
556
+ k,
557
+ i,
528
558
  a,
529
- L,
530
- $,
531
- K,
532
- U,
559
+ y,
533
560
  E,
534
- V,
535
- R,
536
- y
537
- ]), ye = ce ?? (Z > 0 ? Z : "100%"), be = D ?? 320, ve = d(() => {
538
- const e = m(a) ? w ?? [] : L ?? [], t = X;
539
- return /* @__PURE__ */ I("table", { id: P, className: "ds:sr-only", children: [
540
- /* @__PURE__ */ c("caption", { children: r }),
541
- /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ I("tr", { children: [
542
- /* @__PURE__ */ c("th", { scope: "col", children: o("chart.table.series") }),
543
- e.map((n, s) => /* @__PURE__ */ c("th", { scope: "col", children: n }, `${n}-${s}`))
561
+ G,
562
+ q,
563
+ Z,
564
+ A,
565
+ F,
566
+ x,
567
+ g
568
+ ]), Ie = ye ?? (ee > 0 ? ee : "100%"), Ce = Y ?? 320, Re = h(() => {
569
+ const e = v(a) ? I ?? [] : E ?? [], t = oe;
570
+ return /* @__PURE__ */ R("table", { id: P, className: "ds:sr-only", children: [
571
+ /* @__PURE__ */ c("caption", { children: o }),
572
+ /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ R("tr", { children: [
573
+ /* @__PURE__ */ c("th", { scope: "col", children: i("chart.table.series") }),
574
+ e.map((n, p) => /* @__PURE__ */ c("th", { scope: "col", children: n }, `${n}-${p}`))
544
575
  ] }) }),
545
- /* @__PURE__ */ c("tbody", { children: t.map((n, s) => /* @__PURE__ */ I("tr", { children: [
546
- /* @__PURE__ */ c("th", { scope: "row", children: n.name || o("chart.table.value") }),
547
- n.data.map((p, i) => /* @__PURE__ */ c("td", { children: a === "radialBar" && y ? y(p) : T(p) }, `${s}-${i}`))
548
- ] }, `${n.name}-${s}`)) })
576
+ /* @__PURE__ */ c("tbody", { children: t.map((n, p) => /* @__PURE__ */ R("tr", { children: [
577
+ /* @__PURE__ */ c("th", { scope: "row", children: n.name || i("chart.table.value") }),
578
+ n.data.map((s, d) => /* @__PURE__ */ c("td", { children: a === "radialBar" && g ? g(s) : k(s) }, `${p}-${d}`))
579
+ ] }, `${n.name}-${p}`)) })
549
580
  ] });
550
581
  }, [
551
582
  a,
552
- X,
553
- w,
554
- L,
583
+ oe,
584
+ I,
585
+ E,
555
586
  P,
556
- r,
557
587
  o,
558
- T,
559
- y
560
- ]), ge = d(() => (m(a), S), [S, a]), ae = /* @__PURE__ */ I(
588
+ i,
589
+ k,
590
+ g
591
+ ]), Le = h(() => (v(a), y), [y, a]), ne = /* @__PURE__ */ R(
561
592
  "div",
562
593
  {
563
- ref: A,
594
+ ref: M,
564
595
  role: "img",
565
- "aria-label": r,
596
+ "aria-label": o,
566
597
  "aria-describedby": P,
567
- className: Ue({
598
+ className: Je({
568
599
  // Explicit height wins over the density min-height unless the
569
600
  // caller also asked for a density explicitly.
570
- density: le ?? (D !== void 0 ? "none" : void 0),
571
- className: u ? void 0 : Y
601
+ density: ve ?? (Y !== void 0 ? "none" : void 0),
602
+ className: b ? void 0 : Q
572
603
  }),
573
- ...u ? {} : { "data-component": "chart", "data-component-id": h },
604
+ ...b ? {} : { "data-component": "chart", "data-component-id": f },
574
605
  children: [
575
- ve,
606
+ Re,
576
607
  /* @__PURE__ */ c(
577
- _e,
608
+ Oe,
578
609
  {
579
610
  type: a,
580
- series: ge,
581
- options: me,
582
- width: ye,
583
- height: be,
611
+ series: Le,
612
+ options: ke,
613
+ width: Ie,
614
+ height: Ce,
584
615
  "aria-hidden": "true"
585
616
  },
586
617
  a
@@ -588,46 +619,46 @@ const Je = Se(
588
619
  ]
589
620
  }
590
621
  );
591
- return u ? /* @__PURE__ */ I(
622
+ return b ? /* @__PURE__ */ R(
592
623
  "div",
593
624
  {
594
625
  "data-component": "chart",
595
- "data-component-id": h,
596
- className: `ds:block ds:w-full ${Y ?? ""}`.trim(),
626
+ "data-component-id": f,
627
+ className: `ds:block ds:w-full ${Q ?? ""}`.trim(),
597
628
  children: [
598
629
  /* @__PURE__ */ c("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ c(
599
- ze,
630
+ He,
600
631
  {
601
632
  role: "radiogroup",
602
633
  mode: "toggle-single",
603
634
  size: "sm",
604
- "aria-label": o("chart.typeSwitcher.label"),
635
+ "aria-label": i("chart.typeSwitcher.label"),
605
636
  value: a,
606
637
  onValueChange: (e) => {
607
- e !== a && (J(e), z == null || z(e));
638
+ e !== a && (ae(e), B == null || B(e));
608
639
  },
609
- children: g.map((e) => /* @__PURE__ */ c(
610
- Ne,
640
+ children: w.map((e) => /* @__PURE__ */ c(
641
+ $e,
611
642
  {
612
643
  value: e,
613
644
  type: "button",
614
- icon: Ze[e],
615
- "aria-label": o(qe[e])
645
+ icon: tt[e],
646
+ "aria-label": i(et[e])
616
647
  },
617
648
  e
618
649
  ))
619
650
  }
620
651
  ) }),
621
- ae
652
+ ne
622
653
  ]
623
654
  }
624
- ) : ae;
655
+ ) : ne;
625
656
  }
626
657
  );
627
- Je.displayName = "Chart";
658
+ rt.displayName = "Chart";
628
659
  export {
629
- Je as C,
630
- Ue as a,
631
- Ke as c
660
+ rt as C,
661
+ Je as a,
662
+ Fe as c
632
663
  };
633
- //# sourceMappingURL=chart-CNaLgvx4.js.map
664
+ //# sourceMappingURL=chart-DqxVCm1I.js.map