@locusgraph/components 0.2.0 → 0.2.2
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/dist/action/button-group.js +45 -17
- package/dist/action/button.js +44 -27
- package/dist/action/toggle-group.js +176 -12
- package/dist/action/toggle.js +70 -17
- package/dist/display/avatar.js +118 -7
- package/dist/display/badge.js +33 -20
- package/dist/display/chart/chart-container.js +205 -45
- package/dist/display/chart/chart-legend.js +79 -14
- package/dist/display/chart/chart-tooltip.js +211 -40
- package/dist/display/chat/attachment/attachment-parts.js +56 -13
- package/dist/display/chat/attachment/attachment.js +70 -28
- package/dist/display/chat/bubble.js +80 -37
- package/dist/display/chat/marker.js +44 -15
- package/dist/display/chat/message-scroller.js +276 -14
- package/dist/display/chat/message.js +58 -13
- package/dist/display/content/item.js +134 -47
- package/dist/display/content/kbd.js +19 -5
- package/dist/display/media/aspect-ratio.js +27 -3
- package/dist/display/media/carousel-controls.js +162 -11
- package/dist/display/media/carousel.js +325 -65
- package/dist/display/rule-grid/rule-grid.js +86 -29
- package/dist/display/separator.js +56 -3
- package/dist/display/skeletons/layouts/skeleton-rule-grid.js +30 -6
- package/dist/display/skeletons/layouts/skeleton-table.js +44 -6
- package/dist/display/skeletons/shapes/skeleton-avatar.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-button.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-text.js +25 -7
- package/dist/display/skeletons/skeleton-parts.js +22 -6
- package/dist/display/status/alert.js +44 -18
- package/dist/display/status/empty.js +69 -22
- package/dist/display/status/progress.js +116 -16
- package/dist/display/status/skeleton.js +10 -3
- package/dist/display/status/spinner.js +11 -3
- package/dist/display/table.js +77 -17
- package/dist/feedback/toaster.js +98 -21
- package/dist/form/advanced/calendar-day-button.js +89 -12
- package/dist/form/advanced/calendar.js +349 -56
- package/dist/form/advanced/combobox/combobox-chips.js +151 -8
- package/dist/form/advanced/combobox/combobox-items.js +239 -14
- package/dist/form/advanced/combobox/combobox.js +386 -13
- package/dist/form/advanced/input-otp.js +201 -11
- package/dist/form/choice/checkbox.js +58 -3
- package/dist/form/choice/radio-group.js +94 -5
- package/dist/form/choice/select.js +479 -25
- package/dist/form/choice/slider.js +118 -4
- package/dist/form/choice/switch.js +53 -3
- package/dist/form/field/field-error.js +34 -14
- package/dist/form/field/field-separator.js +19 -3
- package/dist/form/field/field-set.js +21 -5
- package/dist/form/field/field-text.js +28 -7
- package/dist/form/field/field.js +43 -25
- package/dist/form/hook-form/form.js +338 -40
- package/dist/form/input-group.js +297 -47
- package/dist/form/input.js +13 -3
- package/dist/form/label.js +42 -3
- package/dist/form/native-select.js +39 -7
- package/dist/form/textarea.js +11 -3
- package/dist/layout/accordion.js +165 -8
- package/dist/layout/collapsible.js +75 -7
- package/dist/layout/resizable.js +122 -7
- package/dist/layout/scroll/direction.js +25 -3
- package/dist/layout/scroll/scroll-area.js +138 -5
- package/dist/layout/sidebar/sidebar-context.js +184 -51
- package/dist/layout/sidebar/sidebar-menu-sub.js +219 -14
- package/dist/layout/sidebar/sidebar-menu.js +319 -38
- package/dist/layout/sidebar/sidebar-sections.js +369 -22
- package/dist/layout/sidebar/sidebar.js +384 -28
- package/dist/layout/tabs.js +183 -18
- package/dist/layout/use-mobile.js +11 -11
- package/dist/navigation/breadcrumb.js +82 -17
- package/dist/navigation/menubar/menubar-items.js +322 -16
- package/dist/navigation/menubar/menubar-sub.js +125 -7
- package/dist/navigation/menubar/menubar.js +213 -13
- package/dist/navigation/navigation-menu.js +90 -18
- package/dist/navigation/pagination.js +91 -20
- package/dist/overlay/alert-dialog.js +485 -26
- package/dist/overlay/context-menu/context-menu-items.js +322 -16
- package/dist/overlay/context-menu/context-menu-sub.js +125 -7
- package/dist/overlay/context-menu/context-menu.js +140 -11
- package/dist/overlay/dialog.js +405 -24
- package/dist/overlay/floating/command.js +423 -20
- package/dist/overlay/floating/drawer.js +354 -22
- package/dist/overlay/floating/hover-card.js +107 -7
- package/dist/overlay/menu/dropdown-menu-choice.js +149 -7
- package/dist/overlay/menu/dropdown-menu-item.js +174 -9
- package/dist/overlay/menu/dropdown-menu-sub.js +124 -7
- package/dist/overlay/menu/dropdown-menu.js +147 -12
- package/dist/overlay/popover.js +106 -7
- package/dist/overlay/sheet.js +379 -26
- package/dist/overlay/tooltip.js +145 -9
- package/dist/shell/app-header.js +29 -5
- package/dist/shell/app-shell.js +19 -3
- package/dist/shell/breadcrumbs.js +46 -14
- package/dist/shell/docs/docs-header.js +210 -10
- package/dist/shell/docs/docs-shell.js +36 -3
- package/dist/shell/docs/docs-sidebar.js +41 -7
- package/dist/shell/docs/on-this-page.js +78 -7
- package/dist/shell/docs/use-active-section.js +44 -42
- package/dist/shell/navigation/app-sidebar.js +66 -6
- package/dist/shell/navigation/nav-group.js +53 -11
- package/dist/shell/theme-toggle.js +51 -4
- package/package.json +2 -2
|
@@ -1,38 +1,492 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { Checkmark as CheckIcon, ChevronDown as ChevronDownIcon, ChevronUp as ChevronUpIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as SelectPrimitive from "radix-ui/select";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Select(t0) {
|
|
10
|
+
const $ = _c(4);
|
|
11
|
+
let props;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
...props
|
|
15
|
+
} = t0);
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = props;
|
|
18
|
+
} else {
|
|
19
|
+
props = $[1];
|
|
20
|
+
}
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[2] !== props) {
|
|
23
|
+
t1 = /*#__PURE__*/_jsx(SelectPrimitive.Root, {
|
|
24
|
+
"data-slot": "select",
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
$[2] = props;
|
|
28
|
+
$[3] = t1;
|
|
29
|
+
} else {
|
|
30
|
+
t1 = $[3];
|
|
31
|
+
}
|
|
32
|
+
return t1;
|
|
8
33
|
}
|
|
9
|
-
function SelectGroup(
|
|
10
|
-
|
|
34
|
+
function SelectGroup(t0) {
|
|
35
|
+
const $ = _c(4);
|
|
36
|
+
let props;
|
|
37
|
+
if ($[0] !== t0) {
|
|
38
|
+
({
|
|
39
|
+
...props
|
|
40
|
+
} = t0);
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
$[1] = props;
|
|
43
|
+
} else {
|
|
44
|
+
props = $[1];
|
|
45
|
+
}
|
|
46
|
+
let t1;
|
|
47
|
+
if ($[2] !== props) {
|
|
48
|
+
t1 = /*#__PURE__*/_jsx(SelectPrimitive.Group, {
|
|
49
|
+
"data-slot": "select-group",
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
$[2] = props;
|
|
53
|
+
$[3] = t1;
|
|
54
|
+
} else {
|
|
55
|
+
t1 = $[3];
|
|
56
|
+
}
|
|
57
|
+
return t1;
|
|
11
58
|
}
|
|
12
|
-
function SelectValue(
|
|
13
|
-
|
|
59
|
+
function SelectValue(t0) {
|
|
60
|
+
const $ = _c(4);
|
|
61
|
+
let props;
|
|
62
|
+
if ($[0] !== t0) {
|
|
63
|
+
({
|
|
64
|
+
...props
|
|
65
|
+
} = t0);
|
|
66
|
+
$[0] = t0;
|
|
67
|
+
$[1] = props;
|
|
68
|
+
} else {
|
|
69
|
+
props = $[1];
|
|
70
|
+
}
|
|
71
|
+
let t1;
|
|
72
|
+
if ($[2] !== props) {
|
|
73
|
+
t1 = /*#__PURE__*/_jsx(SelectPrimitive.Value, {
|
|
74
|
+
"data-slot": "select-value",
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
$[2] = props;
|
|
78
|
+
$[3] = t1;
|
|
79
|
+
} else {
|
|
80
|
+
t1 = $[3];
|
|
81
|
+
}
|
|
82
|
+
return t1;
|
|
14
83
|
}
|
|
15
|
-
function SelectTrigger(
|
|
16
|
-
|
|
84
|
+
function SelectTrigger(t0) {
|
|
85
|
+
const $ = _c(13);
|
|
86
|
+
let children;
|
|
87
|
+
let className;
|
|
88
|
+
let props;
|
|
89
|
+
let t1;
|
|
90
|
+
if ($[0] !== t0) {
|
|
91
|
+
({
|
|
92
|
+
className,
|
|
93
|
+
size: t1,
|
|
94
|
+
children,
|
|
95
|
+
...props
|
|
96
|
+
} = t0);
|
|
97
|
+
$[0] = t0;
|
|
98
|
+
$[1] = children;
|
|
99
|
+
$[2] = className;
|
|
100
|
+
$[3] = props;
|
|
101
|
+
$[4] = t1;
|
|
102
|
+
} else {
|
|
103
|
+
children = $[1];
|
|
104
|
+
className = $[2];
|
|
105
|
+
props = $[3];
|
|
106
|
+
t1 = $[4];
|
|
107
|
+
}
|
|
108
|
+
const size = t1 === undefined ? "default" : t1;
|
|
109
|
+
let t2;
|
|
110
|
+
if ($[5] !== className) {
|
|
111
|
+
t2 = cn("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive 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-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className);
|
|
112
|
+
$[5] = className;
|
|
113
|
+
$[6] = t2;
|
|
114
|
+
} else {
|
|
115
|
+
t2 = $[6];
|
|
116
|
+
}
|
|
117
|
+
let t3;
|
|
118
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
119
|
+
t3 = /*#__PURE__*/_jsx(SelectPrimitive.Icon, {
|
|
120
|
+
asChild: true,
|
|
121
|
+
children: /*#__PURE__*/_jsx(ChevronDownIcon, {
|
|
122
|
+
className: "size-4 text-muted-foreground"
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
$[7] = t3;
|
|
126
|
+
} else {
|
|
127
|
+
t3 = $[7];
|
|
128
|
+
}
|
|
129
|
+
let t4;
|
|
130
|
+
if ($[8] !== children || $[9] !== props || $[10] !== size || $[11] !== t2) {
|
|
131
|
+
t4 = /*#__PURE__*/_jsxs(SelectPrimitive.Trigger, {
|
|
132
|
+
"data-slot": "select-trigger",
|
|
133
|
+
"data-size": size,
|
|
134
|
+
className: t2,
|
|
135
|
+
...props,
|
|
136
|
+
children: [children, t3]
|
|
137
|
+
});
|
|
138
|
+
$[8] = children;
|
|
139
|
+
$[9] = props;
|
|
140
|
+
$[10] = size;
|
|
141
|
+
$[11] = t2;
|
|
142
|
+
$[12] = t4;
|
|
143
|
+
} else {
|
|
144
|
+
t4 = $[12];
|
|
145
|
+
}
|
|
146
|
+
return t4;
|
|
17
147
|
}
|
|
18
|
-
function SelectContent(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
148
|
+
function SelectContent(t0) {
|
|
149
|
+
const $ = _c(22);
|
|
150
|
+
let children;
|
|
151
|
+
let className;
|
|
152
|
+
let props;
|
|
153
|
+
let t1;
|
|
154
|
+
let t2;
|
|
155
|
+
if ($[0] !== t0) {
|
|
156
|
+
({
|
|
157
|
+
className,
|
|
158
|
+
children,
|
|
159
|
+
position: t1,
|
|
160
|
+
align: t2,
|
|
161
|
+
...props
|
|
162
|
+
} = t0);
|
|
163
|
+
$[0] = t0;
|
|
164
|
+
$[1] = children;
|
|
165
|
+
$[2] = className;
|
|
166
|
+
$[3] = props;
|
|
167
|
+
$[4] = t1;
|
|
168
|
+
$[5] = t2;
|
|
169
|
+
} else {
|
|
170
|
+
children = $[1];
|
|
171
|
+
className = $[2];
|
|
172
|
+
props = $[3];
|
|
173
|
+
t1 = $[4];
|
|
174
|
+
t2 = $[5];
|
|
175
|
+
}
|
|
176
|
+
const position = t1 === undefined ? "item-aligned" : t1;
|
|
177
|
+
const align = t2 === undefined ? "center" : t2;
|
|
178
|
+
const t3 = position === "popper" && "data-[side=bottom]:translate-y-1.5 data-[side=left]:-translate-x-1.5 data-[side=right]:translate-x-1.5 data-[side=top]:-translate-y-1.5";
|
|
179
|
+
let t4;
|
|
180
|
+
if ($[6] !== className || $[7] !== t3) {
|
|
181
|
+
t4 = cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-overlay ring-1 ring-border 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]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", t3, className);
|
|
182
|
+
$[6] = className;
|
|
183
|
+
$[7] = t3;
|
|
184
|
+
$[8] = t4;
|
|
185
|
+
} else {
|
|
186
|
+
t4 = $[8];
|
|
187
|
+
}
|
|
188
|
+
let t5;
|
|
189
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
190
|
+
t5 = /*#__PURE__*/_jsx(SelectScrollUpButton, {});
|
|
191
|
+
$[9] = t5;
|
|
192
|
+
} else {
|
|
193
|
+
t5 = $[9];
|
|
194
|
+
}
|
|
195
|
+
const t6 = position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";
|
|
196
|
+
let t7;
|
|
197
|
+
if ($[10] !== t6) {
|
|
198
|
+
t7 = cn("p-1", t6);
|
|
199
|
+
$[10] = t6;
|
|
200
|
+
$[11] = t7;
|
|
201
|
+
} else {
|
|
202
|
+
t7 = $[11];
|
|
203
|
+
}
|
|
204
|
+
let t8;
|
|
205
|
+
if ($[12] !== children || $[13] !== t7) {
|
|
206
|
+
t8 = /*#__PURE__*/_jsx(SelectPrimitive.Viewport, {
|
|
207
|
+
className: t7,
|
|
208
|
+
children: children
|
|
209
|
+
});
|
|
210
|
+
$[12] = children;
|
|
211
|
+
$[13] = t7;
|
|
212
|
+
$[14] = t8;
|
|
213
|
+
} else {
|
|
214
|
+
t8 = $[14];
|
|
215
|
+
}
|
|
216
|
+
let t9;
|
|
217
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
218
|
+
t9 = /*#__PURE__*/_jsx(SelectScrollDownButton, {});
|
|
219
|
+
$[15] = t9;
|
|
220
|
+
} else {
|
|
221
|
+
t9 = $[15];
|
|
222
|
+
}
|
|
223
|
+
let t10;
|
|
224
|
+
if ($[16] !== align || $[17] !== position || $[18] !== props || $[19] !== t4 || $[20] !== t8) {
|
|
225
|
+
t10 = /*#__PURE__*/_jsx(SelectPrimitive.Portal, {
|
|
226
|
+
children: /*#__PURE__*/_jsxs(SelectPrimitive.Content, {
|
|
227
|
+
"data-slot": "select-content",
|
|
228
|
+
className: t4,
|
|
229
|
+
position: position,
|
|
230
|
+
align: align,
|
|
231
|
+
...props,
|
|
232
|
+
children: [t5, t8, t9]
|
|
233
|
+
})
|
|
234
|
+
});
|
|
235
|
+
$[16] = align;
|
|
236
|
+
$[17] = position;
|
|
237
|
+
$[18] = props;
|
|
238
|
+
$[19] = t4;
|
|
239
|
+
$[20] = t8;
|
|
240
|
+
$[21] = t10;
|
|
241
|
+
} else {
|
|
242
|
+
t10 = $[21];
|
|
243
|
+
}
|
|
244
|
+
return t10;
|
|
22
245
|
}
|
|
23
|
-
function SelectLabel(
|
|
24
|
-
|
|
246
|
+
function SelectLabel(t0) {
|
|
247
|
+
const $ = _c(8);
|
|
248
|
+
let className;
|
|
249
|
+
let props;
|
|
250
|
+
if ($[0] !== t0) {
|
|
251
|
+
({
|
|
252
|
+
className,
|
|
253
|
+
...props
|
|
254
|
+
} = t0);
|
|
255
|
+
$[0] = t0;
|
|
256
|
+
$[1] = className;
|
|
257
|
+
$[2] = props;
|
|
258
|
+
} else {
|
|
259
|
+
className = $[1];
|
|
260
|
+
props = $[2];
|
|
261
|
+
}
|
|
262
|
+
let t1;
|
|
263
|
+
if ($[3] !== className) {
|
|
264
|
+
t1 = cn("eyebrow px-2 pt-2 pb-1", className);
|
|
265
|
+
$[3] = className;
|
|
266
|
+
$[4] = t1;
|
|
267
|
+
} else {
|
|
268
|
+
t1 = $[4];
|
|
269
|
+
}
|
|
270
|
+
let t2;
|
|
271
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
272
|
+
t2 = /*#__PURE__*/_jsx(SelectPrimitive.Label, {
|
|
273
|
+
"data-slot": "select-label",
|
|
274
|
+
className: t1,
|
|
275
|
+
...props
|
|
276
|
+
});
|
|
277
|
+
$[5] = props;
|
|
278
|
+
$[6] = t1;
|
|
279
|
+
$[7] = t2;
|
|
280
|
+
} else {
|
|
281
|
+
t2 = $[7];
|
|
282
|
+
}
|
|
283
|
+
return t2;
|
|
25
284
|
}
|
|
26
|
-
function SelectItem(
|
|
27
|
-
|
|
285
|
+
function SelectItem(t0) {
|
|
286
|
+
const $ = _c(13);
|
|
287
|
+
let children;
|
|
288
|
+
let className;
|
|
289
|
+
let props;
|
|
290
|
+
if ($[0] !== t0) {
|
|
291
|
+
({
|
|
292
|
+
className,
|
|
293
|
+
children,
|
|
294
|
+
...props
|
|
295
|
+
} = t0);
|
|
296
|
+
$[0] = t0;
|
|
297
|
+
$[1] = children;
|
|
298
|
+
$[2] = className;
|
|
299
|
+
$[3] = props;
|
|
300
|
+
} else {
|
|
301
|
+
children = $[1];
|
|
302
|
+
className = $[2];
|
|
303
|
+
props = $[3];
|
|
304
|
+
}
|
|
305
|
+
let t1;
|
|
306
|
+
if ($[4] !== className) {
|
|
307
|
+
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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className);
|
|
308
|
+
$[4] = className;
|
|
309
|
+
$[5] = t1;
|
|
310
|
+
} else {
|
|
311
|
+
t1 = $[5];
|
|
312
|
+
}
|
|
313
|
+
let t2;
|
|
314
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
315
|
+
t2 = /*#__PURE__*/_jsx("span", {
|
|
316
|
+
"data-slot": "select-item-indicator",
|
|
317
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
318
|
+
children: /*#__PURE__*/_jsx(SelectPrimitive.ItemIndicator, {
|
|
319
|
+
children: /*#__PURE__*/_jsx(CheckIcon, {
|
|
320
|
+
className: "size-4"
|
|
321
|
+
})
|
|
322
|
+
})
|
|
323
|
+
});
|
|
324
|
+
$[6] = t2;
|
|
325
|
+
} else {
|
|
326
|
+
t2 = $[6];
|
|
327
|
+
}
|
|
328
|
+
let t3;
|
|
329
|
+
if ($[7] !== children) {
|
|
330
|
+
t3 = /*#__PURE__*/_jsx(SelectPrimitive.ItemText, {
|
|
331
|
+
children: children
|
|
332
|
+
});
|
|
333
|
+
$[7] = children;
|
|
334
|
+
$[8] = t3;
|
|
335
|
+
} else {
|
|
336
|
+
t3 = $[8];
|
|
337
|
+
}
|
|
338
|
+
let t4;
|
|
339
|
+
if ($[9] !== props || $[10] !== t1 || $[11] !== t3) {
|
|
340
|
+
t4 = /*#__PURE__*/_jsxs(SelectPrimitive.Item, {
|
|
341
|
+
"data-slot": "select-item",
|
|
342
|
+
className: t1,
|
|
343
|
+
...props,
|
|
344
|
+
children: [t2, t3]
|
|
345
|
+
});
|
|
346
|
+
$[9] = props;
|
|
347
|
+
$[10] = t1;
|
|
348
|
+
$[11] = t3;
|
|
349
|
+
$[12] = t4;
|
|
350
|
+
} else {
|
|
351
|
+
t4 = $[12];
|
|
352
|
+
}
|
|
353
|
+
return t4;
|
|
28
354
|
}
|
|
29
|
-
function SelectSeparator(
|
|
30
|
-
|
|
355
|
+
function SelectSeparator(t0) {
|
|
356
|
+
const $ = _c(8);
|
|
357
|
+
let className;
|
|
358
|
+
let props;
|
|
359
|
+
if ($[0] !== t0) {
|
|
360
|
+
({
|
|
361
|
+
className,
|
|
362
|
+
...props
|
|
363
|
+
} = t0);
|
|
364
|
+
$[0] = t0;
|
|
365
|
+
$[1] = className;
|
|
366
|
+
$[2] = props;
|
|
367
|
+
} else {
|
|
368
|
+
className = $[1];
|
|
369
|
+
props = $[2];
|
|
370
|
+
}
|
|
371
|
+
let t1;
|
|
372
|
+
if ($[3] !== className) {
|
|
373
|
+
t1 = cn("pointer-events-none -mx-1 my-1 h-px bg-border", className);
|
|
374
|
+
$[3] = className;
|
|
375
|
+
$[4] = t1;
|
|
376
|
+
} else {
|
|
377
|
+
t1 = $[4];
|
|
378
|
+
}
|
|
379
|
+
let t2;
|
|
380
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
381
|
+
t2 = /*#__PURE__*/_jsx(SelectPrimitive.Separator, {
|
|
382
|
+
"data-slot": "select-separator",
|
|
383
|
+
className: t1,
|
|
384
|
+
...props
|
|
385
|
+
});
|
|
386
|
+
$[5] = props;
|
|
387
|
+
$[6] = t1;
|
|
388
|
+
$[7] = t2;
|
|
389
|
+
} else {
|
|
390
|
+
t2 = $[7];
|
|
391
|
+
}
|
|
392
|
+
return t2;
|
|
31
393
|
}
|
|
32
|
-
function SelectScrollUpButton(
|
|
33
|
-
|
|
394
|
+
function SelectScrollUpButton(t0) {
|
|
395
|
+
const $ = _c(9);
|
|
396
|
+
let className;
|
|
397
|
+
let props;
|
|
398
|
+
if ($[0] !== t0) {
|
|
399
|
+
({
|
|
400
|
+
className,
|
|
401
|
+
...props
|
|
402
|
+
} = t0);
|
|
403
|
+
$[0] = t0;
|
|
404
|
+
$[1] = className;
|
|
405
|
+
$[2] = props;
|
|
406
|
+
} else {
|
|
407
|
+
className = $[1];
|
|
408
|
+
props = $[2];
|
|
409
|
+
}
|
|
410
|
+
let t1;
|
|
411
|
+
if ($[3] !== className) {
|
|
412
|
+
t1 = cn("flex cursor-default items-center justify-center py-1", className);
|
|
413
|
+
$[3] = className;
|
|
414
|
+
$[4] = t1;
|
|
415
|
+
} else {
|
|
416
|
+
t1 = $[4];
|
|
417
|
+
}
|
|
418
|
+
let t2;
|
|
419
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
420
|
+
t2 = /*#__PURE__*/_jsx(ChevronUpIcon, {
|
|
421
|
+
className: "size-4"
|
|
422
|
+
});
|
|
423
|
+
$[5] = t2;
|
|
424
|
+
} else {
|
|
425
|
+
t2 = $[5];
|
|
426
|
+
}
|
|
427
|
+
let t3;
|
|
428
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
429
|
+
t3 = /*#__PURE__*/_jsx(SelectPrimitive.ScrollUpButton, {
|
|
430
|
+
"data-slot": "select-scroll-up-button",
|
|
431
|
+
className: t1,
|
|
432
|
+
...props,
|
|
433
|
+
children: t2
|
|
434
|
+
});
|
|
435
|
+
$[6] = props;
|
|
436
|
+
$[7] = t1;
|
|
437
|
+
$[8] = t3;
|
|
438
|
+
} else {
|
|
439
|
+
t3 = $[8];
|
|
440
|
+
}
|
|
441
|
+
return t3;
|
|
34
442
|
}
|
|
35
|
-
function SelectScrollDownButton(
|
|
36
|
-
|
|
443
|
+
function SelectScrollDownButton(t0) {
|
|
444
|
+
const $ = _c(9);
|
|
445
|
+
let className;
|
|
446
|
+
let props;
|
|
447
|
+
if ($[0] !== t0) {
|
|
448
|
+
({
|
|
449
|
+
className,
|
|
450
|
+
...props
|
|
451
|
+
} = t0);
|
|
452
|
+
$[0] = t0;
|
|
453
|
+
$[1] = className;
|
|
454
|
+
$[2] = props;
|
|
455
|
+
} else {
|
|
456
|
+
className = $[1];
|
|
457
|
+
props = $[2];
|
|
458
|
+
}
|
|
459
|
+
let t1;
|
|
460
|
+
if ($[3] !== className) {
|
|
461
|
+
t1 = cn("flex cursor-default items-center justify-center py-1", className);
|
|
462
|
+
$[3] = className;
|
|
463
|
+
$[4] = t1;
|
|
464
|
+
} else {
|
|
465
|
+
t1 = $[4];
|
|
466
|
+
}
|
|
467
|
+
let t2;
|
|
468
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
469
|
+
t2 = /*#__PURE__*/_jsx(ChevronDownIcon, {
|
|
470
|
+
className: "size-4"
|
|
471
|
+
});
|
|
472
|
+
$[5] = t2;
|
|
473
|
+
} else {
|
|
474
|
+
t2 = $[5];
|
|
475
|
+
}
|
|
476
|
+
let t3;
|
|
477
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
478
|
+
t3 = /*#__PURE__*/_jsx(SelectPrimitive.ScrollDownButton, {
|
|
479
|
+
"data-slot": "select-scroll-down-button",
|
|
480
|
+
className: t1,
|
|
481
|
+
...props,
|
|
482
|
+
children: t2
|
|
483
|
+
});
|
|
484
|
+
$[6] = props;
|
|
485
|
+
$[7] = t1;
|
|
486
|
+
$[8] = t3;
|
|
487
|
+
} else {
|
|
488
|
+
t3 = $[8];
|
|
489
|
+
}
|
|
490
|
+
return t3;
|
|
37
491
|
}
|
|
38
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue
|
|
492
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,10 +1,124 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { cn } from "cn";
|
|
4
5
|
import * as SliderPrimitive from "radix-ui/slider";
|
|
5
6
|
import * as React from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function Slider(t0) {
|
|
9
|
+
const $ = _c(26);
|
|
10
|
+
let className;
|
|
11
|
+
let defaultValue;
|
|
12
|
+
let props;
|
|
13
|
+
let t1;
|
|
14
|
+
let t2;
|
|
15
|
+
let value;
|
|
16
|
+
if ($[0] !== t0) {
|
|
17
|
+
({
|
|
18
|
+
className,
|
|
19
|
+
defaultValue,
|
|
20
|
+
value,
|
|
21
|
+
min: t1,
|
|
22
|
+
max: t2,
|
|
23
|
+
...props
|
|
24
|
+
} = t0);
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = className;
|
|
27
|
+
$[2] = defaultValue;
|
|
28
|
+
$[3] = props;
|
|
29
|
+
$[4] = t1;
|
|
30
|
+
$[5] = t2;
|
|
31
|
+
$[6] = value;
|
|
32
|
+
} else {
|
|
33
|
+
className = $[1];
|
|
34
|
+
defaultValue = $[2];
|
|
35
|
+
props = $[3];
|
|
36
|
+
t1 = $[4];
|
|
37
|
+
t2 = $[5];
|
|
38
|
+
value = $[6];
|
|
39
|
+
}
|
|
40
|
+
const min = t1 === undefined ? 0 : t1;
|
|
41
|
+
const max = t2 === undefined ? 100 : t2;
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[7] !== defaultValue || $[8] !== max || $[9] !== min || $[10] !== value) {
|
|
44
|
+
t3 = Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max];
|
|
45
|
+
$[7] = defaultValue;
|
|
46
|
+
$[8] = max;
|
|
47
|
+
$[9] = min;
|
|
48
|
+
$[10] = value;
|
|
49
|
+
$[11] = t3;
|
|
50
|
+
} else {
|
|
51
|
+
t3 = $[11];
|
|
52
|
+
}
|
|
53
|
+
const _values = t3;
|
|
54
|
+
let t4;
|
|
55
|
+
if ($[12] !== className) {
|
|
56
|
+
t4 = cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", className);
|
|
57
|
+
$[12] = className;
|
|
58
|
+
$[13] = t4;
|
|
59
|
+
} else {
|
|
60
|
+
t4 = $[13];
|
|
61
|
+
}
|
|
62
|
+
let t5;
|
|
63
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
64
|
+
t5 = cn("relative grow overflow-hidden rounded-full bg-input data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5");
|
|
65
|
+
$[14] = t5;
|
|
66
|
+
} else {
|
|
67
|
+
t5 = $[14];
|
|
68
|
+
}
|
|
69
|
+
let t6;
|
|
70
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71
|
+
t6 = /*#__PURE__*/_jsx(SliderPrimitive.Track, {
|
|
72
|
+
"data-slot": "slider-track",
|
|
73
|
+
className: t5,
|
|
74
|
+
children: /*#__PURE__*/_jsx(SliderPrimitive.Range, {
|
|
75
|
+
"data-slot": "slider-range",
|
|
76
|
+
className: cn("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
$[15] = t6;
|
|
80
|
+
} else {
|
|
81
|
+
t6 = $[15];
|
|
82
|
+
}
|
|
83
|
+
let t7;
|
|
84
|
+
if ($[16] !== _values.length) {
|
|
85
|
+
t7 = Array.from({
|
|
86
|
+
length: _values.length
|
|
87
|
+
}, _temp);
|
|
88
|
+
$[16] = _values.length;
|
|
89
|
+
$[17] = t7;
|
|
90
|
+
} else {
|
|
91
|
+
t7 = $[17];
|
|
92
|
+
}
|
|
93
|
+
let t8;
|
|
94
|
+
if ($[18] !== defaultValue || $[19] !== max || $[20] !== min || $[21] !== props || $[22] !== t4 || $[23] !== t7 || $[24] !== value) {
|
|
95
|
+
t8 = /*#__PURE__*/_jsxs(SliderPrimitive.Root, {
|
|
96
|
+
"data-slot": "slider",
|
|
97
|
+
defaultValue: defaultValue,
|
|
98
|
+
value: value,
|
|
99
|
+
min: min,
|
|
100
|
+
max: max,
|
|
101
|
+
className: t4,
|
|
102
|
+
...props,
|
|
103
|
+
children: [t6, t7]
|
|
104
|
+
});
|
|
105
|
+
$[18] = defaultValue;
|
|
106
|
+
$[19] = max;
|
|
107
|
+
$[20] = min;
|
|
108
|
+
$[21] = props;
|
|
109
|
+
$[22] = t4;
|
|
110
|
+
$[23] = t7;
|
|
111
|
+
$[24] = value;
|
|
112
|
+
$[25] = t8;
|
|
113
|
+
} else {
|
|
114
|
+
t8 = $[25];
|
|
115
|
+
}
|
|
116
|
+
return t8;
|
|
117
|
+
}
|
|
118
|
+
function _temp(_, index) {
|
|
119
|
+
return /*#__PURE__*/_jsx(SliderPrimitive.Thumb, {
|
|
120
|
+
"data-slot": "slider-thumb",
|
|
121
|
+
className: "block size-4 shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
122
|
+
}, index);
|
|
9
123
|
}
|
|
10
124
|
export { Slider };
|