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,51 +1,562 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
6
|
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function DropdownMenu(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(DropdownMenuPrimitive.Root, {
|
|
21
|
+
"data-slot": "dropdown-menu",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
$[2] = props;
|
|
25
|
+
$[3] = t1;
|
|
26
|
+
} else {
|
|
27
|
+
t1 = $[3];
|
|
28
|
+
}
|
|
29
|
+
return t1;
|
|
8
30
|
}
|
|
9
|
-
function DropdownMenuPortal(
|
|
10
|
-
|
|
31
|
+
function DropdownMenuPortal(t0) {
|
|
32
|
+
const $ = _c(4);
|
|
33
|
+
let props;
|
|
34
|
+
if ($[0] !== t0) {
|
|
35
|
+
({...props} = t0);
|
|
36
|
+
$[0] = t0;
|
|
37
|
+
$[1] = props;
|
|
38
|
+
} else {
|
|
39
|
+
props = $[1];
|
|
40
|
+
}
|
|
41
|
+
let t1;
|
|
42
|
+
if ($[2] !== props) {
|
|
43
|
+
t1 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Portal, {
|
|
44
|
+
"data-slot": "dropdown-menu-portal",
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
$[2] = props;
|
|
48
|
+
$[3] = t1;
|
|
49
|
+
} else {
|
|
50
|
+
t1 = $[3];
|
|
51
|
+
}
|
|
52
|
+
return t1;
|
|
11
53
|
}
|
|
12
|
-
function DropdownMenuTrigger(
|
|
13
|
-
|
|
54
|
+
function DropdownMenuTrigger(t0) {
|
|
55
|
+
const $ = _c(4);
|
|
56
|
+
let props;
|
|
57
|
+
if ($[0] !== t0) {
|
|
58
|
+
({...props} = t0);
|
|
59
|
+
$[0] = t0;
|
|
60
|
+
$[1] = props;
|
|
61
|
+
} else {
|
|
62
|
+
props = $[1];
|
|
63
|
+
}
|
|
64
|
+
let t1;
|
|
65
|
+
if ($[2] !== props) {
|
|
66
|
+
t1 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Trigger, {
|
|
67
|
+
"data-slot": "dropdown-menu-trigger",
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
70
|
+
$[2] = props;
|
|
71
|
+
$[3] = t1;
|
|
72
|
+
} else {
|
|
73
|
+
t1 = $[3];
|
|
74
|
+
}
|
|
75
|
+
return t1;
|
|
14
76
|
}
|
|
15
|
-
function DropdownMenuContent(
|
|
16
|
-
|
|
77
|
+
function DropdownMenuContent(t0) {
|
|
78
|
+
const $ = _c(12);
|
|
79
|
+
let className;
|
|
80
|
+
let props;
|
|
81
|
+
let t1;
|
|
82
|
+
let t2;
|
|
83
|
+
if ($[0] !== t0) {
|
|
84
|
+
({className, align: t1, sideOffset: t2, ...props} = t0);
|
|
85
|
+
$[0] = t0;
|
|
86
|
+
$[1] = className;
|
|
87
|
+
$[2] = props;
|
|
88
|
+
$[3] = t1;
|
|
89
|
+
$[4] = t2;
|
|
90
|
+
} else {
|
|
91
|
+
className = $[1];
|
|
92
|
+
props = $[2];
|
|
93
|
+
t1 = $[3];
|
|
94
|
+
t2 = $[4];
|
|
95
|
+
}
|
|
96
|
+
const align = t1 === undefined ? "start" : t1;
|
|
97
|
+
const sideOffset = t2 === undefined ? 4 : t2;
|
|
98
|
+
let t3;
|
|
99
|
+
if ($[5] !== className) {
|
|
100
|
+
t3 = cn("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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-[state=closed]:overflow-hidden 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-destructive/10!", className);
|
|
101
|
+
$[5] = className;
|
|
102
|
+
$[6] = t3;
|
|
103
|
+
} else {
|
|
104
|
+
t3 = $[6];
|
|
105
|
+
}
|
|
106
|
+
let t4;
|
|
107
|
+
if ($[7] !== align || $[8] !== props || $[9] !== sideOffset || $[10] !== t3) {
|
|
108
|
+
t4 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Content, {
|
|
109
|
+
"data-slot": "dropdown-menu-content",
|
|
110
|
+
sideOffset,
|
|
111
|
+
align,
|
|
112
|
+
className: t3,
|
|
113
|
+
...props
|
|
114
|
+
}) });
|
|
115
|
+
$[7] = align;
|
|
116
|
+
$[8] = props;
|
|
117
|
+
$[9] = sideOffset;
|
|
118
|
+
$[10] = t3;
|
|
119
|
+
$[11] = t4;
|
|
120
|
+
} else {
|
|
121
|
+
t4 = $[11];
|
|
122
|
+
}
|
|
123
|
+
return t4;
|
|
17
124
|
}
|
|
18
|
-
function DropdownMenuGroup(
|
|
19
|
-
|
|
125
|
+
function DropdownMenuGroup(t0) {
|
|
126
|
+
const $ = _c(4);
|
|
127
|
+
let props;
|
|
128
|
+
if ($[0] !== t0) {
|
|
129
|
+
({...props} = t0);
|
|
130
|
+
$[0] = t0;
|
|
131
|
+
$[1] = props;
|
|
132
|
+
} else {
|
|
133
|
+
props = $[1];
|
|
134
|
+
}
|
|
135
|
+
let t1;
|
|
136
|
+
if ($[2] !== props) {
|
|
137
|
+
t1 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Group, {
|
|
138
|
+
"data-slot": "dropdown-menu-group",
|
|
139
|
+
...props
|
|
140
|
+
});
|
|
141
|
+
$[2] = props;
|
|
142
|
+
$[3] = t1;
|
|
143
|
+
} else {
|
|
144
|
+
t1 = $[3];
|
|
145
|
+
}
|
|
146
|
+
return t1;
|
|
20
147
|
}
|
|
21
|
-
function DropdownMenuItem(
|
|
22
|
-
|
|
148
|
+
function DropdownMenuItem(t0) {
|
|
149
|
+
const $ = _c(12);
|
|
150
|
+
let className;
|
|
151
|
+
let inset;
|
|
152
|
+
let props;
|
|
153
|
+
let t1;
|
|
154
|
+
if ($[0] !== t0) {
|
|
155
|
+
({className, inset, variant: t1, ...props} = t0);
|
|
156
|
+
$[0] = t0;
|
|
157
|
+
$[1] = className;
|
|
158
|
+
$[2] = inset;
|
|
159
|
+
$[3] = props;
|
|
160
|
+
$[4] = t1;
|
|
161
|
+
} else {
|
|
162
|
+
className = $[1];
|
|
163
|
+
inset = $[2];
|
|
164
|
+
props = $[3];
|
|
165
|
+
t1 = $[4];
|
|
166
|
+
}
|
|
167
|
+
const variant = t1 === undefined ? "default" : t1;
|
|
168
|
+
let t2;
|
|
169
|
+
if ($[5] !== className) {
|
|
170
|
+
t2 = cn("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", className);
|
|
171
|
+
$[5] = className;
|
|
172
|
+
$[6] = t2;
|
|
173
|
+
} else {
|
|
174
|
+
t2 = $[6];
|
|
175
|
+
}
|
|
176
|
+
let t3;
|
|
177
|
+
if ($[7] !== inset || $[8] !== props || $[9] !== t2 || $[10] !== variant) {
|
|
178
|
+
t3 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Item, {
|
|
179
|
+
"data-slot": "dropdown-menu-item",
|
|
180
|
+
"data-inset": inset,
|
|
181
|
+
"data-variant": variant,
|
|
182
|
+
className: t2,
|
|
183
|
+
...props
|
|
184
|
+
});
|
|
185
|
+
$[7] = inset;
|
|
186
|
+
$[8] = props;
|
|
187
|
+
$[9] = t2;
|
|
188
|
+
$[10] = variant;
|
|
189
|
+
$[11] = t3;
|
|
190
|
+
} else {
|
|
191
|
+
t3 = $[11];
|
|
192
|
+
}
|
|
193
|
+
return t3;
|
|
23
194
|
}
|
|
24
|
-
function DropdownMenuCheckboxItem(
|
|
25
|
-
|
|
195
|
+
function DropdownMenuCheckboxItem(t0) {
|
|
196
|
+
const $ = _c(15);
|
|
197
|
+
let checked;
|
|
198
|
+
let children;
|
|
199
|
+
let className;
|
|
200
|
+
let inset;
|
|
201
|
+
let props;
|
|
202
|
+
if ($[0] !== t0) {
|
|
203
|
+
({className, children, checked, inset, ...props} = t0);
|
|
204
|
+
$[0] = t0;
|
|
205
|
+
$[1] = checked;
|
|
206
|
+
$[2] = children;
|
|
207
|
+
$[3] = className;
|
|
208
|
+
$[4] = inset;
|
|
209
|
+
$[5] = props;
|
|
210
|
+
} else {
|
|
211
|
+
checked = $[1];
|
|
212
|
+
children = $[2];
|
|
213
|
+
className = $[3];
|
|
214
|
+
inset = $[4];
|
|
215
|
+
props = $[5];
|
|
216
|
+
}
|
|
217
|
+
let t1;
|
|
218
|
+
if ($[6] !== className) {
|
|
219
|
+
t1 = cn("relative flex 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 focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className);
|
|
220
|
+
$[6] = className;
|
|
221
|
+
$[7] = t1;
|
|
222
|
+
} else {
|
|
223
|
+
t1 = $[7];
|
|
224
|
+
}
|
|
225
|
+
let t2;
|
|
226
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
227
|
+
t2 = /* @__PURE__ */ _jsx("span", {
|
|
228
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
229
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
230
|
+
children: /* @__PURE__ */ _jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsx(CheckIcon, {}) })
|
|
231
|
+
});
|
|
232
|
+
$[8] = t2;
|
|
233
|
+
} else {
|
|
234
|
+
t2 = $[8];
|
|
235
|
+
}
|
|
236
|
+
let t3;
|
|
237
|
+
if ($[9] !== checked || $[10] !== children || $[11] !== inset || $[12] !== props || $[13] !== t1) {
|
|
238
|
+
t3 = /* @__PURE__ */ _jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
239
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
240
|
+
"data-inset": inset,
|
|
241
|
+
className: t1,
|
|
242
|
+
checked,
|
|
243
|
+
...props,
|
|
244
|
+
children: [t2, children]
|
|
245
|
+
});
|
|
246
|
+
$[9] = checked;
|
|
247
|
+
$[10] = children;
|
|
248
|
+
$[11] = inset;
|
|
249
|
+
$[12] = props;
|
|
250
|
+
$[13] = t1;
|
|
251
|
+
$[14] = t3;
|
|
252
|
+
} else {
|
|
253
|
+
t3 = $[14];
|
|
254
|
+
}
|
|
255
|
+
return t3;
|
|
26
256
|
}
|
|
27
|
-
function DropdownMenuRadioGroup(
|
|
28
|
-
|
|
257
|
+
function DropdownMenuRadioGroup(t0) {
|
|
258
|
+
const $ = _c(4);
|
|
259
|
+
let props;
|
|
260
|
+
if ($[0] !== t0) {
|
|
261
|
+
({...props} = t0);
|
|
262
|
+
$[0] = t0;
|
|
263
|
+
$[1] = props;
|
|
264
|
+
} else {
|
|
265
|
+
props = $[1];
|
|
266
|
+
}
|
|
267
|
+
let t1;
|
|
268
|
+
if ($[2] !== props) {
|
|
269
|
+
t1 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.RadioGroup, {
|
|
270
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
271
|
+
...props
|
|
272
|
+
});
|
|
273
|
+
$[2] = props;
|
|
274
|
+
$[3] = t1;
|
|
275
|
+
} else {
|
|
276
|
+
t1 = $[3];
|
|
277
|
+
}
|
|
278
|
+
return t1;
|
|
29
279
|
}
|
|
30
|
-
function DropdownMenuRadioItem(
|
|
31
|
-
|
|
280
|
+
function DropdownMenuRadioItem(t0) {
|
|
281
|
+
const $ = _c(13);
|
|
282
|
+
let children;
|
|
283
|
+
let className;
|
|
284
|
+
let inset;
|
|
285
|
+
let props;
|
|
286
|
+
if ($[0] !== t0) {
|
|
287
|
+
({className, children, inset, ...props} = t0);
|
|
288
|
+
$[0] = t0;
|
|
289
|
+
$[1] = children;
|
|
290
|
+
$[2] = className;
|
|
291
|
+
$[3] = inset;
|
|
292
|
+
$[4] = props;
|
|
293
|
+
} else {
|
|
294
|
+
children = $[1];
|
|
295
|
+
className = $[2];
|
|
296
|
+
inset = $[3];
|
|
297
|
+
props = $[4];
|
|
298
|
+
}
|
|
299
|
+
let t1;
|
|
300
|
+
if ($[5] !== className) {
|
|
301
|
+
t1 = cn("relative flex 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 focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className);
|
|
302
|
+
$[5] = className;
|
|
303
|
+
$[6] = t1;
|
|
304
|
+
} else {
|
|
305
|
+
t1 = $[6];
|
|
306
|
+
}
|
|
307
|
+
let t2;
|
|
308
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
309
|
+
t2 = /* @__PURE__ */ _jsx("span", {
|
|
310
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
311
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
312
|
+
children: /* @__PURE__ */ _jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ _jsx(CheckIcon, {}) })
|
|
313
|
+
});
|
|
314
|
+
$[7] = t2;
|
|
315
|
+
} else {
|
|
316
|
+
t2 = $[7];
|
|
317
|
+
}
|
|
318
|
+
let t3;
|
|
319
|
+
if ($[8] !== children || $[9] !== inset || $[10] !== props || $[11] !== t1) {
|
|
320
|
+
t3 = /* @__PURE__ */ _jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
321
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
322
|
+
"data-inset": inset,
|
|
323
|
+
className: t1,
|
|
324
|
+
...props,
|
|
325
|
+
children: [t2, children]
|
|
326
|
+
});
|
|
327
|
+
$[8] = children;
|
|
328
|
+
$[9] = inset;
|
|
329
|
+
$[10] = props;
|
|
330
|
+
$[11] = t1;
|
|
331
|
+
$[12] = t3;
|
|
332
|
+
} else {
|
|
333
|
+
t3 = $[12];
|
|
334
|
+
}
|
|
335
|
+
return t3;
|
|
32
336
|
}
|
|
33
|
-
function DropdownMenuLabel(
|
|
34
|
-
|
|
337
|
+
function DropdownMenuLabel(t0) {
|
|
338
|
+
const $ = _c(10);
|
|
339
|
+
let className;
|
|
340
|
+
let inset;
|
|
341
|
+
let props;
|
|
342
|
+
if ($[0] !== t0) {
|
|
343
|
+
({className, inset, ...props} = t0);
|
|
344
|
+
$[0] = t0;
|
|
345
|
+
$[1] = className;
|
|
346
|
+
$[2] = inset;
|
|
347
|
+
$[3] = props;
|
|
348
|
+
} else {
|
|
349
|
+
className = $[1];
|
|
350
|
+
inset = $[2];
|
|
351
|
+
props = $[3];
|
|
352
|
+
}
|
|
353
|
+
let t1;
|
|
354
|
+
if ($[4] !== className) {
|
|
355
|
+
t1 = cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", className);
|
|
356
|
+
$[4] = className;
|
|
357
|
+
$[5] = t1;
|
|
358
|
+
} else {
|
|
359
|
+
t1 = $[5];
|
|
360
|
+
}
|
|
361
|
+
let t2;
|
|
362
|
+
if ($[6] !== inset || $[7] !== props || $[8] !== t1) {
|
|
363
|
+
t2 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Label, {
|
|
364
|
+
"data-slot": "dropdown-menu-label",
|
|
365
|
+
"data-inset": inset,
|
|
366
|
+
className: t1,
|
|
367
|
+
...props
|
|
368
|
+
});
|
|
369
|
+
$[6] = inset;
|
|
370
|
+
$[7] = props;
|
|
371
|
+
$[8] = t1;
|
|
372
|
+
$[9] = t2;
|
|
373
|
+
} else {
|
|
374
|
+
t2 = $[9];
|
|
375
|
+
}
|
|
376
|
+
return t2;
|
|
35
377
|
}
|
|
36
|
-
function DropdownMenuSeparator(
|
|
37
|
-
|
|
378
|
+
function DropdownMenuSeparator(t0) {
|
|
379
|
+
const $ = _c(8);
|
|
380
|
+
let className;
|
|
381
|
+
let props;
|
|
382
|
+
if ($[0] !== t0) {
|
|
383
|
+
({className, ...props} = t0);
|
|
384
|
+
$[0] = t0;
|
|
385
|
+
$[1] = className;
|
|
386
|
+
$[2] = props;
|
|
387
|
+
} else {
|
|
388
|
+
className = $[1];
|
|
389
|
+
props = $[2];
|
|
390
|
+
}
|
|
391
|
+
let t1;
|
|
392
|
+
if ($[3] !== className) {
|
|
393
|
+
t1 = cn("-mx-1 my-1 h-px bg-border", className);
|
|
394
|
+
$[3] = className;
|
|
395
|
+
$[4] = t1;
|
|
396
|
+
} else {
|
|
397
|
+
t1 = $[4];
|
|
398
|
+
}
|
|
399
|
+
let t2;
|
|
400
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
401
|
+
t2 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Separator, {
|
|
402
|
+
"data-slot": "dropdown-menu-separator",
|
|
403
|
+
className: t1,
|
|
404
|
+
...props
|
|
405
|
+
});
|
|
406
|
+
$[5] = props;
|
|
407
|
+
$[6] = t1;
|
|
408
|
+
$[7] = t2;
|
|
409
|
+
} else {
|
|
410
|
+
t2 = $[7];
|
|
411
|
+
}
|
|
412
|
+
return t2;
|
|
38
413
|
}
|
|
39
|
-
function DropdownMenuShortcut(
|
|
40
|
-
|
|
414
|
+
function DropdownMenuShortcut(t0) {
|
|
415
|
+
const $ = _c(8);
|
|
416
|
+
let className;
|
|
417
|
+
let props;
|
|
418
|
+
if ($[0] !== t0) {
|
|
419
|
+
({className, ...props} = t0);
|
|
420
|
+
$[0] = t0;
|
|
421
|
+
$[1] = className;
|
|
422
|
+
$[2] = props;
|
|
423
|
+
} else {
|
|
424
|
+
className = $[1];
|
|
425
|
+
props = $[2];
|
|
426
|
+
}
|
|
427
|
+
let t1;
|
|
428
|
+
if ($[3] !== className) {
|
|
429
|
+
t1 = cn("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", className);
|
|
430
|
+
$[3] = className;
|
|
431
|
+
$[4] = t1;
|
|
432
|
+
} else {
|
|
433
|
+
t1 = $[4];
|
|
434
|
+
}
|
|
435
|
+
let t2;
|
|
436
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
437
|
+
t2 = /* @__PURE__ */ _jsx("span", {
|
|
438
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
439
|
+
className: t1,
|
|
440
|
+
...props
|
|
441
|
+
});
|
|
442
|
+
$[5] = props;
|
|
443
|
+
$[6] = t1;
|
|
444
|
+
$[7] = t2;
|
|
445
|
+
} else {
|
|
446
|
+
t2 = $[7];
|
|
447
|
+
}
|
|
448
|
+
return t2;
|
|
41
449
|
}
|
|
42
|
-
function DropdownMenuSub(
|
|
43
|
-
|
|
450
|
+
function DropdownMenuSub(t0) {
|
|
451
|
+
const $ = _c(4);
|
|
452
|
+
let props;
|
|
453
|
+
if ($[0] !== t0) {
|
|
454
|
+
({...props} = t0);
|
|
455
|
+
$[0] = t0;
|
|
456
|
+
$[1] = props;
|
|
457
|
+
} else {
|
|
458
|
+
props = $[1];
|
|
459
|
+
}
|
|
460
|
+
let t1;
|
|
461
|
+
if ($[2] !== props) {
|
|
462
|
+
t1 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.Sub, {
|
|
463
|
+
"data-slot": "dropdown-menu-sub",
|
|
464
|
+
...props
|
|
465
|
+
});
|
|
466
|
+
$[2] = props;
|
|
467
|
+
$[3] = t1;
|
|
468
|
+
} else {
|
|
469
|
+
t1 = $[3];
|
|
470
|
+
}
|
|
471
|
+
return t1;
|
|
44
472
|
}
|
|
45
|
-
function DropdownMenuSubTrigger(
|
|
46
|
-
|
|
473
|
+
function DropdownMenuSubTrigger(t0) {
|
|
474
|
+
const $ = _c(13);
|
|
475
|
+
let children;
|
|
476
|
+
let className;
|
|
477
|
+
let inset;
|
|
478
|
+
let props;
|
|
479
|
+
if ($[0] !== t0) {
|
|
480
|
+
({className, inset, children, ...props} = t0);
|
|
481
|
+
$[0] = t0;
|
|
482
|
+
$[1] = children;
|
|
483
|
+
$[2] = className;
|
|
484
|
+
$[3] = inset;
|
|
485
|
+
$[4] = props;
|
|
486
|
+
} else {
|
|
487
|
+
children = $[1];
|
|
488
|
+
className = $[2];
|
|
489
|
+
inset = $[3];
|
|
490
|
+
props = $[4];
|
|
491
|
+
}
|
|
492
|
+
let t1;
|
|
493
|
+
if ($[5] !== className) {
|
|
494
|
+
t1 = cn("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className);
|
|
495
|
+
$[5] = className;
|
|
496
|
+
$[6] = t1;
|
|
497
|
+
} else {
|
|
498
|
+
t1 = $[6];
|
|
499
|
+
}
|
|
500
|
+
let t2;
|
|
501
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
502
|
+
t2 = /* @__PURE__ */ _jsx(ChevronRightIcon, { className: "ml-auto" });
|
|
503
|
+
$[7] = t2;
|
|
504
|
+
} else {
|
|
505
|
+
t2 = $[7];
|
|
506
|
+
}
|
|
507
|
+
let t3;
|
|
508
|
+
if ($[8] !== children || $[9] !== inset || $[10] !== props || $[11] !== t1) {
|
|
509
|
+
t3 = /* @__PURE__ */ _jsxs(DropdownMenuPrimitive.SubTrigger, {
|
|
510
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
511
|
+
"data-inset": inset,
|
|
512
|
+
className: t1,
|
|
513
|
+
...props,
|
|
514
|
+
children: [children, t2]
|
|
515
|
+
});
|
|
516
|
+
$[8] = children;
|
|
517
|
+
$[9] = inset;
|
|
518
|
+
$[10] = props;
|
|
519
|
+
$[11] = t1;
|
|
520
|
+
$[12] = t3;
|
|
521
|
+
} else {
|
|
522
|
+
t3 = $[12];
|
|
523
|
+
}
|
|
524
|
+
return t3;
|
|
47
525
|
}
|
|
48
|
-
function DropdownMenuSubContent(
|
|
49
|
-
|
|
526
|
+
function DropdownMenuSubContent(t0) {
|
|
527
|
+
const $ = _c(8);
|
|
528
|
+
let className;
|
|
529
|
+
let props;
|
|
530
|
+
if ($[0] !== t0) {
|
|
531
|
+
({className, ...props} = t0);
|
|
532
|
+
$[0] = t0;
|
|
533
|
+
$[1] = className;
|
|
534
|
+
$[2] = props;
|
|
535
|
+
} else {
|
|
536
|
+
className = $[1];
|
|
537
|
+
props = $[2];
|
|
538
|
+
}
|
|
539
|
+
let t1;
|
|
540
|
+
if ($[3] !== className) {
|
|
541
|
+
t1 = cn("z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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-destructive/10!", className);
|
|
542
|
+
$[3] = className;
|
|
543
|
+
$[4] = t1;
|
|
544
|
+
} else {
|
|
545
|
+
t1 = $[4];
|
|
546
|
+
}
|
|
547
|
+
let t2;
|
|
548
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
549
|
+
t2 = /* @__PURE__ */ _jsx(DropdownMenuPrimitive.SubContent, {
|
|
550
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
551
|
+
className: t1,
|
|
552
|
+
...props
|
|
553
|
+
});
|
|
554
|
+
$[5] = props;
|
|
555
|
+
$[6] = t1;
|
|
556
|
+
$[7] = t2;
|
|
557
|
+
} else {
|
|
558
|
+
t2 = $[7];
|
|
559
|
+
}
|
|
560
|
+
return t2;
|
|
50
561
|
}
|
|
51
|
-
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent
|
|
562
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent };
|