@alixpartners/ui-components 2.6.1 → 2.6.2

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 (99) hide show
  1. package/dist/{RichTextEditor-JH6YBGiw.js → RichTextEditor-xCakhho7.js} +1 -1
  2. package/dist/{ToastProvider-DVycF0zU.js → ToastProvider-D5LImZ-Q.js} +26 -26
  3. package/dist/components/Banner/Banner.d.ts +1 -1
  4. package/dist/components/Banner/Banner.test.js +1 -1
  5. package/dist/components/Button/Button.d.ts +1 -1
  6. package/dist/components/Button/Button.test.js +2 -2
  7. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  8. package/dist/components/Checkbox/Checkbox.js +3 -3
  9. package/dist/components/Checkbox/Checkbox.test.js +1 -1
  10. package/dist/components/CorusHeader/CorusHeader.d.ts +1 -1
  11. package/dist/components/CorusHeader/CorusHeader.js +1 -1
  12. package/dist/components/CorusHeader/DropdownItemContent.d.ts +1 -1
  13. package/dist/components/CorusHeader/DropdownItemContent.js +5 -5
  14. package/dist/components/CorusHeader/DropdownMenu.d.ts +1 -1
  15. package/dist/components/CorusHeader/DropdownMenu.js +1 -1
  16. package/dist/components/CorusHeader/MegaMenuContent.d.ts +1 -1
  17. package/dist/components/CorusHeader/MegaMenuContent.js +14 -14
  18. package/dist/components/CorusHeader/UserProfileIcon.d.ts +1 -1
  19. package/dist/components/Creatable/Creatable.d.ts +1 -1
  20. package/dist/components/Creatable/Creatable.js +1 -1
  21. package/dist/components/Datepicker/Datepicker.d.ts +1 -1
  22. package/dist/components/Datepicker/Datepicker.js +1 -1
  23. package/dist/components/Datepicker/Datepicker.test.js +1 -1
  24. package/dist/components/Dialog/Dialog.d.ts +1 -1
  25. package/dist/components/Dialog/Dialog.js +204 -178
  26. package/dist/components/Dialog/Dialog.test.js +1 -1
  27. package/dist/components/DragAndDrop/DragAndDrop.d.ts +1 -1
  28. package/dist/components/DragAndDrop/DragAndDrop.test.js +2 -2
  29. package/dist/components/Dropdown/Dropdown.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.js +1 -1
  31. package/dist/components/FilePicker/FilePicker.d.ts +9 -9
  32. package/dist/components/FilePicker/FilePicker.test.js +2 -2
  33. package/dist/components/Ghost/Ghost.d.ts +1 -1
  34. package/dist/components/Ghost/Ghost.test.js +1 -1
  35. package/dist/components/Icon/Icon.d.ts +1 -1
  36. package/dist/components/Icons/IconsGallery.d.ts +1 -1
  37. package/dist/components/Illustration/Illustration.d.ts +1 -1
  38. package/dist/components/Illustration/Illustration.test.js +1 -1
  39. package/dist/components/Input/Input.test.js +1 -1
  40. package/dist/components/Logo/Logo.d.ts +1 -1
  41. package/dist/components/Logos/LogosGallery.d.ts +1 -1
  42. package/dist/components/NavBar/NavBar.d.ts +1 -1
  43. package/dist/components/NavBar/NavBar.js +1 -1
  44. package/dist/components/Radio/Radio.d.ts +1 -1
  45. package/dist/components/Radio/Radio.js +9 -9
  46. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  47. package/dist/components/RadioGroup/RadioGroup.js +11 -11
  48. package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
  49. package/dist/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  50. package/dist/components/RichTextEditor/RichTextEditor.js +2 -2
  51. package/dist/components/RichTextEditor/RichTextEditor.test.js +2 -2
  52. package/dist/components/Search/Search.d.ts +1 -1
  53. package/dist/components/Search/Search.test.js +1 -1
  54. package/dist/components/Spinner/Spinner.d.ts +1 -1
  55. package/dist/components/SplitButton/SplitButton.d.ts +1 -1
  56. package/dist/components/SplitButton/SplitButton.js +3 -3
  57. package/dist/components/SplitButton/SplitButton.test.js +1 -1
  58. package/dist/components/Tab/Tab.d.ts +1 -1
  59. package/dist/components/TabNavigation/TabNavigation.d.ts +1 -1
  60. package/dist/components/Tag/Tag.d.ts +1 -1
  61. package/dist/components/Tag/Tag.test.js +1 -1
  62. package/dist/components/TagsFields/TagsFields.d.ts +1 -1
  63. package/dist/components/TagsFields/TagsFields.js +1 -1
  64. package/dist/components/Textarea/Textarea.d.ts +1 -1
  65. package/dist/components/Textarea/Textarea.test.js +1 -1
  66. package/dist/components/Toast/Toast.test.js +1 -1
  67. package/dist/components/ToastProvider/ToastProvider.d.ts +1 -2
  68. package/dist/components/ToastProvider/ToastProvider.js +1 -1
  69. package/dist/components/ToastProvider/ToastProvider.test.js +4 -4
  70. package/dist/components/Toggle/Toggle.d.ts +1 -1
  71. package/dist/components/Toggle/Toggle.js +126 -211
  72. package/dist/components/Toggle/Toggle.test.js +1 -1
  73. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  74. package/dist/components/Tooltip/Tooltip.js +61 -60
  75. package/dist/{index-6DGSlWJb.js → index-C2s_VtSb.js} +3 -3
  76. package/dist/index-C8H9A55g.js +222 -0
  77. package/dist/{index-CcsZYEYy.js → index-CCFDXH-J.js} +28 -29
  78. package/dist/index-CCnm5-ML.js +230 -0
  79. package/dist/{index-BVZdJVFB.js → index-CFqDEbIR.js} +191 -192
  80. package/dist/index-CfIcUHKK.js +70 -0
  81. package/dist/index-ChQc_Cm6.js +1544 -0
  82. package/dist/index-CmGGeUr0.js +142 -0
  83. package/dist/{index-IR8HlW5P.js → index-D_L0ncPJ.js} +4 -4
  84. package/dist/{index-banDzeKa.js → index-DkTDHhag.js} +1 -1
  85. package/dist/index-Ii4UOx3H.js +599 -0
  86. package/dist/{index-6j3vTf--.js → index-Nyh2Wa71.js} +5 -5
  87. package/dist/index-z_kiwVc3.js +237 -0
  88. package/dist/main.js +3 -3
  89. package/dist/storybook-docs-page.d.ts +1 -1
  90. package/dist/{useToast-CpwrYPvx.js → useToast-Cz5MGKnw.js} +1 -1
  91. package/dist/{vi.bdSIJ99Y-DWCVXj6K.js → vi.bdSIJ99Y-017e_Pkz.js} +3 -3
  92. package/package.json +1 -1
  93. package/dist/index-B4szHVNJ.js +0 -248
  94. package/dist/index-Bq1FiX6B.js +0 -93
  95. package/dist/index-CE9NpYQR.js +0 -604
  96. package/dist/index-CHy8gqvu.js +0 -353
  97. package/dist/index-CarlZuEo.js +0 -1610
  98. package/dist/index-DH9SO8qV.js +0 -221
  99. package/dist/index-kgC_DL6e.js +0 -216
@@ -1,123 +1,123 @@
1
- import { jsx as i, Fragment as he, jsxs as D } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { useState as Re } from "react";
4
- import { u as ye, a as C, P as h, c as v, b as Pe, e as be } from "../../index-B4szHVNJ.js";
5
- import { u as E } from "../../index-6DGSlWJb.js";
6
- import { P as Oe, u as Ne, D as Ie } from "../../index-kgC_DL6e.js";
7
- import { R as Ee, h as Ce, u as xe, F as Ae } from "../../index-BVZdJVFB.js";
8
- import { P as x } from "../../index-Bq1FiX6B.js";
1
+ import { jsx as n, jsxs as _, Fragment as W } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { useState as Ne } from "react";
4
+ import { u as be, d as O, P as h, c as v, b as Ee, e as Ie, f as Pe } from "../../index-z_kiwVc3.js";
5
+ import { u as C } from "../../index-C2s_VtSb.js";
6
+ import { P as Ce, D as Oe } from "../../index-CmGGeUr0.js";
7
+ import { R as xe, h as Ae, u as Te, F as Me } from "../../index-CFqDEbIR.js";
8
+ import { P as x } from "../../index-CfIcUHKK.js";
9
9
  import { c as we } from "../../clsx-OuTLNxxd.js";
10
- import S from "../Button/Button.js";
11
- import Me from "../Icon/Icon.js";
12
- import '../../assets/Dialog.css';var P = "Dialog", [k] = Pe(P), [Fe, u] = k(P), L = (e) => {
10
+ import k from "../Button/Button.js";
11
+ import Fe from "../Icon/Icon.js";
12
+ import '../../assets/Dialog.css';var N = "Dialog", [G] = Ee(N), [Se, u] = G(N), L = (e) => {
13
13
  const {
14
- __scopeDialog: l,
14
+ __scopeDialog: a,
15
15
  children: r,
16
16
  open: t,
17
- defaultOpen: a,
17
+ defaultOpen: i,
18
18
  onOpenChange: o,
19
- modal: n = !0
20
- } = e, c = s.useRef(null), g = s.useRef(null), [_, m] = ye({
19
+ modal: s = !0
20
+ } = e, c = l.useRef(null), g = l.useRef(null), [f, D] = be({
21
21
  prop: t,
22
- defaultProp: a ?? !1,
22
+ defaultProp: i ?? !1,
23
23
  onChange: o,
24
- caller: P
24
+ caller: N
25
25
  });
26
- return /* @__PURE__ */ i(
27
- Fe,
26
+ return /* @__PURE__ */ n(
27
+ Se,
28
28
  {
29
- scope: l,
29
+ scope: a,
30
30
  triggerRef: c,
31
31
  contentRef: g,
32
- contentId: E(),
33
- titleId: E(),
34
- descriptionId: E(),
35
- open: _,
36
- onOpenChange: m,
37
- onOpenToggle: s.useCallback(() => m((b) => !b), [m]),
38
- modal: n,
32
+ contentId: C(),
33
+ titleId: C(),
34
+ descriptionId: C(),
35
+ open: f,
36
+ onOpenChange: D,
37
+ onOpenToggle: l.useCallback(() => D((b) => !b), [D]),
38
+ modal: s,
39
39
  children: r
40
40
  }
41
41
  );
42
42
  };
43
- L.displayName = P;
44
- var G = "DialogTrigger", j = s.forwardRef(
45
- (e, l) => {
46
- const { __scopeDialog: r, ...t } = e, a = u(G, r), o = C(l, a.triggerRef);
47
- return /* @__PURE__ */ i(
43
+ L.displayName = N;
44
+ var $ = "DialogTrigger", j = l.forwardRef(
45
+ (e, a) => {
46
+ const { __scopeDialog: r, ...t } = e, i = u($, r), o = O(a, i.triggerRef);
47
+ return /* @__PURE__ */ n(
48
48
  h.button,
49
49
  {
50
50
  type: "button",
51
51
  "aria-haspopup": "dialog",
52
- "aria-expanded": a.open,
53
- "aria-controls": a.open ? a.contentId : void 0,
54
- "data-state": w(a.open),
52
+ "aria-expanded": i.open,
53
+ "aria-controls": i.contentId,
54
+ "data-state": M(i.open),
55
55
  ...t,
56
56
  ref: o,
57
- onClick: v(e.onClick, a.onOpenToggle)
57
+ onClick: v(e.onClick, i.onOpenToggle)
58
58
  }
59
59
  );
60
60
  }
61
61
  );
62
- j.displayName = G;
63
- var A = "DialogPortal", [Te, z] = k(A, {
62
+ j.displayName = $;
63
+ var A = "DialogPortal", [We, z] = G(A, {
64
64
  forceMount: void 0
65
- }), K = (e) => {
66
- const { __scopeDialog: l, forceMount: r, children: t, container: a } = e, o = u(A, l);
67
- return /* @__PURE__ */ i(Te, { scope: l, forceMount: r, children: s.Children.map(t, (n) => /* @__PURE__ */ i(x, { present: r || o.open, children: /* @__PURE__ */ i(Oe, { asChild: !0, container: a, children: n }) })) });
65
+ }), B = (e) => {
66
+ const { __scopeDialog: a, forceMount: r, children: t, container: i } = e, o = u(A, a);
67
+ return /* @__PURE__ */ n(We, { scope: a, forceMount: r, children: l.Children.map(t, (s) => /* @__PURE__ */ n(x, { present: r || o.open, children: /* @__PURE__ */ n(Ce, { asChild: !0, container: i, children: s }) })) });
68
68
  };
69
- K.displayName = A;
70
- var y = "DialogOverlay", H = s.forwardRef(
71
- (e, l) => {
72
- const r = z(y, e.__scopeDialog), { forceMount: t = r.forceMount, ...a } = e, o = u(y, e.__scopeDialog);
73
- return o.modal ? /* @__PURE__ */ i(x, { present: t || o.open, children: /* @__PURE__ */ i(ke, { ...a, ref: l }) }) : null;
69
+ B.displayName = A;
70
+ var y = "DialogOverlay", K = l.forwardRef(
71
+ (e, a) => {
72
+ const r = z(y, e.__scopeDialog), { forceMount: t = r.forceMount, ...i } = e, o = u(y, e.__scopeDialog);
73
+ return o.modal ? /* @__PURE__ */ n(x, { present: t || o.open, children: /* @__PURE__ */ n(Ge, { ...i, ref: a }) }) : null;
74
74
  }
75
75
  );
76
- H.displayName = y;
77
- var Se = be("DialogOverlay.RemoveScroll"), ke = s.forwardRef(
78
- (e, l) => {
79
- const { __scopeDialog: r, ...t } = e, a = u(y, r), o = Ne(), n = C(l, o);
76
+ K.displayName = y;
77
+ var ke = Ie("DialogOverlay.RemoveScroll"), Ge = l.forwardRef(
78
+ (e, a) => {
79
+ const { __scopeDialog: r, ...t } = e, i = u(y, r);
80
80
  return (
81
81
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
82
82
  // ie. when `Overlay` and `Content` are siblings
83
- /* @__PURE__ */ i(Ee, { as: Se, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ i(
83
+ /* @__PURE__ */ n(xe, { as: ke, allowPinchZoom: !0, shards: [i.contentRef], children: /* @__PURE__ */ n(
84
84
  h.div,
85
85
  {
86
- "data-state": w(a.open),
86
+ "data-state": M(i.open),
87
87
  ...t,
88
- ref: n,
88
+ ref: a,
89
89
  style: { pointerEvents: "auto", ...t.style }
90
90
  }
91
91
  ) })
92
92
  );
93
93
  }
94
- ), p = "DialogContent", J = s.forwardRef(
95
- (e, l) => {
96
- const r = z(p, e.__scopeDialog), { forceMount: t = r.forceMount, ...a } = e, o = u(p, e.__scopeDialog);
97
- return /* @__PURE__ */ i(x, { present: t || o.open, children: o.modal ? /* @__PURE__ */ i(Le, { ...a, ref: l }) : /* @__PURE__ */ i(Ge, { ...a, ref: l }) });
94
+ ), m = "DialogContent", H = l.forwardRef(
95
+ (e, a) => {
96
+ const r = z(m, e.__scopeDialog), { forceMount: t = r.forceMount, ...i } = e, o = u(m, e.__scopeDialog);
97
+ return /* @__PURE__ */ n(x, { present: t || o.open, children: o.modal ? /* @__PURE__ */ n(Le, { ...i, ref: a }) : /* @__PURE__ */ n($e, { ...i, ref: a }) });
98
98
  }
99
99
  );
100
- J.displayName = p;
101
- var Le = s.forwardRef(
102
- (e, l) => {
103
- const r = u(p, e.__scopeDialog), t = s.useRef(null), a = C(l, r.contentRef, t);
104
- return s.useEffect(() => {
100
+ H.displayName = m;
101
+ var Le = l.forwardRef(
102
+ (e, a) => {
103
+ const r = u(m, e.__scopeDialog), t = l.useRef(null), i = O(a, r.contentRef, t);
104
+ return l.useEffect(() => {
105
105
  const o = t.current;
106
- if (o) return Ce(o);
107
- }, []), /* @__PURE__ */ i(
108
- B,
106
+ if (o) return Ae(o);
107
+ }, []), /* @__PURE__ */ n(
108
+ J,
109
109
  {
110
110
  ...e,
111
- ref: a,
111
+ ref: i,
112
112
  trapFocus: r.open,
113
- disableOutsidePointerEvents: r.open,
113
+ disableOutsidePointerEvents: !0,
114
114
  onCloseAutoFocus: v(e.onCloseAutoFocus, (o) => {
115
- var n;
116
- o.preventDefault(), (n = r.triggerRef.current) == null || n.focus();
115
+ var s;
116
+ o.preventDefault(), (s = r.triggerRef.current) == null || s.focus();
117
117
  }),
118
118
  onPointerDownOutside: v(e.onPointerDownOutside, (o) => {
119
- const n = o.detail.originalEvent, c = n.button === 0 && n.ctrlKey === !0;
120
- (n.button === 2 || c) && o.preventDefault();
119
+ const s = o.detail.originalEvent, c = s.button === 0 && s.ctrlKey === !0;
120
+ (s.button === 2 || c) && o.preventDefault();
121
121
  }),
122
122
  onFocusOutside: v(
123
123
  e.onFocusOutside,
@@ -126,92 +126,118 @@ var Le = s.forwardRef(
126
126
  }
127
127
  );
128
128
  }
129
- ), Ge = s.forwardRef(
130
- (e, l) => {
131
- const r = u(p, e.__scopeDialog), t = s.useRef(!1), a = s.useRef(!1);
132
- return /* @__PURE__ */ i(
133
- B,
129
+ ), $e = l.forwardRef(
130
+ (e, a) => {
131
+ const r = u(m, e.__scopeDialog), t = l.useRef(!1), i = l.useRef(!1);
132
+ return /* @__PURE__ */ n(
133
+ J,
134
134
  {
135
135
  ...e,
136
- ref: l,
136
+ ref: a,
137
137
  trapFocus: !1,
138
138
  disableOutsidePointerEvents: !1,
139
139
  onCloseAutoFocus: (o) => {
140
- var n, c;
141
- (n = e.onCloseAutoFocus) == null || n.call(e, o), o.defaultPrevented || (t.current || (c = r.triggerRef.current) == null || c.focus(), o.preventDefault()), t.current = !1, a.current = !1;
140
+ var s, c;
141
+ (s = e.onCloseAutoFocus) == null || s.call(e, o), o.defaultPrevented || (t.current || (c = r.triggerRef.current) == null || c.focus(), o.preventDefault()), t.current = !1, i.current = !1;
142
142
  },
143
143
  onInteractOutside: (o) => {
144
- var g, _;
145
- (g = e.onInteractOutside) == null || g.call(e, o), o.defaultPrevented || (t.current = !0, o.detail.originalEvent.type === "pointerdown" && (a.current = !0));
146
- const n = o.target;
147
- ((_ = r.triggerRef.current) == null ? void 0 : _.contains(n)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && a.current && o.preventDefault();
144
+ var g, f;
145
+ (g = e.onInteractOutside) == null || g.call(e, o), o.defaultPrevented || (t.current = !0, o.detail.originalEvent.type === "pointerdown" && (i.current = !0));
146
+ const s = o.target;
147
+ ((f = r.triggerRef.current) == null ? void 0 : f.contains(s)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && i.current && o.preventDefault();
148
148
  }
149
149
  }
150
150
  );
151
151
  }
152
- ), B = s.forwardRef(
153
- (e, l) => {
154
- const { __scopeDialog: r, trapFocus: t, onOpenAutoFocus: a, onCloseAutoFocus: o, ...n } = e, c = u(p, r);
155
- return xe(), /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(
156
- Ae,
157
- {
158
- asChild: !0,
159
- loop: !0,
160
- trapped: t,
161
- onMountAutoFocus: a,
162
- onUnmountAutoFocus: o,
163
- children: /* @__PURE__ */ i(
164
- Ie,
165
- {
166
- role: "dialog",
167
- id: c.contentId,
168
- "aria-describedby": c.descriptionId,
169
- "aria-labelledby": c.titleId,
170
- "data-state": w(c.open),
171
- ...n,
172
- ref: l,
173
- deferPointerDownOutside: !0,
174
- onDismiss: () => c.onOpenChange(!1)
175
- }
176
- )
177
- }
178
- ) });
152
+ ), J = l.forwardRef(
153
+ (e, a) => {
154
+ const { __scopeDialog: r, trapFocus: t, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c = u(m, r), g = l.useRef(null), f = O(a, g);
155
+ return Te(), /* @__PURE__ */ _(W, { children: [
156
+ /* @__PURE__ */ n(
157
+ Me,
158
+ {
159
+ asChild: !0,
160
+ loop: !0,
161
+ trapped: t,
162
+ onMountAutoFocus: i,
163
+ onUnmountAutoFocus: o,
164
+ children: /* @__PURE__ */ n(
165
+ Oe,
166
+ {
167
+ role: "dialog",
168
+ id: c.contentId,
169
+ "aria-describedby": c.descriptionId,
170
+ "aria-labelledby": c.titleId,
171
+ "data-state": M(c.open),
172
+ ...s,
173
+ ref: f,
174
+ onDismiss: () => c.onOpenChange(!1)
175
+ }
176
+ )
177
+ }
178
+ ),
179
+ /* @__PURE__ */ _(W, { children: [
180
+ /* @__PURE__ */ n(je, { titleId: c.titleId }),
181
+ /* @__PURE__ */ n(Be, { contentRef: g, descriptionId: c.descriptionId })
182
+ ] })
183
+ ] });
179
184
  }
180
- ), Q = "DialogTitle", U = s.forwardRef(
181
- (e, l) => {
182
- const { __scopeDialog: r, ...t } = e, a = u(Q, r);
183
- return /* @__PURE__ */ i(h.h2, { id: a.titleId, ...t, ref: l });
185
+ ), T = "DialogTitle", V = l.forwardRef(
186
+ (e, a) => {
187
+ const { __scopeDialog: r, ...t } = e, i = u(T, r);
188
+ return /* @__PURE__ */ n(h.h2, { id: i.titleId, ...t, ref: a });
184
189
  }
185
190
  );
186
- U.displayName = Q;
187
- var V = "DialogDescription", Y = s.forwardRef(
188
- (e, l) => {
189
- const { __scopeDialog: r, ...t } = e, a = u(V, r);
190
- return /* @__PURE__ */ i(h.p, { id: a.descriptionId, ...t, ref: l });
191
+ V.displayName = T;
192
+ var q = "DialogDescription", Q = l.forwardRef(
193
+ (e, a) => {
194
+ const { __scopeDialog: r, ...t } = e, i = u(q, r);
195
+ return /* @__PURE__ */ n(h.p, { id: i.descriptionId, ...t, ref: a });
191
196
  }
192
197
  );
193
- Y.displayName = V;
194
- var Z = "DialogClose", $ = s.forwardRef(
195
- (e, l) => {
196
- const { __scopeDialog: r, ...t } = e, a = u(Z, r);
197
- return /* @__PURE__ */ i(
198
+ Q.displayName = q;
199
+ var U = "DialogClose", Y = l.forwardRef(
200
+ (e, a) => {
201
+ const { __scopeDialog: r, ...t } = e, i = u(U, r);
202
+ return /* @__PURE__ */ n(
198
203
  h.button,
199
204
  {
200
205
  type: "button",
201
206
  ...t,
202
- ref: l,
203
- onClick: v(e.onClick, () => a.onOpenChange(!1))
207
+ ref: a,
208
+ onClick: v(e.onClick, () => i.onOpenChange(!1))
204
209
  }
205
210
  );
206
211
  }
207
212
  );
208
- $.displayName = Z;
209
- function w(e) {
213
+ Y.displayName = U;
214
+ function M(e) {
210
215
  return e ? "open" : "closed";
211
216
  }
212
- const je = "Dialog-module__dialog___r4ljx", d = {
217
+ var Z = "DialogTitleWarning", [ct, X] = Pe(Z, {
218
+ contentName: m,
219
+ titleName: T,
220
+ docsSlug: "dialog"
221
+ }), je = ({ titleId: e }) => {
222
+ const a = X(Z), r = `\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
223
+
224
+ If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
225
+
226
+ For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;
227
+ return l.useEffect(() => {
228
+ e && (document.getElementById(e) || console.error(r));
229
+ }, [r, e]), null;
230
+ }, ze = "DialogDescriptionWarning", Be = ({ contentRef: e, descriptionId: a }) => {
231
+ const t = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${X(ze).contentName}}.`;
232
+ return l.useEffect(() => {
233
+ var o;
234
+ const i = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
235
+ a && i && (document.getElementById(a) || console.warn(t));
236
+ }, [t, e, a]), null;
237
+ }, Ke = L, He = j, Je = B, Ve = K, qe = H, Qe = V, Ue = Q, Ye = Y;
238
+ const Ze = "Dialog-module__dialog___r4ljx", d = {
213
239
  "dialog-overlay": "Dialog-module__dialog-overlay___mgT2B",
214
- dialog: je,
240
+ dialog: Ze,
215
241
  "dialog-width-auto": "Dialog-module__dialog-width-auto___96jJl",
216
242
  "dialog-scrollable": "Dialog-module__dialog-scrollable___1ch32",
217
243
  "dialog-illustration": "Dialog-module__dialog-illustration___IHiQl",
@@ -222,68 +248,68 @@ const je = "Dialog-module__dialog___r4ljx", d = {
222
248
  "dialog-close-button": "Dialog-module__dialog-close-button___-PzEz",
223
249
  "dialog-close-button-icon": "Dialog-module__dialog-close-button-icon___BeGg2"
224
250
  };
225
- function $e({
251
+ function dt({
226
252
  children: e,
227
- isOpen: l,
253
+ isOpen: a,
228
254
  defaultOpen: r = !1,
229
255
  onClose: t,
230
- onOpenChange: a,
256
+ onOpenChange: i,
231
257
  showCloseButton: o,
232
- closeOnOverlayClick: n = !0,
258
+ closeOnOverlayClick: s = !0,
233
259
  closeOnEscape: c = !0,
234
260
  modal: g = !0,
235
- container: _,
236
- title: m,
261
+ container: f,
262
+ title: D,
237
263
  description: b,
238
- descriptionScrollable: q,
239
- widthAuto: W,
240
- illustrationSrc: M,
264
+ descriptionScrollable: ee,
265
+ widthAuto: te,
266
+ illustrationSrc: w,
241
267
  confirmButtonText: F,
242
- confirmButtonDisabled: X,
243
- cancelButtonText: T,
244
- confirmButtonType: ee = "primary",
245
- cancelButtonType: oe = "primary",
246
- confirmButtonVariant: te = "default",
247
- cancelButtonVariant: ae = "cancel",
248
- confirmButtonSize: ie = "md",
249
- cancelButtonSize: re = "md",
250
- confirmButtonIcon: le,
251
- cancelButtonIcon: ne,
252
- onConfirm: O,
253
- onCancel: N,
254
- className: se,
255
- ...ce
268
+ confirmButtonDisabled: oe,
269
+ cancelButtonText: S,
270
+ confirmButtonType: ae = "primary",
271
+ cancelButtonType: ie = "primary",
272
+ confirmButtonVariant: ne = "default",
273
+ cancelButtonVariant: re = "cancel",
274
+ confirmButtonSize: le = "md",
275
+ cancelButtonSize: se = "md",
276
+ confirmButtonIcon: ce,
277
+ cancelButtonIcon: de,
278
+ onConfirm: E,
279
+ onCancel: I,
280
+ className: ue,
281
+ ...ge
256
282
  }) {
257
- const [de, I] = Re(r), R = l !== void 0, ue = R ? l : de, ge = o !== void 0 ? o : t !== void 0, fe = (f) => {
258
- R || I(f), a == null || a(f), f || t == null || t();
259
- }, _e = (f) => {
260
- c || f.preventDefault();
261
- }, pe = (f) => {
262
- n || f.preventDefault();
263
- }, me = () => {
264
- O == null || O(), R || I(!1), t == null || t();
265
- }, De = () => {
266
- N == null || N(), R || I(!1), t == null || t();
267
- }, ve = /* @__PURE__ */ D(L, { open: ue, onOpenChange: fe, modal: g, children: [
268
- e && /* @__PURE__ */ i(j, { asChild: !0, children: /* @__PURE__ */ i("div", { children: e }) }),
269
- /* @__PURE__ */ D(K, { container: _, children: [
270
- /* @__PURE__ */ i(H, { className: d["dialog-overlay"] }),
271
- /* @__PURE__ */ D(J, { className: we(d.dialog, q && d["dialog-scrollable"], W && d["dialog-width-auto"]), onEscapeKeyDown: _e, onInteractOutside: pe, children: [
272
- ge && /* @__PURE__ */ i($, { className: d["dialog-close-button"], "aria-label": "Close dialog", children: /* @__PURE__ */ i(Me, { className: d["dialog-close-button-icon"], icon: "ap-icon-close" }) }),
273
- M && /* @__PURE__ */ i("div", { className: d["dialog-illustration"], children: /* @__PURE__ */ i("img", { src: M, alt: "Dialog illustration" }) }),
274
- /* @__PURE__ */ D("div", { className: d["dialog-content"], children: [
275
- /* @__PURE__ */ i(U, { className: d["dialog-title"], children: m }),
276
- /* @__PURE__ */ i(Y, { asChild: !0, children: /* @__PURE__ */ i("div", { className: d["dialog-description"], children: b }) })
283
+ const [fe, P] = Ne(r), R = a !== void 0, pe = R ? a : fe, _e = o !== void 0 ? o : t !== void 0, me = (p) => {
284
+ R || P(p), i == null || i(p), p || t == null || t();
285
+ }, De = (p) => {
286
+ c || p.preventDefault();
287
+ }, ve = (p) => {
288
+ s || p.preventDefault();
289
+ }, he = () => {
290
+ E == null || E(), R || P(!1), t == null || t();
291
+ }, Re = () => {
292
+ I == null || I(), R || P(!1), t == null || t();
293
+ }, ye = /* @__PURE__ */ _(Ke, { open: pe, onOpenChange: me, modal: g, children: [
294
+ e && /* @__PURE__ */ n(He, { asChild: !0, children: /* @__PURE__ */ n("div", { children: e }) }),
295
+ /* @__PURE__ */ _(Je, { container: f, children: [
296
+ /* @__PURE__ */ n(Ve, { className: d["dialog-overlay"] }),
297
+ /* @__PURE__ */ _(qe, { className: we(d.dialog, ee && d["dialog-scrollable"], te && d["dialog-width-auto"]), onEscapeKeyDown: De, onInteractOutside: ve, children: [
298
+ _e && /* @__PURE__ */ n(Ye, { className: d["dialog-close-button"], "aria-label": "Close dialog", children: /* @__PURE__ */ n(Fe, { className: d["dialog-close-button-icon"], icon: "ap-icon-close" }) }),
299
+ w && /* @__PURE__ */ n("div", { className: d["dialog-illustration"], children: /* @__PURE__ */ n("img", { src: w, alt: "Dialog illustration" }) }),
300
+ /* @__PURE__ */ _("div", { className: d["dialog-content"], children: [
301
+ /* @__PURE__ */ n(Qe, { className: d["dialog-title"], children: D }),
302
+ /* @__PURE__ */ n(Ue, { asChild: !0, children: /* @__PURE__ */ n("div", { className: d["dialog-description"], children: b }) })
277
303
  ] }),
278
- /* @__PURE__ */ D("div", { className: d["dialog-buttons"], children: [
279
- T && /* @__PURE__ */ i(S, { type: oe, variant: ae, size: re, onClick: De, icon: ne, children: T }),
280
- F && /* @__PURE__ */ i(S, { type: ee, variant: te, size: ie, onClick: me, icon: le, disabled: X, children: F })
304
+ /* @__PURE__ */ _("div", { className: d["dialog-buttons"], children: [
305
+ S && /* @__PURE__ */ n(k, { type: ie, variant: re, size: se, onClick: Re, icon: de, children: S }),
306
+ F && /* @__PURE__ */ n(k, { type: ae, variant: ne, size: le, onClick: he, icon: ce, disabled: oe, children: F })
281
307
  ] })
282
308
  ] })
283
309
  ] })
284
310
  ] });
285
- return /* @__PURE__ */ i("div", { className: se, ...ce, children: ve });
311
+ return /* @__PURE__ */ n("div", { className: ue, ...ge, children: ye });
286
312
  }
287
313
  export {
288
- $e as default
314
+ dt as default
289
315
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as B } from "react/jsx-runtime";
2
- import { d as T, i as l, r as c, s as o, g as t, v as d, f as r } from "../../vi.bdSIJ99Y-DWCVXj6K.js";
2
+ import { d as T, i as l, r as c, s as o, g as t, v as d, f as r } from "../../vi.bdSIJ99Y-017e_Pkz.js";
3
3
  import p from "../Button/Button.js";
4
4
  import s from "./Dialog.js";
5
5
  T("Dialog", () => {
@@ -96,5 +96,5 @@ type DragAndDropProps = {
96
96
  * @param {boolean} [props.queueFiles] - When true, newly selected files are appended to the existing list
97
97
  * @returns {JSX.Element} The rendered DragAndDrop component
98
98
  */
99
- export default function DragAndDrop({ label, type, disabled, required, errorMessage, fileExtensionsAllowed, maxSize, constraintsText, maxFiles, value, onUpload, onRemoveFile, queueFiles, className, maxSizeErrorMessage, fileExtensionInvalidErrorMessage, texts, fileIcon, errorIcon, deleteIcon, browseButtonIcon, renderFileItem, fileSizeFormatter, browseButtonProps, validator, errors: externalErrors, ...props }: DragAndDropProps): import("react").JSX.Element;
99
+ export default function DragAndDrop({ label, type, disabled, required, errorMessage, fileExtensionsAllowed, maxSize, constraintsText, maxFiles, value, onUpload, onRemoveFile, queueFiles, className, maxSizeErrorMessage, fileExtensionInvalidErrorMessage, texts, fileIcon, errorIcon, deleteIcon, browseButtonIcon, renderFileItem, fileSizeFormatter, browseButtonProps, validator, errors: externalErrors, ...props }: DragAndDropProps): import("react/jsx-runtime").JSX.Element;
100
100
  export {};
@@ -1,8 +1,8 @@
1
1
  import { jsxs as v, jsx as i } from "react/jsx-runtime";
2
- import { d as y, i as d, r, g as e, s as o, v as c, w as f, f as B } from "../../vi.bdSIJ99Y-DWCVXj6K.js";
2
+ import { d as y, i as d, r, g as e, s as o, v as c, w as f, f as B } from "../../vi.bdSIJ99Y-017e_Pkz.js";
3
3
  import l from "./DragAndDrop.js";
4
4
  import { c as h, d as I } from "../../DragAndDrop.utils-D3xTV9EK.js";
5
- import { u as w } from "../../index-banDzeKa.js";
5
+ import { u as w } from "../../index-DkTDHhag.js";
6
6
  y("DragAndDrop", () => {
7
7
  y("Rendering", () => {
8
8
  y("Basic rendering", () => {
@@ -71,5 +71,5 @@ type DropdownProps = {
71
71
  * @param {number} [props.maxCount] - Maximum number of options that can be selected in multi-select mode. Unselected options are disabled when the limit is reached and "Select all" is disabled.
72
72
  * @returns {JSX.Element} The rendered Dropdown component
73
73
  */
74
- export default function Dropdown({ className, label, options, value, placeholder, disabled, required, searchable, searchPlaceholder, errorMessage, helpText, helpLink, helpLinkText, onChange, onSearch, multiSelect, grouped, align, onToggleChange, toggleLabel, dropdownTriggerClassName, dropdownMenuClassName, hideSelectedItems, labelTooltip, unselect, selectedOptionLabel, selectedOptionsLabel, allOptionsSelectedLabel, caseSensitive, maxCount, ...props }: DropdownProps): import("react").JSX.Element;
74
+ export default function Dropdown({ className, label, options, value, placeholder, disabled, required, searchable, searchPlaceholder, errorMessage, helpText, helpLink, helpLinkText, onChange, onSearch, multiSelect, grouped, align, onToggleChange, toggleLabel, dropdownTriggerClassName, dropdownMenuClassName, hideSelectedItems, labelTooltip, unselect, selectedOptionLabel, selectedOptionsLabel, allOptionsSelectedLabel, caseSensitive, maxCount, ...props }: DropdownProps): import("react/jsx-runtime").JSX.Element;
75
75
  export {};
@@ -7,7 +7,7 @@ import de from "../Button/Button.js";
7
7
  import te from "../Ghost/Ghost.js";
8
8
  import xe from "../Search/Search.js";
9
9
  import Ee from "../Tooltip/Tooltip.js";
10
- import { R as Fe, T as We, P as Ce, C as qe } from "../../index-CcsZYEYy.js";
10
+ import { R as Fe, T as We, P as Ce, C as qe } from "../../index-CCFDXH-J.js";
11
11
  import '../../assets/Dropdown.css';const Je = "Dropdown-module__dropdownContainer___beNhQ", ze = "Dropdown-module__dropdownLabel___T9FmB", Ge = "Dropdown-module__dropdownLabelDisabled___SLRmM", Be = "Dropdown-module__required___ChI1m", Ue = "Dropdown-module__dropdownWrapper___AUuWD", je = "Dropdown-module__dropdownTrigger___Rue93", Pe = "Dropdown-module__dropdownTriggerDisabled___63wkd", $e = "Dropdown-module__dropdownTriggerOpen___cbm8V", Ye = "Dropdown-module__placeholder___fWdch", Ze = "Dropdown-module__selectedOptionLabel___7Zdh3", Qe = "Dropdown-module__dropdownSelectedItems___iXnpQ", Ke = "Dropdown-module__dropdownTriggerError___Uu02x", Xe = "Dropdown-module__dropdownContent___zLMhL", He = "Dropdown-module__dropdownActions___d55Fa", eo = "Dropdown-module__dropdownArrow___dLbrb", oo = "Dropdown-module__dropdownArrowOpen___Z4Nh1", no = "Dropdown-module__dropdownMenu___toYcy", ro = "Dropdown-module__dropdownMenuToolbar___gFne0", to = "Dropdown-module__searchContainer___4kUvD", lo = "Dropdown-module__search___JmgDx", so = "Dropdown-module__optionsList___rk2hi", io = "Dropdown-module__categoryGroup___Np2bP", co = "Dropdown-module__categoryDivider___Gh6F0", ao = "Dropdown-module__categoryLabel___B9IDR", po = "Dropdown-module__optionItem___7pi10", _o = "Dropdown-module__optionItemDisabled___aepUD", uo = "Dropdown-module__optionItemFocused___u2781", wo = "Dropdown-module__optionContent___nf1VC", mo = "Dropdown-module__optionLabel___sJerM", fo = "Dropdown-module__tickIcon___hYdCr", ho = "Dropdown-module__noOptions___8vmhM", Do = "Dropdown-module__helpers___s4ulA", bo = "Dropdown-module__helpText___YooJE", go = "Dropdown-module__helpTextDisabled___Ct4qq", No = "Dropdown-module__helpLink___-Zwpq", vo = "Dropdown-module__helpLinkDisabled___r-opC", Lo = "Dropdown-module__errorMessage___3Mopi", Oo = "Dropdown-module__selectAllContainer___Dlk3J", Io = "Dropdown-module__actionButtons___-2nvr", o = {
12
12
  dropdownContainer: Je,
13
13
  dropdownLabel: ze,
@@ -66,37 +66,37 @@ type FilePickerProps = {
66
66
  * FilePicker root. Use with no children for default layout, or compose with
67
67
  * FilePicker.Label, FilePicker.BrowseButton, FilePicker.HelpText, FilePicker.UploadedFilesList, etc.
68
68
  */
69
- declare function FilePickerRoot({ type, maxFiles, fileExtensionsAllowed, maxSize, queueFiles, disabled, isUploadDisabled, value, label, required, placeholder, errorMessage, maxSizeErrorMessage, fileExtensionInvalidErrorMessage, helpText, helpLink, helpLinkText, multipleHelpText, multipleButtonHelpText, labelTooltip, uploadedFileAppendedRow, onUpload, onRemoveFile, children, }: FilePickerProps): import("react").JSX.Element;
69
+ declare function FilePickerRoot({ type, maxFiles, fileExtensionsAllowed, maxSize, queueFiles, disabled, isUploadDisabled, value, label, required, placeholder, errorMessage, maxSizeErrorMessage, fileExtensionInvalidErrorMessage, helpText, helpLink, helpLinkText, multipleHelpText, multipleButtonHelpText, labelTooltip, uploadedFileAppendedRow, onUpload, onRemoveFile, children, }: FilePickerProps): import("react/jsx-runtime").JSX.Element;
70
70
  type FilePickerLabelProps = {
71
71
  /** Override label text. If not provided, uses FilePicker's label prop. */
72
72
  children?: ReactNode;
73
73
  };
74
- declare function FilePickerLabel({ children }: FilePickerLabelProps): import("react").JSX.Element;
74
+ declare function FilePickerLabel({ children }: FilePickerLabelProps): import("react/jsx-runtime").JSX.Element;
75
75
  type FilePickerBrowseButtonProps = {
76
76
  /** Override button content (e.g. "Browse file" or "Browse files (max 5)"). */
77
77
  children?: ReactNode;
78
78
  className?: string;
79
79
  };
80
- declare function FilePickerBrowseButton({ children, className }: FilePickerBrowseButtonProps): import("react").JSX.Element;
80
+ declare function FilePickerBrowseButton({ children, className }: FilePickerBrowseButtonProps): import("react/jsx-runtime").JSX.Element;
81
81
  /**
82
82
  * Wrapper for single-file mode: groups the input row and optional delete action.
83
83
  * Use with FilePicker.SingleFileRow and FilePicker.SingleFileActions as children.
84
84
  */
85
85
  declare function FilePickerSingleFileContainer({ children }: {
86
86
  children?: ReactNode;
87
- }): import("react").JSX.Element | null;
87
+ }): import("react/jsx-runtime").JSX.Element | null;
88
88
  /**
89
89
  * Single-file mode: shows filename/placeholder and a slot for the browse button.
90
90
  * Put FilePicker.BrowseButton (optionally wrapped in Tooltip) as children.
91
91
  */
92
92
  declare function FilePickerSingleFileRow({ children }: {
93
93
  children?: ReactNode;
94
- }): import("react").JSX.Element | null;
94
+ }): import("react/jsx-runtime").JSX.Element | null;
95
95
  /** Renders the reserved space and delete button for single-file mode (for use in composed layout). */
96
- declare function FilePickerSingleFileActions(): import("react").JSX.Element | null;
97
- declare function FilePickerSingleFileDeleteButton(): import("react").JSX.Element | null;
98
- declare function FilePickerHelpText(): import("react").JSX.Element | null;
99
- declare function FilePickerUploadedFilesList(): import("react").JSX.Element | null;
96
+ declare function FilePickerSingleFileActions(): import("react/jsx-runtime").JSX.Element | null;
97
+ declare function FilePickerSingleFileDeleteButton(): import("react/jsx-runtime").JSX.Element | null;
98
+ declare function FilePickerHelpText(): import("react/jsx-runtime").JSX.Element | null;
99
+ declare function FilePickerUploadedFilesList(): import("react/jsx-runtime").JSX.Element | null;
100
100
  declare const FilePicker: typeof FilePickerRoot & {
101
101
  Label: typeof FilePickerLabel;
102
102
  BrowseButton: typeof FilePickerBrowseButton;
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { d as B, i as n, r as s, g as e, s as l, w as m, v as f, f as T } from "../../vi.bdSIJ99Y-DWCVXj6K.js";
3
- import { u as r } from "../../index-banDzeKa.js";
2
+ import { d as B, i as n, r as s, g as e, s as l, w as m, v as f, f as T } from "../../vi.bdSIJ99Y-017e_Pkz.js";
3
+ import { u as r } from "../../index-DkTDHhag.js";
4
4
  import a from "./FilePicker.js";
5
5
  const c = {
6
6
  fileExtensionsAllowed: ["xlsx", "csv"],
@@ -21,5 +21,5 @@ type GhostProps = {
21
21
  icon?: ApIcon;
22
22
  noIcon?: boolean;
23
23
  } & InteractiveEventHandlers;
24
- export default function Ghost({ variant, disabled, onClick, children, icon, noIcon, className, ...props }: GhostProps): import("react").JSX.Element;
24
+ export default function Ghost({ variant, disabled, onClick, children, icon, noIcon, className, ...props }: GhostProps): import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { d as i, i as s, r as a, g as e, s as n, v as r, f as u } from "../../vi.bdSIJ99Y-DWCVXj6K.js";
2
+ import { d as i, i as s, r as a, g as e, s as n, v as r, f as u } from "../../vi.bdSIJ99Y-017e_Pkz.js";
3
3
  import d from "./Ghost.js";
4
4
  i("Ghost", () => {
5
5
  i("Rendering", () => {
@@ -4,5 +4,5 @@ type IconProps = {
4
4
  icon?: ApIcon;
5
5
  className?: string;
6
6
  } & DataAttributes;
7
- export default function Icon({ icon, className, ...props }: IconProps): import("react").JSX.Element;
7
+ export default function Icon({ icon, className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};