@bioturing/components 0.46.2 → 0.46.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,366 +1,337 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as C, Fragment as se } from "react/jsx-runtime";
3
- import { Combobox as c } from "@base-ui/react/combobox";
4
- import Te from "antd/es/config-provider/DisabledContext";
5
- import { FormItemInputContext as De } from "antd/es/form/context";
6
- import { forwardRef as Le, useRef as Se, useContext as ce, useCallback as x, useMemo as w, useState as Ve } from "react";
7
- import { BaseMenu as O } from "../base-menu/index.js";
2
+ import { jsx as t, jsxs as g, Fragment as ne } from "react/jsx-runtime";
3
+ import { Combobox as r } from "@base-ui/react/combobox";
4
+ import Re from "antd/es/config-provider/DisabledContext";
5
+ import { FormItemInputContext as Te } from "antd/es/form/context";
6
+ import { forwardRef as Se, useRef as ke, useContext as re, useCallback as v, useMemo as y, useState as De } from "react";
7
+ import { BaseMenu as M } from "../base-menu/index.js";
8
8
  import { XIcon as Me } from "@bioturing/assets";
9
- import { splitBySeparators as le } from "./utils.js";
9
+ import { splitBySeparators as Ve } from "./utils.js";
10
+ import { useComboboxTokenInput as Fe } from "./use-combobox-token-input.js";
10
11
  import './style.css';/* empty css */
11
- import { SelectTrigger as v } from "../select-trigger/component.js";
12
- import { BaseMenuItem as ie } from "../base-menu/item.js";
13
- import { Empty as Fe } from "../empty/component.js";
14
- import { useControlledState as ae } from "../hooks/useControlledState.js";
15
- import { useCls as Oe } from "../utils/antdUtils.js";
16
- import { clsx as a } from "../utils/cn.js";
17
- import { reactNodeToString as E } from "../utils/reactToString.js";
18
- import { ScrollArea as $e } from "../scroll-area/component.js";
19
- const Be = (l) => /* @__PURE__ */ t(O.Root, { ...l }), Pe = (l) => /* @__PURE__ */ t(O.Popup, { ...l }), je = (l) => /* @__PURE__ */ t(O.Divider, { ...l }), Ke = (l) => /* @__PURE__ */ t(O.List, { ...l }), ke = ({
20
- options: l = [],
21
- value: de,
22
- defaultValue: W,
23
- onChange: $,
24
- placeholder: R = "Select...",
25
- disabled: ue = !1,
26
- status: me,
27
- allowClear: Q = !1,
28
- multiple: r = !1,
29
- showSearch: We = !0,
30
- open: fe,
12
+ import { SelectTrigger as p } from "../select-trigger/component.js";
13
+ import { BaseMenuItem as se } from "../base-menu/item.js";
14
+ import { Empty as Oe } from "../empty/component.js";
15
+ import { useControlledState as ce } from "../hooks/useControlledState.js";
16
+ import { useCls as $e } from "../utils/antdUtils.js";
17
+ import { clsx as l } from "../utils/cn.js";
18
+ import { reactNodeToString as le } from "../utils/reactToString.js";
19
+ import { ScrollArea as Be } from "../scroll-area/component.js";
20
+ const Le = (s) => /* @__PURE__ */ t(M.Root, { ...s }), Pe = (s) => /* @__PURE__ */ t(M.Popup, { ...s }), je = (s) => /* @__PURE__ */ t(M.Divider, { ...s }), Ee = (s) => /* @__PURE__ */ t(M.List, { ...s }), Ke = ({
21
+ options: s = [],
22
+ value: ae,
23
+ defaultValue: K,
24
+ onChange: V,
25
+ placeholder: w = "Select...",
26
+ disabled: ie = !1,
27
+ status: de,
28
+ allowClear: W = !1,
29
+ multiple: n = !1,
30
+ showSearch: He = !0,
31
+ open: me,
31
32
  onOpenChange: he,
32
- className: be,
33
- classNames: g,
34
- size: B = "middle",
35
- optionRender: U,
36
- onSearch: P,
37
- clearIcon: X,
38
- suffixIcon: G,
39
- placement: T = "bottomLeft",
33
+ className: ue,
34
+ classNames: b,
35
+ size: F = "middle",
36
+ optionRender: H,
37
+ onSearch: O,
38
+ clearIcon: Q,
39
+ suffixIcon: U,
40
+ placement: A = "bottomLeft",
40
41
  // showSelectionSummary: _showSelectionSummary = false,
41
42
  // selectionSummaryRender,
42
- showSelectAll: H = !1,
43
- optionLabelRender: D,
44
- getOptionKeywords: J = (h) => [
45
- String(h.value),
46
- E(h.label)
43
+ showSelectAll: X = !1,
44
+ optionLabelRender: R,
45
+ getOptionKeywords: G = (u) => [
46
+ String(u.value),
47
+ le(u.label)
47
48
  ],
48
- popupMatchSelectWidth: ge = !0,
49
- addOnEnter: L = !1,
50
- tokenSeparators: m,
51
- autoHighlight: S = !0,
52
- filterOption: V,
53
- ...pe
54
- }, Ce) => {
55
- const [h, Y] = ae(
56
- de,
57
- $,
58
- W !== void 0 ? W : r ? [] : void 0
59
- ), [j, y] = ae(fe, he, !1), i = Oe(), K = Se(null), { status: xe } = ce(De), ve = ce(Te), M = me || xe, A = ue || ve, f = x(
49
+ popupMatchSelectWidth: be = !0,
50
+ addOnEnter: $ = !1,
51
+ tokenSeparators: C,
52
+ autoHighlight: B = !0,
53
+ filterOption: T,
54
+ ...fe
55
+ }, ge) => {
56
+ const [u, J] = ce(
57
+ ae,
58
+ V,
59
+ K !== void 0 ? K : n ? [] : void 0
60
+ ), [L, S] = ce(me, he, !1), c = $e(), P = ke(null), { status: pe } = re(Te), Ce = re(Re), k = de || pe, I = ie || Ce, m = v(
60
61
  (e) => {
61
- Y(e), $?.(e);
62
+ J(e), V?.(e);
62
63
  },
63
- [Y, $]
64
- ), Z = x(() => {
65
- if (r) {
66
- const e = l.map((o) => o.value);
67
- f(e);
64
+ [J, V]
65
+ ), Y = v(() => {
66
+ if (n) {
67
+ const e = s.map((o) => o.value);
68
+ m(e);
68
69
  }
69
- }, [r, l, f]), _ = x(() => {
70
- r && f([]);
71
- }, [r, f]), z = x(() => {
72
- f(r ? [] : void 0);
73
- }, [r, f]), b = w(() => Array.isArray(h) ? h : h ? [h] : [], [h]), d = w(() => {
70
+ }, [n, s, m]), Z = v(() => {
71
+ n && m([]);
72
+ }, [n, m]), _ = v(() => {
73
+ m(n ? [] : void 0);
74
+ }, [n, m]), h = y(() => Array.isArray(u) ? u : u ? [u] : [], [u]), i = y(() => {
74
75
  const e = /* @__PURE__ */ new Map();
75
- for (const o of l)
76
+ for (const o of s)
76
77
  e.set(o.value, o);
77
78
  return e;
78
- }, [l]), F = w(() => {
79
- if (!H || !r || l.length === 0)
79
+ }, [s]), D = y(() => {
80
+ if (!X || !n || s.length === 0)
80
81
  return null;
81
- const e = b.filter((s) => d.has(s)), o = e.length === l.length && l.length > 0, n = e.length > 0 && e.length < l.length;
82
+ const e = h.filter((d) => i.has(d)), o = e.length === s.length && s.length > 0, a = e.length > 0 && e.length < s.length;
82
83
  return {
83
84
  checked: o,
84
- indeterminate: n,
85
+ indeterminate: a,
85
86
  onToggle: () => {
86
- n || o ? _() : Z();
87
+ a || o ? Z() : Y();
87
88
  }
88
89
  };
89
- }, [H, r, l, d, b, _, Z]), we = w(() => l.map((e) => e.value), [l]), q = w(() => r ? b.length > 0 ? `${b.length} item${b.length === 1 ? "" : "s"} selected` : null : d.get(b[0])?.label || null, [r, b, d]), ee = a(
90
- i("combobox-input"),
91
- i(`combobox-input-${B}`),
92
- M && i(`combobox-input-${M}`),
93
- g?.input
94
- ), ye = x(
90
+ }, [X, n, s, i, h, Z, Y]), xe = y(() => s.map((e) => e.value), [s]), z = y(() => n ? h.length > 0 ? `${h.length} item${h.length === 1 ? "" : "s"} selected` : null : i.get(h[0])?.label || null, [n, h, i]), q = l(
91
+ c("combobox-input"),
92
+ c(`combobox-input-${F}`),
93
+ k && c(`combobox-input-${k}`),
94
+ b?.input
95
+ ), ve = v(
95
96
  (e) => {
96
- const o = d.get(e);
97
- return E(o?.label || String(e));
97
+ const o = i.get(e);
98
+ return le(o?.label || String(e));
98
99
  },
99
- [d]
100
- ), [N, oe] = Ve(""), te = x(
101
- (e) => {
102
- const o = e.trim();
103
- if (!o) return;
104
- const n = o.toLowerCase();
105
- for (const [s, u] of d)
106
- if (String(s).toLowerCase() === n)
107
- return u;
108
- for (const s of d.values())
109
- if (E(s.label).toLowerCase() === n)
110
- return s;
111
- },
112
- [d]
113
- ), ne = x(
114
- (e) => {
115
- if (!L || !e.trim()) return !1;
116
- const o = r && m && m.length > 0 ? le(e, m) : [e.trim()], n = [];
117
- for (const s of o) {
118
- const u = te(s);
119
- u && !u.disabled && n.push(u.value);
120
- }
121
- if (n.length === 0) return !1;
122
- if (r) {
123
- const s = Array.isArray(h) ? [...h] : [], u = [.../* @__PURE__ */ new Set([...s, ...n])];
124
- f(u);
125
- } else
126
- f(n[0]), y(!1);
127
- return !0;
128
- },
129
- [
130
- L,
131
- r,
132
- m,
133
- te,
134
- h,
135
- f,
136
- y
137
- ]
138
- ), Ae = w(() => !m || m.length === 0 ? !1 : m.some((e) => N.includes(e)), [N, m]), Ne = r ? S && !Ae : S, re = x(
100
+ [i]
101
+ ), [j, ee] = De(""), { handleAddOnEnter: oe, handleInputValueChange: ye } = Fe({
102
+ addOnEnter: $,
103
+ multiple: n,
104
+ tokenSeparators: C,
105
+ optionMap: i,
106
+ value: u,
107
+ handleValueChange: m,
108
+ setOpen: S,
109
+ setSearchValue: ee,
110
+ onSearch: O
111
+ }), Ie = !!C?.length, Ne = n && Ie ? !1 : B, te = v(
139
112
  (e) => (o) => {
140
- if (o.key === "Enter" && L && e) {
141
- if (!r && S) return;
142
- ne(e) && (o.preventDefault(), oe(""), P?.(""));
113
+ if (o.key === "Enter" && $ && e) {
114
+ if (!n && B) return;
115
+ oe(e) && (o.preventDefault(), ee(""), O?.(""));
143
116
  }
144
117
  },
145
- [L, S, r, ne, P]
146
- ), Ie = w(() => V === !1 ? null : typeof V == "function" ? (e, o) => {
147
- const n = d.get(e);
148
- return V(o, n);
118
+ [$, B, n, oe, O]
119
+ ), we = y(() => T === !1 ? null : typeof T == "function" ? (e, o) => {
120
+ const a = i.get(e);
121
+ return T(o, a);
149
122
  } : (e, o) => {
150
123
  if (!o) return !0;
151
- const n = d.get(e);
152
- if (!n) return !1;
153
- const s = m && m.length > 0 ? le(o, m) : [o], u = J(n).map((I) => I.toLowerCase()), p = s.filter((I) => {
154
- const k = I.toLowerCase();
155
- return u.some((Re) => Re.includes(k));
124
+ const a = i.get(e);
125
+ if (!a) return !1;
126
+ const d = C && C.length > 0 ? Ve(o, C) : [o], x = G(a).map((N) => N.toLowerCase()), f = d.filter((N) => {
127
+ const E = N.toLowerCase();
128
+ return x.some((Ae) => Ae.includes(E));
156
129
  }).length;
157
- if (p === 0) return !1;
158
- if (s.length > 1 && p > 1) {
159
- const I = o.toLowerCase();
160
- return u.some((k) => k.includes(I));
130
+ if (f === 0) return !1;
131
+ if (d.length > 1 && f > 1) {
132
+ const N = o.toLowerCase();
133
+ return x.some((E) => E.includes(N));
161
134
  }
162
135
  return !0;
163
- }, [V, d, m, J]);
164
- return /* @__PURE__ */ t("div", { ref: Ce, className: a(i("combobox"), be), ...pe, children: /* @__PURE__ */ C(
165
- c.Root,
136
+ }, [T, i, C, G]);
137
+ return /* @__PURE__ */ t("div", { ref: ge, className: l(c("combobox"), ue), ...fe, children: /* @__PURE__ */ g(
138
+ r.Root,
166
139
  {
167
- value: r ? b : b[0] ?? null,
140
+ value: n ? h : h[0] ?? null,
168
141
  onValueChange: (e) => {
169
- f(
170
- r ? Array.isArray(e) ? e : [] : e
142
+ m(
143
+ n ? Array.isArray(e) ? e : [] : e
171
144
  );
172
145
  },
173
- inputValue: N,
174
- onInputValueChange: (e) => {
175
- oe(e), P?.(e);
176
- },
177
- open: j,
178
- onOpenChange: y,
179
- multiple: r,
180
- disabled: A,
146
+ inputValue: j,
147
+ onInputValueChange: ye,
148
+ open: L,
149
+ onOpenChange: S,
150
+ multiple: n,
151
+ disabled: I,
181
152
  autoHighlight: Ne,
182
- items: we,
183
- itemToStringLabel: ye,
184
- filter: Ie,
153
+ items: xe,
154
+ itemToStringLabel: ve,
155
+ filter: we,
185
156
  children: [
186
- r ? (
157
+ n ? (
187
158
  /* Multiple Selection Layout using SelectTrigger compound components */
188
- /* @__PURE__ */ C(
189
- v.Root,
159
+ /* @__PURE__ */ g(
160
+ p.Root,
190
161
  {
191
- ref: K,
192
- size: B,
193
- disabled: A,
194
- open: j,
195
- status: M,
196
- placeholder: R,
197
- displayValue: q,
198
- allowClear: Q,
199
- suffixIcon: G,
200
- clearIcon: X,
201
- onClear: z,
202
- onOpenChange: y,
203
- className: a(g?.trigger, i("combobox-trigger-multiple")),
162
+ ref: P,
163
+ size: F,
164
+ disabled: I,
165
+ open: L,
166
+ status: k,
167
+ placeholder: w,
168
+ displayValue: z,
169
+ allowClear: W,
170
+ suffixIcon: U,
171
+ clearIcon: Q,
172
+ onClear: _,
173
+ onOpenChange: S,
174
+ className: l(b?.trigger, c("combobox-trigger-multiple")),
204
175
  as: "div",
205
176
  children: [
206
177
  /* @__PURE__ */ t(
207
- v.Content,
178
+ p.Content,
208
179
  {
209
- contentRender: ({ className: e, children: o, ...n }) => /* @__PURE__ */ t(c.Chips, { className: a(i("combobox-chips"), e), ...n, children: /* @__PURE__ */ t(c.Value, { children: (s) => /* @__PURE__ */ C(se, { children: [
210
- s.map((u) => {
211
- const p = d.get(u);
212
- return /* @__PURE__ */ C(c.Chip, { className: a(i("combobox-chip")), children: [
213
- p?.icon && /* @__PURE__ */ t("span", { className: a(i("combobox-chip-icon")), children: p.icon }),
214
- /* @__PURE__ */ t("span", { className: a(i("combobox-chip-text")), children: p ? D ? D(p) : p.label : u }),
180
+ contentRender: ({ className: e, children: o, ...a }) => /* @__PURE__ */ t(r.Chips, { className: l(c("combobox-chips"), e), ...a, children: /* @__PURE__ */ t(r.Value, { children: (d) => /* @__PURE__ */ g(ne, { children: [
181
+ d.map((x) => {
182
+ const f = i.get(x);
183
+ return /* @__PURE__ */ g(r.Chip, { className: l(c("combobox-chip")), children: [
184
+ f?.icon && /* @__PURE__ */ t("span", { className: l(c("combobox-chip-icon")), children: f.icon }),
185
+ /* @__PURE__ */ t("span", { className: l(c("combobox-chip-text")), children: f ? R ? R(f) : f.label : x }),
215
186
  /* @__PURE__ */ t(
216
- c.ChipRemove,
187
+ r.ChipRemove,
217
188
  {
218
- className: a(i("combobox-chip-remove")),
189
+ className: l(c("combobox-chip-remove")),
219
190
  children: /* @__PURE__ */ t(Me, {})
220
191
  }
221
192
  )
222
- ] }, u);
193
+ ] }, x);
223
194
  }),
224
195
  /* @__PURE__ */ t(
225
- c.Input,
196
+ r.Input,
226
197
  {
227
- placeholder: s.length > 0 ? "" : R,
228
- className: ee,
229
- disabled: A,
230
- onKeyDown: re(N)
198
+ placeholder: d.length > 0 ? "" : w,
199
+ className: q,
200
+ disabled: I,
201
+ onKeyDown: te(j)
231
202
  }
232
203
  )
233
204
  ] }) }) })
234
205
  }
235
206
  ),
236
207
  /* @__PURE__ */ t(
237
- v.Clear,
208
+ p.Clear,
238
209
  {
239
- render: (e) => /* @__PURE__ */ t(c.Clear, { ...e })
210
+ render: (e) => /* @__PURE__ */ t(r.Clear, { ...e })
240
211
  }
241
212
  ),
242
213
  /* @__PURE__ */ t(
243
- v.Arrow,
214
+ p.Arrow,
244
215
  {
245
- render: (e, { icon: o }) => /* @__PURE__ */ t(c.Trigger, { ...e, children: /* @__PURE__ */ t(c.Icon, { children: o }) })
216
+ render: (e, { icon: o }) => /* @__PURE__ */ t(r.Trigger, { ...e, children: /* @__PURE__ */ t(r.Icon, { children: o }) })
246
217
  }
247
218
  )
248
219
  ]
249
220
  }
250
221
  )
251
- ) : /* @__PURE__ */ C(
252
- v.Root,
222
+ ) : /* @__PURE__ */ g(
223
+ p.Root,
253
224
  {
254
- ref: K,
225
+ ref: P,
255
226
  as: "div",
256
- size: B,
257
- disabled: A,
258
- open: j,
259
- status: M,
260
- placeholder: R,
261
- displayValue: q,
262
- allowClear: Q,
263
- suffixIcon: G,
264
- clearIcon: X,
265
- onClear: z,
266
- onOpenChange: y,
267
- className: a(g?.trigger, i("combobox-trigger-single")),
227
+ size: F,
228
+ disabled: I,
229
+ open: L,
230
+ status: k,
231
+ placeholder: w,
232
+ displayValue: z,
233
+ allowClear: W,
234
+ suffixIcon: U,
235
+ clearIcon: Q,
236
+ onClear: _,
237
+ onOpenChange: S,
238
+ className: l(b?.trigger, c("combobox-trigger-single")),
268
239
  children: [
269
240
  /* @__PURE__ */ t(
270
- v.Content,
241
+ p.Content,
271
242
  {
272
- contentRender: ({ className: e, children: o, ...n }) => /* @__PURE__ */ t(
273
- c.Input,
243
+ contentRender: ({ className: e, children: o, ...a }) => /* @__PURE__ */ t(
244
+ r.Input,
274
245
  {
275
- placeholder: R,
276
- className: a(e, ee),
277
- disabled: A,
278
- onKeyDown: re(N),
279
- ...n
246
+ placeholder: w,
247
+ className: l(e, q),
248
+ disabled: I,
249
+ onKeyDown: te(j),
250
+ ...a
280
251
  }
281
252
  )
282
253
  }
283
254
  ),
284
255
  /* @__PURE__ */ t(
285
- v.Clear,
256
+ p.Clear,
286
257
  {
287
- render: (e) => /* @__PURE__ */ t(c.Clear, { ...e })
258
+ render: (e) => /* @__PURE__ */ t(r.Clear, { ...e })
288
259
  }
289
260
  ),
290
261
  /* @__PURE__ */ t(
291
- v.Arrow,
262
+ p.Arrow,
292
263
  {
293
- render: (e, { icon: o }) => /* @__PURE__ */ t(c.Trigger, { ...e, children: /* @__PURE__ */ t(c.Icon, { children: o }) })
264
+ render: (e, { icon: o }) => /* @__PURE__ */ t(r.Trigger, { ...e, children: /* @__PURE__ */ t(r.Icon, { children: o }) })
294
265
  }
295
266
  )
296
267
  ]
297
268
  }
298
269
  ),
299
- /* @__PURE__ */ t(c.Portal, { children: /* @__PURE__ */ t(
300
- c.Positioner,
270
+ /* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ t(
271
+ r.Positioner,
301
272
  {
302
- anchor: K.current,
273
+ anchor: P.current,
303
274
  sideOffset: 4,
304
- side: T.startsWith("top") ? "top" : "bottom",
305
- align: T.endsWith("Right") ? "end" : T === "top" || T === "bottom" ? "center" : "start",
306
- render: Be,
275
+ side: A.startsWith("top") ? "top" : "bottom",
276
+ align: A.endsWith("Right") ? "end" : A === "top" || A === "bottom" ? "center" : "start",
277
+ render: Le,
307
278
  children: /* @__PURE__ */ t(
308
- c.Popup,
279
+ r.Popup,
309
280
  {
310
- className: a(
311
- i("combobox-popup"),
312
- !ge && i("combobox-popup--auto-width"),
313
- g?.portal
281
+ className: l(
282
+ c("combobox-popup"),
283
+ !be && c("combobox-popup--auto-width"),
284
+ b?.portal
314
285
  ),
315
286
  render: Pe,
316
- children: /* @__PURE__ */ C("div", { className: a(i("combobox-container")), children: [
317
- F && /* @__PURE__ */ C(se, { children: [
287
+ children: /* @__PURE__ */ g("div", { className: l(c("combobox-container")), children: [
288
+ D && /* @__PURE__ */ g(ne, { children: [
318
289
  /* @__PURE__ */ t(
319
- ie,
290
+ se,
320
291
  {
321
292
  as: "button",
322
293
  type: "button",
323
- className: a(i("combobox-select-all")),
324
- selected: F.checked,
325
- onClick: F.onToggle,
326
- indeterminate: F.indeterminate,
294
+ className: l(c("combobox-select-all")),
295
+ selected: D.checked,
296
+ onClick: D.onToggle,
297
+ indeterminate: D.indeterminate,
327
298
  showCheckbox: !0,
328
299
  children: "Select All"
329
300
  }
330
301
  ),
331
- /* @__PURE__ */ t(c.Separator, { render: je })
302
+ /* @__PURE__ */ t(r.Separator, { render: je })
332
303
  ] }),
333
- /* @__PURE__ */ C($e, { fadeEdges: !0, children: [
304
+ /* @__PURE__ */ g(Be, { fadeEdges: !0, children: [
334
305
  /* @__PURE__ */ t(
335
- c.List,
306
+ r.List,
336
307
  {
337
- className: a(i("combobox-list"), g?.list),
338
- render: Ke,
308
+ className: l(c("combobox-list"), b?.list),
309
+ render: Ee,
339
310
  children: (e) => {
340
- const o = d.get(e);
311
+ const o = i.get(e);
341
312
  if (!o) return null;
342
- const n = b.includes(e);
343
- return U ? U(o, {}) : /* @__PURE__ */ t(
344
- ie,
313
+ const a = h.includes(e);
314
+ return H ? H(o, {}) : /* @__PURE__ */ t(
315
+ se,
345
316
  {
346
317
  disabled: o.disabled,
347
- selected: n,
348
- showCheckbox: r,
318
+ selected: a,
319
+ showCheckbox: n,
349
320
  icon: o.icon,
350
321
  classNames: {
351
- root: a(g?.option),
352
- icon: g?.optionIcon,
353
- text: g?.optionText
322
+ root: l(b?.option),
323
+ icon: b?.optionIcon,
324
+ text: b?.optionText
354
325
  },
355
- labelRender: D ? (s) => D(o, s) : void 0,
356
- render: (s) => /* @__PURE__ */ t(
357
- c.Item,
326
+ labelRender: R ? (d) => R(o, d) : void 0,
327
+ render: (d) => /* @__PURE__ */ t(
328
+ r.Item,
358
329
  {
359
330
  value: e,
360
331
  disabled: o.disabled,
361
- ...s,
332
+ ...d,
362
333
  "data-disabled": o.disabled,
363
- "data-selected": n
334
+ "data-selected": a
364
335
  }
365
336
  ),
366
337
  children: o.label
@@ -370,7 +341,7 @@ const Be = (l) => /* @__PURE__ */ t(O.Root, { ...l }), Pe = (l) => /* @__PURE__
370
341
  }
371
342
  }
372
343
  ),
373
- /* @__PURE__ */ t(c.Empty, { className: a(i("combobox-empty")), children: /* @__PURE__ */ t(Fe, { description: "No options found" }) })
344
+ /* @__PURE__ */ t(r.Empty, { className: l(c("combobox-empty")), children: /* @__PURE__ */ t(Oe, { description: "No options found" }) })
374
345
  ] })
375
346
  ] })
376
347
  }
@@ -380,11 +351,11 @@ const Be = (l) => /* @__PURE__ */ t(O.Root, { ...l }), Pe = (l) => /* @__PURE__
380
351
  ]
381
352
  }
382
353
  ) });
383
- }, Ee = Le(ke), co = Object.assign(Ee, {
354
+ }, We = Se(Ke), ao = Object.assign(We, {
384
355
  // Add any sub components here if needed
385
356
  });
386
357
  export {
387
- co as Combobox,
388
- co as default
358
+ ao as Combobox,
359
+ ao as default
389
360
  };
390
361
  //# sourceMappingURL=component.js.map