@temp-spotwork/ui 1.7.1 → 1.7.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 (112) hide show
  1. package/dist/{Combination-BkpbjcWz.js → Combination-B1NSOvaC.js} +170 -167
  2. package/dist/{bundle-mjs-CAy1p0fn.js → bundle-mjs-BjFsLjkg.js} +1 -1
  3. package/dist/components/atoms/avatar/Avatar.stories.js +1 -1
  4. package/dist/components/atoms/avatar/avatar.js +1 -1
  5. package/dist/components/atoms/badge/badge.stories.js +1 -1
  6. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +1 -1
  7. package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +1 -1
  8. package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +1 -1
  9. package/dist/components/atoms/form/calendar/calendar-date-cell.js +3 -3
  10. package/dist/components/atoms/form/calendar/calendar-month.js +1 -1
  11. package/dist/components/atoms/form/calendar/calendar-utils.js +1 -1
  12. package/dist/components/atoms/form/calendar/calendar.js +2 -2
  13. package/dist/components/atoms/form/calendar/calendar.stories.js +3 -3
  14. package/dist/components/atoms/form/calendar/month-header.js +1 -1
  15. package/dist/components/atoms/form/calendar/sticky-button.js +1 -1
  16. package/dist/components/atoms/form/checkbox/checkbox.js +2 -2
  17. package/dist/components/atoms/form/chips/chips.js +1 -1
  18. package/dist/components/atoms/form/chips/chips.stories.js +1 -1
  19. package/dist/components/atoms/form/dateselect/date-calendar.js +2 -2
  20. package/dist/components/atoms/form/dateselect/date-dropdown-header.js +1 -1
  21. package/dist/components/atoms/form/dateselect/date-dropdown.js +1 -1
  22. package/dist/components/atoms/form/dateselect/date-input.js +3 -3
  23. package/dist/components/atoms/form/dateselect/date-month-year-switch.js +1 -1
  24. package/dist/components/atoms/form/dateselect/dateselect.js +2 -2
  25. package/dist/components/atoms/form/dateselect/month-switch.js +3 -3
  26. package/dist/components/atoms/form/dateselect/year-switch.js +3 -3
  27. package/dist/components/atoms/form/dropdown/dropdown.js +1 -1
  28. package/dist/components/atoms/form/dropdown-search/dropdown-search.js +1 -1
  29. package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +1 -1
  30. package/dist/components/atoms/form/radiobutton/radiobutton.js +1 -1
  31. package/dist/components/atoms/form/stepper/Stepper.stories.js +1 -1
  32. package/dist/components/atoms/form/switch/switch.js +21 -21
  33. package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +2 -2
  34. package/dist/components/atoms/form/time-picker/time-picker-input.js +3 -3
  35. package/dist/components/atoms/form/time-picker/time-picker.js +2 -2
  36. package/dist/components/atoms/form/time-picker/time-picker.stories.js +2 -2
  37. package/dist/components/atoms/form/timeselect/hours-switch.js +1 -1
  38. package/dist/components/atoms/form/timeselect/minutes-switch.js +1 -1
  39. package/dist/components/atoms/form/typeahead/typeahead.js +1 -1
  40. package/dist/components/atoms/icons/icons.js +2 -2
  41. package/dist/components/atoms/icons/icons.stories.js +3 -3
  42. package/dist/components/atoms/message/message.js +1 -1
  43. package/dist/components/atoms/message/message.stories.js +1 -1
  44. package/dist/components/atoms/navigation/navigation-item/navigation-item.js +1 -1
  45. package/dist/components/atoms/small-large-text/small-large-text.js +2 -2
  46. package/dist/components/atoms/tab/Tab.stories.js +1 -1
  47. package/dist/components/atoms/tab/tab.js +1 -1
  48. package/dist/components/atoms/tooltip/tooltip.js +2 -2
  49. package/dist/components/atoms/tooltip/tooltip.stories.js +1 -1
  50. package/dist/components/molecules/alert/alert.js +4 -4
  51. package/dist/components/molecules/button/Button.stories.js +1 -1
  52. package/dist/components/molecules/button/button.js +1 -1
  53. package/dist/components/molecules/button/loading-spinner.js +1 -1
  54. package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +1 -1
  55. package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +1 -1
  56. package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +1 -1
  57. package/dist/components/molecules/datatables/cell/Cell.stories.js +1 -1
  58. package/dist/components/molecules/datatables/cell/cell.js +1 -1
  59. package/dist/components/molecules/datatables/row/Row.stories.js +1 -1
  60. package/dist/components/molecules/datatables/row/row.js +1 -1
  61. package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +1 -1
  62. package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +1 -1
  63. package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +1821 -1820
  64. package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +1 -1
  65. package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +1 -1
  66. package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +1 -1
  67. package/dist/components/molecules/dialog/dialog.js +4 -4
  68. package/dist/components/molecules/dialog/dialog.stories.js +1 -1
  69. package/dist/components/molecules/drawer/drawer.js +3 -3
  70. package/dist/components/molecules/filter/checkbox/checkbox.js +2 -2
  71. package/dist/components/molecules/filter/context-search/context-search.js +25 -26
  72. package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +16 -16
  73. package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +1 -1
  74. package/dist/components/molecules/filter/date-selector/date-selector.js +11 -11
  75. package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +2 -2
  76. package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +1 -1
  77. package/dist/components/molecules/filter/range-selector/range-selector.js +6 -6
  78. package/dist/components/molecules/filter/range-selector/styles.js +1 -1
  79. package/dist/components/molecules/filter/segmented-control/segmented-control.js +1 -1
  80. package/dist/components/molecules/form/radiogroup/radiogroup.js +1 -1
  81. package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +1 -1
  82. package/dist/components/molecules/link/Link.stories.js +1 -1
  83. package/dist/components/molecules/navigation/context-menu/context-menu.js +2 -2
  84. package/dist/components/molecules/navigation/header/Header.stories.js +1 -1
  85. package/dist/components/molecules/navigation/menubar/menubar.js +2 -2
  86. package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +1 -1
  87. package/dist/components/molecules/navigation/sidebar/sidebar.js +2 -2
  88. package/dist/components/molecules/notifications/content/Content.stories.js +1 -1
  89. package/dist/components/molecules/snackbar/Snackbar.stories.js +1 -1
  90. package/dist/components/molecules/snackbar/index.js +1 -1
  91. package/dist/components/molecules/snackbar/snackbar.js +3 -3
  92. package/dist/components/molecules/tab-group/tab-group.js +1 -1
  93. package/dist/components/molecules/tab-group/tabgroup.stories.js +1 -1
  94. package/dist/components/styles/typography/typography.js +1 -1
  95. package/dist/{index-DrfOymtc.js → index-B9jfXCBx.js} +15 -15
  96. package/dist/{index-DNpMaKvH.js → index-Bam3aisa.js} +24 -24
  97. package/dist/{index-OIdMhwsO.js → index-ByBd5wKB.js} +1 -1
  98. package/dist/{index-C0ZrzaoZ.js → index-Ck3lRuRz.js} +17 -17
  99. package/dist/{index-DotfMcM0.js → index-DLKZ-XYv.js} +5922 -5891
  100. package/dist/{index-CYyrKZeH.js → index-DMvnp-vR.js} +58 -58
  101. package/dist/{index-CnWyMXBX.js → index-DVNTJNwY.js} +24 -24
  102. package/dist/{index-DM2Ov9_y.js → index-Dpx0xQmQ.js} +6620 -6620
  103. package/dist/{index-BKdkX0lZ.js → index-QKj2bKph.js} +13 -13
  104. package/dist/lib/utils.js +1 -1
  105. package/dist/lodash-CyvSh4lH.js +3691 -0
  106. package/dist/main.js +2 -2
  107. package/dist/purify.es-CcKdJiNO.js +595 -0
  108. package/dist/{react-spring_web.modern-BLL8Qmtg.js → react-spring_web.modern-BzbxCya-.js} +1 -1
  109. package/dist/{snackbar-CgqDB5xn.js → snackbar-BUPlWHWk.js} +9 -14
  110. package/package.json +1 -1
  111. package/dist/lodash-BRbpQ7iy.js +0 -3676
  112. package/dist/purify.es-eYFoHPwR.js +0 -528
@@ -1,28 +1,28 @@
1
1
  import * as u from "react";
2
- import { useState as he } from "react";
3
- import { j as z, b as me, a as pe } from "./index-DotfMcM0.js";
4
- import { jsx as ge } from "react/jsx-runtime";
5
- var U = 0;
6
- function mt() {
2
+ import { useState as ge } from "react";
3
+ import { j as q, b as ye, a as be } from "./index-DLKZ-XYv.js";
4
+ import { jsx as Ee } from "react/jsx-runtime";
5
+ var _ = 0;
6
+ function yt() {
7
7
  u.useEffect(() => {
8
8
  const e = document.querySelectorAll("[data-radix-focus-guard]");
9
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Z()), document.body.insertAdjacentElement("beforeend", e[1] ?? Z()), U++, () => {
10
- U === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), U--;
9
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Q()), document.body.insertAdjacentElement("beforeend", e[1] ?? Q()), _++, () => {
10
+ _ === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), _--;
11
11
  };
12
12
  }, []);
13
13
  }
14
- function Z() {
14
+ function Q() {
15
15
  const e = document.createElement("span");
16
16
  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;
17
17
  }
18
- var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", q = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
18
+ var j = "focusScope.autoFocusOnMount", K = "focusScope.autoFocusOnUnmount", $ = { bubbles: !1, cancelable: !0 }, Se = "FocusScope", we = u.forwardRef((e, t) => {
19
19
  const {
20
20
  loop: n = !1,
21
21
  trapped: r = !1,
22
22
  onMountAutoFocus: c,
23
23
  onUnmountAutoFocus: i,
24
24
  ...s
25
- } = e, [a, S] = u.useState(null), b = z(c), g = z(i), f = u.useRef(null), v = me(t, (o) => S(o)), h = u.useRef({
25
+ } = 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({
26
26
  paused: !1,
27
27
  pause() {
28
28
  this.paused = !0;
@@ -36,15 +36,15 @@ var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", q =
36
36
  let o = function(p) {
37
37
  if (h.paused || !a) return;
38
38
  const y = p.target;
39
- a.contains(y) ? f.current = y : k(f.current, { select: !0 });
39
+ a.contains(y) ? f.current = y : A(f.current, { select: !0 });
40
40
  }, l = function(p) {
41
41
  if (h.paused || !a) return;
42
42
  const y = p.relatedTarget;
43
- y !== null && (a.contains(y) || k(f.current, { select: !0 }));
43
+ y !== null && (a.contains(y) || A(f.current, { select: !0 }));
44
44
  }, d = function(p) {
45
45
  if (document.activeElement === document.body)
46
46
  for (const E of p)
47
- E.removedNodes.length > 0 && k(a);
47
+ E.removedNodes.length > 0 && A(a);
48
48
  };
49
49
  document.addEventListener("focusin", o), document.addEventListener("focusout", l);
50
50
  const m = new MutationObserver(d);
@@ -54,16 +54,16 @@ var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", q =
54
54
  }
55
55
  }, [r, a, h.paused]), u.useEffect(() => {
56
56
  if (a) {
57
- $.add(h);
57
+ ee.add(h);
58
58
  const o = document.activeElement;
59
59
  if (!a.contains(o)) {
60
- const d = new CustomEvent(_, q);
61
- a.addEventListener(_, b), a.dispatchEvent(d), d.defaultPrevented || (Ee(ke(oe(a)), { select: !0 }), document.activeElement === o && k(a));
60
+ const d = new CustomEvent(j, $);
61
+ a.addEventListener(j, b), a.dispatchEvent(d), d.defaultPrevented || (Ce(Ne(ue(a)), { select: !0 }), document.activeElement === o && A(a));
62
62
  }
63
63
  return () => {
64
- a.removeEventListener(_, b), setTimeout(() => {
65
- const d = new CustomEvent(j, q);
66
- a.addEventListener(j, g), a.dispatchEvent(d), d.defaultPrevented || k(o ?? document.body, { select: !0 }), a.removeEventListener(j, g), $.remove(h);
64
+ a.removeEventListener(j, b), setTimeout(() => {
65
+ const d = new CustomEvent(K, $);
66
+ a.addEventListener(K, g), a.dispatchEvent(d), d.defaultPrevented || A(o ?? document.body, { select: !0 }), a.removeEventListener(K, g), ee.remove(h);
67
67
  }, 0);
68
68
  };
69
69
  }
@@ -73,25 +73,25 @@ var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", q =
73
73
  if (!n && !r || h.paused) return;
74
74
  const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, d = document.activeElement;
75
75
  if (l && d) {
76
- const m = o.currentTarget, [p, y] = Se(m);
77
- p && y ? !o.shiftKey && d === y ? (o.preventDefault(), n && k(p, { select: !0 })) : o.shiftKey && d === p && (o.preventDefault(), n && k(y, { select: !0 })) : d === m && o.preventDefault();
76
+ const m = o.currentTarget, [p, y] = Re(m);
77
+ 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();
78
78
  }
79
79
  },
80
80
  [n, r, h.paused]
81
81
  );
82
- return /* @__PURE__ */ ge(pe.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
82
+ return /* @__PURE__ */ Ee(be.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
83
83
  });
84
- be.displayName = ye;
85
- function Ee(e, { select: t = !1 } = {}) {
84
+ we.displayName = Se;
85
+ function Ce(e, { select: t = !1 } = {}) {
86
86
  const n = document.activeElement;
87
87
  for (const r of e)
88
- if (k(r, { select: t }), document.activeElement !== n) return;
88
+ if (A(r, { select: t }), document.activeElement !== n) return;
89
89
  }
90
- function Se(e) {
91
- const t = oe(e), n = Q(t, e), r = Q(t.reverse(), e);
90
+ function Re(e) {
91
+ const t = ue(e), n = J(t, e), r = J(t.reverse(), e);
92
92
  return [n, r];
93
93
  }
94
- function oe(e) {
94
+ function ue(e) {
95
95
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
96
96
  acceptNode: (r) => {
97
97
  const c = r.tagName === "INPUT" && r.type === "hidden";
@@ -101,11 +101,11 @@ function oe(e) {
101
101
  for (; n.nextNode(); ) t.push(n.currentNode);
102
102
  return t;
103
103
  }
104
- function Q(e, t) {
104
+ function J(e, t) {
105
105
  for (const n of e)
106
- if (!we(n, { upTo: t })) return n;
106
+ if (!ke(n, { upTo: t })) return n;
107
107
  }
108
- function we(e, { upTo: t }) {
108
+ function ke(e, { upTo: t }) {
109
109
  if (getComputedStyle(e).visibility === "hidden") return !0;
110
110
  for (; e; ) {
111
111
  if (t !== void 0 && e === t) return !1;
@@ -114,54 +114,54 @@ function we(e, { upTo: t }) {
114
114
  }
115
115
  return !1;
116
116
  }
117
- function Ce(e) {
117
+ function Ae(e) {
118
118
  return e instanceof HTMLInputElement && "select" in e;
119
119
  }
120
- function k(e, { select: t = !1 } = {}) {
120
+ function A(e, { select: t = !1 } = {}) {
121
121
  if (e && e.focus) {
122
122
  const n = document.activeElement;
123
- e.focus({ preventScroll: !0 }), e !== n && Ce(e) && t && e.select();
123
+ e.focus({ preventScroll: !0 }), e !== n && Ae(e) && t && e.select();
124
124
  }
125
125
  }
126
- var $ = Re();
127
- function Re() {
126
+ var ee = Te();
127
+ function Te() {
128
128
  let e = [];
129
129
  return {
130
130
  add(t) {
131
131
  const n = e[0];
132
- t !== n && (n == null || n.pause()), e = J(e, t), e.unshift(t);
132
+ t !== n && (n == null || n.pause()), e = te(e, t), e.unshift(t);
133
133
  },
134
134
  remove(t) {
135
135
  var n;
136
- e = J(e, t), (n = e[0]) == null || n.resume();
136
+ e = te(e, t), (n = e[0]) == null || n.resume();
137
137
  }
138
138
  };
139
139
  }
140
- function J(e, t) {
140
+ function te(e, t) {
141
141
  const n = [...e], r = n.indexOf(t);
142
142
  return r !== -1 && n.splice(r, 1), n;
143
143
  }
144
- function ke(e) {
144
+ function Ne(e) {
145
145
  return e.filter((t) => t.tagName !== "A");
146
146
  }
147
- var Ae = function(e) {
147
+ var Me = function(e) {
148
148
  if (typeof document > "u")
149
149
  return null;
150
150
  var t = Array.isArray(e) ? e[0] : e;
151
151
  return t.ownerDocument.body;
152
- }, T = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = {}, K = 0, ce = function(e) {
153
- return e && (e.host || ce(e.parentNode));
154
- }, Te = function(e, t) {
152
+ }, T = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = {}, H = 0, ie = function(e) {
153
+ return e && (e.host || ie(e.parentNode));
154
+ }, Oe = function(e, t) {
155
155
  return t.map(function(n) {
156
156
  if (e.contains(n))
157
157
  return n;
158
- var r = ce(n);
158
+ var r = ie(n);
159
159
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
160
160
  }).filter(function(n) {
161
161
  return !!n;
162
162
  });
163
- }, Ne = function(e, t, n, r) {
164
- var c = Te(t, Array.isArray(e) ? e : [e]);
163
+ }, Pe = function(e, t, n, r) {
164
+ var c = Oe(t, Array.isArray(e) ? e : [e]);
165
165
  L[n] || (L[n] = /* @__PURE__ */ new WeakMap());
166
166
  var i = L[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
167
167
  !f || a.has(f) || (a.add(f), b(f.parentNode));
@@ -180,16 +180,16 @@ var Ae = function(e) {
180
180
  }
181
181
  });
182
182
  };
183
- return g(t), a.clear(), K++, function() {
183
+ return g(t), a.clear(), H++, function() {
184
184
  s.forEach(function(f) {
185
185
  var v = T.get(f) - 1, h = i.get(f) - 1;
186
186
  T.set(f, v), i.set(f, h), v || (F.has(f) || f.removeAttribute(r), F.delete(f)), h || f.removeAttribute(n);
187
- }), K--, K || (T = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = {});
187
+ }), H--, H || (T = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), L = {});
188
188
  };
189
- }, pt = function(e, t, n) {
189
+ }, bt = function(e, t, n) {
190
190
  n === void 0 && (n = "data-aria-hidden");
191
- var r = Array.from(Array.isArray(e) ? e : [e]), c = Ae(e);
192
- return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), Ne(r, c, n, "aria-hidden")) : function() {
191
+ var r = Array.from(Array.isArray(e) ? e : [e]), c = Me(e);
192
+ return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), Pe(r, c, n, "aria-hidden")) : function() {
193
193
  return null;
194
194
  };
195
195
  }, C = function() {
@@ -201,7 +201,7 @@ var Ae = function(e) {
201
201
  return t;
202
202
  }, C.apply(this, arguments);
203
203
  };
204
- function ue(e, t) {
204
+ function le(e, t) {
205
205
  var n = {};
206
206
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
207
207
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -209,17 +209,17 @@ function ue(e, t) {
209
209
  t.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[c]) && (n[r[c]] = e[r[c]]);
210
210
  return n;
211
211
  }
212
- function Me(e, t, n) {
212
+ function Fe(e, t, n) {
213
213
  if (n || arguments.length === 2) for (var r = 0, c = t.length, i; r < c; r++)
214
214
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
215
215
  return e.concat(i || Array.prototype.slice.call(t));
216
216
  }
217
- var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Oe = "with-scroll-bars-hidden", Pe = "--removed-body-scroll-bar-size";
218
- function H(e, t) {
217
+ var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Le = "with-scroll-bars-hidden", Ie = "--removed-body-scroll-bar-size";
218
+ function V(e, t) {
219
219
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
220
220
  }
221
- function Fe(e, t) {
222
- var n = he(function() {
221
+ function xe(e, t) {
222
+ var n = ge(function() {
223
223
  return {
224
224
  // value
225
225
  value: e,
@@ -239,31 +239,31 @@ function Fe(e, t) {
239
239
  })[0];
240
240
  return n.callback = t, n.facade;
241
241
  }
242
- var Le = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ee = /* @__PURE__ */ new WeakMap();
243
- function Ie(e, t) {
244
- var n = Fe(null, function(r) {
242
+ var We = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ne = /* @__PURE__ */ new WeakMap();
243
+ function Be(e, t) {
244
+ var n = xe(null, function(r) {
245
245
  return e.forEach(function(c) {
246
- return H(c, r);
246
+ return V(c, r);
247
247
  });
248
248
  });
249
- return Le(function() {
250
- var r = ee.get(n);
249
+ return We(function() {
250
+ var r = ne.get(n);
251
251
  if (r) {
252
252
  var c = new Set(r), i = new Set(e), s = n.current;
253
253
  c.forEach(function(a) {
254
- i.has(a) || H(a, null);
254
+ i.has(a) || V(a, null);
255
255
  }), i.forEach(function(a) {
256
- c.has(a) || H(a, s);
256
+ c.has(a) || V(a, s);
257
257
  });
258
258
  }
259
- ee.set(n, e);
259
+ ne.set(n, e);
260
260
  }, [e]), n;
261
261
  }
262
- function xe(e) {
262
+ function De(e) {
263
263
  return e;
264
264
  }
265
- function We(e, t) {
266
- t === void 0 && (t = xe);
265
+ function Ue(e, t) {
266
+ t === void 0 && (t = De);
267
267
  var n = [], r = !1, c = {
268
268
  read: function() {
269
269
  if (r)
@@ -317,13 +317,13 @@ function We(e, t) {
317
317
  };
318
318
  return c;
319
319
  }
320
- function Be(e) {
320
+ function _e(e) {
321
321
  e === void 0 && (e = {});
322
- var t = We(null);
322
+ var t = Ue(null);
323
323
  return t.options = C({ async: !0, ssr: !1 }, e), t;
324
324
  }
325
- var ie = function(e) {
326
- var t = e.sideCar, n = ue(e, ["sideCar"]);
325
+ var se = function(e) {
326
+ var t = e.sideCar, n = le(e, ["sideCar"]);
327
327
  if (!t)
328
328
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
329
329
  var r = t.read();
@@ -331,22 +331,22 @@ var ie = function(e) {
331
331
  throw new Error("Sidecar medium not found");
332
332
  return u.createElement(r, C({}, n));
333
333
  };
334
- ie.isSideCarExport = !0;
335
- function De(e, t) {
336
- return e.useMedium(t), ie;
334
+ se.isSideCarExport = !0;
335
+ function je(e, t) {
336
+ return e.useMedium(t), se;
337
337
  }
338
- var le = Be(), V = function() {
338
+ var fe = _e(), X = function() {
339
339
  }, D = u.forwardRef(function(e, t) {
340
340
  var n = u.useRef(null), r = u.useState({
341
- onScrollCapture: V,
342
- onWheelCapture: V,
343
- onTouchMoveCapture: V
344
- }), 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 = ue(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, A = Ie([n, t]), R = C(C({}, y), c);
341
+ onScrollCapture: X,
342
+ onWheelCapture: X,
343
+ onTouchMoveCapture: X
344
+ }), 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, R = Be([n, t]), k = C(C({}, y), c);
345
345
  return u.createElement(
346
346
  u.Fragment,
347
347
  null,
348
- g && u.createElement(E, { sideCar: le, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
349
- s ? u.cloneElement(u.Children.only(a), C(C({}, R), { ref: A })) : u.createElement(m, C({}, R, { className: S, ref: A }), a)
348
+ g && u.createElement(E, { sideCar: fe, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
349
+ s ? u.cloneElement(u.Children.only(a), C(C({}, k), { ref: R })) : u.createElement(m, C({}, k, { className: S, ref: R }), a)
350
350
  );
351
351
  });
352
352
  D.defaultProps = {
@@ -358,37 +358,37 @@ D.classNames = {
358
358
  fullWidth: B,
359
359
  zeroRight: W
360
360
  };
361
- var Ue = function() {
361
+ var Ke = function() {
362
362
  if (typeof __webpack_nonce__ < "u")
363
363
  return __webpack_nonce__;
364
364
  };
365
- function _e() {
365
+ function He() {
366
366
  if (!document)
367
367
  return null;
368
368
  var e = document.createElement("style");
369
369
  e.type = "text/css";
370
- var t = Ue();
370
+ var t = Ke();
371
371
  return t && e.setAttribute("nonce", t), e;
372
372
  }
373
- function je(e, t) {
373
+ function Ve(e, t) {
374
374
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
375
375
  }
376
- function Ke(e) {
376
+ function Xe(e) {
377
377
  var t = document.head || document.getElementsByTagName("head")[0];
378
378
  t.appendChild(e);
379
379
  }
380
- var He = function() {
380
+ var Ye = function() {
381
381
  var e = 0, t = null;
382
382
  return {
383
383
  add: function(n) {
384
- e == 0 && (t = _e()) && (je(t, n), Ke(t)), e++;
384
+ e == 0 && (t = He()) && (Ve(t, n), Xe(t)), e++;
385
385
  },
386
386
  remove: function() {
387
387
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
388
388
  }
389
389
  };
390
- }, Ve = function() {
391
- var e = He();
390
+ }, Ge = function() {
391
+ var e = Ye();
392
392
  return function(t, n) {
393
393
  u.useEffect(function() {
394
394
  return e.add(t), function() {
@@ -396,36 +396,36 @@ var He = function() {
396
396
  };
397
397
  }, [t && n]);
398
398
  };
399
- }, se = function() {
400
- var e = Ve(), t = function(n) {
399
+ }, de = function() {
400
+ var e = Ge(), t = function(n) {
401
401
  var r = n.styles, c = n.dynamic;
402
402
  return e(r, c), null;
403
403
  };
404
404
  return t;
405
- }, Xe = {
405
+ }, ze = {
406
406
  left: 0,
407
407
  top: 0,
408
408
  right: 0,
409
409
  gap: 0
410
- }, X = function(e) {
410
+ }, Y = function(e) {
411
411
  return parseInt(e || "", 10) || 0;
412
- }, Ye = function(e) {
412
+ }, Ze = function(e) {
413
413
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], c = t[e === "padding" ? "paddingRight" : "marginRight"];
414
- return [X(n), X(r), X(c)];
415
- }, Ge = function(e) {
414
+ return [Y(n), Y(r), Y(c)];
415
+ }, qe = function(e) {
416
416
  if (e === void 0 && (e = "margin"), typeof window > "u")
417
- return Xe;
418
- var t = Ye(e), n = document.documentElement.clientWidth, r = window.innerWidth;
417
+ return ze;
418
+ var t = Ze(e), n = document.documentElement.clientWidth, r = window.innerWidth;
419
419
  return {
420
420
  left: t[0],
421
421
  top: t[1],
422
422
  right: t[2],
423
423
  gap: Math.max(0, r - n + t[2] - t[0])
424
424
  };
425
- }, ze = se(), O = "data-scroll-locked", Ze = function(e, t, n, r) {
425
+ }, Qe = de(), O = "data-scroll-locked", $e = function(e, t, n, r) {
426
426
  var c = e.left, i = e.top, s = e.right, a = e.gap;
427
427
  return n === void 0 && (n = "margin"), `
428
- .`.concat(Oe, ` {
428
+ .`.concat(Le, ` {
429
429
  overflow: hidden `).concat(r, `;
430
430
  padding-right: `).concat(a, "px ").concat(r, `;
431
431
  }
@@ -463,93 +463,93 @@ var He = function() {
463
463
  }
464
464
 
465
465
  body[`).concat(O, `] {
466
- `).concat(Pe, ": ").concat(a, `px;
466
+ `).concat(Ie, ": ").concat(a, `px;
467
467
  }
468
468
  `);
469
- }, te = function() {
469
+ }, re = function() {
470
470
  var e = parseInt(document.body.getAttribute(O) || "0", 10);
471
471
  return isFinite(e) ? e : 0;
472
- }, qe = function() {
472
+ }, Je = function() {
473
473
  u.useEffect(function() {
474
- return document.body.setAttribute(O, (te() + 1).toString()), function() {
475
- var e = te() - 1;
474
+ return document.body.setAttribute(O, (re() + 1).toString()), function() {
475
+ var e = re() - 1;
476
476
  e <= 0 ? document.body.removeAttribute(O) : document.body.setAttribute(O, e.toString());
477
477
  };
478
478
  }, []);
479
- }, Qe = function(e) {
479
+ }, et = function(e) {
480
480
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, c = r === void 0 ? "margin" : r;
481
- qe();
481
+ Je();
482
482
  var i = u.useMemo(function() {
483
- return Ge(c);
483
+ return qe(c);
484
484
  }, [c]);
485
- return u.createElement(ze, { styles: Ze(i, !t, c, n ? "" : "!important") });
486
- }, Y = !1;
485
+ return u.createElement(Qe, { styles: $e(i, !t, c, n ? "" : "!important") });
486
+ }, G = !1;
487
487
  if (typeof window < "u")
488
488
  try {
489
489
  var I = Object.defineProperty({}, "passive", {
490
490
  get: function() {
491
- return Y = !0, !0;
491
+ return G = !0, !0;
492
492
  }
493
493
  });
494
494
  window.addEventListener("test", I, I), window.removeEventListener("test", I, I);
495
495
  } catch {
496
- Y = !1;
496
+ G = !1;
497
497
  }
498
- var N = Y ? { passive: !1 } : !1, $e = function(e) {
498
+ var N = G ? { passive: !1 } : !1, tt = function(e) {
499
499
  return e.tagName === "TEXTAREA";
500
- }, fe = function(e, t) {
500
+ }, ve = function(e, t) {
501
501
  if (!(e instanceof Element))
502
502
  return !1;
503
503
  var n = window.getComputedStyle(e);
504
504
  return (
505
505
  // not-not-scrollable
506
506
  n[t] !== "hidden" && // contains scroll inside self
507
- !(n.overflowY === n.overflowX && !$e(e) && n[t] === "visible")
507
+ !(n.overflowY === n.overflowX && !tt(e) && n[t] === "visible")
508
508
  );
509
- }, Je = function(e) {
510
- return fe(e, "overflowY");
511
- }, et = function(e) {
512
- return fe(e, "overflowX");
513
- }, ne = function(e, t) {
509
+ }, nt = function(e) {
510
+ return ve(e, "overflowY");
511
+ }, rt = function(e) {
512
+ return ve(e, "overflowX");
513
+ }, ae = function(e, t) {
514
514
  var n = t.ownerDocument, r = t;
515
515
  do {
516
516
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
517
- var c = de(e, r);
517
+ var c = he(e, r);
518
518
  if (c) {
519
- var i = ve(e, r), s = i[1], a = i[2];
519
+ var i = me(e, r), s = i[1], a = i[2];
520
520
  if (s > a)
521
521
  return !0;
522
522
  }
523
523
  r = r.parentNode;
524
524
  } while (r && r !== n.body);
525
525
  return !1;
526
- }, tt = function(e) {
526
+ }, at = function(e) {
527
527
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
528
528
  return [
529
529
  t,
530
530
  n,
531
531
  r
532
532
  ];
533
- }, nt = function(e) {
533
+ }, ot = function(e) {
534
534
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
535
535
  return [
536
536
  t,
537
537
  n,
538
538
  r
539
539
  ];
540
- }, de = function(e, t) {
541
- return e === "v" ? Je(t) : et(t);
542
- }, ve = function(e, t) {
543
- return e === "v" ? tt(t) : nt(t);
544
- }, rt = function(e, t) {
540
+ }, he = function(e, t) {
541
+ return e === "v" ? nt(t) : rt(t);
542
+ }, me = function(e, t) {
543
+ return e === "v" ? at(t) : ot(t);
544
+ }, ct = function(e, t) {
545
545
  return e === "h" && t === "rtl" ? -1 : 1;
546
- }, at = function(e, t, n, r, c) {
547
- 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;
546
+ }, ut = function(e, t, n, r, c) {
547
+ var i = ct(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
548
548
  do {
549
549
  if (!a)
550
550
  break;
551
- var h = ve(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
552
- (w || d) && de(e, a) && (f += d, v += w);
551
+ var h = me(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
552
+ (w || d) && he(e, a) && (f += d, v += w);
553
553
  var m = a.parentNode;
554
554
  a = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
555
555
  } while (
@@ -560,26 +560,26 @@ var N = Y ? { passive: !1 } : !1, $e = function(e) {
560
560
  return (g && Math.abs(f) < 1 || !g && Math.abs(v) < 1) && (b = !0), b;
561
561
  }, x = function(e) {
562
562
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
563
- }, re = function(e) {
563
+ }, oe = function(e) {
564
564
  return [e.deltaX, e.deltaY];
565
- }, ae = function(e) {
565
+ }, ce = function(e) {
566
566
  return e && "current" in e ? e.current : e;
567
- }, ot = function(e, t) {
567
+ }, it = function(e, t) {
568
568
  return e[0] === t[0] && e[1] === t[1];
569
- }, ct = function(e) {
569
+ }, lt = function(e) {
570
570
  return `
571
571
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
572
572
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
573
573
  `);
574
- }, ut = 0, M = [];
575
- function it(e) {
576
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(ut++)[0], i = u.useState(se)[0], s = u.useRef(e);
574
+ }, st = 0, M = [];
575
+ function ft(e) {
576
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(st++)[0], i = u.useState(de)[0], s = u.useRef(e);
577
577
  u.useEffect(function() {
578
578
  s.current = e;
579
579
  }, [e]), u.useEffect(function() {
580
580
  if (e.inert) {
581
581
  document.body.classList.add("block-interactivity-".concat(c));
582
- var o = Me([e.lockRef.current], (e.shards || []).map(ae), !0).filter(Boolean);
582
+ var o = Fe([e.lockRef.current], (e.shards || []).map(ce), !0).filter(Boolean);
583
583
  return o.forEach(function(l) {
584
584
  return l.classList.add("allow-interactivity-".concat(c));
585
585
  }), function() {
@@ -592,37 +592,40 @@ function it(e) {
592
592
  var a = u.useCallback(function(o, l) {
593
593
  if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
594
594
  return !s.current.allowPinchZoom;
595
- 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, A = o.target, R = Math.abs(p) > Math.abs(y) ? "h" : "v";
596
- if ("touches" in o && R === "h" && A.type === "range")
595
+ 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, R = o.target, k = Math.abs(p) > Math.abs(y) ? "h" : "v";
596
+ if ("touches" in o && k === "h" && R.type === "range")
597
+ return !1;
598
+ var z = window.getSelection(), U = z && z.anchorNode, pe = U ? U === R || U.contains(R) : !1;
599
+ if (pe)
597
600
  return !1;
598
- var P = ne(R, A);
601
+ var P = ae(k, R);
599
602
  if (!P)
600
603
  return !0;
601
- if (P ? E = R : (E = R === "v" ? "h" : "v", P = ne(R, A)), !P)
604
+ if (P ? E = k : (E = k === "v" ? "h" : "v", P = ae(k, R)), !P)
602
605
  return !1;
603
606
  if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
604
607
  return !0;
605
- var G = r.current || E;
606
- return at(G, l, o, G === "h" ? p : y);
608
+ var Z = r.current || E;
609
+ return ut(Z, l, o, Z === "h" ? p : y);
607
610
  }, []), S = u.useCallback(function(o) {
608
611
  var l = o;
609
612
  if (!(!M.length || M[M.length - 1] !== i)) {
610
- var d = "deltaY" in l ? re(l) : x(l), m = t.current.filter(function(E) {
611
- return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && ot(E.delta, d);
613
+ var d = "deltaY" in l ? oe(l) : x(l), m = t.current.filter(function(E) {
614
+ return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && it(E.delta, d);
612
615
  })[0];
613
616
  if (m && m.should) {
614
617
  l.cancelable && l.preventDefault();
615
618
  return;
616
619
  }
617
620
  if (!m) {
618
- var p = (s.current.shards || []).map(ae).filter(Boolean).filter(function(E) {
621
+ var p = (s.current.shards || []).map(ce).filter(Boolean).filter(function(E) {
619
622
  return E.contains(l.target);
620
623
  }), y = p.length > 0 ? a(l, p[0]) : !s.current.noIsolation;
621
624
  y && l.cancelable && l.preventDefault();
622
625
  }
623
626
  }
624
627
  }, []), b = u.useCallback(function(o, l, d, m) {
625
- var p = { name: o, delta: l, target: d, should: m, shadowParent: lt(d) };
628
+ var p = { name: o, delta: l, target: d, should: m, shadowParent: dt(d) };
626
629
  t.current.push(p), setTimeout(function() {
627
630
  t.current = t.current.filter(function(y) {
628
631
  return y !== p;
@@ -631,7 +634,7 @@ function it(e) {
631
634
  }, []), g = u.useCallback(function(o) {
632
635
  n.current = x(o), r.current = void 0;
633
636
  }, []), f = u.useCallback(function(o) {
634
- b(o.type, re(o), o.target, a(o, e.lockRef.current));
637
+ b(o.type, oe(o), o.target, a(o, e.lockRef.current));
635
638
  }, []), v = u.useCallback(function(o) {
636
639
  b(o.type, x(o), o.target, a(o, e.lockRef.current));
637
640
  }, []);
@@ -650,23 +653,23 @@ function it(e) {
650
653
  return u.createElement(
651
654
  u.Fragment,
652
655
  null,
653
- w ? u.createElement(i, { styles: ct(c) }) : null,
654
- h ? u.createElement(Qe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
656
+ w ? u.createElement(i, { styles: lt(c) }) : null,
657
+ h ? u.createElement(et, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
655
658
  );
656
659
  }
657
- function lt(e) {
660
+ function dt(e) {
658
661
  for (var t = null; e !== null; )
659
662
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
660
663
  return t;
661
664
  }
662
- const st = De(le, it);
663
- var ft = u.forwardRef(function(e, t) {
664
- return u.createElement(D, C({}, e, { ref: t, sideCar: st }));
665
+ const vt = je(fe, ft);
666
+ var ht = u.forwardRef(function(e, t) {
667
+ return u.createElement(D, C({}, e, { ref: t, sideCar: vt }));
665
668
  });
666
- ft.classNames = D.classNames;
669
+ ht.classNames = D.classNames;
667
670
  export {
668
- be as F,
669
- ft as R,
670
- pt as h,
671
- mt as u
671
+ we as F,
672
+ ht as R,
673
+ bt as h,
674
+ yt as u
672
675
  };