lizaui 6.0.8 → 7.0.0

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 (38) hide show
  1. package/dist/chunks/index-BydcKEwP.js +2 -0
  2. package/dist/chunks/index-BydcKEwP.js.map +1 -0
  3. package/dist/chunks/index-ybbFyaIJ.js +87 -0
  4. package/dist/chunks/index-ybbFyaIJ.js.map +1 -0
  5. package/dist/chunks/scroll-area-BM9h23ua.js +556 -0
  6. package/dist/chunks/scroll-area-BM9h23ua.js.map +1 -0
  7. package/dist/chunks/scroll-area-DIX2F6c9.js +2 -0
  8. package/dist/chunks/scroll-area-DIX2F6c9.js.map +1 -0
  9. package/dist/chunks/select-4dF9GyBV.js +2 -0
  10. package/dist/chunks/select-4dF9GyBV.js.map +1 -0
  11. package/dist/chunks/{select-KroYdQPb.js → select-BeerOZNC.js} +132 -143
  12. package/dist/chunks/select-BeerOZNC.js.map +1 -0
  13. package/dist/chunks/{textarea-ClUh9LtQ.js → textarea-9E0vAKDj.js} +9 -9
  14. package/dist/chunks/{textarea-ClUh9LtQ.js.map → textarea-9E0vAKDj.js.map} +1 -1
  15. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  16. package/dist/pagination/index.cjs.js +1 -1
  17. package/dist/pagination/index.es.js +2 -2
  18. package/dist/phone-input/index.cjs.js +14 -14
  19. package/dist/phone-input/index.cjs.js.map +1 -1
  20. package/dist/phone-input/index.es.js +680 -662
  21. package/dist/phone-input/index.es.js.map +1 -1
  22. package/dist/time-input/index.es.js +1 -1
  23. package/dist/ui/index.cjs.js +4 -4
  24. package/dist/ui/index.cjs.js.map +1 -1
  25. package/dist/ui/index.es.js +2536 -3075
  26. package/dist/ui/index.es.js.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/chunks/chevron-down-BJdjIpSS.js +0 -2
  29. package/dist/chunks/chevron-down-BJdjIpSS.js.map +0 -1
  30. package/dist/chunks/chevron-down-BarFwo2L.js +0 -75
  31. package/dist/chunks/chevron-down-BarFwo2L.js.map +0 -1
  32. package/dist/chunks/search-BUtVV_ij.js +0 -2
  33. package/dist/chunks/search-BUtVV_ij.js.map +0 -1
  34. package/dist/chunks/search-YTvzxtJf.js +0 -9
  35. package/dist/chunks/search-YTvzxtJf.js.map +0 -1
  36. package/dist/chunks/select-BBV4-uzN.js +0 -2
  37. package/dist/chunks/select-BBV4-uzN.js.map +0 -1
  38. package/dist/chunks/select-KroYdQPb.js.map +0 -1
@@ -2,13 +2,13 @@ import { j as r } from "./jsx-runtime-Cl_4eDuT.js";
2
2
  import * as n from "react";
3
3
  import ne from "react";
4
4
  import * as je from "react-dom";
5
- import { c as Ie, P as E, u as Y, a as Me, b as Ee, d as Re, e as bt, f as _, h as Pt, g as It, R as Rt, F as Tt, D as Nt } from "./textarea-ClUh9LtQ.js";
5
+ import { c as bt, u as Pt, a as Ee, C as It, b as Me } from "./index-ybbFyaIJ.js";
6
+ import { c as Ie, P as E, d as Y, u as Oe, e as Ae, f as Re, g as Rt, b as _, h as Tt, i as Nt, R as _t, F as Et, D as At } from "./textarea-9E0vAKDj.js";
6
7
  import { u as L, c as Se } from "./index-Do-g2tEs.js";
7
- import { u as _t, o as Et, s as At, f as jt, b as Mt, a as Ot, h as Dt, l as Lt } from "./floating-ui.react-dom-DoFTdqmA.js";
8
- import { q as kt } from "./floating-ui.dom-DvdgQsph.js";
8
+ import { u as jt, o as Mt, s as Ot, f as Dt, b as Lt, a as kt, h as Ht, l as Bt } from "./floating-ui.react-dom-DoFTdqmA.js";
9
+ import { q as Vt } from "./floating-ui.dom-DvdgQsph.js";
9
10
  import { c as Z } from "./utils-BFAOD39w.js";
10
- import { c as Ht, C as Bt, a as Oe } from "./chevron-down-BarFwo2L.js";
11
- function Vt(e) {
11
+ function zt(e) {
12
12
  const o = e + "CollectionProvider", [t, l] = Ie(o), [a, d] = t(
13
13
  o,
14
14
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -48,12 +48,7 @@ function Vt(e) {
48
48
  l
49
49
  ];
50
50
  }
51
- var zt = n.createContext(void 0);
52
- function Wt(e) {
53
- const o = n.useContext(zt);
54
- return e || o || "ltr";
55
- }
56
- var $t = "Arrow", De = n.forwardRef((e, o) => {
51
+ var Wt = "Arrow", De = n.forwardRef((e, o) => {
57
52
  const { children: t, width: l = 10, height: a = 5, ...d } = e;
58
53
  return /* @__PURE__ */ r.jsx(
59
54
  E.svg,
@@ -68,9 +63,9 @@ var $t = "Arrow", De = n.forwardRef((e, o) => {
68
63
  }
69
64
  );
70
65
  });
71
- De.displayName = $t;
72
- var Ft = De;
73
- function Ut(e) {
66
+ De.displayName = Wt;
67
+ var $t = De;
68
+ function Ft(e) {
74
69
  const [o, t] = n.useState(void 0);
75
70
  return Y(() => {
76
71
  if (e) {
@@ -92,9 +87,9 @@ function Ut(e) {
92
87
  t(void 0);
93
88
  }, [e]), o;
94
89
  }
95
- var Te = "Popper", [Le, ke] = Ie(Te), [Kt, He] = Le(Te), Be = (e) => {
90
+ var Te = "Popper", [Le, ke] = Ie(Te), [Ut, He] = Le(Te), Be = (e) => {
96
91
  const { __scopePopper: o, children: t } = e, [l, a] = n.useState(null);
97
- return /* @__PURE__ */ r.jsx(Kt, { scope: o, anchor: l, onAnchorChange: a, children: t });
92
+ return /* @__PURE__ */ r.jsx(Ut, { scope: o, anchor: l, onAnchorChange: a, children: t });
98
93
  };
99
94
  Be.displayName = Te;
100
95
  var Ve = "PopperAnchor", ze = n.forwardRef(
@@ -107,7 +102,7 @@ var Ve = "PopperAnchor", ze = n.forwardRef(
107
102
  }
108
103
  );
109
104
  ze.displayName = Ve;
110
- var Ne = "PopperContent", [Yt, Gt] = Le(Ne), We = n.forwardRef(
105
+ var Ne = "PopperContent", [Kt, Yt] = Le(Ne), We = n.forwardRef(
111
106
  (e, o) => {
112
107
  const {
113
108
  __scopePopper: t,
@@ -124,42 +119,42 @@ var Ne = "PopperContent", [Yt, Gt] = Le(Ne), We = n.forwardRef(
124
119
  updatePositionStrategy: y = "optimized",
125
120
  onPlaced: w,
126
121
  ...u
127
- } = e, h = He(Ne, t), [x, f] = n.useState(null), g = L(o, (m) => f(m)), [R, A] = n.useState(null), k = Ut(R), N = k?.width ?? 0, H = k?.height ?? 0, G = l + (d !== "center" ? "-" + d : ""), X = typeof v == "number" ? v : { top: 0, right: 0, bottom: 0, left: 0, ...v }, V = Array.isArray(p) ? p : [p], $ = V.length > 0, B = {
122
+ } = e, h = He(Ne, t), [x, f] = n.useState(null), g = L(o, (m) => f(m)), [R, A] = n.useState(null), k = Ft(R), N = k?.width ?? 0, H = k?.height ?? 0, G = l + (d !== "center" ? "-" + d : ""), X = typeof v == "number" ? v : { top: 0, right: 0, bottom: 0, left: 0, ...v }, V = Array.isArray(p) ? p : [p], $ = V.length > 0, B = {
128
123
  padding: X,
129
- boundary: V.filter(qt),
124
+ boundary: V.filter(Xt),
130
125
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
131
126
  altBoundary: $
132
- }, { refs: F, floatingStyles: z, placement: j, isPositioned: O, middlewareData: M } = _t({
127
+ }, { refs: F, floatingStyles: z, placement: j, isPositioned: O, middlewareData: M } = jt({
133
128
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
134
129
  strategy: "fixed",
135
130
  placement: G,
136
- whileElementsMounted: (...m) => kt(...m, {
131
+ whileElementsMounted: (...m) => Vt(...m, {
137
132
  animationFrame: y === "always"
138
133
  }),
139
134
  elements: {
140
135
  reference: h.anchor
141
136
  },
142
137
  middleware: [
143
- Et({ mainAxis: a + H, alignmentAxis: s }),
144
- i && At({
138
+ Mt({ mainAxis: a + H, alignmentAxis: s }),
139
+ i && Ot({
145
140
  mainAxis: !0,
146
141
  crossAxis: !1,
147
- limiter: S === "partial" ? Lt() : void 0,
142
+ limiter: S === "partial" ? Bt() : void 0,
148
143
  ...B
149
144
  }),
150
- i && jt({ ...B }),
151
- Mt({
145
+ i && Dt({ ...B }),
146
+ Lt({
152
147
  ...B,
153
148
  apply: ({ elements: m, rects: I, availableWidth: D, availableHeight: C }) => {
154
149
  const { width: b, height: T } = I.reference, W = m.floating.style;
155
150
  W.setProperty("--radix-popper-available-width", `${D}px`), W.setProperty("--radix-popper-available-height", `${C}px`), W.setProperty("--radix-popper-anchor-width", `${b}px`), W.setProperty("--radix-popper-anchor-height", `${T}px`);
156
151
  }
157
152
  }),
158
- R && Ot({ element: R, padding: c }),
159
- Zt({ arrowWidth: N, arrowHeight: H }),
160
- P && Dt({ strategy: "referenceHidden", ...B })
153
+ R && kt({ element: R, padding: c }),
154
+ qt({ arrowWidth: N, arrowHeight: H }),
155
+ P && Ht({ strategy: "referenceHidden", ...B })
161
156
  ]
162
- }), [U, le] = Ue(j), ee = Me(w);
157
+ }), [U, le] = Ue(j), ee = Oe(w);
163
158
  Y(() => {
164
159
  O && ee?.();
165
160
  }, [O, ee]);
@@ -191,7 +186,7 @@ var Ne = "PopperContent", [Yt, Gt] = Le(Ne), We = n.forwardRef(
191
186
  },
192
187
  dir: e.dir,
193
188
  children: /* @__PURE__ */ r.jsx(
194
- Yt,
189
+ Kt,
195
190
  {
196
191
  scope: t,
197
192
  placedSide: U,
@@ -221,13 +216,13 @@ var Ne = "PopperContent", [Yt, Gt] = Le(Ne), We = n.forwardRef(
221
216
  }
222
217
  );
223
218
  We.displayName = Ne;
224
- var $e = "PopperArrow", Xt = {
219
+ var $e = "PopperArrow", Gt = {
225
220
  top: "bottom",
226
221
  right: "left",
227
222
  bottom: "top",
228
223
  left: "right"
229
224
  }, Fe = n.forwardRef(function(o, t) {
230
- const { __scopePopper: l, ...a } = o, d = Gt($e, l), s = Xt[d.placedSide];
225
+ const { __scopePopper: l, ...a } = o, d = Yt($e, l), s = Gt[d.placedSide];
231
226
  return (
232
227
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
233
228
  // doesn't report size as we'd expect on SVG elements.
@@ -256,7 +251,7 @@ var $e = "PopperArrow", Xt = {
256
251
  visibility: d.shouldHideArrow ? "hidden" : void 0
257
252
  },
258
253
  children: /* @__PURE__ */ r.jsx(
259
- Ft,
254
+ $t,
260
255
  {
261
256
  ...a,
262
257
  ref: t,
@@ -272,10 +267,10 @@ var $e = "PopperArrow", Xt = {
272
267
  );
273
268
  });
274
269
  Fe.displayName = $e;
275
- function qt(e) {
270
+ function Xt(e) {
276
271
  return e !== null;
277
272
  }
278
- var Zt = (e) => ({
273
+ var qt = (e) => ({
279
274
  name: "transformOrigin",
280
275
  options: e,
281
276
  fn(o) {
@@ -288,9 +283,9 @@ function Ue(e) {
288
283
  const [o, t = "center"] = e.split("-");
289
284
  return [o, t];
290
285
  }
291
- var Jt = Be, Qt = ze, eo = We, to = Fe;
292
- const oo = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], no = Ht("chevron-up", oo);
293
- function ro(e) {
286
+ var Zt = Be, Jt = ze, Qt = We, eo = Fe;
287
+ const to = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], oo = bt("chevron-up", to);
288
+ function no(e) {
294
289
  const o = n.useRef({ value: e, previous: e });
295
290
  return n.useMemo(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [e]);
296
291
  }
@@ -306,7 +301,7 @@ var Ke = Object.freeze({
306
301
  clip: "rect(0, 0, 0, 0)",
307
302
  whiteSpace: "nowrap",
308
303
  wordWrap: "normal"
309
- }), so = "VisuallyHidden", Ye = n.forwardRef(
304
+ }), ro = "VisuallyHidden", Ye = n.forwardRef(
310
305
  (e, o) => /* @__PURE__ */ r.jsx(
311
306
  E.span,
312
307
  {
@@ -316,15 +311,11 @@ var Ke = Object.freeze({
316
311
  }
317
312
  )
318
313
  );
319
- Ye.displayName = so;
320
- var Jo = Ye;
321
- function Ae(e, [o, t]) {
322
- return Math.min(t, Math.max(o, e));
323
- }
324
- var ao = [" ", "Enter", "ArrowUp", "ArrowDown"], io = [" ", "Enter"], re = "Select", [fe, me, lo] = Vt(re), [ie, Qo] = Ie(re, [
325
- lo,
314
+ Ye.displayName = ro;
315
+ var Zo = Ye, so = [" ", "Enter", "ArrowUp", "ArrowDown"], ao = [" ", "Enter"], re = "Select", [fe, me, io] = zt(re), [ie, Jo] = Ie(re, [
316
+ io,
326
317
  ke
327
- ]), he = ke(), [co, J] = ie(re), [uo, po] = ie(re), Ge = (e) => {
318
+ ]), he = ke(), [lo, J] = ie(re), [co, uo] = ie(re), Ge = (e) => {
328
319
  const {
329
320
  __scopeSelect: o,
330
321
  children: t,
@@ -340,19 +331,19 @@ var ao = [" ", "Enter", "ArrowUp", "ArrowDown"], io = [" ", "Enter"], re = "Sele
340
331
  disabled: P,
341
332
  required: y,
342
333
  form: w
343
- } = e, u = he(o), [h, x] = n.useState(null), [f, g] = n.useState(null), [R, A] = n.useState(!1), k = Wt(p), [N, H] = Ee({
334
+ } = e, u = he(o), [h, x] = n.useState(null), [f, g] = n.useState(null), [R, A] = n.useState(!1), k = Pt(p), [N, H] = Ae({
344
335
  prop: l,
345
336
  defaultProp: a ?? !1,
346
337
  onChange: d,
347
338
  caller: re
348
- }), [G, X] = Ee({
339
+ }), [G, X] = Ae({
349
340
  prop: s,
350
341
  defaultProp: c,
351
342
  onChange: i,
352
343
  caller: re
353
344
  }), V = n.useRef(null), $ = h ? w || !!h.closest("form") : !0, [B, F] = n.useState(/* @__PURE__ */ new Set()), z = Array.from(B).map((j) => j.props.value).join(";");
354
- return /* @__PURE__ */ r.jsx(Jt, { ...u, children: /* @__PURE__ */ r.jsxs(
355
- co,
345
+ return /* @__PURE__ */ r.jsx(Zt, { ...u, children: /* @__PURE__ */ r.jsxs(
346
+ lo,
356
347
  {
357
348
  required: y,
358
349
  scope: o,
@@ -372,7 +363,7 @@ var ao = [" ", "Enter", "ArrowUp", "ArrowDown"], io = [" ", "Enter"], re = "Sele
372
363
  disabled: P,
373
364
  children: [
374
365
  /* @__PURE__ */ r.jsx(fe.Provider, { scope: o, children: /* @__PURE__ */ r.jsx(
375
- uo,
366
+ co,
376
367
  {
377
368
  scope: e.__scopeSelect,
378
369
  onNativeOptionAdd: n.useCallback((j) => {
@@ -422,7 +413,7 @@ var Xe = "SelectTrigger", qe = n.forwardRef(
422
413
  y: Math.round(u.pageY)
423
414
  });
424
415
  };
425
- return /* @__PURE__ */ r.jsx(Qt, { asChild: !0, ...d, children: /* @__PURE__ */ r.jsx(
416
+ return /* @__PURE__ */ r.jsx(Jt, { asChild: !0, ...d, children: /* @__PURE__ */ r.jsx(
426
417
  E.button,
427
418
  {
428
419
  type: "button",
@@ -448,7 +439,7 @@ var Xe = "SelectTrigger", qe = n.forwardRef(
448
439
  }),
449
440
  onKeyDown: _(a.onKeyDown, (u) => {
450
441
  const h = S.current !== "";
451
- !(u.ctrlKey || u.altKey || u.metaKey) && u.key.length === 1 && P(u.key), !(h && u.key === " ") && ao.includes(u.key) && (w(), u.preventDefault());
442
+ !(u.ctrlKey || u.altKey || u.metaKey) && u.key.length === 1 && P(u.key), !(h && u.key === " ") && so.includes(u.key) && (w(), u.preventDefault());
452
443
  })
453
444
  }
454
445
  ) });
@@ -472,15 +463,15 @@ var Ze = "SelectValue", Je = n.forwardRef(
472
463
  }
473
464
  );
474
465
  Je.displayName = Ze;
475
- var fo = "SelectIcon", Qe = n.forwardRef(
466
+ var po = "SelectIcon", Qe = n.forwardRef(
476
467
  (e, o) => {
477
468
  const { __scopeSelect: t, children: l, ...a } = e;
478
469
  return /* @__PURE__ */ r.jsx(E.span, { "aria-hidden": !0, ...a, ref: o, children: l || "▼" });
479
470
  }
480
471
  );
481
- Qe.displayName = fo;
482
- var mo = "SelectPortal", et = (e) => /* @__PURE__ */ r.jsx(bt, { asChild: !0, ...e });
483
- et.displayName = mo;
472
+ Qe.displayName = po;
473
+ var fo = "SelectPortal", et = (e) => /* @__PURE__ */ r.jsx(Rt, { asChild: !0, ...e });
474
+ et.displayName = fo;
484
475
  var se = "SelectContent", tt = n.forwardRef(
485
476
  (e, o) => {
486
477
  const t = J(se, e.__scopeSelect), [l, a] = n.useState();
@@ -497,7 +488,7 @@ var se = "SelectContent", tt = n.forwardRef(
497
488
  }
498
489
  );
499
490
  tt.displayName = se;
500
- var K = 10, [ot, Q] = ie(se), ho = "SelectContentImpl", go = Se("SelectContent.RemoveScroll"), nt = n.forwardRef(
491
+ var K = 10, [ot, Q] = ie(se), mo = "SelectContentImpl", ho = Se("SelectContent.RemoveScroll"), nt = n.forwardRef(
501
492
  (e, o) => {
502
493
  const {
503
494
  __scopeSelect: t,
@@ -523,8 +514,8 @@ var K = 10, [ot, Q] = ie(se), ho = "SelectContentImpl", go = Se("SelectContent.R
523
514
  null
524
515
  ), $ = me(t), [B, F] = n.useState(!1), z = n.useRef(!1);
525
516
  n.useEffect(() => {
526
- if (g) return Pt(g);
527
- }, [g]), It();
517
+ if (g) return Tt(g);
518
+ }, [g]), Nt();
528
519
  const j = n.useCallback(
529
520
  (m) => {
530
521
  const [I, ...D] = $().map((T) => T.ref.current), [C] = D.slice(-1), b = document.activeElement;
@@ -604,8 +595,8 @@ var K = 10, [ot, Q] = ie(se), ho = "SelectContentImpl", go = Se("SelectContent.R
604
595
  position: l,
605
596
  isPositioned: B,
606
597
  searchRef: le,
607
- children: /* @__PURE__ */ r.jsx(Rt, { as: go, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
608
- Tt,
598
+ children: /* @__PURE__ */ r.jsx(_t, { as: ho, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
599
+ Et,
609
600
  {
610
601
  asChild: !0,
611
602
  trapped: f.open,
@@ -616,7 +607,7 @@ var K = 10, [ot, Q] = ie(se), ho = "SelectContentImpl", go = Se("SelectContent.R
616
607
  f.trigger?.focus({ preventScroll: !0 }), m.preventDefault();
617
608
  }),
618
609
  children: /* @__PURE__ */ r.jsx(
619
- Nt,
610
+ At,
620
611
  {
621
612
  asChild: !0,
622
613
  disableOutsidePointerEvents: !0,
@@ -665,13 +656,13 @@ var K = 10, [ot, Q] = ie(se), ho = "SelectContentImpl", go = Se("SelectContent.R
665
656
  );
666
657
  }
667
658
  );
668
- nt.displayName = ho;
669
- var vo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
659
+ nt.displayName = mo;
660
+ var go = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
670
661
  const { __scopeSelect: t, onPlaced: l, ...a } = e, d = J(se, t), s = Q(se, t), [c, i] = n.useState(null), [p, v] = n.useState(null), S = L(o, (N) => v(N)), P = me(t), y = n.useRef(!1), w = n.useRef(!0), { viewport: u, selectedItem: h, selectedItemText: x, focusSelectedItem: f } = s, g = n.useCallback(() => {
671
662
  if (d.trigger && d.valueNode && c && p && u && h && x) {
672
663
  const N = d.trigger.getBoundingClientRect(), H = p.getBoundingClientRect(), G = d.valueNode.getBoundingClientRect(), X = x.getBoundingClientRect();
673
664
  if (d.dir !== "rtl") {
674
- const b = X.left - H.left, T = G.left - b, W = N.left - T, oe = N.width + W, ge = Math.max(oe, H.width), ve = window.innerWidth - K, xe = Ae(T, [
665
+ const b = X.left - H.left, T = G.left - b, W = N.left - T, oe = N.width + W, ge = Math.max(oe, H.width), ve = window.innerWidth - K, xe = Ee(T, [
675
666
  K,
676
667
  // Prevents the content from going off the starting edge of the
677
668
  // viewport. It may still go off the ending edge, but this can be
@@ -682,7 +673,7 @@ var vo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
682
673
  ]);
683
674
  c.style.minWidth = oe + "px", c.style.left = xe + "px";
684
675
  } else {
685
- const b = H.right - X.right, T = window.innerWidth - G.right - b, W = window.innerWidth - N.right - T, oe = N.width + W, ge = Math.max(oe, H.width), ve = window.innerWidth - K, xe = Ae(T, [
676
+ const b = H.right - X.right, T = window.innerWidth - G.right - b, W = window.innerWidth - N.right - T, oe = N.width + W, ge = Math.max(oe, H.width), ve = window.innerWidth - K, xe = Ee(T, [
686
677
  K,
687
678
  Math.max(K, ve - ge)
688
679
  ]);
@@ -734,7 +725,7 @@ var vo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
734
725
  [g, f]
735
726
  );
736
727
  return /* @__PURE__ */ r.jsx(
737
- So,
728
+ xo,
738
729
  {
739
730
  scope: t,
740
731
  contentWrapper: c,
@@ -770,8 +761,8 @@ var vo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
770
761
  }
771
762
  );
772
763
  });
773
- rt.displayName = vo;
774
- var xo = "SelectPopperPosition", we = n.forwardRef((e, o) => {
764
+ rt.displayName = go;
765
+ var vo = "SelectPopperPosition", we = n.forwardRef((e, o) => {
775
766
  const {
776
767
  __scopeSelect: t,
777
768
  align: l = "start",
@@ -779,7 +770,7 @@ var xo = "SelectPopperPosition", we = n.forwardRef((e, o) => {
779
770
  ...d
780
771
  } = e, s = he(t);
781
772
  return /* @__PURE__ */ r.jsx(
782
- eo,
773
+ Qt,
783
774
  {
784
775
  ...s,
785
776
  ...d,
@@ -799,8 +790,8 @@ var xo = "SelectPopperPosition", we = n.forwardRef((e, o) => {
799
790
  }
800
791
  );
801
792
  });
802
- we.displayName = xo;
803
- var [So, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
793
+ we.displayName = vo;
794
+ var [xo, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
804
795
  (e, o) => {
805
796
  const { __scopeSelect: t, nonce: l, ...a } = e, d = Q(ye, t), s = _e(ye, t), c = L(o, d.onViewportChange), i = n.useRef(0);
806
797
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -853,21 +844,21 @@ var [So, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
853
844
  }
854
845
  );
855
846
  st.displayName = ye;
856
- var at = "SelectGroup", [wo, yo] = ie(at), it = n.forwardRef(
847
+ var at = "SelectGroup", [So, wo] = ie(at), it = n.forwardRef(
857
848
  (e, o) => {
858
849
  const { __scopeSelect: t, ...l } = e, a = Re();
859
- return /* @__PURE__ */ r.jsx(wo, { scope: t, id: a, children: /* @__PURE__ */ r.jsx(E.div, { role: "group", "aria-labelledby": a, ...l, ref: o }) });
850
+ return /* @__PURE__ */ r.jsx(So, { scope: t, id: a, children: /* @__PURE__ */ r.jsx(E.div, { role: "group", "aria-labelledby": a, ...l, ref: o }) });
860
851
  }
861
852
  );
862
853
  it.displayName = at;
863
854
  var lt = "SelectLabel", ct = n.forwardRef(
864
855
  (e, o) => {
865
- const { __scopeSelect: t, ...l } = e, a = yo(lt, t);
856
+ const { __scopeSelect: t, ...l } = e, a = wo(lt, t);
866
857
  return /* @__PURE__ */ r.jsx(E.div, { id: a.id, ...l, ref: o });
867
858
  }
868
859
  );
869
860
  ct.displayName = lt;
870
- var pe = "SelectItem", [Co, dt] = ie(pe), ut = n.forwardRef(
861
+ var pe = "SelectItem", [yo, dt] = ie(pe), ut = n.forwardRef(
871
862
  (e, o) => {
872
863
  const {
873
864
  __scopeSelect: t,
@@ -886,7 +877,7 @@ var pe = "SelectItem", [Co, dt] = ie(pe), ut = n.forwardRef(
886
877
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
887
878
  );
888
879
  return /* @__PURE__ */ r.jsx(
889
- Co,
880
+ yo,
890
881
  {
891
882
  scope: t,
892
883
  value: l,
@@ -934,7 +925,7 @@ var pe = "SelectItem", [Co, dt] = ie(pe), ut = n.forwardRef(
934
925
  f.currentTarget === document.activeElement && i.onItemLeave?.();
935
926
  }),
936
927
  onKeyDown: _(s.onKeyDown, (f) => {
937
- i.searchRef?.current !== "" && f.key === " " || (io.includes(f.key) && x(), f.key === " " && f.preventDefault());
928
+ i.searchRef?.current !== "" && f.key === " " || (ao.includes(f.key) && x(), f.key === " " && f.preventDefault());
938
929
  })
939
930
  }
940
931
  )
@@ -947,7 +938,7 @@ var pe = "SelectItem", [Co, dt] = ie(pe), ut = n.forwardRef(
947
938
  ut.displayName = pe;
948
939
  var ue = "SelectItemText", pt = n.forwardRef(
949
940
  (e, o) => {
950
- const { __scopeSelect: t, className: l, style: a, ...d } = e, s = J(ue, t), c = Q(ue, t), i = dt(ue, t), p = po(ue, t), [v, S] = n.useState(null), P = L(
941
+ const { __scopeSelect: t, className: l, style: a, ...d } = e, s = J(ue, t), c = Q(ue, t), i = dt(ue, t), p = uo(ue, t), [v, S] = n.useState(null), P = L(
951
942
  o,
952
943
  (x) => S(x),
953
944
  i.onItemTextChange,
@@ -1042,23 +1033,23 @@ var vt = n.forwardRef((e, o) => {
1042
1033
  })
1043
1034
  }
1044
1035
  );
1045
- }), bo = "SelectSeparator", xt = n.forwardRef(
1036
+ }), Co = "SelectSeparator", xt = n.forwardRef(
1046
1037
  (e, o) => {
1047
1038
  const { __scopeSelect: t, ...l } = e;
1048
1039
  return /* @__PURE__ */ r.jsx(E.div, { "aria-hidden": !0, ...l, ref: o });
1049
1040
  }
1050
1041
  );
1051
- xt.displayName = bo;
1052
- var Pe = "SelectArrow", Po = n.forwardRef(
1042
+ xt.displayName = Co;
1043
+ var Pe = "SelectArrow", bo = n.forwardRef(
1053
1044
  (e, o) => {
1054
1045
  const { __scopeSelect: t, ...l } = e, a = he(t), d = J(Pe, t), s = Q(Pe, t);
1055
- return d.open && s.position === "popper" ? /* @__PURE__ */ r.jsx(to, { ...a, ...l, ref: o }) : null;
1046
+ return d.open && s.position === "popper" ? /* @__PURE__ */ r.jsx(eo, { ...a, ...l, ref: o }) : null;
1056
1047
  }
1057
1048
  );
1058
- Po.displayName = Pe;
1059
- var Io = "SelectBubbleInput", St = n.forwardRef(
1049
+ bo.displayName = Pe;
1050
+ var Po = "SelectBubbleInput", St = n.forwardRef(
1060
1051
  ({ __scopeSelect: e, value: o, ...t }, l) => {
1061
- const a = n.useRef(null), d = L(l, a), s = ro(o);
1052
+ const a = n.useRef(null), d = L(l, a), s = no(o);
1062
1053
  return n.useEffect(() => {
1063
1054
  const c = a.current;
1064
1055
  if (!c) return;
@@ -1081,12 +1072,12 @@ var Io = "SelectBubbleInput", St = n.forwardRef(
1081
1072
  );
1082
1073
  }
1083
1074
  );
1084
- St.displayName = Io;
1075
+ St.displayName = Po;
1085
1076
  function wt(e) {
1086
1077
  return e === "" || e === void 0;
1087
1078
  }
1088
1079
  function yt(e) {
1089
- const o = Me(e), t = n.useRef(""), l = n.useRef(0), a = n.useCallback(
1080
+ const o = Oe(e), t = n.useRef(""), l = n.useRef(0), a = n.useCallback(
1090
1081
  (s) => {
1091
1082
  const c = t.current + s;
1092
1083
  o(c), (function i(p) {
@@ -1101,34 +1092,34 @@ function yt(e) {
1101
1092
  }
1102
1093
  function Ct(e, o, t) {
1103
1094
  const a = o.length > 1 && Array.from(o).every((p) => p === o[0]) ? o[0] : o, d = t ? e.indexOf(t) : -1;
1104
- let s = Ro(e, Math.max(d, 0));
1095
+ let s = Io(e, Math.max(d, 0));
1105
1096
  a.length === 1 && (s = s.filter((p) => p !== t));
1106
1097
  const i = s.find(
1107
1098
  (p) => p.textValue.toLowerCase().startsWith(a.toLowerCase())
1108
1099
  );
1109
1100
  return i !== t ? i : void 0;
1110
1101
  }
1111
- function Ro(e, o) {
1102
+ function Io(e, o) {
1112
1103
  return e.map((t, l) => e[(o + l) % e.length]);
1113
1104
  }
1114
- var To = Ge, No = qe, _o = Je, Eo = Qe, Ao = et, jo = tt, Mo = st, Oo = it, Do = ct, Lo = ut, ko = pt, Ho = mt, Bo = ht, Vo = gt, zo = xt;
1105
+ var Ro = Ge, To = qe, No = Je, _o = Qe, Eo = et, Ao = tt, jo = st, Mo = it, Oo = ct, Do = ut, Lo = pt, ko = mt, Ho = ht, Bo = gt, Vo = xt;
1106
+ function Qo({ ...e }) {
1107
+ return /* @__PURE__ */ r.jsx(Ro, { "data-slot": "select", ...e });
1108
+ }
1115
1109
  function en({ ...e }) {
1116
- return /* @__PURE__ */ r.jsx(To, { "data-slot": "select", ...e });
1110
+ return /* @__PURE__ */ r.jsx(Mo, { "data-slot": "select-group", ...e });
1117
1111
  }
1118
1112
  function tn({ ...e }) {
1119
- return /* @__PURE__ */ r.jsx(Oo, { "data-slot": "select-group", ...e });
1113
+ return /* @__PURE__ */ r.jsx(No, { "data-slot": "select-value", ...e });
1120
1114
  }
1121
- function on({ ...e }) {
1122
- return /* @__PURE__ */ r.jsx(_o, { "data-slot": "select-value", ...e });
1123
- }
1124
- function nn({
1115
+ function on({
1125
1116
  className: e,
1126
1117
  size: o = "default",
1127
1118
  children: t,
1128
1119
  ...l
1129
1120
  }) {
1130
1121
  return /* @__PURE__ */ r.jsxs(
1131
- No,
1122
+ To,
1132
1123
  {
1133
1124
  "data-slot": "select-trigger",
1134
1125
  "data-size": o,
@@ -1139,14 +1130,14 @@ function nn({
1139
1130
  ...l,
1140
1131
  children: [
1141
1132
  t,
1142
- /* @__PURE__ */ r.jsx(Eo, { asChild: !0, children: /* @__PURE__ */ r.jsx(Oe, { className: "size-4 opacity-50" }) })
1133
+ /* @__PURE__ */ r.jsx(_o, { asChild: !0, children: /* @__PURE__ */ r.jsx(Me, { className: "size-4 opacity-50" }) })
1143
1134
  ]
1144
1135
  }
1145
1136
  );
1146
1137
  }
1147
- function rn({ className: e, children: o, position: t = "popper", ...l }) {
1148
- return /* @__PURE__ */ r.jsx(Ao, { children: /* @__PURE__ */ r.jsxs(
1149
- jo,
1138
+ function nn({ className: e, children: o, position: t = "popper", ...l }) {
1139
+ return /* @__PURE__ */ r.jsx(Eo, { children: /* @__PURE__ */ r.jsxs(
1140
+ Ao,
1150
1141
  {
1151
1142
  "data-slot": "select-content",
1152
1143
  className: Z(
@@ -1157,9 +1148,9 @@ function rn({ className: e, children: o, position: t = "popper", ...l }) {
1157
1148
  position: t,
1158
1149
  ...l,
1159
1150
  children: [
1160
- /* @__PURE__ */ r.jsx(Wo, {}),
1151
+ /* @__PURE__ */ r.jsx(zo, {}),
1161
1152
  /* @__PURE__ */ r.jsx(
1162
- Mo,
1153
+ jo,
1163
1154
  {
1164
1155
  className: Z(
1165
1156
  "p-1",
@@ -1168,17 +1159,17 @@ function rn({ className: e, children: o, position: t = "popper", ...l }) {
1168
1159
  children: o
1169
1160
  }
1170
1161
  ),
1171
- /* @__PURE__ */ r.jsx($o, {})
1162
+ /* @__PURE__ */ r.jsx(Wo, {})
1172
1163
  ]
1173
1164
  }
1174
1165
  ) });
1175
1166
  }
1176
- function sn({ className: e, ...o }) {
1177
- return /* @__PURE__ */ r.jsx(Do, { "data-slot": "select-label", className: Z("text-muted-foreground px-2 py-1.5 text-xs", e), ...o });
1167
+ function rn({ className: e, ...o }) {
1168
+ return /* @__PURE__ */ r.jsx(Oo, { "data-slot": "select-label", className: Z("text-muted-foreground px-2 py-1.5 text-xs", e), ...o });
1178
1169
  }
1179
- function an({ className: e, children: o, ...t }) {
1170
+ function sn({ className: e, children: o, ...t }) {
1180
1171
  return /* @__PURE__ */ r.jsxs(
1181
- Lo,
1172
+ Do,
1182
1173
  {
1183
1174
  "data-slot": "select-item",
1184
1175
  className: Z(
@@ -1187,15 +1178,15 @@ function an({ className: e, children: o, ...t }) {
1187
1178
  ),
1188
1179
  ...t,
1189
1180
  children: [
1190
- /* @__PURE__ */ r.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(Ho, { children: /* @__PURE__ */ r.jsx(Bt, { className: "size-4" }) }) }),
1191
- /* @__PURE__ */ r.jsx(ko, { children: o })
1181
+ /* @__PURE__ */ r.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(ko, { children: /* @__PURE__ */ r.jsx(It, { className: "size-4" }) }) }),
1182
+ /* @__PURE__ */ r.jsx(Lo, { children: o })
1192
1183
  ]
1193
1184
  }
1194
1185
  );
1195
1186
  }
1196
- function ln({ className: e, ...o }) {
1187
+ function an({ className: e, ...o }) {
1197
1188
  return /* @__PURE__ */ r.jsx(
1198
- zo,
1189
+ Vo,
1199
1190
  {
1200
1191
  "data-slot": "select-separator",
1201
1192
  className: Z("bg-border pointer-events-none -mx-1 my-1 h-px", e),
@@ -1203,49 +1194,47 @@ function ln({ className: e, ...o }) {
1203
1194
  }
1204
1195
  );
1205
1196
  }
1206
- function Wo({ className: e, ...o }) {
1197
+ function zo({ className: e, ...o }) {
1207
1198
  return /* @__PURE__ */ r.jsx(
1208
- Bo,
1199
+ Ho,
1209
1200
  {
1210
1201
  "data-slot": "select-scroll-up-button",
1211
1202
  className: Z("flex cursor-default items-center justify-center py-1", e),
1212
1203
  ...o,
1213
- children: /* @__PURE__ */ r.jsx(no, { className: "size-4" })
1204
+ children: /* @__PURE__ */ r.jsx(oo, { className: "size-4" })
1214
1205
  }
1215
1206
  );
1216
1207
  }
1217
- function $o({ className: e, ...o }) {
1208
+ function Wo({ className: e, ...o }) {
1218
1209
  return /* @__PURE__ */ r.jsx(
1219
- Vo,
1210
+ Bo,
1220
1211
  {
1221
1212
  "data-slot": "select-scroll-down-button",
1222
1213
  className: Z("flex cursor-default items-center justify-center py-1", e),
1223
1214
  ...o,
1224
- children: /* @__PURE__ */ r.jsx(Oe, { className: "size-4" })
1215
+ children: /* @__PURE__ */ r.jsx(Me, { className: "size-4" })
1225
1216
  }
1226
1217
  );
1227
1218
  }
1228
1219
  export {
1229
- Qt as A,
1230
- eo as C,
1231
- Jt as R,
1232
- en as S,
1233
- nn as a,
1234
- on as b,
1235
- rn as c,
1236
- tn as d,
1237
- sn as e,
1238
- an as f,
1239
- Vt as g,
1220
+ Jt as A,
1221
+ Qt as C,
1222
+ Zt as R,
1223
+ Qo as S,
1224
+ on as a,
1225
+ tn as b,
1226
+ nn as c,
1227
+ en as d,
1228
+ rn as e,
1229
+ sn as f,
1230
+ zt as g,
1240
1231
  ke as h,
1241
- to as i,
1242
- Jo as j,
1243
- ro as k,
1244
- Ae as l,
1245
- Ut as m,
1246
- $o as n,
1247
- Wo as o,
1248
- ln as p,
1249
- Wt as u
1232
+ eo as i,
1233
+ Zo as j,
1234
+ Ft as k,
1235
+ Wo as l,
1236
+ zo as m,
1237
+ an as n,
1238
+ no as u
1250
1239
  };
1251
- //# sourceMappingURL=select-KroYdQPb.js.map
1240
+ //# sourceMappingURL=select-BeerOZNC.js.map