@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.
Files changed (94) hide show
  1. package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
  2. package/dist/_chunks/bmi-calculator-DFPWL2OJ.js +273 -0
  3. package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
  4. package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-D-nfvteH.js} +2 -2
  5. package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
  6. package/dist/_chunks/{cycle-calculator-DsZbyzX6.js → cycle-calculator-ChHBcjet.js} +65 -56
  7. package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
  8. package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
  9. package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
  10. package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
  11. package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
  12. package/dist/_chunks/dialog-BTpZV6It.js +223 -0
  13. package/dist/_chunks/{due-date-calculator-s_CBgaFs.js → due-date-calculator-CYXKLoof.js} +65 -45
  14. package/dist/_chunks/{editable-currency-cell-renderer-BhUkRiPZ.js → editable-currency-cell-renderer-9jqwDv5x.js} +2 -2
  15. package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
  16. package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
  17. package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
  18. package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
  19. package/dist/_chunks/gestational-age-calculator-sRmoqgVr.js +190 -0
  20. package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
  21. package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
  22. package/dist/_chunks/insert-result-CoC1oo6R.js +334 -0
  23. package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
  24. package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
  25. package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
  26. package/dist/_chunks/{marketplace-app-shell-kVAVycz_.js → marketplace-app-shell-Dc5cTIt8.js} +186 -149
  27. package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
  28. package/dist/_chunks/{patient-shell-lDX3wwu6.js → patient-shell-CnT4L8gn.js} +2 -2
  29. package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
  30. package/dist/_chunks/{pregnancy-weight-gain-B7kBK-ZR.js → pregnancy-weight-gain-C5YhfYnL.js} +60 -50
  31. package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
  32. package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
  33. package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
  34. package/dist/_chunks/{sign-document-QHfcNKFj.js → sign-document-B-3k_0LO.js} +165 -137
  35. package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
  36. package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
  37. package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
  38. package/dist/_chunks/{tab-bar-C4II-7ej.js → tab-bar-Xetknddo.js} +53 -34
  39. package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
  40. package/dist/_chunks/{unit-converter-D1UrEUxa.js → unit-converter-Ds9jalbN.js} +78 -67
  41. package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
  42. package/dist/agent-catalog.json +1 -1
  43. package/dist/components/_shared/calendar-class-names.d.ts +8 -0
  44. package/dist/components/_shared/index.d.ts +2 -0
  45. package/dist/components/_shared/insert-result.d.ts +149 -4
  46. package/dist/components/badge/badge.d.ts +1 -1
  47. package/dist/components/bmi-calculator/bmi-calculator.d.ts +6 -0
  48. package/dist/components/bmi-calculator/index.js +1 -1
  49. package/dist/components/booking/index.js +1 -1
  50. package/dist/components/calculator-dialog/index.js +1 -1
  51. package/dist/components/card/card.d.ts +1 -1
  52. package/dist/components/chart/chart.d.ts +10 -0
  53. package/dist/components/chart/index.js +1 -1
  54. package/dist/components/cycle-calculator/cycle-calculator.d.ts +6 -0
  55. package/dist/components/cycle-calculator/index.js +1 -1
  56. package/dist/components/data-table/index.js +1 -1
  57. package/dist/components/date-picker/date-picker.d.ts +0 -1
  58. package/dist/components/date-picker/index.js +1 -1
  59. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  60. package/dist/components/date-range-picker/index.js +1 -1
  61. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
  62. package/dist/components/date-time-picker/index.js +1 -1
  63. package/dist/components/dialog/dialog.d.ts +1 -0
  64. package/dist/components/dialog/index.js +1 -1
  65. package/dist/components/due-date-calculator/due-date-calculator.d.ts +6 -0
  66. package/dist/components/due-date-calculator/index.js +2 -2
  67. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +6 -0
  68. package/dist/components/gestational-age-calculator/index.js +1 -1
  69. package/dist/components/header/header.d.ts +8 -0
  70. package/dist/components/header/index.js +1 -1
  71. package/dist/components/index.d.ts +1 -1
  72. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  73. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +6 -0
  74. package/dist/components/public-header/public-header.d.ts +1 -1
  75. package/dist/components/sign-document/index.js +1 -1
  76. package/dist/components/sign-document/sign-document.d.ts +12 -0
  77. package/dist/components/stat/stat.d.ts +1 -1
  78. package/dist/components/tab-bar/index.d.ts +1 -1
  79. package/dist/components/tab-bar/index.js +1 -1
  80. package/dist/components/tab-bar/tab-bar.d.ts +44 -1
  81. package/dist/components/unit-converter/index.js +1 -1
  82. package/dist/components/unit-converter/unit-converter.d.ts +6 -0
  83. package/dist/index.js +504 -502
  84. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  85. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +57 -1
  86. package/dist/patterns/patient-shell/index.js +1 -1
  87. package/dist/tokens.css +1411 -2
  88. package/package.json +1 -1
  89. package/dist/_chunks/bmi-calculator-D4juUcyF.js +0 -219
  90. package/dist/_chunks/dialog-Cee13rHU.js +0 -215
  91. package/dist/_chunks/gestational-age-calculator-CWOG3bkI.js +0 -178
  92. package/dist/_chunks/insert-result-DtQQeSSf.js +0 -227
  93. package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
  94. package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
@@ -1,12 +1,12 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as ie, useId as oe, useMemo as M, useRef as k, useState as b, useEffect as L, useCallback as c, useImperativeHandle as de } from "react";
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 ce } from "react-i18next";
5
- import { P as le } from "./pdf-viewer-B6MC6VTx.js";
6
- import { S as ge } from "./signature-capture-CpMBhqQ9.js";
7
- import { u as me } from "./registry-nPAVE19X.js";
8
- import { C as O } from "./circle-check-9AeSgJD_.js";
9
- const ue = {
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: (n) => n.isReadComplete()
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: (n) => n.confirm()
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: (n) => {
32
- n.reset();
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
- }, pe = i(
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
- ), fe = i(
57
+ ), he = i(
58
58
  ["type-heading-sm ds:text-[var(--foreground)]"].join(" ")
59
- ), ve = i(
59
+ ), xe = i(
60
60
  ["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"].join(" ")
61
- ), be = i(
61
+ ), ye = i(
62
62
  ["type-body-sm ds:font-medium ds:text-[var(--foreground)]"].join(" ")
63
- ), he = i(
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
- ), ye = i(
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
- ), xe = i(
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
- ), De = i(
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
- function Z(n, m) {
112
- const a = new Date(n);
113
- if (Number.isNaN(a.getTime())) return n;
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(m, {
123
+ return new Intl.DateTimeFormat(g, {
116
124
  dateStyle: "long",
117
125
  timeStyle: "short"
118
- }).format(a);
126
+ }).format(t);
119
127
  } catch {
120
- return a.toISOString();
128
+ return t.toISOString();
121
129
  }
122
130
  }
123
- const Se = ie(
131
+ const je = ce(
124
132
  ({
125
- id: n,
126
- src: m,
127
- documentTitle: a,
128
- requireReadToEnd: _ = !0,
129
- onSign: h,
130
- onError: y,
131
- signedAt: x = null,
132
- disabled: D = !1,
133
- readOnly: S = !1,
134
- ariaLabel: N,
135
- className: G
136
- }, J) => {
137
- const { t: s, i18n: z } = ce(), V = oe(), u = M(
138
- () => `sign-doc-${V.replace(/[^a-zA-Z0-9-_]/g, "")}`,
139
- [V]
140
- ), R = `${u}-doc-heading`, H = `${u}-sign-label`, Q = `${u}-live`, C = `${u}-gate-hint`, p = k(null), [E, w] = b(0), [U, $] = b(1), [W, j] = b(!1), [T, l] = b(!1), g = x != null, X = D || S || g, f = k(h), v = k(y);
141
- L(() => {
142
- f.current = h, v.current = y;
143
- }, [h, y]), L(() => {
144
- j(!1), w(0), $(1), l(!1);
145
- }, [m]);
146
- const Y = c(
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
- w(e.numPages), e.numPages <= 1 && j(!0);
157
+ k(e.numPages), e.numPages <= 1 && I(!0);
149
158
  },
150
159
  []
151
- ), q = c((e) => {
152
- $(e), w((t) => (t > 0 && e >= t && j(!0), t));
153
- }, []), ee = c((e) => {
154
- var t;
155
- (t = v.current) == null || t.call(v, e);
156
- }, []), B = !g && !S;
157
- L(() => {
158
- if (!B) return;
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 F = p.current;
161
- F && l(!F.isEmpty());
169
+ const Z = f.current;
170
+ Z && u(!Z.isEmpty());
162
171
  };
163
172
  e();
164
- const t = window.setInterval(e, 200);
165
- return () => window.clearInterval(t);
166
- }, [B]);
167
- const o = !_ || W, K = !(!X && o) || !T, se = c((e) => {
168
- var t;
169
- (t = f.current) == null || t.call(f, e);
170
- }, []), I = c(async () => {
171
- const e = p.current;
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
- }, []), A = c(() => {
182
+ }, []), O = l(() => {
174
183
  var e;
175
- (e = p.current) == null || e.clear(), l(!1);
176
- }, []), P = M(
184
+ (e = f.current) == null || e.clear(), u(!1);
185
+ }, []), V = G(
177
186
  () => ({
178
- reset: A,
179
- confirm: I,
180
- isReadComplete: () => o
187
+ reset: O,
188
+ confirm: P,
189
+ isReadComplete: () => d
181
190
  }),
182
- [A, I, o]
191
+ [O, P, d]
183
192
  );
184
- de(J, () => P, [P]), me(ue, P, n);
185
- const ne = N ?? (a ? s("signDocument.regionLabelNamed", { title: a }) : s("signDocument.regionLabel")), ae = a ?? s("signDocument.documentLabel"), te = g ? s("signDocument.signedOn", {
186
- date: Z(x, z.language)
187
- }) : o ? s("signDocument.readyToSign") : "", re = o ? T ? "" : s("signDocument.signToEnable") : s("signDocument.scrollToEnd");
188
- return /* @__PURE__ */ d(
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": !N && a ? R : void 0,
193
- "aria-label": N || !a ? ne : void 0,
194
- "aria-disabled": D || void 0,
195
- className: [pe(), G].filter(Boolean).join(" "),
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": n,
198
- "data-signed": g || void 0,
209
+ "data-component-id": a,
210
+ "data-signed": m || void 0,
199
211
  children: [
200
- /* @__PURE__ */ r(
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: Q,
209
- children: te
220
+ id: Y,
221
+ children: oe
210
222
  }
211
223
  ),
212
- /* @__PURE__ */ r("span", { className: "ds:sr-only", id: C, children: re }),
213
- a ? /* @__PURE__ */ r("h2", { id: R, className: fe(), children: a }) : null,
214
- /* @__PURE__ */ r(
215
- le,
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: m,
218
- ariaLabel: ae,
219
- onLoadComplete: Y,
220
- onPageChange: q,
221
- onError: ee
229
+ src: g,
230
+ ariaLabel: ie,
231
+ onLoadComplete: se,
232
+ onPageChange: ne,
233
+ onError: ae
222
234
  }
223
235
  ),
224
- g ? (
236
+ m ? (
225
237
  /* ---- Already-signed, read-only ---- */
226
- /* @__PURE__ */ d(
238
+ /* @__PURE__ */ c(
227
239
  "div",
228
240
  {
229
- className: De(),
241
+ className: we(),
230
242
  "data-testid": "sign-document-signed",
231
243
  children: [
232
- /* @__PURE__ */ r(
233
- O,
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__ */ d("span", { className: "type-body-sm", children: [
240
- /* @__PURE__ */ r("strong", { className: "ds:font-semibold", children: s("signDocument.signed") }),
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: Z(x, z.language)
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
- ) : S ? null : (
269
+ ) : w ? null : (
250
270
  /* ---- Sign surface ---- */
251
- /* @__PURE__ */ d(
271
+ /* @__PURE__ */ c(
252
272
  "div",
253
273
  {
254
- className: ve(),
274
+ className: xe(),
255
275
  role: "group",
256
- "aria-labelledby": H,
257
- "aria-describedby": C,
276
+ "aria-labelledby": T,
277
+ "aria-describedby": N,
258
278
  children: [
259
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
260
- /* @__PURE__ */ r("span", { id: H, className: be(), children: s("signDocument.signatureSection") }),
261
- E > 0 ? /* @__PURE__ */ r(
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: he(),
284
+ className: De(),
265
285
  "data-testid": "sign-document-progress",
266
286
  children: s("signDocument.pageProgress", {
267
- current: U,
268
- total: E
287
+ current: q,
288
+ total: $
269
289
  })
270
290
  }
271
291
  ) : null
272
292
  ] }),
273
- _ && !o ? /* @__PURE__ */ r("p", { className: ye(), "data-testid": "sign-document-hint", children: s("signDocument.scrollToEnd") }) : null,
274
- /* @__PURE__ */ r(
275
- ge,
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: p,
305
+ ref: f,
278
306
  ariaLabel: s("signDocument.signatureSection"),
279
- disabled: D || !o,
280
- onStart: () => l(!0),
281
- onClear: () => l(!1),
282
- onConfirm: se
307
+ disabled: C || !d,
308
+ onStart: () => u(!0),
309
+ onClear: () => u(!1),
310
+ onConfirm: te
283
311
  }
284
312
  ),
285
- /* @__PURE__ */ d(
313
+ /* @__PURE__ */ c(
286
314
  "button",
287
315
  {
288
316
  type: "button",
289
317
  onClick: () => {
290
- K || I();
318
+ M || P();
291
319
  },
292
- disabled: K,
293
- "aria-describedby": C,
294
- className: xe(),
320
+ disabled: M,
321
+ "aria-describedby": N,
322
+ className: Ce(),
295
323
  "data-testid": "sign-document-confirm",
296
324
  children: [
297
- /* @__PURE__ */ r(O, { "aria-hidden": "true", className: "ds:size-4" }),
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
- Se.displayName = "SignDocument";
339
+ je.displayName = "SignDocument";
312
340
  export {
313
- Se as S,
314
- ue as s
341
+ je as S,
342
+ ve as s
315
343
  };
316
- //# sourceMappingURL=sign-document-QHfcNKFj.js.map
344
+ //# sourceMappingURL=sign-document-B-3k_0LO.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
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
- }, y = (e, a) => {
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
- }, w = {
212
- ordinalNumber: y,
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: w,
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-BujHSAWu.js.map
355
+ //# sourceMappingURL=sq-_hRPaeUy.js.map
@@ -0,0 +1,8 @@
1
+ import { a as o } from "./date-picker-variants-DLi1Va_e.js";
2
+ function n(a, s, r) {
3
+ return o(a, -s, r);
4
+ }
5
+ export {
6
+ n as s
7
+ };
8
+ //# sourceMappingURL=subDays-Dv7q9S7u.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
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-C8AeDrTA.js.map
376
+ //# sourceMappingURL=sv-g009fSpe.js.map
@@ -1,11 +1,11 @@
1
- import { jsx as a, jsxs as c, Fragment as g } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- import { c as d } from "./index-D2ZczOXr.js";
4
- import { B as b } from "./badge-zsf5i5bH.js";
5
- function h(r) {
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 x = d("ds:shrink-0", {
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
- }), w = "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)]", C = d(
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
- ), p = d(
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
- ), N = "ds:inline-flex ds:items-center ds:text-[color:var(--accent)] ds:[&>svg]:size-4", y = "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)]", V = m(
44
- ({ items: r, ariaLabel: u, onSelect: n, fill: e = !1, position: f = "top", className: i }, v) => /* @__PURE__ */ a(
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: v,
55
+ ref: m,
48
56
  "data-component": "tab-bar",
49
- className: `${x({ position: f, fill: e })}${i ? ` ${i}` : ""}`,
50
- children: /* @__PURE__ */ a("div", { className: w, children: /* @__PURE__ */ a("nav", { "aria-label": u, className: C({ fill: e }), children: r.map((s) => {
51
- const o = typeof s.badgeCount == "number" && s.badgeCount > 0 ? s.badgeCount : void 0, t = s.isActive ? "page" : void 0, l = /* @__PURE__ */ c(g, { children: [
52
- s.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: N, children: s.icon }) : null,
53
- /* @__PURE__ */ c("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
54
- /* @__PURE__ */ a("span", { className: y, children: s.label }),
55
- o !== void 0 ? /* @__PURE__ */ a(b, { variant: "neutral", children: h(o) }) : null
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
- return s.href ? /* @__PURE__ */ a(
59
- "a",
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
- "aria-current": t,
63
- className: p({ fill: e }),
64
- children: l
65
- },
66
- s.id
67
- ) : /* @__PURE__ */ a(
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": t,
72
- className: p({ fill: e }),
73
- onClick: () => n == null ? void 0 : n(s.id),
74
- children: l
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
- V.displayName = "TabBar";
101
+ j.displayName = "TabBar";
83
102
  export {
84
- V as T
103
+ j as T
85
104
  };
86
- //# sourceMappingURL=tab-bar-C4II-7ej.js.map
105
+ //# sourceMappingURL=tab-bar-Xetknddo.js.map
@@ -1,4 +1,4 @@
1
- import { o, q as n, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
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-CMSs_Vgf.js.map
378
+ //# sourceMappingURL=tr-OKUOuhMW.js.map