@alfadocs/ui-kit 1.36.1 → 1.37.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 (127) hide show
  1. package/dist/_chunks/appointment-peek-5S4O1VQP.js +115 -0
  2. package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
  3. package/dist/_chunks/building-2-D33bLCWL.js +24 -0
  4. package/dist/_chunks/calendar-workspace-BqKBj26r.js +9715 -0
  5. package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
  6. package/dist/_chunks/editable-description-BOfAeY3T.js +112 -0
  7. package/dist/_chunks/editable-description.agent-Bm_LBV2j.js +21 -0
  8. package/dist/_chunks/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
  9. package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
  10. package/dist/_chunks/notes-panel-4y5JioWN.js +556 -0
  11. package/dist/_chunks/panel-subview-BNXN8OEL.js +160 -0
  12. package/dist/_chunks/panel-subview.agent-BIBvE-IW.js +17 -0
  13. package/dist/_chunks/{patient-details-f7SSXkTJ.js → patient-details-2cIaL-Zb.js} +2 -2
  14. package/dist/_chunks/{patient-field-row-BQZoP4m2.js → patient-field-row-IHb2VFc2.js} +193 -172
  15. package/dist/_chunks/{patient-summary-card-Bz7KdUin.js → patient-summary-card-BzmJH9a-.js} +2 -2
  16. package/dist/_chunks/{section-card.agent-W18CHEgX.js → section-card-XR2bW1Ie.js} +20 -34
  17. package/dist/_chunks/section-card.agent-Bz1BhM_j.js +17 -0
  18. package/dist/_chunks/smartphone-DaPcFw-X.js +32 -0
  19. package/dist/_chunks/{task-card-BalrLkSz.js → task-card-qTKD1fIT.js} +39 -57
  20. package/dist/_chunks/{task-tray-wl9eti6J.js → task-tray-CQ8UAR2j.js} +2 -2
  21. package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-CBGMtQ_f.js} +2 -2
  22. package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
  23. package/dist/_chunks/treatment-receipt-D4kOLXOk.js +94 -0
  24. package/dist/_chunks/treatment-receipt.agent-bpFm2RPH.js +21 -0
  25. package/dist/_chunks/use-presence-transition-cDwWUXV-.js +58 -0
  26. package/dist/_chunks/{workflow-map-D-LEni11.js → workflow-map-CXdsxvUj.js} +140 -156
  27. package/dist/agent-catalog.json +65 -1
  28. package/dist/components/appointment-peek/appointment-peek.agent.d.ts +3 -0
  29. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -0
  30. package/dist/components/appointment-peek/index.d.ts +4 -0
  31. package/dist/components/appointment-peek/index.js +7 -0
  32. package/dist/components/control-room-rail/index.js +1 -1
  33. package/dist/components/editable-description/editable-description.agent.d.ts +3 -0
  34. package/dist/components/editable-description/editable-description.d.ts +20 -0
  35. package/dist/components/editable-description/index.d.ts +4 -0
  36. package/dist/components/editable-description/index.js +7 -0
  37. package/dist/components/index.d.ts +4 -0
  38. package/dist/components/money/index.js +2 -1
  39. package/dist/components/notes-panel/index.js +1 -1
  40. package/dist/components/notes-panel/notes-panel.d.ts +16 -0
  41. package/dist/components/panel-subview/index.d.ts +4 -0
  42. package/dist/components/panel-subview/index.js +7 -0
  43. package/dist/components/panel-subview/panel-subview.agent.d.ts +3 -0
  44. package/dist/components/panel-subview/panel-subview.d.ts +32 -0
  45. package/dist/components/patient-details/index.js +1 -1
  46. package/dist/components/patient-summary-card/index.js +1 -1
  47. package/dist/components/section-card/index.js +4 -3
  48. package/dist/components/task-card/index.js +1 -1
  49. package/dist/components/task-tray/index.js +1 -1
  50. package/dist/components/tasks-panel/index.js +1 -1
  51. package/dist/components/tool-rail/index.js +1 -1
  52. package/dist/components/treatment-receipt/index.d.ts +4 -0
  53. package/dist/components/treatment-receipt/index.js +7 -0
  54. package/dist/components/treatment-receipt/treatment-receipt.agent.d.ts +3 -0
  55. package/dist/components/treatment-receipt/treatment-receipt.d.ts +30 -0
  56. package/dist/components/workflow/index.js +1 -1
  57. package/dist/hooks/index.d.ts +1 -0
  58. package/dist/hooks/index.js +9 -7
  59. package/dist/hooks/use-presence-transition.d.ts +40 -0
  60. package/dist/host-compat.css +7 -1
  61. package/dist/i18n/locales/ar.d.ts +29 -5
  62. package/dist/i18n/locales/ar.js +29 -5
  63. package/dist/i18n/locales/de.d.ts +29 -5
  64. package/dist/i18n/locales/de.js +29 -5
  65. package/dist/i18n/locales/el.d.ts +29 -5
  66. package/dist/i18n/locales/el.js +29 -5
  67. package/dist/i18n/locales/en.d.ts +29 -5
  68. package/dist/i18n/locales/en.js +29 -5
  69. package/dist/i18n/locales/es.d.ts +29 -5
  70. package/dist/i18n/locales/es.js +29 -5
  71. package/dist/i18n/locales/fr.d.ts +29 -5
  72. package/dist/i18n/locales/fr.js +29 -5
  73. package/dist/i18n/locales/hi.d.ts +29 -5
  74. package/dist/i18n/locales/hi.js +29 -5
  75. package/dist/i18n/locales/it.d.ts +29 -5
  76. package/dist/i18n/locales/it.js +29 -5
  77. package/dist/i18n/locales/ja.d.ts +29 -5
  78. package/dist/i18n/locales/ja.js +29 -5
  79. package/dist/i18n/locales/nl.d.ts +29 -5
  80. package/dist/i18n/locales/nl.js +29 -5
  81. package/dist/i18n/locales/pl.d.ts +29 -5
  82. package/dist/i18n/locales/pl.js +29 -5
  83. package/dist/i18n/locales/pt.d.ts +29 -5
  84. package/dist/i18n/locales/pt.js +29 -5
  85. package/dist/i18n/locales/ro.d.ts +29 -5
  86. package/dist/i18n/locales/ro.js +29 -5
  87. package/dist/i18n/locales/ru.d.ts +29 -5
  88. package/dist/i18n/locales/ru.js +29 -5
  89. package/dist/i18n/locales/sq.d.ts +29 -5
  90. package/dist/i18n/locales/sq.js +29 -5
  91. package/dist/i18n/locales/sv.d.ts +29 -5
  92. package/dist/i18n/locales/sv.js +29 -5
  93. package/dist/i18n/locales/tr.d.ts +29 -5
  94. package/dist/i18n/locales/tr.js +29 -5
  95. package/dist/i18n/locales/zh.d.ts +29 -5
  96. package/dist/i18n/locales/zh.js +29 -5
  97. package/dist/index.js +958 -940
  98. package/dist/locales/ar.json +29 -5
  99. package/dist/locales/de.json +29 -5
  100. package/dist/locales/el.json +29 -5
  101. package/dist/locales/en.json +29 -5
  102. package/dist/locales/es.json +29 -5
  103. package/dist/locales/fr.json +29 -5
  104. package/dist/locales/hi.json +29 -5
  105. package/dist/locales/it.json +29 -5
  106. package/dist/locales/ja.json +29 -5
  107. package/dist/locales/nl.json +29 -5
  108. package/dist/locales/pl.json +29 -5
  109. package/dist/locales/pt.json +29 -5
  110. package/dist/locales/ro.json +29 -5
  111. package/dist/locales/ru.json +29 -5
  112. package/dist/locales/sq.json +29 -5
  113. package/dist/locales/sv.json +29 -5
  114. package/dist/locales/tr.json +29 -5
  115. package/dist/locales/zh.json +29 -5
  116. package/dist/patterns/calendar/calendar-appointment-details.d.ts +15 -6
  117. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
  118. package/dist/patterns/calendar/calendar-info-hover.d.ts +18 -0
  119. package/dist/patterns/calendar/calendar.journey.d.ts +10 -0
  120. package/dist/patterns/calendar/calendar.sheets.d.ts +2 -2
  121. package/dist/patterns/calendar/index.js +1 -1
  122. package/dist/tokens.css +1 -1
  123. package/package.json +17 -1
  124. package/dist/_chunks/calendar-workspace-BYwQK7fz.js +0 -9478
  125. package/dist/_chunks/hourglass-BEAzW1wE.js +0 -26
  126. package/dist/_chunks/notes-panel-Co8D3uDd.js +0 -469
  127. package/dist/_chunks/smartphone-C0rFF2if.js +0 -15
@@ -0,0 +1,160 @@
1
+ import { jsxs as E, jsx as o, Fragment as T } from "react/jsx-runtime";
2
+ import { forwardRef as I, useId as V, useRef as m, useCallback as B, useEffect as P } from "react";
3
+ import { c as b } from "./index-D2ZczOXr.js";
4
+ import { I as D } from "./icon-button-8xqRnkdG.js";
5
+ import { P as O } from "./panel-header-D_mTdhUp.js";
6
+ import { S as _ } from "./scroll-area-BZOvUhwQ.js";
7
+ import { u as k } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as K } from "./use-presence-transition-cDwWUXV-.js";
9
+ import { c as q } from "./createLucideIcon-DhHxpK9K.js";
10
+ /**
11
+ * @license lucide-react v1.22.0 - ISC
12
+ *
13
+ * This source code is licensed under the ISC license.
14
+ * See the LICENSE file in the root directory of this source tree.
15
+ */
16
+ const G = [
17
+ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
18
+ ["path", { d: "M19 12H5", key: "x3x0zl" }]
19
+ ], J = q("arrow-left", G), Q = b(
20
+ "ds:relative ds:flex ds:h-full ds:min-h-0 ds:flex-col ds:overflow-hidden"
21
+ ), U = b(
22
+ [
23
+ "ds:absolute ds:inset-0 ds:z-[2] ds:flex ds:min-h-0 ds:flex-col",
24
+ "ds:bg-[var(--background)] ds:focus-visible:outline-none",
25
+ // Slides in from the inline end, and back out the same way. Declared at
26
+ // rest so both directions have a value to move from.
27
+ "ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
28
+ "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
29
+ "ds:data-[presence=entering]:opacity-0 ds:data-[presence=leaving]:opacity-0",
30
+ "ds:data-[presence=entering]:translate-x-full ds:data-[presence=leaving]:translate-x-full",
31
+ "ds:rtl:data-[presence=entering]:-translate-x-full ds:rtl:data-[presence=leaving]:-translate-x-full",
32
+ "ds:data-[presence=leaving]:pointer-events-none"
33
+ ].join(" ")
34
+ ), W = b(
35
+ [
36
+ "ds:flex ds:shrink-0 ds:items-center ds:justify-end",
37
+ "ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
38
+ "ds:border-t ds:border-[color:var(--border)]"
39
+ ].join(" ")
40
+ ), j = I(
41
+ ({ className: t, children: i, ...v }, d) => /* @__PURE__ */ o(
42
+ "div",
43
+ {
44
+ ref: d,
45
+ "data-component": "panel-subview-host",
46
+ className: [Q(), t].filter(Boolean).join(" "),
47
+ ...v,
48
+ children: i
49
+ }
50
+ )
51
+ );
52
+ j.displayName = "PanelSubview.Host";
53
+ const A = I(
54
+ ({
55
+ open: t,
56
+ onBack: i,
57
+ title: v,
58
+ backLabel: d,
59
+ icon: N,
60
+ headingLevel: S,
61
+ headerActions: H,
62
+ footer: h,
63
+ onExited: L,
64
+ initialFocusRef: l,
65
+ className: R,
66
+ children: z,
67
+ ...C
68
+ }, c) => {
69
+ const g = V(), s = K(t, { onExited: L }), u = m(null), p = m(null), w = m(i);
70
+ w.current = i;
71
+ const { ref: y } = s, M = B(
72
+ (e) => {
73
+ u.current = e, y(e), typeof c == "function" ? c(e) : c && (c.current = e);
74
+ },
75
+ [y, c]
76
+ ), x = m(t);
77
+ t && !x.current && typeof document < "u" && (p.current = document.activeElement instanceof HTMLElement ? document.activeElement : null), x.current = t, k(() => {
78
+ const e = u.current, n = e == null ? void 0 : e.parentElement;
79
+ if (!t || !e || !n) return;
80
+ const r = Array.from(n.children).filter(
81
+ (a) => a !== e && !a.hasAttribute("inert")
82
+ );
83
+ return r.forEach((a) => a.setAttribute("inert", "")), ((l == null ? void 0 : l.current) ?? e).focus({ preventScroll: !0 }), () => {
84
+ r.forEach((a) => a.removeAttribute("inert"));
85
+ };
86
+ }, [t, s.mounted, l]);
87
+ const f = !t;
88
+ return k(() => {
89
+ const e = u.current;
90
+ if (!e) return;
91
+ const n = document.activeElement;
92
+ f && n instanceof HTMLElement && e.contains(n) && n.blur(), e.toggleAttribute("inert", f);
93
+ }, [f, s.mounted]), P(() => {
94
+ if (t)
95
+ return () => {
96
+ const e = p.current;
97
+ p.current = null, e != null && e.isConnected && e.focus();
98
+ };
99
+ }, [t]), P(() => {
100
+ const e = u.current;
101
+ if (!t || !e) return;
102
+ const n = (r) => {
103
+ r.key !== "Escape" || r.defaultPrevented || (r.preventDefault(), r.stopPropagation(), w.current());
104
+ };
105
+ return e.addEventListener("keydown", n), () => e.removeEventListener("keydown", n);
106
+ }, [t, s.mounted]), s.mounted ? /* @__PURE__ */ E(
107
+ "section",
108
+ {
109
+ ...C,
110
+ ref: M,
111
+ tabIndex: -1,
112
+ "aria-labelledby": g,
113
+ "aria-hidden": f || void 0,
114
+ "data-component": "panel-subview",
115
+ "data-presence": s.phase,
116
+ className: [U(), R].filter(Boolean).join(" "),
117
+ children: [
118
+ /* @__PURE__ */ o(
119
+ O,
120
+ {
121
+ icon: N,
122
+ title: v,
123
+ headingId: g,
124
+ headingLevel: S,
125
+ sticky: !0,
126
+ divider: !0,
127
+ actions: /* @__PURE__ */ E(T, { children: [
128
+ /* @__PURE__ */ o(
129
+ D,
130
+ {
131
+ icon: /* @__PURE__ */ o(J, { "aria-hidden": "true" }),
132
+ intent: "ghost",
133
+ size: "sm",
134
+ flipIconInRtl: !0,
135
+ "aria-label": d,
136
+ tooltip: d,
137
+ "data-panel-subview-back": "",
138
+ onClick: i
139
+ }
140
+ ),
141
+ H
142
+ ] })
143
+ }
144
+ ),
145
+ /* @__PURE__ */ o(_, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: z }),
146
+ h ? /* @__PURE__ */ o("div", { "data-panel-subview-footer": "", className: W(), children: h }) : null
147
+ ]
148
+ }
149
+ ) : null;
150
+ }
151
+ );
152
+ A.displayName = "PanelSubview";
153
+ const se = Object.assign(A, {
154
+ Host: j
155
+ });
156
+ export {
157
+ J as A,
158
+ se as P
159
+ };
160
+ //# sourceMappingURL=panel-subview-BNXN8OEL.js.map
@@ -0,0 +1,17 @@
1
+ const e = {
2
+ id: "panel-subview",
3
+ capabilities: [],
4
+ state: {},
5
+ actions: {},
6
+ domHooks: {
7
+ root: {
8
+ attr: "data-component",
9
+ value: "panel-subview",
10
+ description: "Marks the element as a kit PanelSubview."
11
+ }
12
+ }
13
+ };
14
+ export {
15
+ e as p
16
+ };
17
+ //# sourceMappingURL=panel-subview.agent-BIBvE-IW.js.map
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-CTjxzGuF.js";
8
8
  import { D as ae } from "./description-list-C1RXMDZ_.js";
9
9
  import { P as de } from "./panel-header-D_mTdhUp.js";
10
10
  import { u as re } from "./registry-DvAUVLHh.js";
11
- import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-BQZoP4m2.js";
11
+ import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-IHb2VFc2.js";
12
12
  import { C as pe } from "./clipboard-list-rSzfIYZB.js";
13
13
  const me = {
14
14
  id: "patient-details",
@@ -368,4 +368,4 @@ export {
368
368
  ue as P,
369
369
  me as p
370
370
  };
371
- //# sourceMappingURL=patient-details-f7SSXkTJ.js.map
371
+ //# sourceMappingURL=patient-details-2cIaL-Zb.js.map