se-design 1.0.77-dev-v1 → 1.0.78-dev1

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 (86) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/components/Banner/index.d.ts +0 -1
  3. package/dist/components/CustomModal/index.d.ts +29 -0
  4. package/dist/index12.js +36 -34
  5. package/dist/index12.js.map +1 -1
  6. package/dist/index13.js +11 -11
  7. package/dist/index13.js.map +1 -1
  8. package/dist/index19.js +154 -154
  9. package/dist/index19.js.map +1 -1
  10. package/dist/index197.js +5 -5
  11. package/dist/index201.js +1 -1
  12. package/dist/{index206.js → index208.js} +1 -1
  13. package/dist/{index206.js.map → index208.js.map} +1 -1
  14. package/dist/{index207.js → index209.js} +1 -1
  15. package/dist/{index207.js.map → index209.js.map} +1 -1
  16. package/dist/{index215.js → index217.js} +1 -1
  17. package/dist/{index215.js.map → index217.js.map} +1 -1
  18. package/dist/{index223.js → index225.js} +1 -1
  19. package/dist/{index223.js.map → index225.js.map} +1 -1
  20. package/dist/{index226.js → index228.js} +1 -1
  21. package/dist/{index226.js.map → index228.js.map} +1 -1
  22. package/dist/{index235.js → index237.js} +1 -1
  23. package/dist/{index235.js.map → index237.js.map} +1 -1
  24. package/dist/index238.js +3 -18
  25. package/dist/index238.js.map +1 -1
  26. package/dist/index240.js +18 -9
  27. package/dist/index240.js.map +1 -1
  28. package/dist/index241.js +9 -4
  29. package/dist/index241.js.map +1 -1
  30. package/dist/index242.js +10 -170
  31. package/dist/index242.js.map +1 -1
  32. package/dist/index243.js +5 -11
  33. package/dist/index243.js.map +1 -1
  34. package/dist/index244.js +170 -6
  35. package/dist/index244.js.map +1 -1
  36. package/dist/index245.js +11 -6
  37. package/dist/index245.js.map +1 -1
  38. package/dist/index246.js +5 -37
  39. package/dist/index246.js.map +1 -1
  40. package/dist/index247.js +6 -2
  41. package/dist/index247.js.map +1 -1
  42. package/dist/index248.js +37 -7
  43. package/dist/index248.js.map +1 -1
  44. package/dist/index249.js +2 -327
  45. package/dist/index249.js.map +1 -1
  46. package/dist/index250.js +7 -49
  47. package/dist/index250.js.map +1 -1
  48. package/dist/index251.js +327 -2
  49. package/dist/index251.js.map +1 -1
  50. package/dist/index252.js +45 -71
  51. package/dist/index252.js.map +1 -1
  52. package/dist/index253.js +2 -93
  53. package/dist/index253.js.map +1 -1
  54. package/dist/index254.js +72 -48
  55. package/dist/index254.js.map +1 -1
  56. package/dist/index255.js +92 -7
  57. package/dist/index255.js.map +1 -1
  58. package/dist/index256.js +51 -4
  59. package/dist/index256.js.map +1 -1
  60. package/dist/index257.js +7 -51
  61. package/dist/index257.js.map +1 -1
  62. package/dist/index258.js +5 -2
  63. package/dist/index258.js.map +1 -1
  64. package/dist/index259.js +52 -2
  65. package/dist/index259.js.map +1 -1
  66. package/dist/index260.js +5 -0
  67. package/dist/index260.js.map +1 -0
  68. package/dist/index261.js +5 -0
  69. package/dist/index261.js.map +1 -0
  70. package/dist/index28.js +2 -2
  71. package/dist/index30.js +74 -75
  72. package/dist/index30.js.map +1 -1
  73. package/dist/index40.js +1 -1
  74. package/dist/index46.js +1 -1
  75. package/dist/index49.js +16 -14
  76. package/dist/index49.js.map +1 -1
  77. package/dist/index51.js +17 -17
  78. package/dist/index51.js.map +1 -1
  79. package/dist/index53.js +1 -1
  80. package/dist/index63.js +1 -1
  81. package/dist/index76.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/index236.js +0 -7
  84. package/dist/index236.js.map +0 -1
  85. package/dist/index239.js +0 -13
  86. package/dist/index239.js.map +0 -1
package/dist/index19.js CHANGED
@@ -1,32 +1,32 @@
1
- import B, { forwardRef as lt, useState as O, useRef as G, useEffect as I, useImperativeHandle as ft } from "react";
2
- import ut from "react-dom";
3
- import { getA11yNameAttributes as pt } from "./index78.js";
4
- import { useDismissOnFocusOut as dt } from "./index77.js";
5
- import { getFirstFocusableElement as A, getLastFocusableElement as mt, getFocusableElements as vt, FOCUSABLE_WITH_ROLES_SELECTOR as wt } from "./index71.js";
1
+ import H, { forwardRef as ue, useState as D, useRef as J, useEffect as B, useImperativeHandle as pe } from "react";
2
+ import de from "react-dom";
3
+ import { getA11yNameAttributes as me } from "./index78.js";
4
+ import { useDismissOnFocusOut as ve } from "./index77.js";
5
+ import { getFirstFocusableElement as O, getLastFocusableElement as we, getFocusableElements as ge, FOCUSABLE_WITH_ROLES_SELECTOR as he } from "./index71.js";
6
6
  import "./index72.js";
7
7
  function N() {
8
- return N = Object.assign ? Object.assign.bind() : function(y) {
9
- for (var E = 1; E < arguments.length; E++) {
10
- var d = arguments[E];
11
- for (var b in d) ({}).hasOwnProperty.call(d, b) && (y[b] = d[b]);
8
+ return N = Object.assign ? Object.assign.bind() : function(b) {
9
+ for (var y = 1; y < arguments.length; y++) {
10
+ var d = arguments[y];
11
+ for (var h in d) ({}).hasOwnProperty.call(d, h) && (b[h] = d[h]);
12
12
  }
13
- return y;
13
+ return b;
14
14
  }, N.apply(null, arguments);
15
15
  }
16
- const Pt = /* @__PURE__ */ lt(({
17
- className: y = "",
18
- automationId: E = "",
16
+ const Re = /* @__PURE__ */ ue(({
17
+ className: b = "",
18
+ automationId: y = "",
19
19
  position: d = "bottom-center",
20
- popoverContentAutomationId: b = "",
21
- contentWidth: H = "max",
22
- renderPopoverContents: T,
23
- renderPopoverSrcElement: J,
24
- onPopoverToggle: C,
20
+ popoverContentAutomationId: h = "",
21
+ contentWidth: R = "max",
22
+ renderPopoverContents: C,
23
+ renderPopoverSrcElement: Q,
24
+ onPopoverToggle: M,
25
25
  isPopoverOpen: z,
26
- disabled: k = !1,
26
+ disabled: E = !1,
27
27
  isWithPortal: f = !1,
28
- ariaLabel: Q,
29
- ariaLabelledBy: Y,
28
+ ariaLabel: Y,
29
+ ariaLabelledBy: Z,
30
30
  sourceRole: K = "button",
31
31
  popoverContentStyleProperty: _ = {
32
32
  zIndex: 1e3,
@@ -35,187 +35,186 @@ const Pt = /* @__PURE__ */ lt(({
35
35
  backgroundColor: "var(--color-white)"
36
36
  },
37
37
  disableClickToggle: w = !1,
38
- noBorder: Z = !1,
38
+ noBorder: ee = !1,
39
39
  disableAutoClose: m = !1,
40
- focusFirstOnOpen: tt = !1,
41
- ...et
42
- }, ot) => {
43
- const [i, u] = O(!1), [h, $] = O(d), [nt, U] = O(!1), l = G(null), a = G(null), rt = pt({
44
- ariaLabel: Q,
45
- ariaLabelledBy: Y,
40
+ focusFirstOnOpen: te = !1,
41
+ ...oe
42
+ }, ne) => {
43
+ const [i, u] = D(!1), [k, $] = D(d), [re, T] = D(!1), l = J(null), a = J(null), se = me({
44
+ ariaLabel: Y,
45
+ ariaLabelledBy: Z,
46
46
  ariaDescribedBy: void 0
47
47
  // Popover doesn't support describedBy yet
48
48
  }), {
49
- onBlurCapture: st
50
- } = dt({
49
+ onBlurCapture: ie
50
+ } = ve({
51
51
  disabled: !i || m || f,
52
52
  onFocusOut: () => u(!1),
53
53
  closeOnEscape: !1
54
- }), [x, P] = O({
54
+ }), [x, F] = D({
55
55
  top: 0,
56
56
  left: 0,
57
57
  srcWidth: 0
58
- }), D = (t = "bottom-center") => {
58
+ }), [ce, U] = D(!1), L = (e = "bottom-center") => {
59
59
  if (!l.current) return {
60
60
  top: 0,
61
61
  left: 0,
62
62
  srcWidth: 0
63
63
  };
64
- let o = t;
65
- const e = l.current.getBoundingClientRect(), s = window.innerWidth, c = window.innerHeight;
64
+ let o = e;
65
+ const t = l.current.getBoundingClientRect(), s = window.innerWidth, c = window.innerHeight;
66
66
  let n = 0, r = 0;
67
67
  switch (o) {
68
68
  case "bottom-left":
69
- n = e.bottom, r = e.left;
69
+ n = t.bottom, r = t.left;
70
70
  break;
71
71
  case "bottom-right":
72
- n = e.bottom, r = e.right - e.width * 0.5;
72
+ n = t.bottom, r = t.right - t.width * 0.5;
73
73
  break;
74
74
  case "bottom-center":
75
- n = e.bottom, r = e.left + e.width / 2;
75
+ n = t.bottom, r = t.left + t.width / 2;
76
76
  break;
77
77
  case "top-left":
78
- n = e.top - e.height * 1.9, r = e.left;
78
+ n = t.top - t.height * 1.9, r = t.left;
79
79
  break;
80
80
  case "top-right":
81
- n = e.top - e.height * 1.9, r = e.right - e.width * 0.5;
81
+ n = t.top - t.height * 1.9, r = t.right - t.width * 0.5;
82
82
  break;
83
83
  case "top-center":
84
- n = e.top - e.height * 1.9, r = e.left + e.width / 2;
84
+ n = t.top - t.height * 1.9, r = t.left + t.width / 2;
85
85
  break;
86
86
  default:
87
- n = e.bottom, r = e.left;
87
+ n = t.bottom, r = t.left;
88
88
  break;
89
89
  }
90
- const p = a.current?.getBoundingClientRect(), g = p?.width || 0, v = p?.height || 0;
90
+ const p = a.current?.getBoundingClientRect(), g = (R === "full" ? t.width : p?.width) || 0, v = p?.height || 0;
91
91
  if ((o === "bottom-center" || o === "top-center") && (r = r - g / 2), r + g > s && (r = Math.max(0, s - g)), r < 0 && (r = 0), n + v > c) {
92
- const R = e.top, at = c - e.bottom;
93
- R >= v || R > at ? (n = e.top - v, n < 0 && (n = 0)) : n = Math.max(0, c - v);
92
+ const P = t.top, fe = c - t.bottom;
93
+ P >= v || P > fe ? (n = t.top - v, n < 48 && (n = 48)) : n = Math.max(48, c - v);
94
94
  }
95
- return n < 0 && (n = e.bottom, n + v > c && (n = Math.max(0, c - v))), {
96
- top: n,
97
- left: r,
98
- srcWidth: e.width
95
+ return n < 48 && (n = t.bottom, n + v > c && (n = Math.max(48, c - v))), {
96
+ top: Math.round(n),
97
+ left: Math.round(r),
98
+ srcWidth: t.width
99
99
  };
100
100
  };
101
- I(() => {
102
- if (C && C(i), i && !f)
103
- return m || document.body.addEventListener("click", M, !0), it(), () => {
104
- m || document.body.removeEventListener("click", M, !0);
101
+ B(() => {
102
+ if (M && M(i), i && !f)
103
+ return m || document.body.addEventListener("click", V, !0), ae(), () => {
104
+ m || document.body.removeEventListener("click", V, !0);
105
105
  };
106
106
  if (i && f) {
107
- m ? window.addEventListener("scroll", X) : (document.body.addEventListener("click", S, !0), window.addEventListener("scroll", S)), window.addEventListener("resize", V);
108
- const t = setTimeout(() => {
109
- const e = D(h);
110
- L(), e && P(e);
111
- }, 0), o = setTimeout(() => {
112
- const e = D(h);
113
- e && P(e);
114
- }, 10);
115
- return () => {
116
- m ? window.removeEventListener("scroll", X) : (document.body.removeEventListener("click", S, !0), window.removeEventListener("scroll", S)), window.removeEventListener("resize", V), clearTimeout(t), clearTimeout(o);
107
+ m ? window.addEventListener("scroll", X) : (document.body.addEventListener("click", S, !0), window.addEventListener("scroll", S)), window.addEventListener("resize", q), A();
108
+ let e, o;
109
+ return e = requestAnimationFrame(() => {
110
+ o = requestAnimationFrame(() => {
111
+ const t = L(k);
112
+ t && F(t), U(!0);
113
+ });
114
+ }), () => {
115
+ m ? window.removeEventListener("scroll", X) : (document.body.removeEventListener("click", S, !0), window.removeEventListener("scroll", S)), window.removeEventListener("resize", q), cancelAnimationFrame(e), cancelAnimationFrame(o), U(!1);
117
116
  };
118
117
  }
119
118
  }, [i, f, m]);
120
- const L = () => {
119
+ const A = () => {
121
120
  if (!l.current) {
122
- U(!1);
121
+ T(!1);
123
122
  return;
124
123
  }
125
- const t = l.current.getBoundingClientRect(), o = window.innerHeight, e = window.innerWidth, s = t.top < o && t.bottom > 0 && t.left < e && t.right > 0;
126
- U(s);
124
+ const e = l.current.getBoundingClientRect(), o = window.innerHeight, t = window.innerWidth, s = e.top < o && e.bottom > 0 && e.left < t && e.right > 0;
125
+ T(s);
127
126
  };
128
- I(() => {
127
+ B(() => {
129
128
  u(z ?? !1);
130
- }, [z]), I(() => {
129
+ }, [z]), B(() => {
131
130
  i && setTimeout(() => {
132
- const t = A({
131
+ const e = O({
133
132
  container: a.current,
134
133
  includeRoles: !0
135
134
  });
136
- t && (tt || document.activeElement === l.current) && t.focus();
135
+ e && (te || document.activeElement === l.current) && e.focus();
137
136
  }, f ? 60 : 0);
138
137
  }, [i]);
139
- const it = () => {
138
+ const ae = () => {
140
139
  if (!a.current) return;
141
- const t = a.current.getBoundingClientRect(), o = window.innerHeight;
142
- t?.bottom > o ? $(d.includes("left") ? "top-left" : d.includes("right") ? "top-right" : "top-center") : t?.top < 0 && $(d.includes("left") ? "bottom-left" : d.includes("right") ? "bottom-right" : "bottom-center");
143
- }, M = (t) => {
140
+ const e = a.current.getBoundingClientRect(), o = window.innerHeight;
141
+ e?.bottom > o ? $(d.includes("left") ? "top-left" : d.includes("right") ? "top-right" : "top-center") : e?.top < 0 && $(d.includes("left") ? "bottom-left" : d.includes("right") ? "bottom-right" : "bottom-center");
142
+ }, V = (e) => {
144
143
  const o = l.current;
145
144
  if (!o) return;
146
- const e = t.target, s = o.contains(e), c = a.current?.contains(e), r = e.closest?.(".se-design-popover-wrapper"), p = r && r !== o, g = a.current?.contains(r);
145
+ const t = e.target, s = o.contains(t), c = a.current?.contains(t), r = t.closest?.(".se-design-popover-wrapper"), p = r && r !== o, g = a.current?.contains(r);
147
146
  m || (!s && !c || p && !g) && u(!1);
148
- }, S = (t) => {
149
- const o = l.current, e = a.current;
147
+ }, S = (e) => {
148
+ const o = l.current, t = a.current;
150
149
  if (!o) return;
151
- if (L(), t.type === "scroll" && i) {
152
- const R = D(h);
153
- R && P(R);
150
+ if (A(), e.type === "scroll" && i) {
151
+ const P = L(k);
152
+ P && F(P);
154
153
  }
155
- const s = t.target, c = o.contains(s), n = e?.contains(s), p = s.closest?.(".se-design-popover-wrapper"), g = p && p !== o, v = a.current?.contains(p);
154
+ const s = e.target, c = o.contains(s), n = t?.contains(s), p = s.closest?.(".se-design-popover-wrapper"), g = p && p !== o, v = a.current?.contains(p);
156
155
  m || (!c && !n || g && !v) && u(!1);
157
- }, V = () => {
156
+ }, q = () => {
158
157
  if (i && f && l.current) {
159
- L();
160
- const t = D(h);
161
- t && P(t);
158
+ A();
159
+ const e = L(k);
160
+ e && F(e);
162
161
  }
163
162
  }, X = () => {
164
163
  if (i && f && l.current) {
165
- L();
166
- const t = D(h);
167
- t && P(t);
164
+ A();
165
+ const e = L(k);
166
+ e && F(e);
168
167
  }
169
- }, F = (t = !1) => {
168
+ }, I = (e = !1) => {
170
169
  const o = i;
171
- u((e) => !e), !o && t && setTimeout(() => {
172
- if (t === "last") {
173
- const e = mt({
170
+ u((t) => !t), !o && e && setTimeout(() => {
171
+ if (e === "last") {
172
+ const t = we({
174
173
  container: a.current,
175
174
  includeRoles: !0
176
175
  });
177
- e && e.focus();
176
+ t && t.focus();
178
177
  } else {
179
- const e = A({
178
+ const t = O({
180
179
  container: a.current,
181
180
  includeRoles: !0
182
181
  });
183
- e && e.focus();
182
+ t && t.focus();
184
183
  }
185
184
  }, 50);
186
- }, j = (t, o) => {
185
+ }, j = (e, o) => {
187
186
  if (!o) return;
188
- const e = document.activeElement;
189
- if (e?.tagName === "INPUT" || e?.tagName === "TEXTAREA" || e?.tagName === "SELECT")
187
+ const t = document.activeElement;
188
+ if (t?.tagName === "INPUT" || t?.tagName === "TEXTAREA" || t?.tagName === "SELECT")
190
189
  return;
191
- const s = Array.from(o.querySelectorAll(wt)).filter((r) => {
190
+ const s = Array.from(o.querySelectorAll(he)).filter((r) => {
192
191
  const p = window.getComputedStyle(r);
193
192
  return !r.hasAttribute("disabled") && r.getAttribute("aria-disabled") !== "true" && p.display !== "none" && p.visibility !== "hidden" && (r.tabIndex >= 0 || r.hasAttribute("role"));
194
193
  });
195
194
  if (s.length === 0) return;
196
195
  const c = s.findIndex((r) => r === document.activeElement);
197
196
  let n = -1;
198
- t.key === "ArrowDown" ? (t.preventDefault(), t.stopPropagation(), n = c < s.length - 1 ? c + 1 : 0) : t.key === "ArrowUp" ? (t.preventDefault(), t.stopPropagation(), n = c > 0 ? c - 1 : s.length - 1) : t.key === "Home" ? (t.preventDefault(), t.stopPropagation(), n = 0) : t.key === "End" && (t.preventDefault(), t.stopPropagation(), n = s.length - 1), n >= 0 && s[n] ? s[n].focus() : c === -1 && s.length > 0 && s[0].focus();
199
- }, W = (t) => {
200
- if (t.key === "Escape")
201
- t.preventDefault(), t.stopPropagation(), u(!1), l.current?.focus();
202
- else if (t.key === "Tab") {
203
- if (u(!1), t.shiftKey)
204
- t.preventDefault(), l.current?.focus();
197
+ e.key === "ArrowDown" ? (e.preventDefault(), e.stopPropagation(), n = c < s.length - 1 ? c + 1 : 0) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), n = c > 0 ? c - 1 : s.length - 1) : e.key === "Home" ? (e.preventDefault(), e.stopPropagation(), n = 0) : e.key === "End" && (e.preventDefault(), e.stopPropagation(), n = s.length - 1), n >= 0 && s[n] ? s[n].focus() : c === -1 && s.length > 0 && s[0].focus();
198
+ }, W = (e) => {
199
+ if (e.key === "Escape")
200
+ e.preventDefault(), e.stopPropagation(), u(!1), l.current?.focus();
201
+ else if (e.key === "Tab") {
202
+ if (u(!1), e.shiftKey)
203
+ e.preventDefault(), l.current?.focus();
205
204
  else if (f) {
206
- t.preventDefault();
207
- const o = l.current, e = vt({
205
+ e.preventDefault();
206
+ const o = l.current, t = ge({
208
207
  container: document.body,
209
208
  filterHidden: !0
210
- }), s = o ? e.indexOf(o) : -1, c = e[s + 1];
209
+ }), s = o ? t.indexOf(o) : -1, c = t[s + 1];
211
210
  c ? c.focus() : o?.focus();
212
211
  }
213
- } else t.key === "ArrowDown" || t.key === "ArrowUp" || t.key === "Home" || t.key === "End" ? j(t, a.current) : (t.key === "Enter" || t.key === " ") && t.stopPropagation();
212
+ } else e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" ? j(e, a.current) : (e.key === "Enter" || e.key === " ") && e.stopPropagation();
214
213
  };
215
- ft(ot, () => ({
216
- togglePopover: F
214
+ pe(ne, () => ({
215
+ togglePopover: I
217
216
  }), []);
218
- const ct = {
217
+ const le = {
219
218
  "bottom-left": {
220
219
  left: "0",
221
220
  top: "100%"
@@ -242,86 +241,87 @@ const Pt = /* @__PURE__ */ lt(({
242
241
  transform: "translateX(-50%)",
243
242
  bottom: "100%"
244
243
  }
245
- }, q = Z ? "" : "shadow-md border rounded-md";
246
- return /* @__PURE__ */ B.createElement("div", N({
247
- className: "se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md" + (y.length > 0 ? ` ${y}` : "") + (i ? " open" : "") + (k ? " opacity-50 cursor-not-allowed pointer-events-none" : ""),
244
+ }, G = ee ? "" : "shadow-md border rounded-md";
245
+ return /* @__PURE__ */ H.createElement("div", N({
246
+ className: "se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md" + (b.length > 0 ? ` ${b}` : "") + (i ? " open" : "") + (E ? " opacity-50 cursor-not-allowed pointer-events-none" : ""),
248
247
  ref: l,
249
- onClick: (t) => {
250
- k || w || (t.stopPropagation(), F());
248
+ onClick: (e) => {
249
+ E || w || (e.stopPropagation(), I());
251
250
  },
252
- onKeyDown: (t) => {
253
- if (!(k || w))
254
- if (t.key === "Enter" || t.key === " ") {
255
- t.preventDefault(), t.stopPropagation();
251
+ onKeyDown: (e) => {
252
+ if (!(E || w))
253
+ if (e.key === "Enter" || e.key === " ") {
254
+ e.preventDefault(), e.stopPropagation();
256
255
  const o = i;
257
- F(), o || setTimeout(() => {
258
- const e = A({
256
+ I(), o || setTimeout(() => {
257
+ const t = O({
259
258
  container: a.current,
260
259
  includeRoles: !0
261
260
  });
262
- e && e.focus();
261
+ t && t.focus();
263
262
  }, f ? 60 : 0);
264
- } else if (t.key === "Escape" && i)
265
- t.preventDefault(), t.stopPropagation(), u(!1);
266
- else if ((t.key === "ArrowDown" || t.key === "ArrowUp") && i) {
263
+ } else if (e.key === "Escape" && i)
264
+ e.preventDefault(), e.stopPropagation(), u(!1);
265
+ else if ((e.key === "ArrowDown" || e.key === "ArrowUp") && i) {
267
266
  const o = a.current;
268
- o && j(t, o);
269
- } else t.key === "ArrowDown" && !i && (t.preventDefault(), t.stopPropagation(), u(!0), setTimeout(() => {
270
- const o = A({
267
+ o && j(e, o);
268
+ } else e.key === "ArrowDown" && !i && (e.preventDefault(), e.stopPropagation(), u(!0), setTimeout(() => {
269
+ const o = O({
271
270
  container: a.current,
272
271
  includeRoles: !0
273
272
  });
274
273
  o && o.focus();
275
274
  }, 0));
276
275
  },
277
- onBlurCapture: st,
278
- onBlur: (t) => {
276
+ onBlurCapture: ie,
277
+ onBlur: (e) => {
279
278
  if (!i || m || !f) return;
280
- const o = t.relatedTarget, e = !!(o && l.current?.contains(o)), s = !!(o && a.current?.contains(o));
281
- !e && !s && u(!1);
279
+ const o = e.relatedTarget, t = !!(o && l.current?.contains(o)), s = !!(o && a.current?.contains(o));
280
+ !t && !s && u(!1);
282
281
  },
283
282
  role: w ? "none" : K,
284
283
  "aria-expanded": w ? void 0 : i ? "true" : "false",
285
284
  "aria-haspopup": w ? void 0 : K === "combobox" ? "listbox" : "true",
286
- tabIndex: k || w ? -1 : 0,
287
- "aria-disabled": w ? void 0 : k ? "true" : "false"
288
- }, rt, {
289
- "data-automation-id": E
290
- }, et), J({
285
+ tabIndex: E || w ? -1 : 0,
286
+ "aria-disabled": w ? void 0 : E ? "true" : "false"
287
+ }, se, {
288
+ "data-automation-id": y
289
+ }, oe), Q({
291
290
  displayPopover: i,
292
- togglePopover: F
293
- }), i && !f && /* @__PURE__ */ B.createElement("div", {
294
- className: `popover-content absolute ${q} z-[1000] ${H == "full" ? "w-full" : "w-max"}`,
291
+ togglePopover: I
292
+ }), i && !f && /* @__PURE__ */ H.createElement("div", {
293
+ className: `popover-content absolute ${G} z-[1000] ${R == "full" ? "w-full" : "w-max"}`,
295
294
  style: {
296
295
  ..._,
297
- ...ct[h]
296
+ ...le[k]
298
297
  },
299
- onClick: (t) => t.stopPropagation(),
298
+ onClick: (e) => e.stopPropagation(),
300
299
  onKeyDown: W,
301
300
  ref: a,
302
- "data-automation-id": b
303
- }, T({
301
+ "data-automation-id": h
302
+ }, C({
304
303
  closePopoverCb: () => u(!1)
305
- })), f && i && nt && /* @__PURE__ */ ut.createPortal(/* @__PURE__ */ B.createElement("div", {
306
- className: `popover-content-with-portal z-[2002] ${q} ${H == "full" ? "" : "w-max"}`,
304
+ })), f && i && re && /* @__PURE__ */ de.createPortal(/* @__PURE__ */ H.createElement("div", {
305
+ className: `popover-content-with-portal z-[2002] ${G} ${R == "full" ? "" : "w-max"}`,
307
306
  style: {
308
307
  position: "fixed",
309
308
  top: x.top,
310
309
  left: x.left,
311
- ...H === "full" && x.srcWidth ? {
310
+ visibility: ce ? "visible" : "hidden",
311
+ ...R === "full" && x.srcWidth ? {
312
312
  width: `${x.srcWidth}px`
313
313
  } : {},
314
314
  ..._
315
315
  },
316
- onClick: (t) => t.stopPropagation(),
316
+ onClick: (e) => e.stopPropagation(),
317
317
  onKeyDown: W,
318
318
  ref: a,
319
- "data-automation-id": b
320
- }, T({
319
+ "data-automation-id": h
320
+ }, C({
321
321
  closePopoverCb: () => u(!1)
322
322
  })), document.body));
323
323
  });
324
324
  export {
325
- Pt as Popover
325
+ Re as Popover
326
326
  };
327
327
  //# sourceMappingURL=index19.js.map