@alfadocs/ui-kit 0.38.0 → 0.40.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 (144) hide show
  1. package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
  2. package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
  3. package/dist/_chunks/{bmi-calculator-BRUru9QX.js → bmi-calculator-DnEr513I.js} +2 -2
  4. package/dist/_chunks/{booking-DK_BPHnQ.js → booking-4mCw3Mpl.js} +2 -2
  5. package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
  6. package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
  7. package/dist/_chunks/{document-scanner-CdHQ6lTN.js → document-scanner-CqS_klIr.js} +56 -55
  8. package/dist/_chunks/{editable-currency-cell-renderer-DGKuRNVG.js → editable-currency-cell-renderer-DgkCIIcO.js} +2 -2
  9. package/dist/_chunks/{file-upload-CnzRcErt.js → file-upload-BosbPDb1.js} +2 -2
  10. package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
  11. package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
  12. package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
  13. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
  14. package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
  15. package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
  16. package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
  17. package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
  18. package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
  19. package/dist/_chunks/{patient-shell-Bz3CdO84.js → patient-shell-DF81lALv.js} +36 -35
  20. package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
  21. package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
  22. package/dist/_chunks/{practice-results-C8ciLQap.js → practice-results-C0d4IL5E.js} +2 -2
  23. package/dist/_chunks/{public-footer.agent-zw1vFin_.js → public-footer.agent-okt8ZRc5.js} +2 -2
  24. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
  25. package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
  26. package/dist/_chunks/sign-document-CpLDZ6Db.js +316 -0
  27. package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-DoiBd6i3.js} +138 -143
  28. package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
  29. package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
  30. package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
  31. package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
  32. package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
  33. package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
  34. package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
  35. package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
  36. package/dist/agent-catalog.json +39 -1
  37. package/dist/components/accordion/index.js +1 -1
  38. package/dist/components/agenda-tray/index.js +1 -1
  39. package/dist/components/bmi-calculator/index.js +1 -1
  40. package/dist/components/booking/index.js +1 -1
  41. package/dist/components/chart/chart.d.ts +1 -1
  42. package/dist/components/chart/index.js +1 -1
  43. package/dist/components/collapsible/index.js +1 -1
  44. package/dist/components/data-table/index.js +1 -1
  45. package/dist/components/document-scanner/index.js +1 -1
  46. package/dist/components/file-upload/index.js +1 -1
  47. package/dist/components/freemium-paywall/index.js +1 -1
  48. package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
  49. package/dist/components/header-settings/header-settings.d.ts +36 -0
  50. package/dist/components/header-settings/index.d.ts +2 -0
  51. package/dist/components/header-settings/index.js +2 -241
  52. package/dist/components/index.d.ts +1 -0
  53. package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
  54. package/dist/components/locale-picker/locale-picker.d.ts +80 -0
  55. package/dist/components/map-view/index.js +1 -1
  56. package/dist/components/message-card/index.js +1 -1
  57. package/dist/components/message-tray/index.js +1 -1
  58. package/dist/components/notification-card/index.js +1 -1
  59. package/dist/components/notification-tray/index.js +1 -1
  60. package/dist/components/otp-input/index.d.ts +1 -1
  61. package/dist/components/otp-input/index.js +1 -1
  62. package/dist/components/otp-input/otp-input.d.ts +1 -1
  63. package/dist/components/payment-form/index.js +1 -1
  64. package/dist/components/pdf-viewer/index.js +1 -1
  65. package/dist/components/practice-results/index.js +1 -1
  66. package/dist/components/public-footer/index.js +1 -1
  67. package/dist/components/reviews-panel/index.js +1 -1
  68. package/dist/components/sidebar/index.js +1 -1
  69. package/dist/components/sign-document/index.d.ts +4 -0
  70. package/dist/components/sign-document/index.js +6 -0
  71. package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
  72. package/dist/components/sign-document/sign-document.d.ts +47 -0
  73. package/dist/components/signature-capture/index.js +1 -1
  74. package/dist/components/sparkline/index.js +1 -1
  75. package/dist/components/sparkline/sparkline.d.ts +1 -1
  76. package/dist/components/stepper-accordion/index.js +1 -1
  77. package/dist/components/tag/index.js +1 -1
  78. package/dist/components/task-card/index.js +1 -1
  79. package/dist/components/task-tray/index.js +1 -1
  80. package/dist/components/transcript-panel/index.js +1 -1
  81. package/dist/components/warning-stack/index.js +1 -1
  82. package/dist/components/workflow/index.js +1 -1
  83. package/dist/i18n/locale-meta.d.ts +56 -0
  84. package/dist/i18n/locales/ar.d.ts +22 -0
  85. package/dist/i18n/locales/ar.js +22 -0
  86. package/dist/i18n/locales/de.d.ts +22 -0
  87. package/dist/i18n/locales/de.js +22 -0
  88. package/dist/i18n/locales/el.d.ts +22 -0
  89. package/dist/i18n/locales/el.js +22 -0
  90. package/dist/i18n/locales/en.d.ts +22 -0
  91. package/dist/i18n/locales/en.js +22 -0
  92. package/dist/i18n/locales/es.d.ts +22 -0
  93. package/dist/i18n/locales/es.js +22 -0
  94. package/dist/i18n/locales/fr.d.ts +22 -0
  95. package/dist/i18n/locales/fr.js +22 -0
  96. package/dist/i18n/locales/hi.d.ts +22 -0
  97. package/dist/i18n/locales/hi.js +22 -0
  98. package/dist/i18n/locales/it.d.ts +22 -0
  99. package/dist/i18n/locales/it.js +22 -0
  100. package/dist/i18n/locales/ja.d.ts +22 -0
  101. package/dist/i18n/locales/ja.js +22 -0
  102. package/dist/i18n/locales/nl.d.ts +22 -0
  103. package/dist/i18n/locales/nl.js +22 -0
  104. package/dist/i18n/locales/pl.d.ts +22 -0
  105. package/dist/i18n/locales/pl.js +22 -0
  106. package/dist/i18n/locales/pt.d.ts +22 -0
  107. package/dist/i18n/locales/pt.js +22 -0
  108. package/dist/i18n/locales/ro.d.ts +22 -0
  109. package/dist/i18n/locales/ro.js +22 -0
  110. package/dist/i18n/locales/ru.d.ts +22 -0
  111. package/dist/i18n/locales/ru.js +22 -0
  112. package/dist/i18n/locales/sq.d.ts +22 -0
  113. package/dist/i18n/locales/sq.js +22 -0
  114. package/dist/i18n/locales/sv.d.ts +22 -0
  115. package/dist/i18n/locales/sv.js +22 -0
  116. package/dist/i18n/locales/tr.d.ts +22 -0
  117. package/dist/i18n/locales/tr.js +22 -0
  118. package/dist/i18n/locales/zh.d.ts +22 -0
  119. package/dist/i18n/locales/zh.js +22 -0
  120. package/dist/index.js +110 -107
  121. package/dist/locales/ar.json +22 -0
  122. package/dist/locales/de.json +22 -0
  123. package/dist/locales/el.json +22 -0
  124. package/dist/locales/en.json +22 -0
  125. package/dist/locales/es.json +22 -0
  126. package/dist/locales/fr.json +22 -0
  127. package/dist/locales/hi.json +22 -0
  128. package/dist/locales/it.json +22 -0
  129. package/dist/locales/ja.json +22 -0
  130. package/dist/locales/nl.json +22 -0
  131. package/dist/locales/pl.json +22 -0
  132. package/dist/locales/pt.json +22 -0
  133. package/dist/locales/ro.json +22 -0
  134. package/dist/locales/ru.json +22 -0
  135. package/dist/locales/sq.json +22 -0
  136. package/dist/locales/sv.json +22 -0
  137. package/dist/locales/tr.json +22 -0
  138. package/dist/locales/zh.json +22 -0
  139. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  140. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
  141. package/dist/patterns/patient-shell/index.js +1 -1
  142. package/dist/tokens.css +1 -1
  143. package/package.json +5 -1
  144. package/dist/_chunks/marketplace-app-shell-BnClrL2B.js +0 -295
@@ -70,8 +70,8 @@ const L = {
70
70
  variants: {
71
71
  variant: {
72
72
  default: "",
73
- card: "ds:bg-[var(--card)] ds:border ds:border-[var(--card-border,var(--border))] ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
74
- separated: "ds:border ds:border-border ds:rounded-[var(--radius-md)] ds:overflow-hidden"
73
+ card: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)] ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
74
+ separated: "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:rounded-[var(--radius-md)] ds:overflow-hidden"
75
75
  }
76
76
  },
77
77
  defaultVariants: {
@@ -97,12 +97,12 @@ const L = {
97
97
  ].join(" ")
98
98
  ), V = g(
99
99
  ({ variant: a = "default", className: t, children: n, id: r, ...p }, h) => {
100
- const v = b(null), N = F(h, v), R = J(v), c = p, A = p.type === "multiple", y = c.value !== void 0, [_, T] = S(
100
+ const v = b(null), N = F(h, v), _ = J(v), c = p, A = p.type === "multiple", y = c.value !== void 0, [R, T] = S(
101
101
  () => {
102
102
  const e = c.defaultValue;
103
103
  return e !== void 0 ? e : A ? [] : "";
104
104
  }
105
- ), k = c.value, i = y ? k : _, l = b(i);
105
+ ), k = c.value, i = y ? k : R, l = b(i);
106
106
  H(() => {
107
107
  l.current = i;
108
108
  }, [i]);
@@ -158,7 +158,7 @@ const L = {
158
158
  u.Root,
159
159
  {
160
160
  ref: N,
161
- dir: R,
161
+ dir: _,
162
162
  id: r,
163
163
  "data-component": "accordion",
164
164
  "data-component-id": r,
@@ -225,4 +225,4 @@ export {
225
225
  w as c,
226
226
  L as d
227
227
  };
228
- //# sourceMappingURL=accordion-bSU21uTV.js.map
228
+ //# sourceMappingURL=accordion-9lJSMMsZ.js.map
@@ -1,8 +1,8 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
2
  import { forwardRef as R, useRef as f, useImperativeHandle as z, useMemo as C } from "react";
3
3
  import { c as S } from "./index-D2ZczOXr.js";
4
- import { useTranslation as j } from "react-i18next";
5
- import { I as _ } from "./icon-button-CKEOrN37.js";
4
+ import { useTranslation as _ } from "react-i18next";
5
+ import { I as j } from "./icon-button-CKEOrN37.js";
6
6
  import { S as E } from "./skeleton-CZbwyJAA.js";
7
7
  import { E as P } from "./empty-state-BLy7tigq.js";
8
8
  import { A as H } from "./agenda-card-CFyWSX7Z.js";
@@ -68,6 +68,7 @@ const q = [
68
68
  [
69
69
  "ds:flex ds:flex-col",
70
70
  "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
71
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
71
72
  "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
72
73
  "ds:overflow-hidden"
73
74
  ].join(" "),
@@ -89,24 +90,24 @@ const q = [
89
90
  title: u,
90
91
  caption: c,
91
92
  size: l = "sm",
92
- onOpenAppointment: d,
93
+ onOpenAppointment: r,
93
94
  onAddAppointment: m,
94
95
  addLabel: v,
95
96
  loading: p = !1,
96
97
  emptyTitle: x,
97
98
  emptyDescription: k,
98
- className: T,
99
- ...w
100
- }, N) => {
101
- const { t: r } = j(), y = u ?? r("agendaTray.title", "Today's appointments"), b = v ?? r("agendaTray.add", "Add appointment"), I = !p && s.length === 0;
99
+ className: b,
100
+ ...T
101
+ }, w) => {
102
+ const { t: d } = _(), y = u ?? d("agendaTray.title", "Today's appointments"), N = v ?? d("agendaTray.add", "Add appointment"), I = !p && s.length === 0;
102
103
  let i;
103
104
  p ? i = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((e) => /* @__PURE__ */ a(E, { variant: "rectangular", height: "2.5rem" }, e)) }) : I ? i = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
104
105
  P,
105
106
  {
106
107
  variant: "first-use",
107
108
  size: "sm",
108
- title: x ?? r("agendaTray.empty.title", "No appointments"),
109
- description: k ?? r(
109
+ title: x ?? d("agendaTray.empty.title", "No appointments"),
110
+ description: k ?? d(
110
111
  "agendaTray.empty.description",
111
112
  "New appointments will appear here."
112
113
  )
@@ -116,15 +117,15 @@ const q = [
116
117
  {
117
118
  item: e,
118
119
  size: l,
119
- onActivate: d,
120
+ onActivate: r,
120
121
  "data-appointment-id": e.id
121
122
  },
122
123
  e.id
123
124
  )) });
124
125
  const o = f(s);
125
126
  o.current = s;
126
- const g = f(null);
127
- z(N, () => g.current, []);
127
+ const h = f(null);
128
+ z(w, () => h.current, []);
128
129
  const M = C(
129
130
  () => ({
130
131
  getItems: () => o.current.map((e) => ({
@@ -132,21 +133,21 @@ const q = [
132
133
  status: e.status ?? "confirmed"
133
134
  })),
134
135
  selectItem: (e) => {
135
- const h = o.current.find((A) => A.id === e);
136
- h && (d == null || d(h));
136
+ const g = o.current.find((A) => A.id === e);
137
+ g && (r == null || r(g));
137
138
  }
138
139
  }),
139
- [d]
140
+ [r]
140
141
  );
141
142
  return K(D, M, t), /* @__PURE__ */ n(
142
143
  "section",
143
144
  {
144
- ref: g,
145
+ ref: h,
145
146
  "aria-label": y,
146
147
  "data-component": "agenda-tray",
147
148
  "data-component-id": t,
148
- className: F({ size: l, className: T }),
149
- ...w,
149
+ className: F({ size: l, className: b }),
150
+ ...T,
150
151
  children: [
151
152
  /* @__PURE__ */ n("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
152
153
  /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
@@ -157,12 +158,12 @@ const q = [
157
158
  c ? /* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: c }) : null
158
159
  ] }),
159
160
  m ? /* @__PURE__ */ a(
160
- _,
161
+ j,
161
162
  {
162
163
  icon: /* @__PURE__ */ a(V, {}),
163
164
  intent: "outline",
164
165
  size: "sm",
165
- "aria-label": b,
166
+ "aria-label": N,
166
167
  onClick: m
167
168
  }
168
169
  ) : null
@@ -178,4 +179,4 @@ export {
178
179
  G as A,
179
180
  D as a
180
181
  };
181
- //# sourceMappingURL=agenda-tray-By_asPN9.js.map
182
+ //# sourceMappingURL=agenda-tray-Dyj9ChHC.js.map
@@ -6,7 +6,7 @@ import { R as I } from "./radio-TWf9Q-mp.js";
6
6
  import { R as _ } from "./radio-group-BcF92GEF.js";
7
7
  import { F as T } from "./form-field-BOm9hK35.js";
8
8
  import { N as h } from "./number-input-Dj5L3pXK.js";
9
- import { C as q } from "./chart-DnHvmiDX.js";
9
+ import { C as q } from "./chart-Cbt0_sKv.js";
10
10
  import { B as J } from "./badge-zsf5i5bH.js";
11
11
  import { I as Q } from "./insert-result-yJ0QavoN.js";
12
12
  import { a as X, b as Z, e as aa, c as la, f as S, l as G, k as ea } from "./bmi-BxD-tFzU.js";
@@ -210,4 +210,4 @@ ra.displayName = "BmiCalculator";
210
210
  export {
211
211
  ra as B
212
212
  };
213
- //# sourceMappingURL=bmi-calculator-BRUru9QX.js.map
213
+ //# sourceMappingURL=bmi-calculator-DnEr513I.js.map
@@ -20,7 +20,7 @@ import { C as Ge } from "./combobox-BC-DFx8G.js";
20
20
  import { M as Ue } from "./multi-select-DOLO3K_z.js";
21
21
  import { S as Te } from "./skeleton-CZbwyJAA.js";
22
22
  import { E as dt } from "./empty-state-BLy7tigq.js";
23
- import { S as $t } from "./stepper-accordion-BfS6lUB9.js";
23
+ import { S as $t } from "./stepper-accordion-Dki6r9ZE.js";
24
24
  import { S as zt } from "./stepper-progress-DDjq5nei.js";
25
25
  import { p as F, S as Kt } from "./slot-grid-BlHHP9Qy.js";
26
26
  import { s as le, i as at } from "./isSameDay-DUEiAT0G.js";
@@ -2697,4 +2697,4 @@ export {
2697
2697
  X as O,
2698
2698
  Da as b
2699
2699
  };
2700
- //# sourceMappingURL=booking-DK_BPHnQ.js.map
2700
+ //# sourceMappingURL=booking-4mCw3Mpl.js.map
@@ -1,10 +1,10 @@
1
1
  import { jsxs as T, jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as Q, useId as X, useMemo as d, useRef as tt, useState as E, useEffect as P, useImperativeHandle as et } from "react";
2
+ import { forwardRef as Q, useId as X, useMemo as d, useRef as tt, useState as P, useEffect as $, useImperativeHandle as et } from "react";
3
3
  import { c as ot } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as at } from "react-i18next";
5
5
  import rt from "react-apexcharts";
6
- import $ from "apexcharts";
7
- import { u as nt, g as k } from "./apexcharts-theme-BJigns_V.js";
6
+ import k from "apexcharts";
7
+ import { u as nt, g as G } from "./apexcharts-theme-BJigns_V.js";
8
8
  import { u as st } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
9
  import { u as it } from "./registry-nPAVE19X.js";
10
10
  const ct = {
@@ -38,7 +38,11 @@ const ct = {
38
38
  variants: {
39
39
  density: {
40
40
  compact: "ds:min-h-[var(--chart-min-height-compact)]",
41
- comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]"
41
+ comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
42
+ // Applied when an explicit `height` prop is given and no density was
43
+ // requested: the wrapper must not exceed the caller's height (a 96px
44
+ // KPI chart inside a card must not reserve 320px).
45
+ none: ""
42
46
  }
43
47
  },
44
48
  defaultVariants: { density: "comfortable" }
@@ -69,38 +73,38 @@ const ft = Q(
69
73
  id: l,
70
74
  type: o,
71
75
  series: p,
72
- categories: g,
73
- labels: v,
74
- height: G,
76
+ categories: v,
77
+ labels: g,
78
+ height: L,
75
79
  width: H,
76
- patterns: L = !1,
80
+ patterns: O = !1,
77
81
  toolbar: R = !1,
78
82
  locale: _,
79
83
  radialValueFormatter: m,
80
84
  density: M,
81
85
  className: U
82
86
  }, D) => {
83
- const { t: a, i18n: W } = at(), O = X(), u = d(
84
- () => `chart-${O.replace(/[^a-zA-Z0-9-_]/g, "")}`,
85
- [O]
86
- ), S = `${u}-summary`, y = tt(null), [A, Y] = E(0);
87
+ const { t: a, i18n: W } = at(), A = X(), u = d(
88
+ () => `chart-${A.replace(/[^a-zA-Z0-9-_]/g, "")}`,
89
+ [A]
90
+ ), S = `${u}-summary`, y = tt(null), [z, Y] = P(0);
87
91
  nt(y);
88
- const h = _ ?? W.language ?? "en", [z, Z] = E(
92
+ const h = _ ?? W.language ?? "en", [N, Z] = P(
89
93
  () => {
90
94
  try {
91
- return k();
95
+ return G();
92
96
  } catch {
93
97
  return {};
94
98
  }
95
99
  }
96
100
  );
97
- P(() => {
101
+ $(() => {
98
102
  if (typeof document > "u") return;
99
103
  let t;
100
104
  const e = new MutationObserver(() => {
101
105
  clearTimeout(t), t = setTimeout(() => {
102
106
  try {
103
- Z(k());
107
+ Z(G());
104
108
  } catch {
105
109
  }
106
110
  }, 50);
@@ -111,7 +115,7 @@ const ft = Q(
111
115
  }), () => {
112
116
  clearTimeout(t), e.disconnect();
113
117
  };
114
- }, []), P(() => {
118
+ }, []), $(() => {
115
119
  const t = y.current;
116
120
  if (!t || typeof ResizeObserver > "u") return;
117
121
  const e = new ResizeObserver((n) => {
@@ -123,24 +127,24 @@ const ft = Q(
123
127
  const I = d(
124
128
  () => ({
125
129
  async dataURI() {
126
- const t = $.getChartByID(u);
130
+ const t = k.getChartByID(u);
127
131
  return t ? (await t.dataURI()).imgURI : "";
128
132
  },
129
133
  updateSeries(t) {
130
- const e = $.getChartByID(u);
134
+ const e = k.getChartByID(u);
131
135
  e && (x(o), e.updateSeries(t));
132
136
  }
133
137
  }),
134
138
  [u, o]
135
139
  );
136
140
  et(D, () => I, [I]), it(ct, I, l);
137
- const C = typeof document < "u" && document.documentElement.dir === "rtl", N = d(
141
+ const C = typeof document < "u" && document.documentElement.dir === "rtl", B = d(
138
142
  () => pt(p, o),
139
143
  [p, o]
140
144
  ), f = d(
141
145
  () => new Intl.NumberFormat(h),
142
146
  [h]
143
- ), B = d(
147
+ ), E = d(
144
148
  () => ({
145
149
  name: h,
146
150
  options: {
@@ -161,7 +165,7 @@ const ft = Q(
161
165
  [h, a]
162
166
  ), w = st(), j = d(() => {
163
167
  var n, s, b;
164
- const t = z, e = {
168
+ const t = N, e = {
165
169
  ...t,
166
170
  chart: {
167
171
  ...t.chart,
@@ -172,11 +176,11 @@ const ft = Q(
172
176
  enabled: !w,
173
177
  dynamicAnimation: { enabled: !w }
174
178
  },
175
- locales: [B],
179
+ locales: [E],
176
180
  defaultLocale: h,
177
181
  parentHeightOffset: 0
178
182
  },
179
- labels: v,
183
+ labels: g,
180
184
  legend: {
181
185
  ...t.legend,
182
186
  position: "bottom",
@@ -199,7 +203,7 @@ const ft = Q(
199
203
  };
200
204
  if (ht(o) && (e.xaxis = {
201
205
  ...t.xaxis,
202
- categories: g ?? []
206
+ categories: v ?? []
203
207
  }, e.yaxis = {
204
208
  ...t.yaxis,
205
209
  opposite: C,
@@ -225,7 +229,7 @@ const ft = Q(
225
229
  }
226
230
  };
227
231
  }
228
- return L ? e.fill = {
232
+ return O ? e.fill = {
229
233
  type: "pattern",
230
234
  opacity: o === "area" ? 0.3 : 1,
231
235
  pattern: {
@@ -237,22 +241,22 @@ const ft = Q(
237
241
  opacity: 0.3
238
242
  }), e;
239
243
  }, [
240
- z,
244
+ N,
241
245
  u,
242
246
  R,
243
247
  w,
244
- B,
248
+ E,
245
249
  h,
246
- v,
250
+ g,
247
251
  f,
248
252
  a,
249
253
  o,
250
- g,
254
+ v,
251
255
  C,
252
- L,
256
+ O,
253
257
  m
254
- ]), q = H ?? (A > 0 ? A : "100%"), V = G ?? 320, F = d(() => {
255
- const t = x(o) ? v ?? [] : g ?? [], e = N;
258
+ ]), q = H ?? (z > 0 ? z : "100%"), V = L ?? 320, F = d(() => {
259
+ const t = x(o) ? g ?? [] : v ?? [], e = B;
256
260
  return /* @__PURE__ */ T("table", { id: S, className: "ds:sr-only", children: [
257
261
  /* @__PURE__ */ c("caption", { children: r }),
258
262
  /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ T("tr", { children: [
@@ -266,9 +270,9 @@ const ft = Q(
266
270
  ] });
267
271
  }, [
268
272
  o,
269
- N,
270
- v,
273
+ B,
271
274
  g,
275
+ v,
272
276
  S,
273
277
  r,
274
278
  a,
@@ -282,7 +286,12 @@ const ft = Q(
282
286
  role: "img",
283
287
  "aria-label": r,
284
288
  "aria-describedby": S,
285
- className: dt({ density: M, className: U }),
289
+ className: dt({
290
+ // Explicit height wins over the density min-height unless the
291
+ // caller also asked for a density explicitly.
292
+ density: M ?? (L !== void 0 ? "none" : void 0),
293
+ className: U
294
+ }),
286
295
  "data-component": "chart",
287
296
  "data-component-id": l,
288
297
  children: [
@@ -309,4 +318,4 @@ export {
309
318
  dt as a,
310
319
  ct as c
311
320
  };
312
- //# sourceMappingURL=chart-DnHvmiDX.js.map
321
+ //# sourceMappingURL=chart-Cbt0_sKv.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { forwardRef as p, useRef as f, useMemo as C, useEffect as v } from "react";
3
3
  import * as b from "@radix-ui/react-collapsible";
4
- import { a as y, c as h } from "./index-D2ZczOXr.js";
4
+ import { a as h, c as y } from "./index-D2ZczOXr.js";
5
5
  import { u as k } from "./use-controllable-state-BiY4xTzM.js";
6
6
  import { u as w } from "./registry-nPAVE19X.js";
7
7
  const x = {
@@ -53,11 +53,11 @@ const x = {
53
53
  description: "Sourced from the id prop."
54
54
  }
55
55
  }
56
- }, O = h("", {
56
+ }, O = y("", {
57
57
  variants: {
58
58
  variant: {
59
59
  default: "",
60
- card: "ds:bg-[var(--card)] ds:border ds:border-border ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
60
+ card: "ds:bg-[var(--card)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
61
61
  minimal: "ds:forced-colors:[border-block-end:1px_solid]"
62
62
  }
63
63
  },
@@ -129,7 +129,7 @@ const K = p(
129
129
  ref: l,
130
130
  "aria-labelledby": a,
131
131
  "aria-label": t,
132
- className: y(R, e),
132
+ className: h(R, e),
133
133
  ...s,
134
134
  children: o
135
135
  }
@@ -142,4 +142,4 @@ export {
142
142
  T as b,
143
143
  x as c
144
144
  };
145
- //# sourceMappingURL=collapsible-CERONory.js.map
145
+ //# sourceMappingURL=collapsible-X3oaLPU3.js.map