@reformer/ui-kit 8.0.0 → 9.0.0-beta.2

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.
package/dist/ui/select.js CHANGED
@@ -1,9 +1,9 @@
1
- import { jsxs as m, jsx as r, Fragment as D } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import * as s from "@radix-ui/react-select";
4
- import { XIcon as E, ChevronDownIcon as I, CheckIcon as P, ChevronUpIcon as H } from "lucide-react";
1
+ import { jsxs as f, jsx as a, Fragment as F } from "react/jsx-runtime";
2
+ import * as u from "react";
3
+ import * as i from "@radix-ui/react-select";
4
+ import { XIcon as A, ChevronDownIcon as _, CheckIcon as G, ChevronUpIcon as K } from "lucide-react";
5
5
  import { c as g } from "../utils-DtaLkIY8.js";
6
- function U(e) {
6
+ function O(e) {
7
7
  switch (e) {
8
8
  case "partial":
9
9
  return { serverSearch: !0, paginated: !0, searchable: !0 };
@@ -14,7 +14,7 @@ function U(e) {
14
14
  return { serverSearch: !1, paginated: !1, searchable: !1 };
15
15
  }
16
16
  }
17
- function z(e) {
17
+ function M(e) {
18
18
  return e.map((t) => ({
19
19
  id: t.id,
20
20
  label: t.label,
@@ -22,17 +22,17 @@ function z(e) {
22
22
  group: t.group
23
23
  }));
24
24
  }
25
- function O(e, t) {
26
- const a = new Set(e.map((o) => o.id)), n = [...e];
27
- for (const o of t)
28
- a.has(o.id) || (a.add(o.id), n.push(o));
25
+ function X(e, t) {
26
+ const r = new Set(e.map((l) => l.id)), n = [...e];
27
+ for (const l of t)
28
+ r.has(l.id) || (r.add(l.id), n.push(l));
29
29
  return n;
30
30
  }
31
- function F(e, t) {
32
- const a = t.trim().toLowerCase();
33
- return a ? e.filter((n) => n.label.toLowerCase().includes(a)) : e;
31
+ function J(e, t) {
32
+ const r = t.trim().toLowerCase();
33
+ return r ? e.filter((n) => n.label.toLowerCase().includes(r)) : e;
34
34
  }
35
- function w() {
35
+ function z() {
36
36
  return {
37
37
  options: [],
38
38
  page: 0,
@@ -43,18 +43,18 @@ function w() {
43
43
  search: ""
44
44
  };
45
45
  }
46
- function G(e, t) {
46
+ function Q(e, t) {
47
47
  switch (t.kind) {
48
48
  case "load-start":
49
49
  return {
50
- ...w(),
50
+ ...z(),
51
51
  loading: !0,
52
52
  search: t.search
53
53
  };
54
54
  case "load-success":
55
55
  return {
56
56
  ...e,
57
- options: z(t.result.items),
57
+ options: M(t.result.items),
58
58
  totalCount: t.result.totalCount,
59
59
  page: t.page,
60
60
  loading: !1,
@@ -65,7 +65,7 @@ function G(e, t) {
65
65
  case "load-more-success":
66
66
  return {
67
67
  ...e,
68
- options: O(e.options, z(t.result.items)),
68
+ options: X(e.options, M(t.result.items)),
69
69
  totalCount: t.result.totalCount,
70
70
  page: t.page,
71
71
  loadingMore: !1,
@@ -74,257 +74,285 @@ function G(e, t) {
74
74
  case "load-error":
75
75
  return { ...e, loading: !1, loadingMore: !1, error: !0 };
76
76
  case "reset":
77
- return w();
77
+ return z();
78
78
  default:
79
79
  return e;
80
80
  }
81
81
  }
82
- function k(e) {
82
+ function R(e) {
83
83
  return e.options.length < e.totalCount;
84
84
  }
85
- function q(e, t = 48) {
85
+ function W(e, t = 48) {
86
86
  return e.scrollTop + e.clientHeight >= e.scrollHeight - t;
87
87
  }
88
- const A = 300;
89
- function K(e) {
90
- const t = p.useMemo(() => U(e?.type), [e?.type]), [a, n] = p.useReducer(G, void 0, w), [o, c] = p.useState("");
91
- p.useEffect(() => {
88
+ const Y = 300;
89
+ function Z(e) {
90
+ const t = u.useMemo(() => O(e?.type), [e?.type]), [r, n] = u.useReducer(Q, void 0, z), [l, d] = u.useState(""), [b, x] = u.useState(0), y = u.useCallback(() => x((s) => s + 1), []);
91
+ u.useEffect(() => {
92
92
  if (!e || t.serverSearch) return;
93
- let i = !1;
93
+ let s = !1;
94
94
  return n({ kind: "load-start", search: "" }), e.load({}).then(
95
- (f) => {
96
- i || n({ kind: "load-success", result: f, page: 1 });
95
+ (h) => {
96
+ s || n({ kind: "load-success", result: h, page: 1 });
97
97
  },
98
98
  () => {
99
- i || n({ kind: "load-error" });
99
+ s || n({ kind: "load-error" });
100
100
  }
101
101
  ), () => {
102
- i = !0;
102
+ s = !0;
103
103
  };
104
- }, [e, t.serverSearch]), p.useEffect(() => {
104
+ }, [e, t.serverSearch, b]), u.useEffect(() => {
105
105
  if (!e || !t.serverSearch) return;
106
- let i = !1;
107
- const f = setTimeout(() => {
108
- n({ kind: "load-start", search: o }), e.load({ search: o, page: 1, pageSize: e.pageSize }).then(
109
- (y) => {
110
- i || n({ kind: "load-success", result: y, page: 1 });
106
+ let s = !1;
107
+ const h = setTimeout(() => {
108
+ n({ kind: "load-start", search: l }), e.load({ search: l, page: 1, pageSize: e.pageSize }).then(
109
+ (C) => {
110
+ s || n({ kind: "load-success", result: C, page: 1 });
111
111
  },
112
112
  () => {
113
- i || n({ kind: "load-error" });
113
+ s || n({ kind: "load-error" });
114
114
  }
115
115
  );
116
- }, A);
116
+ }, Y);
117
117
  return () => {
118
- i = !0, clearTimeout(f);
118
+ s = !0, clearTimeout(h);
119
119
  };
120
- }, [e, t.serverSearch, o]);
121
- const x = p.useCallback(() => {
122
- if (!e || !t.paginated || a.loading || a.loadingMore || !k(a)) return;
123
- const i = a.page + 1;
124
- n({ kind: "load-more-start" }), e.load({ search: a.search, page: i, pageSize: e.pageSize }).then(
125
- (f) => n({ kind: "load-more-success", result: f, page: i }),
120
+ }, [e, t.serverSearch, l, b]);
121
+ const w = u.useCallback(() => {
122
+ if (!e || !t.paginated || r.loading || r.loadingMore || !R(r)) return;
123
+ const s = r.page + 1;
124
+ n({ kind: "load-more-start" }), e.load({ search: r.search, page: s, pageSize: e.pageSize }).then(
125
+ (h) => n({ kind: "load-more-success", result: h, page: s }),
126
126
  () => n({ kind: "load-error", more: !0 })
127
127
  );
128
- }, [e, t.paginated, a]);
128
+ }, [e, t.paginated, r]);
129
129
  return {
130
- options: t.serverSearch ? a.options : F(a.options, o),
131
- loading: a.loading,
132
- loadingMore: a.loadingMore,
133
- hasMore: k(a),
134
- loadMore: x,
135
- searchInput: o,
136
- setSearchInput: c,
130
+ options: t.serverSearch ? r.options : J(r.options, l),
131
+ loading: r.loading,
132
+ loadingMore: r.loadingMore,
133
+ error: r.error,
134
+ hasMore: R(r),
135
+ loadMore: w,
136
+ reload: y,
137
+ searchInput: l,
138
+ setSearchInput: d,
137
139
  flags: t
138
140
  };
139
141
  }
140
- const X = p.forwardRef(
142
+ const $ = u.forwardRef(
141
143
  ({
142
144
  className: e,
143
145
  value: t,
144
- onChange: a,
146
+ onChange: r,
145
147
  onBlur: n,
146
- resource: o,
147
- options: c,
148
- placeholder: x,
149
- disabled: S,
150
- clearable: i = !1,
151
- "data-testid": f,
152
- "aria-invalid": y,
153
- ...M
154
- }, _) => {
155
- const d = K(o), C = p.useMemo(() => c ? c.map((l) => ({
156
- id: l.value,
157
- label: l.label,
158
- value: String(l.value),
159
- group: l.group
160
- })) : d.options, [c, d.options]), L = !c && !!o && d.flags.searchable, b = !c && d.loading, R = (l) => {
161
- a?.(l);
162
- }, j = (l) => {
163
- l || n?.();
164
- }, B = (l) => {
165
- l.stopPropagation(), a?.(null);
166
- }, T = (l) => {
167
- d.flags.paginated && q(l.currentTarget) && d.loadMore();
168
- }, N = i && t && !S && !b, V = L ? /* @__PURE__ */ r("div", { className: "sticky top-0 z-10 border-b bg-white p-1", children: /* @__PURE__ */ r(
148
+ resource: l,
149
+ options: d,
150
+ placeholder: b,
151
+ disabled: x,
152
+ clearable: y = !1,
153
+ id: w,
154
+ "data-testid": k,
155
+ "aria-invalid": s,
156
+ "aria-labelledby": h,
157
+ "aria-describedby": C,
158
+ "aria-errormessage": j,
159
+ "aria-required": L,
160
+ ...P
161
+ }, T) => {
162
+ const c = Z(l), N = u.useMemo(() => d ? d.map((o) => ({
163
+ id: o.value,
164
+ label: o.label,
165
+ value: String(o.value),
166
+ group: o.group
167
+ })) : c.options, [d, c.options]), V = !d && !!l && c.flags.searchable, v = !d && c.loading, B = !d && c.error && N.length === 0, D = (o) => {
168
+ r?.(o);
169
+ }, E = (o) => {
170
+ o || n?.();
171
+ }, H = (o) => {
172
+ o.stopPropagation(), r?.(null);
173
+ }, U = (o) => {
174
+ c.flags.paginated && W(o.currentTarget) && c.loadMore();
175
+ }, I = y && t && !x && !v, q = V ? /* @__PURE__ */ a("div", { className: "sticky top-0 z-10 border-b bg-popover p-1", children: /* @__PURE__ */ a(
169
176
  "input",
170
177
  {
171
178
  type: "text",
172
- value: d.searchInput,
173
- onChange: (l) => d.setSearchInput(l.target.value),
174
- onKeyDown: (l) => l.stopPropagation(),
179
+ value: c.searchInput,
180
+ onChange: (o) => c.setSearchInput(o.target.value),
181
+ onKeyDown: (o) => o.stopPropagation(),
175
182
  placeholder: "Search...",
176
- className: "w-full rounded-sm border border-gray-200 px-2 py-1 text-sm outline-none focus:border-ring",
183
+ className: "w-full rounded-sm border border-input px-2 py-1 text-sm outline-none focus:border-ring",
177
184
  "aria-label": "Search options"
178
185
  }
179
186
  ) }) : null;
180
- return /* @__PURE__ */ m("div", { className: "relative w-full", children: [
181
- /* @__PURE__ */ m(
182
- s.Root,
187
+ return /* @__PURE__ */ f("div", { className: "relative w-full", children: [
188
+ /* @__PURE__ */ f(
189
+ i.Root,
183
190
  {
184
191
  "data-slot": "select",
185
192
  value: t || "",
186
- onValueChange: R,
187
- onOpenChange: j,
188
- disabled: S || b,
189
- ...M,
193
+ onValueChange: D,
194
+ onOpenChange: E,
195
+ disabled: x || v,
196
+ ...P,
190
197
  children: [
191
- /* @__PURE__ */ r(
192
- W,
198
+ /* @__PURE__ */ a(
199
+ ae,
193
200
  {
194
- ref: _,
195
- className: g(e, N && "pr-8"),
196
- disabled: b,
197
- "data-testid": f,
198
- "aria-invalid": y,
199
- children: /* @__PURE__ */ r(
200
- Q,
201
+ ref: T,
202
+ className: g(e, I && "pr-14"),
203
+ disabled: v,
204
+ id: w,
205
+ "data-testid": k,
206
+ "aria-invalid": s,
207
+ "aria-labelledby": h,
208
+ "aria-describedby": C,
209
+ "aria-errormessage": j,
210
+ "aria-required": L,
211
+ children: /* @__PURE__ */ a(
212
+ te,
201
213
  {
202
- placeholder: b ? "Loading..." : x || "Select an option..."
214
+ placeholder: v ? "Loading..." : b || "Select an option..."
203
215
  }
204
216
  )
205
217
  }
206
218
  ),
207
- /* @__PURE__ */ r(
208
- Y,
219
+ /* @__PURE__ */ a(
220
+ re,
209
221
  {
210
- header: V,
211
- onViewportScroll: d.flags.paginated ? T : void 0,
212
- children: b ? /* @__PURE__ */ r("div", { className: "px-2 py-1.5 text-sm text-muted-foreground", children: "Loading..." }) : C.length === 0 ? /* @__PURE__ */ r("div", { className: "px-2 py-1.5 text-sm text-muted-foreground", children: "No options available" }) : /* @__PURE__ */ m(D, { children: [
222
+ header: q,
223
+ onViewportScroll: c.flags.paginated ? U : void 0,
224
+ children: v ? /* @__PURE__ */ a("div", { className: "px-2 py-1.5 text-sm text-muted-foreground", children: "Loading..." }) : B ? /* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-2 px-2 py-1.5 text-sm text-destructive", children: [
225
+ /* @__PURE__ */ a("span", { children: "Failed to load options" }),
226
+ /* @__PURE__ */ a(
227
+ "button",
228
+ {
229
+ type: "button",
230
+ onKeyDown: (o) => o.stopPropagation(),
231
+ onClick: (o) => {
232
+ o.stopPropagation(), c.reload();
233
+ },
234
+ className: "rounded-sm px-2 py-0.5 text-xs font-medium text-foreground underline underline-offset-2 hover:text-destructive focus:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50",
235
+ children: "Retry"
236
+ }
237
+ )
238
+ ] }) : N.length === 0 ? /* @__PURE__ */ a("div", { className: "px-2 py-1.5 text-sm text-muted-foreground", children: "No options available" }) : /* @__PURE__ */ f(F, { children: [
213
239
  (() => {
214
- const l = C.reduce(
215
- (u, v) => {
216
- const h = v.group || "default";
217
- return u[h] || (u[h] = []), u[h].push(v), u;
240
+ const o = N.reduce(
241
+ (p, S) => {
242
+ const m = S.group || "default";
243
+ return p[m] || (p[m] = []), p[m].push(S), p;
218
244
  },
219
245
  {}
220
246
  );
221
- return Object.entries(l).map(([u, v]) => /* @__PURE__ */ m(J, { children: [
222
- u !== "default" && /* @__PURE__ */ r(Z, { children: u }),
223
- v.map((h) => /* @__PURE__ */ r($, { value: h.value, children: h.label }, h.id))
224
- ] }, u));
247
+ return Object.entries(o).map(([p, S]) => /* @__PURE__ */ f(ee, { children: [
248
+ p !== "default" && /* @__PURE__ */ a(oe, { children: p }),
249
+ S.map((m) => /* @__PURE__ */ a(ne, { value: m.value, children: m.label }, m.id))
250
+ ] }, p));
225
251
  })(),
226
- d.loadingMore && /* @__PURE__ */ r("div", { className: "px-2 py-1.5 text-center text-xs text-muted-foreground", children: "Loading more..." })
252
+ c.loadingMore && /* @__PURE__ */ a("div", { className: "px-2 py-1.5 text-center text-xs text-muted-foreground", children: "Loading more..." })
227
253
  ] })
228
254
  }
229
255
  )
230
256
  ]
231
257
  }
232
258
  ),
233
- N && /* @__PURE__ */ r(
259
+ I && /* @__PURE__ */ a(
234
260
  "button",
235
261
  {
236
262
  type: "button",
237
263
  className: "absolute right-8 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors bg-transparent border-none p-0 cursor-pointer focus:outline-none z-10",
238
- onClick: B,
264
+ onClick: H,
239
265
  "aria-label": "Clear selection",
240
266
  tabIndex: -1,
241
- children: /* @__PURE__ */ r(E, { className: "size-4" })
267
+ children: /* @__PURE__ */ a(A, { className: "size-4" })
242
268
  }
243
269
  )
244
270
  ] });
245
271
  }
246
272
  );
247
- X.displayName = "Select";
248
- function J({ ...e }) {
249
- return /* @__PURE__ */ r(s.Group, { "data-slot": "select-group", ...e });
273
+ $.displayName = "Select";
274
+ function ee({ ...e }) {
275
+ return /* @__PURE__ */ a(i.Group, { "data-slot": "select-group", ...e });
250
276
  }
251
- function Q({ ...e }) {
252
- return /* @__PURE__ */ r(s.Value, { "data-slot": "select-value", ...e });
277
+ function te({ ...e }) {
278
+ return /* @__PURE__ */ a(i.Value, { "data-slot": "select-value", ...e });
253
279
  }
254
- function W({
280
+ function ae({
255
281
  className: e,
256
282
  size: t = "default",
257
- children: a,
283
+ children: r,
258
284
  "aria-label": n,
259
- ...o
285
+ "aria-labelledby": l,
286
+ ...d
260
287
  }) {
261
- return /* @__PURE__ */ m(
262
- s.Trigger,
288
+ const b = n ?? (l ? void 0 : "Select an option");
289
+ return /* @__PURE__ */ f(
290
+ i.Trigger,
263
291
  {
264
292
  "data-slot": "select-trigger",
265
293
  "data-size": t,
266
- "aria-label": n || "Select an option",
294
+ "aria-label": b,
295
+ "aria-labelledby": l,
267
296
  className: g(
268
- "h-9 w-full rounded-md border border-gray-300 px-3 py-2 text-sm shadow-xs transition-colors",
269
- "!bg-white !text-black",
270
- "placeholder:text-muted-foreground data-[placeholder]:text-gray-500",
297
+ "relative h-9 w-full rounded-md border border-input pl-3 pr-9 py-2 text-sm shadow-xs transition-colors",
298
+ "bg-background text-foreground",
299
+ "placeholder:text-muted-foreground data-[placeholder]:text-muted-foreground",
271
300
  "focus-visible:outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
272
301
  "disabled:cursor-not-allowed disabled:opacity-50",
273
302
  "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
274
303
  "flex items-center justify-between gap-2",
275
- "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-gray-500",
304
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-muted-foreground",
276
305
  e
277
306
  ),
278
- style: { backgroundColor: "white", color: "black" },
279
- ...o,
307
+ ...d,
280
308
  children: [
281
- a,
282
- /* @__PURE__ */ r(s.Icon, { asChild: !0, children: /* @__PURE__ */ r(I, { className: "size-4 opacity-50" }) })
309
+ r,
310
+ /* @__PURE__ */ a(i.Icon, { asChild: !0, children: /* @__PURE__ */ a(_, { className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 opacity-50" }) })
283
311
  ]
284
312
  }
285
313
  );
286
314
  }
287
- function Y({
315
+ function re({
288
316
  className: e,
289
317
  children: t,
290
- position: a = "popper",
318
+ position: r = "popper",
291
319
  header: n,
292
- onViewportScroll: o,
293
- ...c
320
+ onViewportScroll: l,
321
+ ...d
294
322
  }) {
295
- return /* @__PURE__ */ r(s.Portal, { children: /* @__PURE__ */ m(
296
- s.Content,
323
+ return /* @__PURE__ */ a(i.Portal, { children: /* @__PURE__ */ f(
324
+ i.Content,
297
325
  {
298
326
  "data-slot": "select-content",
299
327
  className: g(
300
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-white text-black shadow-md",
328
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",
301
329
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
302
330
  "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
303
- a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
331
+ r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
304
332
  e
305
333
  ),
306
- style: a === "popper" ? { width: "var(--radix-select-trigger-width)" } : void 0,
307
- position: a,
308
- ...c,
334
+ style: r === "popper" ? { width: "var(--radix-select-trigger-width)" } : void 0,
335
+ position: r,
336
+ ...d,
309
337
  children: [
310
338
  n,
311
- /* @__PURE__ */ r(ee, {}),
312
- /* @__PURE__ */ r(
313
- s.Viewport,
339
+ /* @__PURE__ */ a(le, {}),
340
+ /* @__PURE__ */ a(
341
+ i.Viewport,
314
342
  {
315
- className: g("p-1", a === "popper" && "w-full"),
316
- onScroll: o,
343
+ className: g("p-1", r === "popper" && "w-full"),
344
+ onScroll: l,
317
345
  children: t
318
346
  }
319
347
  ),
320
- /* @__PURE__ */ r(te, {})
348
+ /* @__PURE__ */ a(se, {})
321
349
  ]
322
350
  }
323
351
  ) });
324
352
  }
325
- function Z({ className: e, ...t }) {
326
- return /* @__PURE__ */ r(
327
- s.Label,
353
+ function oe({ className: e, ...t }) {
354
+ return /* @__PURE__ */ a(
355
+ i.Label,
328
356
  {
329
357
  "data-slot": "select-label",
330
358
  className: g("text-muted-foreground px-2 py-1.5 text-xs", e),
@@ -332,63 +360,63 @@ function Z({ className: e, ...t }) {
332
360
  }
333
361
  );
334
362
  }
335
- function $({
363
+ function ne({
336
364
  className: e,
337
365
  children: t,
338
- ...a
366
+ ...r
339
367
  }) {
340
- return /* @__PURE__ */ m(
341
- s.Item,
368
+ return /* @__PURE__ */ f(
369
+ i.Item,
342
370
  {
343
371
  "data-slot": "select-item",
344
372
  className: g(
345
373
  "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-3 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
346
374
  e
347
375
  ),
348
- ...a,
376
+ ...r,
349
377
  children: [
350
- /* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(s.ItemIndicator, { children: /* @__PURE__ */ r(P, { className: "size-4" }) }) }),
351
- /* @__PURE__ */ r(s.ItemText, { children: t })
378
+ /* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(i.ItemIndicator, { children: /* @__PURE__ */ a(G, { className: "size-4" }) }) }),
379
+ /* @__PURE__ */ a(i.ItemText, { children: t })
352
380
  ]
353
381
  }
354
382
  );
355
383
  }
356
- function ee({
384
+ function le({
357
385
  className: e,
358
386
  ...t
359
387
  }) {
360
- return /* @__PURE__ */ r(
361
- s.ScrollUpButton,
388
+ return /* @__PURE__ */ a(
389
+ i.ScrollUpButton,
362
390
  {
363
391
  "data-slot": "select-scroll-up-button",
364
392
  className: g("flex cursor-default items-center justify-center py-1", e),
365
393
  ...t,
366
- children: /* @__PURE__ */ r(H, { className: "size-4" })
394
+ children: /* @__PURE__ */ a(K, { className: "size-4" })
367
395
  }
368
396
  );
369
397
  }
370
- function te({
398
+ function se({
371
399
  className: e,
372
400
  ...t
373
401
  }) {
374
- return /* @__PURE__ */ r(
375
- s.ScrollDownButton,
402
+ return /* @__PURE__ */ a(
403
+ i.ScrollDownButton,
376
404
  {
377
405
  "data-slot": "select-scroll-down-button",
378
406
  className: g("flex cursor-default items-center justify-center py-1", e),
379
407
  ...t,
380
- children: /* @__PURE__ */ r(I, { className: "size-4" })
408
+ children: /* @__PURE__ */ a(_, { className: "size-4" })
381
409
  }
382
410
  );
383
411
  }
384
412
  export {
385
- X as Select,
386
- Y as SelectContent,
387
- J as SelectGroup,
388
- $ as SelectItem,
389
- Z as SelectLabel,
390
- te as SelectScrollDownButton,
391
- ee as SelectScrollUpButton,
392
- W as SelectTrigger,
393
- Q as SelectValue
413
+ $ as Select,
414
+ re as SelectContent,
415
+ ee as SelectGroup,
416
+ ne as SelectItem,
417
+ oe as SelectLabel,
418
+ se as SelectScrollDownButton,
419
+ le as SelectScrollUpButton,
420
+ ae as SelectTrigger,
421
+ te as SelectValue
394
422
  };