@alfadocs/ui-kit 1.136.0 → 1.137.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 (66) hide show
  1. package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
  2. package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
  3. package/dist/_chunks/calendar-appointment-editor-dialog-D0n_bVsT.js +5518 -0
  4. package/dist/_chunks/calendar-editor-discard-host-1UfmMOEb.js +1336 -0
  5. package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
  6. package/dist/_chunks/calendar-waiting-list-panel-Ckd6tSeu.js +981 -0
  7. package/dist/_chunks/calendar-workspace.model-DrOoxY1b.js +1557 -0
  8. package/dist/_chunks/calendar.sheets-Datc0-IT.js +4585 -0
  9. package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
  10. package/dist/_chunks/{document-preview-DWlejd8A.js → document-preview-CirR3C_m.js} +2 -2
  11. package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
  12. package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
  13. package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
  14. package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
  15. package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
  16. package/dist/_chunks/{patient-account-settings-Bmfeclpd.js → patient-account-settings-COybehKx.js} +2 -2
  17. package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-DZnyYDKH.js} +3 -3
  18. package/dist/_chunks/{patient-details-9eh9cNy7.js → patient-details-Dv7EiTCo.js} +2 -2
  19. package/dist/_chunks/{patient-field-row-B782eT0C.js → patient-field-row-DuHWGlLz.js} +2 -2
  20. package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
  21. package/dist/_chunks/{patient-summary-card-K9zaMl1O.js → patient-summary-card-D-cDzOim.js} +2 -2
  22. package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-DdzvroYP.js} +2 -2
  23. package/dist/_chunks/{portal-documents-DVKj6Sco.js → portal-documents-CNmoYWFc.js} +2 -2
  24. package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
  25. package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
  26. package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
  27. package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
  28. package/dist/agent-catalog.json +1 -1
  29. package/dist/appointment-editor-panel/index.js +100 -0
  30. package/dist/booking-tools-data/index.js +82 -0
  31. package/dist/browser-support.js +1 -1
  32. package/dist/calendar-action-buttons/index.js +178 -0
  33. package/dist/components/appointment-details-panel/index.js +6 -5
  34. package/dist/components/color-picker/index.js +5 -4
  35. package/dist/components/document-preview/index.js +1 -1
  36. package/dist/components/fiscal-code-input/index.js +1 -1
  37. package/dist/components/iban-input/index.js +1 -1
  38. package/dist/components/notes-panel/index.js +1 -1
  39. package/dist/components/patient-details/index.js +1 -1
  40. package/dist/components/patient-summary-card/index.js +1 -1
  41. package/dist/components/rich-text-editor/index.js +1 -1
  42. package/dist/components/task-editor/index.js +1 -1
  43. package/dist/find-free-slots-panel/index.js +58 -0
  44. package/dist/index.js +1328 -1322
  45. package/dist/online-bookings-panel/index.js +69 -0
  46. package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
  47. package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
  48. package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
  49. package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
  50. package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
  51. package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
  52. package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
  53. package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
  54. package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
  55. package/dist/patterns/calendar/calendar.model.d.ts +9 -0
  56. package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
  57. package/dist/patterns/calendar/index.js +24 -20
  58. package/dist/patterns/patient-account-settings/index.js +1 -1
  59. package/dist/patterns/patient-check-in/index.js +1 -1
  60. package/dist/patterns/patient-portal/index.js +2 -2
  61. package/dist/waiting-list-panel/index.js +158 -0
  62. package/package.json +27 -2
  63. package/dist/_chunks/calendar-appointment-editor-dialog-CB4cQOtc.js +0 -13773
  64. package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
  65. package/dist/_chunks/task-editor-BfXSn6U1.js +0 -1257
  66. package/dist/_chunks/use-appointment-details-read-7J0j1FP7.js +0 -2476
@@ -0,0 +1,582 @@
1
+ import { jsx as a, jsxs as n, Fragment as we } from "react/jsx-runtime";
2
+ import { forwardRef as ke, useId as Ne, useState as z, useMemo as $, useCallback as Ce, useRef as D, useEffect as Q } from "react";
3
+ import * as _ from "@radix-ui/react-popover";
4
+ import { u as ye, f as Pe } from "./non-modal-tab-exit-j3CPOuE3.js";
5
+ import { c as ee } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as Se } from "react-i18next";
7
+ import { a as Ae } from "./format-number-DdzqwMs1.js";
8
+ import { u as ze, a as $e } from "./form-field-context-DtiROUJV.js";
9
+ import { S as se } from "./slider-pZ95bEm7.js";
10
+ import { u as Ee } from "./registry-DvAUVLHh.js";
11
+ import { p as f, f as K, h, A as Te, c as He, m as Re, a as _e } from "./palettes-CKVXYTzo.js";
12
+ import { C as re } from "./check-DrFSN__t.js";
13
+ import { X as Ie } from "./x-B5YnXwCz.js";
14
+ const Le = {
15
+ id: "color-picker",
16
+ capabilities: ["set_value"],
17
+ state: {
18
+ value: {
19
+ type: "string",
20
+ descriptionKey: "ui.agent.colorPicker.state.value",
21
+ description: 'Currently picked colour as a hex string (e.g. "#3b82f6").',
22
+ read: (d) => d.getValue()
23
+ }
24
+ },
25
+ actions: {
26
+ set_value: {
27
+ safety: "write",
28
+ argsType: "{ hex: string }",
29
+ argsSchema: {
30
+ type: "object",
31
+ properties: {
32
+ hex: {
33
+ type: "string",
34
+ description: 'Hex colour string, e.g. "#3b82f6".'
35
+ }
36
+ },
37
+ required: ["hex"]
38
+ },
39
+ idempotent: !0,
40
+ descriptionKey: "ui.agent.colorPicker.actions.setValue",
41
+ description: "Set the picked colour from a hex string.",
42
+ examples: [{ args: { hex: "#3b82f6" }, note: "Set to brand blue." }],
43
+ invoke: (d, u) => {
44
+ d.setValue(u.hex);
45
+ }
46
+ }
47
+ },
48
+ domHooks: {
49
+ root: {
50
+ attr: "data-component",
51
+ value: "color-picker",
52
+ description: "Marks the ColorPicker wrapper (inline) or trigger (popover variant)."
53
+ },
54
+ instanceId: {
55
+ attr: "data-component-id",
56
+ sourceProp: "id",
57
+ description: "Sourced from the id prop."
58
+ }
59
+ }
60
+ }, i = 6, Me = ee(
61
+ [
62
+ "ds:inline-flex ds:items-center ds:w-full",
63
+ "ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
64
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
65
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
66
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
67
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
68
+ ].join(" "),
69
+ {
70
+ variants: {
71
+ size: {
72
+ sm: "ds:h-8 ds:text-[length:var(--font-size-sm)] ds:ps-3 ds:pe-3",
73
+ md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)] ds:ps-3 ds:pe-3",
74
+ lg: "ds:h-12 ds:text-[length:var(--font-size-lg)] ds:ps-4 ds:pe-4"
75
+ }
76
+ },
77
+ defaultVariants: { size: "md" }
78
+ }
79
+ ), Ve = ee(
80
+ [
81
+ "ds:relative ds:rounded-[var(--radius-sm)] ds:border-2 ds:cursor-pointer",
82
+ "ds:transition-[transform,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
83
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
84
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
85
+ "ds:hover:scale-110",
86
+ // The swatch background is the user-picked colour — set as a CSS custom
87
+ // property via inline `style` per 23-constraints §Runtime-computed
88
+ // dimensions (CSS custom property setter; the bg rule lives on the class).
89
+ "ds:bg-[var(--swatch-bg)]"
90
+ ].join(" "),
91
+ {
92
+ variants: {
93
+ selected: {
94
+ true: "ds:border-[var(--primary)] ds:shadow-[var(--shadow-md)]",
95
+ false: "ds:border-transparent"
96
+ },
97
+ // Swatch footprint. md/lg honour --min-target-size (44/48px) for touch.
98
+ // sm is a denser 28px swatch for toolbar/inline use — comfortably above
99
+ // the WCAG 2.5.8 (AA) 24px minimum, with the grid gap providing spacing.
100
+ // sm intentionally does NOT take the accessible-theme --min-target-size
101
+ // bump (48px) — a dense colour grid is opt-in and the full roving-tabindex
102
+ // keyboard path is the mitigation for the sub-AAA pointer target.
103
+ size: {
104
+ // sm = 28px: clears WCAG 2.5.8 (AA, 24px) but intentionally opts out of
105
+ // the accessible-theme 48px min-target bump — a conscious, signed-off
106
+ // trade-off (dense opt-in grid; keyboard roving-tabindex is the mitigation).
107
+ sm: "ds:min-w-7 ds:min-h-7",
108
+ md: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
109
+ lg: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]"
110
+ }
111
+ },
112
+ defaultVariants: { selected: !1, size: "md" }
113
+ }
114
+ ), Oe = [
115
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
116
+ "ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
117
+ "ds:p-[var(--spacing-md)]"
118
+ ].join(" "), Fe = [
119
+ "ds:bg-[image:repeating-conic-gradient(var(--color-grey-700)_0%_25%,transparent_0%_50%)]",
120
+ "ds:bg-[size:8px_8px]"
121
+ ].join(" "), je = [
122
+ "ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
123
+ "ds:p-[var(--spacing-sm)]"
124
+ ].join(" "), De = [
125
+ "ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
126
+ "ds:p-[var(--spacing-xs)]"
127
+ ].join(" "), Ke = [
128
+ "ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
129
+ "ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:shadow-[var(--shadow-lg)]",
130
+ "ds:w-72",
131
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
132
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
133
+ "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=top]:slide-in-from-bottom-2",
134
+ "ds:data-[side=left]:slide-in-from-right-2 ds:data-[side=right]:slide-in-from-left-2"
135
+ ].join(" "), Be = [
136
+ "ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-[var(--background)] ds:text-[var(--foreground)]",
137
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-sm)]",
138
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
139
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
140
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
141
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
142
+ ].join(" "), ae = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent", Ge = ke(
143
+ (d, u) => {
144
+ const {
145
+ value: c,
146
+ defaultValue: I,
147
+ onChange: x,
148
+ format: w = "hex",
149
+ allowOpacity: y = !1,
150
+ palette: P,
151
+ against: S,
152
+ size: L = "md",
153
+ disabled: te = !1,
154
+ variant: ie = "inline",
155
+ compact: A = !0,
156
+ className: G
157
+ } = d, { t: o, i18n: ne } = Se("ui"), k = ze(), oe = Ne(), v = $e(k) || oe, m = k.disabled || te, E = c !== void 0, [U, de] = z(() => {
158
+ const e = c ?? I;
159
+ if (e) {
160
+ const r = f(e);
161
+ if (r) return r;
162
+ }
163
+ return { h: 0, s: 100, l: 50, a: 1 };
164
+ }), s = $(() => {
165
+ if (E && c) {
166
+ const e = f(c);
167
+ if (e) return e;
168
+ }
169
+ return U;
170
+ }, [E, c, U]), g = Ce(
171
+ (e) => {
172
+ const r = y ? e : { ...e, a: 1 };
173
+ E || de(r), x == null || x(K(r, w));
174
+ },
175
+ [y, w, E, x]
176
+ ), [q, M] = z(() => h(s)), [le, T] = z(!1), b = D(void 0), V = D(s);
177
+ V.current = s, Q(() => {
178
+ M(h(s)), T(!1), b.current !== void 0 && (clearTimeout(b.current), b.current = void 0);
179
+ }, [s]), Q(() => () => {
180
+ b.current !== void 0 && clearTimeout(b.current);
181
+ }, []);
182
+ const ce = () => {
183
+ const e = f(q);
184
+ e ? (T(!1), g(e)) : (T(!0), b.current = setTimeout(() => {
185
+ b.current = void 0, T(!1), M(h(V.current));
186
+ }, 800));
187
+ }, N = $(() => P ? P.map(
188
+ (e) => typeof e == "string" ? { name: e.toUpperCase(), hex: e } : e
189
+ ) : Te, [P]), ue = h(s), O = $(
190
+ () => N.map((e) => {
191
+ const r = f(e.hex);
192
+ return r ? h(r).toLowerCase() : null;
193
+ }),
194
+ [N]
195
+ ).findIndex(
196
+ (e) => e !== null && e === ue.toLowerCase()
197
+ ), H = D(null), [l, W] = z(
198
+ O >= 0 ? O : 0
199
+ ), me = (e) => {
200
+ var t;
201
+ const r = (t = H.current) == null ? void 0 : t.querySelectorAll('[role="gridcell"]');
202
+ r != null && r[e] && (r[e].focus(), W(e));
203
+ }, ge = (e) => {
204
+ if (m) return;
205
+ const r = N.length;
206
+ let t = l;
207
+ const p = (typeof window < "u" && H.current ? window.getComputedStyle(H.current).direction === "rtl" : !1) ? -1 : 1;
208
+ switch (e.key) {
209
+ case "ArrowRight":
210
+ t = (l + p + r) % r;
211
+ break;
212
+ case "ArrowLeft":
213
+ t = (l - p + r) % r;
214
+ break;
215
+ case "ArrowDown":
216
+ t = Math.min(l + i, r - 1);
217
+ break;
218
+ case "ArrowUp":
219
+ t = Math.max(l - i, 0);
220
+ break;
221
+ case "Home":
222
+ t = Math.floor(l / i) * i;
223
+ break;
224
+ case "End":
225
+ t = Math.min(
226
+ Math.floor(l / i) * i + i - 1,
227
+ r - 1
228
+ );
229
+ break;
230
+ case "PageUp":
231
+ t = l % i;
232
+ break;
233
+ case "PageDown": {
234
+ const C = Math.floor((r - 1) / i) * i;
235
+ t = Math.min(C + l % i, r - 1);
236
+ break;
237
+ }
238
+ case "Enter":
239
+ case " ": {
240
+ e.preventDefault();
241
+ const C = f(N[l].hex);
242
+ C && g(C);
243
+ return;
244
+ }
245
+ default:
246
+ return;
247
+ }
248
+ e.preventDefault(), me(t);
249
+ }, [pe, X] = z(!1), fe = $(
250
+ () => ({
251
+ getValue: () => h(V.current),
252
+ setValue: (e) => {
253
+ const r = f(e);
254
+ r && g(r);
255
+ }
256
+ }),
257
+ [g]
258
+ );
259
+ Ee(Le, fe, v);
260
+ const R = $(() => {
261
+ if (!S) return null;
262
+ const e = f(S);
263
+ if (!e) return null;
264
+ const r = He(s, e);
265
+ return { ratio: r, aa: _e(r), aaa: Re(r) };
266
+ }, [S, s]), he = (
267
+ // eslint-disable-next-line jsx-a11y/interactive-supports-focus -- inner gridcells are individually focusable via roving tabindex
268
+ /* @__PURE__ */ a(
269
+ "div",
270
+ {
271
+ ref: H,
272
+ role: "grid",
273
+ "aria-label": o("inputs.colorPicker.paletteLabel", "Colour palette"),
274
+ onKeyDown: ge,
275
+ className: "ds:grid ds:grid-cols-6 ds:gap-[var(--spacing-xs)]",
276
+ children: N.map((e, r) => {
277
+ const t = Math.floor(r / i) * i;
278
+ return r === t ? /* @__PURE__ */ a("div", { role: "row", className: "ds:contents", children: N.slice(t, t + i).map((p, C) => {
279
+ const F = t + C, j = F === O;
280
+ return (
281
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events -- parent grid handles keyboard navigation via onKeyDown
282
+ /* @__PURE__ */ a(
283
+ "div",
284
+ {
285
+ role: "gridcell",
286
+ "aria-selected": j,
287
+ "aria-label": o("inputs.colorPicker.swatchLabel", {
288
+ name: p.name,
289
+ hex: p.hex
290
+ }),
291
+ tabIndex: F === l ? 0 : -1,
292
+ onClick: () => {
293
+ if (m) return;
294
+ const J = f(p.hex);
295
+ J && g(J), W(F);
296
+ },
297
+ className: Ve({ selected: j, size: L }),
298
+ style: { "--swatch-bg": p.hex },
299
+ children: j ? /* @__PURE__ */ a(
300
+ re,
301
+ {
302
+ "aria-hidden": "true",
303
+ className: "ds:absolute ds:inset-0 ds:m-auto ds:size-4 ds:text-[var(--background)] ds:mix-blend-difference"
304
+ }
305
+ ) : null
306
+ },
307
+ p.hex
308
+ )
309
+ );
310
+ }) }, r) : null;
311
+ })
312
+ }
313
+ )
314
+ ), ve = A ? null : /* @__PURE__ */ n(we, { children: [
315
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
316
+ /* @__PURE__ */ a(
317
+ "label",
318
+ {
319
+ htmlFor: `${v}-hex`,
320
+ className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]",
321
+ children: o("inputs.colorPicker.hex", "Hex")
322
+ }
323
+ ),
324
+ /* @__PURE__ */ a("bdi", { dir: "ltr", children: /* @__PURE__ */ a(
325
+ "input",
326
+ {
327
+ id: `${v}-hex`,
328
+ type: "text",
329
+ value: q,
330
+ disabled: m,
331
+ onChange: (e) => M(e.target.value),
332
+ onBlur: ce,
333
+ className: `${Be} ${le ? "ds:border-[var(--destructive)]" : "ds:border-[color:var(--control-border)]"}`
334
+ }
335
+ ) })
336
+ ] }),
337
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
338
+ /* @__PURE__ */ a(
339
+ B,
340
+ {
341
+ label: o("inputs.colorPicker.hue", "Hue"),
342
+ gradient: "linear-gradient(to right, hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%), hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%))",
343
+ min: 0,
344
+ max: 360,
345
+ value: s.h,
346
+ onChange: (e) => g({ ...s, h: e }),
347
+ formatValue: (e) => `H ${Math.round(e)}°`,
348
+ disabled: m
349
+ }
350
+ ),
351
+ /* @__PURE__ */ a(
352
+ B,
353
+ {
354
+ label: o("inputs.colorPicker.saturation", "Saturation"),
355
+ gradient: `linear-gradient(to right, hsl(${s.h},0%,${s.l}%), hsl(${s.h},100%,${s.l}%))`,
356
+ min: 0,
357
+ max: 100,
358
+ value: s.s,
359
+ onChange: (e) => g({ ...s, s: e }),
360
+ formatValue: (e) => `S ${Math.round(e)}%`,
361
+ disabled: m
362
+ }
363
+ ),
364
+ /* @__PURE__ */ a(
365
+ B,
366
+ {
367
+ label: o("inputs.colorPicker.lightness", "Lightness"),
368
+ gradient: `linear-gradient(to right, hsl(${s.h},${s.s}%,0%), hsl(${s.h},${s.s}%,50%), hsl(${s.h},${s.s}%,100%))`,
369
+ min: 0,
370
+ max: 100,
371
+ value: s.l,
372
+ onChange: (e) => g({ ...s, l: e }),
373
+ formatValue: (e) => `L ${Math.round(e)}%`,
374
+ disabled: m
375
+ }
376
+ ),
377
+ y ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
378
+ /* @__PURE__ */ a("label", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: o("inputs.colorPicker.opacity", "Opacity") }),
379
+ /* @__PURE__ */ n("div", { className: "ds:relative", children: [
380
+ /* @__PURE__ */ a(
381
+ "div",
382
+ {
383
+ className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${Fe}`,
384
+ "aria-hidden": "true"
385
+ }
386
+ ),
387
+ /* @__PURE__ */ a(
388
+ "div",
389
+ {
390
+ className: "ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ds:bg-[image:var(--opacity-gradient)]",
391
+ style: {
392
+ "--opacity-gradient": `linear-gradient(to right, hsla(${s.h},${s.s}%,${s.l}%,0), hsl(${s.h},${s.s}%,${s.l}%))`
393
+ },
394
+ "aria-hidden": "true"
395
+ }
396
+ ),
397
+ /* @__PURE__ */ a(
398
+ se,
399
+ {
400
+ min: 0,
401
+ max: 100,
402
+ step: 1,
403
+ value: [Math.round(s.a * 100)],
404
+ onValueChange: ([e]) => g({ ...s, a: e / 100 }),
405
+ "aria-label": o("inputs.colorPicker.opacity", "Opacity"),
406
+ formatValue: (e) => `${e}%`,
407
+ disabled: m,
408
+ className: ae
409
+ }
410
+ )
411
+ ] })
412
+ ] }) : null
413
+ ] }),
414
+ R ? /* @__PURE__ */ n(
415
+ "div",
416
+ {
417
+ className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]",
418
+ role: "status",
419
+ "aria-live": "polite",
420
+ children: [
421
+ /* @__PURE__ */ a("span", { className: "ds:tabular-nums", children: o("inputs.colorPicker.contrastRatio", {
422
+ ratio: Ae(R.ratio, ne.language, {
423
+ minimumFractionDigits: 1,
424
+ maximumFractionDigits: 1
425
+ })
426
+ }) }),
427
+ /* @__PURE__ */ a(Z, { level: "AA", passes: R.aa, t: o }),
428
+ /* @__PURE__ */ a(Z, { level: "AAA", passes: R.aaa, t: o })
429
+ ]
430
+ }
431
+ ) : null,
432
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
433
+ /* @__PURE__ */ a(
434
+ "div",
435
+ {
436
+ className: "ds:size-8 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--swatch-bg)]",
437
+ style: { "--swatch-bg": h(s) },
438
+ "aria-hidden": "true"
439
+ }
440
+ ),
441
+ /* @__PURE__ */ a("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:tabular-nums", children: K(s, w) })
442
+ ] })
443
+ ] }), Y = /* @__PURE__ */ n(
444
+ "div",
445
+ {
446
+ className: A ? L === "sm" ? De : je : Oe,
447
+ children: [
448
+ he,
449
+ ve
450
+ ]
451
+ }
452
+ ), be = ye(!0, {
453
+ getAnchor: Pe,
454
+ onReturnToTrigger: () => X(!1)
455
+ });
456
+ return ie === "inline" ? /* @__PURE__ */ a(
457
+ "div",
458
+ {
459
+ ref: u,
460
+ id: v,
461
+ className: G,
462
+ "aria-describedby": k.describedBy || void 0,
463
+ "aria-invalid": k.invalid || void 0,
464
+ "aria-disabled": m || void 0,
465
+ "data-component": "color-picker",
466
+ "data-component-id": v,
467
+ "data-testid": "color-picker",
468
+ children: Y
469
+ }
470
+ ) : /* @__PURE__ */ n(_.Root, { open: pe, onOpenChange: X, children: [
471
+ /* @__PURE__ */ a(_.Trigger, { asChild: !0, disabled: m, children: /* @__PURE__ */ n(
472
+ "button",
473
+ {
474
+ ref: u,
475
+ type: "button",
476
+ id: v,
477
+ "aria-describedby": k.describedBy || void 0,
478
+ "aria-invalid": k.invalid || void 0,
479
+ "aria-label": A ? o("inputs.colorPicker.triggerLabel", "Choose colour") : void 0,
480
+ className: Me({ size: L, className: G }),
481
+ "data-component": "color-picker",
482
+ "data-component-id": v,
483
+ "data-testid": "color-picker-trigger",
484
+ children: [
485
+ /* @__PURE__ */ a(
486
+ "span",
487
+ {
488
+ className: `ds:inline-block ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:shrink-0 ds:bg-[var(--swatch-bg)]${A ? "" : " ds:me-[var(--spacing-sm)]"}`,
489
+ "aria-hidden": "true",
490
+ style: { "--swatch-bg": h(s) }
491
+ }
492
+ ),
493
+ A ? null : /* @__PURE__ */ a("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: K(s, w) })
494
+ ]
495
+ }
496
+ ) }),
497
+ /* @__PURE__ */ a(_.Portal, { children: /* @__PURE__ */ a(
498
+ _.Content,
499
+ {
500
+ sideOffset: 4,
501
+ align: "start",
502
+ className: Ke,
503
+ onKeyDown: be,
504
+ children: Y
505
+ }
506
+ ) })
507
+ ] });
508
+ }
509
+ );
510
+ Ge.displayName = "ColorPicker";
511
+ function Z({
512
+ level: d,
513
+ passes: u,
514
+ t: c
515
+ }) {
516
+ return /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
517
+ /* @__PURE__ */ a(
518
+ "abbr",
519
+ {
520
+ title: `Web Content Accessibility Guidelines Level ${d}`,
521
+ className: "ds:no-underline ds:font-medium",
522
+ children: d
523
+ }
524
+ ),
525
+ u ? /* @__PURE__ */ a(
526
+ re,
527
+ {
528
+ "aria-hidden": "true",
529
+ className: "ds:size-4 ds:text-[var(--success)]"
530
+ }
531
+ ) : /* @__PURE__ */ a(
532
+ Ie,
533
+ {
534
+ "aria-hidden": "true",
535
+ className: "ds:size-4 ds:text-[var(--destructive)]"
536
+ }
537
+ ),
538
+ /* @__PURE__ */ a("span", { className: "ds:sr-only", children: u ? c("inputs.colorPicker.contrastPass", "Pass") : c("inputs.colorPicker.contrastFail", "Fail") })
539
+ ] });
540
+ }
541
+ function B({
542
+ label: d,
543
+ gradient: u,
544
+ min: c,
545
+ max: I,
546
+ value: x,
547
+ onChange: w,
548
+ formatValue: y,
549
+ disabled: P
550
+ }) {
551
+ return /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
552
+ /* @__PURE__ */ a("label", { className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: d }),
553
+ /* @__PURE__ */ n("div", { className: "ds:relative", children: [
554
+ /* @__PURE__ */ a(
555
+ "div",
556
+ {
557
+ className: "ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ds:bg-[image:var(--slider-gradient)]",
558
+ style: { "--slider-gradient": u },
559
+ "aria-hidden": "true"
560
+ }
561
+ ),
562
+ /* @__PURE__ */ a(
563
+ se,
564
+ {
565
+ min: c,
566
+ max: I,
567
+ step: 1,
568
+ value: [x],
569
+ onValueChange: ([S]) => w(S),
570
+ "aria-label": d,
571
+ formatValue: y,
572
+ disabled: P,
573
+ className: ae
574
+ }
575
+ )
576
+ ] })
577
+ ] });
578
+ }
579
+ export {
580
+ Ge as C
581
+ };
582
+ //# sourceMappingURL=color-picker-CC8ZfntU.js.map
@@ -11,7 +11,7 @@ import { P as pe } from "./pdf-viewer-TRC5jEm5.js";
11
11
  import { T as fe, b as he, c as ve, a as ge } from "./tabs-Czkmw5ou.js";
12
12
  import { a as we } from "./format-number-DdzqwMs1.js";
13
13
  import { c as ye } from "./intl-locale-FWh-Y5_3.js";
14
- import { a as be } from "./privacy-mask-C19dJFMk.js";
14
+ import { b as be } from "./privacy-mask-C2ZLKrMh.js";
15
15
  import { u as Pe } from "./use-controllable-state-BiY4xTzM.js";
16
16
  import { u as Ne } from "./registry-DvAUVLHh.js";
17
17
  import { F as xe } from "./file-image-cDgE-BTy.js";
@@ -382,4 +382,4 @@ export {
382
382
  Ve as D,
383
383
  Ce as d
384
384
  };
385
- //# sourceMappingURL=document-preview-DWlejd8A.js.map
385
+ //# sourceMappingURL=document-preview-CirR3C_m.js.map
@@ -3,7 +3,7 @@ import { forwardRef as et, useContext as tt, useState as le, useRef as Z, useId
3
3
  import { c as be } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as rt } from "react-i18next";
5
5
  import { u as ot, F as at, a as it } from "./form-field-context-DtiROUJV.js";
6
- import { I as ue, c as ct, a as j, b as X } from "./input-surface-BMffm2Vd.js";
6
+ import { I as ue, a as j, c as ct, b as X } from "./input-surface-BMffm2Vd.js";
7
7
  import { c as lt } from "./compose-refs-C0k0tdqF.js";
8
8
  import { u as dt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
9
  import { u as ut } from "./use-dom-value-DTxHhQAN.js";
@@ -569,4 +569,4 @@ export {
569
569
  he as i,
570
570
  kt as w
571
571
  };
572
- //# sourceMappingURL=fiscal-code-input-BBvU7sAo.js.map
572
+ //# sourceMappingURL=fiscal-code-input-DZlpaMGg.js.map
@@ -3,7 +3,7 @@ import { forwardRef as Le, useContext as _e, useState as O, useRef as _, useId a
3
3
  import { c as re } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Ke } from "react-i18next";
5
5
  import { u as Pe, F as Ue, a as we } from "./form-field-context-DtiROUJV.js";
6
- import { I as te, c as Ze, a as G, b as K } from "./input-surface-BMffm2Vd.js";
6
+ import { I as te, a as G, c as Ze, b as K } from "./input-surface-BMffm2Vd.js";
7
7
  import { c as ze } from "./compose-refs-C0k0tdqF.js";
8
8
  import { u as De } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
9
  import { u as je } from "./registry-DvAUVLHh.js";
@@ -433,4 +433,4 @@ export {
433
433
  qe as i,
434
434
  Je as w
435
435
  };
436
- //# sourceMappingURL=iban-input-DuTwKok5.js.map
436
+ //# sourceMappingURL=iban-input-CdSLRzQN.js.map
@@ -0,0 +1,33 @@
1
+ import { c as e } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const a = [
9
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
10
+ ["path", { d: "M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25", key: "1jrsq6" }],
11
+ ["path", { d: "m22 22-1.875-1.875", key: "13zax7" }],
12
+ ["path", { d: "M3 10h18", key: "8toen8" }],
13
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
14
+ ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
15
+ ], h = e("calendar-search", a);
16
+ /**
17
+ * @license lucide-react v1.22.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */
22
+ const t = [
23
+ ["path", { d: "M13 5h8", key: "a7qcls" }],
24
+ ["path", { d: "M13 12h8", key: "h98zly" }],
25
+ ["path", { d: "M13 19h8", key: "c3s6r1" }],
26
+ ["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
27
+ ["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1", key: "cif1o7" }]
28
+ ], o = e("list-todo", t);
29
+ export {
30
+ h as C,
31
+ o as L
32
+ };
33
+ //# sourceMappingURL=list-todo-KWvUhmT_.js.map
@@ -6,7 +6,7 @@ import { g as mt } from "./get-error-message-DbFUzuja.js";
6
6
  import { h as Rt } from "./handled-rejection-C-6Dq0As.js";
7
7
  import { u as zn } from "./registry-DvAUVLHh.js";
8
8
  import { C as Hn } from "./clinical-note-card-D--IwbZa.js";
9
- import { R as Mn } from "./rich-text-editor-DjHL1b3E.js";
9
+ import { R as Mn } from "./rich-text-editor-C48omVjq.js";
10
10
  import { T as Wn } from "./text-area-COMVJ1yE.js";
11
11
  import { A as j } from "./alert-C4WKViaS.js";
12
12
  import { B as te } from "./button-DohK_Ak_.js";
@@ -1110,4 +1110,4 @@ const Lr = qn(
1110
1110
  export {
1111
1111
  Lr as N
1112
1112
  };
1113
- //# sourceMappingURL=notes-panel-BvjAo4RQ.js.map
1113
+ //# sourceMappingURL=notes-panel-DsEKNtsw.js.map