@alfadocs/ui-kit 1.134.0 → 1.136.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/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
- package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
- package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
- package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
- package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
- package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +528 -2
- package/dist/agent-i18n/en.json +51 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +20 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +148 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +37 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +162 -0
- package/dist/i18n/locales/ar.js +163 -0
- package/dist/i18n/locales/de.d.ts +162 -0
- package/dist/i18n/locales/de.js +163 -0
- package/dist/i18n/locales/el.d.ts +162 -0
- package/dist/i18n/locales/el.js +163 -0
- package/dist/i18n/locales/en.d.ts +162 -0
- package/dist/i18n/locales/en.js +163 -0
- package/dist/i18n/locales/es.d.ts +162 -0
- package/dist/i18n/locales/es.js +163 -0
- package/dist/i18n/locales/fr.d.ts +162 -0
- package/dist/i18n/locales/fr.js +163 -0
- package/dist/i18n/locales/hi.d.ts +162 -0
- package/dist/i18n/locales/hi.js +163 -0
- package/dist/i18n/locales/it.d.ts +162 -0
- package/dist/i18n/locales/it.js +163 -0
- package/dist/i18n/locales/ja.d.ts +162 -0
- package/dist/i18n/locales/ja.js +163 -0
- package/dist/i18n/locales/nl.d.ts +162 -0
- package/dist/i18n/locales/nl.js +163 -0
- package/dist/i18n/locales/pl.d.ts +162 -0
- package/dist/i18n/locales/pl.js +163 -0
- package/dist/i18n/locales/pt.d.ts +162 -0
- package/dist/i18n/locales/pt.js +163 -0
- package/dist/i18n/locales/ro.d.ts +162 -0
- package/dist/i18n/locales/ro.js +163 -0
- package/dist/i18n/locales/ru.d.ts +162 -0
- package/dist/i18n/locales/ru.js +163 -0
- package/dist/i18n/locales/sq.d.ts +162 -0
- package/dist/i18n/locales/sq.js +163 -0
- package/dist/i18n/locales/sv.d.ts +162 -0
- package/dist/i18n/locales/sv.js +163 -0
- package/dist/i18n/locales/tr.d.ts +162 -0
- package/dist/i18n/locales/tr.js +163 -0
- package/dist/i18n/locales/zh.d.ts +162 -0
- package/dist/i18n/locales/zh.js +163 -0
- package/dist/index.js +905 -893
- package/dist/locales/ar.json +162 -0
- package/dist/locales/de.json +162 -0
- package/dist/locales/el.json +162 -0
- package/dist/locales/en.json +162 -0
- package/dist/locales/es.json +162 -0
- package/dist/locales/fr.json +162 -0
- package/dist/locales/hi.json +162 -0
- package/dist/locales/it.json +162 -0
- package/dist/locales/ja.json +162 -0
- package/dist/locales/nl.json +162 -0
- package/dist/locales/pl.json +162 -0
- package/dist/locales/pt.json +162 -0
- package/dist/locales/ro.json +162 -0
- package/dist/locales/ru.json +162 -0
- package/dist/locales/sq.json +162 -0
- package/dist/locales/sv.json +162 -0
- package/dist/locales/tr.json +162 -0
- package/dist/locales/zh.json +162 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +1 -0
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import { jsxs as R, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as E, useEffect as h, useMemo as v, useRef as j, useState as W } from "react";
|
|
3
|
+
import { c as nn } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as on } from "react-i18next";
|
|
5
5
|
import { B as rn } from "./button-DohK_Ak_.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import { L as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
6
|
+
import { P as en } from "./progress-D_g_Sl2g.js";
|
|
7
|
+
import { L as tn } from "./live-region-C41SO3cA.js";
|
|
8
|
+
import { u as sn } from "./registry-DvAUVLHh.js";
|
|
9
|
+
import { C as an } from "./circle-x-W8Enq3i4.js";
|
|
10
10
|
import { T as dn } from "./triangle-alert-CBnO6nq_.js";
|
|
11
|
+
import { c as cn } from "./createLucideIcon-DhHxpK9K.js";
|
|
11
12
|
/**
|
|
12
13
|
* @license lucide-react v1.22.0 - ISC
|
|
13
14
|
*
|
|
14
15
|
* This source code is licensed under the ISC license.
|
|
15
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
17
|
*/
|
|
17
|
-
const
|
|
18
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
19
|
-
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
20
|
-
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
21
|
-
], ln = z("circle-x", cn);
|
|
22
|
-
/**
|
|
23
|
-
* @license lucide-react v1.22.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
const un = [
|
|
18
|
+
const ln = [
|
|
29
19
|
["line", { x1: "10", x2: "14", y1: "2", y2: "2", key: "14vaq8" }],
|
|
30
20
|
["line", { x1: "12", x2: "15", y1: "14", y2: "11", key: "17fdiu" }],
|
|
31
21
|
["circle", { cx: "12", cy: "14", r: "8", key: "1e1u0o" }]
|
|
32
|
-
],
|
|
22
|
+
], un = cn("timer", ln), mn = {
|
|
33
23
|
id: "session-countdown",
|
|
34
24
|
capabilities: [],
|
|
35
25
|
state: {},
|
|
@@ -41,7 +31,7 @@ const un = [
|
|
|
41
31
|
description: 'Marks the element as a kit SessionCountdown banner. The root also emits `data-tone="running" | "warning" | "expired"` (derived from the remaining time). When the session has expired and the host passes onRestart, the only button carries data-action="restart-session"; it only calls the host. The accessible remaining-time announcement is surfaced via the region\'s aria-label and a nested polite live region.'
|
|
42
32
|
}
|
|
43
33
|
}
|
|
44
|
-
}, b = 1e3,
|
|
34
|
+
}, b = 1e3, y = 60 * b, fn = 15 * y, wn = 2 * y, pn = nn(
|
|
45
35
|
[
|
|
46
36
|
"ds:break-words",
|
|
47
37
|
"ds:flex ds:w-full ds:flex-col",
|
|
@@ -83,22 +73,22 @@ const un = [
|
|
|
83
73
|
tone: "running"
|
|
84
74
|
}
|
|
85
75
|
}
|
|
86
|
-
),
|
|
76
|
+
), gn = {
|
|
87
77
|
sm: "ds:size-4",
|
|
88
78
|
md: "ds:size-5",
|
|
89
79
|
lg: "ds:size-6"
|
|
90
80
|
};
|
|
91
|
-
function
|
|
81
|
+
function vn(n, o) {
|
|
92
82
|
return n <= 0 ? "expired" : n <= o ? "warning" : "running";
|
|
93
83
|
}
|
|
94
|
-
function
|
|
95
|
-
return n <= 0 ? 0 : n <= 30 * b ? 10 : n <= 60 * b ? 30 : Math.floor(n /
|
|
84
|
+
function hn(n) {
|
|
85
|
+
return n <= 0 ? 0 : n <= 30 * b ? 10 : n <= 60 * b ? 30 : Math.floor(n / y) * 60;
|
|
96
86
|
}
|
|
97
|
-
function
|
|
87
|
+
function bn(n) {
|
|
98
88
|
return n instanceof Date ? n.getTime() : typeof n == "number" ? n : new Date(n).getTime();
|
|
99
89
|
}
|
|
100
|
-
function
|
|
101
|
-
const [x, i] =
|
|
90
|
+
function xn(n, o, u) {
|
|
91
|
+
const [x, i] = W(() => Date.now()), m = n !== void 0;
|
|
102
92
|
return h(() => {
|
|
103
93
|
if (m || o === void 0 || (i(Date.now()), o - Date.now() <= 0)) return;
|
|
104
94
|
const c = window.setInterval(
|
|
@@ -111,72 +101,72 @@ function yn(n, o, u) {
|
|
|
111
101
|
return () => window.clearInterval(c);
|
|
112
102
|
}, [m, o, u]), m ? Math.max(0, n) : o === void 0 ? 0 : Math.max(0, o - x);
|
|
113
103
|
}
|
|
114
|
-
const Cn =
|
|
104
|
+
const Cn = E(
|
|
115
105
|
({
|
|
116
106
|
remainingMs: n,
|
|
117
107
|
expiresAt: o,
|
|
118
|
-
totalMs: u =
|
|
119
|
-
warnAtMs: x =
|
|
108
|
+
totalMs: u = fn,
|
|
109
|
+
warnAtMs: x = wn,
|
|
120
110
|
size: i = "md",
|
|
121
111
|
showProgress: m = !1,
|
|
122
112
|
onExpire: c,
|
|
123
113
|
onRestart: f,
|
|
124
114
|
restarting: A = !1,
|
|
125
115
|
tickMs: F = 1e3,
|
|
126
|
-
locale:
|
|
127
|
-
label:
|
|
128
|
-
messages:
|
|
129
|
-
restartLabel:
|
|
116
|
+
locale: z,
|
|
117
|
+
label: B,
|
|
118
|
+
messages: r,
|
|
119
|
+
restartLabel: O,
|
|
130
120
|
announceWarning: p = !1,
|
|
131
121
|
className: U,
|
|
132
122
|
id: _,
|
|
133
|
-
|
|
123
|
+
...$
|
|
134
124
|
}, P) => {
|
|
135
125
|
var I;
|
|
136
|
-
const { t:
|
|
126
|
+
const { t: e, i18n: V } = on("ui"), S = z ?? V.language ?? "en";
|
|
137
127
|
h(() => {
|
|
138
128
|
}, [n, o]);
|
|
139
|
-
const
|
|
140
|
-
() => n === void 0 && o !== void 0 ?
|
|
129
|
+
const q = v(
|
|
130
|
+
() => n === void 0 && o !== void 0 ? bn(o) : void 0,
|
|
141
131
|
[n, o]
|
|
142
|
-
), l =
|
|
132
|
+
), l = xn(n, q, F), t = vn(l, x), s = t === "expired", g = j(!1);
|
|
143
133
|
h(() => {
|
|
144
134
|
l <= 0 && !g.current && (g.current = !0, c == null || c()), l > 0 && g.current && (g.current = !1);
|
|
145
135
|
}, [l, c]);
|
|
146
|
-
const
|
|
147
|
-
() => new Intl.NumberFormat(
|
|
148
|
-
[
|
|
149
|
-
),
|
|
150
|
-
minutes:
|
|
151
|
-
seconds:
|
|
152
|
-
}) :
|
|
153
|
-
seconds:
|
|
154
|
-
}), a =
|
|
136
|
+
const C = v(
|
|
137
|
+
() => new Intl.NumberFormat(S, { maximumFractionDigits: 0 }),
|
|
138
|
+
[S]
|
|
139
|
+
), T = Math.ceil(l / b), N = Math.floor(T / 60), k = T % 60, L = N > 0 ? e("sessionCountdown.timeMinutesSeconds", {
|
|
140
|
+
minutes: C.format(N),
|
|
141
|
+
seconds: C.format(k)
|
|
142
|
+
}) : e("sessionCountdown.timeSecondsOnly", {
|
|
143
|
+
seconds: C.format(k)
|
|
144
|
+
}), a = hn(l), w = v(() => a <= 0 ? e("sessionCountdown.expiredAnnouncement") : a < 60 ? e("sessionCountdown.secondsRemaining", { count: a }) : e("sessionCountdown.minutesRemaining", { count: a / 60 }), [a, e]), H = e("sessionCountdown.expiredAnnouncement"), K = B ?? (s ? void 0 : e("sessionCountdown.ariaLabel", { time: w })), X = pn({
|
|
155
145
|
size: i,
|
|
156
146
|
tone: t,
|
|
157
147
|
className: U
|
|
158
|
-
}),
|
|
159
|
-
|
|
160
|
-
const
|
|
148
|
+
}), Z = s ? "alert" : "timer";
|
|
149
|
+
sn(mn, null, _);
|
|
150
|
+
const G = s ? an : t === "warning" ? dn : un, J = Math.min(u, Math.max(0, u - l)), Q = s ? "sessionCountdown.expired" : t === "warning" ? "sessionCountdown.warning" : "sessionCountdown.remainingBanner", M = (s ? r == null ? void 0 : r.expired : t === "warning" ? r == null ? void 0 : r.warning : (I = r == null ? void 0 : r.running) == null ? void 0 : I.call(r, L)) ?? e(Q, { time: L }), D = j(!1);
|
|
161
151
|
h(() => {
|
|
162
152
|
p && (D.current = t === "warning" && a > 0);
|
|
163
153
|
}, [p, t, a]);
|
|
164
|
-
const
|
|
154
|
+
const Y = v(() => s ? "" : p ? t === "running" ? "" : D.current ? w : `${M} ${w}` : w, [s, p, t, a, w]);
|
|
165
155
|
return /* @__PURE__ */ R(
|
|
166
156
|
"div",
|
|
167
157
|
{
|
|
168
158
|
ref: P,
|
|
169
159
|
id: _,
|
|
170
|
-
role:
|
|
171
|
-
"aria-label":
|
|
160
|
+
role: Z,
|
|
161
|
+
"aria-label": K,
|
|
172
162
|
"data-component": "session-countdown",
|
|
173
163
|
"data-tone": t,
|
|
174
|
-
className:
|
|
175
|
-
|
|
164
|
+
className: X,
|
|
165
|
+
...$,
|
|
176
166
|
children: [
|
|
177
|
-
s ? /* @__PURE__ */ d("span", { className: "ds:sr-only", children:
|
|
167
|
+
s ? /* @__PURE__ */ d("span", { className: "ds:sr-only", children: H }) : null,
|
|
178
168
|
/* @__PURE__ */ R("div", { className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
179
|
-
/* @__PURE__ */ d("span", { className: `ds:shrink-0 ${
|
|
169
|
+
/* @__PURE__ */ d("span", { className: `ds:shrink-0 ${gn[i]}`, children: /* @__PURE__ */ d(G, { "aria-hidden": "true", className: "ds:size-full" }) }),
|
|
180
170
|
/* @__PURE__ */ d(
|
|
181
171
|
"p",
|
|
182
172
|
{
|
|
@@ -198,7 +188,7 @@ const Cn = W(
|
|
|
198
188
|
"data-action": "restart-session",
|
|
199
189
|
onClick: f,
|
|
200
190
|
className: "ds:min-h-[var(--min-target-size)] ds:shrink-0",
|
|
201
|
-
children:
|
|
191
|
+
children: O ?? e("sessionCountdown.restart")
|
|
202
192
|
}
|
|
203
193
|
) : null
|
|
204
194
|
] }),
|
|
@@ -208,17 +198,17 @@ const Cn = W(
|
|
|
208
198
|
// is aria-hidden: the timer region already conveys remaining
|
|
209
199
|
// time, so a second progressbar would double-announce.
|
|
210
200
|
/* @__PURE__ */ d("div", { "aria-hidden": "true", className: "ds:w-full", children: /* @__PURE__ */ d(
|
|
211
|
-
|
|
201
|
+
en,
|
|
212
202
|
{
|
|
213
|
-
value:
|
|
203
|
+
value: J,
|
|
214
204
|
max: u,
|
|
215
205
|
shape: "bar",
|
|
216
206
|
size: i,
|
|
217
|
-
ariaLabel:
|
|
207
|
+
ariaLabel: e("sessionCountdown.progressLabel")
|
|
218
208
|
}
|
|
219
209
|
) })
|
|
220
210
|
) : null,
|
|
221
|
-
/* @__PURE__ */ d(
|
|
211
|
+
/* @__PURE__ */ d(tn, { politeness: "polite", atomic: !0, children: Y })
|
|
222
212
|
]
|
|
223
213
|
}
|
|
224
214
|
);
|
|
@@ -227,6 +217,6 @@ const Cn = W(
|
|
|
227
217
|
Cn.displayName = "SessionCountdown";
|
|
228
218
|
export {
|
|
229
219
|
Cn as S,
|
|
230
|
-
|
|
220
|
+
mn as s
|
|
231
221
|
};
|
|
232
|
-
//# sourceMappingURL=session-countdown-
|
|
222
|
+
//# sourceMappingURL=session-countdown-StcyUU5O.js.map
|
|
@@ -7,7 +7,7 @@ import { S as zi } from "./spinner-CoflYlEx.js";
|
|
|
7
7
|
import { S as Ie } from "./skeleton-tTWJpvAq.js";
|
|
8
8
|
import { B as L } from "./button-DohK_Ak_.js";
|
|
9
9
|
import { I as xn } from "./icon-button-S8_weU3g.js";
|
|
10
|
-
import { s as Fi, S as Ue } from "./select-
|
|
10
|
+
import { s as Fi, S as Ue } from "./select-CIXKyUMw.js";
|
|
11
11
|
import { S as ba } from "./switch-DO6uC4HJ.js";
|
|
12
12
|
import { A as j } from "./alert-C4WKViaS.js";
|
|
13
13
|
import { S as Ra } from "./separator-Bdc9bqoJ.js";
|
|
@@ -2787,4 +2787,4 @@ Or.displayName = "SignatureRequestModal";
|
|
|
2787
2787
|
export {
|
|
2788
2788
|
Or as S
|
|
2789
2789
|
};
|
|
2790
|
-
//# sourceMappingURL=signature-request-
|
|
2790
|
+
//# sourceMappingURL=signature-request-vJDSHZld.js.map
|