mimir-ui-kit 1.38.43 → 1.38.44

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.
@@ -1,18 +1,18 @@
1
1
  import { jsx as de, jsxs as Ae, Fragment as nt } from "react/jsx-runtime";
2
2
  import { c as ve } from "../../index-DIxK0V-G.js";
3
- import E, { createContext as ae, useState as Z, useContext as ee, useRef as B, useEffect as se, useMemo as U, Fragment as pe, useReducer as rt, createRef as Ie, useId as be, memo as ot, useCallback as me } from "react";
3
+ import E, { createContext as ae, useState as X, useContext as ee, useRef as k, useEffect as ie, useMemo as j, Fragment as pe, useReducer as rt, createRef as Ie, useId as be, memo as ot, useCallback as me } from "react";
4
4
  import { Button as lt } from "../Button/Button.js";
5
- import { o as S, u as De, M as fe, W as V, y as z, O as oe, n as ie, m as at, e as ut, H as ue, s as Fe, p as it, a as Q, T as st, $ as ct, b as dt, D as Ce, I as pt, c as re } from "../../keyboard-CUMsrFX1.js";
5
+ import { o as S, u as He, M as fe, W as V, y as z, O as oe, n as se, m as at, e as ut, H as ue, s as Fe, p as st, a as Q, T as it, $ as ct, b as dt, D as Ce, I as pt, c as re } from "../../keyboard-CUMsrFX1.js";
6
6
  import { w as ft } from "../../use-active-press-BVQqDQ3V.js";
7
- import { n as $e, s as vt, l as He, e as mt, E as bt, R as ht, v as Pt, y as $t, x as yt, a as Et, b as gt, m as St, f as Tt, d as _t, t as wt } from "../../portal-D3A00sie.js";
7
+ import { n as $e, s as vt, l as De, e as mt, E as bt, R as ht, v as Pt, y as $t, x as yt, a as Et, b as gt, m as St, f as Tt, d as _t, t as wt } from "../../portal-D3A00sie.js";
8
8
  import { e as It } from "../../use-resolve-button-type-DhFdPxnv.js";
9
9
  import { T as he, s as Pe } from "../../hidden-Dn4lM6EL.js";
10
- import { R as Me, H as Oe, i as G, c as Ge, u as ye, s as Ft } from "../../open-closed-CkTbpRyi.js";
10
+ import { R as Oe, H as Me, i as K, c as Ge, u as ye, s as Ft } from "../../open-closed-CkTbpRyi.js";
11
11
  import { C as Ct } from "../../close-provider-CEutdhG8.js";
12
12
  import { r as Ke } from "../../bugs-diTMAGNw.js";
13
13
  import { b as xe, P as le, F as Y, A as Bt, h as kt, T as Be } from "../../focus-management-Dp2_vbQ3.js";
14
- import { f as Mt } from "../../use-is-mounted-D7cq4xsa.js";
15
- import '../../assets/Dropdown.css';function Ot({ defaultContainers: e = [], portals: t, mainTreeNode: o } = {}) {
14
+ import { f as Ot } from "../../use-is-mounted-D7cq4xsa.js";
15
+ import '../../assets/Dropdown.css';function Mt({ defaultContainers: e = [], portals: t, mainTreeNode: o } = {}) {
16
16
  let d = $e(o), v = S(() => {
17
17
  var b, m;
18
18
  let l = [];
@@ -25,11 +25,11 @@ import '../../assets/Dropdown.css';function Ot({ defaultContainers: e = [], port
25
25
  }
26
26
  let Ue = ae(null);
27
27
  function je({ children: e, node: t }) {
28
- let [o, d] = Z(null), v = Xe(t ?? o);
28
+ let [o, d] = X(null), v = Xe(t ?? o);
29
29
  return E.createElement(Ue.Provider, { value: v }, e, v === null && E.createElement(he, { features: Pe.Hidden, ref: (b) => {
30
30
  var m, l;
31
31
  if (b) {
32
- for (let r of (l = (m = De(b)) == null ? void 0 : m.querySelectorAll("html > *, body > *")) != null ? l : []) if (r !== document.body && r !== document.head && r instanceof HTMLElement && r != null && r.contains(b)) {
32
+ for (let r of (l = (m = He(b)) == null ? void 0 : m.querySelectorAll("html > *, body > *")) != null ? l : []) if (r !== document.body && r !== document.head && r instanceof HTMLElement && r != null && r.contains(b)) {
33
33
  d(r);
34
34
  break;
35
35
  }
@@ -42,7 +42,7 @@ function Xe(e = null) {
42
42
  }
43
43
  var J = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(J || {});
44
44
  function We() {
45
- let e = B(0);
45
+ let e = k(0);
46
46
  return vt(!0, "keydown", (t) => {
47
47
  t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
48
48
  }, !0), e;
@@ -70,99 +70,99 @@ function Se(e) {
70
70
  return "children" in e ? Se(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
71
71
  }
72
72
  function qe(e, t) {
73
- let o = Fe(e), d = B([]), v = Mt(), b = it(), m = S((c, a = oe.Hidden) => {
74
- let s = d.current.findIndex(({ el: u }) => u === c);
75
- s !== -1 && (Q(a, { [oe.Unmount]() {
76
- d.current.splice(s, 1);
73
+ let o = Fe(e), d = k([]), v = Ot(), b = st(), m = S((c, a = oe.Hidden) => {
74
+ let i = d.current.findIndex(({ el: u }) => u === c);
75
+ i !== -1 && (Q(a, { [oe.Unmount]() {
76
+ d.current.splice(i, 1);
77
77
  }, [oe.Hidden]() {
78
- d.current[s].state = "hidden";
78
+ d.current[i].state = "hidden";
79
79
  } }), b.microTask(() => {
80
80
  var u;
81
81
  !Se(d) && v.current && ((u = o.current) == null || u.call(o));
82
82
  }));
83
83
  }), l = S((c) => {
84
- let a = d.current.find(({ el: s }) => s === c);
84
+ let a = d.current.find(({ el: i }) => i === c);
85
85
  return a ? a.state !== "visible" && (a.state = "visible") : d.current.push({ el: c, state: "visible" }), () => m(c, oe.Unmount);
86
- }), r = B([]), h = B(Promise.resolve()), n = B({ enter: [], leave: [] }), y = S((c, a, s) => {
86
+ }), r = k([]), h = k(Promise.resolve()), n = k({ enter: [], leave: [] }), y = S((c, a, i) => {
87
87
  r.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([u]) => u !== c)), t == null || t.chains.current[a].push([c, new Promise((u) => {
88
88
  r.current.push(u);
89
89
  })]), t == null || t.chains.current[a].push([c, new Promise((u) => {
90
90
  Promise.all(n.current[a].map(([$, I]) => I)).then(() => u());
91
- })]), a === "enter" ? h.current = h.current.then(() => t == null ? void 0 : t.wait.current).then(() => s(a)) : s(a);
92
- }), P = S((c, a, s) => {
91
+ })]), a === "enter" ? h.current = h.current.then(() => t == null ? void 0 : t.wait.current).then(() => i(a)) : i(a);
92
+ }), P = S((c, a, i) => {
93
93
  Promise.all(n.current[a].splice(0).map(([u, $]) => $)).then(() => {
94
94
  var u;
95
95
  (u = r.current.shift()) == null || u();
96
- }).then(() => s(a));
96
+ }).then(() => i(a));
97
97
  });
98
- return U(() => ({ children: d, register: l, unregister: m, onStart: y, onStop: P, wait: h, chains: n }), [l, m, d, y, P, n, h]);
98
+ return j(() => ({ children: d, register: l, unregister: m, onStart: y, onStop: P, wait: h, chains: n }), [l, m, d, y, P, n, h]);
99
99
  }
100
100
  let Je = pe, Qe = fe.RenderStrategy;
101
101
  function Lt(e, t) {
102
102
  var o, d;
103
- let { transition: v = !0, beforeEnter: b, afterEnter: m, beforeLeave: l, afterLeave: r, enter: h, enterFrom: n, enterTo: y, entered: P, leave: c, leaveFrom: a, leaveTo: s, ...u } = e, [$, I] = Z(null), g = B(null), F = Ze(e), O = z(...F ? [g, t, I] : t === null ? [] : [t]), R = (o = u.unmount) == null || o ? oe.Unmount : oe.Hidden, { show: C, appear: k, initial: q } = Nt(), [M, x] = Z(C ? "visible" : "hidden"), j = Rt(), { register: L, unregister: A } = j;
104
- ie(() => L(g), [L, g]), ie(() => {
105
- if (R === oe.Hidden && g.current) {
106
- if (C && M !== "visible") {
107
- x("visible");
103
+ let { transition: v = !0, beforeEnter: b, afterEnter: m, beforeLeave: l, afterLeave: r, enter: h, enterFrom: n, enterTo: y, entered: P, leave: c, leaveFrom: a, leaveTo: i, ...u } = e, [$, I] = X(null), g = k(null), C = Ze(e), N = z(...C ? [g, t, I] : t === null ? [] : [t]), D = (o = u.unmount) == null || o ? oe.Unmount : oe.Hidden, { show: F, appear: B, initial: G } = Nt(), [O, M] = X(F ? "visible" : "hidden"), W = Rt(), { register: R, unregister: L } = W;
104
+ se(() => R(g), [R, g]), se(() => {
105
+ if (D === oe.Hidden && g.current) {
106
+ if (F && O !== "visible") {
107
+ M("visible");
108
108
  return;
109
109
  }
110
- return Q(M, { hidden: () => A(g), visible: () => L(g) });
110
+ return Q(O, { hidden: () => L(g), visible: () => R(g) });
111
111
  }
112
- }, [M, g, L, A, C, R]);
113
- let X = He();
114
- ie(() => {
115
- if (F && X && M === "visible" && g.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
116
- }, [g, M, X, F]);
117
- let te = q && !k, W = k && C && q, f = B(!1), i = qe(() => {
118
- f.current || (x("hidden"), A(g));
119
- }, j), p = S((H) => {
112
+ }, [O, g, R, L, F, D]);
113
+ let Z = De();
114
+ se(() => {
115
+ if (C && Z && O === "visible" && g.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
116
+ }, [g, O, Z, C]);
117
+ let te = G && !B, q = B && F && G, f = k(!1), s = qe(() => {
118
+ f.current || (M("hidden"), L(g));
119
+ }, W), p = S((H) => {
120
120
  f.current = !0;
121
121
  let ne = H ? "enter" : "leave";
122
- i.onStart(g, ne, (ce) => {
122
+ s.onStart(g, ne, (ce) => {
123
123
  ce === "enter" ? b == null || b() : ce === "leave" && (l == null || l());
124
124
  });
125
125
  }), T = S((H) => {
126
126
  let ne = H ? "enter" : "leave";
127
- f.current = !1, i.onStop(g, ne, (ce) => {
127
+ f.current = !1, s.onStop(g, ne, (ce) => {
128
128
  ce === "enter" ? m == null || m() : ce === "leave" && (r == null || r());
129
- }), ne === "leave" && !Se(i) && (x("hidden"), A(g));
129
+ }), ne === "leave" && !Se(s) && (M("hidden"), L(g));
130
130
  });
131
- se(() => {
132
- F && v || (p(C), T(C));
133
- }, [C, F, v]);
134
- let _ = !(!v || !F || !X || te), [, w] = Me(_, $, C, { start: p, end: T }), N = at({ ref: O, className: ((d = ut(u.className, W && h, W && n, w.enter && h, w.enter && w.closed && n, w.enter && !w.closed && y, w.leave && c, w.leave && !w.closed && a, w.leave && w.closed && s, !w.transition && C && P)) == null ? void 0 : d.trim()) || void 0, ...Oe(w) }), D = 0;
135
- return M === "visible" && (D |= G.Open), M === "hidden" && (D |= G.Closed), w.enter && (D |= G.Opening), w.leave && (D |= G.Closing), E.createElement(ge.Provider, { value: i }, E.createElement(Ge, { value: D }, ue({ ourProps: N, theirProps: u, defaultTag: Je, features: Qe, visible: M === "visible", name: "Transition.Child" })));
131
+ ie(() => {
132
+ C && v || (p(F), T(F));
133
+ }, [F, C, v]);
134
+ let _ = !(!v || !C || !Z || te), [, w] = Oe(_, $, F, { start: p, end: T }), x = at({ ref: N, className: ((d = ut(u.className, q && h, q && n, w.enter && h, w.enter && w.closed && n, w.enter && !w.closed && y, w.leave && c, w.leave && !w.closed && a, w.leave && w.closed && i, !w.transition && F && P)) == null ? void 0 : d.trim()) || void 0, ...Me(w) }), A = 0;
135
+ return O === "visible" && (A |= K.Open), O === "hidden" && (A |= K.Closed), w.enter && (A |= K.Opening), w.leave && (A |= K.Closing), E.createElement(ge.Provider, { value: s }, E.createElement(Ge, { value: A }, ue({ ourProps: x, theirProps: u, defaultTag: Je, features: Qe, visible: O === "visible", name: "Transition.Child" })));
136
136
  }
137
137
  function At(e, t) {
138
- let { show: o, appear: d = !1, unmount: v = !0, ...b } = e, m = B(null), l = Ze(e), r = z(...l ? [m, t] : t === null ? [] : [t]);
139
- He();
138
+ let { show: o, appear: d = !1, unmount: v = !0, ...b } = e, m = k(null), l = Ze(e), r = z(...l ? [m, t] : t === null ? [] : [t]);
139
+ De();
140
140
  let h = ye();
141
- if (o === void 0 && h !== null && (o = (h & G.Open) === G.Open), o === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
142
- let [n, y] = Z(o ? "visible" : "hidden"), P = qe(() => {
141
+ if (o === void 0 && h !== null && (o = (h & K.Open) === K.Open), o === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
142
+ let [n, y] = X(o ? "visible" : "hidden"), P = qe(() => {
143
143
  o || y("hidden");
144
- }), [c, a] = Z(!0), s = B([o]);
145
- ie(() => {
146
- c !== !1 && s.current[s.current.length - 1] !== o && (s.current.push(o), a(!1));
147
- }, [s, o]);
148
- let u = U(() => ({ show: o, appear: d, initial: c }), [o, d, c]);
149
- ie(() => {
144
+ }), [c, a] = X(!0), i = k([o]);
145
+ se(() => {
146
+ c !== !1 && i.current[i.current.length - 1] !== o && (i.current.push(o), a(!1));
147
+ }, [i, o]);
148
+ let u = j(() => ({ show: o, appear: d, initial: c }), [o, d, c]);
149
+ se(() => {
150
150
  o ? y("visible") : !Se(P) && m.current !== null && y("hidden");
151
151
  }, [o, P]);
152
152
  let $ = { unmount: v }, I = S(() => {
153
- var F;
154
- c && a(!1), (F = e.beforeEnter) == null || F.call(e);
153
+ var C;
154
+ c && a(!1), (C = e.beforeEnter) == null || C.call(e);
155
155
  }), g = S(() => {
156
- var F;
157
- c && a(!1), (F = e.beforeLeave) == null || F.call(e);
156
+ var C;
157
+ c && a(!1), (C = e.beforeLeave) == null || C.call(e);
158
158
  });
159
159
  return E.createElement(ge.Provider, { value: P }, E.createElement(Ee.Provider, { value: u }, ue({ ourProps: { ...$, as: pe, children: E.createElement(Ve, { ref: r, ...$, ...b, beforeEnter: I, beforeLeave: g }) }, theirProps: {}, defaultTag: pe, features: Qe, visible: n === "visible", name: "Transition" })));
160
160
  }
161
- function Dt(e, t) {
161
+ function Ht(e, t) {
162
162
  let o = ee(Ee) !== null, d = ye() !== null;
163
163
  return E.createElement(E.Fragment, null, !o && d ? E.createElement(ke, { ref: t, ...e }) : E.createElement(Ve, { ref: t, ...e }));
164
164
  }
165
- let ke = V(At), Ve = V(Lt), Ht = V(Dt), Gt = Object.assign(ke, { Child: Ht, Root: ke });
165
+ let ke = V(At), Ve = V(Lt), Dt = V(Ht), Gt = Object.assign(ke, { Child: Dt, Root: ke });
166
166
  var Kt = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Kt || {}), Ut = ((e) => (e[e.TogglePopover = 0] = "TogglePopover", e[e.ClosePopover = 1] = "ClosePopover", e[e.SetButton = 2] = "SetButton", e[e.SetButtonId = 3] = "SetButtonId", e[e.SetPanel = 4] = "SetPanel", e[e.SetPanelId = 5] = "SetPanelId", e))(Ut || {});
167
167
  let jt = { 0: (e) => ({ ...e, popoverState: Q(e.popoverState, { 0: 1, 1: 0 }), __demoMode: !1 }), 1(e) {
168
168
  return e.popoverState === 1 ? e : { ...e, popoverState: 1, __demoMode: !1 };
@@ -210,135 +210,135 @@ function Wt(e, t) {
210
210
  let Zt = "div";
211
211
  function qt(e, t) {
212
212
  var o;
213
- let { __demoMode: d = !1, ...v } = e, b = B(null), m = z(t, st((f) => {
213
+ let { __demoMode: d = !1, ...v } = e, b = k(null), m = z(t, it((f) => {
214
214
  b.current = f;
215
- })), l = B([]), r = rt(Wt, { __demoMode: d, popoverState: d ? 0 : 1, buttons: l, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: Ie(), afterPanelSentinel: Ie(), afterButtonSentinel: Ie() }), [{ popoverState: h, button: n, buttonId: y, panel: P, panelId: c, beforePanelSentinel: a, afterPanelSentinel: s, afterButtonSentinel: u }, $] = r, I = $e((o = b.current) != null ? o : n), g = U(() => {
215
+ })), l = k([]), r = rt(Wt, { __demoMode: d, popoverState: d ? 0 : 1, buttons: l, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: Ie(), afterPanelSentinel: Ie(), afterButtonSentinel: Ie() }), [{ popoverState: h, button: n, buttonId: y, panel: P, panelId: c, beforePanelSentinel: a, afterPanelSentinel: i, afterButtonSentinel: u }, $] = r, I = $e((o = b.current) != null ? o : n), g = j(() => {
216
216
  if (!n || !P) return !1;
217
- for (let N of document.querySelectorAll("body > *")) if (Number(N == null ? void 0 : N.contains(n)) ^ Number(N == null ? void 0 : N.contains(P))) return !0;
218
- let f = xe(), i = f.indexOf(n), p = (i + f.length - 1) % f.length, T = (i + 1) % f.length, _ = f[p], w = f[T];
217
+ for (let x of document.querySelectorAll("body > *")) if (Number(x == null ? void 0 : x.contains(n)) ^ Number(x == null ? void 0 : x.contains(P))) return !0;
218
+ let f = xe(), s = f.indexOf(n), p = (s + f.length - 1) % f.length, T = (s + 1) % f.length, _ = f[p], w = f[T];
219
219
  return !P.contains(_) && !P.contains(w);
220
- }, [n, P]), F = Fe(y), O = Fe(c), R = U(() => ({ buttonId: F, panelId: O, close: () => $({ type: 1 }) }), [F, O, $]), C = Ye(), k = C == null ? void 0 : C.registerPopover, q = S(() => {
220
+ }, [n, P]), C = Fe(y), N = Fe(c), D = j(() => ({ buttonId: C, panelId: N, close: () => $({ type: 1 }) }), [C, N, $]), F = Ye(), B = F == null ? void 0 : F.registerPopover, G = S(() => {
221
221
  var f;
222
- return (f = C == null ? void 0 : C.isFocusWithinPopoverGroup()) != null ? f : (I == null ? void 0 : I.activeElement) && ((n == null ? void 0 : n.contains(I.activeElement)) || (P == null ? void 0 : P.contains(I.activeElement)));
222
+ return (f = F == null ? void 0 : F.isFocusWithinPopoverGroup()) != null ? f : (I == null ? void 0 : I.activeElement) && ((n == null ? void 0 : n.contains(I.activeElement)) || (P == null ? void 0 : P.contains(I.activeElement)));
223
223
  });
224
- se(() => k == null ? void 0 : k(R), [k, R]);
225
- let [M, x] = mt(), j = Xe(n), L = Ot({ mainTreeNode: j, portals: M, defaultContainers: [n, P] });
224
+ ie(() => B == null ? void 0 : B(D), [B, D]);
225
+ let [O, M] = mt(), W = Xe(n), R = Mt({ mainTreeNode: W, portals: O, defaultContainers: [n, P] });
226
226
  bt(I == null ? void 0 : I.defaultView, "focus", (f) => {
227
- var i, p, T, _, w, N;
228
- f.target !== window && f.target instanceof HTMLElement && h === 0 && (q() || n && P && (L.contains(f.target) || (p = (i = a.current) == null ? void 0 : i.contains) != null && p.call(i, f.target) || (_ = (T = s.current) == null ? void 0 : T.contains) != null && _.call(T, f.target) || (N = (w = u.current) == null ? void 0 : w.contains) != null && N.call(w, f.target) || $({ type: 1 })));
229
- }, !0), ht(h === 0, L.resolveContainers, (f, i) => {
230
- $({ type: 1 }), Bt(i, kt.Loose) || (f.preventDefault(), n == null || n.focus());
227
+ var s, p, T, _, w, x;
228
+ f.target !== window && f.target instanceof HTMLElement && h === 0 && (G() || n && P && (R.contains(f.target) || (p = (s = a.current) == null ? void 0 : s.contains) != null && p.call(s, f.target) || (_ = (T = i.current) == null ? void 0 : T.contains) != null && _.call(T, f.target) || (x = (w = u.current) == null ? void 0 : w.contains) != null && x.call(w, f.target) || $({ type: 1 })));
229
+ }, !0), ht(h === 0, R.resolveContainers, (f, s) => {
230
+ $({ type: 1 }), Bt(s, kt.Loose) || (f.preventDefault(), n == null || n.focus());
231
231
  });
232
- let A = S((f) => {
232
+ let L = S((f) => {
233
233
  $({ type: 1 });
234
- let i = f ? f instanceof HTMLElement ? f : "current" in f && f.current instanceof HTMLElement ? f.current : n : n;
235
- i == null || i.focus();
236
- }), X = U(() => ({ close: A, isPortalled: g }), [A, g]), te = U(() => ({ open: h === 0, close: A }), [h, A]), W = { ref: m };
237
- return E.createElement(je, { node: j }, E.createElement(Pt, null, E.createElement(we.Provider, { value: null }, E.createElement(Ne.Provider, { value: r }, E.createElement(_e.Provider, { value: X }, E.createElement(Ct, { value: A }, E.createElement(Ge, { value: Q(h, { 0: G.Open, 1: G.Closed }) }, E.createElement(x, null, ue({ ourProps: W, theirProps: v, slot: te, defaultTag: Zt, name: "Popover" })))))))));
234
+ let s = f ? f instanceof HTMLElement ? f : "current" in f && f.current instanceof HTMLElement ? f.current : n : n;
235
+ s == null || s.focus();
236
+ }), Z = j(() => ({ close: L, isPortalled: g }), [L, g]), te = j(() => ({ open: h === 0, close: L }), [h, L]), q = { ref: m };
237
+ return E.createElement(je, { node: W }, E.createElement(Pt, null, E.createElement(we.Provider, { value: null }, E.createElement(Ne.Provider, { value: r }, E.createElement(_e.Provider, { value: Z }, E.createElement(Ct, { value: L }, E.createElement(Ge, { value: Q(h, { 0: K.Open, 1: K.Closed }) }, E.createElement(M, null, ue({ ourProps: q, theirProps: v, slot: te, defaultTag: Zt, name: "Popover" })))))))));
238
238
  }
239
239
  let Jt = "button";
240
240
  function Qt(e, t) {
241
- let o = be(), { id: d = `headlessui-popover-button-${o}`, disabled: v = !1, autoFocus: b = !1, ...m } = e, [l, r] = Te("Popover.Button"), { isPortalled: h } = Re("Popover.Button"), n = B(null), y = `headlessui-focus-sentinel-${be()}`, P = Ye(), c = P == null ? void 0 : P.closeOthers, a = Xt() !== null;
242
- se(() => {
241
+ let o = be(), { id: d = `headlessui-popover-button-${o}`, disabled: v = !1, autoFocus: b = !1, ...m } = e, [l, r] = Te("Popover.Button"), { isPortalled: h } = Re("Popover.Button"), n = k(null), y = `headlessui-focus-sentinel-${be()}`, P = Ye(), c = P == null ? void 0 : P.closeOthers, a = Xt() !== null;
242
+ ie(() => {
243
243
  if (!a) return r({ type: 3, buttonId: d }), () => {
244
244
  r({ type: 3, buttonId: null });
245
245
  };
246
246
  }, [a, d, r]);
247
- let [s] = Z(() => Symbol()), u = z(n, t, $t(), S((i) => {
247
+ let [i] = X(() => Symbol()), u = z(n, t, $t(), S((s) => {
248
248
  if (!a) {
249
- if (i) l.buttons.current.push(s);
249
+ if (s) l.buttons.current.push(i);
250
250
  else {
251
- let p = l.buttons.current.indexOf(s);
251
+ let p = l.buttons.current.indexOf(i);
252
252
  p !== -1 && l.buttons.current.splice(p, 1);
253
253
  }
254
- l.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), i && r({ type: 2, button: i });
254
+ l.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), s && r({ type: 2, button: s });
255
255
  }
256
- })), $ = z(n, t), I = $e(n), g = S((i) => {
256
+ })), $ = z(n, t), I = $e(n), g = S((s) => {
257
257
  var p, T, _;
258
258
  if (a) {
259
259
  if (l.popoverState === 1) return;
260
- switch (i.key) {
260
+ switch (s.key) {
261
261
  case re.Space:
262
262
  case re.Enter:
263
- i.preventDefault(), (T = (p = i.target).click) == null || T.call(p), r({ type: 1 }), (_ = l.button) == null || _.focus();
263
+ s.preventDefault(), (T = (p = s.target).click) == null || T.call(p), r({ type: 1 }), (_ = l.button) == null || _.focus();
264
264
  break;
265
265
  }
266
- } else switch (i.key) {
266
+ } else switch (s.key) {
267
267
  case re.Space:
268
268
  case re.Enter:
269
- i.preventDefault(), i.stopPropagation(), l.popoverState === 1 && (c == null || c(l.buttonId)), r({ type: 0 });
269
+ s.preventDefault(), s.stopPropagation(), l.popoverState === 1 && (c == null || c(l.buttonId)), r({ type: 0 });
270
270
  break;
271
271
  case re.Escape:
272
272
  if (l.popoverState !== 0) return c == null ? void 0 : c(l.buttonId);
273
273
  if (!n.current || I != null && I.activeElement && !n.current.contains(I.activeElement)) return;
274
- i.preventDefault(), i.stopPropagation(), r({ type: 1 });
274
+ s.preventDefault(), s.stopPropagation(), r({ type: 1 });
275
275
  break;
276
276
  }
277
- }), F = S((i) => {
278
- a || i.key === re.Space && i.preventDefault();
279
- }), O = S((i) => {
277
+ }), C = S((s) => {
278
+ a || s.key === re.Space && s.preventDefault();
279
+ }), N = S((s) => {
280
280
  var p, T;
281
- Ke(i.currentTarget) || v || (a ? (r({ type: 1 }), (p = l.button) == null || p.focus()) : (i.preventDefault(), i.stopPropagation(), l.popoverState === 1 && (c == null || c(l.buttonId)), r({ type: 0 }), (T = l.button) == null || T.focus()));
282
- }), R = S((i) => {
283
- i.preventDefault(), i.stopPropagation();
284
- }), { isFocusVisible: C, focusProps: k } = ct({ autoFocus: b }), { isHovered: q, hoverProps: M } = dt({ isDisabled: v }), { pressed: x, pressProps: j } = ft({ disabled: v }), L = l.popoverState === 0, A = U(() => ({ open: L, active: x || L, disabled: v, hover: q, focus: C, autofocus: b }), [L, q, C, x, v, b]), X = It(e, l.button), te = a ? Ce({ ref: $, type: X, onKeyDown: g, onClick: O, disabled: v || void 0, autoFocus: b }, k, M, j) : Ce({ ref: u, id: l.buttonId, type: X, "aria-expanded": l.popoverState === 0, "aria-controls": l.panel ? l.panelId : void 0, disabled: v || void 0, autoFocus: b, onKeyDown: g, onKeyUp: F, onClick: O, onMouseDown: R }, k, M, j), W = We(), f = S(() => {
285
- let i = l.panel;
286
- if (!i) return;
281
+ Ke(s.currentTarget) || v || (a ? (r({ type: 1 }), (p = l.button) == null || p.focus()) : (s.preventDefault(), s.stopPropagation(), l.popoverState === 1 && (c == null || c(l.buttonId)), r({ type: 0 }), (T = l.button) == null || T.focus()));
282
+ }), D = S((s) => {
283
+ s.preventDefault(), s.stopPropagation();
284
+ }), { isFocusVisible: F, focusProps: B } = ct({ autoFocus: b }), { isHovered: G, hoverProps: O } = dt({ isDisabled: v }), { pressed: M, pressProps: W } = ft({ disabled: v }), R = l.popoverState === 0, L = j(() => ({ open: R, active: M || R, disabled: v, hover: G, focus: F, autofocus: b }), [R, G, F, M, v, b]), Z = It(e, l.button), te = a ? Ce({ ref: $, type: Z, onKeyDown: g, onClick: N, disabled: v || void 0, autoFocus: b }, B, O, W) : Ce({ ref: u, id: l.buttonId, type: Z, "aria-expanded": l.popoverState === 0, "aria-controls": l.panel ? l.panelId : void 0, disabled: v || void 0, autoFocus: b, onKeyDown: g, onKeyUp: C, onClick: N, onMouseDown: D }, B, O, W), q = We(), f = S(() => {
285
+ let s = l.panel;
286
+ if (!s) return;
287
287
  function p() {
288
- Q(W.current, { [J.Forwards]: () => le(i, Y.First), [J.Backwards]: () => le(i, Y.Last) }) === Be.Error && le(xe().filter((T) => T.dataset.headlessuiFocusGuard !== "true"), Q(W.current, { [J.Forwards]: Y.Next, [J.Backwards]: Y.Previous }), { relativeTo: l.button });
288
+ Q(q.current, { [J.Forwards]: () => le(s, Y.First), [J.Backwards]: () => le(s, Y.Last) }) === Be.Error && le(xe().filter((T) => T.dataset.headlessuiFocusGuard !== "true"), Q(q.current, { [J.Forwards]: Y.Next, [J.Backwards]: Y.Previous }), { relativeTo: l.button });
289
289
  }
290
290
  p();
291
291
  });
292
- return E.createElement(E.Fragment, null, ue({ ourProps: te, theirProps: m, slot: A, defaultTag: Jt, name: "Popover.Button" }), L && !a && h && E.createElement(he, { id: y, ref: l.afterButtonSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: f }));
292
+ return E.createElement(E.Fragment, null, ue({ ourProps: te, theirProps: m, slot: L, defaultTag: Jt, name: "Popover.Button" }), R && !a && h && E.createElement(he, { id: y, ref: l.afterButtonSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: f }));
293
293
  }
294
294
  let Vt = "div", Yt = fe.RenderStrategy | fe.Static;
295
295
  function ze(e, t) {
296
- let o = be(), { id: d = `headlessui-popover-backdrop-${o}`, transition: v = !1, ...b } = e, [{ popoverState: m }, l] = Te("Popover.Backdrop"), [r, h] = Z(null), n = z(t, h), y = ye(), [P, c] = Me(v, r, y !== null ? (y & G.Open) === G.Open : m === 0), a = S(($) => {
296
+ let o = be(), { id: d = `headlessui-popover-backdrop-${o}`, transition: v = !1, ...b } = e, [{ popoverState: m }, l] = Te("Popover.Backdrop"), [r, h] = X(null), n = z(t, h), y = ye(), [P, c] = Oe(v, r, y !== null ? (y & K.Open) === K.Open : m === 0), a = S(($) => {
297
297
  if (Ke($.currentTarget)) return $.preventDefault();
298
298
  l({ type: 1 });
299
- }), s = U(() => ({ open: m === 0 }), [m]), u = { ref: n, id: d, "aria-hidden": !0, onClick: a, ...Oe(c) };
300
- return ue({ ourProps: u, theirProps: b, slot: s, defaultTag: Vt, features: Yt, visible: P, name: "Popover.Backdrop" });
299
+ }), i = j(() => ({ open: m === 0 }), [m]), u = { ref: n, id: d, "aria-hidden": !0, onClick: a, ...Me(c) };
300
+ return ue({ ourProps: u, theirProps: b, slot: i, defaultTag: Vt, features: Yt, visible: P, name: "Popover.Backdrop" });
301
301
  }
302
302
  let zt = "div", en = fe.RenderStrategy | fe.Static;
303
303
  function tn(e, t) {
304
- let o = be(), { id: d = `headlessui-popover-panel-${o}`, focus: v = !1, anchor: b, portal: m = !1, modal: l = !1, transition: r = !1, ...h } = e, [n, y] = Te("Popover.Panel"), { close: P, isPortalled: c } = Re("Popover.Panel"), a = `headlessui-focus-sentinel-before-${o}`, s = `headlessui-focus-sentinel-after-${o}`, u = B(null), $ = yt(b), [I, g] = Et($), F = gt();
304
+ let o = be(), { id: d = `headlessui-popover-panel-${o}`, focus: v = !1, anchor: b, portal: m = !1, modal: l = !1, transition: r = !1, ...h } = e, [n, y] = Te("Popover.Panel"), { close: P, isPortalled: c } = Re("Popover.Panel"), a = `headlessui-focus-sentinel-before-${o}`, i = `headlessui-focus-sentinel-after-${o}`, u = k(null), $ = yt(b), [I, g] = Et($), C = gt();
305
305
  $ && (m = !0);
306
- let [O, R] = Z(null), C = z(u, t, $ ? I : null, S((p) => y({ type: 4, panel: p })), R), k = $e(u), q = pt();
307
- ie(() => (y({ type: 5, panelId: d }), () => {
306
+ let [N, D] = X(null), F = z(u, t, $ ? I : null, S((p) => y({ type: 4, panel: p })), D), B = $e(u), G = pt();
307
+ se(() => (y({ type: 5, panelId: d }), () => {
308
308
  y({ type: 5, panelId: null });
309
309
  }), [d, y]);
310
- let M = ye(), [x, j] = Me(r, O, M !== null ? (M & G.Open) === G.Open : n.popoverState === 0);
311
- St(x, n.button, () => {
310
+ let O = ye(), [M, W] = Oe(r, N, O !== null ? (O & K.Open) === K.Open : n.popoverState === 0);
311
+ St(M, n.button, () => {
312
312
  y({ type: 1 });
313
313
  });
314
- let L = n.__demoMode ? !1 : l && x;
315
- Tt(L, k);
316
- let A = S((p) => {
314
+ let R = n.__demoMode ? !1 : l && M;
315
+ Tt(R, B);
316
+ let L = S((p) => {
317
317
  var T;
318
318
  switch (p.key) {
319
319
  case re.Escape:
320
- if (n.popoverState !== 0 || !u.current || k != null && k.activeElement && !u.current.contains(k.activeElement)) return;
320
+ if (n.popoverState !== 0 || !u.current || B != null && B.activeElement && !u.current.contains(B.activeElement)) return;
321
321
  p.preventDefault(), p.stopPropagation(), y({ type: 1 }), (T = n.button) == null || T.focus();
322
322
  break;
323
323
  }
324
324
  });
325
- se(() => {
325
+ ie(() => {
326
326
  var p;
327
327
  e.static || n.popoverState === 1 && ((p = e.unmount) == null || p) && y({ type: 4, panel: null });
328
- }, [n.popoverState, e.unmount, e.static, y]), se(() => {
328
+ }, [n.popoverState, e.unmount, e.static, y]), ie(() => {
329
329
  if (n.__demoMode || !v || n.popoverState !== 0 || !u.current) return;
330
- let p = k == null ? void 0 : k.activeElement;
330
+ let p = B == null ? void 0 : B.activeElement;
331
331
  u.current.contains(p) || le(u.current, Y.First);
332
332
  }, [n.__demoMode, v, u.current, n.popoverState]);
333
- let X = U(() => ({ open: n.popoverState === 0, close: P }), [n.popoverState, P]), te = Ce($ ? F() : {}, { ref: C, id: d, onKeyDown: A, onBlur: v && n.popoverState === 0 ? (p) => {
334
- var T, _, w, N, D;
333
+ let Z = j(() => ({ open: n.popoverState === 0, close: P }), [n.popoverState, P]), te = Ce($ ? C() : {}, { ref: F, id: d, onKeyDown: L, onBlur: v && n.popoverState === 0 ? (p) => {
334
+ var T, _, w, x, A;
335
335
  let H = p.relatedTarget;
336
- H && u.current && ((T = u.current) != null && T.contains(H) || (y({ type: 1 }), ((w = (_ = n.beforePanelSentinel.current) == null ? void 0 : _.contains) != null && w.call(_, H) || (D = (N = n.afterPanelSentinel.current) == null ? void 0 : N.contains) != null && D.call(N, H)) && H.focus({ preventScroll: !0 })));
337
- } : void 0, tabIndex: -1, style: { ...h.style, ...g, "--button-width": _t(n.button, !0).width }, ...Oe(j) }), W = We(), f = S(() => {
336
+ H && u.current && ((T = u.current) != null && T.contains(H) || (y({ type: 1 }), ((w = (_ = n.beforePanelSentinel.current) == null ? void 0 : _.contains) != null && w.call(_, H) || (A = (x = n.afterPanelSentinel.current) == null ? void 0 : x.contains) != null && A.call(x, H)) && H.focus({ preventScroll: !0 })));
337
+ } : void 0, tabIndex: -1, style: { ...h.style, ...g, "--button-width": _t(n.button, !0).width }, ...Me(W) }), q = We(), f = S(() => {
338
338
  let p = u.current;
339
339
  if (!p) return;
340
340
  function T() {
341
- Q(W.current, { [J.Forwards]: () => {
341
+ Q(q.current, { [J.Forwards]: () => {
342
342
  var _;
343
343
  le(p, Y.First) === Be.Error && ((_ = n.afterPanelSentinel.current) == null || _.focus());
344
344
  }, [J.Backwards]: () => {
@@ -347,18 +347,18 @@ function tn(e, t) {
347
347
  } });
348
348
  }
349
349
  T();
350
- }), i = S(() => {
350
+ }), s = S(() => {
351
351
  let p = u.current;
352
352
  if (!p) return;
353
353
  function T() {
354
- Q(W.current, { [J.Forwards]: () => {
354
+ Q(q.current, { [J.Forwards]: () => {
355
355
  if (!n.button) return;
356
- let _ = xe(), w = _.indexOf(n.button), N = _.slice(0, w + 1), D = [..._.slice(w + 1), ...N];
357
- for (let H of D.slice()) if (H.dataset.headlessuiFocusGuard === "true" || O != null && O.contains(H)) {
358
- let ne = D.indexOf(H);
359
- ne !== -1 && D.splice(ne, 1);
356
+ let _ = xe(), w = _.indexOf(n.button), x = _.slice(0, w + 1), A = [..._.slice(w + 1), ...x];
357
+ for (let H of A.slice()) if (H.dataset.headlessuiFocusGuard === "true" || N != null && N.contains(H)) {
358
+ let ne = A.indexOf(H);
359
+ ne !== -1 && A.splice(ne, 1);
360
360
  }
361
- le(D, Y.First, { sorted: !1 });
361
+ le(A, Y.First, { sorted: !1 });
362
362
  }, [J.Backwards]: () => {
363
363
  var _;
364
364
  le(p, Y.Previous) === Be.Error && ((_ = n.button) == null || _.focus());
@@ -366,35 +366,35 @@ function tn(e, t) {
366
366
  }
367
367
  T();
368
368
  });
369
- return E.createElement(Ft, null, E.createElement(we.Provider, { value: d }, E.createElement(_e.Provider, { value: { close: P, isPortalled: c } }, E.createElement(wt, { enabled: m ? e.static || x : !1 }, x && c && E.createElement(he, { id: a, ref: n.beforePanelSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: f }), ue({ mergeRefs: q, ourProps: te, theirProps: h, slot: X, defaultTag: zt, features: en, visible: x, name: "Popover.Panel" }), x && c && E.createElement(he, { id: s, ref: n.afterPanelSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: i })))));
369
+ return E.createElement(Ft, null, E.createElement(we.Provider, { value: d }, E.createElement(_e.Provider, { value: { close: P, isPortalled: c } }, E.createElement(wt, { enabled: m ? e.static || M : !1 }, M && c && E.createElement(he, { id: a, ref: n.beforePanelSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: f }), ue({ mergeRefs: G, ourProps: te, theirProps: h, slot: Z, defaultTag: zt, features: en, visible: M, name: "Popover.Panel" }), M && c && E.createElement(he, { id: i, ref: n.afterPanelSentinel, features: Pe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: s })))));
370
370
  }
371
371
  let nn = "div";
372
372
  function rn(e, t) {
373
- let o = B(null), d = z(o, t), [v, b] = Z([]), m = S((a) => {
374
- b((s) => {
375
- let u = s.indexOf(a);
373
+ let o = k(null), d = z(o, t), [v, b] = X([]), m = S((a) => {
374
+ b((i) => {
375
+ let u = i.indexOf(a);
376
376
  if (u !== -1) {
377
- let $ = s.slice();
377
+ let $ = i.slice();
378
378
  return $.splice(u, 1), $;
379
379
  }
380
- return s;
380
+ return i;
381
381
  });
382
- }), l = S((a) => (b((s) => [...s, a]), () => m(a))), r = S(() => {
382
+ }), l = S((a) => (b((i) => [...i, a]), () => m(a))), r = S(() => {
383
383
  var a;
384
- let s = De(o);
385
- if (!s) return !1;
386
- let u = s.activeElement;
384
+ let i = He(o);
385
+ if (!i) return !1;
386
+ let u = i.activeElement;
387
387
  return (a = o.current) != null && a.contains(u) ? !0 : v.some(($) => {
388
388
  var I, g;
389
- return ((I = s.getElementById($.buttonId.current)) == null ? void 0 : I.contains(u)) || ((g = s.getElementById($.panelId.current)) == null ? void 0 : g.contains(u));
389
+ return ((I = i.getElementById($.buttonId.current)) == null ? void 0 : I.contains(u)) || ((g = i.getElementById($.panelId.current)) == null ? void 0 : g.contains(u));
390
390
  });
391
391
  }), h = S((a) => {
392
- for (let s of v) s.buttonId.current !== a && s.close();
393
- }), n = U(() => ({ registerPopover: l, unregisterPopover: m, isFocusWithinPopoverGroup: r, closeOthers: h }), [l, m, r, h]), y = U(() => ({}), []), P = e, c = { ref: d };
392
+ for (let i of v) i.buttonId.current !== a && i.close();
393
+ }), n = j(() => ({ registerPopover: l, unregisterPopover: m, isFocusWithinPopoverGroup: r, closeOthers: h }), [l, m, r, h]), y = j(() => ({}), []), P = e, c = { ref: d };
394
394
  return E.createElement(je, null, E.createElement(Le.Provider, { value: n }, ue({ ourProps: c, theirProps: P, slot: y, defaultTag: nn, name: "Popover.Group" })));
395
395
  }
396
396
  let on = V(qt), et = V(Qt), ln = V(ze), an = V(ze), tt = V(tn), un = V(rn), sn = Object.assign(on, { Button: et, Backdrop: an, Overlay: ln, Panel: tt, Group: un });
397
- const cn = "_menu_1o2uo_3", dn = "_enter_1o2uo_34", pn = "_leave_1o2uo_48", K = {
397
+ const cn = "_menu_1o2uo_3", dn = "_enter_1o2uo_34", pn = "_leave_1o2uo_48", U = {
398
398
  menu: cn,
399
399
  "menu-button": "_menu-button_1o2uo_6",
400
400
  "menu-items": "_menu-items_1o2uo_11",
@@ -421,23 +421,23 @@ const cn = "_menu_1o2uo_3", dn = "_enter_1o2uo_34", pn = "_leave_1o2uo_48", K =
421
421
  isOpen: n = !1,
422
422
  autoCloseTimeout: y = 0
423
423
  }) => {
424
- const [P, c] = Z(n), a = B(null), s = B(null), u = B(null), $ = me(() => {
425
- a.current && clearTimeout(a.current);
426
- }, []), I = me(() => {
427
- y > 0 && (a.current = setTimeout(() => {
428
- c(!1);
424
+ const [P, c] = X(n), [a, i] = X(!1), u = k(null), $ = k(null), I = k(null), g = me(() => {
425
+ u.current && clearTimeout(u.current);
426
+ }, []), C = me(() => {
427
+ y > 0 && !a && (u.current = setTimeout(() => {
428
+ c(!1), i(!0);
429
429
  }, y));
430
- }, [y]);
431
- se(() => (P ? I() : $(), () => {
432
- $();
433
- }), [P, I, $]);
434
- const g = me(() => {
430
+ }, [y, a]);
431
+ ie(() => (P ? C() : g(), () => {
432
+ g();
433
+ }), [P, C, g]);
434
+ const N = me(() => {
435
435
  h && c(!0);
436
- }, [h]), F = me(
437
- (O) => {
436
+ }, [h]), D = me(
437
+ (F) => {
438
438
  if (h) {
439
- const R = O.relatedTarget;
440
- s.current && !s.current.contains(R) && u.current && !u.current.contains(R) && c(!1);
439
+ const B = F.relatedTarget;
440
+ $.current && !$.current.contains(B) && I.current && !I.current.contains(B) && c(!1);
441
441
  }
442
442
  },
443
443
  [h]
@@ -446,61 +446,61 @@ const cn = "_menu_1o2uo_3", dn = "_enter_1o2uo_34", pn = "_leave_1o2uo_48", K =
446
446
  sn,
447
447
  {
448
448
  as: "div",
449
- className: ve(K.menu, d),
449
+ className: ve(U.menu, d),
450
450
  ...o,
451
- children: ({ open: O, close: R }) => {
452
- const C = () => {
453
- R(), c(!1);
451
+ children: ({ open: F, close: B }) => {
452
+ const G = () => {
453
+ B(), c(!1);
454
454
  };
455
455
  return /* @__PURE__ */ Ae(nt, { children: [
456
456
  /* @__PURE__ */ de(
457
457
  et,
458
458
  {
459
- ref: s,
460
- onMouseEnter: g,
461
- onMouseLeave: F,
462
- className: ve(K["menu-button"], v),
459
+ ref: $,
460
+ onMouseEnter: N,
461
+ onMouseLeave: D,
462
+ className: ve(U["menu-button"], v),
463
463
  children: l
464
464
  }
465
465
  ),
466
466
  /* @__PURE__ */ de(
467
467
  Gt,
468
468
  {
469
- show: P || O,
469
+ show: P || F,
470
470
  as: pe,
471
- enter: K.enter,
472
- enterFrom: K["enter-from"],
473
- enterTo: K["enter-to"],
474
- leave: K.leave,
475
- leaveFrom: K["leave-from"],
476
- leaveTo: K["leave-to"],
471
+ enter: U.enter,
472
+ enterFrom: U["enter-from"],
473
+ enterTo: U["enter-to"],
474
+ leave: U.leave,
475
+ leaveFrom: U["leave-from"],
476
+ leaveTo: U["leave-to"],
477
477
  children: /* @__PURE__ */ Ae(
478
478
  tt,
479
479
  {
480
- ref: u,
480
+ ref: I,
481
481
  anchor: t,
482
- onMouseEnter: g,
483
- onMouseLeave: F,
484
- className: ve(K["menu-items"], b),
482
+ onMouseEnter: N,
483
+ onMouseLeave: D,
484
+ className: ve(U["menu-items"], b),
485
485
  children: [
486
486
  r && /* @__PURE__ */ de(
487
487
  lt,
488
488
  {
489
489
  isIconButton: !0,
490
490
  iconName: "Close16px",
491
- onClick: C,
491
+ onClick: G,
492
492
  clear: !0,
493
- className: K["close-button"]
493
+ className: U["close-button"]
494
494
  }
495
495
  ),
496
496
  /* @__PURE__ */ de(
497
497
  "div",
498
498
  {
499
499
  className: ve(
500
- K["menu-items-container"],
500
+ U["menu-items-container"],
501
501
  m
502
502
  ),
503
- children: typeof e == "function" ? e({ close: C }) : e
503
+ children: typeof e == "function" ? e({ close: G }) : e
504
504
  }
505
505
  )
506
506
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.38.43",
4
+ "version": "1.38.44",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {