beez-ui 0.4.0 → 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 -19
- package/README.md +49 -11
- 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 +7 -1
|
@@ -1,28 +1,344 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { Link } from "./link.js";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
6
|
import { Button } from "./button.js";
|
|
6
7
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Pagination(t0) {
|
|
10
|
+
const $ = _c(8);
|
|
11
|
+
let className;
|
|
12
|
+
let props;
|
|
13
|
+
if ($[0] !== t0) {
|
|
14
|
+
({className, ...props} = t0);
|
|
15
|
+
$[0] = t0;
|
|
16
|
+
$[1] = className;
|
|
17
|
+
$[2] = props;
|
|
18
|
+
} else {
|
|
19
|
+
className = $[1];
|
|
20
|
+
props = $[2];
|
|
21
|
+
}
|
|
22
|
+
let t1;
|
|
23
|
+
if ($[3] !== className) {
|
|
24
|
+
t1 = cn("mx-auto flex w-full justify-center", className);
|
|
25
|
+
$[3] = className;
|
|
26
|
+
$[4] = t1;
|
|
27
|
+
} else {
|
|
28
|
+
t1 = $[4];
|
|
29
|
+
}
|
|
30
|
+
let t2;
|
|
31
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
32
|
+
t2 = /* @__PURE__ */ _jsx("nav", {
|
|
33
|
+
role: "navigation",
|
|
34
|
+
"aria-label": "pagination",
|
|
35
|
+
"data-slot": "pagination",
|
|
36
|
+
className: t1,
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
$[5] = props;
|
|
40
|
+
$[6] = t1;
|
|
41
|
+
$[7] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[7];
|
|
44
|
+
}
|
|
45
|
+
return t2;
|
|
9
46
|
}
|
|
10
|
-
function PaginationContent(
|
|
11
|
-
|
|
47
|
+
function PaginationContent(t0) {
|
|
48
|
+
const $ = _c(8);
|
|
49
|
+
let className;
|
|
50
|
+
let props;
|
|
51
|
+
if ($[0] !== t0) {
|
|
52
|
+
({className, ...props} = t0);
|
|
53
|
+
$[0] = t0;
|
|
54
|
+
$[1] = className;
|
|
55
|
+
$[2] = props;
|
|
56
|
+
} else {
|
|
57
|
+
className = $[1];
|
|
58
|
+
props = $[2];
|
|
59
|
+
}
|
|
60
|
+
let t1;
|
|
61
|
+
if ($[3] !== className) {
|
|
62
|
+
t1 = cn("flex items-center gap-1", className);
|
|
63
|
+
$[3] = className;
|
|
64
|
+
$[4] = t1;
|
|
65
|
+
} else {
|
|
66
|
+
t1 = $[4];
|
|
67
|
+
}
|
|
68
|
+
let t2;
|
|
69
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
70
|
+
t2 = /* @__PURE__ */ _jsx("ul", {
|
|
71
|
+
"data-slot": "pagination-content",
|
|
72
|
+
className: t1,
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
$[5] = props;
|
|
76
|
+
$[6] = t1;
|
|
77
|
+
$[7] = t2;
|
|
78
|
+
} else {
|
|
79
|
+
t2 = $[7];
|
|
80
|
+
}
|
|
81
|
+
return t2;
|
|
12
82
|
}
|
|
13
|
-
function PaginationItem(
|
|
14
|
-
|
|
83
|
+
function PaginationItem(t0) {
|
|
84
|
+
const $ = _c(4);
|
|
85
|
+
let props;
|
|
86
|
+
if ($[0] !== t0) {
|
|
87
|
+
({...props} = t0);
|
|
88
|
+
$[0] = t0;
|
|
89
|
+
$[1] = props;
|
|
90
|
+
} else {
|
|
91
|
+
props = $[1];
|
|
92
|
+
}
|
|
93
|
+
let t1;
|
|
94
|
+
if ($[2] !== props) {
|
|
95
|
+
t1 = /* @__PURE__ */ _jsx("li", {
|
|
96
|
+
"data-slot": "pagination-item",
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
$[2] = props;
|
|
100
|
+
$[3] = t1;
|
|
101
|
+
} else {
|
|
102
|
+
t1 = $[3];
|
|
103
|
+
}
|
|
104
|
+
return t1;
|
|
15
105
|
}
|
|
16
|
-
function PaginationLink(
|
|
17
|
-
|
|
106
|
+
function PaginationLink(t0) {
|
|
107
|
+
const $ = _c(16);
|
|
108
|
+
let className;
|
|
109
|
+
let isActive;
|
|
110
|
+
let props;
|
|
111
|
+
let t1;
|
|
112
|
+
if ($[0] !== t0) {
|
|
113
|
+
({className, isActive, size: t1, ...props} = t0);
|
|
114
|
+
$[0] = t0;
|
|
115
|
+
$[1] = className;
|
|
116
|
+
$[2] = isActive;
|
|
117
|
+
$[3] = props;
|
|
118
|
+
$[4] = t1;
|
|
119
|
+
} else {
|
|
120
|
+
className = $[1];
|
|
121
|
+
isActive = $[2];
|
|
122
|
+
props = $[3];
|
|
123
|
+
t1 = $[4];
|
|
124
|
+
}
|
|
125
|
+
const size = t1 === undefined ? "icon" : t1;
|
|
126
|
+
const t2 = isActive ? "outline" : "ghost";
|
|
127
|
+
let t3;
|
|
128
|
+
if ($[5] !== className) {
|
|
129
|
+
t3 = cn(className);
|
|
130
|
+
$[5] = className;
|
|
131
|
+
$[6] = t3;
|
|
132
|
+
} else {
|
|
133
|
+
t3 = $[6];
|
|
134
|
+
}
|
|
135
|
+
const t4 = isActive ? "page" : undefined;
|
|
136
|
+
let t5;
|
|
137
|
+
if ($[7] !== isActive || $[8] !== props || $[9] !== t4) {
|
|
138
|
+
t5 = /* @__PURE__ */ _jsx(Link, {
|
|
139
|
+
"aria-current": t4,
|
|
140
|
+
"data-slot": "pagination-link",
|
|
141
|
+
"data-active": isActive,
|
|
142
|
+
...props
|
|
143
|
+
});
|
|
144
|
+
$[7] = isActive;
|
|
145
|
+
$[8] = props;
|
|
146
|
+
$[9] = t4;
|
|
147
|
+
$[10] = t5;
|
|
148
|
+
} else {
|
|
149
|
+
t5 = $[10];
|
|
150
|
+
}
|
|
151
|
+
let t6;
|
|
152
|
+
if ($[11] !== size || $[12] !== t2 || $[13] !== t3 || $[14] !== t5) {
|
|
153
|
+
t6 = /* @__PURE__ */ _jsx(Button, {
|
|
154
|
+
asChild: true,
|
|
155
|
+
variant: t2,
|
|
156
|
+
size,
|
|
157
|
+
className: t3,
|
|
158
|
+
children: t5
|
|
159
|
+
});
|
|
160
|
+
$[11] = size;
|
|
161
|
+
$[12] = t2;
|
|
162
|
+
$[13] = t3;
|
|
163
|
+
$[14] = t5;
|
|
164
|
+
$[15] = t6;
|
|
165
|
+
} else {
|
|
166
|
+
t6 = $[15];
|
|
167
|
+
}
|
|
168
|
+
return t6;
|
|
18
169
|
}
|
|
19
|
-
function PaginationPrevious(
|
|
20
|
-
|
|
170
|
+
function PaginationPrevious(t0) {
|
|
171
|
+
const $ = _c(13);
|
|
172
|
+
let className;
|
|
173
|
+
let props;
|
|
174
|
+
let t1;
|
|
175
|
+
if ($[0] !== t0) {
|
|
176
|
+
({className, text: t1, ...props} = t0);
|
|
177
|
+
$[0] = t0;
|
|
178
|
+
$[1] = className;
|
|
179
|
+
$[2] = props;
|
|
180
|
+
$[3] = t1;
|
|
181
|
+
} else {
|
|
182
|
+
className = $[1];
|
|
183
|
+
props = $[2];
|
|
184
|
+
t1 = $[3];
|
|
185
|
+
}
|
|
186
|
+
const text = t1 === undefined ? "Previous" : t1;
|
|
187
|
+
let t2;
|
|
188
|
+
if ($[4] !== className) {
|
|
189
|
+
t2 = cn("pl-2!", className);
|
|
190
|
+
$[4] = className;
|
|
191
|
+
$[5] = t2;
|
|
192
|
+
} else {
|
|
193
|
+
t2 = $[5];
|
|
194
|
+
}
|
|
195
|
+
let t3;
|
|
196
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
197
|
+
t3 = /* @__PURE__ */ _jsx(ChevronLeftIcon, { "data-icon": "inline-start" });
|
|
198
|
+
$[6] = t3;
|
|
199
|
+
} else {
|
|
200
|
+
t3 = $[6];
|
|
201
|
+
}
|
|
202
|
+
let t4;
|
|
203
|
+
if ($[7] !== text) {
|
|
204
|
+
t4 = /* @__PURE__ */ _jsx("span", {
|
|
205
|
+
className: "hidden sm:block",
|
|
206
|
+
children: text
|
|
207
|
+
});
|
|
208
|
+
$[7] = text;
|
|
209
|
+
$[8] = t4;
|
|
210
|
+
} else {
|
|
211
|
+
t4 = $[8];
|
|
212
|
+
}
|
|
213
|
+
let t5;
|
|
214
|
+
if ($[9] !== props || $[10] !== t2 || $[11] !== t4) {
|
|
215
|
+
t5 = /* @__PURE__ */ _jsxs(PaginationLink, {
|
|
216
|
+
"aria-label": "Go to previous page",
|
|
217
|
+
size: "default",
|
|
218
|
+
className: t2,
|
|
219
|
+
...props,
|
|
220
|
+
children: [t3, t4]
|
|
221
|
+
});
|
|
222
|
+
$[9] = props;
|
|
223
|
+
$[10] = t2;
|
|
224
|
+
$[11] = t4;
|
|
225
|
+
$[12] = t5;
|
|
226
|
+
} else {
|
|
227
|
+
t5 = $[12];
|
|
228
|
+
}
|
|
229
|
+
return t5;
|
|
21
230
|
}
|
|
22
|
-
function PaginationNext(
|
|
23
|
-
|
|
231
|
+
function PaginationNext(t0) {
|
|
232
|
+
const $ = _c(13);
|
|
233
|
+
let className;
|
|
234
|
+
let props;
|
|
235
|
+
let t1;
|
|
236
|
+
if ($[0] !== t0) {
|
|
237
|
+
({className, text: t1, ...props} = t0);
|
|
238
|
+
$[0] = t0;
|
|
239
|
+
$[1] = className;
|
|
240
|
+
$[2] = props;
|
|
241
|
+
$[3] = t1;
|
|
242
|
+
} else {
|
|
243
|
+
className = $[1];
|
|
244
|
+
props = $[2];
|
|
245
|
+
t1 = $[3];
|
|
246
|
+
}
|
|
247
|
+
const text = t1 === undefined ? "Next" : t1;
|
|
248
|
+
let t2;
|
|
249
|
+
if ($[4] !== className) {
|
|
250
|
+
t2 = cn("pr-2!", className);
|
|
251
|
+
$[4] = className;
|
|
252
|
+
$[5] = t2;
|
|
253
|
+
} else {
|
|
254
|
+
t2 = $[5];
|
|
255
|
+
}
|
|
256
|
+
let t3;
|
|
257
|
+
if ($[6] !== text) {
|
|
258
|
+
t3 = /* @__PURE__ */ _jsx("span", {
|
|
259
|
+
className: "hidden sm:block",
|
|
260
|
+
children: text
|
|
261
|
+
});
|
|
262
|
+
$[6] = text;
|
|
263
|
+
$[7] = t3;
|
|
264
|
+
} else {
|
|
265
|
+
t3 = $[7];
|
|
266
|
+
}
|
|
267
|
+
let t4;
|
|
268
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
269
|
+
t4 = /* @__PURE__ */ _jsx(ChevronRightIcon, { "data-icon": "inline-end" });
|
|
270
|
+
$[8] = t4;
|
|
271
|
+
} else {
|
|
272
|
+
t4 = $[8];
|
|
273
|
+
}
|
|
274
|
+
let t5;
|
|
275
|
+
if ($[9] !== props || $[10] !== t2 || $[11] !== t3) {
|
|
276
|
+
t5 = /* @__PURE__ */ _jsxs(PaginationLink, {
|
|
277
|
+
"aria-label": "Go to next page",
|
|
278
|
+
size: "default",
|
|
279
|
+
className: t2,
|
|
280
|
+
...props,
|
|
281
|
+
children: [t3, t4]
|
|
282
|
+
});
|
|
283
|
+
$[9] = props;
|
|
284
|
+
$[10] = t2;
|
|
285
|
+
$[11] = t3;
|
|
286
|
+
$[12] = t5;
|
|
287
|
+
} else {
|
|
288
|
+
t5 = $[12];
|
|
289
|
+
}
|
|
290
|
+
return t5;
|
|
24
291
|
}
|
|
25
|
-
function PaginationEllipsis(
|
|
26
|
-
|
|
292
|
+
function PaginationEllipsis(t0) {
|
|
293
|
+
const $ = _c(10);
|
|
294
|
+
let className;
|
|
295
|
+
let props;
|
|
296
|
+
if ($[0] !== t0) {
|
|
297
|
+
({className, ...props} = t0);
|
|
298
|
+
$[0] = t0;
|
|
299
|
+
$[1] = className;
|
|
300
|
+
$[2] = props;
|
|
301
|
+
} else {
|
|
302
|
+
className = $[1];
|
|
303
|
+
props = $[2];
|
|
304
|
+
}
|
|
305
|
+
let t1;
|
|
306
|
+
if ($[3] !== className) {
|
|
307
|
+
t1 = cn("flex size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4", className);
|
|
308
|
+
$[3] = className;
|
|
309
|
+
$[4] = t1;
|
|
310
|
+
} else {
|
|
311
|
+
t1 = $[4];
|
|
312
|
+
}
|
|
313
|
+
let t2;
|
|
314
|
+
let t3;
|
|
315
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
316
|
+
t2 = /* @__PURE__ */ _jsx(MoreHorizontalIcon, {});
|
|
317
|
+
t3 = /* @__PURE__ */ _jsx("span", {
|
|
318
|
+
className: "sr-only",
|
|
319
|
+
children: "More pages"
|
|
320
|
+
});
|
|
321
|
+
$[5] = t2;
|
|
322
|
+
$[6] = t3;
|
|
323
|
+
} else {
|
|
324
|
+
t2 = $[5];
|
|
325
|
+
t3 = $[6];
|
|
326
|
+
}
|
|
327
|
+
let t4;
|
|
328
|
+
if ($[7] !== props || $[8] !== t1) {
|
|
329
|
+
t4 = /* @__PURE__ */ _jsxs("span", {
|
|
330
|
+
"aria-hidden": true,
|
|
331
|
+
"data-slot": "pagination-ellipsis",
|
|
332
|
+
className: t1,
|
|
333
|
+
...props,
|
|
334
|
+
children: [t2, t3]
|
|
335
|
+
});
|
|
336
|
+
$[7] = props;
|
|
337
|
+
$[8] = t1;
|
|
338
|
+
$[9] = t4;
|
|
339
|
+
} else {
|
|
340
|
+
t4 = $[9];
|
|
341
|
+
}
|
|
342
|
+
return t4;
|
|
27
343
|
}
|
|
28
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious
|
|
344
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,26 +1,232 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function Popover(t0) {
|
|
8
|
+
const $ = _c(4);
|
|
9
|
+
let props;
|
|
10
|
+
if ($[0] !== t0) {
|
|
11
|
+
({...props} = t0);
|
|
12
|
+
$[0] = t0;
|
|
13
|
+
$[1] = props;
|
|
14
|
+
} else {
|
|
15
|
+
props = $[1];
|
|
16
|
+
}
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[2] !== props) {
|
|
19
|
+
t1 = /* @__PURE__ */ _jsx(PopoverPrimitive.Root, {
|
|
20
|
+
"data-slot": "popover",
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
$[2] = props;
|
|
24
|
+
$[3] = t1;
|
|
25
|
+
} else {
|
|
26
|
+
t1 = $[3];
|
|
27
|
+
}
|
|
28
|
+
return t1;
|
|
7
29
|
}
|
|
8
|
-
function PopoverTrigger(
|
|
9
|
-
|
|
30
|
+
function PopoverTrigger(t0) {
|
|
31
|
+
const $ = _c(4);
|
|
32
|
+
let props;
|
|
33
|
+
if ($[0] !== t0) {
|
|
34
|
+
({...props} = t0);
|
|
35
|
+
$[0] = t0;
|
|
36
|
+
$[1] = props;
|
|
37
|
+
} else {
|
|
38
|
+
props = $[1];
|
|
39
|
+
}
|
|
40
|
+
let t1;
|
|
41
|
+
if ($[2] !== props) {
|
|
42
|
+
t1 = /* @__PURE__ */ _jsx(PopoverPrimitive.Trigger, {
|
|
43
|
+
"data-slot": "popover-trigger",
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
$[2] = props;
|
|
47
|
+
$[3] = t1;
|
|
48
|
+
} else {
|
|
49
|
+
t1 = $[3];
|
|
50
|
+
}
|
|
51
|
+
return t1;
|
|
10
52
|
}
|
|
11
|
-
function PopoverContent(
|
|
12
|
-
|
|
53
|
+
function PopoverContent(t0) {
|
|
54
|
+
const $ = _c(12);
|
|
55
|
+
let className;
|
|
56
|
+
let props;
|
|
57
|
+
let t1;
|
|
58
|
+
let t2;
|
|
59
|
+
if ($[0] !== t0) {
|
|
60
|
+
({className, align: t1, sideOffset: t2, ...props} = t0);
|
|
61
|
+
$[0] = t0;
|
|
62
|
+
$[1] = className;
|
|
63
|
+
$[2] = props;
|
|
64
|
+
$[3] = t1;
|
|
65
|
+
$[4] = t2;
|
|
66
|
+
} else {
|
|
67
|
+
className = $[1];
|
|
68
|
+
props = $[2];
|
|
69
|
+
t1 = $[3];
|
|
70
|
+
t2 = $[4];
|
|
71
|
+
}
|
|
72
|
+
const align = t1 === undefined ? "center" : t1;
|
|
73
|
+
const sideOffset = t2 === undefined ? 4 : t2;
|
|
74
|
+
let t3;
|
|
75
|
+
if ($[5] !== className) {
|
|
76
|
+
t3 = cn("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden 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", className);
|
|
77
|
+
$[5] = className;
|
|
78
|
+
$[6] = t3;
|
|
79
|
+
} else {
|
|
80
|
+
t3 = $[6];
|
|
81
|
+
}
|
|
82
|
+
let t4;
|
|
83
|
+
if ($[7] !== align || $[8] !== props || $[9] !== sideOffset || $[10] !== t3) {
|
|
84
|
+
t4 = /* @__PURE__ */ _jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ _jsx(PopoverPrimitive.Content, {
|
|
85
|
+
"data-slot": "popover-content",
|
|
86
|
+
align,
|
|
87
|
+
sideOffset,
|
|
88
|
+
className: t3,
|
|
89
|
+
...props
|
|
90
|
+
}) });
|
|
91
|
+
$[7] = align;
|
|
92
|
+
$[8] = props;
|
|
93
|
+
$[9] = sideOffset;
|
|
94
|
+
$[10] = t3;
|
|
95
|
+
$[11] = t4;
|
|
96
|
+
} else {
|
|
97
|
+
t4 = $[11];
|
|
98
|
+
}
|
|
99
|
+
return t4;
|
|
13
100
|
}
|
|
14
|
-
function PopoverAnchor(
|
|
15
|
-
|
|
101
|
+
function PopoverAnchor(t0) {
|
|
102
|
+
const $ = _c(4);
|
|
103
|
+
let props;
|
|
104
|
+
if ($[0] !== t0) {
|
|
105
|
+
({...props} = t0);
|
|
106
|
+
$[0] = t0;
|
|
107
|
+
$[1] = props;
|
|
108
|
+
} else {
|
|
109
|
+
props = $[1];
|
|
110
|
+
}
|
|
111
|
+
let t1;
|
|
112
|
+
if ($[2] !== props) {
|
|
113
|
+
t1 = /* @__PURE__ */ _jsx(PopoverPrimitive.Anchor, {
|
|
114
|
+
"data-slot": "popover-anchor",
|
|
115
|
+
...props
|
|
116
|
+
});
|
|
117
|
+
$[2] = props;
|
|
118
|
+
$[3] = t1;
|
|
119
|
+
} else {
|
|
120
|
+
t1 = $[3];
|
|
121
|
+
}
|
|
122
|
+
return t1;
|
|
16
123
|
}
|
|
17
|
-
function PopoverHeader(
|
|
18
|
-
|
|
124
|
+
function PopoverHeader(t0) {
|
|
125
|
+
const $ = _c(8);
|
|
126
|
+
let className;
|
|
127
|
+
let props;
|
|
128
|
+
if ($[0] !== t0) {
|
|
129
|
+
({className, ...props} = t0);
|
|
130
|
+
$[0] = t0;
|
|
131
|
+
$[1] = className;
|
|
132
|
+
$[2] = props;
|
|
133
|
+
} else {
|
|
134
|
+
className = $[1];
|
|
135
|
+
props = $[2];
|
|
136
|
+
}
|
|
137
|
+
let t1;
|
|
138
|
+
if ($[3] !== className) {
|
|
139
|
+
t1 = cn("flex flex-col gap-1 text-sm", className);
|
|
140
|
+
$[3] = className;
|
|
141
|
+
$[4] = t1;
|
|
142
|
+
} else {
|
|
143
|
+
t1 = $[4];
|
|
144
|
+
}
|
|
145
|
+
let t2;
|
|
146
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
147
|
+
t2 = /* @__PURE__ */ _jsx("div", {
|
|
148
|
+
"data-slot": "popover-header",
|
|
149
|
+
className: t1,
|
|
150
|
+
...props
|
|
151
|
+
});
|
|
152
|
+
$[5] = props;
|
|
153
|
+
$[6] = t1;
|
|
154
|
+
$[7] = t2;
|
|
155
|
+
} else {
|
|
156
|
+
t2 = $[7];
|
|
157
|
+
}
|
|
158
|
+
return t2;
|
|
19
159
|
}
|
|
20
|
-
function PopoverTitle(
|
|
21
|
-
|
|
160
|
+
function PopoverTitle(t0) {
|
|
161
|
+
const $ = _c(8);
|
|
162
|
+
let className;
|
|
163
|
+
let props;
|
|
164
|
+
if ($[0] !== t0) {
|
|
165
|
+
({className, ...props} = t0);
|
|
166
|
+
$[0] = t0;
|
|
167
|
+
$[1] = className;
|
|
168
|
+
$[2] = props;
|
|
169
|
+
} else {
|
|
170
|
+
className = $[1];
|
|
171
|
+
props = $[2];
|
|
172
|
+
}
|
|
173
|
+
let t1;
|
|
174
|
+
if ($[3] !== className) {
|
|
175
|
+
t1 = cn("font-medium", className);
|
|
176
|
+
$[3] = className;
|
|
177
|
+
$[4] = t1;
|
|
178
|
+
} else {
|
|
179
|
+
t1 = $[4];
|
|
180
|
+
}
|
|
181
|
+
let t2;
|
|
182
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
183
|
+
t2 = /* @__PURE__ */ _jsx("div", {
|
|
184
|
+
"data-slot": "popover-title",
|
|
185
|
+
className: t1,
|
|
186
|
+
...props
|
|
187
|
+
});
|
|
188
|
+
$[5] = props;
|
|
189
|
+
$[6] = t1;
|
|
190
|
+
$[7] = t2;
|
|
191
|
+
} else {
|
|
192
|
+
t2 = $[7];
|
|
193
|
+
}
|
|
194
|
+
return t2;
|
|
22
195
|
}
|
|
23
|
-
function PopoverDescription(
|
|
24
|
-
|
|
196
|
+
function PopoverDescription(t0) {
|
|
197
|
+
const $ = _c(8);
|
|
198
|
+
let className;
|
|
199
|
+
let props;
|
|
200
|
+
if ($[0] !== t0) {
|
|
201
|
+
({className, ...props} = t0);
|
|
202
|
+
$[0] = t0;
|
|
203
|
+
$[1] = className;
|
|
204
|
+
$[2] = props;
|
|
205
|
+
} else {
|
|
206
|
+
className = $[1];
|
|
207
|
+
props = $[2];
|
|
208
|
+
}
|
|
209
|
+
let t1;
|
|
210
|
+
if ($[3] !== className) {
|
|
211
|
+
t1 = cn("text-muted-foreground", className);
|
|
212
|
+
$[3] = className;
|
|
213
|
+
$[4] = t1;
|
|
214
|
+
} else {
|
|
215
|
+
t1 = $[4];
|
|
216
|
+
}
|
|
217
|
+
let t2;
|
|
218
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
219
|
+
t2 = /* @__PURE__ */ _jsx("p", {
|
|
220
|
+
"data-slot": "popover-description",
|
|
221
|
+
className: t1,
|
|
222
|
+
...props
|
|
223
|
+
});
|
|
224
|
+
$[5] = props;
|
|
225
|
+
$[6] = t1;
|
|
226
|
+
$[7] = t2;
|
|
227
|
+
} else {
|
|
228
|
+
t2 = $[7];
|
|
229
|
+
}
|
|
230
|
+
return t2;
|
|
25
231
|
}
|
|
26
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger
|
|
232
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
@@ -1,11 +1,91 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4
5
|
import { cn } from "../lib/utils.js";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function RadioGroup(t0) {
|
|
8
|
+
const $ = _c(8);
|
|
9
|
+
let className;
|
|
10
|
+
let props;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({className, ...props} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = className;
|
|
15
|
+
$[2] = props;
|
|
16
|
+
} else {
|
|
17
|
+
className = $[1];
|
|
18
|
+
props = $[2];
|
|
19
|
+
}
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[3] !== className) {
|
|
22
|
+
t1 = cn("grid w-full gap-2", className);
|
|
23
|
+
$[3] = className;
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
} else {
|
|
26
|
+
t1 = $[4];
|
|
27
|
+
}
|
|
28
|
+
let t2;
|
|
29
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
30
|
+
t2 = /* @__PURE__ */ _jsx(RadioGroupPrimitive.Root, {
|
|
31
|
+
"data-slot": "radio-group",
|
|
32
|
+
className: t1,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
$[5] = props;
|
|
36
|
+
$[6] = t1;
|
|
37
|
+
$[7] = t2;
|
|
38
|
+
} else {
|
|
39
|
+
t2 = $[7];
|
|
40
|
+
}
|
|
41
|
+
return t2;
|
|
7
42
|
}
|
|
8
|
-
function RadioGroupItem(
|
|
9
|
-
|
|
43
|
+
function RadioGroupItem(t0) {
|
|
44
|
+
const $ = _c(9);
|
|
45
|
+
let className;
|
|
46
|
+
let props;
|
|
47
|
+
if ($[0] !== t0) {
|
|
48
|
+
({className, ...props} = t0);
|
|
49
|
+
$[0] = t0;
|
|
50
|
+
$[1] = className;
|
|
51
|
+
$[2] = props;
|
|
52
|
+
} else {
|
|
53
|
+
className = $[1];
|
|
54
|
+
props = $[2];
|
|
55
|
+
}
|
|
56
|
+
let t1;
|
|
57
|
+
if ($[3] !== className) {
|
|
58
|
+
t1 = cn("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 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 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", className);
|
|
59
|
+
$[3] = className;
|
|
60
|
+
$[4] = t1;
|
|
61
|
+
} else {
|
|
62
|
+
t1 = $[4];
|
|
63
|
+
}
|
|
64
|
+
let t2;
|
|
65
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t2 = /* @__PURE__ */ _jsx(RadioGroupPrimitive.Indicator, {
|
|
67
|
+
"data-slot": "radio-group-indicator",
|
|
68
|
+
className: "flex size-4 items-center justify-center",
|
|
69
|
+
children: /* @__PURE__ */ _jsx("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
|
|
70
|
+
});
|
|
71
|
+
$[5] = t2;
|
|
72
|
+
} else {
|
|
73
|
+
t2 = $[5];
|
|
74
|
+
}
|
|
75
|
+
let t3;
|
|
76
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
77
|
+
t3 = /* @__PURE__ */ _jsx(RadioGroupPrimitive.Item, {
|
|
78
|
+
"data-slot": "radio-group-item",
|
|
79
|
+
className: t1,
|
|
80
|
+
...props,
|
|
81
|
+
children: t2
|
|
82
|
+
});
|
|
83
|
+
$[6] = props;
|
|
84
|
+
$[7] = t1;
|
|
85
|
+
$[8] = t3;
|
|
86
|
+
} else {
|
|
87
|
+
t3 = $[8];
|
|
88
|
+
}
|
|
89
|
+
return t3;
|
|
10
90
|
}
|
|
11
91
|
export { RadioGroup, RadioGroupItem };
|