@alfadocs/ui-kit 1.18.0 → 1.20.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 (107) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-CRWO8x8g.js → anamnesis-summary-rows-BPSQhxnZ.js} +2 -2
  2. package/dist/_chunks/{balance-badge-cell-DNjHODfP.js → balance-badge-cell-BlvFil5p.js} +2 -2
  3. package/dist/_chunks/{calendar-PFO-NlYw.js → calendar-BQPyUUPP.js} +43 -43
  4. package/dist/_chunks/calendar-workspace-D6kipuvT.js +7474 -0
  5. package/dist/_chunks/{care-plan-card-D-FMfDKH.js → care-plan-card-CQVboTn1.js} +2 -2
  6. package/dist/_chunks/{care-plan-entry-card-Bvw_9T-d.js → care-plan-entry-card-jxHkzez5.js} +2 -2
  7. package/dist/_chunks/{data-table-DC5rO3Ty.js → data-table-D7nA8OGL.js} +2 -2
  8. package/dist/_chunks/{data-table-tabs-D24qj89A.js → data-table-tabs-DVIFkqx_.js} +2 -2
  9. package/dist/_chunks/{field-value-D-vkX9uL.js → field-value-BetdWMA2.js} +2 -2
  10. package/dist/_chunks/{file-manager-spc3_khe.js → file-manager-Bsc8-MQQ.js} +2 -2
  11. package/dist/_chunks/{header-settings-J-ZCAfir.js → header-settings-DvjZNMhD.js} +2 -2
  12. package/dist/_chunks/{icon-picker-ChzpCnZ-.js → icon-picker-DOa89vn3.js} +2 -2
  13. package/dist/_chunks/{info-tip-C119cwQl.js → info-tip-CADik6WN.js} +2 -2
  14. package/dist/_chunks/{locale-picker-BvbVjDQ-.js → locale-picker-CwFtqSkt.js} +2 -2
  15. package/dist/_chunks/{marketplace-app-shell-DDQXQ8hX.js → marketplace-app-shell-C4AjQmvz.js} +2 -2
  16. package/dist/_chunks/{notes-panel-DYAtlq_i.js → notes-panel-CTNpsByN.js} +2 -2
  17. package/dist/_chunks/{patient-details-BfzvFnxQ.js → patient-details-1QDA-XOO.js} +2 -2
  18. package/dist/_chunks/{patient-summary-card-D5Vfa321.js → patient-summary-card-C9WBwct-.js} +2 -2
  19. package/dist/_chunks/{popover-Cqcjx-Ny.js → popover-DP6WCVwm.js} +2 -2
  20. package/dist/_chunks/{rich-text-editor-DtbcA6s1.js → rich-text-editor-lSCiE0Zz.js} +2 -2
  21. package/dist/_chunks/{signature-request-CUe903hj.js → signature-request-CwlAmVLw.js} +2 -2
  22. package/dist/_chunks/{tooth-scheme-2IsmbE6w.js → tooth-scheme-C9jssOmy.js} +2 -2
  23. package/dist/agent-catalog.json +1 -1
  24. package/dist/components/calendar/calendar.d.ts +6 -1
  25. package/dist/components/calendar/index.js +1 -1
  26. package/dist/components/care-plan-card/index.js +1 -1
  27. package/dist/components/care-plan-entry-card/index.js +1 -1
  28. package/dist/components/data-table/index.js +1 -1
  29. package/dist/components/data-table-tabs/index.js +1 -1
  30. package/dist/components/file-manager/index.js +1 -1
  31. package/dist/components/header-settings/index.js +1 -1
  32. package/dist/components/icon-picker/index.js +1 -1
  33. package/dist/components/info-tip/index.js +1 -1
  34. package/dist/components/locale-picker/index.js +1 -1
  35. package/dist/components/notes-panel/index.js +1 -1
  36. package/dist/components/patient-details/index.js +1 -1
  37. package/dist/components/patient-summary-card/index.js +1 -1
  38. package/dist/components/patient-table/index.js +1 -1
  39. package/dist/components/popover/index.js +1 -1
  40. package/dist/components/popover/popover.d.ts +1 -1
  41. package/dist/components/rich-text-editor/index.js +1 -1
  42. package/dist/components/tooth-scheme/index.js +1 -1
  43. package/dist/i18n/locales/ar.d.ts +3 -0
  44. package/dist/i18n/locales/ar.js +4 -1
  45. package/dist/i18n/locales/de.d.ts +3 -0
  46. package/dist/i18n/locales/de.js +4 -1
  47. package/dist/i18n/locales/el.d.ts +3 -0
  48. package/dist/i18n/locales/el.js +4 -1
  49. package/dist/i18n/locales/en.d.ts +3 -0
  50. package/dist/i18n/locales/en.js +4 -1
  51. package/dist/i18n/locales/es.d.ts +3 -0
  52. package/dist/i18n/locales/es.js +4 -1
  53. package/dist/i18n/locales/fr.d.ts +3 -0
  54. package/dist/i18n/locales/fr.js +4 -1
  55. package/dist/i18n/locales/hi.d.ts +3 -0
  56. package/dist/i18n/locales/hi.js +4 -1
  57. package/dist/i18n/locales/it.d.ts +3 -0
  58. package/dist/i18n/locales/it.js +4 -1
  59. package/dist/i18n/locales/ja.d.ts +3 -0
  60. package/dist/i18n/locales/ja.js +4 -1
  61. package/dist/i18n/locales/nl.d.ts +3 -0
  62. package/dist/i18n/locales/nl.js +4 -1
  63. package/dist/i18n/locales/pl.d.ts +3 -0
  64. package/dist/i18n/locales/pl.js +4 -1
  65. package/dist/i18n/locales/pt.d.ts +3 -0
  66. package/dist/i18n/locales/pt.js +4 -1
  67. package/dist/i18n/locales/ro.d.ts +3 -0
  68. package/dist/i18n/locales/ro.js +4 -1
  69. package/dist/i18n/locales/ru.d.ts +3 -0
  70. package/dist/i18n/locales/ru.js +4 -1
  71. package/dist/i18n/locales/sq.d.ts +3 -0
  72. package/dist/i18n/locales/sq.js +4 -1
  73. package/dist/i18n/locales/sv.d.ts +3 -0
  74. package/dist/i18n/locales/sv.js +4 -1
  75. package/dist/i18n/locales/tr.d.ts +3 -0
  76. package/dist/i18n/locales/tr.js +4 -1
  77. package/dist/i18n/locales/zh.d.ts +3 -0
  78. package/dist/i18n/locales/zh.js +4 -1
  79. package/dist/index.js +19 -19
  80. package/dist/locales/ar.json +4 -1
  81. package/dist/locales/de.json +4 -1
  82. package/dist/locales/el.json +4 -1
  83. package/dist/locales/en.json +4 -1
  84. package/dist/locales/es.json +4 -1
  85. package/dist/locales/fr.json +4 -1
  86. package/dist/locales/hi.json +4 -1
  87. package/dist/locales/it.json +4 -1
  88. package/dist/locales/ja.json +4 -1
  89. package/dist/locales/nl.json +4 -1
  90. package/dist/locales/pl.json +4 -1
  91. package/dist/locales/pt.json +4 -1
  92. package/dist/locales/ro.json +4 -1
  93. package/dist/locales/ru.json +4 -1
  94. package/dist/locales/sq.json +4 -1
  95. package/dist/locales/sv.json +4 -1
  96. package/dist/locales/tr.json +4 -1
  97. package/dist/locales/zh.json +4 -1
  98. package/dist/patterns/anamnesis/index.js +1 -1
  99. package/dist/patterns/calendar/calendar.data.d.ts +15 -5
  100. package/dist/patterns/calendar/calendar.model.d.ts +12 -3
  101. package/dist/patterns/calendar/calendar.sheets.d.ts +11 -2
  102. package/dist/patterns/calendar/calendar.types.d.ts +16 -0
  103. package/dist/patterns/calendar/index.js +1 -1
  104. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  105. package/dist/patterns/signature-request/index.js +1 -1
  106. package/package.json +1 -1
  107. package/dist/_chunks/calendar-workspace-Ca0n_r1v.js +0 -7341
@@ -36,7 +36,7 @@ import { D as yi } from "./download-CfYKJO_j.js";
36
36
  import { C as bi } from "./checkbox-BuZ1u__2.js";
37
37
  import { T as xi } from "./time-picker-D0RS391l.js";
38
38
  import { H as ki } from "./heart-pulse-BCppJyN2.js";
39
- import { P as xe } from "./popover-Cqcjx-Ny.js";
39
+ import { P as xe } from "./popover-DP6WCVwm.js";
40
40
  import { P as mn } from "./pencil-B1sKKyuT.js";
41
41
  import { useTranslation as wi } from "react-i18next";
42
42
  import { e as Ni, b as Ti } from "./bmi-BxD-tFzU.js";
@@ -9413,4 +9413,4 @@ export {
9413
9413
  Ba as t,
9414
9414
  Bl as u
9415
9415
  };
9416
- //# sourceMappingURL=anamnesis-summary-rows-CRWO8x8g.js.map
9416
+ //# sourceMappingURL=anamnesis-summary-rows-BPSQhxnZ.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as C, jsxs as M } from "react/jsx-runtime";
2
2
  import { createElement as G, useRef as k, useEffect as ae, useCallback as K, forwardRef as be, useState as ie, useImperativeHandle as ge, useMemo as X } from "react";
3
3
  import { useTranslation as Y } from "react-i18next";
4
- import { a as b, T as g, D as S, d as Ce } from "./data-table-DC5rO3Ty.js";
4
+ import { a as b, T as g, D as S, d as Ce } from "./data-table-D7nA8OGL.js";
5
5
  import { A as ve, a as re } from "./actions-cell-renderer-yy03OgRL.js";
6
6
  import { S as Te } from "./select-Bi8zril7.js";
7
7
  import { u as we } from "./registry-DvAUVLHh.js";
@@ -1178,4 +1178,4 @@ export {
1178
1178
  se as g,
1179
1179
  nt as u
1180
1180
  };
1181
- //# sourceMappingURL=balance-badge-cell-DNjHODfP.js.map
1181
+ //# sourceMappingURL=balance-badge-cell-BlvFil5p.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs as E, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as Be, useRef as p, useEffect as v, useState as ae, useMemo as u, useImperativeHandle as Ht, useCallback as g } from "react";
2
+ import { forwardRef as Be, useRef as p, useEffect as v, useState as se, useMemo as u, useImperativeHandle as Ht, useCallback as g } from "react";
3
3
  import { useTranslation as ye } from "react-i18next";
4
4
  import qt from "@fullcalendar/react";
5
5
  import $t from "@fullcalendar/daygrid";
@@ -205,7 +205,7 @@ function pe(n, s = "vertical") {
205
205
  );
206
206
  return cr[s][d];
207
207
  }
208
- const ie = {
208
+ const ae = {
209
209
  weekday: "long",
210
210
  day: "numeric",
211
211
  month: "long",
@@ -233,10 +233,10 @@ const ie = {
233
233
  duration: { days: 3 }
234
234
  },
235
235
  timeline: { slotLabelFormat: mr },
236
- timeGridDay: { titleFormat: ie },
237
- resourceTimeGridDay: { titleFormat: ie },
238
- timelineDay: { titleFormat: ie },
239
- resourceTimelineDay: { titleFormat: ie }
236
+ timeGridDay: { titleFormat: ae },
237
+ resourceTimeGridDay: { titleFormat: ae },
238
+ timelineDay: { titleFormat: ae },
239
+ resourceTimelineDay: { titleFormat: ae }
240
240
  }, ve = 5, pr = {
241
241
  create: "calendar.modeBanner.create",
242
242
  move: "calendar.modeBanner.move",
@@ -274,7 +274,7 @@ function hr(n, s) {
274
274
  };
275
275
  }
276
276
  function gr() {
277
- const { i18n: n } = ye(), [s, o] = ae(() => {
277
+ const { i18n: n } = ye(), [s, o] = se(() => {
278
278
  if (typeof document > "u") return !1;
279
279
  const d = document.documentElement.getAttribute("dir"), f = typeof n.dir == "function" ? n.dir() : "ltr";
280
280
  return d === "rtl" || f === "rtl";
@@ -403,17 +403,17 @@ const Le = Be(
403
403
  onDatesSet: A,
404
404
  onDateClick: D,
405
405
  onNavLinkDayClick: X,
406
- editable: se = !1,
406
+ editable: J = !1,
407
407
  eventDurationEditable: We,
408
408
  selectable: Fe = !1,
409
409
  height: ze,
410
410
  className: je,
411
411
  privacyMode: y = !1,
412
412
  eventColorStyle: _e = "solid",
413
- mode: J = "default",
413
+ mode: Z = "default",
414
414
  modeLabel: Ve,
415
- modeBannerColor: Z,
416
- modeBannerTextColor: Q,
415
+ modeBannerColor: Q,
416
+ modeBannerTextColor: ee,
417
417
  onModeCancel: Te,
418
418
  alertBanner: He,
419
419
  hiddenDays: xe,
@@ -442,7 +442,7 @@ const Le = Be(
442
442
  zebraRows: it = !1,
443
443
  maskClassName: N
444
444
  }, at) => {
445
- const { t: m, i18n: P } = ye(), C = p(null), R = p(null), w = p(null), I = p(null), G = p(null), ke = p(null), ee = p({
445
+ const { t: m, i18n: P } = ye(), C = p(null), R = p(null), w = p(null), I = p(null), G = p(null), ke = p(null), te = p({
446
446
  id: 0,
447
447
  x: 0,
448
448
  y: 0
@@ -450,7 +450,7 @@ const Le = Be(
450
450
  v(() => {
451
451
  }, [xe]), v(() => {
452
452
  }, [_]);
453
- const [st, ot] = ae(() => {
453
+ const [st, ot] = se(() => {
454
454
  if (typeof document > "u") return "ltr";
455
455
  const e = document.documentElement.getAttribute("dir"), t = typeof P.dir == "function" ? P.dir() : "ltr";
456
456
  return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
@@ -522,7 +522,7 @@ const Le = Be(
522
522
  attributeFilter: ["aria-hidden"]
523
523
  }), () => r.disconnect();
524
524
  }, [m]);
525
- const te = er(), [dt, ct] = ae(""), [V, lt] = ae(
525
+ const re = er(), [dt, ct] = se(""), [V, lt] = se(
526
526
  () => pe(d, z)
527
527
  ), Re = p(V);
528
528
  Re.current = V;
@@ -576,7 +576,7 @@ const Le = Be(
576
576
  const i = `[data-event-id="${CSS.escape(t)}"]`, a = r.querySelector(i);
577
577
  if (a) {
578
578
  if (I.current && (clearTimeout(I.current), I.current = null), G.current && G.current !== a && G.current.classList.remove("calendar-event-focused"), a.scrollIntoView({
579
- behavior: te ? "auto" : "smooth",
579
+ behavior: re ? "auto" : "smooth",
580
580
  block: "center"
581
581
  }), a.classList.add("calendar-event-focused"), G.current = a, w.current) {
582
582
  const c = a.getAttribute("aria-label") ?? t, b = y ? "•••" : c;
@@ -590,7 +590,7 @@ const Le = Be(
590
590
  }
591
591
  }
592
592
  };
593
- }, [te, y, m, z]);
593
+ }, [re, y, m, z]);
594
594
  Ht(at, () => le, [le]), tr(dr, le, n), v(
595
595
  () => () => {
596
596
  I.current && (clearTimeout(I.current), I.current = null);
@@ -716,11 +716,11 @@ const Le = Be(
716
716
  ), gt = u(() => {
717
717
  if (j !== void 0)
718
718
  return j === "chairs" ? m("calendar.resourceLabel.chairs") : j === "operators" ? m("calendar.resourceLabel.operators") : j;
719
- }, [j, m]), re = u(
719
+ }, [j, m]), ne = u(
720
720
  () => hr(o, oe),
721
721
  [o, oe]
722
- ), M = p(re);
723
- M.current = re;
722
+ ), M = p(ne);
723
+ M.current = ne;
724
724
  const me = p(!1), yt = g(
725
725
  (e) => {
726
726
  const t = M.current;
@@ -773,7 +773,7 @@ const Le = Be(
773
773
  }), me.current = t.active);
774
774
  }, []);
775
775
  v(() => {
776
- }, [s, re]);
776
+ }, [s, ne]);
777
777
  const B = (e) => {
778
778
  const t = e.extendedProps ?? {};
779
779
  return {
@@ -883,7 +883,7 @@ const Le = Be(
883
883
  if (D)
884
884
  return (e) => {
885
885
  var r;
886
- const t = ee.current.id;
886
+ const t = te.current.id;
887
887
  t !== 0 && Ae.current === t || (t !== 0 && (Ie.current = t), D({
888
888
  date: e.date,
889
889
  allDay: e.allDay,
@@ -924,8 +924,8 @@ const Le = Be(
924
924
  const e = R.current;
925
925
  if (!e) return;
926
926
  const t = (r) => {
927
- ee.current = {
928
- id: ee.current.id + 1,
927
+ te.current = {
928
+ id: te.current.id + 1,
929
929
  x: r.clientX,
930
930
  y: r.clientY
931
931
  };
@@ -942,7 +942,7 @@ const Le = Be(
942
942
  ".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
943
943
  ))
944
944
  return;
945
- const a = ee.current;
945
+ const a = te.current;
946
946
  if (a.id !== 0 && (Math.abs(r.clientX - a.x) > ve || Math.abs(r.clientY - a.y) > ve))
947
947
  return;
948
948
  const c = i.closest("td.fc-daygrid-day[data-date]");
@@ -950,12 +950,12 @@ const Le = Be(
950
950
  const b = i.closest("[data-event-id]");
951
951
  if (b) {
952
952
  if (!x) return;
953
- const U = b.getAttribute("data-event-id"), fe = (K = C.current) == null ? void 0 : K.getApi(), ne = U ? fe == null ? void 0 : fe.getEventById(U) : null;
954
- if (!ne || !ne.start) return;
955
- const Pe = ne.extendedProps ?? {};
953
+ const U = b.getAttribute("data-event-id"), fe = (K = C.current) == null ? void 0 : K.getApi(), ie = U ? fe == null ? void 0 : fe.getEventById(U) : null;
954
+ if (!ie || !ie.start) return;
955
+ const Pe = ie.extendedProps ?? {};
956
956
  if (Pe.isInternal || Pe.isDraft) return;
957
957
  const Vt = i.closest(".fc-event") ?? b;
958
- x(B(ne), { el: Vt, jsEvent: r });
958
+ x(B(ie), { el: Vt, jsEvent: r });
959
959
  return;
960
960
  }
961
961
  if (!D || a.id !== 0 && Ie.current === a.id)
@@ -1018,7 +1018,7 @@ const Le = Be(
1018
1018
  H();
1019
1019
  const e = requestAnimationFrame(H);
1020
1020
  return () => cancelAnimationFrame(e);
1021
- }, [re, Ne, V, H]);
1021
+ }, [ne, Ne, V, H]);
1022
1022
  const Mt = g(() => {
1023
1023
  var e, t;
1024
1024
  (t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
@@ -1042,10 +1042,10 @@ const Le = Be(
1042
1042
  "ds:bg-background ds:text-foreground",
1043
1043
  "ds:rounded-[var(--radius-md)]",
1044
1044
  je
1045
- ].filter(Boolean).join(" "), Ft = Z || Q ? {
1046
- ...Z ? { "--calendar-mode-bg": Z } : {},
1047
- ...Q ? { "--calendar-mode-fg": Q } : {}
1048
- } : void 0, zt = J !== "default" ? Ve ?? m(pr[J]) : "", jt = [
1045
+ ].filter(Boolean).join(" "), Ft = Q || ee ? {
1046
+ ...Q ? { "--calendar-mode-bg": Q } : {},
1047
+ ...ee ? { "--calendar-mode-fg": ee } : {}
1048
+ } : void 0, zt = Z !== "default" ? Ve ?? m(pr[Z]) : "", jt = [
1049
1049
  "ds:sticky ds:top-0 ds:z-10",
1050
1050
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
1051
1051
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
@@ -1053,8 +1053,8 @@ const Le = Be(
1053
1053
  /* Caller-supplied colours flow through CSS custom properties set
1054
1054
  in `modeBannerStyle`; fallback tokens apply when the caller
1055
1055
  doesn't supply a hex. */
1056
- Z ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
1057
- Q ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
1056
+ Q ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
1057
+ ee ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
1058
1058
  ].filter(Boolean).join(" "), _t = [
1059
1059
  "ds:inline-flex ds:items-center ds:justify-center",
1060
1060
  "ds:min-h-[var(--min-target-size)]",
@@ -1079,7 +1079,7 @@ const Le = Be(
1079
1079
  "aria-label": m("calendar.ariaLabel"),
1080
1080
  "data-component": "calendar",
1081
1081
  "data-component-id": n,
1082
- "data-mode": J,
1082
+ "data-mode": Z,
1083
1083
  children: [
1084
1084
  /* @__PURE__ */ l(
1085
1085
  "div",
@@ -1091,7 +1091,7 @@ const Le = Be(
1091
1091
  }
1092
1092
  ),
1093
1093
  He,
1094
- J !== "default" ? /* @__PURE__ */ E(
1094
+ Z !== "default" ? /* @__PURE__ */ E(
1095
1095
  "div",
1096
1096
  {
1097
1097
  className: jt,
@@ -1140,10 +1140,10 @@ const Le = Be(
1140
1140
  locale: S,
1141
1141
  direction: st,
1142
1142
  firstDay: Et,
1143
- editable: se,
1144
- eventDurationEditable: We ?? se,
1143
+ editable: J,
1144
+ eventDurationEditable: J === !1 ? !1 : We ?? J,
1145
1145
  selectable: Fe,
1146
- droppable: se,
1146
+ droppable: J,
1147
1147
  dayMaxEvents: Ze,
1148
1148
  height: ze,
1149
1149
  expandRows: !0,
@@ -1185,8 +1185,8 @@ const Le = Be(
1185
1185
  slotEventOverlap: Ye,
1186
1186
  stickyHeaderDates: Xe,
1187
1187
  nowIndicator: Je,
1188
- eventLongPressDelay: te ? 0 : 1e3,
1189
- eventDragMinDistance: te ? 0 : ve,
1188
+ eventLongPressDelay: re ? 0 : 1e3,
1189
+ eventDragMinDistance: re ? 0 : ve,
1190
1190
  eventContent: (e) => {
1191
1191
  var r;
1192
1192
  const t = e.event.extendedProps ?? {};
@@ -1249,4 +1249,4 @@ export {
1249
1249
  dr as c,
1250
1250
  pe as r
1251
1251
  };
1252
- //# sourceMappingURL=calendar-PFO-NlYw.js.map
1252
+ //# sourceMappingURL=calendar-BQPyUUPP.js.map