beez-ui 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -27
- package/README.md +22 -2
- package/dist/adapters/unpic-image.js +92 -14
- package/dist/components/alert-dialog.js +444 -26
- package/dist/components/alert.js +153 -18
- package/dist/components/animated-theme-toggler.js +215 -76
- package/dist/components/avatar.js +247 -15
- package/dist/components/badge.js +18 -16
- package/dist/components/button.js +85 -28
- package/dist/components/calendar.js +327 -68
- package/dist/components/card.js +39 -9
- package/dist/components/carousel.js +454 -84
- package/dist/components/checkbox.js +50 -3
- package/dist/components/data-table.js +827 -583
- package/dist/components/dialog.js +363 -22
- package/dist/components/dropdown-menu.js +543 -32
- package/dist/components/filter-query-bar.js +809 -468
- package/dist/components/filter-query-grammar.js +781 -736
- package/dist/components/form.js +305 -43
- package/dist/components/highlighter.js +142 -87
- package/dist/components/hover-card.js +97 -7
- package/dist/components/input-group.js +261 -41
- package/dist/components/input.js +8 -2
- package/dist/components/label.js +38 -3
- package/dist/components/link.js +45 -7
- package/dist/components/pagination.js +332 -16
- package/dist/components/popover.js +222 -16
- package/dist/components/radio-group.js +85 -5
- package/dist/components/select.js +451 -22
- package/dist/components/separator.js +43 -3
- package/dist/components/sheet.js +345 -22
- package/dist/components/sidebar.js +1385 -193
- package/dist/components/skeleton.js +6 -2
- package/dist/components/svgs/whatsappIcon.js +11 -1
- package/dist/components/switch.js +55 -3
- package/dist/components/table.js +288 -18
- package/dist/components/tabs.js +161 -18
- package/dist/components/textarea.js +7 -2
- package/dist/components/themed-toaster.js +63 -20
- package/dist/components/tooltip.js +128 -9
- package/dist/components/typing-animation.js +335 -150
- package/dist/constants/sidebar.js +1 -4
- package/dist/hooks/use-mobile.js +8 -8
- package/dist/hooks/use-sidebar-persistence.js +27 -27
- package/dist/lib/image-dimensions.js +2 -2
- package/dist/lib/year-month-filter.js +38 -40
- package/dist/next.js +69 -17
- package/dist/providers/beez-ui-provider.js +48 -7
- package/dist/providers/native-provider.js +40 -6
- package/dist/tanstack.js +35 -23
- package/package.json +4 -1
|
@@ -1,36 +1,465 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
6
|
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function Select(t0) {
|
|
9
|
+
const $ = _c(4);
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = props;
|
|
15
|
+
} else {
|
|
16
|
+
props = $[1];
|
|
17
|
+
}
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[2] !== props) {
|
|
20
|
+
t1 = /* @__PURE__ */ _jsx(SelectPrimitive.Root, {
|
|
21
|
+
"data-slot": "select",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
$[2] = props;
|
|
25
|
+
$[3] = t1;
|
|
26
|
+
} else {
|
|
27
|
+
t1 = $[3];
|
|
28
|
+
}
|
|
29
|
+
return t1;
|
|
8
30
|
}
|
|
9
|
-
function SelectGroup(
|
|
10
|
-
|
|
31
|
+
function SelectGroup(t0) {
|
|
32
|
+
const $ = _c(8);
|
|
33
|
+
let className;
|
|
34
|
+
let props;
|
|
35
|
+
if ($[0] !== t0) {
|
|
36
|
+
({className, ...props} = t0);
|
|
37
|
+
$[0] = t0;
|
|
38
|
+
$[1] = className;
|
|
39
|
+
$[2] = props;
|
|
40
|
+
} else {
|
|
41
|
+
className = $[1];
|
|
42
|
+
props = $[2];
|
|
43
|
+
}
|
|
44
|
+
let t1;
|
|
45
|
+
if ($[3] !== className) {
|
|
46
|
+
t1 = cn("scroll-my-1 p-1", className);
|
|
47
|
+
$[3] = className;
|
|
48
|
+
$[4] = t1;
|
|
49
|
+
} else {
|
|
50
|
+
t1 = $[4];
|
|
51
|
+
}
|
|
52
|
+
let t2;
|
|
53
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
54
|
+
t2 = /* @__PURE__ */ _jsx(SelectPrimitive.Group, {
|
|
55
|
+
"data-slot": "select-group",
|
|
56
|
+
className: t1,
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
$[5] = props;
|
|
60
|
+
$[6] = t1;
|
|
61
|
+
$[7] = t2;
|
|
62
|
+
} else {
|
|
63
|
+
t2 = $[7];
|
|
64
|
+
}
|
|
65
|
+
return t2;
|
|
11
66
|
}
|
|
12
|
-
function SelectValue(
|
|
13
|
-
|
|
67
|
+
function SelectValue(t0) {
|
|
68
|
+
const $ = _c(4);
|
|
69
|
+
let props;
|
|
70
|
+
if ($[0] !== t0) {
|
|
71
|
+
({...props} = t0);
|
|
72
|
+
$[0] = t0;
|
|
73
|
+
$[1] = props;
|
|
74
|
+
} else {
|
|
75
|
+
props = $[1];
|
|
76
|
+
}
|
|
77
|
+
let t1;
|
|
78
|
+
if ($[2] !== props) {
|
|
79
|
+
t1 = /* @__PURE__ */ _jsx(SelectPrimitive.Value, {
|
|
80
|
+
"data-slot": "select-value",
|
|
81
|
+
...props
|
|
82
|
+
});
|
|
83
|
+
$[2] = props;
|
|
84
|
+
$[3] = t1;
|
|
85
|
+
} else {
|
|
86
|
+
t1 = $[3];
|
|
87
|
+
}
|
|
88
|
+
return t1;
|
|
14
89
|
}
|
|
15
|
-
function SelectTrigger(
|
|
16
|
-
|
|
90
|
+
function SelectTrigger(t0) {
|
|
91
|
+
const $ = _c(13);
|
|
92
|
+
let children;
|
|
93
|
+
let className;
|
|
94
|
+
let props;
|
|
95
|
+
let t1;
|
|
96
|
+
if ($[0] !== t0) {
|
|
97
|
+
({className, size: t1, children, ...props} = t0);
|
|
98
|
+
$[0] = t0;
|
|
99
|
+
$[1] = children;
|
|
100
|
+
$[2] = className;
|
|
101
|
+
$[3] = props;
|
|
102
|
+
$[4] = t1;
|
|
103
|
+
} else {
|
|
104
|
+
children = $[1];
|
|
105
|
+
className = $[2];
|
|
106
|
+
props = $[3];
|
|
107
|
+
t1 = $[4];
|
|
108
|
+
}
|
|
109
|
+
const size = t1 === undefined ? "default" : t1;
|
|
110
|
+
let t2;
|
|
111
|
+
if ($[5] !== className) {
|
|
112
|
+
t2 = cn("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className);
|
|
113
|
+
$[5] = className;
|
|
114
|
+
$[6] = t2;
|
|
115
|
+
} else {
|
|
116
|
+
t2 = $[6];
|
|
117
|
+
}
|
|
118
|
+
let t3;
|
|
119
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
120
|
+
t3 = /* @__PURE__ */ _jsx(SelectPrimitive.Icon, {
|
|
121
|
+
asChild: true,
|
|
122
|
+
children: /* @__PURE__ */ _jsx(ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
123
|
+
});
|
|
124
|
+
$[7] = t3;
|
|
125
|
+
} else {
|
|
126
|
+
t3 = $[7];
|
|
127
|
+
}
|
|
128
|
+
let t4;
|
|
129
|
+
if ($[8] !== children || $[9] !== props || $[10] !== size || $[11] !== t2) {
|
|
130
|
+
t4 = /* @__PURE__ */ _jsxs(SelectPrimitive.Trigger, {
|
|
131
|
+
"data-slot": "select-trigger",
|
|
132
|
+
"data-size": size,
|
|
133
|
+
className: t2,
|
|
134
|
+
...props,
|
|
135
|
+
children: [children, t3]
|
|
136
|
+
});
|
|
137
|
+
$[8] = children;
|
|
138
|
+
$[9] = props;
|
|
139
|
+
$[10] = size;
|
|
140
|
+
$[11] = t2;
|
|
141
|
+
$[12] = t4;
|
|
142
|
+
} else {
|
|
143
|
+
t4 = $[12];
|
|
144
|
+
}
|
|
145
|
+
return t4;
|
|
17
146
|
}
|
|
18
|
-
function SelectContent(
|
|
19
|
-
|
|
147
|
+
function SelectContent(t0) {
|
|
148
|
+
const $ = _c(24);
|
|
149
|
+
let children;
|
|
150
|
+
let className;
|
|
151
|
+
let props;
|
|
152
|
+
let t1;
|
|
153
|
+
let t2;
|
|
154
|
+
if ($[0] !== t0) {
|
|
155
|
+
({className, children, position: t1, align: t2, ...props} = t0);
|
|
156
|
+
$[0] = t0;
|
|
157
|
+
$[1] = children;
|
|
158
|
+
$[2] = className;
|
|
159
|
+
$[3] = props;
|
|
160
|
+
$[4] = t1;
|
|
161
|
+
$[5] = t2;
|
|
162
|
+
} else {
|
|
163
|
+
children = $[1];
|
|
164
|
+
className = $[2];
|
|
165
|
+
props = $[3];
|
|
166
|
+
t1 = $[4];
|
|
167
|
+
t2 = $[5];
|
|
168
|
+
}
|
|
169
|
+
const position = t1 === undefined ? "item-aligned" : t1;
|
|
170
|
+
const align = t2 === undefined ? "center" : t2;
|
|
171
|
+
const t3 = position === "item-aligned";
|
|
172
|
+
const t4 = position === "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";
|
|
173
|
+
let t5;
|
|
174
|
+
if ($[6] !== className || $[7] !== t4) {
|
|
175
|
+
t5 = cn("z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!", t4, className);
|
|
176
|
+
$[6] = className;
|
|
177
|
+
$[7] = t4;
|
|
178
|
+
$[8] = t5;
|
|
179
|
+
} else {
|
|
180
|
+
t5 = $[8];
|
|
181
|
+
}
|
|
182
|
+
let t6;
|
|
183
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
184
|
+
t6 = /* @__PURE__ */ _jsx(SelectScrollUpButton, {});
|
|
185
|
+
$[9] = t6;
|
|
186
|
+
} else {
|
|
187
|
+
t6 = $[9];
|
|
188
|
+
}
|
|
189
|
+
const t7 = position === "popper" && "";
|
|
190
|
+
let t8;
|
|
191
|
+
if ($[10] !== t7) {
|
|
192
|
+
t8 = cn("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", t7);
|
|
193
|
+
$[10] = t7;
|
|
194
|
+
$[11] = t8;
|
|
195
|
+
} else {
|
|
196
|
+
t8 = $[11];
|
|
197
|
+
}
|
|
198
|
+
let t9;
|
|
199
|
+
if ($[12] !== children || $[13] !== position || $[14] !== t8) {
|
|
200
|
+
t9 = /* @__PURE__ */ _jsx(SelectPrimitive.Viewport, {
|
|
201
|
+
"data-position": position,
|
|
202
|
+
className: t8,
|
|
203
|
+
children
|
|
204
|
+
});
|
|
205
|
+
$[12] = children;
|
|
206
|
+
$[13] = position;
|
|
207
|
+
$[14] = t8;
|
|
208
|
+
$[15] = t9;
|
|
209
|
+
} else {
|
|
210
|
+
t9 = $[15];
|
|
211
|
+
}
|
|
212
|
+
let t10;
|
|
213
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
214
|
+
t10 = /* @__PURE__ */ _jsx(SelectScrollDownButton, {});
|
|
215
|
+
$[16] = t10;
|
|
216
|
+
} else {
|
|
217
|
+
t10 = $[16];
|
|
218
|
+
}
|
|
219
|
+
let t11;
|
|
220
|
+
if ($[17] !== align || $[18] !== position || $[19] !== props || $[20] !== t3 || $[21] !== t5 || $[22] !== t9) {
|
|
221
|
+
t11 = /* @__PURE__ */ _jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ _jsxs(SelectPrimitive.Content, {
|
|
222
|
+
"data-slot": "select-content",
|
|
223
|
+
"data-align-trigger": t3,
|
|
224
|
+
className: t5,
|
|
225
|
+
position,
|
|
226
|
+
align,
|
|
227
|
+
...props,
|
|
228
|
+
children: [
|
|
229
|
+
t6,
|
|
230
|
+
t9,
|
|
231
|
+
t10
|
|
232
|
+
]
|
|
233
|
+
}) });
|
|
234
|
+
$[17] = align;
|
|
235
|
+
$[18] = position;
|
|
236
|
+
$[19] = props;
|
|
237
|
+
$[20] = t3;
|
|
238
|
+
$[21] = t5;
|
|
239
|
+
$[22] = t9;
|
|
240
|
+
$[23] = t11;
|
|
241
|
+
} else {
|
|
242
|
+
t11 = $[23];
|
|
243
|
+
}
|
|
244
|
+
return t11;
|
|
20
245
|
}
|
|
21
|
-
function SelectLabel(
|
|
22
|
-
|
|
246
|
+
function SelectLabel(t0) {
|
|
247
|
+
const $ = _c(8);
|
|
248
|
+
let className;
|
|
249
|
+
let props;
|
|
250
|
+
if ($[0] !== t0) {
|
|
251
|
+
({className, ...props} = t0);
|
|
252
|
+
$[0] = t0;
|
|
253
|
+
$[1] = className;
|
|
254
|
+
$[2] = props;
|
|
255
|
+
} else {
|
|
256
|
+
className = $[1];
|
|
257
|
+
props = $[2];
|
|
258
|
+
}
|
|
259
|
+
let t1;
|
|
260
|
+
if ($[3] !== className) {
|
|
261
|
+
t1 = cn("px-2 py-1.5 text-xs text-muted-foreground", className);
|
|
262
|
+
$[3] = className;
|
|
263
|
+
$[4] = t1;
|
|
264
|
+
} else {
|
|
265
|
+
t1 = $[4];
|
|
266
|
+
}
|
|
267
|
+
let t2;
|
|
268
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
269
|
+
t2 = /* @__PURE__ */ _jsx(SelectPrimitive.Label, {
|
|
270
|
+
"data-slot": "select-label",
|
|
271
|
+
className: t1,
|
|
272
|
+
...props
|
|
273
|
+
});
|
|
274
|
+
$[5] = props;
|
|
275
|
+
$[6] = t1;
|
|
276
|
+
$[7] = t2;
|
|
277
|
+
} else {
|
|
278
|
+
t2 = $[7];
|
|
279
|
+
}
|
|
280
|
+
return t2;
|
|
23
281
|
}
|
|
24
|
-
function SelectItem(
|
|
25
|
-
|
|
282
|
+
function SelectItem(t0) {
|
|
283
|
+
const $ = _c(13);
|
|
284
|
+
let children;
|
|
285
|
+
let className;
|
|
286
|
+
let props;
|
|
287
|
+
if ($[0] !== t0) {
|
|
288
|
+
({className, children, ...props} = t0);
|
|
289
|
+
$[0] = t0;
|
|
290
|
+
$[1] = children;
|
|
291
|
+
$[2] = className;
|
|
292
|
+
$[3] = props;
|
|
293
|
+
} else {
|
|
294
|
+
children = $[1];
|
|
295
|
+
className = $[2];
|
|
296
|
+
props = $[3];
|
|
297
|
+
}
|
|
298
|
+
let t1;
|
|
299
|
+
if ($[4] !== className) {
|
|
300
|
+
t1 = cn("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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", className);
|
|
301
|
+
$[4] = className;
|
|
302
|
+
$[5] = t1;
|
|
303
|
+
} else {
|
|
304
|
+
t1 = $[5];
|
|
305
|
+
}
|
|
306
|
+
let t2;
|
|
307
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
308
|
+
t2 = /* @__PURE__ */ _jsx("span", {
|
|
309
|
+
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center",
|
|
310
|
+
children: /* @__PURE__ */ _jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsx(CheckIcon, { className: "pointer-events-none" }) })
|
|
311
|
+
});
|
|
312
|
+
$[6] = t2;
|
|
313
|
+
} else {
|
|
314
|
+
t2 = $[6];
|
|
315
|
+
}
|
|
316
|
+
let t3;
|
|
317
|
+
if ($[7] !== children) {
|
|
318
|
+
t3 = /* @__PURE__ */ _jsx(SelectPrimitive.ItemText, { children });
|
|
319
|
+
$[7] = children;
|
|
320
|
+
$[8] = t3;
|
|
321
|
+
} else {
|
|
322
|
+
t3 = $[8];
|
|
323
|
+
}
|
|
324
|
+
let t4;
|
|
325
|
+
if ($[9] !== props || $[10] !== t1 || $[11] !== t3) {
|
|
326
|
+
t4 = /* @__PURE__ */ _jsxs(SelectPrimitive.Item, {
|
|
327
|
+
"data-slot": "select-item",
|
|
328
|
+
className: t1,
|
|
329
|
+
...props,
|
|
330
|
+
children: [t2, t3]
|
|
331
|
+
});
|
|
332
|
+
$[9] = props;
|
|
333
|
+
$[10] = t1;
|
|
334
|
+
$[11] = t3;
|
|
335
|
+
$[12] = t4;
|
|
336
|
+
} else {
|
|
337
|
+
t4 = $[12];
|
|
338
|
+
}
|
|
339
|
+
return t4;
|
|
26
340
|
}
|
|
27
|
-
function SelectSeparator(
|
|
28
|
-
|
|
341
|
+
function SelectSeparator(t0) {
|
|
342
|
+
const $ = _c(8);
|
|
343
|
+
let className;
|
|
344
|
+
let props;
|
|
345
|
+
if ($[0] !== t0) {
|
|
346
|
+
({className, ...props} = t0);
|
|
347
|
+
$[0] = t0;
|
|
348
|
+
$[1] = className;
|
|
349
|
+
$[2] = props;
|
|
350
|
+
} else {
|
|
351
|
+
className = $[1];
|
|
352
|
+
props = $[2];
|
|
353
|
+
}
|
|
354
|
+
let t1;
|
|
355
|
+
if ($[3] !== className) {
|
|
356
|
+
t1 = cn("pointer-events-none -mx-1 my-1 h-px bg-border", className);
|
|
357
|
+
$[3] = className;
|
|
358
|
+
$[4] = t1;
|
|
359
|
+
} else {
|
|
360
|
+
t1 = $[4];
|
|
361
|
+
}
|
|
362
|
+
let t2;
|
|
363
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
364
|
+
t2 = /* @__PURE__ */ _jsx(SelectPrimitive.Separator, {
|
|
365
|
+
"data-slot": "select-separator",
|
|
366
|
+
className: t1,
|
|
367
|
+
...props
|
|
368
|
+
});
|
|
369
|
+
$[5] = props;
|
|
370
|
+
$[6] = t1;
|
|
371
|
+
$[7] = t2;
|
|
372
|
+
} else {
|
|
373
|
+
t2 = $[7];
|
|
374
|
+
}
|
|
375
|
+
return t2;
|
|
29
376
|
}
|
|
30
|
-
function SelectScrollUpButton(
|
|
31
|
-
|
|
377
|
+
function SelectScrollUpButton(t0) {
|
|
378
|
+
const $ = _c(9);
|
|
379
|
+
let className;
|
|
380
|
+
let props;
|
|
381
|
+
if ($[0] !== t0) {
|
|
382
|
+
({className, ...props} = t0);
|
|
383
|
+
$[0] = t0;
|
|
384
|
+
$[1] = className;
|
|
385
|
+
$[2] = props;
|
|
386
|
+
} else {
|
|
387
|
+
className = $[1];
|
|
388
|
+
props = $[2];
|
|
389
|
+
}
|
|
390
|
+
let t1;
|
|
391
|
+
if ($[3] !== className) {
|
|
392
|
+
t1 = cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className);
|
|
393
|
+
$[3] = className;
|
|
394
|
+
$[4] = t1;
|
|
395
|
+
} else {
|
|
396
|
+
t1 = $[4];
|
|
397
|
+
}
|
|
398
|
+
let t2;
|
|
399
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
400
|
+
t2 = /* @__PURE__ */ _jsx(ChevronUpIcon, {});
|
|
401
|
+
$[5] = t2;
|
|
402
|
+
} else {
|
|
403
|
+
t2 = $[5];
|
|
404
|
+
}
|
|
405
|
+
let t3;
|
|
406
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
407
|
+
t3 = /* @__PURE__ */ _jsx(SelectPrimitive.ScrollUpButton, {
|
|
408
|
+
"data-slot": "select-scroll-up-button",
|
|
409
|
+
className: t1,
|
|
410
|
+
...props,
|
|
411
|
+
children: t2
|
|
412
|
+
});
|
|
413
|
+
$[6] = props;
|
|
414
|
+
$[7] = t1;
|
|
415
|
+
$[8] = t3;
|
|
416
|
+
} else {
|
|
417
|
+
t3 = $[8];
|
|
418
|
+
}
|
|
419
|
+
return t3;
|
|
32
420
|
}
|
|
33
|
-
function SelectScrollDownButton(
|
|
34
|
-
|
|
421
|
+
function SelectScrollDownButton(t0) {
|
|
422
|
+
const $ = _c(9);
|
|
423
|
+
let className;
|
|
424
|
+
let props;
|
|
425
|
+
if ($[0] !== t0) {
|
|
426
|
+
({className, ...props} = t0);
|
|
427
|
+
$[0] = t0;
|
|
428
|
+
$[1] = className;
|
|
429
|
+
$[2] = props;
|
|
430
|
+
} else {
|
|
431
|
+
className = $[1];
|
|
432
|
+
props = $[2];
|
|
433
|
+
}
|
|
434
|
+
let t1;
|
|
435
|
+
if ($[3] !== className) {
|
|
436
|
+
t1 = cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className);
|
|
437
|
+
$[3] = className;
|
|
438
|
+
$[4] = t1;
|
|
439
|
+
} else {
|
|
440
|
+
t1 = $[4];
|
|
441
|
+
}
|
|
442
|
+
let t2;
|
|
443
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
444
|
+
t2 = /* @__PURE__ */ _jsx(ChevronDownIcon, {});
|
|
445
|
+
$[5] = t2;
|
|
446
|
+
} else {
|
|
447
|
+
t2 = $[5];
|
|
448
|
+
}
|
|
449
|
+
let t3;
|
|
450
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
451
|
+
t3 = /* @__PURE__ */ _jsx(SelectPrimitive.ScrollDownButton, {
|
|
452
|
+
"data-slot": "select-scroll-down-button",
|
|
453
|
+
className: t1,
|
|
454
|
+
...props,
|
|
455
|
+
children: t2
|
|
456
|
+
});
|
|
457
|
+
$[6] = props;
|
|
458
|
+
$[7] = t1;
|
|
459
|
+
$[8] = t3;
|
|
460
|
+
} else {
|
|
461
|
+
t3 = $[8];
|
|
462
|
+
}
|
|
463
|
+
return t3;
|
|
35
464
|
}
|
|
36
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue
|
|
465
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,8 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
3
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
function Separator(t0) {
|
|
7
|
+
const $ = _c(10);
|
|
8
|
+
let className;
|
|
9
|
+
let props;
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({className, orientation: t1, ...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = className;
|
|
15
|
+
$[2] = props;
|
|
16
|
+
$[3] = t1;
|
|
17
|
+
} else {
|
|
18
|
+
className = $[1];
|
|
19
|
+
props = $[2];
|
|
20
|
+
t1 = $[3];
|
|
21
|
+
}
|
|
22
|
+
const orientation = t1 === undefined ? "horizontal" : t1;
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[4] !== className) {
|
|
25
|
+
t2 = cn("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", className);
|
|
26
|
+
$[4] = className;
|
|
27
|
+
$[5] = t2;
|
|
28
|
+
} else {
|
|
29
|
+
t2 = $[5];
|
|
30
|
+
}
|
|
31
|
+
let t3;
|
|
32
|
+
if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {
|
|
33
|
+
t3 = /* @__PURE__ */ _jsx(SeparatorPrimitive, {
|
|
34
|
+
"data-slot": "separator",
|
|
35
|
+
orientation,
|
|
36
|
+
className: t2,
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
$[6] = orientation;
|
|
40
|
+
$[7] = props;
|
|
41
|
+
$[8] = t2;
|
|
42
|
+
$[9] = t3;
|
|
43
|
+
} else {
|
|
44
|
+
t3 = $[9];
|
|
45
|
+
}
|
|
46
|
+
return t3;
|
|
7
47
|
}
|
|
8
48
|
export { Separator };
|