@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.
- package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{bmi-calculator-BRUru9QX.js → bmi-calculator-DnEr513I.js} +2 -2
- package/dist/_chunks/{booking-DK_BPHnQ.js → booking-4mCw3Mpl.js} +2 -2
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{document-scanner-CdHQ6lTN.js → document-scanner-CqS_klIr.js} +56 -55
- package/dist/_chunks/{editable-currency-cell-renderer-DGKuRNVG.js → editable-currency-cell-renderer-DgkCIIcO.js} +2 -2
- package/dist/_chunks/{file-upload-CnzRcErt.js → file-upload-BosbPDb1.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-Bz3CdO84.js → patient-shell-DF81lALv.js} +36 -35
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{practice-results-C8ciLQap.js → practice-results-C0d4IL5E.js} +2 -2
- package/dist/_chunks/{public-footer.agent-zw1vFin_.js → public-footer.agent-okt8ZRc5.js} +2 -2
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-CpLDZ6Db.js +316 -0
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-DoiBd6i3.js} +138 -143
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/agent-catalog.json +39 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +1 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +22 -0
- package/dist/i18n/locales/ar.js +22 -0
- package/dist/i18n/locales/de.d.ts +22 -0
- package/dist/i18n/locales/de.js +22 -0
- package/dist/i18n/locales/el.d.ts +22 -0
- package/dist/i18n/locales/el.js +22 -0
- package/dist/i18n/locales/en.d.ts +22 -0
- package/dist/i18n/locales/en.js +22 -0
- package/dist/i18n/locales/es.d.ts +22 -0
- package/dist/i18n/locales/es.js +22 -0
- package/dist/i18n/locales/fr.d.ts +22 -0
- package/dist/i18n/locales/fr.js +22 -0
- package/dist/i18n/locales/hi.d.ts +22 -0
- package/dist/i18n/locales/hi.js +22 -0
- package/dist/i18n/locales/it.d.ts +22 -0
- package/dist/i18n/locales/it.js +22 -0
- package/dist/i18n/locales/ja.d.ts +22 -0
- package/dist/i18n/locales/ja.js +22 -0
- package/dist/i18n/locales/nl.d.ts +22 -0
- package/dist/i18n/locales/nl.js +22 -0
- package/dist/i18n/locales/pl.d.ts +22 -0
- package/dist/i18n/locales/pl.js +22 -0
- package/dist/i18n/locales/pt.d.ts +22 -0
- package/dist/i18n/locales/pt.js +22 -0
- package/dist/i18n/locales/ro.d.ts +22 -0
- package/dist/i18n/locales/ro.js +22 -0
- package/dist/i18n/locales/ru.d.ts +22 -0
- package/dist/i18n/locales/ru.js +22 -0
- package/dist/i18n/locales/sq.d.ts +22 -0
- package/dist/i18n/locales/sq.js +22 -0
- package/dist/i18n/locales/sv.d.ts +22 -0
- package/dist/i18n/locales/sv.js +22 -0
- package/dist/i18n/locales/tr.d.ts +22 -0
- package/dist/i18n/locales/tr.js +22 -0
- package/dist/i18n/locales/zh.d.ts +22 -0
- package/dist/i18n/locales/zh.js +22 -0
- package/dist/index.js +110 -107
- package/dist/locales/ar.json +22 -0
- package/dist/locales/de.json +22 -0
- package/dist/locales/el.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/hi.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/locales/ja.json +22 -0
- package/dist/locales/nl.json +22 -0
- package/dist/locales/pl.json +22 -0
- package/dist/locales/pt.json +22 -0
- package/dist/locales/ro.json +22 -0
- package/dist/locales/ru.json +22 -0
- package/dist/locales/sq.json +22 -0
- package/dist/locales/sv.json +22 -0
- package/dist/locales/tr.json +22 -0
- package/dist/locales/zh.json +22 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- 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
|
|
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),
|
|
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 :
|
|
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:
|
|
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-
|
|
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
|
|
5
|
-
import { I as
|
|
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:
|
|
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:
|
|
99
|
-
...
|
|
100
|
-
},
|
|
101
|
-
const { t:
|
|
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 ??
|
|
109
|
-
description: k ??
|
|
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:
|
|
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
|
|
127
|
-
z(
|
|
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
|
|
136
|
-
|
|
136
|
+
const g = o.current.find((A) => A.id === e);
|
|
137
|
+
g && (r == null || r(g));
|
|
137
138
|
}
|
|
138
139
|
}),
|
|
139
|
-
[
|
|
140
|
+
[r]
|
|
140
141
|
);
|
|
141
142
|
return K(D, M, t), /* @__PURE__ */ n(
|
|
142
143
|
"section",
|
|
143
144
|
{
|
|
144
|
-
ref:
|
|
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:
|
|
149
|
-
...
|
|
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":
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
7
|
-
import { u as nt, g as
|
|
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:
|
|
73
|
-
labels:
|
|
74
|
-
height:
|
|
76
|
+
categories: v,
|
|
77
|
+
labels: g,
|
|
78
|
+
height: L,
|
|
75
79
|
width: H,
|
|
76
|
-
patterns:
|
|
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(),
|
|
84
|
-
() => `chart-${
|
|
85
|
-
[
|
|
86
|
-
), S = `${u}-summary`, y = tt(null), [
|
|
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", [
|
|
92
|
+
const h = _ ?? W.language ?? "en", [N, Z] = P(
|
|
89
93
|
() => {
|
|
90
94
|
try {
|
|
91
|
-
return
|
|
95
|
+
return G();
|
|
92
96
|
} catch {
|
|
93
97
|
return {};
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
100
|
);
|
|
97
|
-
|
|
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(
|
|
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
|
-
}, []),
|
|
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 =
|
|
130
|
+
const t = k.getChartByID(u);
|
|
127
131
|
return t ? (await t.dataURI()).imgURI : "";
|
|
128
132
|
},
|
|
129
133
|
updateSeries(t) {
|
|
130
|
-
const e =
|
|
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",
|
|
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
|
-
),
|
|
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 =
|
|
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: [
|
|
179
|
+
locales: [E],
|
|
176
180
|
defaultLocale: h,
|
|
177
181
|
parentHeightOffset: 0
|
|
178
182
|
},
|
|
179
|
-
labels:
|
|
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:
|
|
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
|
|
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
|
-
|
|
244
|
+
N,
|
|
241
245
|
u,
|
|
242
246
|
R,
|
|
243
247
|
w,
|
|
244
|
-
|
|
248
|
+
E,
|
|
245
249
|
h,
|
|
246
|
-
|
|
250
|
+
g,
|
|
247
251
|
f,
|
|
248
252
|
a,
|
|
249
253
|
o,
|
|
250
|
-
|
|
254
|
+
v,
|
|
251
255
|
C,
|
|
252
|
-
|
|
256
|
+
O,
|
|
253
257
|
m
|
|
254
|
-
]), q = H ?? (
|
|
255
|
-
const t = x(o) ?
|
|
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
|
-
|
|
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({
|
|
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-
|
|
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
|
|
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 =
|
|
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:
|
|
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-
|
|
145
|
+
//# sourceMappingURL=collapsible-X3oaLPU3.js.map
|