@alfadocs/ui-kit 0.93.0 → 0.95.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.93.0",
3
+ "version": "0.95.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -1,53 +0,0 @@
1
- import { useEffect as a } from "react";
2
- const i = [
3
- "a[href]",
4
- "button",
5
- "input",
6
- "select",
7
- "textarea",
8
- '[tabindex]:not([tabindex="-1"])'
9
- ].join(",");
10
- function c(t) {
11
- a(() => {
12
- const e = t.current;
13
- if (!e) return;
14
- const o = () => {
15
- e.querySelectorAll('[aria-hidden="true"]').forEach((n) => {
16
- n.querySelectorAll(i).forEach((s) => {
17
- s.setAttribute("tabindex", "-1");
18
- });
19
- });
20
- };
21
- o();
22
- const r = new MutationObserver(o);
23
- return r.observe(e, {
24
- childList: !0,
25
- subtree: !0,
26
- attributes: !0,
27
- attributeFilter: ["aria-hidden", "tabindex"]
28
- }), () => r.disconnect();
29
- }, [t]);
30
- }
31
- function d() {
32
- const t = getComputedStyle(document.documentElement), e = (r) => t.getPropertyValue(r).trim();
33
- return {
34
- theme: { mode: document.documentElement.classList.contains("theme-dark") ? "dark" : "light" },
35
- colors: [
36
- e("--primary"),
37
- e("--accent"),
38
- e("--success"),
39
- e("--warning")
40
- ],
41
- chart: {
42
- background: e("--background"),
43
- foreColor: e("--foreground"),
44
- fontFamily: e("--font-sans")
45
- },
46
- grid: { borderColor: e("--border") }
47
- };
48
- }
49
- export {
50
- d as g,
51
- c as u
52
- };
53
- //# sourceMappingURL=apexcharts-theme-BJigns_V.js.map
@@ -1,633 +0,0 @@
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";
13
- /**
14
- * @license lucide-react v1.22.0 - ISC
15
- *
16
- * This source code is licensed under the ISC license.
17
- * See the LICENSE file in the root directory of this source tree.
18
- */
19
- const Pe = [
20
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
21
- [
22
- "path",
23
- {
24
- d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
25
- key: "q0gr47"
26
- }
27
- ]
28
- ], Ae = C("chart-area", Pe);
29
- /**
30
- * @license lucide-react v1.22.0 - ISC
31
- *
32
- * This source code is licensed under the ISC license.
33
- * See the LICENSE file in the root directory of this source tree.
34
- */
35
- const Be = [
36
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
37
- ["path", { d: "M18 17V9", key: "2bz60n" }],
38
- ["path", { d: "M13 17V5", key: "1frdt8" }],
39
- ["path", { d: "M8 17v-3", key: "17ska0" }]
40
- ], Oe = C("chart-column", Be);
41
- /**
42
- * @license lucide-react v1.22.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */
47
- const Me = [
48
- ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
49
- ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
50
- ], $e = C("chart-line", Me);
51
- /**
52
- * @license lucide-react v1.22.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */
57
- const He = [
58
- [
59
- "path",
60
- {
61
- d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
62
- key: "pzmjnu"
63
- }
64
- ],
65
- ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
66
- ], Ge = C("chart-pie", He);
67
- /**
68
- * @license lucide-react v1.22.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */
73
- const je = [
74
- [
75
- "path",
76
- {
77
- d: "M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3",
78
- key: "19sr3x"
79
- }
80
- ],
81
- ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
82
- ], De = C("donut", je), Ke = {
83
- id: "chart",
84
- // view_change backs the opt-in type switcher (`switchableTypes` prop):
85
- // the same chart re-presented as line / bar / area / pie / donut.
86
- capabilities: ["view_change"],
87
- state: {
88
- declaredType: {
89
- type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
90
- descriptionKey: "ui.agent.chart.state.declaredType",
91
- description: "The consumer-declared chart type — the shape `update_series` expects.",
92
- read: (r) => r.getTypeState().declaredType
93
- },
94
- effectiveType: {
95
- type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
96
- descriptionKey: "ui.agent.chart.state.effectiveType",
97
- description: "The type currently rendered — differs from declaredType after a type-switcher pick.",
98
- read: (r) => r.getTypeState().effectiveType
99
- },
100
- availableTypes: {
101
- type: "ChartType[]",
102
- descriptionKey: "ui.agent.chart.state.availableTypes",
103
- description: "Types the switcher offers. Empty when the chart has no type switcher.",
104
- read: (r) => r.getTypeState().availableTypes
105
- }
106
- },
107
- actions: {
108
- change_view: {
109
- // Switching the presentation is a write (it changes what the user
110
- // sees) but is trivially reversible by switching back.
111
- safety: "write",
112
- argsType: "type",
113
- argsSchema: {
114
- type: "object",
115
- properties: {
116
- type: {
117
- type: "string",
118
- enum: ["line", "bar", "area", "pie", "donut"],
119
- description: "The chart type to render."
120
- }
121
- },
122
- required: ["type"]
123
- },
124
- returns: "boolean (accepted)",
125
- returnsSchema: {
126
- type: "boolean",
127
- description: "True when the switch was applied; false when the chart has no type switcher or the type is not offered (check availableTypes first)."
128
- },
129
- idempotent: !0,
130
- descriptionKey: "ui.agent.chart.actions.changeView",
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)
133
- },
134
- update_series: {
135
- // Replacing the rendered series mutates what the chart displays — it
136
- // is a write, reversible by pushing the prior series back.
137
- safety: "write",
138
- argsType: "series",
139
- // `series` is `ChartSeries[]` (line/bar/area) OR `number[]`
140
- // (pie/donut/radialBar). Both shapes are accepted; the handle routes
141
- // by chart type internally.
142
- argsSchema: {
143
- type: "object",
144
- properties: {
145
- series: {
146
- oneOf: [
147
- {
148
- type: "array",
149
- description: "Categorical series for line / bar / area charts.",
150
- items: {
151
- type: "object",
152
- properties: {
153
- name: { type: "string" },
154
- data: { type: "array", items: { type: "number" } }
155
- },
156
- required: ["name", "data"]
157
- }
158
- },
159
- {
160
- type: "array",
161
- description: "Flat values for pie / donut / radialBar charts.",
162
- items: { type: "number" }
163
- }
164
- ]
165
- }
166
- },
167
- required: ["series"]
168
- },
169
- idempotent: !0,
170
- descriptionKey: "ui.agent.chart.actions.updateSeries",
171
- 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);
174
- }
175
- },
176
- export_png: {
177
- safety: "read",
178
- returns: "string (PNG data URI)",
179
- returnsSchema: {
180
- type: "string",
181
- description: "A `data:image/png;base64,…` URI of the rendered chart."
182
- },
183
- idempotent: !0,
184
- descriptionKey: "ui.agent.chart.actions.exportPng",
185
- description: "Return a PNG data URI of the chart for export or screenshotting.",
186
- invoke: (r) => r.dataURI()
187
- }
188
- },
189
- domHooks: {
190
- root: { attr: "data-component", value: "chart" },
191
- instanceId: {
192
- attr: "data-component-id",
193
- sourceProp: "id",
194
- description: "Sourced from the id prop."
195
- }
196
- }
197
- }, Ue = ke("ds:relative ds:block ds:w-full", {
198
- variants: {
199
- density: {
200
- compact: "ds:min-h-[var(--chart-min-height-compact)]",
201
- comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
202
- // Applied when an explicit `height` prop is given and no density was
203
- // requested: the wrapper must not exceed the caller's height (a 96px
204
- // KPI chart inside a card must not reserve 320px).
205
- none: ""
206
- }
207
- },
208
- defaultVariants: { density: "comfortable" }
209
- }), Ve = [
210
- "verticalLines",
211
- "horizontalLines",
212
- "slantedLines",
213
- "squares",
214
- "circles"
215
- ], We = ["line", "bar", "area"], Ye = ["pie", "donut", "radialBar"], ne = [
216
- "line",
217
- "bar",
218
- "area",
219
- "pie",
220
- "donut"
221
- ], qe = {
222
- line: "chart.typeSwitcher.line",
223
- bar: "chart.typeSwitcher.bar",
224
- area: "chart.typeSwitcher.area",
225
- pie: "chart.typeSwitcher.pie",
226
- 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, {})
233
- };
234
- function m(r) {
235
- return Ye.includes(r);
236
- }
237
- function se(r) {
238
- return We.includes(r);
239
- }
240
- function Fe(r, h) {
241
- return m(h) ? [
242
- {
243
- name: "",
244
- data: r
245
- }
246
- ] : r;
247
- }
248
- const Je = Se(
249
- ({
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
- }
284
- }
285
- );
286
- re(() => {
287
- if (typeof document > "u") return;
288
- let e;
289
- const t = new MutationObserver(() => {
290
- clearTimeout(e), e = setTimeout(() => {
291
- try {
292
- fe(ie());
293
- } catch {
294
- }
295
- }, 50);
296
- });
297
- return t.observe(document.documentElement, {
298
- attributes: !0,
299
- attributeFilter: ["class"]
300
- }), () => {
301
- clearTimeout(e), t.disconnect();
302
- };
303
- }, []), re(() => {
304
- const e = A.current;
305
- if (!e || typeof ResizeObserver > "u") return;
306
- const t = new ResizeObserver((n) => {
307
- const s = n[0];
308
- s && ue(Math.floor(s.contentRect.width));
309
- });
310
- return t.observe(e), () => t.disconnect();
311
- }, []);
312
- const g = d(() => {
313
- if (!_ || _.length === 0) return [];
314
- const e = _.filter(
315
- (n) => ne.includes(n)
316
- );
317
- if (!ne.includes(l))
318
- return [];
319
- const t = e.includes(l) ? e : [l, ...e];
320
- 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)
323
- return {
324
- effectiveSeries: k,
325
- effectiveCategories: j,
326
- effectiveLabels: x
327
- };
328
- if (!O) {
329
- const t = k;
330
- return {
331
- effectiveSeries: t.map(
332
- (s) => s.data.reduce((p, i) => p + i, 0)
333
- ),
334
- effectiveCategories: void 0,
335
- effectiveLabels: t.map((s) => s.name)
336
- };
337
- }
338
- const e = k;
339
- return {
340
- effectiveSeries: [
341
- { name: o("chart.table.value"), data: e }
342
- ],
343
- effectiveCategories: x ?? [],
344
- effectiveLabels: void 0
345
- };
346
- }, [k, j, x, O, Q, o]), M = d(
347
- () => ({
348
- async dataURI() {
349
- const e = oe.getChartByID(b);
350
- return e ? (await e.dataURI()).imgURI : "";
351
- },
352
- updateSeries(e) {
353
- const t = oe.getChartByID(b);
354
- if (!t) return;
355
- const n = m(l), s = m(a);
356
- if (n === s) {
357
- t.updateSeries(e);
358
- return;
359
- }
360
- if (!n) {
361
- const p = e;
362
- t.updateOptions(
363
- { labels: p.map((i) => i.name) },
364
- !1,
365
- !0
366
- ), t.updateSeries(
367
- p.map((i) => i.data.reduce((f, Te) => f + Te, 0))
368
- );
369
- return;
370
- }
371
- t.updateSeries([
372
- { name: o("chart.table.value"), data: e }
373
- ]);
374
- },
375
- setType(e) {
376
- return !u || !g.includes(e) ? !1 : (J(e), !0);
377
- },
378
- getTypeState() {
379
- return {
380
- declaredType: l,
381
- effectiveType: a,
382
- availableTypes: u ? [...g] : []
383
- };
384
- }
385
- }),
386
- [b, l, a, o, u, g]
387
- );
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(
399
- () => ({
400
- name: v,
401
- options: {
402
- 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")
413
- }
414
- }
415
- }),
416
- [v, o]
417
- ), H = xe(), me = d(() => {
418
- var n, s, p;
419
- const e = F, t = {
420
- ...e,
421
- chart: {
422
- ...e.chart,
423
- id: b,
424
- toolbar: { show: N },
425
- zoom: { enabled: N },
426
- animations: {
427
- enabled: !H,
428
- dynamicAnimation: { enabled: !H }
429
- },
430
- locales: [te],
431
- defaultLocale: v,
432
- parentHeightOffset: 0,
433
- // Stacking is an axis-only concept — gate on the categorical types
434
- // so a slice/radial chart never receives it, and omit the key
435
- // entirely when unstacked so the default output is byte-identical.
436
- ...U && se(a) ? { stacked: !0 } : {}
437
- },
438
- // Only set `labels` when the effective type actually has them (slice
439
- // charts). Emitting `labels: undefined` crashes ApexCharts' bar
440
- // renderer — `parseDataAxisCharts` reads `labels.length` and throws
441
- // "Cannot read properties of undefined (reading 'length')", which
442
- // aborts the render and leaves a blank chart. Absent is safe; area /
443
- // line tolerate the undefined but bar does not, so never pass it.
444
- ...w ? { labels: w } : {},
445
- legend: {
446
- ...e.legend,
447
- position: "bottom",
448
- // ApexCharts legend.horizontalAlign is a physical prop mapped internally
449
- // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
450
- // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
451
- // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
452
- horizontalAlign: $ ? "right" : "left",
453
- fontFamily: "inherit"
454
- },
455
- tooltip: {
456
- ...e.tooltip,
457
- y: {
458
- formatter: (i) => T(i)
459
- }
460
- },
461
- noData: {
462
- text: o("chart.noData")
463
- }
464
- };
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 ? {
471
- labels: {
472
- formatter: (f) => T(Number(f))
473
- }
474
- } : {}
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 };
483
- }
484
- if (a === "radialBar" && y) {
485
- const i = e.plotOptions ?? {};
486
- t.plotOptions = {
487
- ...i,
488
- radialBar: {
489
- ...i.radialBar ?? {},
490
- dataLabels: {
491
- ...((n = i.radialBar) == null ? void 0 : n.dataLabels) ?? {},
492
- value: {
493
- ...((p = (s = i.radialBar) == null ? void 0 : s.dataLabels) == null ? void 0 : p.value) ?? {},
494
- formatter: (f) => y(Number(f))
495
- }
496
- }
497
- }
498
- };
499
- }
500
- if (a === "bar" && E === "horizontal") {
501
- const i = e.plotOptions ?? {};
502
- t.plotOptions = {
503
- ...i,
504
- bar: { ...i.bar ?? {}, horizontal: !0 }
505
- };
506
- }
507
- return K ? t.fill = {
508
- type: "pattern",
509
- opacity: a === "area" ? 0.3 : 1,
510
- pattern: {
511
- style: [...Ve],
512
- strokeWidth: 2
513
- }
514
- } : a === "area" && (t.fill = {
515
- type: "gradient",
516
- opacity: 0.3
517
- }), t;
518
- }, [
519
- F,
520
- b,
521
- N,
522
- H,
523
- te,
524
- v,
525
- w,
526
- T,
527
- o,
528
- a,
529
- L,
530
- $,
531
- K,
532
- U,
533
- 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}`))
544
- ] }) }),
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}`)) })
549
- ] });
550
- }, [
551
- a,
552
- X,
553
- w,
554
- L,
555
- P,
556
- r,
557
- o,
558
- T,
559
- y
560
- ]), ge = d(() => (m(a), S), [S, a]), ae = /* @__PURE__ */ I(
561
- "div",
562
- {
563
- ref: A,
564
- role: "img",
565
- "aria-label": r,
566
- "aria-describedby": P,
567
- className: Ue({
568
- // Explicit height wins over the density min-height unless the
569
- // caller also asked for a density explicitly.
570
- density: le ?? (D !== void 0 ? "none" : void 0),
571
- className: u ? void 0 : Y
572
- }),
573
- ...u ? {} : { "data-component": "chart", "data-component-id": h },
574
- children: [
575
- ve,
576
- /* @__PURE__ */ c(
577
- _e,
578
- {
579
- type: a,
580
- series: ge,
581
- options: me,
582
- width: ye,
583
- height: be,
584
- "aria-hidden": "true"
585
- },
586
- a
587
- )
588
- ]
589
- }
590
- );
591
- return u ? /* @__PURE__ */ I(
592
- "div",
593
- {
594
- "data-component": "chart",
595
- "data-component-id": h,
596
- className: `ds:block ds:w-full ${Y ?? ""}`.trim(),
597
- children: [
598
- /* @__PURE__ */ c("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ c(
599
- ze,
600
- {
601
- role: "radiogroup",
602
- mode: "toggle-single",
603
- size: "sm",
604
- "aria-label": o("chart.typeSwitcher.label"),
605
- value: a,
606
- onValueChange: (e) => {
607
- e !== a && (J(e), z == null || z(e));
608
- },
609
- children: g.map((e) => /* @__PURE__ */ c(
610
- Ne,
611
- {
612
- value: e,
613
- type: "button",
614
- icon: Ze[e],
615
- "aria-label": o(qe[e])
616
- },
617
- e
618
- ))
619
- }
620
- ) }),
621
- ae
622
- ]
623
- }
624
- ) : ae;
625
- }
626
- );
627
- Je.displayName = "Chart";
628
- export {
629
- Je as C,
630
- Ue as a,
631
- Ke as c
632
- };
633
- //# sourceMappingURL=chart-CNaLgvx4.js.map