@alfadocs/ui-kit 0.42.0 → 0.44.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/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/bmi-calculator-DFPWL2OJ.js +273 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-D-nfvteH.js} +2 -2
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/{cycle-calculator-DsZbyzX6.js → cycle-calculator-ChHBcjet.js} +65 -56
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/dialog-BTpZV6It.js +223 -0
- package/dist/_chunks/{due-date-calculator-s_CBgaFs.js → due-date-calculator-CYXKLoof.js} +65 -45
- package/dist/_chunks/{editable-currency-cell-renderer-BhUkRiPZ.js → editable-currency-cell-renderer-9jqwDv5x.js} +2 -2
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/gestational-age-calculator-sRmoqgVr.js +190 -0
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/insert-result-CoC1oo6R.js +334 -0
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-kVAVycz_.js → marketplace-app-shell-Dc5cTIt8.js} +186 -149
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{patient-shell-lDX3wwu6.js → patient-shell-CnT4L8gn.js} +2 -2
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-B7kBK-ZR.js → pregnancy-weight-gain-C5YhfYnL.js} +60 -50
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{sign-document-QHfcNKFj.js → sign-document-B-3k_0LO.js} +165 -137
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/{tab-bar-C4II-7ej.js → tab-bar-Xetknddo.js} +53 -34
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{unit-converter-D1UrEUxa.js → unit-converter-Ds9jalbN.js} +78 -67
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/insert-result.d.ts +149 -4
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +6 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +6 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +6 -0
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +6 -0
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +6 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +44 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +6 -0
- package/dist/index.js +504 -502
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +57 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +1 -1
- package/dist/_chunks/bmi-calculator-D4juUcyF.js +0 -219
- package/dist/_chunks/dialog-Cee13rHU.js +0 -215
- package/dist/_chunks/gestational-age-calculator-CWOG3bkI.js +0 -178
- package/dist/_chunks/insert-result-DtQQeSSf.js +0 -227
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ce, useId as le, useMemo as G, useRef as L, useState as x, useEffect as _, useCallback as l, useImperativeHandle as ue } from "react";
|
|
3
3
|
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { P as
|
|
6
|
-
import { S as
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as
|
|
9
|
-
const
|
|
4
|
+
import { useTranslation as me } from "react-i18next";
|
|
5
|
+
import { P as ge } from "./pdf-viewer-B6MC6VTx.js";
|
|
6
|
+
import { S as pe } from "./signature-capture-CpMBhqQ9.js";
|
|
7
|
+
import { u as fe } from "./registry-nPAVE19X.js";
|
|
8
|
+
import { C as J } from "./circle-check-9AeSgJD_.js";
|
|
9
|
+
const ve = {
|
|
10
10
|
id: "sign-document",
|
|
11
11
|
capabilities: ["submit"],
|
|
12
12
|
state: {
|
|
@@ -14,7 +14,7 @@ const ue = {
|
|
|
14
14
|
type: "boolean",
|
|
15
15
|
descriptionKey: "signDocument.agent.state.isReadComplete",
|
|
16
16
|
description: "True when the reader has reached the last page (or read-gating is off).",
|
|
17
|
-
read: (
|
|
17
|
+
read: (a) => a.isReadComplete()
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
actions: {
|
|
@@ -22,14 +22,14 @@ const ue = {
|
|
|
22
22
|
safety: "write",
|
|
23
23
|
descriptionKey: "signDocument.agent.actions.confirm",
|
|
24
24
|
description: "Confirm the current signature, emitting it via onSign. No-op if unsigned.",
|
|
25
|
-
invoke: (
|
|
25
|
+
invoke: (a) => a.confirm()
|
|
26
26
|
},
|
|
27
27
|
reset: {
|
|
28
28
|
safety: "destructive",
|
|
29
29
|
descriptionKey: "signDocument.agent.actions.reset",
|
|
30
30
|
description: "Clear the captured signature and return to unsigned.",
|
|
31
|
-
invoke: (
|
|
32
|
-
|
|
31
|
+
invoke: (a) => {
|
|
32
|
+
a.reset();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -45,7 +45,7 @@ const ue = {
|
|
|
45
45
|
description: "Sourced from the id prop."
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, be = i(
|
|
49
49
|
[
|
|
50
50
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
51
51
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
|
|
@@ -54,18 +54,18 @@ const ue = {
|
|
|
54
54
|
"ds:p-[var(--spacing-md)]",
|
|
55
55
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
56
56
|
].join(" ")
|
|
57
|
-
),
|
|
57
|
+
), he = i(
|
|
58
58
|
["type-heading-sm ds:text-[var(--foreground)]"].join(" ")
|
|
59
|
-
),
|
|
59
|
+
), xe = i(
|
|
60
60
|
["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"].join(" ")
|
|
61
|
-
),
|
|
61
|
+
), ye = i(
|
|
62
62
|
["type-body-sm ds:font-medium ds:text-[var(--foreground)]"].join(" ")
|
|
63
|
-
),
|
|
63
|
+
), De = i(
|
|
64
64
|
[
|
|
65
65
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
66
66
|
"type-body-sm ds:text-[var(--muted-foreground)]"
|
|
67
67
|
].join(" ")
|
|
68
|
-
),
|
|
68
|
+
), Se = i(
|
|
69
69
|
[
|
|
70
70
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
71
71
|
"type-body-sm",
|
|
@@ -76,7 +76,7 @@ const ue = {
|
|
|
76
76
|
"ds:text-[var(--foreground)]",
|
|
77
77
|
"ds:border ds:border-[color:color-mix(in_srgb,var(--info)_40%,transparent)]"
|
|
78
78
|
].join(" ")
|
|
79
|
-
),
|
|
79
|
+
), Ce = i(
|
|
80
80
|
[
|
|
81
81
|
"ds:inline-flex ds:inline-size-full ds:items-center ds:justify-center",
|
|
82
82
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
@@ -97,7 +97,7 @@ const ue = {
|
|
|
97
97
|
"ds:disabled:opacity-[var(--opacity-50)] ds:disabled:cursor-not-allowed",
|
|
98
98
|
"ds:disabled:hover:bg-[var(--primary)]"
|
|
99
99
|
].join(" ")
|
|
100
|
-
),
|
|
100
|
+
), we = i(
|
|
101
101
|
[
|
|
102
102
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
103
103
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -107,97 +107,109 @@ const ue = {
|
|
|
107
107
|
"ds:text-[var(--foreground)]",
|
|
108
108
|
"ds:border ds:border-[color:color-mix(in_srgb,var(--success)_45%,transparent)]"
|
|
109
109
|
].join(" ")
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
), Q = i(["type-body-sm"].join(" "), {
|
|
111
|
+
variants: {
|
|
112
|
+
placement: {
|
|
113
|
+
pad: "ds:text-[var(--muted-foreground)]",
|
|
114
|
+
banner: "ds:block ds:text-[var(--foreground)]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
defaultVariants: { placement: "pad" }
|
|
118
|
+
});
|
|
119
|
+
function U(a, g) {
|
|
120
|
+
const t = new Date(a);
|
|
121
|
+
if (Number.isNaN(t.getTime())) return a;
|
|
114
122
|
try {
|
|
115
|
-
return new Intl.DateTimeFormat(
|
|
123
|
+
return new Intl.DateTimeFormat(g, {
|
|
116
124
|
dateStyle: "long",
|
|
117
125
|
timeStyle: "short"
|
|
118
|
-
}).format(
|
|
126
|
+
}).format(t);
|
|
119
127
|
} catch {
|
|
120
|
-
return
|
|
128
|
+
return t.toISOString();
|
|
121
129
|
}
|
|
122
130
|
}
|
|
123
|
-
const
|
|
131
|
+
const je = ce(
|
|
124
132
|
({
|
|
125
|
-
id:
|
|
126
|
-
src:
|
|
127
|
-
documentTitle:
|
|
128
|
-
requireReadToEnd:
|
|
129
|
-
onSign:
|
|
130
|
-
onError:
|
|
131
|
-
signedAt:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
[
|
|
140
|
-
|
|
141
|
-
L(()
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
id: a,
|
|
134
|
+
src: g,
|
|
135
|
+
documentTitle: t,
|
|
136
|
+
requireReadToEnd: z = !0,
|
|
137
|
+
onSign: y,
|
|
138
|
+
onError: D,
|
|
139
|
+
signedAt: S = null,
|
|
140
|
+
signedByNote: o,
|
|
141
|
+
disabled: C = !1,
|
|
142
|
+
readOnly: w = !1,
|
|
143
|
+
ariaLabel: j,
|
|
144
|
+
className: W
|
|
145
|
+
}, X) => {
|
|
146
|
+
const { t: s, i18n: R } = me(), H = le(), p = G(
|
|
147
|
+
() => `sign-doc-${H.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
148
|
+
[H]
|
|
149
|
+
), E = `${p}-doc-heading`, T = `${p}-sign-label`, Y = `${p}-live`, N = `${p}-gate-hint`, f = L(null), [$, k] = x(0), [q, K] = x(1), [B, I] = x(!1), [A, u] = x(!1), m = S != null, ee = C || w || m, v = L(y), b = L(D);
|
|
150
|
+
_(() => {
|
|
151
|
+
v.current = y, b.current = D;
|
|
152
|
+
}, [y, D]), _(() => {
|
|
153
|
+
I(!1), k(0), K(1), u(!1);
|
|
154
|
+
}, [g]);
|
|
155
|
+
const se = l(
|
|
147
156
|
(e) => {
|
|
148
|
-
|
|
157
|
+
k(e.numPages), e.numPages <= 1 && I(!0);
|
|
149
158
|
},
|
|
150
159
|
[]
|
|
151
|
-
),
|
|
152
|
-
|
|
153
|
-
}, []),
|
|
154
|
-
var
|
|
155
|
-
(
|
|
156
|
-
}, []),
|
|
157
|
-
|
|
158
|
-
if (!
|
|
160
|
+
), ne = l((e) => {
|
|
161
|
+
K(e), k((r) => (r > 0 && e >= r && I(!0), r));
|
|
162
|
+
}, []), ae = l((e) => {
|
|
163
|
+
var r;
|
|
164
|
+
(r = b.current) == null || r.call(b, e);
|
|
165
|
+
}, []), F = !m && !w;
|
|
166
|
+
_(() => {
|
|
167
|
+
if (!F) return;
|
|
159
168
|
const e = () => {
|
|
160
|
-
const
|
|
161
|
-
|
|
169
|
+
const Z = f.current;
|
|
170
|
+
Z && u(!Z.isEmpty());
|
|
162
171
|
};
|
|
163
172
|
e();
|
|
164
|
-
const
|
|
165
|
-
return () => window.clearInterval(
|
|
166
|
-
}, [
|
|
167
|
-
const
|
|
168
|
-
var
|
|
169
|
-
(
|
|
170
|
-
}, []),
|
|
171
|
-
const e =
|
|
173
|
+
const r = window.setInterval(e, 200);
|
|
174
|
+
return () => window.clearInterval(r);
|
|
175
|
+
}, [F]);
|
|
176
|
+
const d = !z || B, M = !(!ee && d) || !A, te = l((e) => {
|
|
177
|
+
var r;
|
|
178
|
+
(r = v.current) == null || r.call(v, e);
|
|
179
|
+
}, []), P = l(async () => {
|
|
180
|
+
const e = f.current;
|
|
172
181
|
return e ? e.confirm() : null;
|
|
173
|
-
}, []),
|
|
182
|
+
}, []), O = l(() => {
|
|
174
183
|
var e;
|
|
175
|
-
(e =
|
|
176
|
-
}, []),
|
|
184
|
+
(e = f.current) == null || e.clear(), u(!1);
|
|
185
|
+
}, []), V = G(
|
|
177
186
|
() => ({
|
|
178
|
-
reset:
|
|
179
|
-
confirm:
|
|
180
|
-
isReadComplete: () =>
|
|
187
|
+
reset: O,
|
|
188
|
+
confirm: P,
|
|
189
|
+
isReadComplete: () => d
|
|
181
190
|
}),
|
|
182
|
-
[
|
|
191
|
+
[O, P, d]
|
|
183
192
|
);
|
|
184
|
-
|
|
185
|
-
const
|
|
186
|
-
date:
|
|
187
|
-
}) :
|
|
188
|
-
|
|
193
|
+
ue(X, () => V, [V]), fe(ve, V, a);
|
|
194
|
+
const re = j ?? (t ? s("signDocument.regionLabelNamed", { title: t }) : s("signDocument.regionLabel")), ie = t ?? s("signDocument.documentLabel"), oe = m ? s("signDocument.signedOn", {
|
|
195
|
+
date: U(S, R.language)
|
|
196
|
+
}) : d ? s("signDocument.readyToSign") : "", de = d ? A ? "" : s("signDocument.signToEnable") : s("signDocument.scrollToEnd"), h = o != null && o.signer && (o != null && o.subject) ? s("signDocument.signedByOnBehalf", {
|
|
197
|
+
signer: o.signer,
|
|
198
|
+
subject: o.subject
|
|
199
|
+
}) : null;
|
|
200
|
+
return /* @__PURE__ */ c(
|
|
189
201
|
"div",
|
|
190
202
|
{
|
|
191
203
|
role: "group",
|
|
192
|
-
"aria-labelledby": !
|
|
193
|
-
"aria-label":
|
|
194
|
-
"aria-disabled":
|
|
195
|
-
className: [
|
|
204
|
+
"aria-labelledby": !j && t ? E : void 0,
|
|
205
|
+
"aria-label": j || !t ? re : void 0,
|
|
206
|
+
"aria-disabled": C || void 0,
|
|
207
|
+
className: [be(), W].filter(Boolean).join(" "),
|
|
196
208
|
"data-component": "sign-document",
|
|
197
|
-
"data-component-id":
|
|
198
|
-
"data-signed":
|
|
209
|
+
"data-component-id": a,
|
|
210
|
+
"data-signed": m || void 0,
|
|
199
211
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ n(
|
|
201
213
|
"span",
|
|
202
214
|
{
|
|
203
215
|
role: "status",
|
|
@@ -205,96 +217,112 @@ const Se = ie(
|
|
|
205
217
|
"aria-atomic": "true",
|
|
206
218
|
className: "ds:sr-only",
|
|
207
219
|
"data-testid": "sign-document-live",
|
|
208
|
-
id:
|
|
209
|
-
children:
|
|
220
|
+
id: Y,
|
|
221
|
+
children: oe
|
|
210
222
|
}
|
|
211
223
|
),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
|
|
224
|
+
/* @__PURE__ */ n("span", { className: "ds:sr-only", id: N, children: de }),
|
|
225
|
+
t ? /* @__PURE__ */ n("h2", { id: E, className: he(), children: t }) : null,
|
|
226
|
+
/* @__PURE__ */ n(
|
|
227
|
+
ge,
|
|
216
228
|
{
|
|
217
|
-
src:
|
|
218
|
-
ariaLabel:
|
|
219
|
-
onLoadComplete:
|
|
220
|
-
onPageChange:
|
|
221
|
-
onError:
|
|
229
|
+
src: g,
|
|
230
|
+
ariaLabel: ie,
|
|
231
|
+
onLoadComplete: se,
|
|
232
|
+
onPageChange: ne,
|
|
233
|
+
onError: ae
|
|
222
234
|
}
|
|
223
235
|
),
|
|
224
|
-
|
|
236
|
+
m ? (
|
|
225
237
|
/* ---- Already-signed, read-only ---- */
|
|
226
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ c(
|
|
227
239
|
"div",
|
|
228
240
|
{
|
|
229
|
-
className:
|
|
241
|
+
className: we(),
|
|
230
242
|
"data-testid": "sign-document-signed",
|
|
231
243
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
244
|
+
/* @__PURE__ */ n(
|
|
245
|
+
J,
|
|
234
246
|
{
|
|
235
247
|
"aria-hidden": "true",
|
|
236
248
|
className: "ds:size-5 ds:text-[var(--success)] ds:shrink-0"
|
|
237
249
|
}
|
|
238
250
|
),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ c("span", { className: "type-body-sm", children: [
|
|
252
|
+
/* @__PURE__ */ n("strong", { className: "ds:font-semibold", children: s("signDocument.signed") }),
|
|
241
253
|
" — ",
|
|
242
254
|
s("signDocument.signedOn", {
|
|
243
|
-
date:
|
|
244
|
-
})
|
|
255
|
+
date: U(S, R.language)
|
|
256
|
+
}),
|
|
257
|
+
h ? /* @__PURE__ */ n(
|
|
258
|
+
"span",
|
|
259
|
+
{
|
|
260
|
+
className: Q({ placement: "banner" }),
|
|
261
|
+
"data-testid": "sign-document-attribution",
|
|
262
|
+
children: h
|
|
263
|
+
}
|
|
264
|
+
) : null
|
|
245
265
|
] })
|
|
246
266
|
]
|
|
247
267
|
}
|
|
248
268
|
)
|
|
249
|
-
) :
|
|
269
|
+
) : w ? null : (
|
|
250
270
|
/* ---- Sign surface ---- */
|
|
251
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ c(
|
|
252
272
|
"div",
|
|
253
273
|
{
|
|
254
|
-
className:
|
|
274
|
+
className: xe(),
|
|
255
275
|
role: "group",
|
|
256
|
-
"aria-labelledby":
|
|
257
|
-
"aria-describedby":
|
|
276
|
+
"aria-labelledby": T,
|
|
277
|
+
"aria-describedby": N,
|
|
258
278
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
279
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
280
|
+
/* @__PURE__ */ n("span", { id: T, className: ye(), children: s("signDocument.signatureSection") }),
|
|
281
|
+
$ > 0 ? /* @__PURE__ */ n(
|
|
262
282
|
"span",
|
|
263
283
|
{
|
|
264
|
-
className:
|
|
284
|
+
className: De(),
|
|
265
285
|
"data-testid": "sign-document-progress",
|
|
266
286
|
children: s("signDocument.pageProgress", {
|
|
267
|
-
current:
|
|
268
|
-
total:
|
|
287
|
+
current: q,
|
|
288
|
+
total: $
|
|
269
289
|
})
|
|
270
290
|
}
|
|
271
291
|
) : null
|
|
272
292
|
] }),
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
293
|
+
h ? /* @__PURE__ */ n(
|
|
294
|
+
"p",
|
|
295
|
+
{
|
|
296
|
+
className: Q({ placement: "pad" }),
|
|
297
|
+
"data-testid": "sign-document-attribution",
|
|
298
|
+
children: h
|
|
299
|
+
}
|
|
300
|
+
) : null,
|
|
301
|
+
z && !d ? /* @__PURE__ */ n("p", { className: Se(), "data-testid": "sign-document-hint", children: s("signDocument.scrollToEnd") }) : null,
|
|
302
|
+
/* @__PURE__ */ n(
|
|
303
|
+
pe,
|
|
276
304
|
{
|
|
277
|
-
ref:
|
|
305
|
+
ref: f,
|
|
278
306
|
ariaLabel: s("signDocument.signatureSection"),
|
|
279
|
-
disabled:
|
|
280
|
-
onStart: () =>
|
|
281
|
-
onClear: () =>
|
|
282
|
-
onConfirm:
|
|
307
|
+
disabled: C || !d,
|
|
308
|
+
onStart: () => u(!0),
|
|
309
|
+
onClear: () => u(!1),
|
|
310
|
+
onConfirm: te
|
|
283
311
|
}
|
|
284
312
|
),
|
|
285
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ c(
|
|
286
314
|
"button",
|
|
287
315
|
{
|
|
288
316
|
type: "button",
|
|
289
317
|
onClick: () => {
|
|
290
|
-
|
|
318
|
+
M || P();
|
|
291
319
|
},
|
|
292
|
-
disabled:
|
|
293
|
-
"aria-describedby":
|
|
294
|
-
className:
|
|
320
|
+
disabled: M,
|
|
321
|
+
"aria-describedby": N,
|
|
322
|
+
className: Ce(),
|
|
295
323
|
"data-testid": "sign-document-confirm",
|
|
296
324
|
children: [
|
|
297
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ n(J, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
298
326
|
s("signDocument.confirm")
|
|
299
327
|
]
|
|
300
328
|
}
|
|
@@ -308,9 +336,9 @@ const Se = ie(
|
|
|
308
336
|
);
|
|
309
337
|
}
|
|
310
338
|
);
|
|
311
|
-
|
|
339
|
+
je.displayName = "SignDocument";
|
|
312
340
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
341
|
+
je as S,
|
|
342
|
+
ve as s
|
|
315
343
|
};
|
|
316
|
-
//# sourceMappingURL=sign-document-
|
|
344
|
+
//# sourceMappingURL=sign-document-B-3k_0LO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as s, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "më pak se një sekondë",
|
|
@@ -205,11 +205,11 @@ const d = {
|
|
|
205
205
|
evening: "në mbrëmje",
|
|
206
206
|
night: "në mesnatë"
|
|
207
207
|
}
|
|
208
|
-
},
|
|
208
|
+
}, w = (e, a) => {
|
|
209
209
|
const t = Number(e);
|
|
210
210
|
return (a == null ? void 0 : a.unit) === "hour" ? String(t) : t === 1 ? t + "-rë" : t === 4 ? t + "t" : t + "-të";
|
|
211
|
-
},
|
|
212
|
-
ordinalNumber:
|
|
211
|
+
}, y = {
|
|
212
|
+
ordinalNumber: w,
|
|
213
213
|
era: r({
|
|
214
214
|
values: j,
|
|
215
215
|
defaultWidth: "wide"
|
|
@@ -342,7 +342,7 @@ const d = {
|
|
|
342
342
|
formatDistance: h,
|
|
343
343
|
formatLong: b,
|
|
344
344
|
formatRelative: g,
|
|
345
|
-
localize:
|
|
345
|
+
localize: y,
|
|
346
346
|
match: X,
|
|
347
347
|
options: {
|
|
348
348
|
weekStartsOn: 1,
|
|
@@ -352,4 +352,4 @@ const d = {
|
|
|
352
352
|
export {
|
|
353
353
|
T as sq
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=sq-
|
|
355
|
+
//# sourceMappingURL=sq-_hRPaeUy.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as d, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const s = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "mindre än en sekund",
|
|
@@ -373,4 +373,4 @@ const s = {
|
|
|
373
373
|
export {
|
|
374
374
|
q as sv
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=sv-
|
|
376
|
+
//# sourceMappingURL=sv-g009fSpe.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { B as
|
|
5
|
-
function
|
|
1
|
+
import { jsx as a, jsxs as u, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, Fragment as x } from "react";
|
|
3
|
+
import { c as o } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { B as C } from "./badge-zsf5i5bH.js";
|
|
5
|
+
function w(r) {
|
|
6
6
|
return r > 99 ? "99+" : String(r);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const N = o("ds:shrink-0", {
|
|
9
9
|
variants: {
|
|
10
10
|
position: {
|
|
11
11
|
top: "ds:pt-[var(--spacing-md)]",
|
|
@@ -17,7 +17,7 @@ const x = d("ds:shrink-0", {
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
defaultVariants: { position: "top", fill: !1 }
|
|
20
|
-
}),
|
|
20
|
+
}), k = "ds:flex ds:[justify-content:safe_center] ds:overflow-x-auto ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--card-border)] ds:bg-[var(--card)]/80 ds:backdrop-blur-md ds:shadow-[var(--shadow-md)] ds:py-[var(--spacing-xs)]", y = o(
|
|
21
21
|
"ds:flex ds:items-stretch ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
22
22
|
{
|
|
23
23
|
variants: {
|
|
@@ -25,7 +25,7 @@ const x = d("ds:shrink-0", {
|
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: { fill: !1 }
|
|
27
27
|
}
|
|
28
|
-
),
|
|
28
|
+
), f = o(
|
|
29
29
|
"ds:group ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:whitespace-nowrap ds:cursor-pointer ds:appearance-none ds:border-0 ds:bg-transparent ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-regular)] ds:text-[color:var(--foreground)] ds:no-underline ds:hover:bg-[var(--muted)]/20 ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
30
30
|
{
|
|
31
31
|
variants: {
|
|
@@ -40,38 +40,57 @@ const x = d("ds:shrink-0", {
|
|
|
40
40
|
},
|
|
41
41
|
defaultVariants: { fill: !1 }
|
|
42
42
|
}
|
|
43
|
-
),
|
|
44
|
-
({
|
|
43
|
+
), V = "ds:inline-flex ds:items-center ds:text-[color:var(--accent)] ds:[&>svg]:size-4", B = "ds:group-aria-[current=page]:underline ds:group-aria-[current=page]:decoration-2 ds:group-aria-[current=page]:decoration-[color:var(--accent)] ds:group-aria-[current=page]:underline-offset-[var(--spacing-xs)]", j = h(
|
|
44
|
+
({
|
|
45
|
+
items: r,
|
|
46
|
+
ariaLabel: g,
|
|
47
|
+
onSelect: e,
|
|
48
|
+
renderLink: t,
|
|
49
|
+
fill: n = !1,
|
|
50
|
+
position: v = "top",
|
|
51
|
+
className: c
|
|
52
|
+
}, m) => /* @__PURE__ */ a(
|
|
45
53
|
"div",
|
|
46
54
|
{
|
|
47
|
-
ref:
|
|
55
|
+
ref: m,
|
|
48
56
|
"data-component": "tab-bar",
|
|
49
|
-
className: `${
|
|
50
|
-
children: /* @__PURE__ */ a("div", { className:
|
|
51
|
-
const
|
|
52
|
-
s.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className:
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */ a("span", { className:
|
|
55
|
-
|
|
57
|
+
className: `${N({ position: v, fill: n })}${c ? ` ${c}` : ""}`,
|
|
58
|
+
children: /* @__PURE__ */ a("div", { className: k, children: /* @__PURE__ */ a("nav", { "aria-label": g, className: y({ fill: n }), children: r.map((s) => {
|
|
59
|
+
const l = typeof s.badgeCount == "number" && s.badgeCount > 0 ? s.badgeCount : void 0, d = s.isActive ? "page" : void 0, i = /* @__PURE__ */ u(b, { children: [
|
|
60
|
+
s.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: V, children: s.icon }) : null,
|
|
61
|
+
/* @__PURE__ */ u("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
62
|
+
/* @__PURE__ */ a("span", { className: B, children: s.label }),
|
|
63
|
+
l !== void 0 ? /* @__PURE__ */ a(C, { variant: "neutral", children: w(l) }) : null
|
|
56
64
|
] })
|
|
57
65
|
] });
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
66
|
+
if (s.href !== void 0) {
|
|
67
|
+
const p = f({ fill: n });
|
|
68
|
+
return t ? /* @__PURE__ */ a(x, { children: t({
|
|
61
69
|
href: s.href,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
s.id
|
|
67
|
-
|
|
70
|
+
className: p,
|
|
71
|
+
children: i,
|
|
72
|
+
"aria-current": d,
|
|
73
|
+
onClick: s.onClick
|
|
74
|
+
}) }, s.id) : /* @__PURE__ */ a(
|
|
75
|
+
"a",
|
|
76
|
+
{
|
|
77
|
+
href: s.href,
|
|
78
|
+
"aria-current": d,
|
|
79
|
+
className: p,
|
|
80
|
+
...s.onClick ? { onClick: s.onClick } : {},
|
|
81
|
+
children: i
|
|
82
|
+
},
|
|
83
|
+
s.id
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
return /* @__PURE__ */ a(
|
|
68
87
|
"button",
|
|
69
88
|
{
|
|
70
89
|
type: "button",
|
|
71
|
-
"aria-current":
|
|
72
|
-
className:
|
|
73
|
-
onClick: () =>
|
|
74
|
-
children:
|
|
90
|
+
"aria-current": d,
|
|
91
|
+
className: f({ fill: n }),
|
|
92
|
+
onClick: () => e == null ? void 0 : e(s.id),
|
|
93
|
+
children: i
|
|
75
94
|
},
|
|
76
95
|
s.id
|
|
77
96
|
);
|
|
@@ -79,8 +98,8 @@ const x = d("ds:shrink-0", {
|
|
|
79
98
|
}
|
|
80
99
|
)
|
|
81
100
|
);
|
|
82
|
-
|
|
101
|
+
j.displayName = "TabBar";
|
|
83
102
|
export {
|
|
84
|
-
|
|
103
|
+
j as T
|
|
85
104
|
};
|
|
86
|
-
//# sourceMappingURL=tab-bar-
|
|
105
|
+
//# sourceMappingURL=tab-bar-Xetknddo.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o,
|
|
1
|
+
import { q as o, r as n, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "bir saniyeden az",
|
|
@@ -375,4 +375,4 @@ const d = {
|
|
|
375
375
|
export {
|
|
376
376
|
O as tr
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=tr-
|
|
378
|
+
//# sourceMappingURL=tr-OKUOuhMW.js.map
|