@alfadocs/ui-kit 0.8.0 → 0.9.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/{agenda-card-CalZqycc.js → agenda-card-DU13wUTA.js} +4 -4
- package/dist/_chunks/{agenda-tray-3ffFDQZC.js → agenda-tray-gQUXklO4.js} +9 -9
- package/dist/_chunks/{ai-prompt-input-DLgY8lrW.js → ai-prompt-input-bAJwYu84.js} +45 -45
- package/dist/_chunks/{alert-CVMq99Cq.js → alert-pgdXrEO5.js} +2 -2
- package/dist/_chunks/{app-frame-CDJOgPXe.js → app-frame-BYx1gcV7.js} +2 -2
- package/dist/_chunks/{audio-recorder-cOl_Z_Pk.js → audio-recorder-BHBonrFf.js} +54 -54
- package/dist/_chunks/{audio-visualiser-ByDEFLNm.js → audio-visualiser-I-T4Z7EU.js} +2 -2
- package/dist/_chunks/{autocomplete-D4oUZbsP.js → autocomplete-C34hbfKh.js} +6 -6
- package/dist/_chunks/{avatar-Dcr6XuDQ.js → avatar-I10iCDs8.js} +2 -2
- package/dist/_chunks/{badge-DKFbntoa.js → badge-cLYVGlMh.js} +2 -2
- package/dist/_chunks/{balance-cell-renderer-BuExGe6u.js → balance-cell-renderer-DWWtX-VM.js} +5 -5
- package/dist/_chunks/{breadcrumb-D1snXjPb.js → breadcrumb--YI7lcHA.js} +4 -4
- package/dist/_chunks/{button-group-CONver7M.js → button-group-Bh2g_Ng-.js} +2 -2
- package/dist/_chunks/{chat-container-ClzsWXp2.js → chat-container-izziXViv.js} +4 -4
- package/dist/_chunks/{chat-message-DoAhgUTj.js → chat-message-g3lxpXM_.js} +2 -2
- package/dist/_chunks/{checkbox-group-CarPLDIC.js → checkbox-group-Qkm3Rg1S.js} +6 -6
- package/dist/_chunks/{color-picker-CTIcHlDF.js → color-picker-BPfcByHH.js} +13 -13
- package/dist/_chunks/{combobox-BLWruOxK.js → combobox-DUpWoPPk.js} +6 -6
- package/dist/_chunks/{contact-card-DNyATxKv.js → contact-card-VJIUqKB2.js} +13 -13
- package/dist/_chunks/{date-picker-B1PO1ZQP.js → date-picker-BD5FYW08.js} +3 -3
- package/dist/_chunks/{date-range-picker-mix2nEVC.js → date-range-picker-BZLVgcXE.js} +27 -27
- package/dist/_chunks/{date-time-picker-Dnong_BY.js → date-time-picker-CCoRWX7R.js} +5 -5
- package/dist/_chunks/{description-list-BYA77Yud.js → description-list-y7Hk51KI.js} +16 -16
- package/dist/_chunks/{dialog-W8uDfXD8.js → dialog-DRp6Dejy.js} +2 -2
- package/dist/_chunks/{file-upload-C947ACDK.js → file-upload-BVbfiANR.js} +81 -81
- package/dist/_chunks/{floating-action-button-C8OYj8mE.js → floating-action-button-pojvb9gG.js} +6 -6
- package/dist/_chunks/{form-field-Bmkeh7WY.js → form-field-BOm9hK35.js} +2 -2
- package/dist/_chunks/{freemium-paywall-B9kIDtm1.js → freemium-paywall-BTEiVkes.js} +29 -29
- package/dist/_chunks/{key-value-pair-CgWvAIGb.js → key-value-pair-AbrRwesr.js} +14 -14
- package/dist/_chunks/{leo-sidebar-BWECDYpu.js → leo-sidebar-B054wsZm.js} +8 -8
- package/dist/_chunks/{link-BcYW1eNM.js → link-BGpwaFik.js} +2 -2
- package/dist/_chunks/{list-qP6p0NTw.js → list-DcjV0m5B.js} +2 -2
- package/dist/_chunks/{message-card-DjvsB_3U.js → message-card-c6R0-qXq.js} +6 -6
- package/dist/_chunks/{message-tray-BbnAzlLH.js → message-tray-Fsend-du.js} +21 -21
- package/dist/_chunks/{multi-select-wqqrgjUQ.js → multi-select-Bh-xR8kP.js} +10 -10
- package/dist/_chunks/{navigation-menu-ClbHeawy.js → navigation-menu-Bav1d_wA.js} +2 -2
- package/dist/_chunks/{notification-card-uTPEvAQS.js → notification-card-CRIE2Cuk.js} +3 -3
- package/dist/_chunks/{notification-tray-PGtMqXbP.js → notification-tray-CfXNYrxv.js} +21 -21
- package/dist/_chunks/{number-input-Q7wkHnvQ.js → number-input-mpSLk-ld.js} +3 -3
- package/dist/_chunks/{otp-input-C9gUByF0.js → otp-input-CI-Zv5q6.js} +2 -2
- package/dist/_chunks/{pagination-3AC4zTsi.js → pagination-OQBlnb1H.js} +7 -7
- package/dist/_chunks/{patient-shell-IhMULVrt.js → patient-shell-BS2V6V1b.js} +3 -3
- package/dist/_chunks/{payment-form-C3HMAsGG.js → payment-form-CI77oIx1.js} +3 -3
- package/dist/_chunks/{pdf-viewer-DO95bm2o.js → pdf-viewer-CNETPubN.js} +3 -3
- package/dist/_chunks/{phone-input-CSHJOJ13.js → phone-input-DtBVs5fz.js} +7 -7
- package/dist/_chunks/{popover-DekUKNBk.js → popover--derJ_wq.js} +2 -2
- package/dist/_chunks/{progress-C11tqhoI.js → progress-B-PSO5OS.js} +4 -4
- package/dist/_chunks/{recaptcha-widget-NyfOfLII.js → recaptcha-widget-Kp1XntuE.js} +3 -3
- package/dist/_chunks/{resizable-mpXXyIsN.js → resizable-COV-cnth.js} +3 -3
- package/dist/_chunks/{search-bar-BTDfgYtg.js → search-bar-DmZZ9UvV.js} +2 -2
- package/dist/_chunks/{search-input-CdJIEjFo.js → search-input-BBtSRH-Q.js} +4 -4
- package/dist/_chunks/{select-BOU_Osnf.js → select-i9MwQeQy.js} +20 -20
- package/dist/_chunks/{sheet-BAg7GY9j.js → sheet-BT0izeoI.js} +9 -9
- package/dist/_chunks/{sidebar-Bx3wCDyy.js → sidebar-CoLHtVrP.js} +83 -83
- package/dist/_chunks/{sign-in-with-alfadocs-button-B9UrqOqH.js → sign-in-with-alfadocs-button-4zZC-I6y.js} +3 -3
- package/dist/_chunks/{skip-link-DmZ3c6cb.js → skip-link-BaSMtPwB.js} +2 -2
- package/dist/_chunks/{slider-BT2bZWsy.js → slider-CkR6CLun.js} +3 -3
- package/dist/_chunks/{sparkline-_gy8aJDG.js → sparkline-D4Np8ikf.js} +15 -15
- package/dist/_chunks/{spinner-DLaYfLPl.js → spinner-DirtWZNG.js} +2 -2
- package/dist/_chunks/{stat-B9PHSPbN.js → stat-CDQ_a0vk.js} +4 -4
- package/dist/_chunks/{switch-C0psfIQF.js → switch-D916VW86.js} +2 -2
- package/dist/_chunks/{tabs-BZQy_Rmb.js → tabs-Cg794H0Q.js} +3 -3
- package/dist/_chunks/{tag-DuLMjRbF.js → tag-CQmHRM4Y.js} +3 -3
- package/dist/_chunks/{task-card-Dw_ZJDL8.js → task-card-BUVMh6HN.js} +2 -2
- package/dist/_chunks/{task-tray-XlIW9ueh.js → task-tray-B3A2fRGR.js} +13 -13
- package/dist/_chunks/{text-area-CO9Dz0qX.js → text-area-DHtcpcLv.js} +13 -13
- package/dist/_chunks/{text-input-DZwt9L8H.js → text-input-1oqFRbVI.js} +2 -2
- package/dist/_chunks/{theme-toggle-B3UR6ouK.js → theme-toggle-B3meAb3y.js} +14 -14
- package/dist/_chunks/{time-picker-DvPUmHH-.js → time-picker-DeVZkIY2.js} +2 -2
- package/dist/_chunks/{timeline-BvmnQadS.js → timeline-BaSULpSJ.js} +2 -2
- package/dist/_chunks/{toast.agent-DihA6MON.js → toast.agent-32WNQ-_x.js} +2 -2
- package/dist/_chunks/{transaction-chip-DE6DITun.js → transaction-chip-eVbolm0B.js} +2 -2
- package/dist/_chunks/{transcript-panel-Bx5ANMsv.js → transcript-panel-BpJqPr7I.js} +8 -8
- package/dist/_chunks/{typing-indicator-BZ5jXZPn.js → typing-indicator-DHeVN4ob.js} +9 -9
- package/dist/_chunks/{use-password-requirements-DgEYdN4H.js → use-password-requirements-B1M8lE2t.js} +29 -32
- package/dist/_chunks/{warning-stack-CdLIe534.js → warning-stack-CeRihME9.js} +15 -15
- package/dist/_chunks/{workflow-map-CESZNNZe.js → workflow-map-D3MvrsZV.js} +4 -4
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/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/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +2 -2
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skip-link/index.js +1 -1
- package/dist/components/skip-link/skip-link.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/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/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/typing-indicator/typing-indicator.d.ts +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.d.ts +2 -1
- package/dist/i18n/config.js +49 -31
- package/dist/i18n/registerUiBundle.d.ts +15 -0
- package/dist/index.js +77 -77
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +4 -3
|
@@ -4,11 +4,11 @@ import * as B from "@radix-ui/react-dialog";
|
|
|
4
4
|
import * as F from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as R from "@radix-ui/react-accordion";
|
|
6
6
|
import * as S from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
8
|
-
import { Slot as
|
|
7
|
+
import { a as ns } from "./accordion-DOmxGEWU.js";
|
|
8
|
+
import { Slot as os } from "@radix-ui/react-slot";
|
|
9
9
|
import { c as I } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { useTranslation as A } from "react-i18next";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as is } from "./registry-C9nwlNyL.js";
|
|
12
12
|
import { X as ls } from "./x-CCcI3eJp.js";
|
|
13
13
|
import { c as P } from "./createLucideIcon-CrFbzy84.js";
|
|
14
14
|
import { C as L } from "./chevron-right-BrpYejk0.js";
|
|
@@ -118,8 +118,8 @@ function ae(s, e) {
|
|
|
118
118
|
if (typeof window > "u")
|
|
119
119
|
return typeof e == "function" ? e() : e;
|
|
120
120
|
try {
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
121
|
+
const n = window.localStorage.getItem(s);
|
|
122
|
+
if (n !== null) return JSON.parse(n);
|
|
123
123
|
} catch {
|
|
124
124
|
}
|
|
125
125
|
return typeof e == "function" ? e() : e;
|
|
@@ -178,10 +178,10 @@ const O = I(
|
|
|
178
178
|
defaultState: e = "expanded",
|
|
179
179
|
onStateChange: r,
|
|
180
180
|
density: d = "default",
|
|
181
|
-
open:
|
|
182
|
-
onOpenChange:
|
|
181
|
+
open: n,
|
|
182
|
+
onOpenChange: i,
|
|
183
183
|
"aria-label": u,
|
|
184
|
-
className:
|
|
184
|
+
className: o,
|
|
185
185
|
children: m,
|
|
186
186
|
id: l,
|
|
187
187
|
...p
|
|
@@ -197,7 +197,7 @@ const O = I(
|
|
|
197
197
|
g || N(C), r == null || r(C);
|
|
198
198
|
},
|
|
199
199
|
[g, r]
|
|
200
|
-
), z = u ?? w("
|
|
200
|
+
), z = u ?? w("navigation.sidebar.label"), j = q(h);
|
|
201
201
|
_(() => {
|
|
202
202
|
j.current = h;
|
|
203
203
|
}, [h]);
|
|
@@ -211,11 +211,11 @@ const O = I(
|
|
|
211
211
|
}),
|
|
212
212
|
[v]
|
|
213
213
|
);
|
|
214
|
-
return
|
|
214
|
+
return is(hs, k, l), h === "overlay" ? /* @__PURE__ */ a(
|
|
215
215
|
E.Provider,
|
|
216
216
|
{
|
|
217
217
|
value: { mode: "overlay", density: d, transitionTo: v },
|
|
218
|
-
children: /* @__PURE__ */ a(B.Root, { open:
|
|
218
|
+
children: /* @__PURE__ */ a(B.Root, { open: n, onOpenChange: i, children: /* @__PURE__ */ f(B.Portal, { children: [
|
|
219
219
|
/* @__PURE__ */ a(
|
|
220
220
|
B.Overlay,
|
|
221
221
|
{
|
|
@@ -243,7 +243,7 @@ const O = I(
|
|
|
243
243
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
244
244
|
"ds:motion-reduce:animate-none",
|
|
245
245
|
"ds:focus:outline-none",
|
|
246
|
-
|
|
246
|
+
o ?? ""
|
|
247
247
|
].filter(Boolean).join(" "),
|
|
248
248
|
children: [
|
|
249
249
|
/* @__PURE__ */ a(
|
|
@@ -263,7 +263,7 @@ const O = I(
|
|
|
263
263
|
"button",
|
|
264
264
|
{
|
|
265
265
|
type: "button",
|
|
266
|
-
"aria-label": w("
|
|
266
|
+
"aria-label": w("navigation.sidebar.close"),
|
|
267
267
|
className: [
|
|
268
268
|
"ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
|
|
269
269
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -298,7 +298,7 @@ const O = I(
|
|
|
298
298
|
className: [
|
|
299
299
|
O({ mode: h, density: d }),
|
|
300
300
|
d === "compact" ? "ds:density-compact" : "",
|
|
301
|
-
|
|
301
|
+
o ?? ""
|
|
302
302
|
].filter(Boolean).join(" "),
|
|
303
303
|
...p,
|
|
304
304
|
children: m
|
|
@@ -394,10 +394,10 @@ const zs = [
|
|
|
394
394
|
icon: e,
|
|
395
395
|
collapsible: r = !0,
|
|
396
396
|
defaultOpen: d = !0,
|
|
397
|
-
open:
|
|
398
|
-
onOpenChange:
|
|
397
|
+
open: n,
|
|
398
|
+
onOpenChange: i,
|
|
399
399
|
className: u,
|
|
400
|
-
children:
|
|
400
|
+
children: o,
|
|
401
401
|
...m
|
|
402
402
|
}, l) => {
|
|
403
403
|
const { mode: p } = y(), x = p === "icon", w = r && !x && !!s, g = [
|
|
@@ -425,7 +425,7 @@ const zs = [
|
|
|
425
425
|
]
|
|
426
426
|
}
|
|
427
427
|
) : null,
|
|
428
|
-
|
|
428
|
+
o
|
|
429
429
|
] });
|
|
430
430
|
const t = "section";
|
|
431
431
|
return /* @__PURE__ */ a(
|
|
@@ -433,9 +433,9 @@ const zs = [
|
|
|
433
433
|
{
|
|
434
434
|
type: "single",
|
|
435
435
|
collapsible: !0,
|
|
436
|
-
defaultValue:
|
|
437
|
-
value:
|
|
438
|
-
onValueChange:
|
|
436
|
+
defaultValue: n === void 0 && d ? t : void 0,
|
|
437
|
+
value: n === void 0 ? void 0 : n ? t : "",
|
|
438
|
+
onValueChange: i ? (N) => i(N === t) : void 0,
|
|
439
439
|
asChild: !0,
|
|
440
440
|
children: /* @__PURE__ */ a("div", { ref: l, className: g, ...m, children: /* @__PURE__ */ f(R.Item, { value: t, children: [
|
|
441
441
|
/* @__PURE__ */ a(R.Header, { className: "ds:flex", children: /* @__PURE__ */ f(R.Trigger, { className: zs, children: [
|
|
@@ -450,11 +450,11 @@ const zs = [
|
|
|
450
450
|
)
|
|
451
451
|
] }) }),
|
|
452
452
|
/* @__PURE__ */ a(
|
|
453
|
-
|
|
453
|
+
ns,
|
|
454
454
|
{
|
|
455
455
|
"aria-label": s,
|
|
456
456
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
457
|
-
children:
|
|
457
|
+
children: o
|
|
458
458
|
}
|
|
459
459
|
)
|
|
460
460
|
] }) })
|
|
@@ -480,21 +480,21 @@ const ks = [
|
|
|
480
480
|
icon: e,
|
|
481
481
|
children: r,
|
|
482
482
|
className: d,
|
|
483
|
-
defaultOpen:
|
|
484
|
-
open:
|
|
483
|
+
defaultOpen: n,
|
|
484
|
+
open: i,
|
|
485
485
|
onOpenChange: u,
|
|
486
|
-
...
|
|
486
|
+
...o
|
|
487
487
|
}, m) => {
|
|
488
488
|
const { mode: l } = y();
|
|
489
489
|
return /* @__PURE__ */ f(
|
|
490
490
|
F.Root,
|
|
491
491
|
{
|
|
492
492
|
ref: m,
|
|
493
|
-
defaultOpen:
|
|
494
|
-
open:
|
|
493
|
+
defaultOpen: n,
|
|
494
|
+
open: i,
|
|
495
495
|
onOpenChange: u,
|
|
496
496
|
className: d,
|
|
497
|
-
...
|
|
497
|
+
...o,
|
|
498
498
|
children: [
|
|
499
499
|
/* @__PURE__ */ f(F.Trigger, { className: ks, children: [
|
|
500
500
|
e ? /* @__PURE__ */ a(
|
|
@@ -608,23 +608,23 @@ const Ts = I(
|
|
|
608
608
|
isActive: e = !1,
|
|
609
609
|
isPinned: r = !1,
|
|
610
610
|
onPinChange: d,
|
|
611
|
-
pinLabel:
|
|
612
|
-
className:
|
|
611
|
+
pinLabel: n,
|
|
612
|
+
className: i,
|
|
613
613
|
children: u,
|
|
614
|
-
"aria-label":
|
|
614
|
+
"aria-label": o,
|
|
615
615
|
...m
|
|
616
616
|
}, l) => {
|
|
617
|
-
const { mode: p, density: x } = y(), w = s ?
|
|
617
|
+
const { mode: p, density: x } = y(), w = s ? os : "a", g = d !== void 0 && p !== "icon", t = /* @__PURE__ */ a(
|
|
618
618
|
w,
|
|
619
619
|
{
|
|
620
620
|
ref: l,
|
|
621
621
|
"aria-current": e ? "page" : void 0,
|
|
622
|
-
"aria-label":
|
|
622
|
+
"aria-label": o,
|
|
623
623
|
className: Ts({
|
|
624
624
|
mode: p,
|
|
625
625
|
density: x,
|
|
626
626
|
isActive: e,
|
|
627
|
-
className: g ? "ds:flex-1 ds:min-w-0" :
|
|
627
|
+
className: g ? "ds:flex-1 ds:min-w-0" : i
|
|
628
628
|
}),
|
|
629
629
|
...m,
|
|
630
630
|
children: u
|
|
@@ -634,7 +634,7 @@ const Ts = I(
|
|
|
634
634
|
{
|
|
635
635
|
className: [
|
|
636
636
|
"ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
637
|
-
|
|
637
|
+
i ?? ""
|
|
638
638
|
].filter(Boolean).join(" "),
|
|
639
639
|
children: [
|
|
640
640
|
t,
|
|
@@ -642,14 +642,14 @@ const Ts = I(
|
|
|
642
642
|
V,
|
|
643
643
|
{
|
|
644
644
|
isPinned: r,
|
|
645
|
-
label:
|
|
645
|
+
label: n ?? o ?? "",
|
|
646
646
|
onPinChange: d
|
|
647
647
|
}
|
|
648
648
|
)
|
|
649
649
|
]
|
|
650
650
|
}
|
|
651
651
|
) : t;
|
|
652
|
-
return p === "icon" &&
|
|
652
|
+
return p === "icon" && o ? /* @__PURE__ */ f(S.Root, { children: [
|
|
653
653
|
/* @__PURE__ */ a(S.Trigger, { asChild: !0, children: N }),
|
|
654
654
|
/* @__PURE__ */ a(S.Portal, { children: /* @__PURE__ */ f(
|
|
655
655
|
S.Content,
|
|
@@ -664,7 +664,7 @@ const Ts = I(
|
|
|
664
664
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
665
665
|
].join(" "),
|
|
666
666
|
children: [
|
|
667
|
-
|
|
667
|
+
o,
|
|
668
668
|
/* @__PURE__ */ a(S.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
669
669
|
]
|
|
670
670
|
}
|
|
@@ -696,7 +696,7 @@ const Is = b(({ className: s, children: e, ...r }, d) => /* @__PURE__ */ a(
|
|
|
696
696
|
));
|
|
697
697
|
Is.displayName = "SidebarItemIcon";
|
|
698
698
|
const Bs = b(({ className: s, children: e, ...r }, d) => {
|
|
699
|
-
const { mode:
|
|
699
|
+
const { mode: n } = y();
|
|
700
700
|
return /* @__PURE__ */ a(
|
|
701
701
|
"span",
|
|
702
702
|
{
|
|
@@ -705,7 +705,7 @@ const Bs = b(({ className: s, children: e, ...r }, d) => {
|
|
|
705
705
|
"ds:flex-1",
|
|
706
706
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
707
707
|
"ds:text-start",
|
|
708
|
-
|
|
708
|
+
n === "icon" ? "ds:sr-only" : "",
|
|
709
709
|
s ?? ""
|
|
710
710
|
].filter(Boolean).join(" "),
|
|
711
711
|
...r,
|
|
@@ -715,16 +715,16 @@ const Bs = b(({ className: s, children: e, ...r }, d) => {
|
|
|
715
715
|
});
|
|
716
716
|
Bs.displayName = "SidebarItemLabel";
|
|
717
717
|
const Ds = b(({ className: s, children: e, ...r }, d) => {
|
|
718
|
-
const { mode:
|
|
718
|
+
const { mode: n } = y(), i = n === "icon";
|
|
719
719
|
return /* @__PURE__ */ a(
|
|
720
720
|
"span",
|
|
721
721
|
{
|
|
722
722
|
ref: d,
|
|
723
|
-
"aria-hidden":
|
|
723
|
+
"aria-hidden": i ? "true" : void 0,
|
|
724
724
|
className: [
|
|
725
725
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
726
726
|
"ds:font-[var(--font-weight-semibold)]",
|
|
727
|
-
|
|
727
|
+
i ? [
|
|
728
728
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
729
729
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
730
730
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -759,16 +759,16 @@ const As = I(
|
|
|
759
759
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
760
760
|
"ds:no-underline"
|
|
761
761
|
].join(" ")
|
|
762
|
-
), Rs = b(({ logo: s, name: e, showChevron: r = !0, className: d, ...
|
|
763
|
-
const { mode: u } = y(),
|
|
762
|
+
), Rs = b(({ logo: s, name: e, showChevron: r = !0, className: d, ...n }, i) => {
|
|
763
|
+
const { mode: u } = y(), o = u !== "icon";
|
|
764
764
|
return /* @__PURE__ */ f(
|
|
765
765
|
"button",
|
|
766
766
|
{
|
|
767
|
-
ref:
|
|
767
|
+
ref: i,
|
|
768
768
|
type: "button",
|
|
769
769
|
"aria-label": e,
|
|
770
770
|
className: [As(), d].filter(Boolean).join(" "),
|
|
771
|
-
...
|
|
771
|
+
...n,
|
|
772
772
|
children: [
|
|
773
773
|
/* @__PURE__ */ a(
|
|
774
774
|
"span",
|
|
@@ -778,7 +778,7 @@ const As = I(
|
|
|
778
778
|
children: s
|
|
779
779
|
}
|
|
780
780
|
),
|
|
781
|
-
|
|
781
|
+
o ? /* @__PURE__ */ f(K, { children: [
|
|
782
782
|
/* @__PURE__ */ a("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: e }),
|
|
783
783
|
r ? /* @__PURE__ */ a(
|
|
784
784
|
L,
|
|
@@ -816,17 +816,17 @@ const Ps = I(
|
|
|
816
816
|
},
|
|
817
817
|
defaultVariants: { mode: "expanded" }
|
|
818
818
|
}
|
|
819
|
-
), Hs = b(({ icon: s, label: e, shortcut: r, className: d, ...
|
|
820
|
-
const { mode: u } = y(),
|
|
819
|
+
), Hs = b(({ icon: s, label: e, shortcut: r, className: d, ...n }, i) => {
|
|
820
|
+
const { mode: u } = y(), o = u !== "icon";
|
|
821
821
|
return /* @__PURE__ */ f(
|
|
822
822
|
"button",
|
|
823
823
|
{
|
|
824
|
-
ref:
|
|
824
|
+
ref: i,
|
|
825
825
|
type: "button",
|
|
826
826
|
"aria-label": e,
|
|
827
827
|
"aria-keyshortcuts": r,
|
|
828
828
|
className: [Ps({ mode: u }), d].filter(Boolean).join(" "),
|
|
829
|
-
...
|
|
829
|
+
...n,
|
|
830
830
|
children: [
|
|
831
831
|
/* @__PURE__ */ a(
|
|
832
832
|
"span",
|
|
@@ -836,7 +836,7 @@ const Ps = I(
|
|
|
836
836
|
children: s
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
|
-
|
|
839
|
+
o ? /* @__PURE__ */ f(K, { children: [
|
|
840
840
|
/* @__PURE__ */ a("span", { className: "ds:truncate", children: e }),
|
|
841
841
|
r ? /* @__PURE__ */ a("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
|
|
842
842
|
] }) : null
|
|
@@ -859,10 +859,10 @@ const Fs = [
|
|
|
859
859
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
860
860
|
"ds:motion-reduce:transition-none"
|
|
861
861
|
].join(" "), V = b(
|
|
862
|
-
({ isPinned: s, onPinChange: e, label: r, className: d, onClick:
|
|
863
|
-
const { t:
|
|
862
|
+
({ isPinned: s, onPinChange: e, label: r, className: d, onClick: n, ...i }, u) => {
|
|
863
|
+
const { t: o } = A(), { mode: m } = y();
|
|
864
864
|
if (m === "icon") return null;
|
|
865
|
-
const l = s ?
|
|
865
|
+
const l = s ? o("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : o("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
866
866
|
return /* @__PURE__ */ a(
|
|
867
867
|
"button",
|
|
868
868
|
{
|
|
@@ -872,9 +872,9 @@ const Fs = [
|
|
|
872
872
|
"aria-pressed": s,
|
|
873
873
|
className: [Fs, d].filter(Boolean).join(" "),
|
|
874
874
|
onClick: (p) => {
|
|
875
|
-
p.preventDefault(), p.stopPropagation(), e == null || e(!s),
|
|
875
|
+
p.preventDefault(), p.stopPropagation(), e == null || e(!s), n == null || n(p);
|
|
876
876
|
},
|
|
877
|
-
...
|
|
877
|
+
...i,
|
|
878
878
|
children: /* @__PURE__ */ a(
|
|
879
879
|
bs,
|
|
880
880
|
{
|
|
@@ -889,8 +889,8 @@ const Fs = [
|
|
|
889
889
|
);
|
|
890
890
|
V.displayName = "SidebarPinButton";
|
|
891
891
|
const Z = W(null), _s = () => J(Z), Es = b(
|
|
892
|
-
({ heading: s, emptyMessage: e, onReorder: r, className: d, children:
|
|
893
|
-
const { t:
|
|
892
|
+
({ heading: s, emptyMessage: e, onReorder: r, className: d, children: n, ...i }, u) => {
|
|
893
|
+
const { t: o } = A(), m = s ?? o("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], p = l.length, x = p > 0, [w, g] = D(null), [t, N] = D(""), h = q(!1), v = G((j) => {
|
|
894
894
|
h.current = !h.current, N(h.current ? j : `${j}`);
|
|
895
895
|
}, []), z = U(
|
|
896
896
|
() => ({ onReorder: r, count: p, dragSource: w, setDragSource: g, announce: v }),
|
|
@@ -902,7 +902,7 @@ const Z = W(null), _s = () => J(Z), Es = b(
|
|
|
902
902
|
ref: u,
|
|
903
903
|
label: m,
|
|
904
904
|
className: d,
|
|
905
|
-
...
|
|
905
|
+
...i,
|
|
906
906
|
children: [
|
|
907
907
|
x ? l : /* @__PURE__ */ a("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: e }),
|
|
908
908
|
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: t })
|
|
@@ -951,20 +951,20 @@ const Ls = I(
|
|
|
951
951
|
isActive: e = !1,
|
|
952
952
|
asChild: r = !1,
|
|
953
953
|
reorderLabel: d,
|
|
954
|
-
isPinned:
|
|
955
|
-
onPinChange:
|
|
954
|
+
isPinned: n = !1,
|
|
955
|
+
onPinChange: i,
|
|
956
956
|
pinLabel: u,
|
|
957
|
-
"aria-label":
|
|
957
|
+
"aria-label": o,
|
|
958
958
|
className: m,
|
|
959
959
|
children: l,
|
|
960
960
|
...p
|
|
961
961
|
}, x) => {
|
|
962
|
-
const { t: w } = A(), { mode: g } = y(), t = _s(), [N, h] = D(!1), v = !!(t != null && t.onReorder) && g !== "icon", z = d ??
|
|
962
|
+
const { t: w } = A(), { mode: g } = y(), t = _s(), [N, h] = D(!1), v = !!(t != null && t.onReorder) && g !== "icon", z = d ?? o ?? "", j = ds(), k = (c, T) => {
|
|
963
963
|
if (!(t != null && t.onReorder)) return;
|
|
964
964
|
const H = Math.max(0, Math.min(t.count - 1, T));
|
|
965
965
|
H !== c && (t.onReorder(c, H), t.announce(
|
|
966
966
|
w(
|
|
967
|
-
"
|
|
967
|
+
"navigation.sidebar.reorderAnnounce",
|
|
968
968
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
969
969
|
{ label: z, to: H + 1, total: t.count }
|
|
970
970
|
)
|
|
@@ -1003,7 +1003,7 @@ const Ls = I(
|
|
|
1003
1003
|
ref: x,
|
|
1004
1004
|
isActive: e,
|
|
1005
1005
|
asChild: r,
|
|
1006
|
-
"aria-label":
|
|
1006
|
+
"aria-label": o,
|
|
1007
1007
|
"aria-describedby": v ? j : void 0,
|
|
1008
1008
|
draggable: v ? !1 : void 0,
|
|
1009
1009
|
className: [v ? "ds:flex-1 ds:min-w-0" : "", m ?? ""].filter(Boolean).join(" "),
|
|
@@ -1017,7 +1017,7 @@ const Ls = I(
|
|
|
1017
1017
|
type: "button",
|
|
1018
1018
|
id: j,
|
|
1019
1019
|
"aria-label": w(
|
|
1020
|
-
"
|
|
1020
|
+
"navigation.sidebar.reorderHandle",
|
|
1021
1021
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
1022
1022
|
{ label: z }
|
|
1023
1023
|
),
|
|
@@ -1026,12 +1026,12 @@ const Ls = I(
|
|
|
1026
1026
|
children: /* @__PURE__ */ a(us, { "aria-hidden": "true", className: "ds:size-4" })
|
|
1027
1027
|
}
|
|
1028
1028
|
) : null,
|
|
1029
|
-
|
|
1029
|
+
i && g !== "icon" ? /* @__PURE__ */ a(
|
|
1030
1030
|
V,
|
|
1031
1031
|
{
|
|
1032
|
-
isPinned:
|
|
1033
|
-
label: u ??
|
|
1034
|
-
onPinChange:
|
|
1032
|
+
isPinned: n,
|
|
1033
|
+
label: u ?? o ?? "",
|
|
1034
|
+
onPinChange: i
|
|
1035
1035
|
}
|
|
1036
1036
|
) : null
|
|
1037
1037
|
]
|
|
@@ -1053,16 +1053,16 @@ const Os = I(
|
|
|
1053
1053
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1054
1054
|
"ds:no-underline"
|
|
1055
1055
|
].join(" ")
|
|
1056
|
-
), $s = b(({ avatar: s, name: e, subtitle: r, subtitleLabel: d, className:
|
|
1057
|
-
const { mode:
|
|
1056
|
+
), $s = b(({ avatar: s, name: e, subtitle: r, subtitleLabel: d, className: n, ...i }, u) => {
|
|
1057
|
+
const { mode: o } = y(), m = o !== "icon", l = typeof r == "string" ? r : d;
|
|
1058
1058
|
return /* @__PURE__ */ f(
|
|
1059
1059
|
"button",
|
|
1060
1060
|
{
|
|
1061
1061
|
ref: u,
|
|
1062
1062
|
type: "button",
|
|
1063
1063
|
"aria-label": l ? `${e}, ${l}` : e,
|
|
1064
|
-
className: [Os(),
|
|
1065
|
-
...
|
|
1064
|
+
className: [Os(), n].filter(Boolean).join(" "),
|
|
1065
|
+
...i,
|
|
1066
1066
|
children: [
|
|
1067
1067
|
/* @__PURE__ */ a(
|
|
1068
1068
|
"span",
|
|
@@ -1091,18 +1091,18 @@ const Ks = [
|
|
|
1091
1091
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1092
1092
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1093
1093
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1094
|
-
].join(" "), Gs = b(({ className: s, "aria-label": e, onClick: r, ...d },
|
|
1095
|
-
const { t:
|
|
1094
|
+
].join(" "), Gs = b(({ className: s, "aria-label": e, onClick: r, ...d }, n) => {
|
|
1095
|
+
const { t: i } = A(), { mode: u, transitionTo: o } = y();
|
|
1096
1096
|
if (u === "overlay") return null;
|
|
1097
|
-
const m = u === "expanded", l = e ?? (m ?
|
|
1097
|
+
const m = u === "expanded", l = e ?? (m ? i("navigation.sidebar.collapse", "Collapse sidebar") : i("navigation.sidebar.expand", "Expand sidebar")), p = /* @__PURE__ */ a(
|
|
1098
1098
|
"button",
|
|
1099
1099
|
{
|
|
1100
|
-
ref:
|
|
1100
|
+
ref: n,
|
|
1101
1101
|
type: "button",
|
|
1102
1102
|
"aria-label": l,
|
|
1103
1103
|
"aria-expanded": m,
|
|
1104
1104
|
onClick: (x) => {
|
|
1105
|
-
|
|
1105
|
+
o == null || o(m ? "icon" : "expanded"), r == null || r(x);
|
|
1106
1106
|
},
|
|
1107
1107
|
className: [Ks, s].filter(Boolean).join(" "),
|
|
1108
1108
|
...d,
|
|
@@ -1166,4 +1166,4 @@ export {
|
|
|
1166
1166
|
hs as s,
|
|
1167
1167
|
ae as u
|
|
1168
1168
|
};
|
|
1169
|
-
//# sourceMappingURL=sidebar-
|
|
1169
|
+
//# sourceMappingURL=sidebar-CoLHtVrP.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as L, useRef as c, useEffect as b } from "react";
|
|
|
3
3
|
import { useTranslation as y } from "react-i18next";
|
|
4
4
|
import { B as E } from "./button-DD_0Xdmr.js";
|
|
5
5
|
import { L as I } from "./logo-_Z-jLq80.js";
|
|
6
|
-
import { S as g } from "./spinner-
|
|
6
|
+
import { S as g } from "./spinner-DirtWZNG.js";
|
|
7
7
|
const A = /* @__PURE__ */ new Set([
|
|
8
8
|
"primary",
|
|
9
9
|
"secondary",
|
|
@@ -19,7 +19,7 @@ const A = /* @__PURE__ */ new Set([
|
|
|
19
19
|
type: m = "button",
|
|
20
20
|
...d
|
|
21
21
|
}, p) => {
|
|
22
|
-
const { t: h } = y(), l = f ?? h("
|
|
22
|
+
const { t: h } = y(), l = f ?? h("auth.continueWithAlfadocs", "Continue with AlfaDocs"), w = A.has(r) ? "inherit" : "auto", v = n ?? "md", a = c(t), o = c(s);
|
|
23
23
|
return a.current = t, o.current = s, b(() => {
|
|
24
24
|
const i = (S) => {
|
|
25
25
|
S.persisted && a.current && o.current && o.current();
|
|
@@ -46,4 +46,4 @@ B.displayName = "SignInWithAlfadocsButton";
|
|
|
46
46
|
export {
|
|
47
47
|
B as S
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=sign-in-with-alfadocs-button-
|
|
49
|
+
//# sourceMappingURL=sign-in-with-alfadocs-button-4zZC-I6y.js.map
|
|
@@ -57,7 +57,7 @@ const u = c(
|
|
|
57
57
|
"data-component": "skip-link",
|
|
58
58
|
className: [u({ intent: i }), o].filter(Boolean).join(" "),
|
|
59
59
|
...a,
|
|
60
|
-
children: r ?? e("
|
|
60
|
+
children: r ?? e("navigation.skipLink.toContent")
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
}
|
|
@@ -66,4 +66,4 @@ l.displayName = "SkipLink";
|
|
|
66
66
|
export {
|
|
67
67
|
l as S
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=skip-link-
|
|
69
|
+
//# sourceMappingURL=skip-link-BaSMtPwB.js.map
|
|
@@ -202,7 +202,7 @@ const ya = {
|
|
|
202
202
|
}, I = !!(i.disabled || W), A = i.describedBy || void 0, X = N ?? i.id, Y = pa(
|
|
203
203
|
(a) => new Intl.NumberFormat(T.language).format(a),
|
|
204
204
|
[T.language]
|
|
205
|
-
), B = E ?? Y, Z = F("
|
|
205
|
+
), B = E ?? Y, Z = F("inputs.slider.minLabel", "Minimum"), aa = F("inputs.slider.maxLabel", "Maximum"), ta = j["aria-label"], ea = (a) => p != null && p[a] ? p[a] : u.length === 2 ? a === 0 ? Z : aa : ta, sa = (a) => {
|
|
206
206
|
if (S == null || S(a), a.defaultPrevented || I || a.key !== "PageUp" && a.key !== "PageDown") return;
|
|
207
207
|
a.preventDefault();
|
|
208
208
|
const n = Array.from(
|
|
@@ -276,7 +276,7 @@ const ya = {
|
|
|
276
276
|
}
|
|
277
277
|
) : null,
|
|
278
278
|
u.map((a, n) => {
|
|
279
|
-
const o = ea(n), v = !o && G ? `${i.id}-label` : void 0, h = !o && !v ? F("
|
|
279
|
+
const o = ea(n), v = !o && G ? `${i.id}-label` : void 0, h = !o && !v ? F("inputs.slider.value", "Value") : void 0;
|
|
280
280
|
return /* @__PURE__ */ b(
|
|
281
281
|
g.Thumb,
|
|
282
282
|
{
|
|
@@ -323,4 +323,4 @@ Aa.displayName = "Slider";
|
|
|
323
323
|
export {
|
|
324
324
|
Aa as S
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=slider-
|
|
326
|
+
//# sourceMappingURL=slider-CkR6CLun.js.map
|
|
@@ -9,13 +9,13 @@ import { u as Q } from "./registry-C9nwlNyL.js";
|
|
|
9
9
|
function X(n) {
|
|
10
10
|
if (n.length < 2)
|
|
11
11
|
return { slope: 0, direction: "steady" };
|
|
12
|
-
const t = n.length,
|
|
13
|
-
let
|
|
12
|
+
const t = n.length, a = (t - 1) / 2, c = n.reduce((s, o) => s + o, 0) / t;
|
|
13
|
+
let i = 0, l = 0;
|
|
14
14
|
for (let s = 0; s < t; s++) {
|
|
15
|
-
const o = s -
|
|
16
|
-
|
|
15
|
+
const o = s - a;
|
|
16
|
+
i += o * (n[s] - c), l += o * o;
|
|
17
17
|
}
|
|
18
|
-
const d = l === 0 ? 0 :
|
|
18
|
+
const d = l === 0 ? 0 : i / l, b = 0.01 * (Math.max(...n) - Math.min(...n) || 1), k = Math.abs(d) < b ? "steady" : d > 0 ? "increasing" : "decreasing";
|
|
19
19
|
return { slope: d, direction: k };
|
|
20
20
|
}
|
|
21
21
|
const Y = {
|
|
@@ -70,9 +70,9 @@ const ne = j(
|
|
|
70
70
|
({
|
|
71
71
|
id: n,
|
|
72
72
|
data: t,
|
|
73
|
-
variant:
|
|
73
|
+
variant: a = "line",
|
|
74
74
|
size: c = "md",
|
|
75
|
-
label:
|
|
75
|
+
label: i,
|
|
76
76
|
color: l,
|
|
77
77
|
showEndpoint: d = !1,
|
|
78
78
|
showTooltip: M = !1,
|
|
@@ -87,15 +87,15 @@ const ne = j(
|
|
|
87
87
|
[T]
|
|
88
88
|
), p = V(null), [O, E] = H(0), { direction: y } = X(t), N = R(() => {
|
|
89
89
|
if (t.length === 0)
|
|
90
|
-
return u("
|
|
90
|
+
return u("sparkline.noData", "No data");
|
|
91
91
|
const e = (g) => new Intl.NumberFormat(C.language).format(g), r = u(`ui.sparkline.direction.${y}`), f = {
|
|
92
92
|
min: e(Math.min(...t)),
|
|
93
93
|
max: e(Math.max(...t)),
|
|
94
94
|
current: e(t[t.length - 1]),
|
|
95
95
|
direction: r
|
|
96
96
|
};
|
|
97
|
-
return
|
|
98
|
-
}, [t,
|
|
97
|
+
return i ? u("sparkline.summary", { label: i, ...f }) : u("sparkline.summaryNoLabel", f);
|
|
98
|
+
}, [t, i, y, C.language, u]), [h, W] = H(
|
|
99
99
|
() => {
|
|
100
100
|
try {
|
|
101
101
|
return D();
|
|
@@ -165,7 +165,7 @@ const ne = j(
|
|
|
165
165
|
chart: {
|
|
166
166
|
...h.chart,
|
|
167
167
|
id: m,
|
|
168
|
-
type:
|
|
168
|
+
type: a,
|
|
169
169
|
sparkline: { enabled: !0 },
|
|
170
170
|
toolbar: { show: !1 },
|
|
171
171
|
animations: {
|
|
@@ -178,10 +178,10 @@ const ne = j(
|
|
|
178
178
|
colors: [I],
|
|
179
179
|
stroke: {
|
|
180
180
|
curve: "smooth",
|
|
181
|
-
width:
|
|
181
|
+
width: a === "bar" ? 0 : 2
|
|
182
182
|
},
|
|
183
183
|
fill: {
|
|
184
|
-
opacity:
|
|
184
|
+
opacity: a === "area" ? 0.15 : 1
|
|
185
185
|
},
|
|
186
186
|
xaxis: {
|
|
187
187
|
crosshairs: { show: !1 }
|
|
@@ -222,7 +222,7 @@ const ne = j(
|
|
|
222
222
|
/* @__PURE__ */ w(
|
|
223
223
|
J,
|
|
224
224
|
{
|
|
225
|
-
type:
|
|
225
|
+
type: a,
|
|
226
226
|
series: [{ data: t }],
|
|
227
227
|
options: B,
|
|
228
228
|
width: F,
|
|
@@ -249,4 +249,4 @@ export {
|
|
|
249
249
|
Y as s,
|
|
250
250
|
X as u
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=sparkline-
|
|
252
|
+
//# sourceMappingURL=sparkline-D4Np8ikf.js.map
|
|
@@ -125,7 +125,7 @@ const f = i("ds:inline-block ds:shrink-0 ds:text-current", {
|
|
|
125
125
|
className: d,
|
|
126
126
|
...p
|
|
127
127
|
}, l) => {
|
|
128
|
-
const { t: m } = h(), c = o ?? m("
|
|
128
|
+
const { t: m } = h(), c = o ?? m("common.loading", "Loading…");
|
|
129
129
|
return /* @__PURE__ */ e(
|
|
130
130
|
"span",
|
|
131
131
|
{
|
|
@@ -213,4 +213,4 @@ v.displayName = "Spinner";
|
|
|
213
213
|
export {
|
|
214
214
|
v as S
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=spinner-
|
|
216
|
+
//# sourceMappingURL=spinner-DirtWZNG.js.map
|
|
@@ -97,9 +97,9 @@ const y = p("ds:flex ds:flex-col", {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
), T = { up: "↑", down: "↓", flat: "→" }, F = {
|
|
100
|
-
up: "
|
|
101
|
-
down: "
|
|
102
|
-
flat: "
|
|
100
|
+
up: "stat.trend.up",
|
|
101
|
+
down: "stat.trend.down",
|
|
102
|
+
flat: "stat.trend.flat"
|
|
103
103
|
};
|
|
104
104
|
function R({
|
|
105
105
|
trend: s,
|
|
@@ -225,4 +225,4 @@ D.displayName = "Stat";
|
|
|
225
225
|
export {
|
|
226
226
|
D as S
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=stat-
|
|
228
|
+
//# sourceMappingURL=stat-CDQ_a0vk.js.map
|