@alixpartners/ui-components 2.5.7 → 2.6.1

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 (112) hide show
  1. package/README.md +97 -97
  2. package/dist/RichTextEditor-JH6YBGiw.js +541 -0
  3. package/dist/{ToastProvider-D5LImZ-Q.js → ToastProvider-DVycF0zU.js} +26 -26
  4. package/dist/assets/CorusHeader.css +1 -1
  5. package/dist/assets/Dialog.css +1 -1
  6. package/dist/assets/Tab.css +1 -1
  7. package/dist/assets/Tag.css +1 -1
  8. package/dist/assets/ap-icons-types.d.ts +1 -1
  9. package/dist/assets/ap-icons.d.ts +1 -1
  10. package/dist/assets/main.css +1 -1
  11. package/dist/components/Banner/Banner.d.ts +1 -1
  12. package/dist/components/Banner/Banner.test.js +1 -1
  13. package/dist/components/Button/Button.d.ts +1 -1
  14. package/dist/components/Button/Button.test.js +2 -2
  15. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  16. package/dist/components/Checkbox/Checkbox.js +3 -3
  17. package/dist/components/Checkbox/Checkbox.test.js +1 -1
  18. package/dist/components/CorusHeader/CorusHeader.d.ts +1 -1
  19. package/dist/components/CorusHeader/CorusHeader.js +45 -44
  20. package/dist/components/CorusHeader/CorusHeader.types.d.ts +1 -0
  21. package/dist/components/CorusHeader/DropdownItemContent.d.ts +1 -1
  22. package/dist/components/CorusHeader/DropdownMenu.d.ts +2 -1
  23. package/dist/components/CorusHeader/DropdownMenu.js +6 -5
  24. package/dist/components/CorusHeader/MegaMenuContent.d.ts +2 -1
  25. package/dist/components/CorusHeader/MegaMenuContent.js +11 -10
  26. package/dist/components/CorusHeader/UserProfileIcon.d.ts +1 -1
  27. package/dist/components/Creatable/Creatable.d.ts +1 -1
  28. package/dist/components/Creatable/Creatable.js +1 -1
  29. package/dist/components/Datepicker/Datepicker.d.ts +1 -1
  30. package/dist/components/Datepicker/Datepicker.js +1 -1
  31. package/dist/components/Datepicker/Datepicker.test.js +1 -1
  32. package/dist/components/Dialog/Dialog.d.ts +8 -2
  33. package/dist/components/Dialog/Dialog.js +183 -203
  34. package/dist/components/Dialog/Dialog.test.js +227 -202
  35. package/dist/components/DragAndDrop/DragAndDrop.d.ts +1 -1
  36. package/dist/components/DragAndDrop/DragAndDrop.test.js +2 -2
  37. package/dist/components/Dropdown/Dropdown.d.ts +3 -1
  38. package/dist/components/Dropdown/Dropdown.js +179 -172
  39. package/dist/components/FilePicker/FilePicker.d.ts +9 -9
  40. package/dist/components/FilePicker/FilePicker.test.js +2 -2
  41. package/dist/components/Ghost/Ghost.d.ts +1 -1
  42. package/dist/components/Ghost/Ghost.test.js +1 -1
  43. package/dist/components/Icon/Icon.d.ts +1 -1
  44. package/dist/components/Icons/IconsGallery.d.ts +1 -1
  45. package/dist/components/Icons/IconsGallery.js +1 -1
  46. package/dist/components/Illustration/Illustration.d.ts +1 -1
  47. package/dist/components/Illustration/Illustration.test.js +1 -1
  48. package/dist/components/Input/Input.test.js +1 -1
  49. package/dist/components/Logo/Logo.d.ts +1 -1
  50. package/dist/components/Logos/LogosGallery.d.ts +1 -1
  51. package/dist/components/NavBar/NavBar.d.ts +1 -1
  52. package/dist/components/NavBar/NavBar.js +1 -1
  53. package/dist/components/Radio/Radio.d.ts +1 -1
  54. package/dist/components/Radio/Radio.js +9 -9
  55. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  56. package/dist/components/RadioGroup/RadioGroup.js +11 -11
  57. package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
  58. package/dist/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  59. package/dist/components/RichTextEditor/RichTextEditor.js +2 -2
  60. package/dist/components/RichTextEditor/RichTextEditor.test.js +2 -2
  61. package/dist/components/Search/Search.d.ts +1 -1
  62. package/dist/components/Search/Search.test.js +1 -1
  63. package/dist/components/Spinner/Spinner.d.ts +1 -1
  64. package/dist/components/SplitButton/SplitButton.d.ts +1 -1
  65. package/dist/components/SplitButton/SplitButton.js +3 -3
  66. package/dist/components/SplitButton/SplitButton.test.js +1 -1
  67. package/dist/components/Tab/Tab.d.ts +5 -1
  68. package/dist/components/Tab/Tab.js +28 -24
  69. package/dist/components/TabNavigation/TabNavigation.d.ts +1 -1
  70. package/dist/components/Tag/Tag.d.ts +1 -1
  71. package/dist/components/Tag/Tag.js +1 -1
  72. package/dist/components/Tag/Tag.test.js +1 -1
  73. package/dist/components/TagsFields/TagsFields.d.ts +1 -1
  74. package/dist/components/TagsFields/TagsFields.js +1 -1
  75. package/dist/components/Textarea/Textarea.d.ts +1 -1
  76. package/dist/components/Textarea/Textarea.test.js +1 -1
  77. package/dist/components/Toast/Toast.test.js +1 -1
  78. package/dist/components/ToastProvider/ToastProvider.d.ts +2 -1
  79. package/dist/components/ToastProvider/ToastProvider.js +1 -1
  80. package/dist/components/ToastProvider/ToastProvider.test.js +4 -4
  81. package/dist/components/Toggle/Toggle.d.ts +1 -1
  82. package/dist/components/Toggle/Toggle.js +211 -126
  83. package/dist/components/Toggle/Toggle.test.js +1 -1
  84. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  85. package/dist/components/Tooltip/Tooltip.js +60 -61
  86. package/dist/{index-C2s_VtSb.js → index-6DGSlWJb.js} +3 -3
  87. package/dist/{index-Nyh2Wa71.js → index-6j3vTf--.js} +5 -5
  88. package/dist/index-B4szHVNJ.js +248 -0
  89. package/dist/{index-CFqDEbIR.js → index-BVZdJVFB.js} +192 -191
  90. package/dist/index-Bq1FiX6B.js +93 -0
  91. package/dist/index-CE9NpYQR.js +604 -0
  92. package/dist/index-CHy8gqvu.js +353 -0
  93. package/dist/index-CarlZuEo.js +1610 -0
  94. package/dist/{index-CCFDXH-J.js → index-CcsZYEYy.js} +29 -28
  95. package/dist/index-DH9SO8qV.js +221 -0
  96. package/dist/{index-D_L0ncPJ.js → index-IR8HlW5P.js} +4 -4
  97. package/dist/{index-DkTDHhag.js → index-banDzeKa.js} +1 -1
  98. package/dist/index-kgC_DL6e.js +216 -0
  99. package/dist/main.js +3 -3
  100. package/dist/storybook-docs-page.d.ts +1 -1
  101. package/dist/{useToast-Cz5MGKnw.js → useToast-CpwrYPvx.js} +1 -1
  102. package/dist/{vi.bdSIJ99Y-017e_Pkz.js → vi.bdSIJ99Y-DWCVXj6K.js} +3 -3
  103. package/dist/web.config +8 -8
  104. package/package.json +94 -94
  105. package/dist/RichTextEditor-kTQEDSL0.js +0 -477
  106. package/dist/index-C8H9A55g.js +0 -222
  107. package/dist/index-CCnm5-ML.js +0 -230
  108. package/dist/index-CfIcUHKK.js +0 -70
  109. package/dist/index-ChQc_Cm6.js +0 -1544
  110. package/dist/index-CmGGeUr0.js +0 -142
  111. package/dist/index-Ii4UOx3H.js +0 -599
  112. package/dist/index-z_kiwVc3.js +0 -237
@@ -1,16 +1,16 @@
1
1
  import * as u from "react";
2
- import { useState as ge } from "react";
3
- import { d as ye, P as be } from "./index-z_kiwVc3.js";
4
- import { a as q } from "./index-C2s_VtSb.js";
5
- import { jsx as Ee } from "react/jsx-runtime";
6
- var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Q = { bubbles: !1, cancelable: !0 }, Se = "FocusScope", we = u.forwardRef((e, t) => {
2
+ import { useState as ye } from "react";
3
+ import { a as be, P as Ee } from "./index-B4szHVNJ.js";
4
+ import { a as $ } from "./index-6DGSlWJb.js";
5
+ import { jsx as Se } from "react/jsx-runtime";
6
+ var K = "focusScope.autoFocusOnMount", H = "focusScope.autoFocusOnUnmount", q = { bubbles: !1, cancelable: !0 }, we = "FocusScope", Ce = u.forwardRef((e, t) => {
7
7
  const {
8
8
  loop: n = !1,
9
9
  trapped: r = !1,
10
10
  onMountAutoFocus: c,
11
11
  onUnmountAutoFocus: i,
12
12
  ...s
13
- } = e, [a, S] = u.useState(null), b = q(c), g = q(i), f = u.useRef(null), v = ye(t, (o) => S(o)), h = u.useRef({
13
+ } = e, [a, S] = u.useState(null), b = $(c), g = $(i), f = u.useRef(null), v = be(t, (o) => S(o)), h = u.useRef({
14
14
  paused: !1,
15
15
  pause() {
16
16
  this.paused = !0;
@@ -42,16 +42,16 @@ var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Q =
42
42
  }
43
43
  }, [r, a, h.paused]), u.useEffect(() => {
44
44
  if (a) {
45
- J.add(h);
45
+ ee.add(h);
46
46
  const o = document.activeElement;
47
47
  if (!a.contains(o)) {
48
- const d = new CustomEvent(_, Q);
49
- a.addEventListener(_, b), a.dispatchEvent(d), d.defaultPrevented || (Ce(Ne(ue(a)), { select: !0 }), document.activeElement === o && A(a));
48
+ const d = new CustomEvent(K, q);
49
+ a.addEventListener(K, b), a.dispatchEvent(d), d.defaultPrevented || (Re(Me(ie(a)), { select: !0 }), document.activeElement === o && A(a));
50
50
  }
51
51
  return () => {
52
- a.removeEventListener(_, b), setTimeout(() => {
53
- const d = new CustomEvent(j, Q);
54
- a.addEventListener(j, g), a.dispatchEvent(d), d.defaultPrevented || A(o ?? document.body, { select: !0 }), a.removeEventListener(j, g), J.remove(h);
52
+ a.removeEventListener(K, b), setTimeout(() => {
53
+ const d = new CustomEvent(H, q);
54
+ a.addEventListener(H, g), a.dispatchEvent(d), d.defaultPrevented || A(o ?? document.body, { select: !0 }), a.removeEventListener(H, g), ee.remove(h);
55
55
  }, 0);
56
56
  };
57
57
  }
@@ -61,25 +61,25 @@ var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Q =
61
61
  if (!n && !r || h.paused) return;
62
62
  const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, d = document.activeElement;
63
63
  if (l && d) {
64
- const m = o.currentTarget, [p, y] = Re(m);
64
+ const m = o.currentTarget, [p, y] = ke(m);
65
65
  p && y ? !o.shiftKey && d === y ? (o.preventDefault(), n && A(p, { select: !0 })) : o.shiftKey && d === p && (o.preventDefault(), n && A(y, { select: !0 })) : d === m && o.preventDefault();
66
66
  }
67
67
  },
68
68
  [n, r, h.paused]
69
69
  );
70
- return /* @__PURE__ */ Ee(be.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
70
+ return /* @__PURE__ */ Se(Ee.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
71
71
  });
72
- we.displayName = Se;
73
- function Ce(e, { select: t = !1 } = {}) {
72
+ Ce.displayName = we;
73
+ function Re(e, { select: t = !1 } = {}) {
74
74
  const n = document.activeElement;
75
75
  for (const r of e)
76
76
  if (A(r, { select: t }), document.activeElement !== n) return;
77
77
  }
78
- function Re(e) {
79
- const t = ue(e), n = $(t, e), r = $(t.reverse(), e);
78
+ function ke(e) {
79
+ const t = ie(e), n = J(t, e), r = J(t.reverse(), e);
80
80
  return [n, r];
81
81
  }
82
- function ue(e) {
82
+ function ie(e) {
83
83
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
84
84
  acceptNode: (r) => {
85
85
  const c = r.tagName === "INPUT" && r.type === "hidden";
@@ -89,11 +89,11 @@ function ue(e) {
89
89
  for (; n.nextNode(); ) t.push(n.currentNode);
90
90
  return t;
91
91
  }
92
- function $(e, t) {
92
+ function J(e, t) {
93
93
  for (const n of e)
94
- if (!ke(n, { upTo: t })) return n;
94
+ if (!Te(n, { upTo: t })) return n;
95
95
  }
96
- function ke(e, { upTo: t }) {
96
+ function Te(e, { upTo: t }) {
97
97
  if (getComputedStyle(e).visibility === "hidden") return !0;
98
98
  for (; e; ) {
99
99
  if (t !== void 0 && e === t) return !1;
@@ -111,50 +111,51 @@ function A(e, { select: t = !1 } = {}) {
111
111
  e.focus({ preventScroll: !0 }), e !== n && Ae(e) && t && e.select();
112
112
  }
113
113
  }
114
- var J = Te();
115
- function Te() {
114
+ var ee = Ne();
115
+ function Ne() {
116
116
  let e = [];
117
117
  return {
118
118
  add(t) {
119
119
  const n = e[0];
120
- t !== n && (n == null || n.pause()), e = ee(e, t), e.unshift(t);
120
+ t !== n && (n == null || n.pause()), e = te(e, t), e.unshift(t);
121
121
  },
122
122
  remove(t) {
123
123
  var n;
124
- e = ee(e, t), (n = e[0]) == null || n.resume();
124
+ e = te(e, t), (n = e[0]) == null || n.resume();
125
125
  }
126
126
  };
127
127
  }
128
- function ee(e, t) {
128
+ function te(e, t) {
129
129
  const n = [...e], r = n.indexOf(t);
130
130
  return r !== -1 && n.splice(r, 1), n;
131
131
  }
132
- function Ne(e) {
132
+ function Me(e) {
133
133
  return e.filter((t) => t.tagName !== "A");
134
134
  }
135
- var K = 0;
136
- function bt() {
135
+ var L = 0, C = null;
136
+ function Et() {
137
137
  u.useEffect(() => {
138
- const e = document.querySelectorAll("[data-radix-focus-guard]");
139
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? te()), document.body.insertAdjacentElement("beforeend", e[1] ?? te()), K++, () => {
140
- K === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), K--;
138
+ C || (C = { start: ne(), end: ne() });
139
+ const { start: e, end: t } = C;
140
+ return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), L++, () => {
141
+ L === 1 && (C == null || C.start.remove(), C == null || C.end.remove(), C = null), L = Math.max(0, L - 1);
141
142
  };
142
143
  }, []);
143
144
  }
144
- function te() {
145
+ function ne() {
145
146
  const e = document.createElement("span");
146
147
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
147
148
  }
148
- var C = function() {
149
- return C = Object.assign || function(t) {
149
+ var R = function() {
150
+ return R = Object.assign || function(t) {
150
151
  for (var n, r = 1, c = arguments.length; r < c; r++) {
151
152
  n = arguments[r];
152
153
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
153
154
  }
154
155
  return t;
155
- }, C.apply(this, arguments);
156
+ }, R.apply(this, arguments);
156
157
  };
157
- function ie(e, t) {
158
+ function le(e, t) {
158
159
  var n = {};
159
160
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
160
161
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -162,17 +163,17 @@ function ie(e, t) {
162
163
  t.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[c]) && (n[r[c]] = e[r[c]]);
163
164
  return n;
164
165
  }
165
- function Me(e, t, n) {
166
+ function Pe(e, t, n) {
166
167
  if (n || arguments.length === 2) for (var r = 0, c = t.length, i; r < c; r++)
167
168
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
168
169
  return e.concat(i || Array.prototype.slice.call(t));
169
170
  }
170
- var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Pe = "with-scroll-bars-hidden", Oe = "--removed-body-scroll-bar-size";
171
- function H(e, t) {
171
+ var D = "right-scroll-bar-position", U = "width-before-scroll-bar", Oe = "with-scroll-bars-hidden", Fe = "--removed-body-scroll-bar-size";
172
+ function V(e, t) {
172
173
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
173
174
  }
174
- function Fe(e, t) {
175
- var n = ge(function() {
175
+ function Le(e, t) {
176
+ var n = ye(function() {
176
177
  return {
177
178
  // value
178
179
  value: e,
@@ -192,31 +193,31 @@ function Fe(e, t) {
192
193
  })[0];
193
194
  return n.callback = t, n.facade;
194
195
  }
195
- var Le = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ne = /* @__PURE__ */ new WeakMap();
196
- function Ie(e, t) {
197
- var n = Fe(null, function(r) {
196
+ var Ie = typeof window < "u" ? u.useLayoutEffect : u.useEffect, re = /* @__PURE__ */ new WeakMap();
197
+ function xe(e, t) {
198
+ var n = Le(null, function(r) {
198
199
  return e.forEach(function(c) {
199
- return H(c, r);
200
+ return V(c, r);
200
201
  });
201
202
  });
202
- return Le(function() {
203
- var r = ne.get(n);
203
+ return Ie(function() {
204
+ var r = re.get(n);
204
205
  if (r) {
205
206
  var c = new Set(r), i = new Set(e), s = n.current;
206
207
  c.forEach(function(a) {
207
- i.has(a) || H(a, null);
208
+ i.has(a) || V(a, null);
208
209
  }), i.forEach(function(a) {
209
- c.has(a) || H(a, s);
210
+ c.has(a) || V(a, s);
210
211
  });
211
212
  }
212
- ne.set(n, e);
213
+ re.set(n, e);
213
214
  }, [e]), n;
214
215
  }
215
- function xe(e) {
216
+ function We(e) {
216
217
  return e;
217
218
  }
218
- function We(e, t) {
219
- t === void 0 && (t = xe);
219
+ function Be(e, t) {
220
+ t === void 0 && (t = We);
220
221
  var n = [], r = !1, c = {
221
222
  read: function() {
222
223
  if (r)
@@ -270,78 +271,78 @@ function We(e, t) {
270
271
  };
271
272
  return c;
272
273
  }
273
- function Be(e) {
274
+ function De(e) {
274
275
  e === void 0 && (e = {});
275
- var t = We(null);
276
- return t.options = C({ async: !0, ssr: !1 }, e), t;
276
+ var t = Be(null);
277
+ return t.options = R({ async: !0, ssr: !1 }, e), t;
277
278
  }
278
- var le = function(e) {
279
- var t = e.sideCar, n = ie(e, ["sideCar"]);
279
+ var se = function(e) {
280
+ var t = e.sideCar, n = le(e, ["sideCar"]);
280
281
  if (!t)
281
282
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
282
283
  var r = t.read();
283
284
  if (!r)
284
285
  throw new Error("Sidecar medium not found");
285
- return u.createElement(r, C({}, n));
286
+ return u.createElement(r, R({}, n));
286
287
  };
287
- le.isSideCarExport = !0;
288
- function De(e, t) {
289
- return e.useMedium(t), le;
288
+ se.isSideCarExport = !0;
289
+ function Ue(e, t) {
290
+ return e.useMedium(t), se;
290
291
  }
291
- var se = Be(), V = function() {
292
- }, D = u.forwardRef(function(e, t) {
292
+ var fe = De(), X = function() {
293
+ }, _ = u.forwardRef(function(e, t) {
293
294
  var n = u.useRef(null), r = u.useState({
294
- onScrollCapture: V,
295
- onWheelCapture: V,
296
- onTouchMoveCapture: V
297
- }), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ie(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, R = Ie([n, t]), k = C(C({}, y), c);
295
+ onScrollCapture: X,
296
+ onWheelCapture: X,
297
+ onTouchMoveCapture: X
298
+ }), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = le(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, k = xe([n, t]), T = R(R({}, y), c);
298
299
  return u.createElement(
299
300
  u.Fragment,
300
301
  null,
301
- g && u.createElement(E, { sideCar: se, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
302
- s ? u.cloneElement(u.Children.only(a), C(C({}, k), { ref: R })) : u.createElement(m, C({}, k, { className: S, ref: R }), a)
302
+ g && u.createElement(E, { sideCar: fe, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
303
+ s ? u.cloneElement(u.Children.only(a), R(R({}, T), { ref: k })) : u.createElement(m, R({}, T, { className: S, ref: k }), a)
303
304
  );
304
305
  });
305
- D.defaultProps = {
306
+ _.defaultProps = {
306
307
  enabled: !0,
307
308
  removeScrollBar: !0,
308
309
  inert: !1
309
310
  };
310
- D.classNames = {
311
- fullWidth: B,
312
- zeroRight: W
311
+ _.classNames = {
312
+ fullWidth: U,
313
+ zeroRight: D
313
314
  };
314
- var Ue = function() {
315
+ var _e = function() {
315
316
  if (typeof __webpack_nonce__ < "u")
316
317
  return __webpack_nonce__;
317
318
  };
318
- function _e() {
319
+ function je() {
319
320
  if (!document)
320
321
  return null;
321
322
  var e = document.createElement("style");
322
323
  e.type = "text/css";
323
- var t = Ue();
324
+ var t = _e();
324
325
  return t && e.setAttribute("nonce", t), e;
325
326
  }
326
- function je(e, t) {
327
+ function Ke(e, t) {
327
328
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
328
329
  }
329
- function Ke(e) {
330
+ function He(e) {
330
331
  var t = document.head || document.getElementsByTagName("head")[0];
331
332
  t.appendChild(e);
332
333
  }
333
- var He = function() {
334
+ var Ve = function() {
334
335
  var e = 0, t = null;
335
336
  return {
336
337
  add: function(n) {
337
- e == 0 && (t = _e()) && (je(t, n), Ke(t)), e++;
338
+ e == 0 && (t = je()) && (Ke(t, n), He(t)), e++;
338
339
  },
339
340
  remove: function() {
340
341
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
341
342
  }
342
343
  };
343
- }, Ve = function() {
344
- var e = He();
344
+ }, Xe = function() {
345
+ var e = Ve();
345
346
  return function(t, n) {
346
347
  u.useEffect(function() {
347
348
  return e.add(t), function() {
@@ -349,40 +350,40 @@ var He = function() {
349
350
  };
350
351
  }, [t && n]);
351
352
  };
352
- }, fe = function() {
353
- var e = Ve(), t = function(n) {
353
+ }, de = function() {
354
+ var e = Xe(), t = function(n) {
354
355
  var r = n.styles, c = n.dynamic;
355
356
  return e(r, c), null;
356
357
  };
357
358
  return t;
358
- }, Xe = {
359
+ }, Ye = {
359
360
  left: 0,
360
361
  top: 0,
361
362
  right: 0,
362
363
  gap: 0
363
- }, X = function(e) {
364
+ }, Y = function(e) {
364
365
  return parseInt(e || "", 10) || 0;
365
- }, Ye = function(e) {
366
+ }, ze = function(e) {
366
367
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], c = t[e === "padding" ? "paddingRight" : "marginRight"];
367
- return [X(n), X(r), X(c)];
368
+ return [Y(n), Y(r), Y(c)];
368
369
  }, Ge = function(e) {
369
370
  if (e === void 0 && (e = "margin"), typeof window > "u")
370
- return Xe;
371
- var t = Ye(e), n = document.documentElement.clientWidth, r = window.innerWidth;
371
+ return Ye;
372
+ var t = ze(e), n = document.documentElement.clientWidth, r = window.innerWidth;
372
373
  return {
373
374
  left: t[0],
374
375
  top: t[1],
375
376
  right: t[2],
376
377
  gap: Math.max(0, r - n + t[2] - t[0])
377
378
  };
378
- }, ze = fe(), P = "data-scroll-locked", Ze = function(e, t, n, r) {
379
+ }, Ze = de(), O = "data-scroll-locked", Qe = function(e, t, n, r) {
379
380
  var c = e.left, i = e.top, s = e.right, a = e.gap;
380
381
  return n === void 0 && (n = "margin"), `
381
- .`.concat(Pe, ` {
382
+ .`.concat(Oe, ` {
382
383
  overflow: hidden `).concat(r, `;
383
384
  padding-right: `).concat(a, "px ").concat(r, `;
384
385
  }
385
- body[`).concat(P, `] {
386
+ body[`).concat(O, `] {
386
387
  overflow: hidden `).concat(r, `;
387
388
  overscroll-behavior: contain;
388
389
  `).concat([
@@ -399,110 +400,110 @@ var He = function() {
399
400
  ].filter(Boolean).join(""), `
400
401
  }
401
402
 
402
- .`).concat(W, ` {
403
+ .`).concat(D, ` {
403
404
  right: `).concat(a, "px ").concat(r, `;
404
405
  }
405
406
 
406
- .`).concat(B, ` {
407
+ .`).concat(U, ` {
407
408
  margin-right: `).concat(a, "px ").concat(r, `;
408
409
  }
409
410
 
410
- .`).concat(W, " .").concat(W, ` {
411
+ .`).concat(D, " .").concat(D, ` {
411
412
  right: 0 `).concat(r, `;
412
413
  }
413
414
 
414
- .`).concat(B, " .").concat(B, ` {
415
+ .`).concat(U, " .").concat(U, ` {
415
416
  margin-right: 0 `).concat(r, `;
416
417
  }
417
418
 
418
- body[`).concat(P, `] {
419
- `).concat(Oe, ": ").concat(a, `px;
419
+ body[`).concat(O, `] {
420
+ `).concat(Fe, ": ").concat(a, `px;
420
421
  }
421
422
  `);
422
- }, re = function() {
423
- var e = parseInt(document.body.getAttribute(P) || "0", 10);
423
+ }, ae = function() {
424
+ var e = parseInt(document.body.getAttribute(O) || "0", 10);
424
425
  return isFinite(e) ? e : 0;
425
- }, qe = function() {
426
+ }, $e = function() {
426
427
  u.useEffect(function() {
427
- return document.body.setAttribute(P, (re() + 1).toString()), function() {
428
- var e = re() - 1;
429
- e <= 0 ? document.body.removeAttribute(P) : document.body.setAttribute(P, e.toString());
428
+ return document.body.setAttribute(O, (ae() + 1).toString()), function() {
429
+ var e = ae() - 1;
430
+ e <= 0 ? document.body.removeAttribute(O) : document.body.setAttribute(O, e.toString());
430
431
  };
431
432
  }, []);
432
- }, Qe = function(e) {
433
+ }, qe = function(e) {
433
434
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, c = r === void 0 ? "margin" : r;
434
- qe();
435
+ $e();
435
436
  var i = u.useMemo(function() {
436
437
  return Ge(c);
437
438
  }, [c]);
438
- return u.createElement(ze, { styles: Ze(i, !t, c, n ? "" : "!important") });
439
+ return u.createElement(Ze, { styles: Qe(i, !t, c, n ? "" : "!important") });
439
440
  }, G = !1;
440
441
  if (typeof window < "u")
441
442
  try {
442
- var F = Object.defineProperty({}, "passive", {
443
+ var I = Object.defineProperty({}, "passive", {
443
444
  get: function() {
444
445
  return G = !0, !0;
445
446
  }
446
447
  });
447
- window.addEventListener("test", F, F), window.removeEventListener("test", F, F);
448
+ window.addEventListener("test", I, I), window.removeEventListener("test", I, I);
448
449
  } catch {
449
450
  G = !1;
450
451
  }
451
- var T = G ? { passive: !1 } : !1, $e = function(e) {
452
+ var N = G ? { passive: !1 } : !1, Je = function(e) {
452
453
  return e.tagName === "TEXTAREA";
453
- }, de = function(e, t) {
454
+ }, ve = function(e, t) {
454
455
  if (!(e instanceof Element))
455
456
  return !1;
456
457
  var n = window.getComputedStyle(e);
457
458
  return (
458
459
  // not-not-scrollable
459
460
  n[t] !== "hidden" && // contains scroll inside self
460
- !(n.overflowY === n.overflowX && !$e(e) && n[t] === "visible")
461
+ !(n.overflowY === n.overflowX && !Je(e) && n[t] === "visible")
461
462
  );
462
- }, Je = function(e) {
463
- return de(e, "overflowY");
464
463
  }, et = function(e) {
465
- return de(e, "overflowX");
466
- }, ae = function(e, t) {
464
+ return ve(e, "overflowY");
465
+ }, tt = function(e) {
466
+ return ve(e, "overflowX");
467
+ }, oe = function(e, t) {
467
468
  var n = t.ownerDocument, r = t;
468
469
  do {
469
470
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
470
- var c = ve(e, r);
471
+ var c = he(e, r);
471
472
  if (c) {
472
- var i = he(e, r), s = i[1], a = i[2];
473
+ var i = me(e, r), s = i[1], a = i[2];
473
474
  if (s > a)
474
475
  return !0;
475
476
  }
476
477
  r = r.parentNode;
477
478
  } while (r && r !== n.body);
478
479
  return !1;
479
- }, tt = function(e) {
480
+ }, nt = function(e) {
480
481
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
481
482
  return [
482
483
  t,
483
484
  n,
484
485
  r
485
486
  ];
486
- }, nt = function(e) {
487
+ }, rt = function(e) {
487
488
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
488
489
  return [
489
490
  t,
490
491
  n,
491
492
  r
492
493
  ];
493
- }, ve = function(e, t) {
494
- return e === "v" ? Je(t) : et(t);
495
494
  }, he = function(e, t) {
496
- return e === "v" ? tt(t) : nt(t);
497
- }, rt = function(e, t) {
495
+ return e === "v" ? et(t) : tt(t);
496
+ }, me = function(e, t) {
497
+ return e === "v" ? nt(t) : rt(t);
498
+ }, at = function(e, t) {
498
499
  return e === "h" && t === "rtl" ? -1 : 1;
499
- }, at = function(e, t, n, r, c) {
500
- var i = rt(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
500
+ }, ot = function(e, t, n, r, c) {
501
+ var i = at(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
501
502
  do {
502
503
  if (!a)
503
504
  break;
504
- var h = he(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
505
- (w || d) && ve(e, a) && (f += d, v += w);
505
+ var h = me(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
506
+ (w || d) && he(e, a) && (f += d, v += w);
506
507
  var m = a.parentNode;
507
508
  a = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
508
509
  } while (
@@ -511,28 +512,28 @@ var T = G ? { passive: !1 } : !1, $e = function(e) {
511
512
  S && (t.contains(a) || t === a)
512
513
  );
513
514
  return (g && Math.abs(f) < 1 || !g && Math.abs(v) < 1) && (b = !0), b;
514
- }, L = function(e) {
515
+ }, x = function(e) {
515
516
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
516
- }, oe = function(e) {
517
- return [e.deltaX, e.deltaY];
518
517
  }, ce = function(e) {
518
+ return [e.deltaX, e.deltaY];
519
+ }, ue = function(e) {
519
520
  return e && "current" in e ? e.current : e;
520
- }, ot = function(e, t) {
521
+ }, ct = function(e, t) {
521
522
  return e[0] === t[0] && e[1] === t[1];
522
- }, ct = function(e) {
523
+ }, ut = function(e) {
523
524
  return `
524
525
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
525
526
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
526
527
  `);
527
- }, ut = 0, N = [];
528
- function it(e) {
529
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(ut++)[0], i = u.useState(fe)[0], s = u.useRef(e);
528
+ }, it = 0, M = [];
529
+ function lt(e) {
530
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(it++)[0], i = u.useState(de)[0], s = u.useRef(e);
530
531
  u.useEffect(function() {
531
532
  s.current = e;
532
533
  }, [e]), u.useEffect(function() {
533
534
  if (e.inert) {
534
535
  document.body.classList.add("block-interactivity-".concat(c));
535
- var o = Me([e.lockRef.current], (e.shards || []).map(ce), !0).filter(Boolean);
536
+ var o = Pe([e.lockRef.current], (e.shards || []).map(ue), !0).filter(Boolean);
536
537
  return o.forEach(function(l) {
537
538
  return l.classList.add("allow-interactivity-".concat(c));
538
539
  }), function() {
@@ -545,101 +546,101 @@ function it(e) {
545
546
  var a = u.useCallback(function(o, l) {
546
547
  if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
547
548
  return !s.current.allowPinchZoom;
548
- var d = L(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, R = o.target, k = Math.abs(p) > Math.abs(y) ? "h" : "v";
549
- if ("touches" in o && k === "h" && R.type === "range")
549
+ var d = x(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, k = o.target, T = Math.abs(p) > Math.abs(y) ? "h" : "v";
550
+ if ("touches" in o && T === "h" && k.type === "range")
550
551
  return !1;
551
- var z = window.getSelection(), U = z && z.anchorNode, pe = U ? U === R || U.contains(R) : !1;
552
- if (pe)
552
+ var Z = window.getSelection(), j = Z && Z.anchorNode, ge = j ? j === k || j.contains(k) : !1;
553
+ if (ge)
553
554
  return !1;
554
- var O = ae(k, R);
555
- if (!O)
555
+ var F = oe(T, k);
556
+ if (!F)
556
557
  return !0;
557
- if (O ? E = k : (E = k === "v" ? "h" : "v", O = ae(k, R)), !O)
558
+ if (F ? E = T : (E = T === "v" ? "h" : "v", F = oe(T, k)), !F)
558
559
  return !1;
559
560
  if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
560
561
  return !0;
561
- var Z = r.current || E;
562
- return at(Z, l, o, Z === "h" ? p : y);
562
+ var Q = r.current || E;
563
+ return ot(Q, l, o, Q === "h" ? p : y);
563
564
  }, []), S = u.useCallback(function(o) {
564
565
  var l = o;
565
- if (!(!N.length || N[N.length - 1] !== i)) {
566
- var d = "deltaY" in l ? oe(l) : L(l), m = t.current.filter(function(E) {
567
- return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && ot(E.delta, d);
566
+ if (!(!M.length || M[M.length - 1] !== i)) {
567
+ var d = "deltaY" in l ? ce(l) : x(l), m = t.current.filter(function(E) {
568
+ return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && ct(E.delta, d);
568
569
  })[0];
569
570
  if (m && m.should) {
570
571
  l.cancelable && l.preventDefault();
571
572
  return;
572
573
  }
573
574
  if (!m) {
574
- var p = (s.current.shards || []).map(ce).filter(Boolean).filter(function(E) {
575
+ var p = (s.current.shards || []).map(ue).filter(Boolean).filter(function(E) {
575
576
  return E.contains(l.target);
576
577
  }), y = p.length > 0 ? a(l, p[0]) : !s.current.noIsolation;
577
578
  y && l.cancelable && l.preventDefault();
578
579
  }
579
580
  }
580
581
  }, []), b = u.useCallback(function(o, l, d, m) {
581
- var p = { name: o, delta: l, target: d, should: m, shadowParent: lt(d) };
582
+ var p = { name: o, delta: l, target: d, should: m, shadowParent: st(d) };
582
583
  t.current.push(p), setTimeout(function() {
583
584
  t.current = t.current.filter(function(y) {
584
585
  return y !== p;
585
586
  });
586
587
  }, 1);
587
588
  }, []), g = u.useCallback(function(o) {
588
- n.current = L(o), r.current = void 0;
589
+ n.current = x(o), r.current = void 0;
589
590
  }, []), f = u.useCallback(function(o) {
590
- b(o.type, oe(o), o.target, a(o, e.lockRef.current));
591
+ b(o.type, ce(o), o.target, a(o, e.lockRef.current));
591
592
  }, []), v = u.useCallback(function(o) {
592
- b(o.type, L(o), o.target, a(o, e.lockRef.current));
593
+ b(o.type, x(o), o.target, a(o, e.lockRef.current));
593
594
  }, []);
594
595
  u.useEffect(function() {
595
- return N.push(i), e.setCallbacks({
596
+ return M.push(i), e.setCallbacks({
596
597
  onScrollCapture: f,
597
598
  onWheelCapture: f,
598
599
  onTouchMoveCapture: v
599
- }), document.addEventListener("wheel", S, T), document.addEventListener("touchmove", S, T), document.addEventListener("touchstart", g, T), function() {
600
- N = N.filter(function(o) {
600
+ }), document.addEventListener("wheel", S, N), document.addEventListener("touchmove", S, N), document.addEventListener("touchstart", g, N), function() {
601
+ M = M.filter(function(o) {
601
602
  return o !== i;
602
- }), document.removeEventListener("wheel", S, T), document.removeEventListener("touchmove", S, T), document.removeEventListener("touchstart", g, T);
603
+ }), document.removeEventListener("wheel", S, N), document.removeEventListener("touchmove", S, N), document.removeEventListener("touchstart", g, N);
603
604
  };
604
605
  }, []);
605
606
  var h = e.removeScrollBar, w = e.inert;
606
607
  return u.createElement(
607
608
  u.Fragment,
608
609
  null,
609
- w ? u.createElement(i, { styles: ct(c) }) : null,
610
- h ? u.createElement(Qe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
610
+ w ? u.createElement(i, { styles: ut(c) }) : null,
611
+ h ? u.createElement(qe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
611
612
  );
612
613
  }
613
- function lt(e) {
614
+ function st(e) {
614
615
  for (var t = null; e !== null; )
615
616
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
616
617
  return t;
617
618
  }
618
- const st = De(se, it);
619
- var ft = u.forwardRef(function(e, t) {
620
- return u.createElement(D, C({}, e, { ref: t, sideCar: st }));
619
+ const ft = Ue(fe, lt);
620
+ var dt = u.forwardRef(function(e, t) {
621
+ return u.createElement(_, R({}, e, { ref: t, sideCar: ft }));
621
622
  });
622
- ft.classNames = D.classNames;
623
- var dt = function(e) {
623
+ dt.classNames = _.classNames;
624
+ var vt = function(e) {
624
625
  if (typeof document > "u")
625
626
  return null;
626
627
  var t = Array.isArray(e) ? e[0] : e;
627
628
  return t.ownerDocument.body;
628
- }, M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {}, Y = 0, me = function(e) {
629
- return e && (e.host || me(e.parentNode));
630
- }, vt = function(e, t) {
629
+ }, P = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), B = {}, z = 0, pe = function(e) {
630
+ return e && (e.host || pe(e.parentNode));
631
+ }, ht = function(e, t) {
631
632
  return t.map(function(n) {
632
633
  if (e.contains(n))
633
634
  return n;
634
- var r = me(n);
635
+ var r = pe(n);
635
636
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
636
637
  }).filter(function(n) {
637
638
  return !!n;
638
639
  });
639
- }, ht = function(e, t, n, r) {
640
- var c = vt(t, Array.isArray(e) ? e : [e]);
641
- x[n] || (x[n] = /* @__PURE__ */ new WeakMap());
642
- var i = x[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
640
+ }, mt = function(e, t, n, r) {
641
+ var c = ht(t, Array.isArray(e) ? e : [e]);
642
+ B[n] || (B[n] = /* @__PURE__ */ new WeakMap());
643
+ var i = B[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
643
644
  !f || a.has(f) || (a.add(f), b(f.parentNode));
644
645
  };
645
646
  c.forEach(b);
@@ -649,29 +650,29 @@ var dt = function(e) {
649
650
  g(v);
650
651
  else
651
652
  try {
652
- var h = v.getAttribute(r), w = h !== null && h !== "false", o = (M.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
653
- M.set(v, o), i.set(v, l), s.push(v), o === 1 && w && I.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
653
+ var h = v.getAttribute(r), w = h !== null && h !== "false", o = (P.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
654
+ P.set(v, o), i.set(v, l), s.push(v), o === 1 && w && W.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
654
655
  } catch (d) {
655
656
  console.error("aria-hidden: cannot operate on ", v, d);
656
657
  }
657
658
  });
658
659
  };
659
- return g(t), a.clear(), Y++, function() {
660
+ return g(t), a.clear(), z++, function() {
660
661
  s.forEach(function(f) {
661
- var v = M.get(f) - 1, h = i.get(f) - 1;
662
- M.set(f, v), i.set(f, h), v || (I.has(f) || f.removeAttribute(r), I.delete(f)), h || f.removeAttribute(n);
663
- }), Y--, Y || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {});
662
+ var v = P.get(f) - 1, h = i.get(f) - 1;
663
+ P.set(f, v), i.set(f, h), v || (W.has(f) || f.removeAttribute(r), W.delete(f)), h || f.removeAttribute(n);
664
+ }), z--, z || (P = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), B = {});
664
665
  };
665
- }, Et = function(e, t, n) {
666
+ }, St = function(e, t, n) {
666
667
  n === void 0 && (n = "data-aria-hidden");
667
- var r = Array.from(Array.isArray(e) ? e : [e]), c = dt(e);
668
- return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), ht(r, c, n, "aria-hidden")) : function() {
668
+ var r = Array.from(Array.isArray(e) ? e : [e]), c = vt(e);
669
+ return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), mt(r, c, n, "aria-hidden")) : function() {
669
670
  return null;
670
671
  };
671
672
  };
672
673
  export {
673
- we as F,
674
- ft as R,
675
- Et as h,
676
- bt as u
674
+ Ce as F,
675
+ dt as R,
676
+ St as h,
677
+ Et as u
677
678
  };