@alfadocs/ui-kit 1.25.1-calendar.7 → 1.26.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/{address-fields-jFfjxOQR.js → address-fields-CZ0pEdEI.js} +3 -3
- package/dist/_chunks/{appointment-card-CvUFFEdS.js → appointment-card-Dzr3GeVz.js} +6 -8
- package/dist/_chunks/{appointment-timeline-DsMZY7U9.js → appointment-timeline-DhHwmHo1.js} +2 -2
- package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js → appointment-tray-4FUu_5NX.js} +2 -2
- package/dist/_chunks/{booking-B8C7jMrn.js → booking-BtSOKjQu.js} +401 -384
- package/dist/_chunks/{calendar-CBqU-UIR.js → calendar-CI9MINcR.js} +2 -4
- package/dist/_chunks/calendar-workspace-CTXjHC4R.js +7506 -0
- package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-CU303VjY.js} +25 -28
- package/dist/_chunks/{combobox-DnSdYssy.js → combobox-D7_NLE2Z.js} +215 -216
- package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-DzbPFktV.js} +2 -2
- package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-DA2vjqaM.js} +2 -2
- package/dist/_chunks/{notes-panel-D4S2VwDx.js → notes-panel-CTNpsByN.js} +2 -2
- package/dist/_chunks/{patient-details-CdfursHt.js → patient-details-DYAmq76G.js} +3 -3
- package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BBc7s7vR.js} +2 -2
- package/dist/_chunks/{rich-text-editor-VJATL1Tk.js → rich-text-editor-lSCiE0Zz.js} +2 -2
- package/dist/_chunks/signature-status-chip-n57D-hhv.js +179 -0
- package/dist/agent-catalog.json +3 -6
- package/dist/agent-i18n/en.json +2 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +0 -5
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/signature-status-chip/index.d.ts +2 -2
- package/dist/components/signature-status-chip/index.js +4 -3
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +100 -1
- package/dist/i18n/locales/ar.d.ts +13 -0
- package/dist/i18n/locales/ar.js +17 -1
- package/dist/i18n/locales/de.d.ts +13 -0
- package/dist/i18n/locales/de.js +17 -1
- package/dist/i18n/locales/el.d.ts +13 -0
- package/dist/i18n/locales/el.js +17 -1
- package/dist/i18n/locales/en.d.ts +13 -0
- package/dist/i18n/locales/en.js +17 -1
- package/dist/i18n/locales/es.d.ts +13 -0
- package/dist/i18n/locales/es.js +17 -1
- package/dist/i18n/locales/fr.d.ts +13 -0
- package/dist/i18n/locales/fr.js +17 -1
- package/dist/i18n/locales/hi.d.ts +13 -0
- package/dist/i18n/locales/hi.js +13 -1
- package/dist/i18n/locales/it.d.ts +13 -0
- package/dist/i18n/locales/it.js +17 -1
- package/dist/i18n/locales/ja.d.ts +13 -0
- package/dist/i18n/locales/ja.js +17 -1
- package/dist/i18n/locales/nl.d.ts +13 -0
- package/dist/i18n/locales/nl.js +17 -1
- package/dist/i18n/locales/pl.d.ts +13 -0
- package/dist/i18n/locales/pl.js +17 -1
- package/dist/i18n/locales/pt.d.ts +13 -0
- package/dist/i18n/locales/pt.js +17 -1
- package/dist/i18n/locales/ro.d.ts +13 -0
- package/dist/i18n/locales/ro.js +17 -1
- package/dist/i18n/locales/ru.d.ts +13 -0
- package/dist/i18n/locales/ru.js +17 -1
- package/dist/i18n/locales/sq.d.ts +13 -0
- package/dist/i18n/locales/sq.js +17 -1
- package/dist/i18n/locales/sv.d.ts +13 -0
- package/dist/i18n/locales/sv.js +17 -1
- package/dist/i18n/locales/tr.d.ts +13 -0
- package/dist/i18n/locales/tr.js +17 -1
- package/dist/i18n/locales/zh.d.ts +13 -0
- package/dist/i18n/locales/zh.js +13 -1
- package/dist/index.js +281 -280
- package/dist/locales/ar.json +14 -1
- package/dist/locales/de.json +14 -1
- package/dist/locales/el.json +14 -1
- package/dist/locales/en.json +14 -1
- package/dist/locales/es.json +14 -1
- package/dist/locales/fr.json +14 -1
- package/dist/locales/hi.json +14 -1
- package/dist/locales/it.json +14 -1
- package/dist/locales/ja.json +14 -1
- package/dist/locales/nl.json +14 -1
- package/dist/locales/pl.json +14 -1
- package/dist/locales/pt.json +14 -1
- package/dist/locales/ro.json +14 -1
- package/dist/locales/ru.json +14 -1
- package/dist/locales/sq.json +14 -1
- package/dist/locales/sv.json +14 -1
- package/dist/locales/tr.json +14 -1
- package/dist/locales/zh.json +14 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +1 -21
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +3 -1
- package/dist/patterns/calendar/calendar.data.d.ts +0 -17
- package/dist/patterns/calendar/calendar.journey.d.ts +1 -3
- package/dist/patterns/calendar/calendar.model.d.ts +0 -9
- package/dist/patterns/calendar/calendar.sheets.d.ts +4 -12
- package/dist/patterns/calendar/calendar.surface.d.ts +1 -3
- package/dist/patterns/calendar/index.d.ts +2 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +2 -3
- package/dist/_chunks/calendar-workspace-CDhW8tPy.js +0 -7881
- package/dist/_chunks/signature-status-chip-DqrPIJtH.js +0 -97
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -36
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +0 -11
|
@@ -5,9 +5,9 @@ import { c as te } from "./index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as Ne } from "react-i18next";
|
|
6
6
|
import { u as Ae } from "./form-field-context-B3APVHKx.js";
|
|
7
7
|
import { S as se } from "./slider-DN1CWkKB.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as Se } from "./registry-DvAUVLHh.js";
|
|
9
9
|
import { C as re } from "./check-DrFSN__t.js";
|
|
10
|
-
import { X as
|
|
10
|
+
import { X as Me } from "./x-B5YnXwCz.js";
|
|
11
11
|
const Te = {
|
|
12
12
|
id: "color-picker",
|
|
13
13
|
capabilities: ["set_value"],
|
|
@@ -69,13 +69,10 @@ function ne(e, t, r, s) {
|
|
|
69
69
|
w = c > 0.5 ? x / (2 - n - d) : x / (n + d), n === e ? m = ((t - r) / x + (t < r ? 6 : 0)) / 6 : n === t ? m = ((r - e) / x + 2) / 6 : m = ((e - t) / x + 4) / 6;
|
|
70
70
|
}
|
|
71
71
|
return {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
s: w * 100,
|
|
77
|
-
l: c * 100,
|
|
78
|
-
a: s
|
|
72
|
+
h: Math.round(m * 360),
|
|
73
|
+
s: Math.round(w * 100),
|
|
74
|
+
l: Math.round(c * 100),
|
|
75
|
+
a: Math.round(s * 100) / 100
|
|
79
76
|
};
|
|
80
77
|
}
|
|
81
78
|
function C(e) {
|
|
@@ -106,7 +103,7 @@ function D(e, t) {
|
|
|
106
103
|
case "hex":
|
|
107
104
|
return C(e);
|
|
108
105
|
case "hsl":
|
|
109
|
-
return e.a < 1 ? `hsla(${
|
|
106
|
+
return e.a < 1 ? `hsla(${e.h}, ${e.s}%, ${e.l}%, ${e.a})` : `hsl(${e.h}, ${e.s}%, ${e.l}%)`;
|
|
110
107
|
case "rgba":
|
|
111
108
|
return Le(e);
|
|
112
109
|
}
|
|
@@ -308,7 +305,7 @@ const He = [
|
|
|
308
305
|
size: x = "md",
|
|
309
306
|
disabled: ie = !1,
|
|
310
307
|
variant: de = "inline",
|
|
311
|
-
compact:
|
|
308
|
+
compact: M = !0,
|
|
312
309
|
className: U
|
|
313
310
|
} = e, { t: g } = Ne(), N = Ae(), le = Pe(), P = N.id || le, v = N.disabled || ie, L = r !== void 0, [X, ce] = T(() => {
|
|
314
311
|
const a = r ?? s;
|
|
@@ -387,15 +384,15 @@ const He = [
|
|
|
387
384
|
f = p % u;
|
|
388
385
|
break;
|
|
389
386
|
case "PageDown": {
|
|
390
|
-
const
|
|
391
|
-
f = Math.min(
|
|
387
|
+
const S = Math.floor((i - 1) / u) * u;
|
|
388
|
+
f = Math.min(S + p % u, i - 1);
|
|
392
389
|
break;
|
|
393
390
|
}
|
|
394
391
|
case "Enter":
|
|
395
392
|
case " ": {
|
|
396
393
|
a.preventDefault();
|
|
397
|
-
const
|
|
398
|
-
|
|
394
|
+
const S = y(A[p].hex);
|
|
395
|
+
S && b(S);
|
|
399
396
|
return;
|
|
400
397
|
}
|
|
401
398
|
default:
|
|
@@ -412,7 +409,7 @@ const He = [
|
|
|
412
409
|
}),
|
|
413
410
|
[b]
|
|
414
411
|
);
|
|
415
|
-
|
|
412
|
+
Se(Te, ve, P);
|
|
416
413
|
const I = E(() => {
|
|
417
414
|
if (!w) return null;
|
|
418
415
|
const a = y(w);
|
|
@@ -431,8 +428,8 @@ const He = [
|
|
|
431
428
|
className: "ds:grid ds:grid-cols-6 ds:gap-[var(--spacing-xs)]",
|
|
432
429
|
children: A.map((a, i) => {
|
|
433
430
|
const f = Math.floor(i / u) * u;
|
|
434
|
-
return i === f ? /* @__PURE__ */ l("div", { role: "row", className: "ds:contents", children: A.slice(f, f + u).map((k,
|
|
435
|
-
const O = f +
|
|
431
|
+
return i === f ? /* @__PURE__ */ l("div", { role: "row", className: "ds:contents", children: A.slice(f, f + u).map((k, S) => {
|
|
432
|
+
const O = f + S, V = O === B;
|
|
436
433
|
return (
|
|
437
434
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events -- parent grid handles keyboard navigation via onKeyDown
|
|
438
435
|
/* @__PURE__ */ l(
|
|
@@ -467,7 +464,7 @@ const He = [
|
|
|
467
464
|
})
|
|
468
465
|
}
|
|
469
466
|
)
|
|
470
|
-
), Ce =
|
|
467
|
+
), Ce = M ? null : /* @__PURE__ */ h(ke, { children: [
|
|
471
468
|
/* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
472
469
|
/* @__PURE__ */ l(
|
|
473
470
|
"label",
|
|
@@ -500,7 +497,7 @@ const He = [
|
|
|
500
497
|
max: 360,
|
|
501
498
|
value: o.h,
|
|
502
499
|
onChange: (a) => b({ ...o, h: a }),
|
|
503
|
-
formatValue: (a) => `H ${
|
|
500
|
+
formatValue: (a) => `H ${a}°`,
|
|
504
501
|
disabled: v
|
|
505
502
|
}
|
|
506
503
|
),
|
|
@@ -513,7 +510,7 @@ const He = [
|
|
|
513
510
|
max: 100,
|
|
514
511
|
value: o.s,
|
|
515
512
|
onChange: (a) => b({ ...o, s: a }),
|
|
516
|
-
formatValue: (a) => `S ${
|
|
513
|
+
formatValue: (a) => `S ${a}%`,
|
|
517
514
|
disabled: v
|
|
518
515
|
}
|
|
519
516
|
),
|
|
@@ -526,7 +523,7 @@ const He = [
|
|
|
526
523
|
max: 100,
|
|
527
524
|
value: o.l,
|
|
528
525
|
onChange: (a) => b({ ...o, l: a }),
|
|
529
|
-
formatValue: (a) => `L ${
|
|
526
|
+
formatValue: (a) => `L ${a}%`,
|
|
530
527
|
disabled: v
|
|
531
528
|
}
|
|
532
529
|
),
|
|
@@ -596,7 +593,7 @@ const He = [
|
|
|
596
593
|
] }), J = /* @__PURE__ */ h(
|
|
597
594
|
"div",
|
|
598
595
|
{
|
|
599
|
-
className:
|
|
596
|
+
className: M ? x === "sm" ? Ge : Ve : Be,
|
|
600
597
|
children: [
|
|
601
598
|
be,
|
|
602
599
|
Ce
|
|
@@ -626,7 +623,7 @@ const He = [
|
|
|
626
623
|
id: P,
|
|
627
624
|
"aria-describedby": N.describedBy || void 0,
|
|
628
625
|
"aria-invalid": N.invalid || void 0,
|
|
629
|
-
"aria-label":
|
|
626
|
+
"aria-label": M ? g("inputs.colorPicker.triggerLabel", "Choose colour") : void 0,
|
|
630
627
|
className: _e({ size: x, className: U }),
|
|
631
628
|
"data-component": "color-picker",
|
|
632
629
|
"data-component-id": P,
|
|
@@ -635,12 +632,12 @@ const He = [
|
|
|
635
632
|
/* @__PURE__ */ l(
|
|
636
633
|
"span",
|
|
637
634
|
{
|
|
638
|
-
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)]${
|
|
635
|
+
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)]${M ? "" : " ds:me-[var(--spacing-sm)]"}`,
|
|
639
636
|
"aria-hidden": "true",
|
|
640
637
|
style: { "--swatch-bg": C(o) }
|
|
641
638
|
}
|
|
642
639
|
),
|
|
643
|
-
|
|
640
|
+
M ? null : /* @__PURE__ */ l("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: D(o, d) })
|
|
644
641
|
]
|
|
645
642
|
}
|
|
646
643
|
) }),
|
|
@@ -678,7 +675,7 @@ function ae({
|
|
|
678
675
|
className: "ds:size-4 ds:text-[var(--success)]"
|
|
679
676
|
}
|
|
680
677
|
) : /* @__PURE__ */ l(
|
|
681
|
-
|
|
678
|
+
Me,
|
|
682
679
|
{
|
|
683
680
|
"aria-hidden": "true",
|
|
684
681
|
className: "ds:size-4 ds:text-[var(--destructive)]"
|
|
@@ -733,4 +730,4 @@ export {
|
|
|
733
730
|
ze as c,
|
|
734
731
|
Ee as h
|
|
735
732
|
};
|
|
736
|
-
//# sourceMappingURL=color-picker-
|
|
733
|
+
//# sourceMappingURL=color-picker-CU303VjY.js.map
|