@alfadocs/ui-kit 1.147.2 → 1.149.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 (115) hide show
  1. package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
  2. package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
  3. package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
  4. package/dist/_chunks/{calendar-appointment-editor-dialog-CoIFwj9g.js → calendar-appointment-editor-dialog-Dx9_KIWA.js} +7 -7
  5. package/dist/_chunks/{calendar-waiting-list-panel-DuALuqLD.js → calendar-waiting-list-panel-BKBHfBpn.js} +3 -3
  6. package/dist/_chunks/{calendar.sheets-CueyPkTT.js → calendar.sheets-lgAqJB34.js} +3 -3
  7. package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
  8. package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
  9. package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
  10. package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
  11. package/dist/_chunks/notes-panel-Cw06dLDm.js +1135 -0
  12. package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
  13. package/dist/_chunks/rich-text-editor-eGdYDPK2.js +4405 -0
  14. package/dist/_chunks/task-editor-4zFL10oM.js +1153 -0
  15. package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-BDPQPOP6.js} +475 -461
  16. package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
  17. package/dist/_chunks/{use-appointment-details-read-CC74Y-r5.js → use-appointment-details-read-Bl1DHXQ2.js} +568 -554
  18. package/dist/agent-catalog.json +9 -7
  19. package/dist/agent-i18n/en.json +4 -4
  20. package/dist/appointment-editor-panel/index.js +1 -1
  21. package/dist/aws-transcribe/index.js +287 -181
  22. package/dist/browser-support.js +1 -1
  23. package/dist/calendar-action-buttons/index.js +1 -1
  24. package/dist/components/_shared/save-outcome.d.ts +23 -0
  25. package/dist/components/appointment-details-panel/index.js +1 -1
  26. package/dist/components/appointment-timeline/index.js +1 -1
  27. package/dist/components/bill-line-table/index.js +1 -1
  28. package/dist/components/bill-table/index.js +1 -1
  29. package/dist/components/button-group/button-group.d.ts +2 -1
  30. package/dist/components/button-group/index.js +1 -1
  31. package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
  32. package/dist/components/data-grid/index.js +2 -2
  33. package/dist/components/face-scheme/index.js +1 -1
  34. package/dist/components/index.d.ts +1 -0
  35. package/dist/components/invoice-upload-list/index.js +1 -1
  36. package/dist/components/notes-panel/index.js +1 -1
  37. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +12 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/rich-text-editor/rich-text-editor.d.ts +5 -3
  40. package/dist/components/task-editor/index.js +1 -1
  41. package/dist/components/task-editor/use-task-editor-form.d.ts +7 -1
  42. package/dist/components/tasks-panel/index.js +1 -1
  43. package/dist/core.css +1 -1
  44. package/dist/find-free-slots-panel/index.js +1 -1
  45. package/dist/host-compat.css +7 -1
  46. package/dist/i18n/locales/ar.d.ts +1 -0
  47. package/dist/i18n/locales/ar.js +2 -1
  48. package/dist/i18n/locales/de.d.ts +1 -0
  49. package/dist/i18n/locales/de.js +2 -1
  50. package/dist/i18n/locales/el.d.ts +1 -0
  51. package/dist/i18n/locales/el.js +2 -1
  52. package/dist/i18n/locales/en.d.ts +1 -0
  53. package/dist/i18n/locales/en.js +2 -1
  54. package/dist/i18n/locales/es.d.ts +1 -0
  55. package/dist/i18n/locales/es.js +2 -1
  56. package/dist/i18n/locales/fr.d.ts +1 -0
  57. package/dist/i18n/locales/fr.js +2 -1
  58. package/dist/i18n/locales/hi.d.ts +1 -0
  59. package/dist/i18n/locales/hi.js +2 -1
  60. package/dist/i18n/locales/it.d.ts +1 -0
  61. package/dist/i18n/locales/it.js +2 -1
  62. package/dist/i18n/locales/ja.d.ts +1 -0
  63. package/dist/i18n/locales/ja.js +2 -1
  64. package/dist/i18n/locales/nl.d.ts +1 -0
  65. package/dist/i18n/locales/nl.js +2 -1
  66. package/dist/i18n/locales/pl.d.ts +1 -0
  67. package/dist/i18n/locales/pl.js +2 -1
  68. package/dist/i18n/locales/pt.d.ts +1 -0
  69. package/dist/i18n/locales/pt.js +2 -1
  70. package/dist/i18n/locales/ro.d.ts +1 -0
  71. package/dist/i18n/locales/ro.js +2 -1
  72. package/dist/i18n/locales/ru.d.ts +1 -0
  73. package/dist/i18n/locales/ru.js +2 -1
  74. package/dist/i18n/locales/sq.d.ts +1 -0
  75. package/dist/i18n/locales/sq.js +2 -1
  76. package/dist/i18n/locales/sv.d.ts +1 -0
  77. package/dist/i18n/locales/sv.js +2 -1
  78. package/dist/i18n/locales/tr.d.ts +1 -0
  79. package/dist/i18n/locales/tr.js +2 -1
  80. package/dist/i18n/locales/zh.d.ts +1 -0
  81. package/dist/i18n/locales/zh.js +2 -1
  82. package/dist/index.js +1408 -1404
  83. package/dist/locales/ar.json +2 -1
  84. package/dist/locales/de.json +2 -1
  85. package/dist/locales/el.json +2 -1
  86. package/dist/locales/en.json +2 -1
  87. package/dist/locales/es.json +2 -1
  88. package/dist/locales/fr.json +2 -1
  89. package/dist/locales/hi.json +2 -1
  90. package/dist/locales/it.json +2 -1
  91. package/dist/locales/ja.json +2 -1
  92. package/dist/locales/nl.json +2 -1
  93. package/dist/locales/pl.json +2 -1
  94. package/dist/locales/pt.json +2 -1
  95. package/dist/locales/ro.json +2 -1
  96. package/dist/locales/ru.json +2 -1
  97. package/dist/locales/sq.json +2 -1
  98. package/dist/locales/sv.json +2 -1
  99. package/dist/locales/tr.json +2 -1
  100. package/dist/locales/zh.json +2 -1
  101. package/dist/online-bookings-panel/index.js +1 -1
  102. package/dist/patterns/calendar/index.js +2 -2
  103. package/dist/patterns/prescription/index.d.ts +1 -1
  104. package/dist/patterns/prescription/index.js +1 -1
  105. package/dist/patterns/prescription/prescription-history.d.ts +28 -0
  106. package/dist/save-outcome/index.js +20 -0
  107. package/dist/speech/aws-transcribe.d.ts +30 -6
  108. package/dist/tokens.css +1 -1
  109. package/dist/waiting-list-panel/index.js +2 -2
  110. package/package.json +5 -1
  111. package/dist/_chunks/button-group-N60L3HMa.js +0 -408
  112. package/dist/_chunks/notes-panel-BHMnLbEH.js +0 -1116
  113. package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
  114. package/dist/_chunks/rich-text-editor-BAcJq1PO.js +0 -4359
  115. package/dist/_chunks/task-editor-B9YpfwcW.js +0 -1095
@@ -10,7 +10,7 @@ import { I as tt } from "./icon-button-u9VMQn3x.js";
10
10
  import { M as ss } from "./multi-select-DeMiHm8T.js";
11
11
  import { S as ns } from "./search-input-CRAMo1CA.js";
12
12
  import { B as le } from "./button-Dp4j9ygh.js";
13
- import { B as st } from "./button-group-N60L3HMa.js";
13
+ import { B as st } from "./button-group-CHQD8GJ0.js";
14
14
  import { D as nt } from "./date-picker-CD-PBzXM.js";
15
15
  import { P as as } from "./panel-header-CbtlTe85.js";
16
16
  import { S as rs } from "./skeleton-tTWJpvAq.js";
@@ -773,4 +773,4 @@ export {
773
773
  Ts as A,
774
774
  fs as a
775
775
  };
776
- //# sourceMappingURL=appointment-timeline-D5qbZ7in.js.map
776
+ //# sourceMappingURL=appointment-timeline-CuZW-CGT.js.map
@@ -2,7 +2,7 @@ import { jsxs as w, jsx as l, Fragment as ot } from "react/jsx-runtime";
2
2
  import { createContext as Jt, useContext as we, useRef as A, useLayoutEffect as Kn, useMemo as E, forwardRef as Pn, useEffect as Ae, useState as qe, useCallback as B, useImperativeHandle as $n, useId as Fn } from "react";
3
3
  import { useTranslation as Pe } from "react-i18next";
4
4
  import { u as zn } from "./registry-DvAUVLHh.js";
5
- import { e as Yn } from "./data-grid-CujX-2tF.js";
5
+ import { e as Yn } from "./data-grid-CkzbCZSo.js";
6
6
  import { a as K } from "./format-number-DdzqwMs1.js";
7
7
  import { i as Vt } from "./is-development-CLUAnsU7.js";
8
8
  import { B as st } from "./badge-BUk4RjTS.js";
@@ -1997,4 +1997,4 @@ export {
1997
1997
  Ci as u,
1998
1998
  Yt as v
1999
1999
  };
2000
- //# sourceMappingURL=bill-line-table-DnkFqMnM.js.map
2000
+ //# sourceMappingURL=bill-line-table-B8Cc2pTH.js.map
@@ -0,0 +1,449 @@
1
+ import { jsx as a, jsxs as S } from "react/jsx-runtime";
2
+ import { forwardRef as Le, useRef as L, useState as pe, useCallback as D, Children as V, isValidElement as M, useEffect as Te, cloneElement as _ } from "react";
3
+ import { c as Ae } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Ne } from "react-i18next";
5
+ import { I as de } from "./icon-button-u9VMQn3x.js";
6
+ import { D as d } from "./dropdown-menu-Bm1KALnk.js";
7
+ import { T as Fe } from "./tooltip-uEBdD1-5.js";
8
+ import { u as $e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
+ import { u as De } from "./use-priority-overflow-Cdmb5EiR.js";
10
+ import { E as fe } from "./ellipsis-dRo9ouSU.js";
11
+ function P(h) {
12
+ h && (h.inert = !0);
13
+ }
14
+ const be = Ae(
15
+ "ds:inline-flex ds:isolate ds:[&>*]:relative ds:[&>*:focus-visible]:z-10",
16
+ {
17
+ variants: {
18
+ orientation: {
19
+ horizontal: [
20
+ "ds:flex-row",
21
+ "ds:[&>*:not(:first-child)]:rounded-s-none",
22
+ "ds:[&>*:not(:last-child)]:rounded-e-none",
23
+ "ds:[&>*:not(:first-child)]:-ms-px"
24
+ ].join(" "),
25
+ vertical: [
26
+ "ds:flex-col",
27
+ "ds:[&>*:not(:first-child)]:rounded-t-none",
28
+ "ds:[&>*:not(:last-child)]:rounded-b-none",
29
+ "ds:[&>*:not(:first-child)]:-mt-px"
30
+ ].join(" ")
31
+ },
32
+ separator: {
33
+ true: "",
34
+ false: ""
35
+ },
36
+ // Set from the group's `intent`: the members are filled buttons.
37
+ filled: {
38
+ true: "",
39
+ false: ""
40
+ }
41
+ },
42
+ compoundVariants: [
43
+ {
44
+ orientation: "horizontal",
45
+ separator: !0,
46
+ filled: !1,
47
+ class: "ds:[&>*:not(:last-child)]:border-e ds:[&>*:not(:last-child)]:border-border"
48
+ },
49
+ {
50
+ orientation: "vertical",
51
+ separator: !0,
52
+ filled: !1,
53
+ class: "ds:[&>*:not(:last-child)]:border-b ds:[&>*:not(:last-child)]:border-border"
54
+ },
55
+ // Filled members have no border of their own and `--border` does not
56
+ // show on a fill. Each later member also overlaps the one before by
57
+ // one pixel, which would cover a line on its end edge. So the line is
58
+ // drawn on the later member's start edge, in its own label colour at
59
+ // 75%: about 3.4:1 against the default primary fill, above the 3:1
60
+ // that WCAG 1.4.11 asks of a boundary between two controls.
61
+ {
62
+ orientation: "horizontal",
63
+ separator: !0,
64
+ filled: !0,
65
+ class: "ds:[&>*:not(:first-child)]:border-s ds:[&>*:not(:first-child)]:border-s-[color:color-mix(in_srgb,currentColor_75%,transparent)]"
66
+ },
67
+ {
68
+ orientation: "vertical",
69
+ separator: !0,
70
+ filled: !0,
71
+ class: "ds:[&>*:not(:first-child)]:border-t ds:[&>*:not(:first-child)]:border-t-[color:color-mix(in_srgb,currentColor_75%,transparent)]"
72
+ }
73
+ ],
74
+ defaultVariants: {
75
+ orientation: "horizontal",
76
+ separator: !1,
77
+ filled: !1
78
+ }
79
+ }
80
+ ), U = "ds:absolute ds:start-0 ds:top-0 ds:invisible ds:pointer-events-none", _e = /* @__PURE__ */ new Set([
81
+ "primary",
82
+ "secondary",
83
+ "destructive",
84
+ "tonal",
85
+ "soft"
86
+ ]), je = Le(
87
+ ({
88
+ className: h,
89
+ orientation: w = "horizontal",
90
+ separator: q = !1,
91
+ toolbar: I = !1,
92
+ intent: v = "outline",
93
+ background: k = "transparent",
94
+ size: f,
95
+ label: me,
96
+ overflow: ge = "none",
97
+ collapseToIcons: j = !1,
98
+ children: z,
99
+ ...H
100
+ }, R) => {
101
+ const W = _e.has(v), { t: B } = Ne("ui"), J = me ?? B("buttonGroup.label", "Button group"), Q = B("buttonGroup.more", "More options"), we = B("link.opensInNewTab", "Opens in a new tab"), b = ge === "menu" && w !== "vertical", m = I, y = L([]), [g, x] = pe(0), X = L(null), [G, ve] = pe(!1);
102
+ $e(() => {
103
+ if (typeof window > "u") return;
104
+ const t = X.current;
105
+ t && ve(window.getComputedStyle(t).direction === "rtl");
106
+ }, []);
107
+ const Y = D(
108
+ (t) => {
109
+ var s;
110
+ if (!m) return;
111
+ const e = y.current.filter(Boolean).length;
112
+ if (e === 0) return;
113
+ const r = w === "vertical" ? "ArrowDown" : G ? "ArrowLeft" : "ArrowRight", o = w === "vertical" ? "ArrowUp" : G ? "ArrowRight" : "ArrowLeft";
114
+ let n = null;
115
+ if (t.key === r ? n = (g + 1) % e : t.key === o ? n = (g - 1 + e) % e : t.key === "Home" ? n = 0 : t.key === "End" && (n = e - 1), n === null) return;
116
+ const l = e;
117
+ let i = 0, c = n;
118
+ for (; i < l; ) {
119
+ const u = y.current[c];
120
+ if (u && u.getAttribute("aria-disabled") !== "true" && !u.disabled)
121
+ break;
122
+ c = t.key === o || t.key === "End" ? (c - 1 + e) % e : (c + 1) % e, i += 1;
123
+ }
124
+ t.preventDefault(), x(c), (s = y.current[c]) == null || s.focus();
125
+ },
126
+ [m, w, G, g]
127
+ ), p = b ? V.toArray(z).filter(M) : [], T = (t) => {
128
+ const e = t.props.children;
129
+ return !t.props.asChild || !M(e) || typeof e.props.href != "string" ? null : {
130
+ label: typeof e.props.children == "string" ? e.props.children : typeof e.props["aria-label"] == "string" ? e.props["aria-label"] : null,
131
+ element: e,
132
+ newTab: e.props.target === "_blank"
133
+ };
134
+ }, A = (t) => {
135
+ var r;
136
+ if (typeof t.props.children == "string") return t.props.children;
137
+ const e = t.props["aria-label"];
138
+ return typeof e == "string" ? e : ((r = T(t)) == null ? void 0 : r.label) ?? null;
139
+ };
140
+ L(!1);
141
+ const Z = p.map(
142
+ (t) => A(t) !== null
143
+ ), ye = p.map((t, e) => {
144
+ var c;
145
+ const { props: r } = t, o = (((c = r.overflowItems) == null ? void 0 : c.length) ?? 0) > 0, n = typeof r.onClick == "function" || T(t) !== null || o, l = r["aria-haspopup"], i = r["aria-expanded"] !== void 0 || r["aria-pressed"] !== void 0 || l !== void 0 && l !== !1 && l !== "false" && !o;
146
+ return Z[e] && n && !i && r["data-overflow-pin"] !== "always";
147
+ }), he = p.map((t, e) => {
148
+ const r = t.props["data-overflow-pin"] !== void 0, o = Z[e];
149
+ return r || !o;
150
+ }), {
151
+ containerRef: Ie,
152
+ fullRowRef: E,
153
+ iconRowRef: ee,
154
+ triggerProbeRef: te,
155
+ stage: ke,
156
+ visible: N,
157
+ overflowing: F
158
+ } = De({
159
+ enabled: b,
160
+ count: p.length,
161
+ twoStage: j,
162
+ pinned: he,
163
+ movable: ye
164
+ }), Re = D(
165
+ (t) => {
166
+ P(t), E(t);
167
+ },
168
+ [E]
169
+ ), xe = D(
170
+ (t) => {
171
+ P(t), ee(t);
172
+ },
173
+ [ee]
174
+ ), Ce = D(
175
+ (t) => {
176
+ P(t), te(t);
177
+ },
178
+ [te]
179
+ ), re = L(null), oe = L(null), $ = b ? N.filter(Boolean).length : V.count(z);
180
+ Te(() => {
181
+ var e;
182
+ if (!m || !b) return;
183
+ const t = $ + (F ? 1 : 0);
184
+ t > 0 && g >= t && (x(t - 1), document.activeElement === document.body && ((e = re.current) == null || e.focus()));
185
+ }, [
186
+ m,
187
+ b,
188
+ $,
189
+ F,
190
+ g
191
+ ]);
192
+ const ne = (t, e) => (r) => {
193
+ y.current[e] = r;
194
+ const o = t.ref;
195
+ typeof o == "function" ? o(r) : o != null && typeof o == "object" && (o.current = r);
196
+ }, Se = b ? null : V.map(z, (t, e) => {
197
+ if (!M(t)) return t;
198
+ const r = t, o = {
199
+ intent: r.props.intent ?? v,
200
+ background: r.props.background ?? k,
201
+ ...f ? { size: r.props.size ?? f } : null
202
+ };
203
+ return m && (o.tabIndex = e === g ? 0 : -1, o.onFocus = (n) => {
204
+ var l, i;
205
+ x(e), (i = (l = r.props).onFocus) == null || i.call(l, n);
206
+ }, o.ref = ne(r, e)), _(
207
+ r,
208
+ o
209
+ );
210
+ });
211
+ let se = null, ae = null, le = null;
212
+ if (b) {
213
+ y.current.length = $ + (F ? 1 : 0);
214
+ let t = -1;
215
+ se = p.map((e, r) => {
216
+ if (!N[r]) return null;
217
+ t += 1;
218
+ const o = t, n = {
219
+ intent: e.props.intent ?? v,
220
+ background: e.props.background ?? k,
221
+ ...f ? { size: e.props.size ?? f } : null
222
+ };
223
+ j && ke === "icons" && e.props.children && (e.props.startIcon || e.props.endIcon) && (n.hideLabel = !0), m && (n.tabIndex = o === g ? 0 : -1, n.onFocus = (u) => {
224
+ var C, ue;
225
+ x(o), (ue = (C = e.props).onFocus) == null || ue.call(C, u);
226
+ }, n.ref = ne(e, o));
227
+ const l = n.hideLabel === !0, i = _(
228
+ e,
229
+ n
230
+ ), c = e.props["data-overflow-tip"] === !1 || e.props["data-overflow-tip"] === "false", s = l && !c ? A(e) : null;
231
+ return s ? /* @__PURE__ */ a(Fe, { label: s, children: i }, e.key ?? r) : i;
232
+ }), ae = p.map((e, r) => {
233
+ if (N[r]) return null;
234
+ const o = A(e);
235
+ if (o === null) return null;
236
+ const n = e.props.disabled === !0 || e.props.loading === !0, l = e.props["data-action"], i = e.props.overflowItems;
237
+ if (i && i.length > 0)
238
+ return /* @__PURE__ */ S(d.Sub, { children: [
239
+ /* @__PURE__ */ a(
240
+ d.SubTrigger,
241
+ {
242
+ startIcon: e.props.startIcon,
243
+ disabled: n,
244
+ "data-action": l,
245
+ children: o
246
+ }
247
+ ),
248
+ /* @__PURE__ */ a(d.SubContent, { children: i.map((s, u) => /* @__PURE__ */ a(
249
+ d.Item,
250
+ {
251
+ startIcon: s.icon,
252
+ disabled: s.disabled,
253
+ "data-action": s.action,
254
+ onSelect: () => s.onSelect(),
255
+ children: s.label
256
+ },
257
+ `${u}-${s.label}`
258
+ )) })
259
+ ] }, e.key ?? r);
260
+ const c = T(e);
261
+ return c ? /* @__PURE__ */ a(
262
+ d.Item,
263
+ {
264
+ startIcon: e.props.startIcon,
265
+ disabled: n,
266
+ "data-action": l,
267
+ "aria-label": c.newTab ? `${o}, ${we}` : void 0,
268
+ onSelect: () => {
269
+ var s, u;
270
+ (u = (s = oe.current) == null ? void 0 : s.querySelector(
271
+ `[data-link-index="${r}"] [href]`
272
+ )) == null || u.click();
273
+ },
274
+ children: o
275
+ },
276
+ e.key ?? r
277
+ ) : /* @__PURE__ */ a(
278
+ d.Item,
279
+ {
280
+ startIcon: e.props.startIcon,
281
+ disabled: n,
282
+ "data-action": l,
283
+ onSelect: (s) => {
284
+ var u, C;
285
+ (C = (u = e.props).onClick) == null || C.call(
286
+ u,
287
+ s
288
+ );
289
+ },
290
+ children: o
291
+ },
292
+ e.key ?? r
293
+ );
294
+ }), le = p.map((e, r) => {
295
+ var l;
296
+ if (N[r] || A(e) === null) return null;
297
+ const o = T(e);
298
+ if (!o || (((l = e.props.overflowItems) == null ? void 0 : l.length) ?? 0) > 0)
299
+ return null;
300
+ const n = o.element.props.onClick;
301
+ return /* @__PURE__ */ a("span", { "data-link-index": r, children: _(o.element, {
302
+ onClick: (i) => {
303
+ var c, s;
304
+ typeof n == "function" && n(i), (s = (c = e.props).onClick) == null || s.call(
305
+ c,
306
+ i
307
+ );
308
+ },
309
+ /* No query may land on this hidden copy. */
310
+ id: void 0,
311
+ "data-action": void 0
312
+ }) }, e.key ?? r);
313
+ });
314
+ }
315
+ const ie = (t) => {
316
+ X.current = t, typeof R == "function" ? R(t) : R && typeof R == "object" && (R.current = t);
317
+ };
318
+ if (!b)
319
+ return /* @__PURE__ */ a(
320
+ "div",
321
+ {
322
+ ref: ie,
323
+ role: I ? "toolbar" : "group",
324
+ "aria-label": J,
325
+ "aria-orientation": I ? w ?? "horizontal" : void 0,
326
+ "data-component": "button-group",
327
+ onKeyDown: Y,
328
+ className: be({
329
+ orientation: w,
330
+ separator: q,
331
+ filled: W,
332
+ className: h
333
+ }),
334
+ ...H,
335
+ children: Se
336
+ }
337
+ );
338
+ const K = be({
339
+ orientation: w,
340
+ separator: q,
341
+ filled: W
342
+ }), O = $, ce = (t, e, r) => _(t, {
343
+ key: t.key ?? e,
344
+ intent: t.props.intent ?? v,
345
+ background: t.props.background ?? k,
346
+ ...f ? { size: t.props.size ?? f } : null,
347
+ tabIndex: -1,
348
+ // Same rule as the live strip: icon-only children never hideLabel.
349
+ ...r && t.props.children && (t.props.startIcon || t.props.endIcon) ? { hideLabel: !0 } : null,
350
+ /* The hook belongs to the live child alone: a query for it must
351
+ never land on an inert copy. */
352
+ "data-action": void 0,
353
+ ref: null
354
+ });
355
+ return /* @__PURE__ */ a(
356
+ "div",
357
+ {
358
+ ref: ie,
359
+ "data-component": "button-group",
360
+ className: [
361
+ "ds:relative ds:block ds:w-full ds:min-w-0 ds:overflow-x-clip",
362
+ h ?? ""
363
+ ].join(" ").trim(),
364
+ ...H,
365
+ children: /* @__PURE__ */ S("div", { ref: Ie, className: "ds:block ds:w-full ds:min-w-0", children: [
366
+ /* @__PURE__ */ a(
367
+ "div",
368
+ {
369
+ ref: Re,
370
+ "aria-hidden": "true",
371
+ inert: !0,
372
+ className: `${U} ${K}`,
373
+ children: p.map((t, e) => ce(t, e, !1))
374
+ }
375
+ ),
376
+ j ? /* @__PURE__ */ a(
377
+ "div",
378
+ {
379
+ ref: xe,
380
+ "aria-hidden": "true",
381
+ inert: !0,
382
+ className: `${U} ${K}`,
383
+ children: p.map((t, e) => ce(t, e, !0))
384
+ }
385
+ ) : null,
386
+ /* @__PURE__ */ a(
387
+ "span",
388
+ {
389
+ ref: Ce,
390
+ "aria-hidden": "true",
391
+ inert: !0,
392
+ className: U,
393
+ children: /* @__PURE__ */ a(
394
+ de,
395
+ {
396
+ icon: /* @__PURE__ */ a(fe, {}),
397
+ intent: v,
398
+ background: k,
399
+ size: f,
400
+ "aria-label": Q,
401
+ tabIndex: -1
402
+ }
403
+ )
404
+ }
405
+ ),
406
+ /* @__PURE__ */ S(
407
+ "div",
408
+ {
409
+ role: I ? "toolbar" : "group",
410
+ "aria-label": J,
411
+ "aria-orientation": I ? "horizontal" : void 0,
412
+ onKeyDown: Y,
413
+ className: `${K} ds:max-w-full ds:align-top ds:[&>[data-component=button]]:shrink ds:[&>[data-component=button]]:min-w-0`,
414
+ children: [
415
+ se,
416
+ F ? /* @__PURE__ */ S(d.Root, { children: [
417
+ /* @__PURE__ */ a(d.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
418
+ de,
419
+ {
420
+ icon: /* @__PURE__ */ a(fe, {}),
421
+ intent: v,
422
+ background: k,
423
+ size: f,
424
+ "aria-label": Q,
425
+ ref: (t) => {
426
+ re.current = t, y.current[O] = t;
427
+ },
428
+ tabIndex: m ? g === O ? 0 : -1 : void 0,
429
+ onFocus: m ? () => x(O) : void 0
430
+ }
431
+ ) }),
432
+ /* @__PURE__ */ S(d.Content, { align: "end", children: [
433
+ ae,
434
+ /* @__PURE__ */ a("div", { ref: oe, hidden: !0, children: le })
435
+ ] })
436
+ ] }) : null
437
+ ]
438
+ }
439
+ )
440
+ ] })
441
+ }
442
+ );
443
+ }
444
+ );
445
+ je.displayName = "ButtonGroup";
446
+ export {
447
+ je as B
448
+ };
449
+ //# sourceMappingURL=button-group-CHQD8GJ0.js.map
@@ -3,7 +3,7 @@ import { useState as _, useMemo as B, useRef as $, useEffect as G, useCallback a
3
3
  import { useTranslation as gt } from "react-i18next";
4
4
  import { u as js } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
5
5
  import { C as Ys, b as Xs, a as Js } from "./collapsible-DVPM46bq.js";
6
- import { A as Zs } from "./appointment-timeline-D5qbZ7in.js";
6
+ import { A as Zs } from "./appointment-timeline-CuZW-CGT.js";
7
7
  import { a as Qs } from "./workflow-status-Cg7yjnye.js";
8
8
  import { A as qa, g as ei } from "./avatar-Dp5apm1d.js";
9
9
  import { B as Br } from "./badge-BUk4RjTS.js";
@@ -13,7 +13,7 @@ import { ag as ai, ah as si, ai as ii, v as oi, aj as ci, ak as ts, al as ns, S
13
13
  import { S as ji } from "./stethoscope-sZXGC43m.js";
14
14
  import { C as _s } from "./chevron-down-DWE7GSq9.js";
15
15
  import { a as Yi } from "./entity-card-p-LANpYt.js";
16
- import { T as Xi } from "./task-editor-B9YpfwcW.js";
16
+ import { T as Xi } from "./task-editor-4zFL10oM.js";
17
17
  import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-BQvaYowi.js";
18
18
  import { S as $s } from "./scroll-area-CY5SLYNw.js";
19
19
  import { A as eo, u as to } from "./app-frame-context-CPszhDDb.js";
@@ -21,8 +21,8 @@ import { u as no } from "./use-media-query-CcAx5SMM.js";
21
21
  import { c as vs, a as ro, d as hn, b as fn } from "./toast-Cgmh1cvj.js";
22
22
  import { T as za, a as Rs } from "./tooltip-uEBdD1-5.js";
23
23
  import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-DWS_kM-a.js";
24
- import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-CC74Y-r5.js";
25
- import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-CueyPkTT.js";
24
+ import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-Bl1DHXQ2.js";
25
+ import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-lgAqJB34.js";
26
26
  import { B as Ve } from "./button-Dp4j9ygh.js";
27
27
  import { D as te } from "./dialog-239Geb7Z.js";
28
28
  import { R as Ja } from "./radio-BZQs6_36.js";
@@ -38,7 +38,7 @@ import { R as To } from "./resource-chip-DB5jDwUO.js";
38
38
  import { T as No } from "./tag-BNlcEJfE.js";
39
39
  import { S as Cs } from "./switch-DO6uC4HJ.js";
40
40
  import { I as Fr } from "./icon-button-u9VMQn3x.js";
41
- import { B as Is } from "./button-group-N60L3HMa.js";
41
+ import { B as Is } from "./button-group-CHQD8GJ0.js";
42
42
  import { D as bs } from "./date-picker-CD-PBzXM.js";
43
43
  import { D as Qt } from "./dropdown-menu-Bm1KALnk.js";
44
44
  import { F as wo } from "./form-field-CyHfOVKF.js";
@@ -58,7 +58,7 @@ import { U as Po } from "./user-cog-BTn98Arm.js";
58
58
  import { R as _o } from "./rotate-ccw-BBQnIVTr.js";
59
59
  import { C as $o } from "./chevron-left-B8cOyH-V.js";
60
60
  import { C as Ro } from "./chevron-right-I9AeSxH2.js";
61
- import { W as zo } from "./calendar-waiting-list-panel-DuALuqLD.js";
61
+ import { W as zo } from "./calendar-waiting-list-panel-BKBHfBpn.js";
62
62
  import { C as Ho } from "./calendar-days-BGWklvE-.js";
63
63
  import { C as Ha } from "./calendar-clock-hbObjfGY.js";
64
64
  import { P as Ia } from "./privacy-mask-zVh0ntm0.js";
@@ -5516,4 +5516,4 @@ export {
5516
5516
  sd as C,
5517
5517
  ad as i
5518
5518
  };
5519
- //# sourceMappingURL=calendar-appointment-editor-dialog-CoIFwj9g.js.map
5519
+ //# sourceMappingURL=calendar-appointment-editor-dialog-Dx9_KIWA.js.map
@@ -7,7 +7,7 @@ import { A as De } from "./avatar-Dp5apm1d.js";
7
7
  import { B as Pe } from "./badge-BUk4RjTS.js";
8
8
  import { B as S } from "./button-Dp4j9ygh.js";
9
9
  import { I as me } from "./icon-button-u9VMQn3x.js";
10
- import { B as Ee } from "./button-group-N60L3HMa.js";
10
+ import { B as Ee } from "./button-group-CHQD8GJ0.js";
11
11
  import { C as pe } from "./card-n6W6LW-N.js";
12
12
  import { D as de } from "./date-picker-CD-PBzXM.js";
13
13
  import { D as Y } from "./dropdown-menu-Bm1KALnk.js";
@@ -22,7 +22,7 @@ import { T as Ke } from "./text-area-COMVJ1yE.js";
22
22
  import { T as be } from "./tooltip-uEBdD1-5.js";
23
23
  import { V as xe } from "./visually-hidden-BHxEUGyT.js";
24
24
  import { a as ke } from "./whatsapp-button-XbozeDl_.js";
25
- import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-CueyPkTT.js";
25
+ import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-lgAqJB34.js";
26
26
  import { u as Re } from "./calendar-editor-guard-9fShhNIA.js";
27
27
  import { E as le, f as He, g as Qe, w as qe, d as Je, N as Ue, e as Xe, i as Ze, j as ea, p as aa, k as sa } from "./calendar-workspace.model-4zmA3BFE.js";
28
28
  import { F as ta } from "./funnel-DpPV3Qkd.js";
@@ -978,4 +978,4 @@ function Ta({
978
978
  export {
979
979
  za as W
980
980
  };
981
- //# sourceMappingURL=calendar-waiting-list-panel-DuALuqLD.js.map
981
+ //# sourceMappingURL=calendar-waiting-list-panel-BKBHfBpn.js.map
@@ -14,7 +14,7 @@ import { R as Ae } from "./radio-BZQs6_36.js";
14
14
  import { R as Sn } from "./radio-group-ChIKyeSJ.js";
15
15
  import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-4zmA3BFE.js";
16
16
  import { V as Ps } from "./visually-hidden-BHxEUGyT.js";
17
- import { N as sd } from "./notes-panel-BHMnLbEH.js";
17
+ import { N as sd } from "./notes-panel-Cw06dLDm.js";
18
18
  import { A as gi } from "./avatar-Dp5apm1d.js";
19
19
  import { E as vi } from "./empty-state-5REM7oDM.js";
20
20
  import { P as Ms } from "./panel-header-CbtlTe85.js";
@@ -36,7 +36,7 @@ import { a as ai } from "./key-value-pair-BykhMTcP.js";
36
36
  import { T as Aa } from "./timestamp-UMF1llBs.js";
37
37
  import { S as dd } from "./switch-DO6uC4HJ.js";
38
38
  import { I as ve } from "./icon-button-u9VMQn3x.js";
39
- import { B as yi } from "./button-group-N60L3HMa.js";
39
+ import { B as yi } from "./button-group-CHQD8GJ0.js";
40
40
  import { I as ti } from "./icon-button-group-DEAx9M5v.js";
41
41
  import { C as od, b as cd, a as ld } from "./collapsible-DVPM46bq.js";
42
42
  import { D as $s } from "./date-picker-CD-PBzXM.js";
@@ -4583,4 +4583,4 @@ export {
4583
4583
  Si as u,
4584
4584
  bl as w
4585
4585
  };
4586
- //# sourceMappingURL=calendar.sheets-CueyPkTT.js.map
4586
+ //# sourceMappingURL=calendar.sheets-lgAqJB34.js.map