asterui 0.12.59 → 0.12.61

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,162 +1,163 @@
1
- import { jsx as i, jsxs as j, Fragment as me } from "react/jsx-runtime";
2
- import k, { forwardRef as be, useId as V, useState as $, useRef as R, useImperativeHandle as we, useCallback as S, useEffect as L, createContext as he, useContext as ge } from "react";
3
- const De = "dropdown", ye = "dropdown-top", Ie = "dropdown-bottom", xe = "dropdown-left", ke = "dropdown-right", Ce = "dropdown-center", ve = "dropdown-end", Ee = "dropdown-hover", Me = "dropdown-open", Ae = "dropdown-content", J = "menu", Q = he(void 0);
1
+ import { jsx as d, jsxs as j, Fragment as ge } from "react/jsx-runtime";
2
+ import x, { forwardRef as he, useId as V, useState as $, useRef as N, useImperativeHandle as De, useCallback as K, useEffect as L, createContext as ye, useContext as Ie } from "react";
3
+ import { useConfig as xe } from "../providers/ConfigProvider.js";
4
+ const Ce = "dropdown", ke = "dropdown-top", ve = "dropdown-bottom", Ee = "dropdown-left", Me = "dropdown-right", Ae = "dropdown-center", Te = "dropdown-end", Re = "dropdown-hover", Ne = "dropdown-open", Se = "dropdown-content", J = "menu", Q = ye(void 0);
4
5
  function z() {
5
- const u = ge(Q);
6
- if (!u)
6
+ const i = Ie(Q);
7
+ if (!i)
7
8
  throw new Error("Dropdown compound components must be used within Dropdown");
8
- return u;
9
+ return i;
9
10
  }
10
- const Te = be(function({
11
+ const Ke = he(function({
11
12
  children: l,
12
13
  items: f,
13
- trigger: p = ["click"],
14
+ trigger: u = ["click"],
14
15
  position: m = "bottom",
15
16
  align: o = "start",
16
17
  open: s,
17
18
  onOpenChange: r,
18
- disabled: c = !1,
19
+ disabled: h,
19
20
  arrow: b = !1,
20
21
  mouseEnterDelay: w = 0.15,
21
22
  mouseLeaveDelay: D = 0.1,
22
- getPopupContainer: h,
23
+ getPopupContainer: g,
23
24
  destroyOnHidden: t = !1,
24
- popupRender: C,
25
+ popupRender: k,
25
26
  "data-testid": y,
26
- className: K = "",
27
+ className: P = "",
27
28
  ...O
28
29
  }, a) {
29
- const e = V(), g = V(), [I, v] = $(!1), [P, U] = $(-1), [ee, ne] = $(0), [te, _] = $(!t), G = R(/* @__PURE__ */ new Map()), F = R(null), E = R(null), A = p;
30
- we(a, () => F.current, []);
31
- const re = (n) => y ? `${y}-${n}` : void 0, q = s !== void 0, T = q ? s : I, x = S((n, M = "trigger") => {
32
- c || (q || v(n), n && _(!0), r?.(n, { source: M }));
33
- }, [c, q, r]), oe = S(() => {
34
- x(!1, "menu"), U(-1), document.getElementById(g)?.focus();
35
- }, [x, g]), se = S((n, M, d) => {
36
- M ? G.current.set(n, { ref: M, disabled: d }) : G.current.delete(n);
30
+ const { componentDisabled: e, getPopupContainer: C } = xe(), p = h ?? e ?? !1, v = V(), A = V(), [ee, ne] = $(!1), [te, U] = $(-1), [re, oe] = $(0), [se, W] = $(!t), _ = N(/* @__PURE__ */ new Map()), F = N(null), E = N(null), T = u;
31
+ De(a, () => F.current, []);
32
+ const ae = (n) => y ? `${y}-${n}` : void 0, q = s !== void 0, R = q ? s : ee, I = K((n, M = "trigger") => {
33
+ p || (q || ne(n), n && W(!0), r?.(n, { source: M }));
34
+ }, [p, q, r]), le = K(() => {
35
+ I(!1, "menu"), U(-1), document.getElementById(A)?.focus();
36
+ }, [I, A]), ce = K((n, M, c) => {
37
+ M ? _.current.set(n, { ref: M, disabled: c }) : _.current.delete(n);
37
38
  }, []);
38
39
  L(() => {
39
- if (t && !T) {
40
- const n = setTimeout(() => _(!1), 300);
40
+ if (t && !R) {
41
+ const n = setTimeout(() => W(!1), 300);
41
42
  return () => clearTimeout(n);
42
43
  }
43
- }, [T, t]), L(() => {
44
+ }, [R, t]), L(() => {
44
45
  const n = (M) => {
45
- F.current && !F.current.contains(M.target) && (x(!1, "trigger"), U(-1));
46
+ F.current && !F.current.contains(M.target) && (I(!1, "trigger"), U(-1));
46
47
  };
47
- if (T)
48
+ if (R)
48
49
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
49
- }, [T, x]);
50
- const ae = S(() => {
51
- A.includes("hover") && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
52
- x(!0, "trigger");
50
+ }, [R, I]);
51
+ const de = K(() => {
52
+ T.includes("hover") && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
53
+ I(!0, "trigger");
53
54
  }, w * 1e3));
54
- }, [A, w, x]), le = S(() => {
55
- A.includes("hover") && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
56
- x(!1, "trigger"), U(-1);
55
+ }, [T, w, I]), ie = K(() => {
56
+ T.includes("hover") && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
57
+ I(!1, "trigger"), U(-1);
57
58
  }, D * 1e3));
58
- }, [A, D, x]), ce = S((n) => {
59
- A.includes("contextMenu") && (n.preventDefault(), x(!0, "trigger"));
60
- }, [A, x]);
59
+ }, [T, D, I]), ue = K((n) => {
60
+ T.includes("contextMenu") && (n.preventDefault(), I(!0, "trigger"));
61
+ }, [T, I]);
61
62
  L(() => () => {
62
63
  E.current && clearTimeout(E.current);
63
64
  }, []);
64
- const de = {
65
- top: ye,
66
- bottom: Ie,
67
- left: xe,
68
- right: ke
69
- }, ie = {
65
+ const pe = {
66
+ top: ke,
67
+ bottom: ve,
68
+ left: Ee,
69
+ right: Me
70
+ }, fe = {
70
71
  start: "",
71
- center: Ce,
72
- end: ve
73
- }, ue = typeof b == "boolean" ? b : !!b, pe = [
74
- De,
75
- de[m],
76
- ie[o],
77
- A.includes("hover") && Ee,
78
- T && Me,
79
- K
80
- ].filter(Boolean).join(" "), H = f ? (te || !t) && /* @__PURE__ */ i(Y, { children: f ? f.map((n, M) => {
72
+ center: Ae,
73
+ end: Te
74
+ }, me = typeof b == "boolean" ? b : !!b, be = [
75
+ Ce,
76
+ pe[m],
77
+ fe[o],
78
+ T.includes("hover") && Re,
79
+ R && Ne,
80
+ P
81
+ ].filter(Boolean).join(" "), H = f ? (se || !t) && /* @__PURE__ */ d(Y, { children: f ? f.map((n, M) => {
81
82
  if ("type" in n && n.type === "divider")
82
- return /* @__PURE__ */ i(Z, {}, n.key || `divider-${M}`);
83
- const d = n;
84
- return d.children && d.children.length > 0 ? /* @__PURE__ */ i(
85
- W,
83
+ return /* @__PURE__ */ d(Z, {}, n.key || `divider-${M}`);
84
+ const c = n;
85
+ return c.children && c.children.length > 0 ? /* @__PURE__ */ d(
86
+ G,
86
87
  {
87
- title: d.label,
88
- icon: d.icon,
89
- disabled: d.disabled,
90
- children: d.children.map((N) => /* @__PURE__ */ i(
88
+ title: c.label,
89
+ icon: c.icon,
90
+ disabled: c.disabled,
91
+ children: c.children.map((S) => /* @__PURE__ */ d(
91
92
  B,
92
93
  {
93
- icon: N.icon,
94
- disabled: N.disabled,
95
- danger: N.danger,
96
- onClick: N.onClick,
97
- children: N.label
94
+ icon: S.icon,
95
+ disabled: S.disabled,
96
+ danger: S.danger,
97
+ onClick: S.onClick,
98
+ children: S.label
98
99
  },
99
- N.key
100
+ S.key
100
101
  ))
101
102
  },
102
- d.key
103
- ) : /* @__PURE__ */ i(
103
+ c.key
104
+ ) : /* @__PURE__ */ d(
104
105
  B,
105
106
  {
106
- icon: d.icon,
107
- disabled: d.disabled,
108
- danger: d.danger,
109
- onClick: d.onClick,
110
- children: d.label
107
+ icon: c.icon,
108
+ disabled: c.disabled,
109
+ danger: c.danger,
110
+ onClick: c.onClick,
111
+ children: c.label
111
112
  },
112
- d.key
113
+ c.key
113
114
  );
114
- }) : null }) : null, fe = f ? /* @__PURE__ */ j(me, { children: [
115
- k.Children.toArray(l).find(
116
- (n) => k.isValidElement(n) && n.type === X
115
+ }) : null }) : null, we = f ? /* @__PURE__ */ j(ge, { children: [
116
+ x.Children.toArray(l).find(
117
+ (n) => x.isValidElement(n) && n.type === X
117
118
  ),
118
- C ? C(H) : H
119
+ k ? k(H) : H
119
120
  ] }) : l;
120
- return /* @__PURE__ */ i(
121
+ return /* @__PURE__ */ d(
121
122
  Q.Provider,
122
123
  {
123
124
  value: {
124
125
  position: m,
125
126
  align: o,
126
- menuId: e,
127
- triggerId: g,
128
- isOpen: T,
129
- setIsOpen: x,
130
- focusedIndex: P,
127
+ menuId: v,
128
+ triggerId: A,
129
+ isOpen: R,
130
+ setIsOpen: I,
131
+ focusedIndex: te,
131
132
  setFocusedIndex: U,
132
- registerItem: se,
133
- itemCount: ee,
134
- setItemCount: ne,
135
- disabled: c,
136
- arrow: ue,
137
- closeDropdown: oe,
138
- getTestId: re
133
+ registerItem: ce,
134
+ itemCount: re,
135
+ setItemCount: oe,
136
+ disabled: p,
137
+ arrow: me,
138
+ closeDropdown: le,
139
+ getTestId: ae
139
140
  },
140
- children: /* @__PURE__ */ i(
141
+ children: /* @__PURE__ */ d(
141
142
  "div",
142
143
  {
143
144
  ref: F,
144
- className: pe,
145
- "data-state": T ? "open" : "closed",
145
+ className: be,
146
+ "data-state": R ? "open" : "closed",
146
147
  "data-testid": y,
147
- "aria-disabled": c || void 0,
148
- onMouseEnter: ae,
149
- onMouseLeave: le,
150
- onContextMenu: ce,
148
+ "aria-disabled": p || void 0,
149
+ onMouseEnter: de,
150
+ onMouseLeave: ie,
151
+ onContextMenu: ue,
151
152
  ...O,
152
- children: fe
153
+ children: we
153
154
  }
154
155
  )
155
156
  }
156
157
  );
157
158
  });
158
- function X({ children: u, className: l = "" }) {
159
- const { menuId: f, triggerId: p, isOpen: m, setIsOpen: o, setFocusedIndex: s, itemCount: r, disabled: c } = z(), b = (t) => {
159
+ function X({ children: i, className: l = "" }) {
160
+ const { menuId: f, triggerId: u, isOpen: m, setIsOpen: o, setFocusedIndex: s, itemCount: r, disabled: h } = z(), b = (t) => {
160
161
  switch (t.key) {
161
162
  case "Enter":
162
163
  case " ":
@@ -172,73 +173,73 @@ function X({ children: u, className: l = "" }) {
172
173
  }
173
174
  }, w = () => {
174
175
  o(!m), m || s(0);
175
- }, D = k.Children.only(u), h = D.props;
176
- return k.cloneElement(D, {
177
- id: p,
178
- tabIndex: c ? -1 : 0,
176
+ }, D = x.Children.only(i), g = D.props;
177
+ return x.cloneElement(D, {
178
+ id: u,
179
+ tabIndex: h ? -1 : 0,
179
180
  "aria-haspopup": "menu",
180
181
  "aria-expanded": m,
181
182
  "aria-controls": f,
182
183
  onClick: (t) => {
183
- w(), h.onClick?.(t);
184
+ w(), g.onClick?.(t);
184
185
  },
185
186
  onKeyDown: (t) => {
186
- b(t), h.onKeyDown?.(t);
187
+ b(t), g.onKeyDown?.(t);
187
188
  },
188
- className: `${h.className || ""} ${l}`.trim()
189
+ className: `${g.className || ""} ${l}`.trim()
189
190
  });
190
191
  }
191
- function Y({ children: u, className: l = "" }) {
192
- const { menuId: f, triggerId: p, isOpen: m, setIsOpen: o, focusedIndex: s, setFocusedIndex: r, setItemCount: c, arrow: b, position: w, getTestId: D } = z(), h = R(null), t = k.Children.toArray(u).filter(
193
- (e) => k.isValidElement(e) && e.type === B
192
+ function Y({ children: i, className: l = "" }) {
193
+ const { menuId: f, triggerId: u, isOpen: m, setIsOpen: o, focusedIndex: s, setFocusedIndex: r, setItemCount: h, arrow: b, position: w, getTestId: D } = z(), g = N(null), t = x.Children.toArray(i).filter(
194
+ (e) => x.isValidElement(e) && e.type === B
194
195
  );
195
196
  L(() => {
196
- c(t.length);
197
- }, [t.length, c]), L(() => {
198
- m && s >= 0 && h.current && h.current.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')[s]?.focus();
197
+ h(t.length);
198
+ }, [t.length, h]), L(() => {
199
+ m && s >= 0 && g.current && g.current.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')[s]?.focus();
199
200
  }, [m, s]);
200
- const C = (e) => {
201
- const I = t.filter(
202
- (v) => k.isValidElement(v) && !v.props.disabled
201
+ const k = (e) => {
202
+ const p = t.filter(
203
+ (v) => x.isValidElement(v) && !v.props.disabled
203
204
  ).length;
204
205
  switch (e.key) {
205
206
  case "ArrowDown":
206
- e.preventDefault(), r((s + 1) % I);
207
+ e.preventDefault(), r((s + 1) % p);
207
208
  break;
208
209
  case "ArrowUp":
209
- e.preventDefault(), r((s - 1 + I) % I);
210
+ e.preventDefault(), r((s - 1 + p) % p);
210
211
  break;
211
212
  case "Home":
212
213
  e.preventDefault(), r(0);
213
214
  break;
214
215
  case "End":
215
- e.preventDefault(), r(I - 1);
216
+ e.preventDefault(), r(p - 1);
216
217
  break;
217
218
  case "Escape":
218
- e.preventDefault(), o(!1), r(-1), document.getElementById(p)?.focus();
219
+ e.preventDefault(), o(!1), r(-1), document.getElementById(u)?.focus();
219
220
  break;
220
221
  case "Tab":
221
222
  o(!1), r(-1);
222
223
  break;
223
224
  }
224
225
  }, y = [
225
- Ae,
226
+ Se,
226
227
  J,
227
228
  "bg-base-100",
228
229
  "rounded-box",
229
230
  "z-50",
230
231
  "shadow",
231
232
  l
232
- ].filter(Boolean).join(" "), K = k.Children.map(u, (e, g) => {
233
- if (k.isValidElement(e)) {
234
- const I = e.key != null ? String(e.key) : void 0;
233
+ ].filter(Boolean).join(" "), P = x.Children.map(i, (e, C) => {
234
+ if (x.isValidElement(e)) {
235
+ const p = e.key != null ? String(e.key) : void 0;
235
236
  if (e.type === B)
236
- return k.cloneElement(e, { _index: g, _key: I });
237
- if (e.type === W)
238
- return k.cloneElement(e, { _key: I });
237
+ return x.cloneElement(e, { _index: C, _key: p });
238
+ if (e.type === G)
239
+ return x.cloneElement(e, { _key: p });
239
240
  }
240
241
  return e;
241
- }), a = b ? /* @__PURE__ */ i(
242
+ }), a = b ? /* @__PURE__ */ d(
242
243
  "span",
243
244
  {
244
245
  className: `absolute w-0 h-0 border-8 border-solid ${{
@@ -253,83 +254,83 @@ function Y({ children: u, className: l = "" }) {
253
254
  return /* @__PURE__ */ j(
254
255
  "ul",
255
256
  {
256
- ref: h,
257
+ ref: g,
257
258
  id: f,
258
259
  role: "menu",
259
- "aria-labelledby": p,
260
+ "aria-labelledby": u,
260
261
  tabIndex: -1,
261
262
  className: `${y} ${b ? "relative" : ""}`,
262
263
  "data-testid": D("menu"),
263
- onKeyDown: C,
264
+ onKeyDown: k,
264
265
  children: [
265
266
  a,
266
- K
267
+ P
267
268
  ]
268
269
  }
269
270
  );
270
271
  }
271
272
  function B({
272
- children: u,
273
+ children: i,
273
274
  icon: l,
274
275
  label: f,
275
- onClick: p,
276
+ onClick: u,
276
277
  active: m = !1,
277
278
  disabled: o = !1,
278
279
  danger: s = !1,
279
280
  className: r = "",
280
- _key: c
281
+ _key: h
281
282
  }) {
282
- const { closeDropdown: b, getTestId: w } = z(), D = [m && "active", o && "disabled", r].filter(Boolean).join(" "), h = () => {
283
- o || (p?.(), b());
283
+ const { closeDropdown: b, getTestId: w } = z(), D = [m && "active", o && "disabled", r].filter(Boolean).join(" "), g = () => {
284
+ o || (u?.(), b());
284
285
  }, t = (y) => {
285
- (y.key === "Enter" || y.key === " ") && !o && (y.preventDefault(), h());
286
- }, C = f || u;
287
- return /* @__PURE__ */ i("li", { className: D, role: "none", "data-key": c, "data-testid": c ? w(`item-${c}`) : void 0, children: /* @__PURE__ */ j(
286
+ (y.key === "Enter" || y.key === " ") && !o && (y.preventDefault(), g());
287
+ }, k = f || i;
288
+ return /* @__PURE__ */ d("li", { className: D, role: "none", "data-key": h, "data-testid": h ? w(`item-${h}`) : void 0, children: /* @__PURE__ */ j(
288
289
  "a",
289
290
  {
290
291
  role: "menuitem",
291
292
  tabIndex: o ? -1 : 0,
292
293
  "aria-disabled": o || void 0,
293
294
  className: s ? "text-error" : "",
294
- onClick: h,
295
+ onClick: g,
295
296
  onKeyDown: t,
296
297
  children: [
297
- l && /* @__PURE__ */ i("span", { className: "mr-2 inline-flex items-center", children: l }),
298
- C
298
+ l && /* @__PURE__ */ d("span", { className: "mr-2 inline-flex items-center", children: l }),
299
+ k
299
300
  ]
300
301
  }
301
302
  ) });
302
303
  }
303
- function W({
304
- children: u,
304
+ function G({
305
+ children: i,
305
306
  title: l,
306
307
  icon: f,
307
- disabled: p = !1,
308
+ disabled: u = !1,
308
309
  className: m = "",
309
310
  _key: o
310
311
  }) {
311
- const [s, r] = $(!1), c = R(null), b = R(null), w = R(null), D = V(), h = () => {
312
- p || r(!0);
312
+ const [s, r] = $(!1), h = N(null), b = N(null), w = N(null), D = V(), g = () => {
313
+ u || r(!0);
313
314
  }, t = () => {
314
315
  r(!1);
315
- }, C = () => {
316
+ }, k = () => {
316
317
  setTimeout(() => {
317
318
  w.current?.querySelector('[role="menuitem"]:not([aria-disabled="true"])')?.focus();
318
319
  }, 0);
319
320
  }, y = (a) => {
320
- if (!p)
321
+ if (!u)
321
322
  switch (a.key) {
322
323
  case "ArrowRight":
323
324
  case "Enter":
324
325
  case " ":
325
- a.preventDefault(), a.stopPropagation(), r(!0), C();
326
+ a.preventDefault(), a.stopPropagation(), r(!0), k();
326
327
  break;
327
328
  case "ArrowLeft":
328
329
  case "Escape":
329
330
  a.preventDefault(), a.stopPropagation(), r(!1);
330
331
  break;
331
332
  }
332
- }, K = (a) => {
333
+ }, P = (a) => {
333
334
  switch (a.key) {
334
335
  case "ArrowLeft":
335
336
  case "Escape":
@@ -339,28 +340,28 @@ function W({
339
340
  a.preventDefault(), a.stopPropagation();
340
341
  const e = w.current?.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');
341
342
  if (e) {
342
- const v = (Array.from(e).findIndex((P) => P === document.activeElement) + 1) % e.length;
343
+ const v = (Array.from(e).findIndex((A) => A === document.activeElement) + 1) % e.length;
343
344
  e[v]?.focus();
344
345
  }
345
346
  break;
346
347
  case "ArrowUp":
347
348
  a.preventDefault(), a.stopPropagation();
348
- const g = w.current?.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');
349
- if (g) {
350
- const v = (Array.from(g).findIndex((P) => P === document.activeElement) - 1 + g.length) % g.length;
351
- g[v]?.focus();
349
+ const C = w.current?.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');
350
+ if (C) {
351
+ const v = (Array.from(C).findIndex((A) => A === document.activeElement) - 1 + C.length) % C.length;
352
+ C[v]?.focus();
352
353
  }
353
354
  break;
354
355
  }
355
- }, O = [p && "disabled", m].filter(Boolean).join(" ");
356
- return /* @__PURE__ */ i(
356
+ }, O = [u && "disabled", m].filter(Boolean).join(" ");
357
+ return /* @__PURE__ */ d(
357
358
  "li",
358
359
  {
359
- ref: c,
360
+ ref: h,
360
361
  className: O,
361
362
  role: "none",
362
363
  "data-key": o,
363
- onMouseEnter: h,
364
+ onMouseEnter: g,
364
365
  onMouseLeave: t,
365
366
  children: /* @__PURE__ */ j("details", { open: s, children: [
366
367
  /* @__PURE__ */ j(
@@ -368,19 +369,19 @@ function W({
368
369
  {
369
370
  ref: b,
370
371
  role: "menuitem",
371
- tabIndex: p ? -1 : 0,
372
- "aria-disabled": p || void 0,
372
+ tabIndex: u ? -1 : 0,
373
+ "aria-disabled": u || void 0,
373
374
  "aria-haspopup": "menu",
374
375
  "aria-expanded": s,
375
376
  "aria-controls": D,
376
377
  onKeyDown: y,
377
378
  children: [
378
- f && /* @__PURE__ */ i("span", { className: "mr-2 inline-flex items-center", children: f }),
379
+ f && /* @__PURE__ */ d("span", { className: "mr-2 inline-flex items-center", children: f }),
379
380
  l
380
381
  ]
381
382
  }
382
383
  ),
383
- /* @__PURE__ */ i(
384
+ /* @__PURE__ */ d(
384
385
  "ul",
385
386
  {
386
387
  ref: w,
@@ -388,26 +389,26 @@ function W({
388
389
  className: `${J} bg-base-100 rounded-box z-50 shadow`,
389
390
  role: "menu",
390
391
  "aria-label": typeof l == "string" ? l : void 0,
391
- onKeyDown: K,
392
- children: u
392
+ onKeyDown: P,
393
+ children: i
393
394
  }
394
395
  )
395
396
  ] })
396
397
  }
397
398
  );
398
399
  }
399
- function Z({ className: u = "" }) {
400
- const l = ["border-base-content/10", u].filter(Boolean).join(" ");
401
- return /* @__PURE__ */ i("li", { role: "separator", className: "my-1", children: /* @__PURE__ */ i("hr", { className: l }) });
400
+ function Z({ className: i = "" }) {
401
+ const l = ["border-base-content/10", i].filter(Boolean).join(" ");
402
+ return /* @__PURE__ */ d("li", { role: "separator", className: "my-1", children: /* @__PURE__ */ d("hr", { className: l }) });
402
403
  }
403
- const Ke = Object.assign(Te, {
404
+ const Be = Object.assign(Ke, {
404
405
  Trigger: X,
405
406
  Menu: Y,
406
407
  Item: B,
407
- SubMenu: W,
408
+ SubMenu: G,
408
409
  Divider: Z
409
410
  });
410
411
  export {
411
- Ke as Dropdown
412
+ Be as Dropdown
412
413
  };
413
414
  //# sourceMappingURL=Dropdown.js.map