lizaui 8.0.2 → 8.0.4

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 (100) hide show
  1. package/dist/button/index.cjs.js +1 -1
  2. package/dist/button/index.es.js +1 -1
  3. package/dist/calendar/index.cjs.js +10 -10
  4. package/dist/calendar/index.cjs.js.map +1 -1
  5. package/dist/calendar/index.es.js +2234 -515
  6. package/dist/calendar/index.es.js.map +1 -1
  7. package/dist/checkbox/index.cjs.js +1 -1
  8. package/dist/checkbox/index.es.js +1 -1
  9. package/dist/chip/index.cjs.js +1 -1
  10. package/dist/chip/index.es.js +1 -1
  11. package/dist/chunks/{button-COC4E-Qv.js → button-CSuKvE1x.js} +4 -4
  12. package/dist/chunks/{button-COC4E-Qv.js.map → button-CSuKvE1x.js.map} +1 -1
  13. package/dist/chunks/{button-CGIs6rx_.js → button-OdZ6El_t.js} +2 -2
  14. package/dist/chunks/{button-CGIs6rx_.js.map → button-OdZ6El_t.js.map} +1 -1
  15. package/dist/chunks/{checkbox-C4O1CC2o.js → checkbox-BhW9i0pm.js} +3 -3
  16. package/dist/chunks/{checkbox-C4O1CC2o.js.map → checkbox-BhW9i0pm.js.map} +1 -1
  17. package/dist/chunks/{checkbox-C7iPXnsq.js → checkbox-CWDPVAn2.js} +2 -2
  18. package/dist/chunks/{checkbox-C7iPXnsq.js.map → checkbox-CWDPVAn2.js.map} +1 -1
  19. package/dist/chunks/{index-B_lLnyI9.js → index-6ER8bShj.js} +2 -2
  20. package/dist/chunks/{index-B_lLnyI9.js.map → index-6ER8bShj.js.map} +1 -1
  21. package/dist/chunks/index-BydcKEwP.js +2 -0
  22. package/dist/chunks/index-BydcKEwP.js.map +1 -0
  23. package/dist/chunks/{index-6UmdGTUS.js → index-Do-g2tEs.js} +2 -2
  24. package/dist/chunks/{index-6UmdGTUS.js.map → index-Do-g2tEs.js.map} +1 -1
  25. package/dist/chunks/index-VJ2Qvmen.js +87 -0
  26. package/dist/chunks/index-VJ2Qvmen.js.map +1 -0
  27. package/dist/chunks/jsx-runtime-BjzqJBtL.js +2 -0
  28. package/dist/chunks/{jsx-runtime-DZW6kfQG.js.map → jsx-runtime-BjzqJBtL.js.map} +1 -1
  29. package/dist/chunks/{jsx-runtime-Dk9ExdSX.js → jsx-runtime-Cl_4eDuT.js} +3 -2
  30. package/dist/chunks/{jsx-runtime-Dk9ExdSX.js.map → jsx-runtime-Cl_4eDuT.js.map} +1 -1
  31. package/dist/chunks/{label-error-wbavGDVw.js → label-error-Ax74Uy3M.js} +2 -2
  32. package/dist/chunks/{label-error-wbavGDVw.js.map → label-error-Ax74Uy3M.js.map} +1 -1
  33. package/dist/chunks/{label-error-Dg6_L7YY.js → label-error-DGQqDKTV.js} +2 -2
  34. package/dist/chunks/{label-error-Dg6_L7YY.js.map → label-error-DGQqDKTV.js.map} +1 -1
  35. package/dist/chunks/{ripple-DkVNrwwK.js → ripple-DMI95LHg.js} +2 -2
  36. package/dist/chunks/{ripple-DkVNrwwK.js.map → ripple-DMI95LHg.js.map} +1 -1
  37. package/dist/chunks/{ripple-S5nRL6TJ.js → ripple-DieNd7XQ.js} +2 -2
  38. package/dist/chunks/{ripple-S5nRL6TJ.js.map → ripple-DieNd7XQ.js.map} +1 -1
  39. package/dist/chunks/scroll-area-C8l3z7wv.js +2 -0
  40. package/dist/chunks/scroll-area-C8l3z7wv.js.map +1 -0
  41. package/dist/chunks/{scroll-area-CsOiTMG3.js → scroll-area-zt_z9PRo.js} +168 -163
  42. package/dist/chunks/scroll-area-zt_z9PRo.js.map +1 -0
  43. package/dist/chunks/select-CC7ump6t.js +2 -0
  44. package/dist/chunks/select-CC7ump6t.js.map +1 -0
  45. package/dist/chunks/{select-CJRY9hSL.js → select-qaP_vaF3.js} +181 -181
  46. package/dist/chunks/select-qaP_vaF3.js.map +1 -0
  47. package/dist/chunks/{styled-components.browser.esm-C7xt3djl.js → styled-components.browser.esm-CAEXERbT.js} +732 -702
  48. package/dist/chunks/styled-components.browser.esm-CAEXERbT.js.map +1 -0
  49. package/dist/chunks/styled-components.browser.esm-DwaG9BxE.js +49 -0
  50. package/dist/chunks/styled-components.browser.esm-DwaG9BxE.js.map +1 -0
  51. package/dist/chunks/{textarea-COi5ngTN.js → textarea-BIy5pTb5.js} +5 -5
  52. package/dist/chunks/{textarea-COi5ngTN.js.map → textarea-BIy5pTb5.js.map} +1 -1
  53. package/dist/chunks/{textarea-99dejq_o.js → textarea-Cklud2kp.js} +2 -2
  54. package/dist/chunks/{textarea-99dejq_o.js.map → textarea-Cklud2kp.js.map} +1 -1
  55. package/dist/chunks/{tooltip-Bxodcuiq.js → tooltip-B-5G3VVC.js} +2 -2
  56. package/dist/chunks/{tooltip-Bxodcuiq.js.map → tooltip-B-5G3VVC.js.map} +1 -1
  57. package/dist/chunks/{tooltip-DWnKIv1c.js → tooltip-DGFz59KW.js} +2 -2
  58. package/dist/chunks/{tooltip-DWnKIv1c.js.map → tooltip-DGFz59KW.js.map} +1 -1
  59. package/dist/divider/index.cjs.js +1 -1
  60. package/dist/divider/index.es.js +2 -2
  61. package/dist/modal/index.cjs.js +1 -1
  62. package/dist/modal/index.es.js +2 -2
  63. package/dist/pagination/index.cjs.js +1 -1
  64. package/dist/pagination/index.cjs.js.map +1 -1
  65. package/dist/pagination/index.es.js +27 -28
  66. package/dist/pagination/index.es.js.map +1 -1
  67. package/dist/phone-input/index.cjs.js +1 -1
  68. package/dist/phone-input/index.cjs.js.map +1 -1
  69. package/dist/phone-input/index.es.js +16 -16
  70. package/dist/ripple/index.cjs.js +1 -1
  71. package/dist/ripple/index.es.js +1 -1
  72. package/dist/select-input/index.cjs.js +1 -1
  73. package/dist/select-input/index.es.js +3 -3
  74. package/dist/table/index.cjs.js +1 -1
  75. package/dist/table/index.es.js +3 -3
  76. package/dist/time-input/index.cjs.js +1 -1
  77. package/dist/time-input/index.cjs.js.map +1 -1
  78. package/dist/time-input/index.es.js +24 -25
  79. package/dist/time-input/index.es.js.map +1 -1
  80. package/dist/tooltip/index.cjs.js +1 -1
  81. package/dist/tooltip/index.es.js +1 -1
  82. package/dist/ui/index.cjs.js +4 -4
  83. package/dist/ui/index.cjs.js.map +1 -1
  84. package/dist/ui/index.es.js +1063 -1052
  85. package/dist/ui/index.es.js.map +1 -1
  86. package/package.json +1 -1
  87. package/dist/chunks/index-BD4EmzUR.js +0 -15
  88. package/dist/chunks/index-BD4EmzUR.js.map +0 -1
  89. package/dist/chunks/index-COBcVFMF.js +0 -2
  90. package/dist/chunks/index-COBcVFMF.js.map +0 -1
  91. package/dist/chunks/jsx-runtime-DZW6kfQG.js +0 -2
  92. package/dist/chunks/scroll-area--KGqTnx5.js +0 -2
  93. package/dist/chunks/scroll-area--KGqTnx5.js.map +0 -1
  94. package/dist/chunks/scroll-area-CsOiTMG3.js.map +0 -1
  95. package/dist/chunks/select-CJRY9hSL.js.map +0 -1
  96. package/dist/chunks/select-DCeDDexH.js +0 -2
  97. package/dist/chunks/select-DCeDDexH.js.map +0 -1
  98. package/dist/chunks/styled-components.browser.esm-C7xt3djl.js.map +0 -1
  99. package/dist/chunks/styled-components.browser.esm-CDXyhBVL.js +0 -49
  100. package/dist/chunks/styled-components.browser.esm-CDXyhBVL.js.map +0 -1
@@ -1,39 +1,38 @@
1
- import { j as r } from "./jsx-runtime-Dk9ExdSX.js";
1
+ 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 { u as bt, c as Ee } from "./index-BD4EmzUR.js";
6
- import { c as Ie, P as E, d as Y, u as Me, e as Ae, f as Re, g as Pt, b as _, h as It, i as Rt, R as Tt, F as Nt, D as _t } from "./textarea-COi5ngTN.js";
7
- import { u as L, c as Se } from "./index-6UmdGTUS.js";
8
- import { u as Et, o as At, s as jt, f as Mt, b as Ot, a as Dt, h as Lt, l as kt } from "./floating-ui.react-dom-DoFTdqmA.js";
9
- import { q as Ht } from "./floating-ui.dom-DvdgQsph.js";
10
- import { CheckIcon as Bt, ChevronDownIcon as Oe, ChevronUpIcon as Vt } from "lucide-react";
5
+ import { c as bt, u as Pt, b as Ee, a as It, C as Me } from "./index-VJ2Qvmen.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-BIy5pTb5.js";
7
+ import { u as L, c as Se } from "./index-Do-g2tEs.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";
11
10
  import { c as Z } from "./utils-B6yFEsav.js";
12
11
  function zt(e) {
13
12
  const o = e + "CollectionProvider", [t, l] = Ie(o), [a, d] = t(
14
13
  o,
15
14
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
16
- ), s = (p) => {
17
- const { scope: h, children: x } = p, f = ne.useRef(null), g = ne.useRef(/* @__PURE__ */ new Map()).current;
15
+ ), s = (u) => {
16
+ const { scope: h, children: x } = u, f = ne.useRef(null), g = ne.useRef(/* @__PURE__ */ new Map()).current;
18
17
  return /* @__PURE__ */ r.jsx(a, { scope: h, itemMap: g, collectionRef: f, children: x });
19
18
  };
20
19
  s.displayName = o;
21
- const c = e + "CollectionSlot", i = Se(c), u = ne.forwardRef(
22
- (p, h) => {
23
- const { scope: x, children: f } = p, g = d(c, x), R = L(h, g.collectionRef);
20
+ const c = e + "CollectionSlot", i = Se(c), p = ne.forwardRef(
21
+ (u, h) => {
22
+ const { scope: x, children: f } = u, g = d(c, x), R = L(h, g.collectionRef);
24
23
  return /* @__PURE__ */ r.jsx(i, { ref: R, children: f });
25
24
  }
26
25
  );
27
- u.displayName = c;
26
+ p.displayName = c;
28
27
  const v = e + "CollectionItemSlot", S = "data-radix-collection-item", P = Se(v), y = ne.forwardRef(
29
- (p, h) => {
30
- const { scope: x, children: f, ...g } = p, R = ne.useRef(null), A = L(h, R), k = d(v, x);
28
+ (u, h) => {
29
+ const { scope: x, children: f, ...g } = u, R = ne.useRef(null), A = L(h, R), k = d(v, x);
31
30
  return ne.useEffect(() => (k.itemMap.set(R, { ref: R, ...g }), () => void k.itemMap.delete(R))), /* @__PURE__ */ r.jsx(P, { [S]: "", ref: A, children: f });
32
31
  }
33
32
  );
34
33
  y.displayName = v;
35
- function w(p) {
36
- const h = d(e + "CollectionConsumer", p);
34
+ function w(u) {
35
+ const h = d(e + "CollectionConsumer", u);
37
36
  return ne.useCallback(() => {
38
37
  const f = h.collectionRef.current;
39
38
  if (!f) return [];
@@ -44,7 +43,7 @@ function zt(e) {
44
43
  }, [h.collectionRef, h.itemMap]);
45
44
  }
46
45
  return [
47
- { Provider: s, Slot: u, ItemSlot: y },
46
+ { Provider: s, Slot: p, ItemSlot: y },
48
47
  w,
49
48
  l
50
49
  ];
@@ -77,8 +76,8 @@ function Ft(e) {
77
76
  const d = a[0];
78
77
  let s, c;
79
78
  if ("borderBoxSize" in d) {
80
- const i = d.borderBoxSize, u = Array.isArray(i) ? i[0] : i;
81
- s = u.inlineSize, c = u.blockSize;
79
+ const i = d.borderBoxSize, p = Array.isArray(i) ? i[0] : i;
80
+ s = p.inlineSize, c = p.blockSize;
82
81
  } else
83
82
  s = e.offsetWidth, c = e.offsetHeight;
84
83
  t({ width: s, height: c });
@@ -97,8 +96,8 @@ var Ve = "PopperAnchor", ze = n.forwardRef(
97
96
  (e, o) => {
98
97
  const { __scopePopper: t, virtualRef: l, ...a } = e, d = He(Ve, t), s = n.useRef(null), c = L(o, s), i = n.useRef(null);
99
98
  return n.useEffect(() => {
100
- const u = i.current;
101
- i.current = l?.current || s.current, u !== i.current && d.onAnchorChange(i.current);
99
+ const p = i.current;
100
+ i.current = l?.current || s.current, p !== i.current && d.onAnchorChange(i.current);
102
101
  }), l ? null : /* @__PURE__ */ r.jsx(E.div, { ...a, ref: c });
103
102
  }
104
103
  );
@@ -113,49 +112,49 @@ var Ne = "PopperContent", [Kt, Yt] = Le(Ne), We = n.forwardRef(
113
112
  alignOffset: s = 0,
114
113
  arrowPadding: c = 0,
115
114
  avoidCollisions: i = !0,
116
- collisionBoundary: u = [],
115
+ collisionBoundary: p = [],
117
116
  collisionPadding: v = 0,
118
117
  sticky: S = "partial",
119
118
  hideWhenDetached: P = !1,
120
119
  updatePositionStrategy: y = "optimized",
121
120
  onPlaced: w,
122
- ...p
123
- } = 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(u) ? u : [u], $ = V.length > 0, B = {
121
+ ...u
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 = {
124
123
  padding: X,
125
124
  boundary: V.filter(Xt),
126
125
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
127
126
  altBoundary: $
128
- }, { refs: F, floatingStyles: z, placement: j, isPositioned: O, middlewareData: M } = Et({
127
+ }, { refs: F, floatingStyles: z, placement: j, isPositioned: O, middlewareData: M } = jt({
129
128
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
130
129
  strategy: "fixed",
131
130
  placement: G,
132
- whileElementsMounted: (...m) => Ht(...m, {
131
+ whileElementsMounted: (...m) => Vt(...m, {
133
132
  animationFrame: y === "always"
134
133
  }),
135
134
  elements: {
136
135
  reference: h.anchor
137
136
  },
138
137
  middleware: [
139
- At({ mainAxis: a + H, alignmentAxis: s }),
140
- i && jt({
138
+ Mt({ mainAxis: a + H, alignmentAxis: s }),
139
+ i && Ot({
141
140
  mainAxis: !0,
142
141
  crossAxis: !1,
143
- limiter: S === "partial" ? kt() : void 0,
142
+ limiter: S === "partial" ? Bt() : void 0,
144
143
  ...B
145
144
  }),
146
- i && Mt({ ...B }),
147
- Ot({
145
+ i && Dt({ ...B }),
146
+ Lt({
148
147
  ...B,
149
148
  apply: ({ elements: m, rects: I, availableWidth: D, availableHeight: C }) => {
150
149
  const { width: b, height: T } = I.reference, W = m.floating.style;
151
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`);
152
151
  }
153
152
  }),
154
- R && Dt({ element: R, padding: c }),
153
+ R && kt({ element: R, padding: c }),
155
154
  qt({ arrowWidth: N, arrowHeight: H }),
156
- P && Lt({ strategy: "referenceHidden", ...B })
155
+ P && Ht({ strategy: "referenceHidden", ...B })
157
156
  ]
158
- }), [U, le] = Ue(j), ee = Me(w);
157
+ }), [U, le] = Ue(j), ee = Oe(w);
159
158
  Y(() => {
160
159
  O && ee?.();
161
160
  }, [O, ee]);
@@ -200,10 +199,10 @@ var Ne = "PopperContent", [Kt, Yt] = Le(Ne), We = n.forwardRef(
200
199
  {
201
200
  "data-side": U,
202
201
  "data-align": le,
203
- ...p,
202
+ ...u,
204
203
  ref: g,
205
204
  style: {
206
- ...p.style,
205
+ ...u.style,
207
206
  // if the PopperContent hasn't been placed yet (not all measurements done)
208
207
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
209
208
  animation: O ? void 0 : "none"
@@ -275,9 +274,9 @@ var qt = (e) => ({
275
274
  name: "transformOrigin",
276
275
  options: e,
277
276
  fn(o) {
278
- const { placement: t, rects: l, middlewareData: a } = o, s = a.arrow?.centerOffset !== 0, c = s ? 0 : e.arrowWidth, i = s ? 0 : e.arrowHeight, [u, v] = Ue(t), S = { start: "0%", center: "50%", end: "100%" }[v], P = (a.arrow?.x ?? 0) + c / 2, y = (a.arrow?.y ?? 0) + i / 2;
279
- let w = "", p = "";
280
- return u === "bottom" ? (w = s ? S : `${P}px`, p = `${-i}px`) : u === "top" ? (w = s ? S : `${P}px`, p = `${l.floating.height + i}px`) : u === "right" ? (w = `${-i}px`, p = s ? S : `${y}px`) : u === "left" && (w = `${l.floating.width + i}px`, p = s ? S : `${y}px`), { data: { x: w, y: p } };
277
+ const { placement: t, rects: l, middlewareData: a } = o, s = a.arrow?.centerOffset !== 0, c = s ? 0 : e.arrowWidth, i = s ? 0 : e.arrowHeight, [p, v] = Ue(t), S = { start: "0%", center: "50%", end: "100%" }[v], P = (a.arrow?.x ?? 0) + c / 2, y = (a.arrow?.y ?? 0) + i / 2;
278
+ let w = "", u = "";
279
+ return p === "bottom" ? (w = s ? S : `${P}px`, u = `${-i}px`) : p === "top" ? (w = s ? S : `${P}px`, u = `${l.floating.height + i}px`) : p === "right" ? (w = `${-i}px`, u = s ? S : `${y}px`) : p === "left" && (w = `${l.floating.width + i}px`, u = s ? S : `${y}px`), { data: { x: w, y: u } };
281
280
  }
282
281
  });
283
282
  function Ue(e) {
@@ -285,7 +284,8 @@ function Ue(e) {
285
284
  return [o, t];
286
285
  }
287
286
  var Zt = Be, Jt = ze, Qt = We, eo = Fe;
288
- function to(e) {
287
+ const to = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], oo = bt("chevron-up", to);
288
+ function no(e) {
289
289
  const o = n.useRef({ value: e, previous: e });
290
290
  return n.useMemo(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [e]);
291
291
  }
@@ -301,7 +301,7 @@ var Ke = Object.freeze({
301
301
  clip: "rect(0, 0, 0, 0)",
302
302
  whiteSpace: "nowrap",
303
303
  wordWrap: "normal"
304
- }), oo = "VisuallyHidden", Ye = n.forwardRef(
304
+ }), ro = "VisuallyHidden", Ye = n.forwardRef(
305
305
  (e, o) => /* @__PURE__ */ r.jsx(
306
306
  E.span,
307
307
  {
@@ -311,11 +311,11 @@ var Ke = Object.freeze({
311
311
  }
312
312
  )
313
313
  );
314
- Ye.displayName = oo;
315
- var qo = Ye, no = [" ", "Enter", "ArrowUp", "ArrowDown"], ro = [" ", "Enter"], re = "Select", [fe, me, so] = zt(re), [ie, Zo] = Ie(re, [
316
- so,
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,
317
317
  ke
318
- ]), he = ke(), [ao, J] = ie(re), [io, lo] = ie(re), Ge = (e) => {
318
+ ]), he = ke(), [lo, J] = ie(re), [co, uo] = ie(re), Ge = (e) => {
319
319
  const {
320
320
  __scopeSelect: o,
321
321
  children: t,
@@ -325,13 +325,13 @@ var qo = Ye, no = [" ", "Enter", "ArrowUp", "ArrowDown"], ro = [" ", "Enter"], r
325
325
  value: s,
326
326
  defaultValue: c,
327
327
  onValueChange: i,
328
- dir: u,
328
+ dir: p,
329
329
  name: v,
330
330
  autoComplete: S,
331
331
  disabled: P,
332
332
  required: y,
333
333
  form: w
334
- } = e, p = he(o), [h, x] = n.useState(null), [f, g] = n.useState(null), [R, A] = n.useState(!1), k = bt(u), [N, H] = Ae({
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({
335
335
  prop: l,
336
336
  defaultProp: a ?? !1,
337
337
  onChange: d,
@@ -342,8 +342,8 @@ var qo = Ye, no = [" ", "Enter", "ArrowUp", "ArrowDown"], ro = [" ", "Enter"], r
342
342
  onChange: i,
343
343
  caller: re
344
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(";");
345
- return /* @__PURE__ */ r.jsx(Zt, { ...p, children: /* @__PURE__ */ r.jsxs(
346
- ao,
345
+ return /* @__PURE__ */ r.jsx(Zt, { ...u, children: /* @__PURE__ */ r.jsxs(
346
+ lo,
347
347
  {
348
348
  required: y,
349
349
  scope: o,
@@ -363,7 +363,7 @@ var qo = Ye, no = [" ", "Enter", "ArrowUp", "ArrowDown"], ro = [" ", "Enter"], r
363
363
  disabled: P,
364
364
  children: [
365
365
  /* @__PURE__ */ r.jsx(fe.Provider, { scope: o, children: /* @__PURE__ */ r.jsx(
366
- io,
366
+ co,
367
367
  {
368
368
  scope: e.__scopeSelect,
369
369
  onNativeOptionAdd: n.useCallback((j) => {
@@ -404,13 +404,13 @@ var qo = Ye, no = [" ", "Enter", "ArrowUp", "ArrowDown"], ro = [" ", "Enter"], r
404
404
  Ge.displayName = re;
405
405
  var Xe = "SelectTrigger", qe = n.forwardRef(
406
406
  (e, o) => {
407
- const { __scopeSelect: t, disabled: l = !1, ...a } = e, d = he(t), s = J(Xe, t), c = s.disabled || l, i = L(o, s.onTriggerChange), u = me(t), v = n.useRef("touch"), [S, P, y] = yt((p) => {
408
- const h = u().filter((g) => !g.disabled), x = h.find((g) => g.value === s.value), f = Ct(h, p, x);
407
+ const { __scopeSelect: t, disabled: l = !1, ...a } = e, d = he(t), s = J(Xe, t), c = s.disabled || l, i = L(o, s.onTriggerChange), p = me(t), v = n.useRef("touch"), [S, P, y] = yt((u) => {
408
+ const h = p().filter((g) => !g.disabled), x = h.find((g) => g.value === s.value), f = Ct(h, u, x);
409
409
  f !== void 0 && s.onValueChange(f.value);
410
- }), w = (p) => {
411
- c || (s.onOpenChange(!0), y()), p && (s.triggerPointerDownPosRef.current = {
412
- x: Math.round(p.pageX),
413
- y: Math.round(p.pageY)
410
+ }), w = (u) => {
411
+ c || (s.onOpenChange(!0), y()), u && (s.triggerPointerDownPosRef.current = {
412
+ x: Math.round(u.pageX),
413
+ y: Math.round(u.pageY)
414
414
  });
415
415
  };
416
416
  return /* @__PURE__ */ r.jsx(Jt, { asChild: !0, ...d, children: /* @__PURE__ */ r.jsx(
@@ -429,17 +429,17 @@ var Xe = "SelectTrigger", qe = n.forwardRef(
429
429
  "data-placeholder": wt(s.value) ? "" : void 0,
430
430
  ...a,
431
431
  ref: i,
432
- onClick: _(a.onClick, (p) => {
433
- p.currentTarget.focus(), v.current !== "mouse" && w(p);
432
+ onClick: _(a.onClick, (u) => {
433
+ u.currentTarget.focus(), v.current !== "mouse" && w(u);
434
434
  }),
435
- onPointerDown: _(a.onPointerDown, (p) => {
436
- v.current = p.pointerType;
437
- const h = p.target;
438
- h.hasPointerCapture(p.pointerId) && h.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && p.pointerType === "mouse" && (w(p), p.preventDefault());
435
+ onPointerDown: _(a.onPointerDown, (u) => {
436
+ v.current = u.pointerType;
437
+ const h = u.target;
438
+ h.hasPointerCapture(u.pointerId) && h.releasePointerCapture(u.pointerId), u.button === 0 && u.ctrlKey === !1 && u.pointerType === "mouse" && (w(u), u.preventDefault());
439
439
  }),
440
- onKeyDown: _(a.onKeyDown, (p) => {
440
+ onKeyDown: _(a.onKeyDown, (u) => {
441
441
  const h = S.current !== "";
442
- !(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && P(p.key), !(h && p.key === " ") && no.includes(p.key) && (w(), p.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());
443
443
  })
444
444
  }
445
445
  ) });
@@ -448,10 +448,10 @@ var Xe = "SelectTrigger", qe = n.forwardRef(
448
448
  qe.displayName = Xe;
449
449
  var Ze = "SelectValue", Je = n.forwardRef(
450
450
  (e, o) => {
451
- const { __scopeSelect: t, className: l, style: a, children: d, placeholder: s = "", ...c } = e, i = J(Ze, t), { onValueNodeHasChildrenChange: u } = i, v = d !== void 0, S = L(o, i.onValueNodeChange);
451
+ const { __scopeSelect: t, className: l, style: a, children: d, placeholder: s = "", ...c } = e, i = J(Ze, t), { onValueNodeHasChildrenChange: p } = i, v = d !== void 0, S = L(o, i.onValueNodeChange);
452
452
  return Y(() => {
453
- u(v);
454
- }, [u, v]), /* @__PURE__ */ r.jsx(
453
+ p(v);
454
+ }, [p, v]), /* @__PURE__ */ r.jsx(
455
455
  E.span,
456
456
  {
457
457
  ...c,
@@ -463,15 +463,15 @@ var Ze = "SelectValue", Je = n.forwardRef(
463
463
  }
464
464
  );
465
465
  Je.displayName = Ze;
466
- var co = "SelectIcon", Qe = n.forwardRef(
466
+ var po = "SelectIcon", Qe = n.forwardRef(
467
467
  (e, o) => {
468
468
  const { __scopeSelect: t, children: l, ...a } = e;
469
469
  return /* @__PURE__ */ r.jsx(E.span, { "aria-hidden": !0, ...a, ref: o, children: l || "▼" });
470
470
  }
471
471
  );
472
- Qe.displayName = co;
473
- var po = "SelectPortal", et = (e) => /* @__PURE__ */ r.jsx(Pt, { asChild: !0, ...e });
474
- et.displayName = po;
472
+ Qe.displayName = po;
473
+ var fo = "SelectPortal", et = (e) => /* @__PURE__ */ r.jsx(Rt, { asChild: !0, ...e });
474
+ et.displayName = fo;
475
475
  var se = "SelectContent", tt = n.forwardRef(
476
476
  (e, o) => {
477
477
  const t = J(se, e.__scopeSelect), [l, a] = n.useState();
@@ -488,7 +488,7 @@ var se = "SelectContent", tt = n.forwardRef(
488
488
  }
489
489
  );
490
490
  tt.displayName = se;
491
- var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.RemoveScroll"), nt = n.forwardRef(
491
+ var K = 10, [ot, Q] = ie(se), mo = "SelectContentImpl", ho = Se("SelectContent.RemoveScroll"), nt = n.forwardRef(
492
492
  (e, o) => {
493
493
  const {
494
494
  __scopeSelect: t,
@@ -500,13 +500,13 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
500
500
  // PopperContent props
501
501
  side: c,
502
502
  sideOffset: i,
503
- align: u,
503
+ align: p,
504
504
  alignOffset: v,
505
505
  arrowPadding: S,
506
506
  collisionBoundary: P,
507
507
  collisionPadding: y,
508
508
  sticky: w,
509
- hideWhenDetached: p,
509
+ hideWhenDetached: u,
510
510
  avoidCollisions: h,
511
511
  //
512
512
  ...x
@@ -514,8 +514,8 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
514
514
  null
515
515
  ), $ = me(t), [B, F] = n.useState(!1), z = n.useRef(!1);
516
516
  n.useEffect(() => {
517
- if (g) return It(g);
518
- }, [g]), Rt();
517
+ if (g) return Tt(g);
518
+ }, [g]), Nt();
519
519
  const j = n.useCallback(
520
520
  (m) => {
521
521
  const [I, ...D] = $().map((T) => T.ref.current), [C] = D.slice(-1), b = document.activeElement;
@@ -570,13 +570,13 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
570
570
  ), ae = l === "popper" ? we : rt, te = ae === we ? {
571
571
  side: c,
572
572
  sideOffset: i,
573
- align: u,
573
+ align: p,
574
574
  alignOffset: v,
575
575
  arrowPadding: S,
576
576
  collisionBoundary: P,
577
577
  collisionPadding: y,
578
578
  sticky: w,
579
- hideWhenDetached: p,
579
+ hideWhenDetached: u,
580
580
  avoidCollisions: h
581
581
  } : {};
582
582
  return /* @__PURE__ */ r.jsx(
@@ -595,8 +595,8 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
595
595
  position: l,
596
596
  isPositioned: B,
597
597
  searchRef: le,
598
- children: /* @__PURE__ */ r.jsx(Tt, { as: fo, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
599
- Nt,
598
+ children: /* @__PURE__ */ r.jsx(_t, { as: ho, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
599
+ Et,
600
600
  {
601
601
  asChild: !0,
602
602
  trapped: f.open,
@@ -607,7 +607,7 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
607
607
  f.trigger?.focus({ preventScroll: !0 }), m.preventDefault();
608
608
  }),
609
609
  children: /* @__PURE__ */ r.jsx(
610
- _t,
610
+ At,
611
611
  {
612
612
  asChild: !0,
613
613
  disableOutsidePointerEvents: !0,
@@ -656,11 +656,11 @@ var K = 10, [ot, Q] = ie(se), uo = "SelectContentImpl", fo = Se("SelectContent.R
656
656
  );
657
657
  }
658
658
  );
659
- nt.displayName = uo;
660
- var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
661
- const { __scopeSelect: t, onPlaced: l, ...a } = e, d = J(se, t), s = Q(se, t), [c, i] = n.useState(null), [u, v] = n.useState(null), S = L(o, (N) => v(N)), P = me(t), y = n.useRef(!1), w = n.useRef(!0), { viewport: p, selectedItem: h, selectedItemText: x, focusSelectedItem: f } = s, g = n.useCallback(() => {
662
- if (d.trigger && d.valueNode && c && u && p && h && x) {
663
- const N = d.trigger.getBoundingClientRect(), H = u.getBoundingClientRect(), G = d.valueNode.getBoundingClientRect(), X = x.getBoundingClientRect();
659
+ nt.displayName = mo;
660
+ var go = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
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(() => {
662
+ if (d.trigger && d.valueNode && c && p && u && h && x) {
663
+ const N = d.trigger.getBoundingClientRect(), H = p.getBoundingClientRect(), G = d.valueNode.getBoundingClientRect(), X = x.getBoundingClientRect();
664
664
  if (d.dir !== "rtl") {
665
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, [
666
666
  K,
@@ -679,11 +679,11 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
679
679
  ]);
680
680
  c.style.minWidth = oe + "px", c.style.right = xe + "px";
681
681
  }
682
- const V = P(), $ = window.innerHeight - K * 2, B = p.scrollHeight, F = window.getComputedStyle(u), z = parseInt(F.borderTopWidth, 10), j = parseInt(F.paddingTop, 10), O = parseInt(F.borderBottomWidth, 10), M = parseInt(F.paddingBottom, 10), U = z + j + B + M + O, le = Math.min(h.offsetHeight * 5, U), ee = window.getComputedStyle(p), ce = parseInt(ee.paddingTop, 10), de = parseInt(ee.paddingBottom, 10), q = N.top + N.height / 2 - K, ae = $ - q, te = h.offsetHeight / 2, m = h.offsetTop + te, I = z + j + m, D = U - I;
682
+ const V = P(), $ = window.innerHeight - K * 2, B = u.scrollHeight, F = window.getComputedStyle(p), z = parseInt(F.borderTopWidth, 10), j = parseInt(F.paddingTop, 10), O = parseInt(F.borderBottomWidth, 10), M = parseInt(F.paddingBottom, 10), U = z + j + B + M + O, le = Math.min(h.offsetHeight * 5, U), ee = window.getComputedStyle(u), ce = parseInt(ee.paddingTop, 10), de = parseInt(ee.paddingBottom, 10), q = N.top + N.height / 2 - K, ae = $ - q, te = h.offsetHeight / 2, m = h.offsetTop + te, I = z + j + m, D = U - I;
683
683
  if (I <= q) {
684
684
  const b = V.length > 0 && h === V[V.length - 1].ref.current;
685
685
  c.style.bottom = "0px";
686
- const T = u.clientHeight - p.offsetTop - p.offsetHeight, W = Math.max(
686
+ const T = p.clientHeight - u.offsetTop - u.offsetHeight, W = Math.max(
687
687
  ae,
688
688
  te + // viewport might have padding bottom, include it to avoid a scrollable viewport
689
689
  (b ? de : 0) + T + O
@@ -694,10 +694,10 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
694
694
  c.style.top = "0px";
695
695
  const W = Math.max(
696
696
  q,
697
- z + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
697
+ z + u.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
698
698
  (b ? ce : 0) + te
699
699
  ) + D;
700
- c.style.height = W + "px", p.scrollTop = I - q + p.offsetTop;
700
+ c.style.height = W + "px", u.scrollTop = I - q + u.offsetTop;
701
701
  }
702
702
  c.style.margin = `${K}px 0`, c.style.minHeight = le + "px", c.style.maxHeight = $ + "px", l?.(), requestAnimationFrame(() => y.current = !0);
703
703
  }
@@ -706,8 +706,8 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
706
706
  d.trigger,
707
707
  d.valueNode,
708
708
  c,
709
- u,
710
709
  p,
710
+ u,
711
711
  h,
712
712
  x,
713
713
  d.dir,
@@ -716,8 +716,8 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
716
716
  Y(() => g(), [g]);
717
717
  const [R, A] = n.useState();
718
718
  Y(() => {
719
- u && A(window.getComputedStyle(u).zIndex);
720
- }, [u]);
719
+ p && A(window.getComputedStyle(p).zIndex);
720
+ }, [p]);
721
721
  const k = n.useCallback(
722
722
  (N) => {
723
723
  N && w.current === !0 && (g(), f?.(), w.current = !1);
@@ -725,7 +725,7 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
725
725
  [g, f]
726
726
  );
727
727
  return /* @__PURE__ */ r.jsx(
728
- go,
728
+ xo,
729
729
  {
730
730
  scope: t,
731
731
  contentWrapper: c,
@@ -761,8 +761,8 @@ var mo = "SelectItemAlignedPosition", rt = n.forwardRef((e, o) => {
761
761
  }
762
762
  );
763
763
  });
764
- rt.displayName = mo;
765
- var ho = "SelectPopperPosition", we = n.forwardRef((e, o) => {
764
+ rt.displayName = go;
765
+ var vo = "SelectPopperPosition", we = n.forwardRef((e, o) => {
766
766
  const {
767
767
  __scopeSelect: t,
768
768
  align: l = "start",
@@ -790,8 +790,8 @@ var ho = "SelectPopperPosition", we = n.forwardRef((e, o) => {
790
790
  }
791
791
  );
792
792
  });
793
- we.displayName = ho;
794
- var [go, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
793
+ we.displayName = vo;
794
+ var [xo, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
795
795
  (e, o) => {
796
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);
797
797
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -824,12 +824,12 @@ var [go, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
824
824
  overflow: "hidden auto",
825
825
  ...a.style
826
826
  },
827
- onScroll: _(a.onScroll, (u) => {
828
- const v = u.currentTarget, { contentWrapper: S, shouldExpandOnScrollRef: P } = s;
827
+ onScroll: _(a.onScroll, (p) => {
828
+ const v = p.currentTarget, { contentWrapper: S, shouldExpandOnScrollRef: P } = s;
829
829
  if (P?.current && S) {
830
830
  const y = Math.abs(i.current - v.scrollTop);
831
831
  if (y > 0) {
832
- const w = window.innerHeight - K * 2, p = parseFloat(S.style.minHeight), h = parseFloat(S.style.height), x = Math.max(p, h);
832
+ const w = window.innerHeight - K * 2, u = parseFloat(S.style.minHeight), h = parseFloat(S.style.height), x = Math.max(u, h);
833
833
  if (x < w) {
834
834
  const f = x + y, g = Math.min(w, f), R = f - g;
835
835
  S.style.height = g + "px", S.style.bottom === "0px" && (v.scrollTop = R > 0 ? R : 0, S.style.justifyContent = "flex-end");
@@ -844,21 +844,21 @@ var [go, _e] = ie(se, {}), ye = "SelectViewport", st = n.forwardRef(
844
844
  }
845
845
  );
846
846
  st.displayName = ye;
847
- var at = "SelectGroup", [vo, xo] = ie(at), it = n.forwardRef(
847
+ var at = "SelectGroup", [So, wo] = ie(at), it = n.forwardRef(
848
848
  (e, o) => {
849
849
  const { __scopeSelect: t, ...l } = e, a = Re();
850
- return /* @__PURE__ */ r.jsx(vo, { 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 }) });
851
851
  }
852
852
  );
853
853
  it.displayName = at;
854
854
  var lt = "SelectLabel", ct = n.forwardRef(
855
855
  (e, o) => {
856
- const { __scopeSelect: t, ...l } = e, a = xo(lt, t);
856
+ const { __scopeSelect: t, ...l } = e, a = wo(lt, t);
857
857
  return /* @__PURE__ */ r.jsx(E.div, { id: a.id, ...l, ref: o });
858
858
  }
859
859
  );
860
860
  ct.displayName = lt;
861
- var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
861
+ var pe = "SelectItem", [yo, dt] = ie(pe), ut = n.forwardRef(
862
862
  (e, o) => {
863
863
  const {
864
864
  __scopeSelect: t,
@@ -866,10 +866,10 @@ var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
866
866
  disabled: a = !1,
867
867
  textValue: d,
868
868
  ...s
869
- } = e, c = J(ue, t), i = Q(ue, t), u = c.value === l, [v, S] = n.useState(d ?? ""), [P, y] = n.useState(!1), w = L(
869
+ } = e, c = J(pe, t), i = Q(pe, t), p = c.value === l, [v, S] = n.useState(d ?? ""), [P, y] = n.useState(!1), w = L(
870
870
  o,
871
871
  (f) => i.itemRefCallback?.(f, l, a)
872
- ), p = Re(), h = n.useRef("touch"), x = () => {
872
+ ), u = Re(), h = n.useRef("touch"), x = () => {
873
873
  a || (c.onValueChange(l), c.onOpenChange(!1));
874
874
  };
875
875
  if (l === "")
@@ -877,13 +877,13 @@ var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
877
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."
878
878
  );
879
879
  return /* @__PURE__ */ r.jsx(
880
- So,
880
+ yo,
881
881
  {
882
882
  scope: t,
883
883
  value: l,
884
884
  disabled: a,
885
- textId: p,
886
- isSelected: u,
885
+ textId: u,
886
+ isSelected: p,
887
887
  onItemTextChange: n.useCallback((f) => {
888
888
  S((g) => g || (f?.textContent ?? "").trim());
889
889
  }, []),
@@ -898,10 +898,10 @@ var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
898
898
  E.div,
899
899
  {
900
900
  role: "option",
901
- "aria-labelledby": p,
901
+ "aria-labelledby": u,
902
902
  "data-highlighted": P ? "" : void 0,
903
- "aria-selected": u && P,
904
- "data-state": u ? "checked" : "unchecked",
903
+ "aria-selected": p && P,
904
+ "data-state": p ? "checked" : "unchecked",
905
905
  "aria-disabled": a || void 0,
906
906
  "data-disabled": a ? "" : void 0,
907
907
  tabIndex: a ? void 0 : -1,
@@ -925,7 +925,7 @@ var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
925
925
  f.currentTarget === document.activeElement && i.onItemLeave?.();
926
926
  }),
927
927
  onKeyDown: _(s.onKeyDown, (f) => {
928
- i.searchRef?.current !== "" && f.key === " " || (ro.includes(f.key) && x(), f.key === " " && f.preventDefault());
928
+ i.searchRef?.current !== "" && f.key === " " || (ao.includes(f.key) && x(), f.key === " " && f.preventDefault());
929
929
  })
930
930
  }
931
931
  )
@@ -935,10 +935,10 @@ var ue = "SelectItem", [So, dt] = ie(ue), pt = n.forwardRef(
935
935
  );
936
936
  }
937
937
  );
938
- pt.displayName = ue;
939
- var pe = "SelectItemText", ut = n.forwardRef(
938
+ ut.displayName = pe;
939
+ var ue = "SelectItemText", pt = n.forwardRef(
940
940
  (e, o) => {
941
- const { __scopeSelect: t, className: l, style: a, ...d } = e, s = J(pe, t), c = Q(pe, t), i = dt(pe, t), u = lo(pe, 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(
942
942
  o,
943
943
  (x) => S(x),
944
944
  i.onItemTextChange,
@@ -946,14 +946,14 @@ var pe = "SelectItemText", ut = n.forwardRef(
946
946
  ), y = v?.textContent, w = n.useMemo(
947
947
  () => /* @__PURE__ */ r.jsx("option", { value: i.value, disabled: i.disabled, children: y }, i.value),
948
948
  [i.disabled, i.value, y]
949
- ), { onNativeOptionAdd: p, onNativeOptionRemove: h } = u;
950
- return Y(() => (p(w), () => h(w)), [p, h, w]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
949
+ ), { onNativeOptionAdd: u, onNativeOptionRemove: h } = p;
950
+ return Y(() => (u(w), () => h(w)), [u, h, w]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
951
951
  /* @__PURE__ */ r.jsx(E.span, { id: i.textId, ...d, ref: P }),
952
952
  i.isSelected && s.valueNode && !s.valueNodeHasChildren ? je.createPortal(d.children, s.valueNode) : null
953
953
  ] });
954
954
  }
955
955
  );
956
- ut.displayName = pe;
956
+ pt.displayName = ue;
957
957
  var ft = "SelectItemIndicator", mt = n.forwardRef(
958
958
  (e, o) => {
959
959
  const { __scopeSelect: t, ...l } = e;
@@ -966,8 +966,8 @@ var Ce = "SelectScrollUpButton", ht = n.forwardRef((e, o) => {
966
966
  return Y(() => {
967
967
  if (t.viewport && t.isPositioned) {
968
968
  let c = function() {
969
- const u = i.scrollTop > 0;
970
- d(u);
969
+ const p = i.scrollTop > 0;
970
+ d(p);
971
971
  };
972
972
  const i = t.viewport;
973
973
  return c(), i.addEventListener("scroll", c), () => i.removeEventListener("scroll", c);
@@ -990,7 +990,7 @@ var be = "SelectScrollDownButton", gt = n.forwardRef((e, o) => {
990
990
  return Y(() => {
991
991
  if (t.viewport && t.isPositioned) {
992
992
  let c = function() {
993
- const u = i.scrollHeight - i.clientHeight, v = Math.ceil(i.scrollTop) < u;
993
+ const p = i.scrollHeight - i.clientHeight, v = Math.ceil(i.scrollTop) < p;
994
994
  d(v);
995
995
  };
996
996
  const i = t.viewport;
@@ -1033,23 +1033,23 @@ var vt = n.forwardRef((e, o) => {
1033
1033
  })
1034
1034
  }
1035
1035
  );
1036
- }), wo = "SelectSeparator", xt = n.forwardRef(
1036
+ }), Co = "SelectSeparator", xt = n.forwardRef(
1037
1037
  (e, o) => {
1038
1038
  const { __scopeSelect: t, ...l } = e;
1039
1039
  return /* @__PURE__ */ r.jsx(E.div, { "aria-hidden": !0, ...l, ref: o });
1040
1040
  }
1041
1041
  );
1042
- xt.displayName = wo;
1043
- var Pe = "SelectArrow", yo = n.forwardRef(
1042
+ xt.displayName = Co;
1043
+ var Pe = "SelectArrow", bo = n.forwardRef(
1044
1044
  (e, o) => {
1045
1045
  const { __scopeSelect: t, ...l } = e, a = he(t), d = J(Pe, t), s = Q(Pe, t);
1046
1046
  return d.open && s.position === "popper" ? /* @__PURE__ */ r.jsx(eo, { ...a, ...l, ref: o }) : null;
1047
1047
  }
1048
1048
  );
1049
- yo.displayName = Pe;
1050
- var Co = "SelectBubbleInput", St = n.forwardRef(
1049
+ bo.displayName = Pe;
1050
+ var Po = "SelectBubbleInput", St = n.forwardRef(
1051
1051
  ({ __scopeSelect: e, value: o, ...t }, l) => {
1052
- const a = n.useRef(null), d = L(l, a), s = to(o);
1052
+ const a = n.useRef(null), d = L(l, a), s = no(o);
1053
1053
  return n.useEffect(() => {
1054
1054
  const c = a.current;
1055
1055
  if (!c) return;
@@ -1072,16 +1072,16 @@ var Co = "SelectBubbleInput", St = n.forwardRef(
1072
1072
  );
1073
1073
  }
1074
1074
  );
1075
- St.displayName = Co;
1075
+ St.displayName = Po;
1076
1076
  function wt(e) {
1077
1077
  return e === "" || e === void 0;
1078
1078
  }
1079
1079
  function yt(e) {
1080
- 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(
1081
1081
  (s) => {
1082
1082
  const c = t.current + s;
1083
- o(c), (function i(u) {
1084
- t.current = u, window.clearTimeout(l.current), u !== "" && (l.current = window.setTimeout(() => i(""), 1e3));
1083
+ o(c), (function i(p) {
1084
+ t.current = p, window.clearTimeout(l.current), p !== "" && (l.current = window.setTimeout(() => i(""), 1e3));
1085
1085
  })(c);
1086
1086
  },
1087
1087
  [o]
@@ -1091,35 +1091,35 @@ function yt(e) {
1091
1091
  return n.useEffect(() => () => window.clearTimeout(l.current), []), [t, a, d];
1092
1092
  }
1093
1093
  function Ct(e, o, t) {
1094
- const a = o.length > 1 && Array.from(o).every((u) => u === o[0]) ? o[0] : o, d = t ? e.indexOf(t) : -1;
1095
- let s = bo(e, Math.max(d, 0));
1096
- a.length === 1 && (s = s.filter((u) => u !== t));
1094
+ const a = o.length > 1 && Array.from(o).every((p) => p === o[0]) ? o[0] : o, d = t ? e.indexOf(t) : -1;
1095
+ let s = Io(e, Math.max(d, 0));
1096
+ a.length === 1 && (s = s.filter((p) => p !== t));
1097
1097
  const i = s.find(
1098
- (u) => u.textValue.toLowerCase().startsWith(a.toLowerCase())
1098
+ (p) => p.textValue.toLowerCase().startsWith(a.toLowerCase())
1099
1099
  );
1100
1100
  return i !== t ? i : void 0;
1101
1101
  }
1102
- function bo(e, o) {
1102
+ function Io(e, o) {
1103
1103
  return e.map((t, l) => e[(o + l) % e.length]);
1104
1104
  }
1105
- var Po = Ge, Io = qe, Ro = Je, To = Qe, No = et, _o = tt, Eo = st, Ao = it, jo = ct, Mo = pt, Oo = ut, Do = mt, Lo = ht, ko = gt, Ho = xt;
1106
- function Jo({ ...e }) {
1107
- return /* @__PURE__ */ r.jsx(Po, { "data-slot": "select", ...e });
1108
- }
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;
1109
1106
  function Qo({ ...e }) {
1110
- return /* @__PURE__ */ r.jsx(Ao, { "data-slot": "select-group", ...e });
1107
+ return /* @__PURE__ */ r.jsx(Ro, { "data-slot": "select", ...e });
1111
1108
  }
1112
1109
  function en({ ...e }) {
1113
- return /* @__PURE__ */ r.jsx(Ro, { "data-slot": "select-value", ...e });
1110
+ return /* @__PURE__ */ r.jsx(Mo, { "data-slot": "select-group", ...e });
1111
+ }
1112
+ function tn({ ...e }) {
1113
+ return /* @__PURE__ */ r.jsx(No, { "data-slot": "select-value", ...e });
1114
1114
  }
1115
- function tn({
1115
+ function on({
1116
1116
  className: e,
1117
1117
  size: o = "default",
1118
1118
  children: t,
1119
1119
  ...l
1120
1120
  }) {
1121
1121
  return /* @__PURE__ */ r.jsxs(
1122
- Io,
1122
+ To,
1123
1123
  {
1124
1124
  "data-slot": "select-trigger",
1125
1125
  "data-size": o,
@@ -1130,14 +1130,14 @@ function tn({
1130
1130
  ...l,
1131
1131
  children: [
1132
1132
  t,
1133
- /* @__PURE__ */ r.jsx(To, { 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" }) })
1134
1134
  ]
1135
1135
  }
1136
1136
  );
1137
1137
  }
1138
- function on({ className: e, children: o, position: t = "popper", ...l }) {
1139
- return /* @__PURE__ */ r.jsx(No, { children: /* @__PURE__ */ r.jsxs(
1140
- _o,
1138
+ function nn({ className: e, children: o, position: t = "popper", ...l }) {
1139
+ return /* @__PURE__ */ r.jsx(Eo, { children: /* @__PURE__ */ r.jsxs(
1140
+ Ao,
1141
1141
  {
1142
1142
  "data-slot": "select-content",
1143
1143
  className: Z(
@@ -1148,9 +1148,9 @@ function on({ className: e, children: o, position: t = "popper", ...l }) {
1148
1148
  position: t,
1149
1149
  ...l,
1150
1150
  children: [
1151
- /* @__PURE__ */ r.jsx(Bo, {}),
1151
+ /* @__PURE__ */ r.jsx(zo, {}),
1152
1152
  /* @__PURE__ */ r.jsx(
1153
- Eo,
1153
+ jo,
1154
1154
  {
1155
1155
  className: Z(
1156
1156
  "p-1",
@@ -1159,17 +1159,17 @@ function on({ className: e, children: o, position: t = "popper", ...l }) {
1159
1159
  children: o
1160
1160
  }
1161
1161
  ),
1162
- /* @__PURE__ */ r.jsx(Vo, {})
1162
+ /* @__PURE__ */ r.jsx(Wo, {})
1163
1163
  ]
1164
1164
  }
1165
1165
  ) });
1166
1166
  }
1167
- function nn({ className: e, ...o }) {
1168
- return /* @__PURE__ */ r.jsx(jo, { "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 });
1169
1169
  }
1170
- function rn({ className: e, children: o, ...t }) {
1170
+ function sn({ className: e, children: o, ...t }) {
1171
1171
  return /* @__PURE__ */ r.jsxs(
1172
- Mo,
1172
+ Do,
1173
1173
  {
1174
1174
  "data-slot": "select-item",
1175
1175
  className: Z(
@@ -1178,15 +1178,15 @@ function rn({ className: e, children: o, ...t }) {
1178
1178
  ),
1179
1179
  ...t,
1180
1180
  children: [
1181
- /* @__PURE__ */ r.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(Do, { children: /* @__PURE__ */ r.jsx(Bt, { className: "size-4" }) }) }),
1182
- /* @__PURE__ */ r.jsx(Oo, { 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 })
1183
1183
  ]
1184
1184
  }
1185
1185
  );
1186
1186
  }
1187
- function sn({ className: e, ...o }) {
1187
+ function an({ className: e, ...o }) {
1188
1188
  return /* @__PURE__ */ r.jsx(
1189
- Ho,
1189
+ Vo,
1190
1190
  {
1191
1191
  "data-slot": "select-separator",
1192
1192
  className: Z("bg-border pointer-events-none -mx-1 my-1 h-px", e),
@@ -1194,25 +1194,25 @@ function sn({ className: e, ...o }) {
1194
1194
  }
1195
1195
  );
1196
1196
  }
1197
- function Bo({ className: e, ...o }) {
1197
+ function zo({ className: e, ...o }) {
1198
1198
  return /* @__PURE__ */ r.jsx(
1199
- Lo,
1199
+ Ho,
1200
1200
  {
1201
1201
  "data-slot": "select-scroll-up-button",
1202
1202
  className: Z("flex cursor-default items-center justify-center py-1", e),
1203
1203
  ...o,
1204
- children: /* @__PURE__ */ r.jsx(Vt, { className: "size-4" })
1204
+ children: /* @__PURE__ */ r.jsx(oo, { className: "size-4" })
1205
1205
  }
1206
1206
  );
1207
1207
  }
1208
- function Vo({ className: e, ...o }) {
1208
+ function Wo({ className: e, ...o }) {
1209
1209
  return /* @__PURE__ */ r.jsx(
1210
- ko,
1210
+ Bo,
1211
1211
  {
1212
1212
  "data-slot": "select-scroll-down-button",
1213
1213
  className: Z("flex cursor-default items-center justify-center py-1", e),
1214
1214
  ...o,
1215
- children: /* @__PURE__ */ r.jsx(Oe, { className: "size-4" })
1215
+ children: /* @__PURE__ */ r.jsx(Me, { className: "size-4" })
1216
1216
  }
1217
1217
  );
1218
1218
  }
@@ -1220,21 +1220,21 @@ export {
1220
1220
  Jt as A,
1221
1221
  Qt as C,
1222
1222
  Zt as R,
1223
- Jo as S,
1224
- tn as a,
1225
- en as b,
1226
- on as c,
1227
- Qo as d,
1228
- nn as e,
1229
- rn as f,
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
1230
  zt as g,
1231
1231
  ke as h,
1232
1232
  eo as i,
1233
- qo as j,
1233
+ Zo as j,
1234
1234
  Ft as k,
1235
- Vo as l,
1236
- Bo as m,
1237
- sn as n,
1238
- to as u
1235
+ Wo as l,
1236
+ zo as m,
1237
+ an as n,
1238
+ no as u
1239
1239
  };
1240
- //# sourceMappingURL=select-CJRY9hSL.js.map
1240
+ //# sourceMappingURL=select-qaP_vaF3.js.map