@alfadocs/ui-kit 0.8.1 → 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 +2 -1
|
@@ -3,11 +3,11 @@ import { forwardRef as de, useState as F, useCallback as H, useLayoutEffect as c
|
|
|
3
3
|
import * as x from "@radix-ui/react-popover";
|
|
4
4
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as G } from "react-i18next";
|
|
6
|
-
import { I as
|
|
6
|
+
import { I as pe } from "./icon-button-C4CGcYuz.js";
|
|
7
7
|
import { B as W } from "./button-DD_0Xdmr.js";
|
|
8
8
|
import { S as Y } from "./separator-CYU_bGFn.js";
|
|
9
9
|
import { S as N } from "./skeleton-CZbwyJAA.js";
|
|
10
|
-
import { N as
|
|
10
|
+
import { N as ue } from "./notification-card-CRIE2Cuk.js";
|
|
11
11
|
import { u as me } from "./registry-C9nwlNyL.js";
|
|
12
12
|
import { c as ge } from "./createLucideIcon-CrFbzy84.js";
|
|
13
13
|
/**
|
|
@@ -215,9 +215,9 @@ function Te() {
|
|
|
215
215
|
children: /* @__PURE__ */ t(J, {})
|
|
216
216
|
}
|
|
217
217
|
),
|
|
218
|
-
/* @__PURE__ */ t("p", { className: "type-title-item ds:text-[color:var(--foreground)]", children: i("
|
|
218
|
+
/* @__PURE__ */ t("p", { className: "type-title-item ds:text-[color:var(--foreground)]", children: i("notificationTray.noNotifications", "No notifications") }),
|
|
219
219
|
/* @__PURE__ */ t("p", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: i(
|
|
220
|
-
"
|
|
220
|
+
"notificationTray.noNotificationsDescription",
|
|
221
221
|
"You're all caught up."
|
|
222
222
|
) })
|
|
223
223
|
]
|
|
@@ -231,8 +231,8 @@ const we = de(
|
|
|
231
231
|
unseenCount: b,
|
|
232
232
|
open: S,
|
|
233
233
|
onOpenChange: g,
|
|
234
|
-
onItemClick:
|
|
235
|
-
onDismiss:
|
|
234
|
+
onItemClick: p,
|
|
235
|
+
onDismiss: u,
|
|
236
236
|
onMarkRead: v,
|
|
237
237
|
onMarkAllRead: I,
|
|
238
238
|
loading: j = !1,
|
|
@@ -287,7 +287,7 @@ const we = de(
|
|
|
287
287
|
if (n && e && n !== e && k.current) {
|
|
288
288
|
const d = a[0];
|
|
289
289
|
d && !d.read && (k.current.textContent = r(
|
|
290
|
-
"
|
|
290
|
+
"notificationTray.newNotification",
|
|
291
291
|
{
|
|
292
292
|
title: d.title,
|
|
293
293
|
defaultValue: "New notification: {{title}}"
|
|
@@ -296,15 +296,15 @@ const we = de(
|
|
|
296
296
|
}
|
|
297
297
|
A.current = e;
|
|
298
298
|
}, [a, r]);
|
|
299
|
-
const h = b ?? 0, ae = h > 0 ? r("
|
|
299
|
+
const h = b ?? 0, ae = h > 0 ? r("notificationTray.triggerLabel", {
|
|
300
300
|
count: h,
|
|
301
301
|
defaultValue: "Notifications, {{count}} unread"
|
|
302
302
|
}) : r(
|
|
303
|
-
"
|
|
303
|
+
"notificationTray.triggerLabelNone",
|
|
304
304
|
"Notifications, none unread"
|
|
305
305
|
), ne = be(
|
|
306
306
|
h,
|
|
307
|
-
r("
|
|
307
|
+
r("notificationTray.badgeCountOverflow", "99+")
|
|
308
308
|
), se = xe({ size: T }), l = f(a);
|
|
309
309
|
l.current = a;
|
|
310
310
|
const B = f(b);
|
|
@@ -320,7 +320,7 @@ const we = de(
|
|
|
320
320
|
getUnreadCount: () => B.current ?? l.current.filter((e) => !e.read).length,
|
|
321
321
|
selectItem: (e) => {
|
|
322
322
|
const n = l.current.find((s) => s.id === e);
|
|
323
|
-
n && (
|
|
323
|
+
n && (p == null || p(n));
|
|
324
324
|
},
|
|
325
325
|
markRead: (e) => {
|
|
326
326
|
const n = l.current.find((s) => s.id === e);
|
|
@@ -328,10 +328,10 @@ const we = de(
|
|
|
328
328
|
},
|
|
329
329
|
dismiss: (e) => {
|
|
330
330
|
const n = l.current.find((s) => s.id === e);
|
|
331
|
-
n && (
|
|
331
|
+
n && (u == null || u(n));
|
|
332
332
|
}
|
|
333
333
|
}),
|
|
334
|
-
[y,
|
|
334
|
+
[y, p, v, u]
|
|
335
335
|
), L = f(null);
|
|
336
336
|
return fe(ee, () => L.current, []), me(ye, oe, i), /* @__PURE__ */ t(
|
|
337
337
|
"div",
|
|
@@ -343,7 +343,7 @@ const we = de(
|
|
|
343
343
|
...D,
|
|
344
344
|
children: /* @__PURE__ */ c(x.Root, { open: z, onOpenChange: y, children: [
|
|
345
345
|
/* @__PURE__ */ t(x.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
346
|
-
|
|
346
|
+
pe,
|
|
347
347
|
{
|
|
348
348
|
icon: /* @__PURE__ */ t(J, {}),
|
|
349
349
|
intent: "outline",
|
|
@@ -374,7 +374,7 @@ const we = de(
|
|
|
374
374
|
x.Content,
|
|
375
375
|
{
|
|
376
376
|
role: "dialog",
|
|
377
|
-
"aria-label": r("
|
|
377
|
+
"aria-label": r("notificationTray.panelTitle", "Notifications"),
|
|
378
378
|
side: Z,
|
|
379
379
|
align: X,
|
|
380
380
|
sideOffset: 8,
|
|
@@ -382,7 +382,7 @@ const we = de(
|
|
|
382
382
|
className: se,
|
|
383
383
|
children: [
|
|
384
384
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: [
|
|
385
|
-
/* @__PURE__ */ t("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: r("
|
|
385
|
+
/* @__PURE__ */ t("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: r("notificationTray.panelTitle", "Notifications") }),
|
|
386
386
|
I && a.some((e) => !e.read) ? /* @__PURE__ */ t(
|
|
387
387
|
W,
|
|
388
388
|
{
|
|
@@ -390,7 +390,7 @@ const we = de(
|
|
|
390
390
|
size: "sm",
|
|
391
391
|
onClick: I,
|
|
392
392
|
className: "ds:text-[length:var(--font-size-xs)]",
|
|
393
|
-
children: r("
|
|
393
|
+
children: r("notificationTray.markAllRead", "Mark all as read")
|
|
394
394
|
}
|
|
395
395
|
) : null
|
|
396
396
|
] }),
|
|
@@ -406,13 +406,13 @@ const we = de(
|
|
|
406
406
|
/* @__PURE__ */ t(R, {}),
|
|
407
407
|
/* @__PURE__ */ t(R, {})
|
|
408
408
|
] }) : m.length === 0 ? /* @__PURE__ */ t(Te, {}) : m.map(({ item: e, leaving: n }) => /* @__PURE__ */ t(
|
|
409
|
-
|
|
409
|
+
ue,
|
|
410
410
|
{
|
|
411
411
|
item: e,
|
|
412
412
|
variant: "compact",
|
|
413
413
|
leaving: n,
|
|
414
|
-
onActivate:
|
|
415
|
-
onDismiss:
|
|
414
|
+
onActivate: p,
|
|
415
|
+
onDismiss: u,
|
|
416
416
|
"data-notification-id": e.id
|
|
417
417
|
},
|
|
418
418
|
e.id
|
|
@@ -445,4 +445,4 @@ export {
|
|
|
445
445
|
we as N,
|
|
446
446
|
ye as n
|
|
447
447
|
};
|
|
448
|
-
//# sourceMappingURL=notification-tray-
|
|
448
|
+
//# sourceMappingURL=notification-tray-CfXNYrxv.js.map
|
|
@@ -276,7 +276,7 @@ const Pe = ge(
|
|
|
276
276
|
{
|
|
277
277
|
type: "button",
|
|
278
278
|
tabIndex: -1,
|
|
279
|
-
"aria-label": U("
|
|
279
|
+
"aria-label": U("inputs.number.decrement", "Decrement"),
|
|
280
280
|
onClick: de,
|
|
281
281
|
onMouseDown: _,
|
|
282
282
|
disabled: ce,
|
|
@@ -316,7 +316,7 @@ const Pe = ge(
|
|
|
316
316
|
{
|
|
317
317
|
type: "button",
|
|
318
318
|
tabIndex: -1,
|
|
319
|
-
"aria-label": U("
|
|
319
|
+
"aria-label": U("inputs.number.increment", "Increment"),
|
|
320
320
|
onClick: ue,
|
|
321
321
|
onMouseDown: _,
|
|
322
322
|
disabled: fe,
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
Pe as N,
|
|
335
335
|
Ve as u
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=number-input-
|
|
337
|
+
//# sourceMappingURL=number-input-mpSLk-ld.js.map
|
|
@@ -235,7 +235,7 @@ const pe = te(
|
|
|
235
235
|
value: r,
|
|
236
236
|
disabled: k,
|
|
237
237
|
tabIndex: s ? 0 : -1,
|
|
238
|
-
"aria-label": H("
|
|
238
|
+
"aria-label": H("inputs.otp.digitLabel", {
|
|
239
239
|
current: t + 1,
|
|
240
240
|
total: e
|
|
241
241
|
}),
|
|
@@ -257,4 +257,4 @@ pe.displayName = "OTPInput";
|
|
|
257
257
|
export {
|
|
258
258
|
pe as O
|
|
259
259
|
};
|
|
260
|
-
//# sourceMappingURL=otp-input-
|
|
260
|
+
//# sourceMappingURL=otp-input-CI-Zv5q6.js.map
|
|
@@ -170,7 +170,7 @@ const me = g(
|
|
|
170
170
|
"nav",
|
|
171
171
|
{
|
|
172
172
|
ref: O,
|
|
173
|
-
"aria-label": R("
|
|
173
|
+
"aria-label": R("navigation.pagination.label"),
|
|
174
174
|
id: P,
|
|
175
175
|
"data-component": "pagination",
|
|
176
176
|
"data-component-id": P,
|
|
@@ -206,7 +206,7 @@ const me = g(
|
|
|
206
206
|
{
|
|
207
207
|
size: n,
|
|
208
208
|
isActive: d === c,
|
|
209
|
-
"aria-label": R("
|
|
209
|
+
"aria-label": R("navigation.pagination.pageN", { n: d }),
|
|
210
210
|
onClick: () => p(d),
|
|
211
211
|
children: E(d)
|
|
212
212
|
}
|
|
@@ -287,7 +287,7 @@ const $ = g(
|
|
|
287
287
|
$.displayName = "PaginationLink";
|
|
288
288
|
const k = "ds:size-4 ds:rtl:-scale-x-100", U = g(
|
|
289
289
|
({ size: e = "md", disabled: a, onClick: t }, s) => {
|
|
290
|
-
const { t: o } = x(), r = o("
|
|
290
|
+
const { t: o } = x(), r = o("navigation.pagination.previous");
|
|
291
291
|
return /* @__PURE__ */ i(
|
|
292
292
|
"button",
|
|
293
293
|
{
|
|
@@ -306,7 +306,7 @@ const k = "ds:size-4 ds:rtl:-scale-x-100", U = g(
|
|
|
306
306
|
U.displayName = "PaginationPrevious";
|
|
307
307
|
const q = g(
|
|
308
308
|
({ size: e = "md", disabled: a, onClick: t }, s) => {
|
|
309
|
-
const { t: o } = x(), r = o("
|
|
309
|
+
const { t: o } = x(), r = o("navigation.pagination.next");
|
|
310
310
|
return /* @__PURE__ */ i(
|
|
311
311
|
"button",
|
|
312
312
|
{
|
|
@@ -325,7 +325,7 @@ const q = g(
|
|
|
325
325
|
q.displayName = "PaginationNext";
|
|
326
326
|
const I = g(
|
|
327
327
|
({ type: e, size: a = "md", disabled: t, onClick: s }, o) => {
|
|
328
|
-
const { t: r } = x(), n = r(e === "first" ? "
|
|
328
|
+
const { t: r } = x(), n = r(e === "first" ? "navigation.pagination.first" : "navigation.pagination.last"), u = e === "first" ? ne : re;
|
|
329
329
|
return /* @__PURE__ */ i(
|
|
330
330
|
"button",
|
|
331
331
|
{
|
|
@@ -398,7 +398,7 @@ function ve({
|
|
|
398
398
|
{
|
|
399
399
|
id: r,
|
|
400
400
|
className: "type-label ds:text-[var(--muted-foreground)]",
|
|
401
|
-
children: o("
|
|
401
|
+
children: o("navigation.pagination.rowsPerPage")
|
|
402
402
|
}
|
|
403
403
|
),
|
|
404
404
|
/* @__PURE__ */ f(
|
|
@@ -459,4 +459,4 @@ export {
|
|
|
459
459
|
ce as g,
|
|
460
460
|
oe as p
|
|
461
461
|
};
|
|
462
|
-
//# sourceMappingURL=pagination-
|
|
462
|
+
//# sourceMappingURL=pagination-OQBlnb1H.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k, useState as w } from "react";
|
|
3
3
|
import { useTranslation as c } from "react-i18next";
|
|
4
|
-
import { A as y } from "./app-frame-
|
|
4
|
+
import { A as y } from "./app-frame-BYx1gcV7.js";
|
|
5
5
|
import { I } from "./icon-button-C4CGcYuz.js";
|
|
6
6
|
import { D as n } from "./dropdown-menu-dyV7gHh_.js";
|
|
7
7
|
import { H as L, g as A, f as H, e as x, a as C, c as M, d as B } from "./header-D0ULgQl3.js";
|
|
8
8
|
import { L as N } from "./logo-_Z-jLq80.js";
|
|
9
|
-
import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-
|
|
9
|
+
import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-CoLHtVrP.js";
|
|
10
10
|
import { T as z } from "./theme-root-CSKD5ZRm.js";
|
|
11
11
|
import { a as R } from "./tooltip-DHik5yRI.js";
|
|
12
12
|
import { u as D } from "./use-theme-B1cwAXJR.js";
|
|
@@ -185,4 +185,4 @@ V.displayName = "PatientShell";
|
|
|
185
185
|
export {
|
|
186
186
|
V as P
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=patient-shell-
|
|
188
|
+
//# sourceMappingURL=patient-shell-BS2V6V1b.js.map
|
|
@@ -2,8 +2,8 @@ import { jsx as t, jsxs as m, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo as j, useImperativeHandle as ae, useId as oe, useCallback as ie } from "react";
|
|
3
3
|
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { S as J } from "./spinner-
|
|
6
|
-
import { A as W } from "./alert-
|
|
5
|
+
import { S as J } from "./spinner-DirtWZNG.js";
|
|
6
|
+
import { A as W } from "./alert-pgdXrEO5.js";
|
|
7
7
|
import { loadStripe as de } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
|
|
9
9
|
import { u as fe } from "./registry-C9nwlNyL.js";
|
|
@@ -587,4 +587,4 @@ export {
|
|
|
587
587
|
ye as p,
|
|
588
588
|
ee as s
|
|
589
589
|
};
|
|
590
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-CI77oIx1.js.map
|
|
@@ -5,8 +5,8 @@ import { c as W } from "./index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as le } from "react-i18next";
|
|
6
6
|
import * as X from "@radix-ui/react-popover";
|
|
7
7
|
import Se from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
|
8
|
-
import { S as Ee } from "./spinner-
|
|
9
|
-
import { A as ye } from "./alert-
|
|
8
|
+
import { S as Ee } from "./spinner-DirtWZNG.js";
|
|
9
|
+
import { A as ye } from "./alert-pgdXrEO5.js";
|
|
10
10
|
import { u as _e } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { X as Le } from "./x-CCcI3eJp.js";
|
|
12
12
|
import { C as Ze } from "./chevron-left-CX1jqD2M.js";
|
|
@@ -892,4 +892,4 @@ export {
|
|
|
892
892
|
tt as P,
|
|
893
893
|
Je as p
|
|
894
894
|
};
|
|
895
|
-
//# sourceMappingURL=pdf-viewer-
|
|
895
|
+
//# sourceMappingURL=pdf-viewer-CNETPubN.js.map
|
|
@@ -286,7 +286,7 @@ const tt = Se(
|
|
|
286
286
|
});
|
|
287
287
|
},
|
|
288
288
|
[o]
|
|
289
|
-
), ge = E ?? (w ? C.id : void 0), Y = (w ? C.disabled : !1) || !!ie, be = (w ? C.required : !1) || !!ue, Z = w ? C.invalid : !1, ye = Z ? "error" : ae, ve = w && C.describedBy ? C.describedBy : void 0, Ce = de ?? v("
|
|
289
|
+
), ge = E ?? (w ? C.id : void 0), Y = (w ? C.disabled : !1) || !!ie, be = (w ? C.required : !1) || !!ue, Z = w ? C.invalid : !1, ye = Z ? "error" : ae, ve = w && C.describedBy ? C.describedBy : void 0, Ce = de ?? v("inputs.phone.placeholder", "Phone number"), xe = (e) => {
|
|
290
290
|
if (_) return;
|
|
291
291
|
const t = e.target, s = t.value, c = t.selectionStart ?? s.length, x = Je(s, c), K = new M(l).input(s);
|
|
292
292
|
R.current = Qe(K, x), p(K), h(K, l);
|
|
@@ -346,7 +346,7 @@ const tt = Se(
|
|
|
346
346
|
), S = m(
|
|
347
347
|
() => g.find((e) => e.code === l),
|
|
348
348
|
[g, l]
|
|
349
|
-
), Q = S ? S.dialCode : "", Ie = S ? S.name : l, X = v("
|
|
349
|
+
), Q = S ? S.dialCode : "", Ie = S ? S.name : l, X = v("inputs.phone.countryPickerLabel", "Country"), Re = `${X}: ${Ie}, +${Q}`, ke = se(
|
|
350
350
|
(e, t, s) => {
|
|
351
351
|
const c = q(e), x = q(t), te = s == null ? void 0 : s.map(q);
|
|
352
352
|
return Ee(
|
|
@@ -443,7 +443,7 @@ const tt = Se(
|
|
|
443
443
|
autoCorrect: "off",
|
|
444
444
|
spellCheck: !1,
|
|
445
445
|
placeholder: v(
|
|
446
|
-
"
|
|
446
|
+
"inputs.phone.searchCountry",
|
|
447
447
|
"Search countries…"
|
|
448
448
|
),
|
|
449
449
|
className: Oe
|
|
@@ -452,18 +452,18 @@ const tt = Se(
|
|
|
452
452
|
}
|
|
453
453
|
),
|
|
454
454
|
/* @__PURE__ */ f(b.List, { className: Ue, children: [
|
|
455
|
-
/* @__PURE__ */ i(b.Empty, { className: Ye, children: v("
|
|
455
|
+
/* @__PURE__ */ i(b.Empty, { className: Ye, children: v("inputs.phone.noCountryFound", "No country found") }),
|
|
456
456
|
N.length > 0 ? /* @__PURE__ */ i(
|
|
457
457
|
b.Group,
|
|
458
458
|
{
|
|
459
|
-
heading: /* @__PURE__ */ i("span", { className: oe, children: v("
|
|
459
|
+
heading: /* @__PURE__ */ i("span", { className: oe, children: v("inputs.phone.popularCountries", "Popular") }),
|
|
460
460
|
children: N.map(ee)
|
|
461
461
|
}
|
|
462
462
|
) : null,
|
|
463
463
|
/* @__PURE__ */ i(
|
|
464
464
|
b.Group,
|
|
465
465
|
{
|
|
466
|
-
heading: N.length > 0 ? /* @__PURE__ */ i("span", { className: oe, children: v("
|
|
466
|
+
heading: N.length > 0 ? /* @__PURE__ */ i("span", { className: oe, children: v("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
467
467
|
children: Ne.map(ee)
|
|
468
468
|
}
|
|
469
469
|
)
|
|
@@ -505,4 +505,4 @@ export {
|
|
|
505
505
|
He as c,
|
|
506
506
|
qe as p
|
|
507
507
|
};
|
|
508
|
-
//# sourceMappingURL=phone-input-
|
|
508
|
+
//# sourceMappingURL=phone-input-DtBVs5fz.js.map
|
|
@@ -235,7 +235,7 @@ const A = f(
|
|
|
235
235
|
icon: /* @__PURE__ */ s(U, {}),
|
|
236
236
|
intent: "ghost",
|
|
237
237
|
size: "sm",
|
|
238
|
-
"aria-label": r("
|
|
238
|
+
"aria-label": r("common.close", "Close")
|
|
239
239
|
}
|
|
240
240
|
) })
|
|
241
241
|
}
|
|
@@ -290,4 +290,4 @@ export {
|
|
|
290
290
|
ae as P,
|
|
291
291
|
Y as p
|
|
292
292
|
};
|
|
293
|
-
//# sourceMappingURL=popover
|
|
293
|
+
//# sourceMappingURL=popover--derJ_wq.js.map
|
|
@@ -54,7 +54,7 @@ const M = {
|
|
|
54
54
|
},
|
|
55
55
|
defaultVariants: { size: "md" }
|
|
56
56
|
}), Y = R(({ children: a, className: i, ...e }, t) => {
|
|
57
|
-
const r = W(), { t: u, i18n: m } = C(), f = r.isIndeterminate ? u("
|
|
57
|
+
const r = W(), { t: u, i18n: m } = C(), f = r.isIndeterminate ? u("common.loading", "Loading...") : u("common.progress_label", {
|
|
58
58
|
percent: new Intl.NumberFormat(m.language, {
|
|
59
59
|
style: "percent",
|
|
60
60
|
maximumFractionDigits: 0
|
|
@@ -73,7 +73,7 @@ const M = {
|
|
|
73
73
|
});
|
|
74
74
|
Y.displayName = "Progress.Label";
|
|
75
75
|
const Z = R(({ className: a, ...i }, e) => {
|
|
76
|
-
const t = W(), { t: r, i18n: u } = C(), m = t.isIndeterminate ? r("
|
|
76
|
+
const t = W(), { t: r, i18n: u } = C(), m = t.isIndeterminate ? r("common.loading", "Loading...") : new Intl.NumberFormat(u.language, {
|
|
77
77
|
style: "percent",
|
|
78
78
|
maximumFractionDigits: 0
|
|
79
79
|
}).format((t.value ?? 0) / t.max);
|
|
@@ -161,7 +161,7 @@ const $ = R(
|
|
|
161
161
|
[e, t, r, f]
|
|
162
162
|
);
|
|
163
163
|
be(ee, () => _, [_]), xe(ke, _, a);
|
|
164
|
-
const ne = s ? D("
|
|
164
|
+
const ne = s ? D("common.loading", "Loading...") : D("common.progress_label", {
|
|
165
165
|
percent: new Intl.NumberFormat(re.language, {
|
|
166
166
|
style: "percent",
|
|
167
167
|
maximumFractionDigits: 0
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
Ce as P,
|
|
296
296
|
ke as p
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=progress-
|
|
298
|
+
//# sourceMappingURL=progress-B-PSO5OS.js.map
|
|
@@ -82,10 +82,10 @@ const oe = q(function({
|
|
|
82
82
|
const { t: S, i18n: H } = Q(), _ = X(), { resolvedTheme: N } = Y(), w = u(null), a = u(null), c = u(null), [$, h] = E(""), v = B ?? _.id, A = k ? `${v}-error` : void 0, O = [_.describedBy, A].filter(Boolean).join(" ") || void 0, x = g ?? (N.startsWith("dark") ? "dark" : "light"), I = b ?? H.language, e = u(p), y = u(r), o = u(T);
|
|
83
83
|
e.current = p, y.current = r, o.current = T;
|
|
84
84
|
const W = S(
|
|
85
|
-
"
|
|
85
|
+
"inputs.recaptcha.expired",
|
|
86
86
|
"Verification expired — please retry."
|
|
87
87
|
), P = S(
|
|
88
|
-
"
|
|
88
|
+
"inputs.recaptcha.error",
|
|
89
89
|
"Verification failed — please retry."
|
|
90
90
|
);
|
|
91
91
|
G(() => {
|
|
@@ -189,4 +189,4 @@ export {
|
|
|
189
189
|
oe as R,
|
|
190
190
|
z as r
|
|
191
191
|
};
|
|
192
|
-
//# sourceMappingURL=recaptcha-widget-
|
|
192
|
+
//# sourceMappingURL=recaptcha-widget-Kp1XntuE.js.map
|
|
@@ -328,7 +328,7 @@ const fe = ee(
|
|
|
328
328
|
h.current !== null && (cancelAnimationFrame(h.current), h.current = null), x.current && (clearTimeout(x.current), x.current = null);
|
|
329
329
|
const y = new Intl.NumberFormat(C.language, {
|
|
330
330
|
style: "percent"
|
|
331
|
-
}).format(t / 100), S = v("
|
|
331
|
+
}).format(t / 100), S = v("resizable.sizeAnnounce", { percent: y });
|
|
332
332
|
i ? l(S) : h.current = requestAnimationFrame(() => {
|
|
333
333
|
h.current = null, x.current = setTimeout(
|
|
334
334
|
() => l(S),
|
|
@@ -458,7 +458,7 @@ const fe = ee(
|
|
|
458
458
|
"aria-valuenow": Math.round(p[O] ?? 0),
|
|
459
459
|
"aria-valuetext": $(p[O] ?? 0),
|
|
460
460
|
"aria-controls": [o == null ? void 0 : o.id, D == null ? void 0 : D.id].filter(Boolean).join(" ") || void 0,
|
|
461
|
-
"aria-label": v("
|
|
461
|
+
"aria-label": v("resizable.resizeLabel"),
|
|
462
462
|
"data-dragging": d ? "" : void 0,
|
|
463
463
|
className: Me({ orientation: q, className: u }),
|
|
464
464
|
onPointerDown: j,
|
|
@@ -480,4 +480,4 @@ export {
|
|
|
480
480
|
Re as r,
|
|
481
481
|
le as u
|
|
482
482
|
};
|
|
483
|
-
//# sourceMappingURL=resizable-
|
|
483
|
+
//# sourceMappingURL=resizable-COV-cnth.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as te, useState as _, useEffect as F, useRef as j, useMemo a
|
|
|
3
3
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as U } from "react-i18next";
|
|
5
5
|
import * as q from "@radix-ui/react-popover";
|
|
6
|
-
import { S as oe } from "./search-input-
|
|
6
|
+
import { S as oe } from "./search-input-BBtSRH-Q.js";
|
|
7
7
|
import { u as W } from "./registry-C9nwlNyL.js";
|
|
8
8
|
import { n as O } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
9
9
|
import { S as ie } from "./search-BonnQsHv.js";
|
|
@@ -582,4 +582,4 @@ export {
|
|
|
582
582
|
Ie as f,
|
|
583
583
|
J as s
|
|
584
584
|
};
|
|
585
|
-
//# sourceMappingURL=search-bar-
|
|
585
|
+
//# sourceMappingURL=search-bar-DmZZ9UvV.js.map
|
|
@@ -2,8 +2,8 @@ import { jsx as t, jsxs as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ie, useState as F, useRef as K, useLayoutEffect as oe, useCallback as V, useImperativeHandle as de, useEffect as le } from "react";
|
|
3
3
|
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ce } from "react-i18next";
|
|
5
|
-
import { T as ue } from "./text-input-
|
|
6
|
-
import { S as fe } from "./spinner-
|
|
5
|
+
import { T as ue } from "./text-input-1oqFRbVI.js";
|
|
6
|
+
import { S as fe } from "./spinner-DirtWZNG.js";
|
|
7
7
|
import { u as me } from "./form-field-context-B3APVHKx.js";
|
|
8
8
|
import { u as be } from "./use-debounced-callback-BisrB-Fq.js";
|
|
9
9
|
import { S as L } from "./search-BonnQsHv.js";
|
|
@@ -140,7 +140,7 @@ const Ee = ie(
|
|
|
140
140
|
};
|
|
141
141
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
142
142
|
}, [g, p]);
|
|
143
|
-
const re = E("
|
|
143
|
+
const re = E("inputs.search.clear", "Clear search"), A = E("inputs.search.loading", "Searching…"), se = E("inputs.search.placeholder", "Search…"), B = Q ?? se;
|
|
144
144
|
if (u === "expandable" && !N)
|
|
145
145
|
return /* @__PURE__ */ t(
|
|
146
146
|
"div",
|
|
@@ -233,4 +233,4 @@ Ee.displayName = "SearchInput";
|
|
|
233
233
|
export {
|
|
234
234
|
Ee as S
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=search-input-
|
|
236
|
+
//# sourceMappingURL=search-input-BBtSRH-Q.js.map
|
|
@@ -275,25 +275,25 @@ const _ = a(function({
|
|
|
275
275
|
n ?? r ?? ""
|
|
276
276
|
), m = n !== void 0, h = m ? n : ee, [N, C] = P(!1), B = G(h);
|
|
277
277
|
B.current = h;
|
|
278
|
-
const te = S ?? (p ? u.id : void 0), O = (p ? u.disabled : !1) || !!E, se = (p ? u.required : !1) || !!X, D = p ? u.invalid : !1, oe = D ? "error" : Q, ne = p && u.describedBy ? u.describedBy : void 0, z = G(null),
|
|
279
|
-
m || b(
|
|
280
|
-
}, re = (
|
|
278
|
+
const te = S ?? (p ? u.id : void 0), O = (p ? u.disabled : !1) || !!E, se = (p ? u.required : !1) || !!X, D = p ? u.invalid : !1, oe = D ? "error" : Q, ne = p && u.describedBy ? u.describedBy : void 0, z = G(null), de = Te(Z, z), ie = ye(z), i = l, ae = (d) => {
|
|
279
|
+
m || b(d), i == null || i(d);
|
|
280
|
+
}, re = (d) => {
|
|
281
281
|
var y;
|
|
282
|
-
|
|
283
|
-
}, F = c ?? x("
|
|
282
|
+
d.preventDefault(), d.stopPropagation(), m || b(""), i == null || i(""), (y = z.current) == null || y.focus();
|
|
283
|
+
}, F = c ?? x("inputs.select.placeholder", "Select…"), le = g && !!h && !O, ce = be(s), ue = fe(
|
|
284
284
|
() => ({
|
|
285
285
|
getValue: () => B.current,
|
|
286
|
-
setValue: (
|
|
287
|
-
m || b(
|
|
286
|
+
setValue: (d) => {
|
|
287
|
+
m || b(d), i == null || i(d);
|
|
288
288
|
},
|
|
289
289
|
clear: () => {
|
|
290
|
-
m || b(""),
|
|
290
|
+
m || b(""), i == null || i("");
|
|
291
291
|
},
|
|
292
292
|
open: () => C(!0),
|
|
293
293
|
close: () => C(!1),
|
|
294
294
|
isOpen: () => N
|
|
295
295
|
}),
|
|
296
|
-
[
|
|
296
|
+
[i, m, N]
|
|
297
297
|
);
|
|
298
298
|
return Ne(ze, ue, S), /* @__PURE__ */ f(
|
|
299
299
|
o.Root,
|
|
@@ -305,12 +305,12 @@ const _ = a(function({
|
|
|
305
305
|
disabled: O,
|
|
306
306
|
required: se,
|
|
307
307
|
name: J,
|
|
308
|
-
dir:
|
|
308
|
+
dir: ie,
|
|
309
309
|
children: [
|
|
310
310
|
/* @__PURE__ */ f(
|
|
311
311
|
o.Trigger,
|
|
312
312
|
{
|
|
313
|
-
ref:
|
|
313
|
+
ref: de,
|
|
314
314
|
id: te,
|
|
315
315
|
"aria-label": R ?? (p ? void 0 : F),
|
|
316
316
|
"aria-labelledby": !R && p ? `${u.id}-label` : void 0,
|
|
@@ -330,11 +330,11 @@ const _ = a(function({
|
|
|
330
330
|
"button",
|
|
331
331
|
{
|
|
332
332
|
type: "button",
|
|
333
|
-
"aria-label": x("
|
|
333
|
+
"aria-label": x("inputs.select.clear", "Clear selection"),
|
|
334
334
|
onClick: re,
|
|
335
|
-
onPointerDown: (
|
|
336
|
-
onKeyDown: (
|
|
337
|
-
(
|
|
335
|
+
onPointerDown: (d) => d.stopPropagation(),
|
|
336
|
+
onKeyDown: (d) => {
|
|
337
|
+
(d.key === "Enter" || d.key === " ") && d.stopPropagation();
|
|
338
338
|
},
|
|
339
339
|
className: [
|
|
340
340
|
"ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)]",
|
|
@@ -362,7 +362,7 @@ const _ = a(function({
|
|
|
362
362
|
]
|
|
363
363
|
}
|
|
364
364
|
),
|
|
365
|
-
/* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(j, { children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: x("
|
|
365
|
+
/* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(j, { children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: x("inputs.select.noOptions", "No options") }) : ce.map(({ group: d, items: y }, pe) => {
|
|
366
366
|
const K = y.map((v) => /* @__PURE__ */ t(
|
|
367
367
|
V,
|
|
368
368
|
{
|
|
@@ -374,10 +374,10 @@ const _ = a(function({
|
|
|
374
374
|
},
|
|
375
375
|
v.value
|
|
376
376
|
));
|
|
377
|
-
return
|
|
378
|
-
/* @__PURE__ */ t(k, { children:
|
|
377
|
+
return d ? /* @__PURE__ */ f(o.Group, { children: [
|
|
378
|
+
/* @__PURE__ */ t(k, { children: d }),
|
|
379
379
|
K
|
|
380
|
-
] }, `group-${
|
|
380
|
+
] }, `group-${d}`) : /* @__PURE__ */ t(o.Group, { children: K }, `group-${pe}`);
|
|
381
381
|
}) }) })
|
|
382
382
|
]
|
|
383
383
|
}
|
|
@@ -409,4 +409,4 @@ export {
|
|
|
409
409
|
H as i,
|
|
410
410
|
j
|
|
411
411
|
};
|
|
412
|
-
//# sourceMappingURL=select-
|
|
412
|
+
//# sourceMappingURL=select-i9MwQeQy.js.map
|
|
@@ -117,9 +117,9 @@ const b = A(void 0), m = ({
|
|
|
117
117
|
}) => {
|
|
118
118
|
const i = s !== void 0, [N, C] = R(
|
|
119
119
|
r ?? !1
|
|
120
|
-
), l = i ? !!s : N,
|
|
120
|
+
), l = i ? !!s : N, u = B(l);
|
|
121
121
|
T(() => {
|
|
122
|
-
|
|
122
|
+
u.current = l;
|
|
123
123
|
}, [l]);
|
|
124
124
|
const c = I(
|
|
125
125
|
(v) => {
|
|
@@ -128,7 +128,7 @@ const b = A(void 0), m = ({
|
|
|
128
128
|
[i, a]
|
|
129
129
|
), w = D(
|
|
130
130
|
() => ({
|
|
131
|
-
getIsOpen: () =>
|
|
131
|
+
getIsOpen: () => u.current,
|
|
132
132
|
open: () => c(!0),
|
|
133
133
|
close: () => c(!1)
|
|
134
134
|
}),
|
|
@@ -139,8 +139,8 @@ const b = A(void 0), m = ({
|
|
|
139
139
|
m.displayName = "Sheet.Root";
|
|
140
140
|
const g = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Trigger, { ref: s, ...t, children: e }));
|
|
141
141
|
g.displayName = "Sheet.Trigger";
|
|
142
|
-
const
|
|
143
|
-
|
|
142
|
+
const f = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Close, { ref: s, ...t, children: e }));
|
|
143
|
+
f.displayName = "Sheet.Close";
|
|
144
144
|
const y = n(
|
|
145
145
|
({ side: e = "end", size: t = "md", className: s, children: r, ...a }, p) => {
|
|
146
146
|
const i = O(b);
|
|
@@ -187,13 +187,13 @@ const x = n(
|
|
|
187
187
|
...s,
|
|
188
188
|
children: [
|
|
189
189
|
t,
|
|
190
|
-
/* @__PURE__ */ o(
|
|
190
|
+
/* @__PURE__ */ o(f, { asChild: !0, children: /* @__PURE__ */ o(
|
|
191
191
|
F,
|
|
192
192
|
{
|
|
193
193
|
icon: /* @__PURE__ */ o(V, {}),
|
|
194
194
|
intent: "ghost",
|
|
195
195
|
size: "sm",
|
|
196
|
-
"aria-label": a("
|
|
196
|
+
"aria-label": a("common.close", "Close")
|
|
197
197
|
}
|
|
198
198
|
) })
|
|
199
199
|
]
|
|
@@ -262,10 +262,10 @@ const W = Object.assign(m, {
|
|
|
262
262
|
Footer: j,
|
|
263
263
|
Title: k,
|
|
264
264
|
Description: z,
|
|
265
|
-
Close:
|
|
265
|
+
Close: f
|
|
266
266
|
});
|
|
267
267
|
export {
|
|
268
268
|
W as S,
|
|
269
269
|
P as s
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=sheet-
|
|
271
|
+
//# sourceMappingURL=sheet-BT0izeoI.js.map
|