@oneplatformdev/ui 0.0.1-beta.81 → 0.0.1-beta.86
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/Combobox/Combobox.mjs +1 -1
- package/Combobox/ComboboxOptionItem.mjs +1 -1
- package/Combobox/ComboboxOptions.mjs +1 -1
- package/Combobox/index.mjs +1 -1
- package/{Combobox-DpcCpN3b.js → Combobox-B0sHDL7X.js} +96 -96
- package/FormCombobox/FormCombobox.mjs +1 -1
- package/Popover/Popover.d.ts +2 -2
- package/Popover/Popover.mjs +13 -9
- package/Select/SelectRoot.mjs +27 -23
- package/index.mjs +1 -1
- package/package.json +1 -1
package/Combobox/Combobox.mjs
CHANGED
@@ -9,7 +9,7 @@ import "../Command/Command.mjs";
|
|
9
9
|
import "@oneplatformdev/utils";
|
10
10
|
import "@oneplatformdev/hooks";
|
11
11
|
import "lucide-react";
|
12
|
-
import { C as c } from "../Combobox-
|
12
|
+
import { C as c } from "../Combobox-B0sHDL7X.js";
|
13
13
|
export {
|
14
14
|
c as Combobox
|
15
15
|
};
|
@@ -20,7 +20,7 @@ import "../Card/Card.mjs";
|
|
20
20
|
import "../Carousel/Carousel.mjs";
|
21
21
|
import "../Checkbox/Checkbox.mjs";
|
22
22
|
import "@radix-ui/react-collapsible";
|
23
|
-
import { a as no } from "../Combobox-
|
23
|
+
import { a as no } from "../Combobox-B0sHDL7X.js";
|
24
24
|
import "../Command/Command.mjs";
|
25
25
|
import "../DropdownMenu/DropdownMenu.mjs";
|
26
26
|
import "../Table/Table.mjs";
|
@@ -3,7 +3,7 @@ import "../Button/Button.mjs";
|
|
3
3
|
import "../Button/buttonVariants.mjs";
|
4
4
|
import "react";
|
5
5
|
import "../Collapsible/Collapsible.mjs";
|
6
|
-
import { c as a, b as e } from "../Combobox-
|
6
|
+
import { c as a, b as e } from "../Combobox-B0sHDL7X.js";
|
7
7
|
import "lucide-react";
|
8
8
|
import "@oneplatformdev/utils";
|
9
9
|
export {
|
package/Combobox/index.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import
|
1
|
+
import { jsxs as s, jsx as e, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import f, { forwardRef as y, useState as V, useRef as W, useEffect as X, useCallback as b, useLayoutEffect as H } from "react";
|
3
3
|
import { LoadingMask as J } from "./LoadingMask/LoadingMask.mjs";
|
4
4
|
import "./LoadingMask/RenderLoadingMask.mjs";
|
5
5
|
import { Popover as K, PopoverTrigger as Q, PopoverContent as Y } from "./Popover/Popover.mjs";
|
6
6
|
import { Button as _ } from "./Button/Button.mjs";
|
7
7
|
import "./Button/buttonVariants.mjs";
|
8
8
|
import { CommandItem as Z, Command as $, CommandInput as ee, CommandList as te, CommandGroup as oe, CommandEmpty as F } from "./Command/Command.mjs";
|
9
|
-
import { cn as
|
9
|
+
import { cn as p } from "@oneplatformdev/utils";
|
10
10
|
import { useDebounceCallback as re } from "@oneplatformdev/hooks";
|
11
11
|
import { Check as ae, ChevronDownIcon as ie, X as ne, ChevronsUpDown as le } from "lucide-react";
|
12
12
|
import { Collapsible as se, CollapsibleTrigger as pe, CollapsibleContent as me } from "./Collapsible/Collapsible.mjs";
|
@@ -63,73 +63,73 @@ import "./Toggle/Toggle.mjs";
|
|
63
63
|
import "./ToggleGroup/ToggleGroup.mjs";
|
64
64
|
import "./Tooltip/TooltipRoot.mjs";
|
65
65
|
import "./Dropzone/Dropzone.mjs";
|
66
|
-
const ce = 8, I =
|
67
|
-
const { children: t, setOpen:
|
68
|
-
return /* @__PURE__ */
|
66
|
+
const ce = 8, I = y((n, l) => {
|
67
|
+
const { children: t, setOpen: m, option: o, onChangeOption: i, value: c = "", deep: a = 0 } = n;
|
68
|
+
return /* @__PURE__ */ s(
|
69
69
|
Z,
|
70
70
|
{
|
71
71
|
ref: l,
|
72
|
-
value:
|
72
|
+
value: o.value,
|
73
73
|
onSelect: () => {
|
74
|
-
|
74
|
+
c === o.value ? i == null || i({ value: "", label: "" }) : i == null || i(o), m(!1);
|
75
75
|
},
|
76
76
|
style: {
|
77
|
-
paddingLeft: (
|
77
|
+
paddingLeft: (a + 1) * ce
|
78
78
|
},
|
79
79
|
children: [
|
80
80
|
t,
|
81
81
|
/* @__PURE__ */ e(
|
82
82
|
"span",
|
83
83
|
{
|
84
|
-
className:
|
84
|
+
className: p(
|
85
85
|
"overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
|
86
86
|
),
|
87
|
-
children:
|
87
|
+
children: o.label
|
88
88
|
}
|
89
89
|
),
|
90
90
|
/* @__PURE__ */ e(
|
91
91
|
ae,
|
92
92
|
{
|
93
|
-
className:
|
93
|
+
className: p(
|
94
94
|
"ml-auto",
|
95
|
-
|
95
|
+
c === o.value ? "opacity-100" : "opacity-0"
|
96
96
|
)
|
97
97
|
}
|
98
98
|
)
|
99
99
|
]
|
100
100
|
},
|
101
|
-
|
101
|
+
o.value
|
102
102
|
);
|
103
|
-
}), M =
|
104
|
-
var
|
105
|
-
const { option: t,
|
106
|
-
return (
|
103
|
+
}), M = y((n, l) => {
|
104
|
+
var c;
|
105
|
+
const { option: t, deep: m = 0 } = n, [o, i] = V(!0);
|
106
|
+
return (c = t == null ? void 0 : t.items) != null && c.length ? /* @__PURE__ */ s(
|
107
107
|
se,
|
108
108
|
{
|
109
109
|
ref: l,
|
110
|
-
open:
|
111
|
-
onOpenChange:
|
112
|
-
"data-opened":
|
113
|
-
className:
|
110
|
+
open: o,
|
111
|
+
onOpenChange: i,
|
112
|
+
"data-opened": o,
|
113
|
+
className: p("group/collapsible"),
|
114
114
|
children: [
|
115
|
-
/* @__PURE__ */ e(I, { ...
|
115
|
+
/* @__PURE__ */ e(I, { ...n, children: /* @__PURE__ */ e(pe, { asChild: !0, children: /* @__PURE__ */ s(
|
116
116
|
_,
|
117
117
|
{
|
118
118
|
onClick: (a) => {
|
119
|
-
a == null || a.preventDefault(), a == null || a.stopPropagation(),
|
119
|
+
a == null || a.preventDefault(), a == null || a.stopPropagation(), i((d) => !d);
|
120
120
|
},
|
121
121
|
type: "button",
|
122
122
|
variant: "ghost",
|
123
123
|
size: "sm",
|
124
|
-
className:
|
124
|
+
className: p("aspect-square size-6", "transition-transform"),
|
125
125
|
children: [
|
126
126
|
/* @__PURE__ */ e(
|
127
127
|
ie,
|
128
128
|
{
|
129
|
-
className:
|
129
|
+
className: p(
|
130
130
|
"!size-5",
|
131
131
|
"transition-transform",
|
132
|
-
|
132
|
+
o && "rotate-180"
|
133
133
|
)
|
134
134
|
}
|
135
135
|
),
|
@@ -140,103 +140,103 @@ const ce = 8, I = w((i, l) => {
|
|
140
140
|
/* @__PURE__ */ e(me, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-0", children: t == null ? void 0 : t.items.map((a) => /* @__PURE__ */ e(
|
141
141
|
M,
|
142
142
|
{
|
143
|
-
...
|
144
|
-
deep:
|
143
|
+
...n,
|
144
|
+
deep: m + 1,
|
145
145
|
option: a
|
146
146
|
},
|
147
147
|
a.value
|
148
148
|
)) }) })
|
149
149
|
]
|
150
150
|
}
|
151
|
-
) : /* @__PURE__ */ e(I, { ...
|
152
|
-
}), de =
|
153
|
-
const { options: t = [], ...
|
154
|
-
return /* @__PURE__ */ e("div", { ref: l, className: "flex flex-col gap-0", children: t.map((
|
155
|
-
}), St =
|
156
|
-
(
|
151
|
+
) : /* @__PURE__ */ e(I, { ...n, ref: l });
|
152
|
+
}), de = y((n, l) => {
|
153
|
+
const { options: t = [], ...m } = n;
|
154
|
+
return /* @__PURE__ */ e("div", { ref: l, className: "flex flex-col gap-0", children: t.map((o) => /* @__PURE__ */ e(M, { ...m, option: o }, o.value)) });
|
155
|
+
}), St = y(
|
156
|
+
(n, l) => {
|
157
157
|
var j;
|
158
158
|
const {
|
159
159
|
value: t,
|
160
|
-
onChange:
|
161
|
-
placeholder:
|
162
|
-
disabled:
|
163
|
-
searchLabel:
|
164
|
-
fetchOptions:
|
165
|
-
options:
|
166
|
-
emptyLabel:
|
167
|
-
emptyAction:
|
160
|
+
onChange: m,
|
161
|
+
placeholder: o,
|
162
|
+
disabled: i,
|
163
|
+
searchLabel: c = "Type to search...",
|
164
|
+
fetchOptions: a,
|
165
|
+
options: d,
|
166
|
+
emptyLabel: L = "No options",
|
167
|
+
emptyAction: g,
|
168
168
|
onMount: P
|
169
|
-
} =
|
169
|
+
} = n, w = W(!1), [u, v] = f.useState(!1), [C, T] = f.useState(""), [N, x] = f.useState([]), [S, k] = f.useState(), [O, h] = f.useState(!1);
|
170
170
|
X(() => {
|
171
|
-
|
172
|
-
}, [
|
171
|
+
d != null && d.length && x(d);
|
172
|
+
}, [d]);
|
173
173
|
const R = async () => {
|
174
|
-
|
175
|
-
}, E =
|
176
|
-
|
174
|
+
u || (E(), T(""));
|
175
|
+
}, E = b(async (r) => {
|
176
|
+
h(!0);
|
177
177
|
try {
|
178
|
-
const
|
179
|
-
|
180
|
-
} catch (
|
181
|
-
console.error("Unexpected error while get option:",
|
178
|
+
const D = await a(r);
|
179
|
+
x(D);
|
180
|
+
} catch (D) {
|
181
|
+
console.error("Unexpected error while get option:", D);
|
182
182
|
} finally {
|
183
|
-
|
183
|
+
h(!1);
|
184
184
|
}
|
185
185
|
}, []), q = re(E, 1e3, {
|
186
186
|
leading: !1,
|
187
187
|
trailing: !0
|
188
|
-
}), B =
|
189
|
-
|
190
|
-
}, []), z =
|
191
|
-
|
192
|
-
}, []), G =
|
193
|
-
z({ value: "", label: "" }), k(void 0),
|
194
|
-
}, []), U =
|
188
|
+
}), B = b((r) => {
|
189
|
+
h(!0), T(r), q(r);
|
190
|
+
}, []), z = b((r) => {
|
191
|
+
m(r.value), k(r), h(!1);
|
192
|
+
}, []), G = b(() => {
|
193
|
+
z({ value: "", label: "" }), k(void 0), h(!1);
|
194
|
+
}, []), U = b(() => {
|
195
195
|
if (!P) {
|
196
|
-
|
196
|
+
w.current = !0;
|
197
197
|
return;
|
198
198
|
}
|
199
|
-
P({ setOptions:
|
199
|
+
P({ setOptions: x, search: C || "", open: u, setOpen: v }).finally(
|
200
200
|
() => {
|
201
|
-
|
201
|
+
w.current = !0;
|
202
202
|
}
|
203
203
|
);
|
204
204
|
}, []);
|
205
205
|
return H(() => (U(), () => {
|
206
|
-
|
207
|
-
}), []), /* @__PURE__ */ e("div", { className: "w-full", ref: l, children: /* @__PURE__ */
|
206
|
+
w.current = !1;
|
207
|
+
}), []), /* @__PURE__ */ e("div", { className: "w-full", ref: l, children: /* @__PURE__ */ s(
|
208
208
|
K,
|
209
209
|
{
|
210
|
-
open:
|
211
|
-
onOpenChange: (
|
212
|
-
|
210
|
+
open: u,
|
211
|
+
onOpenChange: (r) => {
|
212
|
+
v(r), r && R();
|
213
213
|
},
|
214
214
|
children: [
|
215
|
-
/* @__PURE__ */ e(Q, { asChild: !0, className: "border-input", children: /* @__PURE__ */
|
215
|
+
/* @__PURE__ */ e(Q, { asChild: !0, className: "border-input", children: /* @__PURE__ */ s(
|
216
216
|
_,
|
217
217
|
{
|
218
218
|
variant: "outline",
|
219
219
|
role: "combobox",
|
220
220
|
size: "lg",
|
221
|
-
"aria-expanded":
|
222
|
-
className:
|
221
|
+
"aria-expanded": u,
|
222
|
+
className: p(
|
223
223
|
"w-full justify-between font-normal text-sm border bg-transparent relative p-3",
|
224
|
-
|
224
|
+
u ? "border-2 border-sidebar-accent" : "border-border"
|
225
225
|
),
|
226
|
-
disabled:
|
226
|
+
disabled: i,
|
227
227
|
children: [
|
228
|
-
/* @__PURE__ */ e("span", { className: "truncate max-w-[calc(100%-1.5rem)] overflow-hidden whitespace-nowrap", children: t ? ((j =
|
228
|
+
/* @__PURE__ */ e("span", { className: "truncate max-w-[calc(100%-1.5rem)] overflow-hidden whitespace-nowrap", children: t ? ((j = N.find((r) => r.value === t)) == null ? void 0 : j.label) || (S == null ? void 0 : S.label) : /* @__PURE__ */ e("span", { className: "text-gray-400", children: o }) }),
|
229
229
|
t ? /* @__PURE__ */ e(
|
230
230
|
"div",
|
231
231
|
{
|
232
|
-
className:
|
232
|
+
className: p(
|
233
233
|
"absolute top-0 right-1",
|
234
234
|
"flex items-center justify-center",
|
235
235
|
"w-9 aspect-square [&_svg]:size-5",
|
236
236
|
"opacity-50 cursor-pointer hover:opacity-100"
|
237
237
|
),
|
238
|
-
onClick: (
|
239
|
-
|
238
|
+
onClick: (r) => {
|
239
|
+
r.stopPropagation(), G();
|
240
240
|
},
|
241
241
|
children: /* @__PURE__ */ e(ne, {})
|
242
242
|
}
|
@@ -249,37 +249,37 @@ const ce = 8, I = w((i, l) => {
|
|
249
249
|
{
|
250
250
|
className: "w-[var(--radix-popper-anchor-width)] max-w-none p-0",
|
251
251
|
align: "start",
|
252
|
-
children: /* @__PURE__ */
|
252
|
+
children: /* @__PURE__ */ s($, { shouldFilter: !1, children: [
|
253
253
|
/* @__PURE__ */ e(
|
254
254
|
ee,
|
255
255
|
{
|
256
|
-
placeholder:
|
257
|
-
value:
|
256
|
+
placeholder: c,
|
257
|
+
value: C,
|
258
258
|
onValueChange: B
|
259
259
|
}
|
260
260
|
),
|
261
|
-
/* @__PURE__ */ e(te, { children: /* @__PURE__ */
|
261
|
+
/* @__PURE__ */ e(te, { children: /* @__PURE__ */ s(
|
262
262
|
oe,
|
263
263
|
{
|
264
|
-
className:
|
264
|
+
className: p(!N.length && "p-0 shadow-none"),
|
265
265
|
children: [
|
266
|
-
|
267
|
-
!
|
268
|
-
/* @__PURE__ */ e("span", { children:
|
269
|
-
typeof
|
270
|
-
setOptions:
|
271
|
-
search:
|
272
|
-
open:
|
273
|
-
setOpen:
|
274
|
-
}) :
|
275
|
-
] }) : /* @__PURE__ */ e(F, { children:
|
276
|
-
!
|
266
|
+
O && /* @__PURE__ */ e(J, { fullWidth: !0 }),
|
267
|
+
!O && !!C && /* @__PURE__ */ e(A, { children: g ? /* @__PURE__ */ s(F, { className: "flex flex-col gap-3 py-5 px-3 items-center", children: [
|
268
|
+
/* @__PURE__ */ e("span", { children: L }),
|
269
|
+
typeof g == "function" ? g({
|
270
|
+
setOptions: x,
|
271
|
+
search: C || "",
|
272
|
+
open: u,
|
273
|
+
setOpen: v
|
274
|
+
}) : g
|
275
|
+
] }) : /* @__PURE__ */ e(F, { children: L }) }),
|
276
|
+
!O && /* @__PURE__ */ e(
|
277
277
|
de,
|
278
278
|
{
|
279
279
|
value: t,
|
280
|
-
options:
|
280
|
+
options: N,
|
281
281
|
onChangeOption: z,
|
282
|
-
setOpen:
|
282
|
+
setOpen: v
|
283
283
|
}
|
284
284
|
)
|
285
285
|
]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
2
|
import { FormControl as a } from "../Form/Form.mjs";
|
3
3
|
import { FormRenderControl as b } from "../Form/FormRenderControl.mjs";
|
4
|
-
import { C as p } from "../Combobox-
|
4
|
+
import { C as p } from "../Combobox-B0sHDL7X.js";
|
5
5
|
const x = (m) => {
|
6
6
|
const { form: n, label: e, name: t, ...C } = m;
|
7
7
|
return /* @__PURE__ */ o(
|
package/Popover/Popover.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as React from
|
2
|
-
import * as PopoverPrimitive from
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
3
3
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
4
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
5
|
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
package/Popover/Popover.mjs
CHANGED
@@ -1,24 +1,28 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
|
-
import * as
|
2
|
+
import * as s from "react";
|
3
3
|
import * as o from "@radix-ui/react-popover";
|
4
|
-
import { cn as
|
5
|
-
const
|
4
|
+
import { cn as m } from "@oneplatformdev/utils";
|
5
|
+
const c = o.Root, v = o.Trigger, g = o.Anchor, p = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, style: d, ...n }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
6
6
|
o.Content,
|
7
7
|
{
|
8
8
|
ref: i,
|
9
9
|
align: a,
|
10
10
|
sideOffset: r,
|
11
|
-
className:
|
11
|
+
className: m(
|
12
12
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 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",
|
13
13
|
e
|
14
14
|
),
|
15
|
-
|
15
|
+
style: {
|
16
|
+
pointerEvents: "auto",
|
17
|
+
...d
|
18
|
+
},
|
19
|
+
...n
|
16
20
|
}
|
17
21
|
) }));
|
18
|
-
|
22
|
+
p.displayName = o.Content.displayName;
|
19
23
|
export {
|
20
|
-
|
24
|
+
c as Popover,
|
21
25
|
g as PopoverAnchor,
|
22
|
-
|
23
|
-
|
26
|
+
p as PopoverContent,
|
27
|
+
v as PopoverTrigger
|
24
28
|
};
|
package/Select/SelectRoot.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
2
2
|
import * as l from "react";
|
3
3
|
import * as e from "@radix-ui/react-select";
|
4
|
-
import { ChevronDown as i, ChevronUp as
|
4
|
+
import { ChevronDown as i, ChevronUp as u, Check as h } from "lucide-react";
|
5
5
|
import { cn as s } from "@oneplatformdev/utils";
|
6
|
-
const
|
6
|
+
const R = e.Root, C = e.Group, I = e.Value, w = l.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
|
7
7
|
e.Trigger,
|
8
8
|
{
|
9
9
|
ref: d,
|
@@ -19,7 +19,7 @@ const v = e.Root, R = e.Group, C = e.Value, h = l.forwardRef(({ className: o, ch
|
|
19
19
|
]
|
20
20
|
}
|
21
21
|
));
|
22
|
-
|
22
|
+
w.displayName = e.Trigger.displayName;
|
23
23
|
const c = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
24
24
|
e.ScrollUpButton,
|
25
25
|
{
|
@@ -29,7 +29,7 @@ const c = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
29
29
|
o
|
30
30
|
),
|
31
31
|
...r,
|
32
|
-
children: /* @__PURE__ */ t(
|
32
|
+
children: /* @__PURE__ */ t(u, { className: "h-4 w-4" })
|
33
33
|
}
|
34
34
|
));
|
35
35
|
c.displayName = e.ScrollUpButton.displayName;
|
@@ -46,17 +46,21 @@ const m = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
46
46
|
}
|
47
47
|
));
|
48
48
|
m.displayName = e.ScrollDownButton.displayName;
|
49
|
-
const
|
49
|
+
const y = l.forwardRef(({ className: o, children: r, position: a = "popper", style: d, ...p }, f) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ n(
|
50
50
|
e.Content,
|
51
51
|
{
|
52
|
-
ref:
|
52
|
+
ref: f,
|
53
53
|
className: s(
|
54
54
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 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",
|
55
55
|
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",
|
56
56
|
o
|
57
57
|
),
|
58
58
|
position: a,
|
59
|
-
|
59
|
+
style: {
|
60
|
+
pointerEvents: "auto",
|
61
|
+
...d
|
62
|
+
},
|
63
|
+
...p,
|
60
64
|
children: [
|
61
65
|
/* @__PURE__ */ t(c, {}),
|
62
66
|
/* @__PURE__ */ t(
|
@@ -73,8 +77,8 @@ const w = l.forwardRef(({ className: o, children: r, position: a = "popper", ...
|
|
73
77
|
]
|
74
78
|
}
|
75
79
|
) }));
|
76
|
-
|
77
|
-
const
|
80
|
+
y.displayName = e.Content.displayName;
|
81
|
+
const g = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
78
82
|
e.Label,
|
79
83
|
{
|
80
84
|
ref: a,
|
@@ -82,8 +86,8 @@ const y = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
82
86
|
...r
|
83
87
|
}
|
84
88
|
));
|
85
|
-
|
86
|
-
const
|
89
|
+
g.displayName = e.Label.displayName;
|
90
|
+
const N = l.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
|
87
91
|
e.Item,
|
88
92
|
{
|
89
93
|
ref: d,
|
@@ -93,13 +97,13 @@ const g = l.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__
|
|
93
97
|
),
|
94
98
|
...a,
|
95
99
|
children: [
|
96
|
-
/* @__PURE__ */ t("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(
|
100
|
+
/* @__PURE__ */ t("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(h, { className: "h-4 w-4" }) }) }),
|
97
101
|
/* @__PURE__ */ t(e.ItemText, { children: r })
|
98
102
|
]
|
99
103
|
}
|
100
104
|
));
|
101
|
-
|
102
|
-
const
|
105
|
+
N.displayName = e.Item.displayName;
|
106
|
+
const x = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
103
107
|
e.Separator,
|
104
108
|
{
|
105
109
|
ref: a,
|
@@ -107,16 +111,16 @@ const N = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
107
111
|
...r
|
108
112
|
}
|
109
113
|
));
|
110
|
-
|
114
|
+
x.displayName = e.Separator.displayName;
|
111
115
|
export {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
116
|
+
y as SelectContent,
|
117
|
+
C as SelectGroup,
|
118
|
+
N as SelectItem,
|
119
|
+
g as SelectLabel,
|
120
|
+
R as SelectRoot,
|
117
121
|
m as SelectScrollDownButton,
|
118
122
|
c as SelectScrollUpButton,
|
119
|
-
|
120
|
-
|
121
|
-
|
123
|
+
x as SelectSeparator,
|
124
|
+
w as SelectTrigger,
|
125
|
+
I as SelectValue
|
122
126
|
};
|
package/index.mjs
CHANGED
@@ -20,7 +20,7 @@ import { Carousel as go, CarouselContent as xo, CarouselItem as fo, CarouselNext
|
|
20
20
|
import { ChartContainer as To, ChartLegend as Do, ChartLegendContent as co, ChartStyle as Mo, ChartTooltip as Po, ChartTooltipContent as Ao } from "./Chart/Chart.mjs";
|
21
21
|
import { Checkbox as wo, CheckboxLabel as ho } from "./Checkbox/Checkbox.mjs";
|
22
22
|
import { Collapsible as Fo, CollapsibleContent as Lo, CollapsibleTrigger as Ro } from "./Collapsible/Collapsible.mjs";
|
23
|
-
import { C as Go } from "./Combobox-
|
23
|
+
import { C as Go } from "./Combobox-B0sHDL7X.js";
|
24
24
|
import { Command as Ho, CommandDialog as No, CommandEmpty as Vo, CommandGroup as yo, CommandInput as Eo, CommandItem as Oo, CommandList as zo, CommandSeparator as _o, CommandShortcut as Uo } from "./Command/Command.mjs";
|
25
25
|
import { DataTable as jo } from "./DataTable/DataTable.mjs";
|
26
26
|
import { DatePicker as Jo } from "./DatePicker/DatePicker.mjs";
|