@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.
Files changed (104) hide show
  1. package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-CZ0pEdEI.js} +3 -3
  2. package/dist/_chunks/{appointment-card-CvUFFEdS.js → appointment-card-Dzr3GeVz.js} +6 -8
  3. package/dist/_chunks/{appointment-timeline-DsMZY7U9.js → appointment-timeline-DhHwmHo1.js} +2 -2
  4. package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js → appointment-tray-4FUu_5NX.js} +2 -2
  5. package/dist/_chunks/{booking-B8C7jMrn.js → booking-BtSOKjQu.js} +401 -384
  6. package/dist/_chunks/{calendar-CBqU-UIR.js → calendar-CI9MINcR.js} +2 -4
  7. package/dist/_chunks/calendar-workspace-CTXjHC4R.js +7506 -0
  8. package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-CU303VjY.js} +25 -28
  9. package/dist/_chunks/{combobox-DnSdYssy.js → combobox-D7_NLE2Z.js} +215 -216
  10. package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-DzbPFktV.js} +2 -2
  11. package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-DA2vjqaM.js} +2 -2
  12. package/dist/_chunks/{notes-panel-D4S2VwDx.js → notes-panel-CTNpsByN.js} +2 -2
  13. package/dist/_chunks/{patient-details-CdfursHt.js → patient-details-DYAmq76G.js} +3 -3
  14. package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BBc7s7vR.js} +2 -2
  15. package/dist/_chunks/{rich-text-editor-VJATL1Tk.js → rich-text-editor-lSCiE0Zz.js} +2 -2
  16. package/dist/_chunks/signature-status-chip-n57D-hhv.js +179 -0
  17. package/dist/agent-catalog.json +3 -6
  18. package/dist/agent-i18n/en.json +2 -2
  19. package/dist/components/address-fields/index.js +1 -1
  20. package/dist/components/appointment-card/index.js +2 -2
  21. package/dist/components/appointment-timeline/index.js +1 -1
  22. package/dist/components/booking/index.js +1 -1
  23. package/dist/components/calendar/index.js +1 -1
  24. package/dist/components/color-picker/index.js +1 -1
  25. package/dist/components/combobox/combobox.d.ts +0 -5
  26. package/dist/components/combobox/index.js +1 -1
  27. package/dist/components/country-select/index.js +1 -1
  28. package/dist/components/face-scheme/index.js +1 -1
  29. package/dist/components/notes-panel/index.js +1 -1
  30. package/dist/components/patient-details/index.js +1 -1
  31. package/dist/components/province-select/index.js +1 -1
  32. package/dist/components/rich-text-editor/index.js +1 -1
  33. package/dist/components/signature-status-chip/index.d.ts +2 -2
  34. package/dist/components/signature-status-chip/index.js +4 -3
  35. package/dist/components/signature-status-chip/signature-status-chip.d.ts +100 -1
  36. package/dist/i18n/locales/ar.d.ts +13 -0
  37. package/dist/i18n/locales/ar.js +17 -1
  38. package/dist/i18n/locales/de.d.ts +13 -0
  39. package/dist/i18n/locales/de.js +17 -1
  40. package/dist/i18n/locales/el.d.ts +13 -0
  41. package/dist/i18n/locales/el.js +17 -1
  42. package/dist/i18n/locales/en.d.ts +13 -0
  43. package/dist/i18n/locales/en.js +17 -1
  44. package/dist/i18n/locales/es.d.ts +13 -0
  45. package/dist/i18n/locales/es.js +17 -1
  46. package/dist/i18n/locales/fr.d.ts +13 -0
  47. package/dist/i18n/locales/fr.js +17 -1
  48. package/dist/i18n/locales/hi.d.ts +13 -0
  49. package/dist/i18n/locales/hi.js +13 -1
  50. package/dist/i18n/locales/it.d.ts +13 -0
  51. package/dist/i18n/locales/it.js +17 -1
  52. package/dist/i18n/locales/ja.d.ts +13 -0
  53. package/dist/i18n/locales/ja.js +17 -1
  54. package/dist/i18n/locales/nl.d.ts +13 -0
  55. package/dist/i18n/locales/nl.js +17 -1
  56. package/dist/i18n/locales/pl.d.ts +13 -0
  57. package/dist/i18n/locales/pl.js +17 -1
  58. package/dist/i18n/locales/pt.d.ts +13 -0
  59. package/dist/i18n/locales/pt.js +17 -1
  60. package/dist/i18n/locales/ro.d.ts +13 -0
  61. package/dist/i18n/locales/ro.js +17 -1
  62. package/dist/i18n/locales/ru.d.ts +13 -0
  63. package/dist/i18n/locales/ru.js +17 -1
  64. package/dist/i18n/locales/sq.d.ts +13 -0
  65. package/dist/i18n/locales/sq.js +17 -1
  66. package/dist/i18n/locales/sv.d.ts +13 -0
  67. package/dist/i18n/locales/sv.js +17 -1
  68. package/dist/i18n/locales/tr.d.ts +13 -0
  69. package/dist/i18n/locales/tr.js +17 -1
  70. package/dist/i18n/locales/zh.d.ts +13 -0
  71. package/dist/i18n/locales/zh.js +13 -1
  72. package/dist/index.js +281 -280
  73. package/dist/locales/ar.json +14 -1
  74. package/dist/locales/de.json +14 -1
  75. package/dist/locales/el.json +14 -1
  76. package/dist/locales/en.json +14 -1
  77. package/dist/locales/es.json +14 -1
  78. package/dist/locales/fr.json +14 -1
  79. package/dist/locales/hi.json +14 -1
  80. package/dist/locales/it.json +14 -1
  81. package/dist/locales/ja.json +14 -1
  82. package/dist/locales/nl.json +14 -1
  83. package/dist/locales/pl.json +14 -1
  84. package/dist/locales/pt.json +14 -1
  85. package/dist/locales/ro.json +14 -1
  86. package/dist/locales/ru.json +14 -1
  87. package/dist/locales/sq.json +14 -1
  88. package/dist/locales/sv.json +14 -1
  89. package/dist/locales/tr.json +14 -1
  90. package/dist/locales/zh.json +14 -1
  91. package/dist/patterns/calendar/calendar-workspace.d.ts +1 -21
  92. package/dist/patterns/calendar/calendar-workspace.model.d.ts +3 -1
  93. package/dist/patterns/calendar/calendar.data.d.ts +0 -17
  94. package/dist/patterns/calendar/calendar.journey.d.ts +1 -3
  95. package/dist/patterns/calendar/calendar.model.d.ts +0 -9
  96. package/dist/patterns/calendar/calendar.sheets.d.ts +4 -12
  97. package/dist/patterns/calendar/calendar.surface.d.ts +1 -3
  98. package/dist/patterns/calendar/index.d.ts +2 -3
  99. package/dist/patterns/calendar/index.js +1 -1
  100. package/package.json +2 -3
  101. package/dist/_chunks/calendar-workspace-CDhW8tPy.js +0 -7881
  102. package/dist/_chunks/signature-status-chip-DqrPIJtH.js +0 -97
  103. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -36
  104. 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 Me } from "./registry-DvAUVLHh.js";
8
+ import { u as Se } from "./registry-DvAUVLHh.js";
9
9
  import { C as re } from "./check-DrFSN__t.js";
10
- import { X as Se } from "./x-B5YnXwCz.js";
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
- // Preserve byte identity through RGB -> HSL -> RGB. Palette colours
73
- // can be server identifiers, so even one changed channel is a different
74
- // selection. Round human-facing labels only, never this stored value.
75
- h: m * 360,
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(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%, ${e.a})` : `hsl(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%)`;
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: S = !0,
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 M = Math.floor((i - 1) / u) * u;
391
- f = Math.min(M + p % u, i - 1);
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 M = y(A[p].hex);
398
- M && b(M);
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
- Me(Te, ve, P);
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, M) => {
435
- const O = f + M, V = O === B;
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 = S ? null : /* @__PURE__ */ h(ke, { children: [
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 ${Math.round(a)}°`,
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 ${Math.round(a)}%`,
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 ${Math.round(a)}%`,
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: S ? x === "sm" ? Ge : Ve : Be,
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": S ? g("inputs.colorPicker.triggerLabel", "Choose colour") : void 0,
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)]${S ? "" : " ds:me-[var(--spacing-sm)]"}`,
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
- S ? null : /* @__PURE__ */ l("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: D(o, d) })
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
- Se,
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-Bl5f0iK1.js.map
733
+ //# sourceMappingURL=color-picker-CU303VjY.js.map