@alfadocs/ui-kit 1.10.1 → 1.12.4

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 (118) hide show
  1. package/dist/_chunks/{actions-cell-renderer-xfSYiTXQ.js → actions-cell-renderer-BCEjn3-f.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-d44s_whc.js → anamnesis-summary-rows-BfhxWPO3.js} +1421 -1418
  3. package/dist/_chunks/appointment-timeline-DCn0Jx55.js +403 -0
  4. package/dist/_chunks/{balance-badge-cell-C_Qz76x7.js → balance-badge-cell-BrlikHfT.js} +317 -290
  5. package/dist/_chunks/booking-CBHKdsZl.js +2906 -0
  6. package/dist/_chunks/{chart-Bkr1Sh4o.js → chart-C6eHTxkO.js} +2 -2
  7. package/dist/_chunks/{contact-profile-card-CE9OJKcl.js → contact-profile-card-BMIBr5s9.js} +104 -125
  8. package/dist/_chunks/{control-room-rail-Cj2iX9h_.js → control-room-rail-iO_BCaq1.js} +2 -2
  9. package/dist/_chunks/{editable-currency-cell-renderer-zLf_bXvL.js → editable-currency-cell-renderer-B7TVZ5ZJ.js} +2 -2
  10. package/dist/_chunks/{face-scheme-BfDi4YkW.js → face-scheme-CZaKm6fG.js} +2 -2
  11. package/dist/_chunks/{file-manager-Df6hyUYg.js → file-manager-Moc7sUFj.js} +3 -3
  12. package/dist/_chunks/format-price-DNqXPa_q.js +61 -0
  13. package/dist/_chunks/{header-settings-CVC_davE.js → header-settings-J-ZCAfir.js} +2 -2
  14. package/dist/_chunks/{icon-button-group-D6SVMteH.js → icon-button-group-VCCod3Hz.js} +154 -145
  15. package/dist/_chunks/{link-cell-renderer-Cp2MSlJl.js → link-cell-renderer-CenJx-_7.js} +197 -181
  16. package/dist/_chunks/{marketplace-app-shell-Chfdia7m.js → marketplace-app-shell-DDQXQ8hX.js} +2 -2
  17. package/dist/_chunks/{notes-panel-e9cJWVRg.js → notes-panel-CymneXtl.js} +93 -91
  18. package/dist/_chunks/{practice-results-BEsAdW-B.js → practice-results-D7ygCj_W.js} +333 -291
  19. package/dist/_chunks/{signature-request-CW30B77U.js → signature-request-DVDTKLjM.js} +2 -2
  20. package/dist/_chunks/{stepper-accordion-BeVMZPuG.js → stepper-accordion-DmVykr5F.js} +91 -88
  21. package/dist/_chunks/{theme-toggle-DuMhQNFS.js → theme-toggle-uEwoKjl3.js} +2 -2
  22. package/dist/_chunks/{tool-rail-CHyUmulN.js → tool-rail-8Scslq3X.js} +2 -2
  23. package/dist/_chunks/{whatsapp-button-Ca9towA4.js → whatsapp-button-CuFIHJzG.js} +27 -19
  24. package/dist/agent-catalog.json +12 -5
  25. package/dist/agent-i18n/en.json +4 -3
  26. package/dist/components/_shared/format-price.d.ts +21 -0
  27. package/dist/components/_shared/index.d.ts +1 -0
  28. package/dist/components/_shared/stepper.d.ts +28 -2
  29. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  30. package/dist/components/appointment-timeline/appointment-timeline.d.ts +8 -0
  31. package/dist/components/appointment-timeline/index.js +1 -1
  32. package/dist/components/booking/booking-types.d.ts +15 -2
  33. package/dist/components/booking/index.js +1 -1
  34. package/dist/components/chart/index.js +1 -1
  35. package/dist/components/contact-profile-card/index.js +1 -1
  36. package/dist/components/control-room-rail/index.js +1 -1
  37. package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
  38. package/dist/components/data-table/index.js +3 -3
  39. package/dist/components/face-scheme/index.js +1 -1
  40. package/dist/components/file-manager/index.js +1 -1
  41. package/dist/components/header-settings/index.js +1 -1
  42. package/dist/components/icon-button-group/index.js +1 -1
  43. package/dist/components/notes-panel/index.js +1 -1
  44. package/dist/components/notes-panel/notes-panel.d.ts +6 -0
  45. package/dist/components/patient-table/index.js +1 -1
  46. package/dist/components/practice-results/index.js +1 -1
  47. package/dist/components/practice-results/practice-results.d.ts +18 -0
  48. package/dist/components/stepper-accordion/index.js +1 -1
  49. package/dist/components/theme-toggle/index.js +1 -1
  50. package/dist/components/tool-rail/index.js +1 -1
  51. package/dist/components/tool-rail/tool-rail.d.ts +1 -1
  52. package/dist/components/whatsapp-button/index.js +1 -1
  53. package/dist/host-compat.css +7 -1
  54. package/dist/i18n/locales/ar.d.ts +4 -0
  55. package/dist/i18n/locales/ar.js +5 -1
  56. package/dist/i18n/locales/de.d.ts +5 -1
  57. package/dist/i18n/locales/de.js +6 -2
  58. package/dist/i18n/locales/el.d.ts +4 -0
  59. package/dist/i18n/locales/el.js +5 -1
  60. package/dist/i18n/locales/en.d.ts +4 -0
  61. package/dist/i18n/locales/en.js +5 -1
  62. package/dist/i18n/locales/es.d.ts +5 -1
  63. package/dist/i18n/locales/es.js +6 -2
  64. package/dist/i18n/locales/fr.d.ts +5 -1
  65. package/dist/i18n/locales/fr.js +6 -2
  66. package/dist/i18n/locales/hi.d.ts +4 -0
  67. package/dist/i18n/locales/hi.js +5 -1
  68. package/dist/i18n/locales/it.d.ts +4 -0
  69. package/dist/i18n/locales/it.js +5 -1
  70. package/dist/i18n/locales/ja.d.ts +4 -0
  71. package/dist/i18n/locales/ja.js +5 -1
  72. package/dist/i18n/locales/nl.d.ts +5 -1
  73. package/dist/i18n/locales/nl.js +6 -2
  74. package/dist/i18n/locales/pl.d.ts +4 -0
  75. package/dist/i18n/locales/pl.js +5 -1
  76. package/dist/i18n/locales/pt.d.ts +5 -1
  77. package/dist/i18n/locales/pt.js +6 -2
  78. package/dist/i18n/locales/ro.d.ts +4 -0
  79. package/dist/i18n/locales/ro.js +5 -1
  80. package/dist/i18n/locales/ru.d.ts +4 -0
  81. package/dist/i18n/locales/ru.js +5 -1
  82. package/dist/i18n/locales/sq.d.ts +4 -0
  83. package/dist/i18n/locales/sq.js +5 -1
  84. package/dist/i18n/locales/sv.d.ts +4 -0
  85. package/dist/i18n/locales/sv.js +5 -1
  86. package/dist/i18n/locales/tr.d.ts +4 -0
  87. package/dist/i18n/locales/tr.js +5 -1
  88. package/dist/i18n/locales/zh.d.ts +4 -0
  89. package/dist/i18n/locales/zh.js +5 -1
  90. package/dist/index.js +20 -20
  91. package/dist/locales/ar.json +5 -1
  92. package/dist/locales/de.json +6 -2
  93. package/dist/locales/el.json +5 -1
  94. package/dist/locales/en.json +5 -1
  95. package/dist/locales/es.json +6 -2
  96. package/dist/locales/fr.json +6 -2
  97. package/dist/locales/hi.json +5 -1
  98. package/dist/locales/it.json +5 -1
  99. package/dist/locales/ja.json +5 -1
  100. package/dist/locales/nl.json +6 -2
  101. package/dist/locales/pl.json +5 -1
  102. package/dist/locales/pt.json +6 -2
  103. package/dist/locales/ro.json +5 -1
  104. package/dist/locales/ru.json +5 -1
  105. package/dist/locales/sq.json +5 -1
  106. package/dist/locales/sv.json +5 -1
  107. package/dist/locales/tr.json +5 -1
  108. package/dist/locales/zh.json +5 -1
  109. package/dist/patterns/anamnesis/anamnesis-config.d.ts +18 -7
  110. package/dist/patterns/anamnesis/anamnesis-types.d.ts +8 -0
  111. package/dist/patterns/anamnesis/index.js +1 -1
  112. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  113. package/dist/patterns/signature-request/index.js +1 -1
  114. package/dist/tokens.css +1 -1
  115. package/package.json +1 -1
  116. package/dist/_chunks/appointment-timeline-0mwtpErq.js +0 -388
  117. package/dist/_chunks/booking-DHkKcUIl.js +0 -2713
  118. package/dist/_chunks/languages-CGLX6Qpe.js +0 -19
@@ -1,13 +1,13 @@
1
- import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
- import { forwardRef as je, useState as U, useCallback as W, useRef as z, Children as pe, isValidElement as H, useEffect as ge, cloneElement as me } from "react";
3
- import { c as ze } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Se } from "react-i18next";
5
- import { I as be } from "./icon-button-DA2CAGHZ.js";
6
- import { D as w } from "./dropdown-menu-DU-Hrf33.js";
7
- import { u as Be } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { u as Ke } from "./use-priority-overflow-c9SjxZkZ.js";
9
- import { E as ve } from "./ellipsis-dRo9ouSU.js";
10
- const ye = ze(
1
+ import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
+ import { forwardRef as Se, useState as W, useCallback as H, useRef as F, Children as be, isValidElement as _, useEffect as ve, cloneElement as ye } from "react";
3
+ import { c as Be } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Ke } from "react-i18next";
5
+ import { I as he } from "./icon-button-DA2CAGHZ.js";
6
+ import { D as k } from "./dropdown-menu-DU-Hrf33.js";
7
+ import { u as Pe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as Te } from "./use-priority-overflow-c9SjxZkZ.js";
9
+ import { E as we } from "./ellipsis-dRo9ouSU.js";
10
+ const ke = Be(
11
11
  [
12
12
  "ds:inline-flex ds:isolate",
13
13
  // Hairline border around the group unifies the children into one
@@ -52,16 +52,16 @@ const ye = ze(
52
52
  orientation: "horizontal"
53
53
  }
54
54
  }
55
- ), he = "ds:absolute ds:start-0 ds:top-0 ds:invisible ds:pointer-events-none", Pe = je(
56
- (d, v) => {
55
+ ), Ie = "ds:absolute ds:start-0 ds:top-0 ds:invisible ds:pointer-events-none", _e = Se(
56
+ (d, y) => {
57
57
  const {
58
58
  size: m,
59
- orientation: u = "horizontal",
59
+ orientation: c = "horizontal",
60
60
  role: i = "group",
61
61
  mode: n = "momentary",
62
62
  disabled: q = !1,
63
63
  intent: S = "outline",
64
- overflow: we = "none",
64
+ overflow: Ce = "none",
65
65
  className: J,
66
66
  children: Q,
67
67
  "aria-label": X,
@@ -69,11 +69,11 @@ const ye = ze(
69
69
  // Controlled-value props are consumed via `props as …` below; strip them
70
70
  // here so they never spread onto the root <div> (React would warn that
71
71
  // `onValueChange` is an unknown DOM event handler).
72
- value: _e,
73
- defaultValue: Fe,
74
- onValueChange: Ge,
72
+ value: Me,
73
+ defaultValue: Oe,
74
+ onValueChange: $e,
75
75
  ...Z
76
- } = d, { t: ke } = Se(), y = we === "menu" && u !== "vertical", [ee, oe] = U(
76
+ } = d, { t: Re } = Ke(), h = Ce === "menu" && c !== "vertical", [ee, oe] = W(
77
77
  () => n === "toggle-single" ? d.defaultValue ?? "" : n === "toggle-multi" ? d.defaultValue ?? [] : ""
78
78
  ), g = (() => {
79
79
  if (n === "toggle-single") {
@@ -85,7 +85,7 @@ const ye = ze(
85
85
  return e.value !== void 0 ? e.value : ee;
86
86
  }
87
87
  return "";
88
- })(), k = W(
88
+ })(), I = H(
89
89
  (e) => {
90
90
  var o, r;
91
91
  if (n === "toggle-single") {
@@ -97,194 +97,203 @@ const ye = ze(
97
97
  }
98
98
  },
99
99
  [n, d]
100
- ), b = i === "toolbar" || i === "radiogroup", R = z([]), [h, I] = U(0), te = W(
100
+ ), b = i === "toolbar" || i === "radiogroup", x = F([]), [v, A] = W(0), te = H(
101
101
  (e, o) => {
102
- R.current[e] = o;
102
+ x.current[e] = o;
103
103
  },
104
104
  []
105
- ), re = z(null), [F, Ce] = U(!1);
106
- Be(() => {
105
+ ), re = F(null), [G, xe] = W(!1);
106
+ Pe(() => {
107
107
  if (typeof window > "u") return;
108
108
  const e = re.current;
109
109
  if (!e) return;
110
110
  const o = window.getComputedStyle(e).direction;
111
- Ce(o === "rtl");
111
+ xe(o === "rtl");
112
112
  }, []);
113
- const G = W(
113
+ const M = H(
114
114
  (e) => {
115
- var T;
115
+ var P;
116
116
  if (!b) return;
117
- const o = R.current.filter(Boolean).length;
117
+ const o = x.current.filter(Boolean).length;
118
118
  if (o === 0) return;
119
- const r = u === "vertical" ? "ArrowDown" : F ? "ArrowLeft" : "ArrowRight", t = u === "vertical" ? "ArrowUp" : F ? "ArrowRight" : "ArrowLeft";
119
+ const r = c === "vertical" ? "ArrowDown" : G ? "ArrowLeft" : "ArrowRight", t = c === "vertical" ? "ArrowUp" : G ? "ArrowRight" : "ArrowLeft";
120
120
  let s = null;
121
- if (e.key === r ? s = (h + 1) % o : e.key === t ? s = (h - 1 + o) % o : e.key === "Home" ? s = 0 : e.key === "End" && (s = o - 1), s === null) return;
122
- const L = o;
123
- let C = 0, c = s;
124
- for (; C < L; ) {
125
- const f = R.current[c];
121
+ if (e.key === r ? s = (v + 1) % o : e.key === t ? s = (v - 1 + o) % o : e.key === "Home" ? s = 0 : e.key === "End" && (s = o - 1), s === null) return;
122
+ const N = o;
123
+ let R = 0, u = s;
124
+ for (; R < N; ) {
125
+ const f = x.current[u];
126
126
  if (f && f.getAttribute("aria-disabled") !== "true" && !f.disabled)
127
127
  break;
128
- c = e.key === t || e.key === "End" ? (c - 1 + o) % o : (c + 1) % o, C += 1;
128
+ u = e.key === t || e.key === "End" ? (u - 1 + o) % o : (u + 1) % o, R += 1;
129
129
  }
130
- if (e.preventDefault(), I(c), (T = R.current[c]) == null || T.focus(), i === "radiogroup" && n === "toggle-single") {
131
- const f = se.current[c];
130
+ if (e.preventDefault(), A(u), (P = x.current[u]) == null || P.focus(), i === "radiogroup" && n === "toggle-single") {
131
+ const f = se.current[u];
132
132
  if (f && typeof f == "object" && "props" in f) {
133
- const N = f.props.value;
134
- N && N !== g && k(N);
133
+ const j = f.props.value;
134
+ j && j !== g && I(j);
135
135
  }
136
136
  }
137
137
  },
138
138
  [
139
139
  b,
140
- u,
141
- F,
142
- h,
140
+ c,
141
+ G,
142
+ v,
143
143
  i,
144
144
  n,
145
- k,
145
+ I,
146
146
  g
147
147
  ]
148
- ), x = y ? pe.toArray(Q).filter(H) : [], B = (e) => {
148
+ ), D = h ? be.toArray(Q).filter(_) : [], B = (e) => {
149
149
  const o = e.props["aria-label"];
150
150
  return typeof o == "string" ? o : typeof e.props.tooltip == "string" ? e.props.tooltip : null;
151
151
  };
152
- z(!1);
153
- const Re = x.map((e) => {
152
+ F(!1);
153
+ const Ae = D.map((e) => {
154
154
  const o = e.props["data-overflow-pin"] !== void 0, r = B(e) !== null;
155
155
  return o || !r;
156
- }), { containerRef: Ie, fullRowRef: xe, triggerProbeRef: Ae, visible: ne, overflowing: K } = Ke({
157
- enabled: y,
158
- count: x.length,
159
- pinned: Re
160
- }), ie = z(null), A = y ? x.filter((e, o) => ne[o]) : pe.toArray(Q);
161
- y && (R.current.length = A.length + (K ? 1 : 0));
162
- const se = z([]);
163
- se.current = A;
164
- const M = i === "radiogroup" && n === "toggle-single" ? A.findIndex(
165
- (e) => H(e) && e.props.value === g
156
+ }), { containerRef: De, fullRowRef: Ve, triggerProbeRef: Le, visible: ne, overflowing: V } = Te({
157
+ enabled: h,
158
+ count: D.length,
159
+ pinned: Ae
160
+ }), ie = F(null), w = h ? D.filter((e, o) => ne[o]) : be.toArray(Q);
161
+ h && (x.current.length = w.length + (V ? 1 : 0));
162
+ const se = F([]);
163
+ se.current = w;
164
+ const O = i === "radiogroup" && n === "toggle-single" ? w.findIndex(
165
+ (e) => _(e) && e.props.value === g
166
166
  ) : -1;
167
- ge(() => {
168
- M >= 0 && I(M);
169
- }, [M]);
170
- const V = A.length;
171
- ge(() => {
167
+ ve(() => {
168
+ O >= 0 && A(O);
169
+ }, [O]);
170
+ const C = w.length;
171
+ ve(() => {
172
172
  var o;
173
- if (!b || !y) return;
174
- const e = V + (K ? 1 : 0);
175
- e > 0 && h >= e && (I(e - 1), document.activeElement === document.body && ((o = ie.current) == null || o.focus()));
173
+ if (!b || !h) return;
174
+ const e = C + (V ? 1 : 0);
175
+ e > 0 && v >= e && (A(e - 1), document.activeElement === document.body && ((o = ie.current) == null || o.focus()));
176
176
  }, [
177
177
  b,
178
- y,
178
+ h,
179
+ C,
179
180
  V,
180
- K,
181
- h
181
+ v
182
182
  ]);
183
- const ae = A.map((e, o) => {
184
- if (!H(e))
183
+ const ae = (e) => {
184
+ if (!_(e)) return !1;
185
+ const o = e.props;
186
+ return o.disabled === !0 || o.loading === !0;
187
+ }, le = w.findIndex((e) => !ae(e)), de = ae(w[v]) ? le !== -1 ? le : (
188
+ /* Every visible child is disabled: the overflow trigger is the
189
+ only thing left that can hold focus. Without this the group
190
+ has no tab stop at all and the menu is unreachable. */
191
+ V ? C : v
192
+ ) : v, ce = w.map((e, o) => {
193
+ if (!_(e))
185
194
  return e;
186
- const r = e, t = r.props.value, { ariaPressed: s, ariaChecked: L } = Te(
195
+ const r = e, t = r.props.value, { ariaPressed: s, ariaChecked: N } = Ge(
187
196
  n,
188
197
  i,
189
198
  t,
190
199
  g
191
- ), C = q === !0, c = r.props.disabled === !0, T = (p) => {
192
- var l, j;
193
- if (C) {
200
+ ), R = q === !0, u = r.props.disabled === !0, P = (p) => {
201
+ var l, z;
202
+ if (R) {
194
203
  p.preventDefault(), p.stopPropagation();
195
204
  return;
196
205
  }
197
- if ((j = (l = r.props).onClick) == null || j.call(l, p), !p.defaultPrevented && t) {
206
+ if ((z = (l = r.props).onClick) == null || z.call(l, p), !p.defaultPrevented && t) {
198
207
  if (n === "toggle-single") {
199
208
  if (g === t) return;
200
- k(t);
209
+ I(t);
201
210
  } else if (n === "toggle-multi") {
202
- const E = g, Le = E.includes(t) ? E.filter((Ne) => Ne !== t) : [...E, t];
203
- k(Le);
211
+ const U = g, ze = U.includes(t) ? U.filter((Fe) => Fe !== t) : [...U, t];
212
+ I(ze);
204
213
  }
205
214
  }
206
215
  }, f = (p) => {
207
216
  te(o, p);
208
217
  const l = r.ref;
209
218
  typeof l == "function" ? l(p) : l != null && typeof l == "object" && (l.current = p);
210
- }, N = C && !c ? !0 : void 0, Ve = n !== "momentary" || C, De = {
219
+ }, j = R && !u ? !0 : void 0, Ne = n !== "momentary" || R, je = {
211
220
  intent: r.props.intent ?? S,
212
221
  size: r.props.size ?? m,
213
- disabled: c,
214
- "aria-disabled": N,
215
- onClick: Ve ? T : r.props.onClick,
222
+ disabled: u,
223
+ "aria-disabled": j,
224
+ onClick: Ne ? P : r.props.onClick,
216
225
  "aria-pressed": s,
217
- "aria-checked": L,
226
+ "aria-checked": N,
218
227
  // When the group is a radiogroup, children must be `role="radio"`
219
228
  // so screen readers announce them as radio buttons and so
220
229
  // `getByRole('radio')` works in tests. The button element is
221
230
  // re-purposed as a radio; `aria-checked` above carries the state.
222
231
  role: i === "radiogroup" ? "radio" : void 0,
223
- tabIndex: b ? o === h ? 0 : -1 : void 0,
232
+ tabIndex: b ? o === de ? 0 : -1 : void 0,
224
233
  onFocus: (p) => {
225
- var l, j;
226
- b && I(o), (j = (l = r.props).onFocus) == null || j.call(l, p);
234
+ var l, z;
235
+ b && A(o), (z = (l = r.props).onFocus) == null || z.call(l, p);
227
236
  },
228
237
  ref: f
229
238
  };
230
- return me(r, De);
231
- }), le = (e) => {
232
- re.current = e, typeof v == "function" ? v(e) : v && typeof v == "object" && (v.current = e);
239
+ return ye(r, je);
240
+ }), ue = (e) => {
241
+ re.current = e, typeof y == "function" ? y(e) : y && typeof y == "object" && (y.current = e);
233
242
  };
234
- if (!y)
243
+ if (!h)
235
244
  return /* @__PURE__ */ a(
236
245
  "div",
237
246
  {
238
- ref: le,
247
+ ref: ue,
239
248
  role: i,
240
249
  "aria-label": X,
241
250
  "aria-labelledby": Y,
242
- "aria-orientation": i === "toolbar" ? u : void 0,
243
- onKeyDown: G,
244
- className: ye({ orientation: u, className: J }),
251
+ "aria-orientation": i === "toolbar" ? c : void 0,
252
+ onKeyDown: M,
253
+ className: ke({ orientation: c, className: J }),
245
254
  "data-component": "icon-button-group",
246
255
  ...Z,
247
- children: ae
256
+ children: ce
248
257
  }
249
258
  );
250
- const de = ke("buttonGroup.more", "More options"), D = q === !0, O = x.map((e, o) => ({ childEl: e, i: o })).filter(({ i: e }) => !ne[e]);
251
- let P = null;
252
- n === "toggle-single" ? P = /* @__PURE__ */ a(
253
- w.RadioGroup,
259
+ const fe = Re("buttonGroup.more", "More options"), L = q === !0, $ = D.map((e, o) => ({ childEl: e, i: o })).filter(({ i: e }) => !ne[e]);
260
+ let K = null;
261
+ n === "toggle-single" ? K = /* @__PURE__ */ a(
262
+ k.RadioGroup,
254
263
  {
255
264
  value: g,
256
265
  onValueChange: (e) => {
257
- !D && e !== g && k(e);
266
+ !L && e !== g && I(e);
258
267
  },
259
- children: O.map(({ childEl: e, i: o }) => /* @__PURE__ */ a(
260
- w.RadioItem,
268
+ children: $.map(({ childEl: e, i: o }) => /* @__PURE__ */ a(
269
+ k.RadioItem,
261
270
  {
262
271
  value: e.props.value ?? "",
263
- disabled: D || e.props.disabled === !0,
272
+ disabled: L || e.props.disabled === !0,
264
273
  children: B(e)
265
274
  },
266
275
  e.key ?? o
267
276
  ))
268
277
  }
269
- ) : n === "toggle-multi" ? P = O.map(({ childEl: e, i: o }) => {
278
+ ) : n === "toggle-multi" ? K = $.map(({ childEl: e, i: o }) => {
270
279
  const r = e.props.value, t = g, s = r ? t.includes(r) : !1;
271
280
  return /* @__PURE__ */ a(
272
- w.CheckboxItem,
281
+ k.CheckboxItem,
273
282
  {
274
283
  checked: s,
275
- disabled: D || e.props.disabled === !0,
284
+ disabled: L || e.props.disabled === !0,
276
285
  onCheckedChange: () => {
277
- D || !r || k(s ? t.filter((L) => L !== r) : [...t, r]);
286
+ L || !r || I(s ? t.filter((N) => N !== r) : [...t, r]);
278
287
  },
279
288
  children: B(e)
280
289
  },
281
290
  e.key ?? o
282
291
  );
283
- }) : P = O.map(({ childEl: e, i: o }) => /* @__PURE__ */ a(
284
- w.Item,
292
+ }) : K = $.map(({ childEl: e, i: o }) => /* @__PURE__ */ a(
293
+ k.Item,
285
294
  {
286
295
  startIcon: e.props.icon,
287
- disabled: D || e.props.disabled === !0,
296
+ disabled: L || e.props.disabled === !0,
288
297
  onSelect: (r) => {
289
298
  var t, s;
290
299
  (s = (t = e.props).onClick) == null || s.call(
@@ -296,57 +305,57 @@ const ye = ze(
296
305
  },
297
306
  e.key ?? o
298
307
  ));
299
- const ue = K ? /* @__PURE__ */ _(w.Root, { children: [
300
- /* @__PURE__ */ a(w.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
301
- be,
308
+ const pe = V ? /* @__PURE__ */ T(k.Root, { children: [
309
+ /* @__PURE__ */ a(k.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
310
+ he,
302
311
  {
303
- icon: /* @__PURE__ */ a(ve, {}),
312
+ icon: /* @__PURE__ */ a(we, {}),
304
313
  intent: S,
305
314
  size: m,
306
- "aria-label": de,
315
+ "aria-label": fe,
307
316
  ref: (e) => {
308
- ie.current = e, te(V, e);
317
+ ie.current = e, te(C, e);
309
318
  },
310
- tabIndex: b ? h === V ? 0 : -1 : void 0,
311
- onFocus: b ? () => I(V) : void 0
319
+ tabIndex: b ? de === C ? 0 : -1 : void 0,
320
+ onFocus: b ? () => A(C) : void 0
312
321
  }
313
322
  ) }),
314
- /* @__PURE__ */ a(w.Content, { align: "end", children: P })
315
- ] }) : null, ce = ye({ orientation: u }), $ = i !== "radiogroup", fe = /* @__PURE__ */ _(
323
+ /* @__PURE__ */ a(k.Content, { align: "end", children: K })
324
+ ] }) : null, ge = ke({ orientation: c }), E = i !== "radiogroup", me = /* @__PURE__ */ T(
316
325
  "div",
317
326
  {
318
327
  role: i,
319
328
  "aria-label": X,
320
329
  "aria-labelledby": Y,
321
- "aria-orientation": i === "toolbar" ? u : void 0,
322
- onKeyDown: $ ? G : void 0,
323
- className: `${ce} ds:max-w-full`,
330
+ "aria-orientation": i === "toolbar" ? c : void 0,
331
+ onKeyDown: E ? M : void 0,
332
+ className: `${ge} ds:max-w-full`,
324
333
  children: [
325
- ae,
326
- $ ? ue : null
334
+ ce,
335
+ E ? pe : null
327
336
  ]
328
337
  }
329
338
  );
330
339
  return /* @__PURE__ */ a(
331
340
  "div",
332
341
  {
333
- ref: le,
342
+ ref: ue,
334
343
  "data-component": "icon-button-group",
335
344
  className: [
336
345
  "ds:relative ds:block ds:w-full ds:min-w-0 ds:overflow-x-clip",
337
346
  J ?? ""
338
347
  ].join(" ").trim(),
339
348
  ...Z,
340
- children: /* @__PURE__ */ _("div", { ref: Ie, className: "ds:block ds:w-full ds:min-w-0", children: [
349
+ children: /* @__PURE__ */ T("div", { ref: De, className: "ds:block ds:w-full ds:min-w-0", children: [
341
350
  /* @__PURE__ */ a(
342
351
  "div",
343
352
  {
344
- ref: xe,
353
+ ref: Ve,
345
354
  "aria-hidden": "true",
346
355
  inert: !0,
347
- className: `${he} ${ce}`,
348
- children: x.map(
349
- (e, o) => me(e, {
356
+ className: `${Ie} ${ge}`,
357
+ children: D.map(
358
+ (e, o) => ye(e, {
350
359
  key: e.key ?? o,
351
360
  intent: e.props.intent ?? S,
352
361
  size: e.props.size ?? m,
@@ -359,32 +368,32 @@ const ye = ze(
359
368
  /* @__PURE__ */ a(
360
369
  "span",
361
370
  {
362
- ref: Ae,
371
+ ref: Le,
363
372
  "aria-hidden": "true",
364
373
  inert: !0,
365
- className: he,
374
+ className: Ie,
366
375
  children: /* @__PURE__ */ a(
367
- be,
376
+ he,
368
377
  {
369
- icon: /* @__PURE__ */ a(ve, {}),
378
+ icon: /* @__PURE__ */ a(we, {}),
370
379
  intent: S,
371
380
  size: m,
372
- "aria-label": de,
381
+ "aria-label": fe,
373
382
  tabIndex: -1
374
383
  }
375
384
  )
376
385
  }
377
386
  ),
378
- $ ? fe : (
387
+ E ? me : (
379
388
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- non-focusable wrapper; arrow-key roving bubbles up from the focusable IconButtons in the strip and the overflow trigger
380
- /* @__PURE__ */ _(
389
+ /* @__PURE__ */ T(
381
390
  "div",
382
391
  {
383
392
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
384
- onKeyDown: G,
393
+ onKeyDown: M,
385
394
  children: [
386
- fe,
387
- ue
395
+ me,
396
+ pe
388
397
  ]
389
398
  }
390
399
  )
@@ -394,13 +403,13 @@ const ye = ze(
394
403
  );
395
404
  }
396
405
  );
397
- Pe.displayName = "IconButtonGroup";
398
- function Te(d, v, m, u) {
406
+ _e.displayName = "IconButtonGroup";
407
+ function Ge(d, y, m, c) {
399
408
  if (d === "momentary" || !m) return {};
400
- const i = d === "toggle-multi" ? u.includes(m) : u === m;
401
- return v === "radiogroup" ? { ariaChecked: i } : { ariaPressed: i };
409
+ const i = d === "toggle-multi" ? c.includes(m) : c === m;
410
+ return y === "radiogroup" ? { ariaChecked: i } : { ariaPressed: i };
402
411
  }
403
412
  export {
404
- Pe as I
413
+ _e as I
405
414
  };
406
- //# sourceMappingURL=icon-button-group-D6SVMteH.js.map
415
+ //# sourceMappingURL=icon-button-group-VCCod3Hz.js.map