@typlog/ui 0.9.1 → 0.10.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/dist/base.css +6920 -0
- package/dist/index.d.ts +32 -110
- package/dist/index.js +2358 -1682
- package/dist/style.css +10463 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
@@ -1,48 +1,66 @@
|
|
1
|
-
import { computed
|
2
|
-
import { useForwardProps
|
3
|
-
import { AlertDialogAction
|
4
|
-
import { Icon
|
5
|
-
import { Icon as
|
6
|
-
function
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
...
|
1
|
+
import { computed, defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createTextVNode, toDisplayString, renderSlot, createElementBlock, mergeProps, createCommentVNode, createElementVNode, toRefs, mergeModels, ref, useModel, onMounted, onBeforeUnmount, withDirectives, isRef, vModelDynamic, vModelText, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, watch, renderList, withModifiers, vModelRadio, withKeys, vShow } from "vue";
|
2
|
+
import { useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, Primitive, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogClose, useForwardExpose, createContext, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, useForwardPropsEmits as useForwardPropsEmits$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, AccordionRoot, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleContent, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
|
3
|
+
import { AlertDialogAction, AlertDialogCancel, AlertDialogDescription, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2, DialogDescription, DialogRoot, DialogTitle as DialogTitle2, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, RadioGroupItem as RadioGroupItem2, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
4
|
+
import { Icon } from "@iconify/vue";
|
5
|
+
import { Icon as Icon2 } from "@iconify/vue";
|
6
|
+
function useForwardPropsEmits(props, emit, exclude) {
|
7
|
+
const parsedProps = useForwardProps(props);
|
8
|
+
const emitsAsProps = useEmitAsProps(emit);
|
9
|
+
return computed(() => ({
|
10
|
+
..._excludeProps(parsedProps.value, exclude),
|
11
|
+
...emitsAsProps
|
11
12
|
}));
|
12
13
|
}
|
13
|
-
function
|
14
|
-
const
|
15
|
-
|
14
|
+
function extractForwardProps(props, keys) {
|
15
|
+
const parsedProps = useForwardProps(props);
|
16
|
+
const fowarded = computed(() => _excludeProps(parsedProps.value, keys));
|
17
|
+
const classes = computed(() => {
|
18
|
+
return extractClass(parsedProps.value, keys);
|
19
|
+
});
|
20
|
+
return [fowarded, classes];
|
16
21
|
}
|
17
|
-
function
|
18
|
-
const
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
function extractForwardPropsEmits(props, emit, keys) {
|
23
|
+
const parsedProps = useForwardProps(props);
|
24
|
+
const emitsAsProps = useEmitAsProps(emit);
|
25
|
+
const fowarded = computed(() => ({
|
26
|
+
..._excludeProps(parsedProps.value, keys),
|
27
|
+
...emitsAsProps
|
28
|
+
}));
|
29
|
+
const classes = computed(() => {
|
30
|
+
return extractClass(parsedProps.value, keys);
|
31
|
+
});
|
32
|
+
return [fowarded, classes];
|
23
33
|
}
|
24
|
-
function
|
25
|
-
const
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
function _excludeProps(props, exclude) {
|
35
|
+
const rv = {};
|
36
|
+
Object.keys(props).forEach((k) => {
|
37
|
+
if (exclude.indexOf(k) === -1) {
|
38
|
+
rv[k] = props[k];
|
39
|
+
}
|
40
|
+
});
|
41
|
+
return rv;
|
29
42
|
}
|
30
|
-
const
|
31
|
-
const
|
32
|
-
|
33
|
-
if (
|
34
|
-
const
|
35
|
-
|
43
|
+
const extractClass = (props, keys) => {
|
44
|
+
const rv = [];
|
45
|
+
keys.forEach((key) => {
|
46
|
+
if (key !== "color" && key !== "radius") {
|
47
|
+
const value = props[key];
|
48
|
+
if (value === true) {
|
49
|
+
rv.push(`r-${kebabize(key)}`);
|
50
|
+
} else if (value) {
|
51
|
+
rv.push(`r-${kebabize(key)}-${value}`);
|
52
|
+
}
|
36
53
|
}
|
37
|
-
})
|
54
|
+
});
|
55
|
+
return rv;
|
38
56
|
};
|
39
|
-
function
|
40
|
-
return
|
57
|
+
function kebabize(str) {
|
58
|
+
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, _kebabReplace);
|
41
59
|
}
|
42
|
-
function
|
43
|
-
return (
|
60
|
+
function _kebabReplace(str, ofs) {
|
61
|
+
return (ofs ? "-" : "") + str.toLowerCase();
|
44
62
|
}
|
45
|
-
const
|
63
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
46
64
|
__name: "Avatar",
|
47
65
|
props: {
|
48
66
|
src: {},
|
@@ -53,36 +71,48 @@ const _a = /* @__PURE__ */ m({
|
|
53
71
|
size: { default: "2" },
|
54
72
|
color: {}
|
55
73
|
},
|
56
|
-
setup(
|
57
|
-
const
|
58
|
-
|
59
|
-
|
60
|
-
const l = e.alt.split(/\s+/).map((n) => n[0]);
|
61
|
-
return e.size === "1" ? l[0] : l.slice(0, 2).join("");
|
74
|
+
setup(__props) {
|
75
|
+
const props = __props;
|
76
|
+
const resetClass = computed(() => {
|
77
|
+
return extractClass(props, ["size", "variant"]);
|
62
78
|
});
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
79
|
+
const fallback = computed(() => {
|
80
|
+
if (props.fallback) {
|
81
|
+
return props.fallback;
|
82
|
+
}
|
83
|
+
const symbols = props.alt.split(/\s+/).map((p) => p[0]);
|
84
|
+
if (props.size === "1") {
|
85
|
+
return symbols[0];
|
86
|
+
} else {
|
87
|
+
return symbols.slice(0, 2).join("");
|
88
|
+
}
|
89
|
+
});
|
90
|
+
return (_ctx, _cache) => {
|
91
|
+
return openBlock(), createBlock(unref(AvatarRoot), {
|
92
|
+
class: normalizeClass(["ui-Avatar", resetClass.value]),
|
93
|
+
"data-accent-color": props.color,
|
94
|
+
"data-radius": props.radius
|
95
|
+
}, {
|
96
|
+
default: withCtx(() => [
|
97
|
+
createVNode(unref(AvatarImage), {
|
98
|
+
alt: props.alt,
|
99
|
+
src: props.src || ""
|
100
|
+
}, null, 8, ["alt", "src"]),
|
101
|
+
createVNode(unref(AvatarFallback), {
|
102
|
+
class: normalizeClass(`r-count-${fallback.value.length}`)
|
103
|
+
}, {
|
104
|
+
default: withCtx(() => [
|
105
|
+
createTextVNode(toDisplayString(fallback.value), 1)
|
106
|
+
]),
|
107
|
+
_: 1
|
108
|
+
}, 8, ["class"])
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}, 8, ["class", "data-accent-color", "data-radius"]);
|
112
|
+
};
|
84
113
|
}
|
85
|
-
})
|
114
|
+
});
|
115
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
86
116
|
__name: "Badge",
|
87
117
|
props: {
|
88
118
|
variant: { default: "soft" },
|
@@ -93,38 +123,48 @@ const _a = /* @__PURE__ */ m({
|
|
93
123
|
asChild: { type: Boolean },
|
94
124
|
as: { default: "span" }
|
95
125
|
},
|
96
|
-
setup(
|
97
|
-
const
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
126
|
+
setup(__props) {
|
127
|
+
const props = __props;
|
128
|
+
const resetClass = computed(() => {
|
129
|
+
return extractClass(props, ["size", "variant", "highContrast"]);
|
130
|
+
});
|
131
|
+
return (_ctx, _cache) => {
|
132
|
+
return openBlock(), createBlock(unref(Primitive), {
|
133
|
+
class: normalizeClass(["ui-Badge", resetClass.value]),
|
134
|
+
as: props.as,
|
135
|
+
"as-child": props.asChild,
|
136
|
+
"data-accent-color": props.color,
|
137
|
+
"data-radius": props.radius
|
138
|
+
}, {
|
139
|
+
default: withCtx(() => [
|
140
|
+
renderSlot(_ctx.$slots, "default")
|
141
|
+
]),
|
142
|
+
_: 3
|
143
|
+
}, 8, ["class", "as", "as-child", "data-accent-color", "data-radius"]);
|
144
|
+
};
|
110
145
|
}
|
111
|
-
})
|
146
|
+
});
|
147
|
+
const _hoisted_1$m = ["data-side", "data-clip"];
|
148
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
112
149
|
__name: "Inset",
|
113
150
|
props: {
|
114
151
|
side: { default: "all" },
|
115
152
|
clip: { default: "border-box" }
|
116
153
|
},
|
117
|
-
setup(
|
118
|
-
const
|
119
|
-
return (
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
154
|
+
setup(__props) {
|
155
|
+
const props = __props;
|
156
|
+
return (_ctx, _cache) => {
|
157
|
+
return openBlock(), createElementBlock("div", {
|
158
|
+
class: "ui-Inset",
|
159
|
+
"data-side": props.side,
|
160
|
+
"data-clip": props.clip
|
161
|
+
}, [
|
162
|
+
renderSlot(_ctx.$slots, "default")
|
163
|
+
], 8, _hoisted_1$m);
|
164
|
+
};
|
126
165
|
}
|
127
|
-
})
|
166
|
+
});
|
167
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
128
168
|
__name: "Card",
|
129
169
|
props: {
|
130
170
|
variant: { default: "surface" },
|
@@ -133,69 +173,84 @@ const _a = /* @__PURE__ */ m({
|
|
133
173
|
asChild: { type: Boolean },
|
134
174
|
as: { default: "div" }
|
135
175
|
},
|
136
|
-
setup(
|
137
|
-
const
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
176
|
+
setup(__props) {
|
177
|
+
const props = __props;
|
178
|
+
const resetClass = computed(() => {
|
179
|
+
return extractClass(props, ["size", "variant"]);
|
180
|
+
});
|
181
|
+
return (_ctx, _cache) => {
|
182
|
+
return openBlock(), createBlock(unref(Primitive), {
|
183
|
+
class: normalizeClass(["ui-Card", resetClass.value]),
|
184
|
+
"as-child": props.asChild,
|
185
|
+
as: props.as,
|
186
|
+
"data-radius": props.radius
|
187
|
+
}, {
|
188
|
+
default: withCtx(() => [
|
189
|
+
renderSlot(_ctx.$slots, "default")
|
190
|
+
]),
|
191
|
+
_: 3
|
192
|
+
}, 8, ["class", "as-child", "as", "data-radius"]);
|
193
|
+
};
|
149
194
|
}
|
150
|
-
})
|
195
|
+
});
|
196
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
151
197
|
__name: "CardHead",
|
152
198
|
props: {
|
153
199
|
color: {},
|
154
200
|
asChild: { type: Boolean },
|
155
201
|
as: { default: "div" }
|
156
202
|
},
|
157
|
-
setup(
|
158
|
-
const
|
159
|
-
return (
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
203
|
+
setup(__props) {
|
204
|
+
const props = __props;
|
205
|
+
return (_ctx, _cache) => {
|
206
|
+
return openBlock(), createBlock(unref(Primitive), {
|
207
|
+
as: props.as,
|
208
|
+
class: "ui-CardHead",
|
209
|
+
"data-accent-color": props.color
|
210
|
+
}, {
|
211
|
+
default: withCtx(() => [
|
212
|
+
renderSlot(_ctx.$slots, "default")
|
213
|
+
]),
|
214
|
+
_: 3
|
215
|
+
}, 8, ["as", "data-accent-color"]);
|
216
|
+
};
|
169
217
|
}
|
170
|
-
})
|
218
|
+
});
|
219
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
171
220
|
__name: "Button",
|
172
221
|
props: {
|
173
222
|
color: {},
|
174
223
|
radius: {},
|
175
224
|
variant: { default: "solid" },
|
176
225
|
size: { default: "2" },
|
177
|
-
highContrast: { type: Boolean, default:
|
226
|
+
highContrast: { type: Boolean, default: false },
|
178
227
|
disabled: { type: Boolean },
|
179
228
|
asChild: { type: Boolean },
|
180
229
|
as: { default: "button" }
|
181
230
|
},
|
182
|
-
setup(
|
183
|
-
const
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
231
|
+
setup(__props) {
|
232
|
+
const props = __props;
|
233
|
+
const resetClass = computed(() => {
|
234
|
+
return extractClass(props, ["size", "variant", "highContrast"]);
|
235
|
+
});
|
236
|
+
return (_ctx, _cache) => {
|
237
|
+
return openBlock(), createBlock(unref(Primitive), {
|
238
|
+
class: normalizeClass(["ui-Button", resetClass.value]),
|
239
|
+
"as-child": props.asChild,
|
240
|
+
as: props.as,
|
241
|
+
"data-accent-color": props.color,
|
242
|
+
"data-radius": props.radius,
|
243
|
+
"data-disabled": props.disabled ? true : void 0
|
244
|
+
}, {
|
245
|
+
default: withCtx(() => [
|
246
|
+
renderSlot(_ctx.$slots, "default")
|
247
|
+
]),
|
248
|
+
_: 3
|
249
|
+
}, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled"]);
|
250
|
+
};
|
197
251
|
}
|
198
|
-
})
|
252
|
+
});
|
253
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
199
254
|
__name: "IconButton",
|
200
255
|
props: {
|
201
256
|
color: {},
|
@@ -207,16 +262,20 @@ const _a = /* @__PURE__ */ m({
|
|
207
262
|
asChild: { type: Boolean },
|
208
263
|
as: {}
|
209
264
|
},
|
210
|
-
setup(
|
211
|
-
const
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
265
|
+
setup(__props) {
|
266
|
+
const props = __props;
|
267
|
+
const forwarded = useForwardProps(props);
|
268
|
+
return (_ctx, _cache) => {
|
269
|
+
return openBlock(), createBlock(_sfc_main$U, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
|
270
|
+
default: withCtx(() => [
|
271
|
+
renderSlot(_ctx.$slots, "default")
|
272
|
+
]),
|
273
|
+
_: 3
|
274
|
+
}, 16);
|
275
|
+
};
|
218
276
|
}
|
219
|
-
})
|
277
|
+
});
|
278
|
+
const BRAND_ICONS = {
|
220
279
|
google: "logos:google-icon",
|
221
280
|
facebook: "simple-icons:facebook",
|
222
281
|
x: "simple-icons:x",
|
@@ -224,7 +283,8 @@ const _a = /* @__PURE__ */ m({
|
|
224
283
|
apple: "simple-icons:apple",
|
225
284
|
slack: "logos:slack-icon",
|
226
285
|
figma: "logos:figma"
|
227
|
-
}
|
286
|
+
};
|
287
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
228
288
|
__name: "SocialButton",
|
229
289
|
props: {
|
230
290
|
brand: {},
|
@@ -234,26 +294,35 @@ const _a = /* @__PURE__ */ m({
|
|
234
294
|
asChild: { type: Boolean },
|
235
295
|
as: { default: "button" }
|
236
296
|
},
|
237
|
-
setup(
|
238
|
-
const
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
297
|
+
setup(__props) {
|
298
|
+
const props = __props;
|
299
|
+
const resetClass = computed(() => {
|
300
|
+
return extractClass(props, ["size", "brand"]);
|
301
|
+
});
|
302
|
+
const brandIcon = computed(() => {
|
303
|
+
return BRAND_ICONS[props.brand];
|
304
|
+
});
|
305
|
+
return (_ctx, _cache) => {
|
306
|
+
return openBlock(), createBlock(unref(Primitive), {
|
307
|
+
class: normalizeClass(["ui-Button ui-SocialButton", resetClass.value]),
|
308
|
+
"as-child": props.asChild,
|
309
|
+
as: props.as,
|
310
|
+
"data-radius": props.radius,
|
311
|
+
"data-disabled": props.disabled ? true : void 0
|
312
|
+
}, {
|
313
|
+
default: withCtx(() => [
|
314
|
+
brandIcon.value ? (openBlock(), createBlock(unref(Icon), {
|
315
|
+
key: 0,
|
316
|
+
icon: brandIcon.value
|
317
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
318
|
+
renderSlot(_ctx.$slots, "default")
|
319
|
+
]),
|
320
|
+
_: 3
|
321
|
+
}, 8, ["class", "as-child", "as", "data-radius", "data-disabled"]);
|
322
|
+
};
|
255
323
|
}
|
256
|
-
})
|
324
|
+
});
|
325
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
257
326
|
__name: "ScrollArea",
|
258
327
|
props: {
|
259
328
|
size: { default: "1" },
|
@@ -265,56 +334,64 @@ const _a = /* @__PURE__ */ m({
|
|
265
334
|
asChild: { type: Boolean },
|
266
335
|
as: {}
|
267
336
|
},
|
268
|
-
setup(
|
269
|
-
const
|
270
|
-
return (
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
337
|
+
setup(__props) {
|
338
|
+
const props = __props;
|
339
|
+
return (_ctx, _cache) => {
|
340
|
+
return openBlock(), createBlock(unref(ScrollAreaRoot), {
|
341
|
+
class: "ui-ScrollArea",
|
342
|
+
"as-child": props.asChild,
|
343
|
+
dir: props.dir,
|
344
|
+
"scroll-hide-delay": props.scrollHideDelay,
|
345
|
+
type: props.type,
|
346
|
+
"data-radius": props.radius
|
347
|
+
}, {
|
348
|
+
default: withCtx(() => [
|
349
|
+
createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
|
350
|
+
default: withCtx(() => [
|
351
|
+
renderSlot(_ctx.$slots, "default")
|
352
|
+
]),
|
353
|
+
_: 3
|
354
|
+
}),
|
355
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
|
356
|
+
props.scrollbars !== "horizontal" ? (openBlock(), createBlock(unref(ScrollAreaScrollbar), {
|
357
|
+
key: 0,
|
358
|
+
class: "ui-ScrollAreaScrollbar",
|
359
|
+
"data-size": props.size,
|
360
|
+
orientation: "vertical"
|
361
|
+
}, {
|
362
|
+
default: withCtx(() => [
|
363
|
+
createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
|
364
|
+
]),
|
365
|
+
_: 1
|
366
|
+
}, 8, ["data-size"])) : createCommentVNode("", true),
|
367
|
+
props.scrollbars !== "vertical" ? (openBlock(), createBlock(unref(ScrollAreaScrollbar), {
|
368
|
+
key: 1,
|
369
|
+
class: "ui-ScrollAreaScrollbar",
|
370
|
+
"data-size": props.size,
|
371
|
+
orientation: "horizontal"
|
372
|
+
}, {
|
373
|
+
default: withCtx(() => [
|
374
|
+
createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
|
375
|
+
]),
|
376
|
+
_: 1
|
377
|
+
}, 8, ["data-size"])) : createCommentVNode("", true),
|
378
|
+
props.scrollbars === "both" ? (openBlock(), createBlock(unref(ScrollAreaCorner), {
|
379
|
+
key: 2,
|
380
|
+
"class-name": "ui-ScrollAreaCorner"
|
381
|
+
})) : createCommentVNode("", true)
|
382
|
+
]),
|
383
|
+
_: 3,
|
384
|
+
__: [0]
|
385
|
+
}, 8, ["as-child", "dir", "scroll-hide-delay", "type", "data-radius"]);
|
386
|
+
};
|
315
387
|
}
|
316
|
-
})
|
317
|
-
|
388
|
+
});
|
389
|
+
const _hoisted_1$l = { class: "ui-DialogScroll" };
|
390
|
+
const _hoisted_2$9 = ["data-align"];
|
391
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
392
|
+
...{
|
393
|
+
inheritAttrs: false
|
394
|
+
},
|
318
395
|
__name: "AlertDialogContent",
|
319
396
|
props: {
|
320
397
|
to: {},
|
@@ -334,8 +411,10 @@ const _a = /* @__PURE__ */ m({
|
|
334
411
|
as: {}
|
335
412
|
},
|
336
413
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
337
|
-
setup(
|
338
|
-
const
|
414
|
+
setup(__props, { emit: __emit }) {
|
415
|
+
const props = __props;
|
416
|
+
const emits = __emit;
|
417
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
339
418
|
"to",
|
340
419
|
"align",
|
341
420
|
"class",
|
@@ -347,49 +426,56 @@ const _a = /* @__PURE__ */ m({
|
|
347
426
|
"minHeight",
|
348
427
|
"maxHeight"
|
349
428
|
]);
|
350
|
-
return (
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
429
|
+
return (_ctx, _cache) => {
|
430
|
+
return openBlock(), createBlock(unref(AlertDialogPortal), {
|
431
|
+
to: props.to
|
432
|
+
}, {
|
433
|
+
default: withCtx(() => [
|
434
|
+
createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
|
435
|
+
default: withCtx(() => [
|
436
|
+
createElementVNode("div", _hoisted_1$l, [
|
437
|
+
createElementVNode("div", {
|
438
|
+
class: "ui-DialogScrollPadding",
|
439
|
+
"data-align": props.align
|
440
|
+
}, [
|
441
|
+
createVNode(unref(AlertDialogContent), mergeProps({
|
442
|
+
class: ["ui-DialogContent", props.class],
|
443
|
+
"data-size": props.size
|
444
|
+
}, {
|
445
|
+
..._ctx.$attrs,
|
446
|
+
...unref(forwarded)
|
447
|
+
}, {
|
448
|
+
style: {
|
449
|
+
width: props.width,
|
450
|
+
height: props.height,
|
451
|
+
minWidth: props.minWidth,
|
452
|
+
maxWidth: props.maxWidth,
|
453
|
+
minHeight: props.minHeight,
|
454
|
+
maxHeight: props.maxHeight
|
455
|
+
}
|
456
|
+
}), {
|
457
|
+
default: withCtx(() => [
|
458
|
+
renderSlot(_ctx.$slots, "default")
|
459
|
+
]),
|
460
|
+
_: 3
|
461
|
+
}, 16, ["class", "data-size", "style"])
|
462
|
+
], 8, _hoisted_2$9)
|
463
|
+
])
|
464
|
+
]),
|
465
|
+
_: 3
|
466
|
+
})
|
467
|
+
]),
|
468
|
+
_: 3
|
469
|
+
}, 8, ["to"]);
|
470
|
+
};
|
390
471
|
}
|
391
|
-
})
|
392
|
-
|
472
|
+
});
|
473
|
+
const _hoisted_1$k = { class: "ui-DialogScroll" };
|
474
|
+
const _hoisted_2$8 = ["data-align"];
|
475
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
476
|
+
...{
|
477
|
+
inheritAttrs: false
|
478
|
+
},
|
393
479
|
__name: "DialogContent",
|
394
480
|
props: {
|
395
481
|
to: {},
|
@@ -409,8 +495,10 @@ const _a = /* @__PURE__ */ m({
|
|
409
495
|
as: {}
|
410
496
|
},
|
411
497
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
412
|
-
setup(
|
413
|
-
const
|
498
|
+
setup(__props, { emit: __emit }) {
|
499
|
+
const props = __props;
|
500
|
+
const emits = __emit;
|
501
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
414
502
|
"to",
|
415
503
|
"align",
|
416
504
|
"class",
|
@@ -422,85 +510,94 @@ const _a = /* @__PURE__ */ m({
|
|
422
510
|
"minHeight",
|
423
511
|
"maxHeight"
|
424
512
|
]);
|
425
|
-
return (
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
513
|
+
return (_ctx, _cache) => {
|
514
|
+
return openBlock(), createBlock(unref(DialogPortal), {
|
515
|
+
to: props.to
|
516
|
+
}, {
|
517
|
+
default: withCtx(() => [
|
518
|
+
createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
|
519
|
+
default: withCtx(() => [
|
520
|
+
createElementVNode("div", _hoisted_1$k, [
|
521
|
+
createElementVNode("div", {
|
522
|
+
class: "ui-DialogScrollPadding",
|
523
|
+
"data-align": props.align
|
524
|
+
}, [
|
525
|
+
createVNode(unref(DialogContent), mergeProps({
|
526
|
+
class: ["ui-DialogContent", props.class],
|
527
|
+
"data-size": props.size
|
528
|
+
}, {
|
529
|
+
..._ctx.$attrs,
|
530
|
+
...unref(forwarded)
|
531
|
+
}, {
|
532
|
+
style: {
|
533
|
+
width: props.width,
|
534
|
+
height: props.height,
|
535
|
+
minWidth: props.minWidth,
|
536
|
+
maxWidth: props.maxWidth,
|
537
|
+
minHeight: props.minHeight,
|
538
|
+
maxHeight: props.maxHeight
|
539
|
+
}
|
540
|
+
}), {
|
541
|
+
default: withCtx(() => [
|
542
|
+
renderSlot(_ctx.$slots, "default")
|
543
|
+
]),
|
544
|
+
_: 3
|
545
|
+
}, 16, ["class", "data-size", "style"])
|
546
|
+
], 8, _hoisted_2$8)
|
547
|
+
])
|
548
|
+
]),
|
549
|
+
_: 3
|
550
|
+
})
|
551
|
+
]),
|
552
|
+
_: 3
|
553
|
+
}, 8, ["to"]);
|
554
|
+
};
|
465
555
|
}
|
466
|
-
})
|
556
|
+
});
|
557
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
467
558
|
__name: "DialogHead",
|
468
559
|
props: {
|
469
560
|
title: {}
|
470
561
|
},
|
471
|
-
setup(
|
472
|
-
const
|
473
|
-
return (
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
562
|
+
setup(__props) {
|
563
|
+
const props = __props;
|
564
|
+
return (_ctx, _cache) => {
|
565
|
+
return openBlock(), createBlock(_sfc_main$X, {
|
566
|
+
class: "ui-DialogHead",
|
567
|
+
side: "x"
|
568
|
+
}, {
|
569
|
+
default: withCtx(() => [
|
570
|
+
createVNode(unref(DialogTitle), { class: "font-semibold" }, {
|
571
|
+
default: withCtx(() => [
|
572
|
+
createTextVNode(toDisplayString(props.title), 1)
|
573
|
+
]),
|
574
|
+
_: 1
|
575
|
+
}),
|
576
|
+
createVNode(_sfc_main$T, {
|
577
|
+
as: unref(DialogClose),
|
578
|
+
type: "button",
|
579
|
+
variant: "ghost",
|
580
|
+
color: "gray",
|
581
|
+
radius: "full",
|
582
|
+
"aria-label": "Close"
|
583
|
+
}, {
|
584
|
+
default: withCtx(() => [
|
585
|
+
createVNode(unref(Icon), { icon: "lucide:x" })
|
586
|
+
]),
|
587
|
+
_: 1
|
588
|
+
}, 8, ["as"])
|
589
|
+
]),
|
590
|
+
_: 1
|
591
|
+
});
|
592
|
+
};
|
501
593
|
}
|
502
|
-
})
|
503
|
-
|
594
|
+
});
|
595
|
+
const _hoisted_1$j = { class: "ui-MenuViewport" };
|
596
|
+
const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui_DropdownMenuContent");
|
597
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
598
|
+
...{
|
599
|
+
inheritAttrs: false
|
600
|
+
},
|
504
601
|
__name: "DropdownMenuContent",
|
505
602
|
props: {
|
506
603
|
to: {},
|
@@ -529,44 +626,53 @@ const _a = /* @__PURE__ */ m({
|
|
529
626
|
as: {}
|
530
627
|
},
|
531
628
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
532
|
-
setup(
|
533
|
-
const
|
629
|
+
setup(__props, { emit: __emit }) {
|
630
|
+
const props = __props;
|
631
|
+
const emits = __emit;
|
632
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
534
633
|
"to",
|
535
634
|
"size",
|
536
635
|
"variant",
|
537
636
|
"color",
|
538
637
|
"highContrast"
|
539
|
-
])
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
638
|
+
]);
|
639
|
+
const { forwardRef } = useForwardExpose();
|
640
|
+
const { size, variant, color, highContrast } = toRefs(props);
|
641
|
+
provideDropdownMenuContentContext({ size, variant, color, highContrast });
|
642
|
+
return (_ctx, _cache) => {
|
643
|
+
return openBlock(), createBlock(unref(DropdownMenuPortal), {
|
644
|
+
to: props.to
|
645
|
+
}, {
|
646
|
+
default: withCtx(() => [
|
647
|
+
createVNode(unref(DropdownMenuContent), mergeProps({
|
648
|
+
..._ctx.$attrs,
|
649
|
+
...unref(forwarded)
|
650
|
+
}, {
|
651
|
+
ref: unref(forwardRef),
|
652
|
+
class: "ui-PopperContent ui-MenuContent",
|
653
|
+
"data-accent-color": props.color,
|
654
|
+
"data-size": props.size
|
655
|
+
}), {
|
656
|
+
default: withCtx(() => [
|
657
|
+
createVNode(_sfc_main$R, { type: "auto" }, {
|
658
|
+
default: withCtx(() => [
|
659
|
+
createElementVNode("div", _hoisted_1$j, [
|
660
|
+
renderSlot(_ctx.$slots, "default")
|
661
|
+
])
|
662
|
+
]),
|
663
|
+
_: 3
|
664
|
+
})
|
665
|
+
]),
|
666
|
+
_: 3
|
667
|
+
}, 16, ["data-accent-color", "data-size"])
|
668
|
+
]),
|
669
|
+
_: 3
|
670
|
+
}, 8, ["to"]);
|
671
|
+
};
|
568
672
|
}
|
569
|
-
})
|
673
|
+
});
|
674
|
+
const _hoisted_1$i = ["textContent"];
|
675
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
570
676
|
__name: "DropdownMenuItem",
|
571
677
|
props: {
|
572
678
|
color: {},
|
@@ -577,33 +683,38 @@ const _a = /* @__PURE__ */ m({
|
|
577
683
|
as: {}
|
578
684
|
},
|
579
685
|
emits: ["select"],
|
580
|
-
setup(
|
581
|
-
const
|
582
|
-
|
583
|
-
const
|
584
|
-
|
585
|
-
|
586
|
-
|
686
|
+
setup(__props, { emit: __emit }) {
|
687
|
+
const props = __props;
|
688
|
+
const emits = __emit;
|
689
|
+
const forwarded = useForwardPropsEmits(props, emits, ["color", "shortcut"]);
|
690
|
+
useForwardExpose();
|
691
|
+
const rootContext = injectDropdownMenuContentContext();
|
692
|
+
return (_ctx, _cache) => {
|
693
|
+
var _a;
|
694
|
+
return openBlock(), createBlock(unref(DropdownMenuItem), mergeProps({
|
587
695
|
class: "ui-MenuItem",
|
588
|
-
"data-accent-color":
|
589
|
-
"data-size":
|
590
|
-
"data-variant":
|
591
|
-
"data-high-contrast": ((
|
592
|
-
},
|
593
|
-
default:
|
594
|
-
|
595
|
-
|
696
|
+
"data-accent-color": props.color,
|
697
|
+
"data-size": unref(rootContext).size.value,
|
698
|
+
"data-variant": unref(rootContext).variant.value,
|
699
|
+
"data-high-contrast": ((_a = unref(rootContext).highContrast) == null ? void 0 : _a.value) || void 0
|
700
|
+
}, unref(forwarded)), {
|
701
|
+
default: withCtx(() => [
|
702
|
+
renderSlot(_ctx.$slots, "default"),
|
703
|
+
props.shortcut ? (openBlock(), createElementBlock("div", {
|
596
704
|
key: 0,
|
597
705
|
class: "ui-MenuShortcut",
|
598
|
-
textContent:
|
599
|
-
}, null, 8,
|
706
|
+
textContent: toDisplayString(props.shortcut)
|
707
|
+
}, null, 8, _hoisted_1$i)) : createCommentVNode("", true)
|
600
708
|
]),
|
601
709
|
_: 3
|
602
710
|
}, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
|
603
711
|
};
|
604
712
|
}
|
605
|
-
})
|
606
|
-
|
713
|
+
});
|
714
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
715
|
+
...{
|
716
|
+
inheritAttrs: false
|
717
|
+
},
|
607
718
|
__name: "PopoverContent",
|
608
719
|
props: {
|
609
720
|
to: {},
|
@@ -629,26 +740,31 @@ const _a = /* @__PURE__ */ m({
|
|
629
740
|
disableOutsidePointerEvents: { type: Boolean }
|
630
741
|
},
|
631
742
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
632
|
-
setup(
|
633
|
-
const
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
743
|
+
setup(__props, { emit: __emit }) {
|
744
|
+
const props = __props;
|
745
|
+
const emits = __emit;
|
746
|
+
const forwarded = useForwardPropsEmits(props, emits, ["to", "size"]);
|
747
|
+
return (_ctx, _cache) => {
|
748
|
+
return openBlock(), createBlock(unref(PopoverPortal), {
|
749
|
+
to: props.to
|
750
|
+
}, {
|
751
|
+
default: withCtx(() => [
|
752
|
+
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
753
|
+
"data-size": props.size,
|
754
|
+
class: "ui-PopoverContent"
|
755
|
+
}), {
|
756
|
+
default: withCtx(() => [
|
757
|
+
renderSlot(_ctx.$slots, "default")
|
758
|
+
]),
|
759
|
+
_: 3
|
760
|
+
}, 16, ["data-size"])
|
761
|
+
]),
|
762
|
+
_: 3
|
763
|
+
}, 8, ["to"]);
|
764
|
+
};
|
650
765
|
}
|
651
|
-
})
|
766
|
+
});
|
767
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
652
768
|
__name: "Switch",
|
653
769
|
props: {
|
654
770
|
color: {},
|
@@ -667,26 +783,31 @@ const _a = /* @__PURE__ */ m({
|
|
667
783
|
required: { type: Boolean }
|
668
784
|
},
|
669
785
|
emits: ["update:modelValue"],
|
670
|
-
setup(
|
671
|
-
const
|
786
|
+
setup(__props, { emit: __emit }) {
|
787
|
+
const emits = __emit;
|
788
|
+
const props = __props;
|
789
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
672
790
|
"color",
|
673
791
|
"size",
|
674
792
|
"variant",
|
675
793
|
"highContrast",
|
676
794
|
"radius"
|
677
795
|
]);
|
678
|
-
return (
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
796
|
+
return (_ctx, _cache) => {
|
797
|
+
return openBlock(), createBlock(unref(SwitchRoot), mergeProps(unref(forwarded), {
|
798
|
+
class: ["ui-Switch", unref(resetClass)],
|
799
|
+
"data-accent-color": props.color,
|
800
|
+
"data-radius": props.radius
|
801
|
+
}), {
|
802
|
+
default: withCtx(() => [
|
803
|
+
createVNode(unref(SwitchThumb), { class: "ui-SwitchThumb" })
|
804
|
+
]),
|
805
|
+
_: 1
|
806
|
+
}, 16, ["class", "data-accent-color", "data-radius"]);
|
807
|
+
};
|
688
808
|
}
|
689
|
-
})
|
809
|
+
});
|
810
|
+
const _hoisted_1$h = {
|
690
811
|
key: 0,
|
691
812
|
xmlns: "http://www.w3.org/2000/svg",
|
692
813
|
viewBox: "0 0 24 24",
|
@@ -695,13 +816,16 @@ const _a = /* @__PURE__ */ m({
|
|
695
816
|
"stroke-width": "4",
|
696
817
|
"stroke-linecap": "round",
|
697
818
|
"stroke-linejoin": "round"
|
698
|
-
}
|
819
|
+
};
|
820
|
+
const _hoisted_2$7 = {
|
699
821
|
key: 0,
|
700
822
|
d: "M5 12h14"
|
701
|
-
}
|
823
|
+
};
|
824
|
+
const _hoisted_3$4 = {
|
702
825
|
key: 1,
|
703
826
|
d: "M20 6 9 17l-5-5"
|
704
|
-
}
|
827
|
+
};
|
828
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
705
829
|
__name: "Checkbox",
|
706
830
|
props: {
|
707
831
|
color: {},
|
@@ -719,85 +843,126 @@ const _a = /* @__PURE__ */ m({
|
|
719
843
|
required: { type: Boolean }
|
720
844
|
},
|
721
845
|
emits: ["update:modelValue"],
|
722
|
-
setup(
|
723
|
-
const
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
846
|
+
setup(__props, { emit: __emit }) {
|
847
|
+
const emits = __emit;
|
848
|
+
const props = __props;
|
849
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["color", "size", "variant", "highContrast"]);
|
850
|
+
return (_ctx, _cache) => {
|
851
|
+
return openBlock(), createBlock(unref(CheckboxRoot), mergeProps(unref(forwarded), {
|
852
|
+
class: ["ui-Checkbox", unref(resetClass)],
|
853
|
+
"data-accent-color": props.color
|
854
|
+
}), {
|
855
|
+
default: withCtx(() => [
|
856
|
+
createVNode(unref(CheckboxIndicator), {
|
857
|
+
class: "ui-CheckboxIndicator",
|
858
|
+
"as-child": ""
|
859
|
+
}, {
|
860
|
+
default: withCtx(() => [
|
861
|
+
props.modelValue !== false ? (openBlock(), createElementBlock("svg", _hoisted_1$h, [
|
862
|
+
props.modelValue === "indeterminate" ? (openBlock(), createElementBlock("path", _hoisted_2$7)) : (openBlock(), createElementBlock("path", _hoisted_3$4))
|
863
|
+
])) : createCommentVNode("", true)
|
864
|
+
]),
|
865
|
+
_: 1
|
866
|
+
})
|
867
|
+
]),
|
868
|
+
_: 1
|
869
|
+
}, 16, ["class", "data-accent-color"]);
|
870
|
+
};
|
743
871
|
}
|
744
|
-
})
|
872
|
+
});
|
873
|
+
const [injectCheckboxGroupRootContext, provideCheckboxGroupRootContext] = createContext("ui_CheckboxGroupRoot");
|
874
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
745
875
|
__name: "CheckboxGroupRoot",
|
746
|
-
props: /* @__PURE__ */
|
876
|
+
props: /* @__PURE__ */ mergeModels({
|
747
877
|
disabled: { type: Boolean },
|
748
878
|
name: {},
|
749
879
|
asChild: { type: Boolean },
|
750
880
|
as: {}
|
751
881
|
}, {
|
752
|
-
modelValue: {
|
882
|
+
"modelValue": {
|
753
883
|
default: []
|
754
884
|
},
|
755
|
-
modelModifiers: {}
|
885
|
+
"modelModifiers": {}
|
756
886
|
}),
|
757
887
|
emits: ["update:modelValue"],
|
758
|
-
setup(
|
759
|
-
const
|
760
|
-
|
761
|
-
|
888
|
+
setup(__props) {
|
889
|
+
const props = __props;
|
890
|
+
const { disabled, name } = toRefs(props);
|
891
|
+
const allValues = ref([]);
|
892
|
+
const [modelValue, modifiers] = useModel(__props, "modelValue", {
|
893
|
+
set(value) {
|
894
|
+
if (modifiers.number) {
|
895
|
+
value = value.map((v) => Number(v));
|
896
|
+
} else if (modifiers.trim) {
|
897
|
+
value = value.map((v) => v.trim());
|
898
|
+
}
|
899
|
+
return value;
|
900
|
+
}
|
901
|
+
});
|
902
|
+
const selected = computed(() => {
|
903
|
+
return modelValue.value || [];
|
904
|
+
});
|
905
|
+
const checked = computed(() => {
|
906
|
+
var _a, _b;
|
907
|
+
if (!allValues.value.length) {
|
908
|
+
return false;
|
909
|
+
}
|
910
|
+
if (((_a = modelValue.value) == null ? void 0 : _a.length) === allValues.value.length) {
|
911
|
+
return true;
|
912
|
+
} else if ((_b = modelValue.value) == null ? void 0 : _b.length) {
|
913
|
+
return "indeterminate";
|
914
|
+
} else {
|
915
|
+
return false;
|
916
|
+
}
|
917
|
+
});
|
918
|
+
const removeModelValue = (value) => {
|
919
|
+
var _a, _b;
|
920
|
+
const index = (_a = modelValue.value) == null ? void 0 : _a.indexOf(value);
|
921
|
+
if (index !== -1 && index !== void 0) {
|
922
|
+
(_b = modelValue.value) == null ? void 0 : _b.splice(index, 1);
|
762
923
|
}
|
763
|
-
}
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
selected: u,
|
773
|
-
checked: y,
|
774
|
-
addModelValue: (h) => {
|
775
|
-
var f, B;
|
776
|
-
((f = n.value) == null ? void 0 : f.indexOf(h)) === -1 && ((B = n.value) == null || B.push(h));
|
924
|
+
};
|
925
|
+
provideCheckboxGroupRootContext({
|
926
|
+
selected,
|
927
|
+
checked,
|
928
|
+
addModelValue: (value) => {
|
929
|
+
var _a, _b;
|
930
|
+
if (((_a = modelValue.value) == null ? void 0 : _a.indexOf(value)) === -1) {
|
931
|
+
(_b = modelValue.value) == null ? void 0 : _b.push(value);
|
932
|
+
}
|
777
933
|
},
|
778
|
-
removeModelValue
|
779
|
-
toggleModelValue: (
|
780
|
-
|
934
|
+
removeModelValue,
|
935
|
+
toggleModelValue: (checked2) => {
|
936
|
+
if (checked2) {
|
937
|
+
modelValue.value = [...allValues.value];
|
938
|
+
} else {
|
939
|
+
modelValue.value = [];
|
940
|
+
}
|
781
941
|
},
|
782
|
-
initAllValue: (
|
783
|
-
|
942
|
+
initAllValue: (value) => {
|
943
|
+
allValues.value.push(value);
|
784
944
|
},
|
785
|
-
removeAllValue: (
|
786
|
-
|
945
|
+
removeAllValue: (value) => {
|
946
|
+
allValues.value.splice(allValues.value.indexOf(value), 1);
|
947
|
+
removeModelValue(value);
|
787
948
|
},
|
788
|
-
disabled
|
789
|
-
name:
|
790
|
-
})
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
949
|
+
disabled,
|
950
|
+
name: name == null ? void 0 : name.value
|
951
|
+
});
|
952
|
+
return (_ctx, _cache) => {
|
953
|
+
return openBlock(), createBlock(unref(Primitive), {
|
954
|
+
as: props.as,
|
955
|
+
"as-child": props.asChild
|
956
|
+
}, {
|
957
|
+
default: withCtx(() => [
|
958
|
+
renderSlot(_ctx.$slots, "default")
|
959
|
+
]),
|
960
|
+
_: 3
|
961
|
+
}, 8, ["as", "as-child"]);
|
962
|
+
};
|
799
963
|
}
|
800
|
-
})
|
964
|
+
});
|
965
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
801
966
|
__name: "CheckboxGroupItem",
|
802
967
|
props: {
|
803
968
|
value: {},
|
@@ -814,27 +979,42 @@ const _a = /* @__PURE__ */ m({
|
|
814
979
|
name: {},
|
815
980
|
required: { type: Boolean }
|
816
981
|
},
|
817
|
-
setup(
|
818
|
-
const
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
};
|
826
|
-
|
827
|
-
|
828
|
-
})
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
}
|
982
|
+
setup(__props) {
|
983
|
+
const props = __props;
|
984
|
+
const forwarded = useForwardProps(props);
|
985
|
+
useForwardExpose();
|
986
|
+
const rootContext = injectCheckboxGroupRootContext();
|
987
|
+
const disabled = computed(() => {
|
988
|
+
var _a;
|
989
|
+
return ((_a = rootContext.disabled) == null ? void 0 : _a.value) || props.disabled;
|
990
|
+
});
|
991
|
+
const checked = computed(() => {
|
992
|
+
return rootContext.selected.value.indexOf(props.value) !== -1;
|
993
|
+
});
|
994
|
+
const onUpdate = (checked2) => {
|
995
|
+
if (checked2) {
|
996
|
+
rootContext.addModelValue(props.value);
|
997
|
+
} else {
|
998
|
+
rootContext.removeModelValue(props.value);
|
999
|
+
}
|
1000
|
+
};
|
1001
|
+
onMounted(() => {
|
1002
|
+
rootContext.initAllValue(props.value);
|
1003
|
+
});
|
1004
|
+
onBeforeUnmount(() => {
|
1005
|
+
rootContext.removeAllValue(props.value);
|
1006
|
+
});
|
1007
|
+
return (_ctx, _cache) => {
|
1008
|
+
return openBlock(), createBlock(_sfc_main$J, mergeProps({
|
1009
|
+
...unref(forwarded),
|
1010
|
+
name: props.name || unref(rootContext).name,
|
1011
|
+
modelValue: checked.value,
|
1012
|
+
disabled: disabled.value
|
1013
|
+
}, { "onUpdate:modelValue": onUpdate }), null, 16);
|
1014
|
+
};
|
836
1015
|
}
|
837
|
-
})
|
1016
|
+
});
|
1017
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
838
1018
|
__name: "CheckboxGroupControl",
|
839
1019
|
props: {
|
840
1020
|
color: {},
|
@@ -851,23 +1031,29 @@ const _a = /* @__PURE__ */ m({
|
|
851
1031
|
name: {},
|
852
1032
|
required: { type: Boolean }
|
853
1033
|
},
|
854
|
-
setup(
|
855
|
-
const
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
};
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
1034
|
+
setup(__props) {
|
1035
|
+
const props = __props;
|
1036
|
+
const forwarded = useForwardProps(props);
|
1037
|
+
useForwardExpose();
|
1038
|
+
const rootContext = injectCheckboxGroupRootContext();
|
1039
|
+
const disabled = computed(() => {
|
1040
|
+
var _a;
|
1041
|
+
return ((_a = rootContext.disabled) == null ? void 0 : _a.value) || props.disabled;
|
1042
|
+
});
|
1043
|
+
const toggleModelValue = (checked) => {
|
1044
|
+
rootContext.toggleModelValue(checked);
|
1045
|
+
};
|
1046
|
+
return (_ctx, _cache) => {
|
1047
|
+
return openBlock(), createBlock(_sfc_main$J, mergeProps({
|
1048
|
+
...unref(forwarded),
|
1049
|
+
name: props.name || unref(rootContext).name,
|
1050
|
+
modelValue: unref(rootContext).checked.value,
|
1051
|
+
disabled: disabled.value
|
1052
|
+
}, { "onUpdate:modelValue": toggleModelValue }), null, 16);
|
1053
|
+
};
|
869
1054
|
}
|
870
|
-
})
|
1055
|
+
});
|
1056
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
871
1057
|
__name: "Toggle",
|
872
1058
|
props: {
|
873
1059
|
color: {},
|
@@ -884,26 +1070,31 @@ const _a = /* @__PURE__ */ m({
|
|
884
1070
|
required: { type: Boolean }
|
885
1071
|
},
|
886
1072
|
emits: ["update:modelValue"],
|
887
|
-
setup(
|
888
|
-
const
|
1073
|
+
setup(__props, { emit: __emit }) {
|
1074
|
+
const emits = __emit;
|
1075
|
+
const props = __props;
|
1076
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
889
1077
|
"color",
|
890
1078
|
"size",
|
891
1079
|
"variant",
|
892
1080
|
"highContrast",
|
893
1081
|
"radius"
|
894
1082
|
]);
|
895
|
-
return (
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
1083
|
+
return (_ctx, _cache) => {
|
1084
|
+
return openBlock(), createBlock(unref(Toggle), mergeProps(unref(forwarded), {
|
1085
|
+
class: ["ui-Toggle", unref(resetClass)],
|
1086
|
+
"data-accent-color": props.color,
|
1087
|
+
"data-radius": props.radius
|
1088
|
+
}), {
|
1089
|
+
default: withCtx(() => [
|
1090
|
+
renderSlot(_ctx.$slots, "default")
|
1091
|
+
]),
|
1092
|
+
_: 3
|
1093
|
+
}, 16, ["class", "data-accent-color", "data-radius"]);
|
1094
|
+
};
|
905
1095
|
}
|
906
|
-
})
|
1096
|
+
});
|
1097
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
907
1098
|
__name: "ToggleGroupRoot",
|
908
1099
|
props: {
|
909
1100
|
color: {},
|
@@ -925,26 +1116,31 @@ const _a = /* @__PURE__ */ m({
|
|
925
1116
|
defaultValue: {}
|
926
1117
|
},
|
927
1118
|
emits: ["update:modelValue"],
|
928
|
-
setup(
|
929
|
-
const
|
1119
|
+
setup(__props, { emit: __emit }) {
|
1120
|
+
const emits = __emit;
|
1121
|
+
const props = __props;
|
1122
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
930
1123
|
"color",
|
931
1124
|
"size",
|
932
1125
|
"variant",
|
933
1126
|
"highContrast",
|
934
1127
|
"radius"
|
935
1128
|
]);
|
936
|
-
return (
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
1129
|
+
return (_ctx, _cache) => {
|
1130
|
+
return openBlock(), createBlock(unref(ToggleGroupRoot), mergeProps(unref(forwarded), {
|
1131
|
+
class: ["ui-ToggleGroupRoot", unref(resetClass)],
|
1132
|
+
"data-accent-color": props.color,
|
1133
|
+
"data-radius": props.radius
|
1134
|
+
}), {
|
1135
|
+
default: withCtx(() => [
|
1136
|
+
renderSlot(_ctx.$slots, "default")
|
1137
|
+
]),
|
1138
|
+
_: 3
|
1139
|
+
}, 16, ["class", "data-accent-color", "data-radius"]);
|
1140
|
+
};
|
946
1141
|
}
|
947
|
-
})
|
1142
|
+
});
|
1143
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
948
1144
|
__name: "ToggleGroupItem",
|
949
1145
|
props: {
|
950
1146
|
value: {},
|
@@ -952,27 +1148,37 @@ const _a = /* @__PURE__ */ m({
|
|
952
1148
|
asChild: { type: Boolean },
|
953
1149
|
as: {}
|
954
1150
|
},
|
955
|
-
setup(
|
956
|
-
const
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
1151
|
+
setup(__props) {
|
1152
|
+
const props = __props;
|
1153
|
+
const forwarded = useForwardProps(props);
|
1154
|
+
return (_ctx, _cache) => {
|
1155
|
+
return openBlock(), createBlock(unref(ToggleGroupItem), mergeProps(unref(forwarded), { class: "ui-ToggleGroupItem" }), {
|
1156
|
+
default: withCtx(() => [
|
1157
|
+
renderSlot(_ctx.$slots, "default")
|
1158
|
+
]),
|
1159
|
+
_: 3
|
1160
|
+
}, 16);
|
1161
|
+
};
|
963
1162
|
}
|
964
|
-
})
|
1163
|
+
});
|
1164
|
+
const _hoisted_1$g = ["data-radius", "data-accent-color"];
|
1165
|
+
const _hoisted_2$6 = ["id", "type"];
|
1166
|
+
const _hoisted_3$3 = {
|
965
1167
|
key: 0,
|
966
1168
|
class: "ui-TextFieldSlot",
|
967
1169
|
"data-side": "left"
|
968
|
-
}
|
1170
|
+
};
|
1171
|
+
const _hoisted_4$1 = {
|
969
1172
|
key: 1,
|
970
1173
|
class: "ui-TextFieldSlot",
|
971
1174
|
"data-side": "right"
|
972
|
-
}
|
973
|
-
|
1175
|
+
};
|
1176
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
1177
|
+
...{
|
1178
|
+
inheritAttrs: false
|
1179
|
+
},
|
974
1180
|
__name: "TextField",
|
975
|
-
props: /* @__PURE__ */
|
1181
|
+
props: /* @__PURE__ */ mergeModels({
|
976
1182
|
id: {},
|
977
1183
|
class: {},
|
978
1184
|
size: { default: "2" },
|
@@ -981,57 +1187,78 @@ const _a = /* @__PURE__ */ m({
|
|
981
1187
|
radius: {},
|
982
1188
|
type: { default: "text" }
|
983
1189
|
}, {
|
984
|
-
modelValue: {
|
1190
|
+
"modelValue": {
|
985
1191
|
default: ""
|
986
1192
|
},
|
987
|
-
modelModifiers: {}
|
1193
|
+
"modelModifiers": {}
|
988
1194
|
}),
|
989
1195
|
emits: ["update:modelValue"],
|
990
|
-
setup(
|
991
|
-
const
|
992
|
-
|
993
|
-
|
994
|
-
const
|
995
|
-
if (
|
996
|
-
const
|
1196
|
+
setup(__props) {
|
1197
|
+
const props = __props;
|
1198
|
+
const inputRef = ref();
|
1199
|
+
const onPointerDown = (event) => {
|
1200
|
+
const target = event.target;
|
1201
|
+
if (target.closest("input, button, a")) return;
|
1202
|
+
const input = inputRef.value;
|
1203
|
+
if (!input) return;
|
1204
|
+
const isRightSlot = target.closest("[data-side=right]");
|
1205
|
+
const cursorPosition = isRightSlot ? input.value.length : 0;
|
997
1206
|
requestAnimationFrame(() => {
|
998
|
-
|
1207
|
+
input.setSelectionRange(cursorPosition, cursorPosition);
|
1208
|
+
input.focus();
|
999
1209
|
});
|
1000
|
-
}
|
1001
|
-
|
1002
|
-
|
1210
|
+
};
|
1211
|
+
const [modelValue, modifiers] = useModel(__props, "modelValue", {
|
1212
|
+
set(value) {
|
1213
|
+
if (modifiers.number) {
|
1214
|
+
return Number(value);
|
1215
|
+
}
|
1216
|
+
if (modifiers.trim) {
|
1217
|
+
return value.trim();
|
1218
|
+
}
|
1219
|
+
return value;
|
1003
1220
|
}
|
1004
|
-
}), i = C(() => {
|
1005
|
-
const u = R(e, ["size", "variant"]);
|
1006
|
-
return e.class && u.push(e.class), u;
|
1007
1221
|
});
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
"
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1222
|
+
const resetClass = computed(() => {
|
1223
|
+
const rv = extractClass(props, ["size", "variant"]);
|
1224
|
+
if (props.class) {
|
1225
|
+
rv.push(props.class);
|
1226
|
+
}
|
1227
|
+
return rv;
|
1228
|
+
});
|
1229
|
+
return (_ctx, _cache) => {
|
1230
|
+
return openBlock(), createElementBlock("div", {
|
1231
|
+
class: normalizeClass(["ui-TextField", resetClass.value]),
|
1232
|
+
"data-radius": props.radius,
|
1233
|
+
"data-accent-color": props.color,
|
1234
|
+
onPointerdown: onPointerDown
|
1235
|
+
}, [
|
1236
|
+
withDirectives(createElementVNode("input", mergeProps({
|
1237
|
+
id: props.id,
|
1238
|
+
ref_key: "inputRef",
|
1239
|
+
ref: inputRef,
|
1240
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
1241
|
+
type: props.type
|
1242
|
+
}, _ctx.$attrs, { class: "ui-TextFieldInput" }), null, 16, _hoisted_2$6), [
|
1243
|
+
[vModelDynamic, unref(modelValue)]
|
1244
|
+
]),
|
1245
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
1246
|
+
renderSlot(_ctx.$slots, "left")
|
1247
|
+
])) : createCommentVNode("", true),
|
1248
|
+
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
1249
|
+
renderSlot(_ctx.$slots, "right")
|
1250
|
+
])) : createCommentVNode("", true)
|
1251
|
+
], 42, _hoisted_1$g);
|
1252
|
+
};
|
1030
1253
|
}
|
1031
|
-
})
|
1032
|
-
|
1254
|
+
});
|
1255
|
+
const _hoisted_1$f = ["data-accent-color"];
|
1256
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
1257
|
+
...{
|
1258
|
+
inheritAttrs: false
|
1259
|
+
},
|
1033
1260
|
__name: "TextArea",
|
1034
|
-
props: /* @__PURE__ */
|
1261
|
+
props: /* @__PURE__ */ mergeModels({
|
1035
1262
|
class: {},
|
1036
1263
|
size: { default: "2" },
|
1037
1264
|
variant: { default: "surface" },
|
@@ -1039,60 +1266,78 @@ const _a = /* @__PURE__ */ m({
|
|
1039
1266
|
color: {},
|
1040
1267
|
radius: {}
|
1041
1268
|
}, {
|
1042
|
-
modelValue: {
|
1269
|
+
"modelValue": {
|
1043
1270
|
default: ""
|
1044
1271
|
},
|
1045
|
-
modelModifiers: {}
|
1272
|
+
"modelModifiers": {}
|
1046
1273
|
}),
|
1047
1274
|
emits: ["update:modelValue"],
|
1048
|
-
setup(
|
1049
|
-
const
|
1050
|
-
|
1051
|
-
|
1275
|
+
setup(__props) {
|
1276
|
+
const props = __props;
|
1277
|
+
const modelValue = useModel(__props, "modelValue");
|
1278
|
+
const resetClass = computed(() => {
|
1279
|
+
const rv = extractClass(props, ["size", "variant", "resize"]);
|
1280
|
+
if (props.class) {
|
1281
|
+
rv.push(props.class);
|
1282
|
+
}
|
1283
|
+
return rv;
|
1052
1284
|
});
|
1053
|
-
return (
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
"
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1285
|
+
return (_ctx, _cache) => {
|
1286
|
+
return openBlock(), createElementBlock("div", {
|
1287
|
+
class: normalizeClass(["ui-TextArea", resetClass.value]),
|
1288
|
+
"data-accent-color": props.color
|
1289
|
+
}, [
|
1290
|
+
withDirectives(createElementVNode("textarea", mergeProps({
|
1291
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
1292
|
+
}, _ctx.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
|
1293
|
+
[vModelText, modelValue.value]
|
1294
|
+
])
|
1295
|
+
], 10, _hoisted_1$f);
|
1296
|
+
};
|
1063
1297
|
}
|
1064
|
-
})
|
1298
|
+
});
|
1299
|
+
const _hoisted_1$e = ["data-radius"];
|
1300
|
+
const _hoisted_2$5 = ["id"];
|
1301
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
1065
1302
|
__name: "ColorField",
|
1066
|
-
props: /* @__PURE__ */
|
1303
|
+
props: /* @__PURE__ */ mergeModels({
|
1067
1304
|
id: {},
|
1068
1305
|
variant: { default: "solid" },
|
1069
1306
|
size: { default: "2" },
|
1070
1307
|
radius: {}
|
1071
1308
|
}, {
|
1072
|
-
modelValue: {
|
1309
|
+
"modelValue": {
|
1073
1310
|
default: "#000000"
|
1074
1311
|
},
|
1075
|
-
modelModifiers: {}
|
1312
|
+
"modelModifiers": {}
|
1076
1313
|
}),
|
1077
1314
|
emits: ["update:modelValue"],
|
1078
|
-
setup(
|
1079
|
-
const
|
1080
|
-
|
1081
|
-
|
1082
|
-
"
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
"
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1315
|
+
setup(__props) {
|
1316
|
+
const props = __props;
|
1317
|
+
const modelValue = useModel(__props, "modelValue");
|
1318
|
+
const resetClass = computed(() => {
|
1319
|
+
return extractClass(props, ["size", "variant"]);
|
1320
|
+
});
|
1321
|
+
return (_ctx, _cache) => {
|
1322
|
+
return openBlock(), createElementBlock("div", {
|
1323
|
+
class: normalizeClass(["ui-ColorField", resetClass.value]),
|
1324
|
+
"data-radius": props.radius,
|
1325
|
+
style: normalizeStyle({ "--color-field-border-color": modelValue.value })
|
1326
|
+
}, [
|
1327
|
+
withDirectives(createElementVNode("input", {
|
1328
|
+
id: props.id,
|
1329
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
1330
|
+
class: "ui-ColorFieldInput",
|
1331
|
+
type: "color"
|
1332
|
+
}, null, 8, _hoisted_2$5), [
|
1333
|
+
[vModelText, modelValue.value]
|
1334
|
+
])
|
1335
|
+
], 14, _hoisted_1$e);
|
1336
|
+
};
|
1094
1337
|
}
|
1095
|
-
})
|
1338
|
+
});
|
1339
|
+
const [injectSelectRootContext, provideSelectRootContext] = createContext("ui_SelectRoot");
|
1340
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
1096
1341
|
__name: "SelectRoot",
|
1097
1342
|
props: {
|
1098
1343
|
size: { default: "2" },
|
@@ -1111,21 +1356,30 @@ const _a = /* @__PURE__ */ m({
|
|
1111
1356
|
required: { type: Boolean }
|
1112
1357
|
},
|
1113
1358
|
emits: ["update:modelValue", "update:open"],
|
1114
|
-
setup(
|
1115
|
-
const
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1359
|
+
setup(__props, { emit: __emit }) {
|
1360
|
+
const props = __props;
|
1361
|
+
const emits = __emit;
|
1362
|
+
const { size, color, highContrast } = toRefs(props);
|
1363
|
+
const forwarded = useForwardPropsEmits(props, emits, ["size", "color", "highContrast"]);
|
1364
|
+
provideSelectRootContext({
|
1365
|
+
size,
|
1366
|
+
color,
|
1367
|
+
highContrast
|
1368
|
+
});
|
1369
|
+
return (_ctx, _cache) => {
|
1370
|
+
return openBlock(), createBlock(unref(SelectRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
1371
|
+
default: withCtx(() => [
|
1372
|
+
renderSlot(_ctx.$slots, "default")
|
1373
|
+
]),
|
1374
|
+
_: 3
|
1375
|
+
}, 16);
|
1376
|
+
};
|
1126
1377
|
}
|
1127
|
-
})
|
1128
|
-
|
1378
|
+
});
|
1379
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
1380
|
+
...{
|
1381
|
+
inheritAttrs: false
|
1382
|
+
},
|
1129
1383
|
__name: "SelectContent",
|
1130
1384
|
props: {
|
1131
1385
|
to: {},
|
@@ -1151,66 +1405,81 @@ const _a = /* @__PURE__ */ m({
|
|
1151
1405
|
asChild: { type: Boolean },
|
1152
1406
|
as: {}
|
1153
1407
|
},
|
1154
|
-
setup(
|
1155
|
-
const
|
1156
|
-
|
1157
|
-
|
1408
|
+
setup(__props) {
|
1409
|
+
const props = __props;
|
1410
|
+
const forwarded = useForwardProps(props);
|
1411
|
+
const { forwardRef } = useForwardExpose();
|
1412
|
+
const context = injectSelectRootContext();
|
1413
|
+
const contentClass = computed(() => {
|
1414
|
+
const rv = ["r-size-" + context.size.value, "r-variant-" + props.variant];
|
1415
|
+
if (context.highContrast.value) {
|
1416
|
+
rv.push("r-high-contrast");
|
1417
|
+
}
|
1418
|
+
if (props.position === "popper") {
|
1419
|
+
rv.push("ui-PopperContent");
|
1420
|
+
}
|
1421
|
+
return rv;
|
1158
1422
|
});
|
1159
|
-
return (
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1423
|
+
return (_ctx, _cache) => {
|
1424
|
+
return openBlock(), createBlock(unref(SelectPortal), {
|
1425
|
+
to: props.to
|
1426
|
+
}, {
|
1427
|
+
default: withCtx(() => [
|
1428
|
+
createVNode(unref(SelectContent), mergeProps({ ref: unref(forwardRef) }, {
|
1429
|
+
..._ctx.$attrs,
|
1430
|
+
...unref(forwarded),
|
1431
|
+
to: void 0,
|
1432
|
+
variant: void 0
|
1433
|
+
}, {
|
1434
|
+
class: ["ui-SelectContent", contentClass.value],
|
1435
|
+
"data-accent-color": unref(context).color.value
|
1436
|
+
}), {
|
1437
|
+
default: withCtx(() => [
|
1438
|
+
createVNode(unref(ScrollAreaRoot), {
|
1439
|
+
type: "auto",
|
1440
|
+
class: "ui-ScrollArea"
|
1441
|
+
}, {
|
1442
|
+
default: withCtx(() => [
|
1443
|
+
createVNode(unref(SelectViewport), {
|
1444
|
+
class: "ui-SelectViewport",
|
1445
|
+
"as-child": ""
|
1446
|
+
}, {
|
1447
|
+
default: withCtx(() => [
|
1448
|
+
createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
|
1449
|
+
default: withCtx(() => [
|
1450
|
+
renderSlot(_ctx.$slots, "default")
|
1451
|
+
]),
|
1452
|
+
_: 3
|
1453
|
+
}),
|
1454
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
|
1455
|
+
createVNode(unref(ScrollAreaScrollbar), {
|
1456
|
+
class: "ui-ScrollAreaScrollbar",
|
1457
|
+
"data-size": 1,
|
1458
|
+
orientation: "vertical"
|
1459
|
+
}, {
|
1460
|
+
default: withCtx(() => [
|
1461
|
+
createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
|
1462
|
+
]),
|
1463
|
+
_: 1
|
1464
|
+
})
|
1465
|
+
]),
|
1466
|
+
_: 3,
|
1467
|
+
__: [0]
|
1468
|
+
})
|
1469
|
+
]),
|
1470
|
+
_: 3
|
1471
|
+
})
|
1472
|
+
]),
|
1473
|
+
_: 3
|
1474
|
+
}, 16, ["class", "data-accent-color"])
|
1475
|
+
]),
|
1476
|
+
_: 3
|
1477
|
+
}, 8, ["to"]);
|
1478
|
+
};
|
1212
1479
|
}
|
1213
|
-
})
|
1480
|
+
});
|
1481
|
+
const _hoisted_1$d = { class: "ui-SelectTriggerInner" };
|
1482
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
1214
1483
|
__name: "SelectTrigger",
|
1215
1484
|
props: {
|
1216
1485
|
variant: { default: "surface" },
|
@@ -1221,47 +1490,54 @@ const _a = /* @__PURE__ */ m({
|
|
1221
1490
|
asChild: { type: Boolean },
|
1222
1491
|
as: {}
|
1223
1492
|
},
|
1224
|
-
setup(
|
1225
|
-
const
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1493
|
+
setup(__props) {
|
1494
|
+
const props = __props;
|
1495
|
+
const context = injectSelectRootContext();
|
1496
|
+
const resetClass = computed(() => {
|
1497
|
+
return [`r-variant-${props.variant}`, `r-size-${context.size.value}`];
|
1498
|
+
});
|
1499
|
+
return (_ctx, _cache) => {
|
1500
|
+
return openBlock(), createBlock(unref(SelectTrigger), {
|
1501
|
+
class: normalizeClass(["ui-SelectTrigger", resetClass.value]),
|
1502
|
+
disabled: props.disabled,
|
1503
|
+
"data-accent-color": unref(context).color.value,
|
1504
|
+
"data-radius": props.radius
|
1505
|
+
}, {
|
1506
|
+
default: withCtx(() => [
|
1507
|
+
createElementVNode("span", _hoisted_1$d, [
|
1508
|
+
createVNode(unref(SelectValue), {
|
1509
|
+
placeholder: props.placeholder
|
1510
|
+
}, {
|
1511
|
+
default: withCtx(({ selectedLabel, modelValue }) => [
|
1512
|
+
selectedLabel.length ? renderSlot(_ctx.$slots, "default", {
|
1513
|
+
key: 0,
|
1514
|
+
selectedLabel,
|
1515
|
+
modelValue
|
1516
|
+
}, () => [
|
1517
|
+
createTextVNode(toDisplayString(selectedLabel.join(", ")), 1)
|
1518
|
+
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
1519
|
+
createTextVNode(toDisplayString(props.placeholder), 1)
|
1520
|
+
], 64))
|
1521
|
+
]),
|
1522
|
+
_: 3
|
1523
|
+
}, 8, ["placeholder"])
|
1524
|
+
]),
|
1525
|
+
createVNode(unref(SelectIcon), { "as-child": "" }, {
|
1526
|
+
default: withCtx(() => [
|
1527
|
+
createVNode(unref(Icon), {
|
1528
|
+
class: "ui-SelectIcon",
|
1529
|
+
icon: "radix-icons:chevron-down"
|
1530
|
+
})
|
1247
1531
|
]),
|
1248
|
-
_:
|
1249
|
-
}
|
1532
|
+
_: 1
|
1533
|
+
})
|
1250
1534
|
]),
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
class: "ui-SelectIcon",
|
1255
|
-
icon: "radix-icons:chevron-down"
|
1256
|
-
})
|
1257
|
-
]),
|
1258
|
-
_: 1
|
1259
|
-
})
|
1260
|
-
]),
|
1261
|
-
_: 3
|
1262
|
-
}, 8, ["class", "disabled", "data-accent-color", "data-radius"]));
|
1535
|
+
_: 3
|
1536
|
+
}, 8, ["class", "disabled", "data-accent-color", "data-radius"]);
|
1537
|
+
};
|
1263
1538
|
}
|
1264
|
-
})
|
1539
|
+
});
|
1540
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
1265
1541
|
__name: "SelectItem",
|
1266
1542
|
props: {
|
1267
1543
|
value: {},
|
@@ -1270,55 +1546,70 @@ const _a = /* @__PURE__ */ m({
|
|
1270
1546
|
asChild: { type: Boolean },
|
1271
1547
|
as: {}
|
1272
1548
|
},
|
1273
|
-
setup(
|
1274
|
-
const
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1549
|
+
setup(__props) {
|
1550
|
+
const props = __props;
|
1551
|
+
const forwarded = useForwardProps(props);
|
1552
|
+
useForwardExpose();
|
1553
|
+
return (_ctx, _cache) => {
|
1554
|
+
return openBlock(), createBlock(unref(SelectItem), mergeProps({ class: "ui-SelectItem" }, unref(forwarded)), {
|
1555
|
+
default: withCtx(() => [
|
1556
|
+
createVNode(unref(SelectItemIndicator), { class: "ui-SelectItemIndicator" }, {
|
1557
|
+
default: withCtx(() => [
|
1558
|
+
createVNode(unref(Icon), { icon: "radix-icons:check" })
|
1559
|
+
]),
|
1560
|
+
_: 1
|
1561
|
+
}),
|
1562
|
+
createVNode(unref(SelectItemText), null, {
|
1563
|
+
default: withCtx(() => [
|
1564
|
+
renderSlot(_ctx.$slots, "default")
|
1565
|
+
]),
|
1566
|
+
_: 3
|
1567
|
+
})
|
1568
|
+
]),
|
1569
|
+
_: 3
|
1570
|
+
}, 16);
|
1571
|
+
};
|
1292
1572
|
}
|
1293
|
-
})
|
1573
|
+
});
|
1574
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
1294
1575
|
__name: "SelectLabel",
|
1295
1576
|
props: {
|
1296
1577
|
for: {},
|
1297
1578
|
asChild: { type: Boolean },
|
1298
1579
|
as: {}
|
1299
1580
|
},
|
1300
|
-
setup(
|
1301
|
-
const
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1581
|
+
setup(__props) {
|
1582
|
+
const props = __props;
|
1583
|
+
const forwarded = useForwardProps(props);
|
1584
|
+
useForwardExpose();
|
1585
|
+
return (_ctx, _cache) => {
|
1586
|
+
return openBlock(), createBlock(unref(SelectLabel), mergeProps({ class: "ui-SelectLabel" }, unref(forwarded)), {
|
1587
|
+
default: withCtx(() => [
|
1588
|
+
renderSlot(_ctx.$slots, "default")
|
1589
|
+
]),
|
1590
|
+
_: 3
|
1591
|
+
}, 16);
|
1592
|
+
};
|
1308
1593
|
}
|
1309
|
-
})
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
}
|
1594
|
+
});
|
1595
|
+
const _export_sfc = (sfc, props) => {
|
1596
|
+
const target = sfc.__vccOpts || sfc;
|
1597
|
+
for (const [key, val] of props) {
|
1598
|
+
target[key] = val;
|
1599
|
+
}
|
1600
|
+
return target;
|
1601
|
+
};
|
1602
|
+
const _sfc_main$u = {};
|
1603
|
+
const _hoisted_1$c = {
|
1315
1604
|
class: "ui-SelectSeparator",
|
1316
1605
|
"aria-hidden": "true"
|
1317
1606
|
};
|
1318
|
-
function
|
1319
|
-
return
|
1607
|
+
function _sfc_render(_ctx, _cache) {
|
1608
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c);
|
1320
1609
|
}
|
1321
|
-
const
|
1610
|
+
const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render]]);
|
1611
|
+
const [injectComboboxRootContext, provideComboboxRootContext] = createContext("ui_ComboboxRoot");
|
1612
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
1322
1613
|
__name: "ComboboxRoot",
|
1323
1614
|
props: {
|
1324
1615
|
size: { default: "2" },
|
@@ -1331,7 +1622,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1331
1622
|
ignoreFilter: { type: Boolean },
|
1332
1623
|
modelValue: {},
|
1333
1624
|
defaultValue: {},
|
1334
|
-
multiple: { type: Boolean, default:
|
1625
|
+
multiple: { type: Boolean, default: false },
|
1335
1626
|
dir: {},
|
1336
1627
|
disabled: { type: Boolean },
|
1337
1628
|
highlightOnHover: { type: Boolean },
|
@@ -1342,26 +1633,38 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1342
1633
|
required: { type: Boolean }
|
1343
1634
|
},
|
1344
1635
|
emits: ["update:modelValue", "highlight", "update:open"],
|
1345
|
-
setup(
|
1346
|
-
const
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1636
|
+
setup(__props, { emit: __emit }) {
|
1637
|
+
const props = __props;
|
1638
|
+
const emits = __emit;
|
1639
|
+
const { size, color, highContrast } = toRefs(props);
|
1640
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size", "color", "highContrast"]);
|
1641
|
+
provideComboboxRootContext({
|
1642
|
+
size,
|
1643
|
+
color,
|
1644
|
+
highContrast
|
1645
|
+
});
|
1646
|
+
return (_ctx, _cache) => {
|
1647
|
+
return openBlock(), createBlock(unref(ComboboxRoot), mergeProps({
|
1648
|
+
class: ["ui-ComboboxRoot", unref(resetClass)]
|
1649
|
+
}, unref(forwarded)), {
|
1650
|
+
default: withCtx(() => [
|
1651
|
+
renderSlot(_ctx.$slots, "default")
|
1652
|
+
]),
|
1653
|
+
_: 3
|
1654
|
+
}, 16, ["class"]);
|
1655
|
+
};
|
1656
|
+
}
|
1657
|
+
});
|
1658
|
+
const _hoisted_1$b = {
|
1361
1659
|
key: 0,
|
1362
1660
|
class: "ui-ComboboxValues"
|
1363
|
-
}
|
1364
|
-
|
1661
|
+
};
|
1662
|
+
const _hoisted_2$4 = ["aria-current", "value"];
|
1663
|
+
const _hoisted_3$2 = ["onClick"];
|
1664
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
1665
|
+
...{
|
1666
|
+
inheritAttrs: false
|
1667
|
+
},
|
1365
1668
|
__name: "ComboboxInput",
|
1366
1669
|
props: {
|
1367
1670
|
variant: { default: "surface" },
|
@@ -1375,70 +1678,104 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1375
1678
|
as: {}
|
1376
1679
|
},
|
1377
1680
|
emits: ["update:modelValue"],
|
1378
|
-
setup(
|
1379
|
-
const
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1681
|
+
setup(__props, { emit: __emit }) {
|
1682
|
+
const context = injectComboboxRootContext$1();
|
1683
|
+
const props = __props;
|
1684
|
+
const emits = __emit;
|
1685
|
+
const forwarded = useForwardPropsEmits$1(props, emits);
|
1686
|
+
const activeIndex = ref(-1);
|
1687
|
+
const values = computed(() => {
|
1688
|
+
return context.modelValue.value;
|
1689
|
+
});
|
1690
|
+
const displayValue = (value) => {
|
1691
|
+
if (typeof value === "object") {
|
1692
|
+
return JSON.stringify(value);
|
1693
|
+
} else {
|
1694
|
+
return value.toString();
|
1695
|
+
}
|
1696
|
+
};
|
1697
|
+
const onDeleteIndex = (index) => {
|
1698
|
+
activeIndex.value = index;
|
1699
|
+
context.modelValue.value.splice(index, 1);
|
1700
|
+
activeIndex.value = -1;
|
1701
|
+
};
|
1702
|
+
const onInputKeydown = (event) => {
|
1703
|
+
const value = event.target.value;
|
1704
|
+
if (!value && (event.key === "Delete" || event.key === "Backspace")) {
|
1705
|
+
if (activeIndex.value !== -1) {
|
1706
|
+
onDeleteIndex(activeIndex.value);
|
1707
|
+
} else {
|
1708
|
+
activeIndex.value = values.value.length - 1;
|
1709
|
+
setTimeout(() => {
|
1710
|
+
activeIndex.value = -1;
|
1711
|
+
}, 800);
|
1712
|
+
}
|
1713
|
+
}
|
1714
|
+
};
|
1715
|
+
watch(values, () => {
|
1716
|
+
context.filterState.search = "";
|
1717
|
+
}, { deep: true });
|
1718
|
+
return (_ctx, _cache) => {
|
1719
|
+
return openBlock(), createBlock(unref(ComboboxAnchor), {
|
1720
|
+
class: normalizeClass(["ui-ComboboxField", `r-variant-${_ctx.variant}`]),
|
1721
|
+
"data-radius": _ctx.radius,
|
1722
|
+
"data-multiple": unref(context).multiple.value || void 0
|
1723
|
+
}, {
|
1724
|
+
default: withCtx(() => [
|
1725
|
+
unref(context).multiple.value ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
1726
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (item, index) => {
|
1727
|
+
return openBlock(), createElementBlock("div", {
|
1728
|
+
key: displayValue(item),
|
1729
|
+
class: "ui-ComboboxValuesItem",
|
1730
|
+
"aria-current": index === activeIndex.value,
|
1731
|
+
value: item
|
1732
|
+
}, [
|
1733
|
+
renderSlot(_ctx.$slots, "item", { value: item }, () => [
|
1734
|
+
createElementVNode("span", null, toDisplayString(displayValue(item)), 1)
|
1735
|
+
]),
|
1736
|
+
createElementVNode("button", {
|
1737
|
+
type: "button",
|
1738
|
+
tabindex: "-1",
|
1739
|
+
onClick: withModifiers(($event) => onDeleteIndex(index), ["prevent"])
|
1740
|
+
}, [
|
1741
|
+
createVNode(unref(Icon), { icon: "lucide:x" })
|
1742
|
+
], 8, _hoisted_3$2)
|
1743
|
+
], 8, _hoisted_2$4);
|
1744
|
+
}), 128)),
|
1745
|
+
createVNode(unref(ComboboxInput), mergeProps({
|
1746
|
+
..._ctx.$attrs,
|
1747
|
+
...unref(forwarded),
|
1748
|
+
variant: void 0,
|
1749
|
+
radius: void 0
|
1750
|
+
}, {
|
1751
|
+
class: "ui-ComboboxInput",
|
1752
|
+
onKeydown: onInputKeydown
|
1753
|
+
}), null, 16)
|
1754
|
+
])) : (openBlock(), createBlock(unref(ComboboxInput), mergeProps({
|
1755
|
+
key: 1,
|
1756
|
+
class: "ui-ComboboxInput"
|
1757
|
+
}, {
|
1758
|
+
..._ctx.$attrs,
|
1759
|
+
...unref(forwarded),
|
1415
1760
|
variant: void 0,
|
1416
1761
|
radius: void 0
|
1417
|
-
},
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
radius: void 0
|
1429
|
-
}), null, 16)),
|
1430
|
-
p(a(St), { class: "ui-ComboboxTrigger" }, {
|
1431
|
-
default: c(() => [
|
1432
|
-
p(a(k), { icon: "radix-icons:chevron-down" })
|
1433
|
-
]),
|
1434
|
-
_: 1
|
1435
|
-
})
|
1436
|
-
]),
|
1437
|
-
_: 3
|
1438
|
-
}, 8, ["class", "data-radius", "data-multiple"]));
|
1762
|
+
}), null, 16)),
|
1763
|
+
createVNode(unref(ComboboxTrigger), { class: "ui-ComboboxTrigger" }, {
|
1764
|
+
default: withCtx(() => [
|
1765
|
+
createVNode(unref(Icon), { icon: "radix-icons:chevron-down" })
|
1766
|
+
]),
|
1767
|
+
_: 1
|
1768
|
+
})
|
1769
|
+
]),
|
1770
|
+
_: 3
|
1771
|
+
}, 8, ["class", "data-radius", "data-multiple"]);
|
1772
|
+
};
|
1439
1773
|
}
|
1440
|
-
})
|
1441
|
-
|
1774
|
+
});
|
1775
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
1776
|
+
...{
|
1777
|
+
inheritAttrs: false
|
1778
|
+
},
|
1442
1779
|
__name: "ComboboxContent",
|
1443
1780
|
props: {
|
1444
1781
|
to: {},
|
@@ -1466,67 +1803,79 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1466
1803
|
disableOutsidePointerEvents: { type: Boolean }
|
1467
1804
|
},
|
1468
1805
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
1469
|
-
setup(
|
1470
|
-
const { forwardRef
|
1471
|
-
|
1472
|
-
|
1806
|
+
setup(__props, { emit: __emit }) {
|
1807
|
+
const { forwardRef } = useForwardExpose();
|
1808
|
+
const props = __props;
|
1809
|
+
const emits = __emit;
|
1810
|
+
const forwarded = useForwardPropsEmits$1(props, emits);
|
1811
|
+
const context = injectComboboxRootContext();
|
1812
|
+
const contentClass = computed(() => {
|
1813
|
+
const rv = ["r-size-" + context.size.value, "r-variant-" + props.variant];
|
1814
|
+
if (context.highContrast.value) {
|
1815
|
+
rv.push("r-high-contrast");
|
1816
|
+
}
|
1817
|
+
return rv;
|
1473
1818
|
});
|
1474
|
-
return (
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1819
|
+
return (_ctx, _cache) => {
|
1820
|
+
return openBlock(), createBlock(unref(ComboboxPortal), {
|
1821
|
+
to: props.to
|
1822
|
+
}, {
|
1823
|
+
default: withCtx(() => [
|
1824
|
+
createVNode(unref(ComboboxContent), mergeProps({ ref: unref(forwardRef) }, {
|
1825
|
+
..._ctx.$attrs,
|
1826
|
+
...unref(forwarded),
|
1827
|
+
position: "popper",
|
1828
|
+
to: void 0,
|
1829
|
+
variant: void 0
|
1830
|
+
}, {
|
1831
|
+
class: ["ui-ComboboxContent", contentClass.value],
|
1832
|
+
"data-accent-color": unref(context).color.value
|
1833
|
+
}), {
|
1834
|
+
default: withCtx(() => [
|
1835
|
+
createVNode(unref(ScrollAreaRoot), {
|
1836
|
+
type: "auto",
|
1837
|
+
class: "ui-ScrollArea"
|
1838
|
+
}, {
|
1839
|
+
default: withCtx(() => [
|
1840
|
+
createVNode(unref(ComboboxViewport), {
|
1841
|
+
class: "ui-ComboboxViewport",
|
1842
|
+
"as-child": ""
|
1843
|
+
}, {
|
1844
|
+
default: withCtx(() => [
|
1845
|
+
createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
|
1846
|
+
default: withCtx(() => [
|
1847
|
+
renderSlot(_ctx.$slots, "default")
|
1848
|
+
]),
|
1849
|
+
_: 3
|
1850
|
+
})
|
1851
|
+
]),
|
1852
|
+
_: 3
|
1853
|
+
}),
|
1854
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
|
1855
|
+
createVNode(unref(ScrollAreaScrollbar), {
|
1856
|
+
class: "ui-ScrollAreaScrollbar",
|
1857
|
+
"data-size": 1,
|
1858
|
+
orientation: "vertical"
|
1859
|
+
}, {
|
1860
|
+
default: withCtx(() => [
|
1861
|
+
createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
|
1862
|
+
]),
|
1863
|
+
_: 1
|
1864
|
+
})
|
1865
|
+
]),
|
1866
|
+
_: 3,
|
1867
|
+
__: [0]
|
1868
|
+
})
|
1869
|
+
]),
|
1870
|
+
_: 3
|
1871
|
+
}, 16, ["class", "data-accent-color"])
|
1872
|
+
]),
|
1873
|
+
_: 3
|
1874
|
+
}, 8, ["to"]);
|
1875
|
+
};
|
1528
1876
|
}
|
1529
|
-
})
|
1877
|
+
});
|
1878
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
1530
1879
|
__name: "ComboboxItem",
|
1531
1880
|
props: {
|
1532
1881
|
textValue: {},
|
@@ -1535,67 +1884,91 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1535
1884
|
asChild: { type: Boolean },
|
1536
1885
|
as: {}
|
1537
1886
|
},
|
1538
|
-
setup(
|
1539
|
-
const
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1887
|
+
setup(__props) {
|
1888
|
+
const props = __props;
|
1889
|
+
const forwarded = useForwardProps(props);
|
1890
|
+
return (_ctx, _cache) => {
|
1891
|
+
return openBlock(), createBlock(unref(ComboboxItem), mergeProps({ class: "ui-ComboboxItem" }, unref(forwarded)), {
|
1892
|
+
default: withCtx(() => [
|
1893
|
+
createVNode(unref(ComboboxItemIndicator), { class: "ui-ComboboxItemIndicator" }, {
|
1894
|
+
default: withCtx(() => [
|
1895
|
+
createVNode(unref(Icon), { icon: "radix-icons:check" })
|
1896
|
+
]),
|
1897
|
+
_: 1
|
1898
|
+
}),
|
1899
|
+
renderSlot(_ctx.$slots, "default")
|
1900
|
+
]),
|
1901
|
+
_: 3
|
1902
|
+
}, 16);
|
1903
|
+
};
|
1552
1904
|
}
|
1553
|
-
})
|
1905
|
+
});
|
1906
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
1554
1907
|
__name: "ComboboxLabel",
|
1555
1908
|
props: {
|
1556
1909
|
for: {},
|
1557
1910
|
asChild: { type: Boolean },
|
1558
1911
|
as: {}
|
1559
1912
|
},
|
1560
|
-
setup(
|
1561
|
-
const
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1913
|
+
setup(__props) {
|
1914
|
+
const props = __props;
|
1915
|
+
const forwarded = useForwardProps(props);
|
1916
|
+
useForwardExpose();
|
1917
|
+
return (_ctx, _cache) => {
|
1918
|
+
return openBlock(), createBlock(unref(ComboboxLabel), mergeProps({ class: "ui-ComboboxLabel" }, unref(forwarded)), {
|
1919
|
+
default: withCtx(() => [
|
1920
|
+
renderSlot(_ctx.$slots, "default")
|
1921
|
+
]),
|
1922
|
+
_: 3
|
1923
|
+
}, 16);
|
1924
|
+
};
|
1568
1925
|
}
|
1569
|
-
})
|
1926
|
+
});
|
1927
|
+
const _hoisted_1$a = ["data-accent-color"];
|
1928
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
1570
1929
|
__name: "Radio",
|
1571
|
-
props: /* @__PURE__ */
|
1930
|
+
props: /* @__PURE__ */ mergeModels({
|
1572
1931
|
color: {},
|
1573
1932
|
size: { default: "2" },
|
1574
1933
|
variant: { default: "surface" },
|
1575
1934
|
highContrast: { type: Boolean }
|
1576
1935
|
}, {
|
1577
|
-
modelValue: {
|
1936
|
+
"modelValue": {
|
1578
1937
|
default: ""
|
1579
1938
|
},
|
1580
|
-
modelModifiers: {}
|
1939
|
+
"modelModifiers": {}
|
1581
1940
|
}),
|
1582
1941
|
emits: ["update:modelValue"],
|
1583
|
-
setup(
|
1584
|
-
const
|
1585
|
-
|
1586
|
-
|
1942
|
+
setup(__props) {
|
1943
|
+
const props = __props;
|
1944
|
+
const [modelValue, modifiers] = useModel(__props, "modelValue", {
|
1945
|
+
set(value) {
|
1946
|
+
if (modifiers.number) {
|
1947
|
+
return Number(value);
|
1948
|
+
}
|
1949
|
+
if (modifiers.trim) {
|
1950
|
+
return value.trim();
|
1951
|
+
}
|
1952
|
+
return value;
|
1587
1953
|
}
|
1588
|
-
})
|
1589
|
-
|
1590
|
-
"
|
1591
|
-
|
1592
|
-
|
1593
|
-
"
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1954
|
+
});
|
1955
|
+
const resetClass = computed(() => {
|
1956
|
+
return extractClass(props, ["size", "variant", "highContrast"]);
|
1957
|
+
});
|
1958
|
+
return (_ctx, _cache) => {
|
1959
|
+
return withDirectives((openBlock(), createElementBlock("input", {
|
1960
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
1961
|
+
class: normalizeClass(["ui-Radio", resetClass.value]),
|
1962
|
+
type: "radio",
|
1963
|
+
"data-accent-color": props.color
|
1964
|
+
}, null, 10, _hoisted_1$a)), [
|
1965
|
+
[vModelRadio, unref(modelValue)]
|
1966
|
+
]);
|
1967
|
+
};
|
1597
1968
|
}
|
1598
|
-
})
|
1969
|
+
});
|
1970
|
+
const [injectRadioGroupRootContext, provideRadioGroupRootContext] = createContext("ui_RadioGroupRoot");
|
1971
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
1599
1972
|
__name: "RadioGroupRoot",
|
1600
1973
|
props: {
|
1601
1974
|
color: {},
|
@@ -1614,16 +1987,24 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1614
1987
|
required: { type: Boolean }
|
1615
1988
|
},
|
1616
1989
|
emits: ["update:modelValue"],
|
1617
|
-
setup(
|
1618
|
-
const
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1990
|
+
setup(__props, { emit: __emit }) {
|
1991
|
+
const emits = __emit;
|
1992
|
+
const props = __props;
|
1993
|
+
const forwarded = useForwardPropsEmits(props, emits, ["color", "size", "variant", "highContrast"]);
|
1994
|
+
const { size, variant, color, highContrast } = toRefs(props);
|
1995
|
+
provideRadioGroupRootContext({ size, variant, color, highContrast });
|
1996
|
+
return (_ctx, _cache) => {
|
1997
|
+
return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps({ class: "ui-RadioGroupRoot" }, unref(forwarded)), {
|
1998
|
+
default: withCtx(() => [
|
1999
|
+
renderSlot(_ctx.$slots, "default")
|
2000
|
+
]),
|
2001
|
+
_: 3
|
2002
|
+
}, 16);
|
2003
|
+
};
|
1625
2004
|
}
|
1626
|
-
})
|
2005
|
+
});
|
2006
|
+
const _hoisted_1$9 = { class: "ui-RadioGroupItem" };
|
2007
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
1627
2008
|
__name: "RadioGroupItem",
|
1628
2009
|
props: {
|
1629
2010
|
id: {},
|
@@ -1634,27 +2015,34 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1634
2015
|
name: {},
|
1635
2016
|
required: { type: Boolean }
|
1636
2017
|
},
|
1637
|
-
setup(
|
1638
|
-
const
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
2018
|
+
setup(__props) {
|
2019
|
+
const props = __props;
|
2020
|
+
const forwarded = useForwardProps(props);
|
2021
|
+
const rootContext = injectRadioGroupRootContext();
|
2022
|
+
const resetClass = computed(() => {
|
2023
|
+
var _a;
|
2024
|
+
const rv = [
|
2025
|
+
`r-size-${rootContext.size.value}`,
|
2026
|
+
`r-variant-${rootContext.variant.value}`
|
1643
2027
|
];
|
1644
|
-
|
2028
|
+
if ((_a = rootContext.highContrast) == null ? void 0 : _a.value) {
|
2029
|
+
rv.push("r-high-contrast");
|
2030
|
+
}
|
2031
|
+
return rv;
|
1645
2032
|
});
|
1646
|
-
return (
|
1647
|
-
var
|
1648
|
-
return
|
1649
|
-
|
1650
|
-
class: ["ui-Radio",
|
1651
|
-
"data-accent-color": (
|
1652
|
-
},
|
1653
|
-
|
2033
|
+
return (_ctx, _cache) => {
|
2034
|
+
var _a;
|
2035
|
+
return openBlock(), createElementBlock("label", _hoisted_1$9, [
|
2036
|
+
createVNode(unref(RadioGroupItem), mergeProps({
|
2037
|
+
class: ["ui-Radio", resetClass.value],
|
2038
|
+
"data-accent-color": (_a = unref(rootContext).color) == null ? void 0 : _a.value
|
2039
|
+
}, unref(forwarded)), null, 16, ["class", "data-accent-color"]),
|
2040
|
+
renderSlot(_ctx.$slots, "default")
|
1654
2041
|
]);
|
1655
2042
|
};
|
1656
2043
|
}
|
1657
|
-
})
|
2044
|
+
});
|
2045
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
1658
2046
|
__name: "RadioCardsItem",
|
1659
2047
|
props: {
|
1660
2048
|
id: {},
|
@@ -1665,25 +2053,26 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1665
2053
|
name: {},
|
1666
2054
|
required: { type: Boolean }
|
1667
2055
|
},
|
1668
|
-
setup(
|
1669
|
-
const
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
2056
|
+
setup(__props) {
|
2057
|
+
const props = __props;
|
2058
|
+
const forwarded = useForwardProps(props);
|
2059
|
+
useForwardExpose();
|
2060
|
+
const rootContext = injectRadioGroupRootContext();
|
2061
|
+
return (_ctx, _cache) => {
|
2062
|
+
var _a, _b;
|
2063
|
+
return openBlock(), createBlock(unref(RadioGroupItem), mergeProps({
|
1675
2064
|
class: "ui-RadioCardsItem",
|
1676
|
-
"data-accent-color": (
|
1677
|
-
"data-size":
|
1678
|
-
"data-variant":
|
1679
|
-
"data-high-contrast": (
|
1680
|
-
}, { ...
|
1681
|
-
default:
|
1682
|
-
|
1683
|
-
"as-child":
|
2065
|
+
"data-accent-color": (_a = unref(rootContext).color) == null ? void 0 : _a.value,
|
2066
|
+
"data-size": unref(rootContext).size.value,
|
2067
|
+
"data-variant": unref(rootContext).variant.value,
|
2068
|
+
"data-high-contrast": (_b = unref(rootContext).highContrast) == null ? void 0 : _b.value
|
2069
|
+
}, { ...unref(forwarded), asChild: false }), {
|
2070
|
+
default: withCtx(() => [
|
2071
|
+
createVNode(_sfc_main$W, {
|
2072
|
+
"as-child": unref(forwarded).asChild
|
1684
2073
|
}, {
|
1685
|
-
default:
|
1686
|
-
|
2074
|
+
default: withCtx(() => [
|
2075
|
+
renderSlot(_ctx.$slots, "default")
|
1687
2076
|
]),
|
1688
2077
|
_: 3
|
1689
2078
|
}, 8, ["as-child"])
|
@@ -1692,7 +2081,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1692
2081
|
}, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
|
1693
2082
|
};
|
1694
2083
|
}
|
1695
|
-
})
|
2084
|
+
});
|
2085
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
1696
2086
|
__name: "RadioTabsList",
|
1697
2087
|
props: {
|
1698
2088
|
size: { default: "2" },
|
@@ -1708,38 +2098,51 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1708
2098
|
required: { type: Boolean }
|
1709
2099
|
},
|
1710
2100
|
emits: ["update:modelValue"],
|
1711
|
-
setup(
|
1712
|
-
const
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
2101
|
+
setup(__props, { emit: __emit }) {
|
2102
|
+
const emits = __emit;
|
2103
|
+
const props = __props;
|
2104
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size"]);
|
2105
|
+
return (_ctx, _cache) => {
|
2106
|
+
return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps(unref(forwarded), {
|
2107
|
+
class: ["ui-RadioTabsList", unref(resetClass)]
|
2108
|
+
}), {
|
2109
|
+
default: withCtx(() => [
|
2110
|
+
renderSlot(_ctx.$slots, "default")
|
2111
|
+
]),
|
2112
|
+
_: 3
|
2113
|
+
}, 16, ["class"]);
|
2114
|
+
};
|
1721
2115
|
}
|
1722
|
-
})
|
2116
|
+
});
|
2117
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
1723
2118
|
__name: "TabsList",
|
1724
2119
|
props: {
|
1725
2120
|
size: { default: "2" },
|
1726
2121
|
color: {},
|
1727
2122
|
highContrast: { type: Boolean }
|
1728
2123
|
},
|
1729
|
-
setup(
|
1730
|
-
const
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
2124
|
+
setup(__props) {
|
2125
|
+
const props = __props;
|
2126
|
+
const resetClass = computed(() => {
|
2127
|
+
return extractClass(props, ["size", "highContrast"]);
|
2128
|
+
});
|
2129
|
+
return (_ctx, _cache) => {
|
2130
|
+
return openBlock(), createBlock(unref(TabsList), {
|
2131
|
+
class: normalizeClass(["ui-TabList", resetClass.value]),
|
2132
|
+
"data-accent-color": props.color
|
2133
|
+
}, {
|
2134
|
+
default: withCtx(() => [
|
2135
|
+
createVNode(unref(TabsIndicator), { class: "ui-TabsIndicator" }),
|
2136
|
+
renderSlot(_ctx.$slots, "default")
|
2137
|
+
]),
|
2138
|
+
_: 3
|
2139
|
+
}, 8, ["class", "data-accent-color"]);
|
2140
|
+
};
|
1741
2141
|
}
|
1742
|
-
})
|
2142
|
+
});
|
2143
|
+
const _hoisted_1$8 = { class: "ui-TabTriggerInner" };
|
2144
|
+
const _hoisted_2$3 = { class: "ui-TabTriggerInnerHidden" };
|
2145
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
1743
2146
|
__name: "TabsTrigger",
|
1744
2147
|
props: {
|
1745
2148
|
value: {},
|
@@ -1747,21 +2150,25 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1747
2150
|
asChild: { type: Boolean },
|
1748
2151
|
as: {}
|
1749
2152
|
},
|
1750
|
-
setup(
|
1751
|
-
const
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
2153
|
+
setup(__props) {
|
2154
|
+
const props = __props;
|
2155
|
+
const forwarded = useForwardProps(props);
|
2156
|
+
return (_ctx, _cache) => {
|
2157
|
+
return openBlock(), createBlock(unref(TabsTrigger), mergeProps(unref(forwarded), { class: "ui-TabTrigger" }), {
|
2158
|
+
default: withCtx(() => [
|
2159
|
+
createElementVNode("span", _hoisted_1$8, [
|
2160
|
+
renderSlot(_ctx.$slots, "default")
|
2161
|
+
]),
|
2162
|
+
createElementVNode("span", _hoisted_2$3, [
|
2163
|
+
renderSlot(_ctx.$slots, "default")
|
2164
|
+
])
|
1756
2165
|
]),
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
]),
|
1761
|
-
_: 3
|
1762
|
-
}, 16));
|
2166
|
+
_: 3
|
2167
|
+
}, 16);
|
2168
|
+
};
|
1763
2169
|
}
|
1764
|
-
})
|
2170
|
+
});
|
2171
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
1765
2172
|
__name: "AccordionRoot",
|
1766
2173
|
props: {
|
1767
2174
|
size: { default: "1" },
|
@@ -1777,18 +2184,23 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1777
2184
|
defaultValue: {}
|
1778
2185
|
},
|
1779
2186
|
emits: ["update:modelValue"],
|
1780
|
-
setup(
|
1781
|
-
const
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
2187
|
+
setup(__props, { emit: __emit }) {
|
2188
|
+
const props = __props;
|
2189
|
+
const emits = __emit;
|
2190
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size"]);
|
2191
|
+
return (_ctx, _cache) => {
|
2192
|
+
return openBlock(), createBlock(unref(AccordionRoot), mergeProps(unref(forwarded), {
|
2193
|
+
class: ["ui-AccordionRoot", unref(resetClass)]
|
2194
|
+
}), {
|
2195
|
+
default: withCtx(() => [
|
2196
|
+
renderSlot(_ctx.$slots, "default")
|
2197
|
+
]),
|
2198
|
+
_: 3
|
2199
|
+
}, 16, ["class"]);
|
2200
|
+
};
|
1790
2201
|
}
|
1791
|
-
})
|
2202
|
+
});
|
2203
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
1792
2204
|
__name: "AccordionItem",
|
1793
2205
|
props: {
|
1794
2206
|
disabled: { type: Boolean },
|
@@ -1797,111 +2209,139 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1797
2209
|
asChild: { type: Boolean },
|
1798
2210
|
as: {}
|
1799
2211
|
},
|
1800
|
-
setup(
|
1801
|
-
const
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
2212
|
+
setup(__props) {
|
2213
|
+
const props = __props;
|
2214
|
+
const forwardedProps = useForwardProps(props);
|
2215
|
+
return (_ctx, _cache) => {
|
2216
|
+
return openBlock(), createBlock(unref(AccordionItem), mergeProps(unref(forwardedProps), { class: "ui-AccordionItem" }), {
|
2217
|
+
default: withCtx(() => [
|
2218
|
+
renderSlot(_ctx.$slots, "default")
|
2219
|
+
]),
|
2220
|
+
_: 3
|
2221
|
+
}, 16);
|
2222
|
+
};
|
1808
2223
|
}
|
1809
|
-
})
|
1810
|
-
|
2224
|
+
});
|
2225
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
2226
|
+
...{
|
2227
|
+
inheritAttrs: false
|
2228
|
+
},
|
1811
2229
|
__name: "AccordionContent",
|
1812
2230
|
props: {
|
1813
2231
|
forceMount: { type: Boolean },
|
1814
2232
|
asChild: { type: Boolean },
|
1815
2233
|
as: {}
|
1816
2234
|
},
|
1817
|
-
setup(
|
1818
|
-
const
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
2235
|
+
setup(__props) {
|
2236
|
+
const props = __props;
|
2237
|
+
const forwardedProps = useForwardProps(props);
|
2238
|
+
return (_ctx, _cache) => {
|
2239
|
+
return openBlock(), createBlock(unref(AccordionContent), mergeProps(unref(forwardedProps), { class: "ui-AccordionContent" }), {
|
2240
|
+
default: withCtx(() => [
|
2241
|
+
createElementVNode("div", mergeProps({ class: "ui-AccordionContentInner" }, _ctx.$attrs), [
|
2242
|
+
renderSlot(_ctx.$slots, "default")
|
2243
|
+
], 16)
|
2244
|
+
]),
|
2245
|
+
_: 3
|
2246
|
+
}, 16);
|
2247
|
+
};
|
1827
2248
|
}
|
1828
|
-
})
|
2249
|
+
});
|
2250
|
+
const _hoisted_1$7 = ["data-accent-color"];
|
2251
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
1829
2252
|
__name: "PlusMinusIcon",
|
1830
2253
|
props: {
|
1831
2254
|
color: { default: void 0 },
|
1832
2255
|
size: { default: "1" }
|
1833
2256
|
},
|
1834
|
-
setup(
|
1835
|
-
const
|
1836
|
-
return (
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
2257
|
+
setup(__props) {
|
2258
|
+
const props = __props;
|
2259
|
+
return (_ctx, _cache) => {
|
2260
|
+
return openBlock(), createElementBlock("div", {
|
2261
|
+
class: normalizeClass(["ui-PlusMinusIcon", `r-size-${props.size}`]),
|
2262
|
+
"data-accent-color": props.color
|
2263
|
+
}, _cache[0] || (_cache[0] = [
|
2264
|
+
createElementVNode("div", { class: "ui-PlusMinusIcon-1" }, null, -1),
|
2265
|
+
createElementVNode("div", { class: "ui-PlusMinusIcon-2" }, null, -1)
|
2266
|
+
]), 10, _hoisted_1$7);
|
2267
|
+
};
|
1843
2268
|
}
|
1844
|
-
})
|
2269
|
+
});
|
2270
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
1845
2271
|
__name: "ChevronIcon",
|
1846
2272
|
props: {
|
1847
2273
|
arrowTransform: { default: "right-down" }
|
1848
2274
|
},
|
1849
|
-
setup(
|
1850
|
-
return (
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
2275
|
+
setup(__props) {
|
2276
|
+
return (_ctx, _cache) => {
|
2277
|
+
return openBlock(), createBlock(unref(Icon), {
|
2278
|
+
class: "ui-ChevronIcon",
|
2279
|
+
icon: "lucide:chevron-right",
|
2280
|
+
"data-arrow-transform": _ctx.arrowTransform
|
2281
|
+
}, null, 8, ["data-arrow-transform"]);
|
2282
|
+
};
|
1855
2283
|
}
|
1856
|
-
})
|
2284
|
+
});
|
2285
|
+
const _hoisted_1$6 = { class: "ui-AccordionTriggerText" };
|
2286
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
1857
2287
|
__name: "AccordionTrigger",
|
1858
2288
|
props: {
|
1859
2289
|
indicator: { default: "chevron" },
|
1860
2290
|
asChild: { type: Boolean },
|
1861
2291
|
as: {}
|
1862
2292
|
},
|
1863
|
-
setup(
|
1864
|
-
const
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
2293
|
+
setup(__props) {
|
2294
|
+
const props = __props;
|
2295
|
+
const [forwarded, resetClass] = extractForwardProps(props, ["size"]);
|
2296
|
+
return (_ctx, _cache) => {
|
2297
|
+
return openBlock(), createBlock(unref(AccordionTrigger), mergeProps({
|
2298
|
+
class: ["ui-AccordionTrigger", unref(resetClass)]
|
2299
|
+
}, unref(forwarded)), {
|
2300
|
+
default: withCtx(() => [
|
2301
|
+
createElementVNode("div", _hoisted_1$6, [
|
2302
|
+
renderSlot(_ctx.$slots, "default")
|
2303
|
+
]),
|
2304
|
+
props.indicator === "plus-minus" ? (openBlock(), createBlock(_sfc_main$e, {
|
2305
|
+
key: 0,
|
2306
|
+
class: "ui-AccordionTriggerIcon"
|
2307
|
+
})) : props.indicator === "chevron" ? (openBlock(), createBlock(_sfc_main$d, {
|
2308
|
+
key: 1,
|
2309
|
+
"arrow-transform": "down-up"
|
2310
|
+
})) : createCommentVNode("", true)
|
1871
2311
|
]),
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
})) : e.indicator === "chevron" ? (r(), d(Lo, {
|
1876
|
-
key: 1,
|
1877
|
-
"arrow-transform": "down-up"
|
1878
|
-
})) : z("", !0)
|
1879
|
-
]),
|
1880
|
-
_: 3
|
1881
|
-
}, 16, ["class"]));
|
2312
|
+
_: 3
|
2313
|
+
}, 16, ["class"]);
|
2314
|
+
};
|
1882
2315
|
}
|
1883
|
-
})
|
1884
|
-
|
2316
|
+
});
|
2317
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
2318
|
+
...{
|
2319
|
+
inheritAttrs: false
|
2320
|
+
},
|
1885
2321
|
__name: "CollapsibleContent",
|
1886
2322
|
props: {
|
1887
2323
|
forceMount: { type: Boolean },
|
1888
2324
|
asChild: { type: Boolean },
|
1889
2325
|
as: {}
|
1890
2326
|
},
|
1891
|
-
setup(
|
1892
|
-
const
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
2327
|
+
setup(__props) {
|
2328
|
+
const props = __props;
|
2329
|
+
const forwardedProps = useForwardProps(props);
|
2330
|
+
return (_ctx, _cache) => {
|
2331
|
+
return openBlock(), createBlock(unref(CollapsibleContent), mergeProps(unref(forwardedProps), { class: "ui-CollapsibleContent" }), {
|
2332
|
+
default: withCtx(() => [
|
2333
|
+
createElementVNode("div", mergeProps({ class: "ui-CollapsibleContentInner" }, _ctx.$attrs), [
|
2334
|
+
renderSlot(_ctx.$slots, "default")
|
2335
|
+
], 16)
|
2336
|
+
]),
|
2337
|
+
_: 3
|
2338
|
+
}, 16);
|
2339
|
+
};
|
1901
2340
|
}
|
1902
|
-
})
|
2341
|
+
});
|
2342
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
1903
2343
|
__name: "Pagination",
|
1904
|
-
props: /* @__PURE__ */
|
2344
|
+
props: /* @__PURE__ */ mergeModels({
|
1905
2345
|
total: {},
|
1906
2346
|
perpage: { default: 10 },
|
1907
2347
|
edge: { default: 2 },
|
@@ -1914,163 +2354,195 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
1914
2354
|
asChild: { type: Boolean },
|
1915
2355
|
as: {}
|
1916
2356
|
}, {
|
1917
|
-
page: { required:
|
1918
|
-
pageModifiers: {}
|
2357
|
+
"page": { required: true },
|
2358
|
+
"pageModifiers": {}
|
1919
2359
|
}),
|
1920
2360
|
emits: ["update:page"],
|
1921
|
-
setup(
|
1922
|
-
const
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
disabled: e.disabled
|
1929
|
-
})), n = C(() => {
|
1930
|
-
const v = Math.ceil(e.total / e.perpage), h = t.value > 1 ? t.value - 1 : null, f = t.value < v ? t.value + 1 : null, B = 5 + e.edge * 2, A = v > B && t.value > e.edge + 3, F = v > B && t.value + e.edge + 2 < v, E = [];
|
1931
|
-
let K = 2, J = v - 1;
|
1932
|
-
A && !F ? K = Math.max(4, v - 2 * e.edge - 2) : !A && F ? J = Math.min(2 * e.edge + 3, v - 1) : A && F && (K = t.value - e.edge, J = t.value + e.edge);
|
1933
|
-
for (let X = K; X <= J; X++)
|
1934
|
-
E.push(X);
|
2361
|
+
setup(__props) {
|
2362
|
+
const props = __props;
|
2363
|
+
const page = useModel(__props, "page");
|
2364
|
+
const resetClass = computed(() => {
|
2365
|
+
return extractClass(props, ["size", "variant"]);
|
2366
|
+
});
|
2367
|
+
const buttonProps = computed(() => {
|
1935
2368
|
return {
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
2369
|
+
color: props.color,
|
2370
|
+
radius: props.radius,
|
2371
|
+
variant: props.variant,
|
2372
|
+
size: props.size,
|
2373
|
+
highContrast: props.highContrast,
|
2374
|
+
disabled: props.disabled
|
1942
2375
|
};
|
1943
|
-
})
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
_
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2376
|
+
});
|
2377
|
+
const pagination = computed(() => {
|
2378
|
+
const totalPages = Math.ceil(props.total / props.perpage);
|
2379
|
+
const prevPage = page.value > 1 ? page.value - 1 : null;
|
2380
|
+
const nextPage = page.value < totalPages ? page.value + 1 : null;
|
2381
|
+
const pagesOverflow = 5 + props.edge * 2;
|
2382
|
+
const hasLeftEdge = totalPages > pagesOverflow && page.value > props.edge + 3;
|
2383
|
+
const hasRightEdge = totalPages > pagesOverflow && page.value + props.edge + 2 < totalPages;
|
2384
|
+
const pageList = [];
|
2385
|
+
let left = 2, right = totalPages - 1;
|
2386
|
+
if (hasLeftEdge && !hasRightEdge) {
|
2387
|
+
left = Math.max(4, totalPages - 2 * props.edge - 2);
|
2388
|
+
} else if (!hasLeftEdge && hasRightEdge) {
|
2389
|
+
right = Math.min(2 * props.edge + 3, totalPages - 1);
|
2390
|
+
} else if (hasLeftEdge && hasRightEdge) {
|
2391
|
+
left = page.value - props.edge;
|
2392
|
+
right = page.value + props.edge;
|
2393
|
+
}
|
2394
|
+
for (let i = left; i <= right; i++) {
|
2395
|
+
pageList.push(i);
|
2396
|
+
}
|
2397
|
+
return {
|
2398
|
+
totalPages,
|
2399
|
+
prev: prevPage,
|
2400
|
+
next: nextPage,
|
2401
|
+
hasLeftEdge,
|
2402
|
+
hasRightEdge,
|
2403
|
+
pageList
|
2404
|
+
};
|
2405
|
+
});
|
2406
|
+
const selectPage = (n) => {
|
2407
|
+
page.value = n;
|
2408
|
+
};
|
2409
|
+
const selectLeft = () => {
|
2410
|
+
selectPage(page.value - props.edge);
|
2411
|
+
};
|
2412
|
+
const selectRight = () => {
|
2413
|
+
selectPage(page.value + props.edge);
|
2414
|
+
};
|
2415
|
+
return (_ctx, _cache) => {
|
2416
|
+
return openBlock(), createElementBlock("div", {
|
2417
|
+
class: normalizeClass(["ui-Pagination", resetClass.value])
|
2418
|
+
}, [
|
2419
|
+
pagination.value.prev ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 0 }, buttonProps.value, {
|
2420
|
+
"aria-label": "Previous",
|
2421
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
|
2422
|
+
}), {
|
2423
|
+
default: withCtx(() => [
|
2424
|
+
renderSlot(_ctx.$slots, "prev-page", {
|
2425
|
+
page: pagination.value.prev
|
2426
|
+
}, () => [
|
2427
|
+
createVNode(unref(Icon), { icon: "lucide:chevron-left" })
|
2428
|
+
])
|
2429
|
+
]),
|
2430
|
+
_: 3
|
2431
|
+
}, 16)) : createCommentVNode("", true),
|
2432
|
+
createVNode(_sfc_main$U, mergeProps(buttonProps.value, {
|
2433
|
+
disabled: page.value === 1,
|
2434
|
+
"aria-current": "page",
|
2435
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
|
2436
|
+
}), {
|
2437
|
+
default: withCtx(() => [
|
2438
|
+
renderSlot(_ctx.$slots, "page", { page: 1 }, () => [
|
2439
|
+
_cache[4] || (_cache[4] = createTextVNode("1"))
|
2440
|
+
])
|
2441
|
+
]),
|
2442
|
+
_: 3
|
2443
|
+
}, 16, ["disabled"]),
|
2444
|
+
pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 1 }, buttonProps.value, {
|
2445
|
+
onClick: withModifiers(selectLeft, ["prevent"])
|
2446
|
+
}), {
|
2447
|
+
default: withCtx(() => [
|
2448
|
+
renderSlot(_ctx.$slots, "prev-edge", {
|
2449
|
+
page: page.value - _ctx.edge
|
2450
|
+
}, () => [
|
2451
|
+
createVNode(unref(Icon), { icon: "lucide:ellipsis" })
|
2452
|
+
])
|
2453
|
+
]),
|
2454
|
+
_: 3
|
2455
|
+
}, 16)) : createCommentVNode("", true),
|
2456
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
|
2457
|
+
return openBlock(), createBlock(_sfc_main$U, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
|
2458
|
+
disabled: p === page.value,
|
2459
|
+
"aria-current": "page",
|
2460
|
+
onClick: withModifiers(($event) => selectPage(p), ["prevent"])
|
2461
|
+
}), {
|
2462
|
+
default: withCtx(() => [
|
2463
|
+
renderSlot(_ctx.$slots, "page", { page: p }, () => [
|
2464
|
+
createTextVNode(toDisplayString(p), 1)
|
2465
|
+
])
|
2466
|
+
]),
|
2467
|
+
_: 2
|
2468
|
+
}, 1040, ["disabled", "onClick"]);
|
2469
|
+
}), 128)),
|
2470
|
+
pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 2 }, buttonProps.value, {
|
2471
|
+
onClick: withModifiers(selectRight, ["prevent"])
|
2472
|
+
}), {
|
2473
|
+
default: withCtx(() => [
|
2474
|
+
renderSlot(_ctx.$slots, "next-edge", {
|
2475
|
+
page: page.value + _ctx.edge
|
2476
|
+
}, () => [
|
2477
|
+
createVNode(unref(Icon), { icon: "lucide:ellipsis" })
|
2478
|
+
])
|
2479
|
+
]),
|
2480
|
+
_: 3
|
2481
|
+
}, 16)) : createCommentVNode("", true),
|
2482
|
+
pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$U, mergeProps({ key: 3 }, buttonProps.value, {
|
2483
|
+
disabled: pagination.value.totalPages === page.value,
|
2484
|
+
"aria-current": "page",
|
2485
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
|
2486
|
+
}), {
|
2487
|
+
default: withCtx(() => [
|
2488
|
+
renderSlot(_ctx.$slots, "page", {
|
2489
|
+
page: pagination.value.totalPages
|
2490
|
+
}, () => [
|
2491
|
+
createTextVNode(toDisplayString(pagination.value.totalPages), 1)
|
2492
|
+
])
|
2493
|
+
]),
|
2494
|
+
_: 3
|
2495
|
+
}, 16, ["disabled"])) : createCommentVNode("", true),
|
2496
|
+
pagination.value.next ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 4 }, buttonProps.value, {
|
2497
|
+
"aria-label": "Next",
|
2498
|
+
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
|
2499
|
+
}), {
|
2500
|
+
default: withCtx(() => [
|
2501
|
+
renderSlot(_ctx.$slots, "next-page", {
|
2502
|
+
page: pagination.value.next
|
2503
|
+
}, () => [
|
2504
|
+
createVNode(unref(Icon), { icon: "lucide:chevron-right" })
|
2505
|
+
])
|
2506
|
+
]),
|
2507
|
+
_: 3
|
2508
|
+
}, 16)) : createCommentVNode("", true)
|
2509
|
+
], 2);
|
2510
|
+
};
|
2045
2511
|
}
|
2046
|
-
})
|
2512
|
+
});
|
2513
|
+
const _hoisted_1$5 = ["data-size", "data-variant"];
|
2514
|
+
const _hoisted_2$2 = ["data-layout"];
|
2515
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
2047
2516
|
__name: "Table",
|
2048
2517
|
props: {
|
2049
2518
|
size: { default: "2" },
|
2050
2519
|
variant: { default: "ghost" },
|
2051
2520
|
layout: {}
|
2052
2521
|
},
|
2053
|
-
setup(
|
2054
|
-
const
|
2055
|
-
return (
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2522
|
+
setup(__props) {
|
2523
|
+
const props = __props;
|
2524
|
+
return (_ctx, _cache) => {
|
2525
|
+
return openBlock(), createElementBlock("div", {
|
2526
|
+
class: "ui-Table",
|
2527
|
+
"data-size": props.size,
|
2528
|
+
"data-variant": props.variant
|
2529
|
+
}, [
|
2530
|
+
createVNode(_sfc_main$R, null, {
|
2531
|
+
default: withCtx(() => [
|
2532
|
+
createElementVNode("table", {
|
2533
|
+
class: "ui-TableContent",
|
2534
|
+
"data-layout": props.layout
|
2535
|
+
}, [
|
2536
|
+
renderSlot(_ctx.$slots, "default")
|
2537
|
+
], 8, _hoisted_2$2)
|
2538
|
+
]),
|
2539
|
+
_: 3
|
2540
|
+
})
|
2541
|
+
], 8, _hoisted_1$5);
|
2542
|
+
};
|
2072
2543
|
}
|
2073
|
-
})
|
2544
|
+
});
|
2545
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
2074
2546
|
__name: "Separator",
|
2075
2547
|
props: {
|
2076
2548
|
as: { default: "span" },
|
@@ -2078,18 +2550,24 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
2078
2550
|
size: {},
|
2079
2551
|
color: { default: "gray" }
|
2080
2552
|
},
|
2081
|
-
setup(
|
2082
|
-
const
|
2083
|
-
return (
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2553
|
+
setup(__props) {
|
2554
|
+
const props = __props;
|
2555
|
+
return (_ctx, _cache) => {
|
2556
|
+
return openBlock(), createBlock(unref(Primitive), {
|
2557
|
+
as: props.as,
|
2558
|
+
class: normalizeClass(["ui-Separator", `r-size-${props.size}`]),
|
2559
|
+
role: "separator",
|
2560
|
+
"data-accent-color": props.color,
|
2561
|
+
"aria-orientation": props.orientation
|
2562
|
+
}, null, 8, ["as", "class", "data-accent-color", "aria-orientation"]);
|
2563
|
+
};
|
2090
2564
|
}
|
2091
|
-
})
|
2092
|
-
|
2565
|
+
});
|
2566
|
+
const _hoisted_1$4 = ["textContent"];
|
2567
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
2568
|
+
...{
|
2569
|
+
inheritAttrs: false
|
2570
|
+
},
|
2093
2571
|
__name: "Tooltip",
|
2094
2572
|
props: {
|
2095
2573
|
to: {},
|
@@ -2117,130 +2595,164 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
2117
2595
|
positionStrategy: {},
|
2118
2596
|
updatePositionStrategy: {}
|
2119
2597
|
},
|
2120
|
-
setup(
|
2121
|
-
const
|
2122
|
-
return (
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2149
|
-
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2598
|
+
setup(__props) {
|
2599
|
+
const props = __props;
|
2600
|
+
return (_ctx, _cache) => {
|
2601
|
+
return openBlock(), createBlock(unref(TooltipProvider), {
|
2602
|
+
"delay-duration": props.delayDuration,
|
2603
|
+
"disable-closing-trigger": props.disableClosingTrigger,
|
2604
|
+
"disable-hoverable-content": props.disableHoverableContent,
|
2605
|
+
disabled: props.disabled,
|
2606
|
+
"ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus,
|
2607
|
+
"skip-delay-duration": props.skipDelayDuration
|
2608
|
+
}, {
|
2609
|
+
default: withCtx(() => [
|
2610
|
+
createVNode(unref(TooltipRoot), null, {
|
2611
|
+
default: withCtx(() => [
|
2612
|
+
createVNode(unref(TooltipTrigger), mergeProps({
|
2613
|
+
as: props.as,
|
2614
|
+
"as-child": props.asChild
|
2615
|
+
}, _ctx.$attrs), {
|
2616
|
+
default: withCtx(() => [
|
2617
|
+
renderSlot(_ctx.$slots, "default")
|
2618
|
+
]),
|
2619
|
+
_: 3
|
2620
|
+
}, 16, ["as", "as-child"]),
|
2621
|
+
createVNode(unref(TooltipPortal), {
|
2622
|
+
to: props.to
|
2623
|
+
}, {
|
2624
|
+
default: withCtx(() => [
|
2625
|
+
createVNode(unref(TooltipContent), {
|
2626
|
+
class: "ui-Tooltip",
|
2627
|
+
align: props.align,
|
2628
|
+
"align-offset": props.alignOffset,
|
2629
|
+
"aria-label": props.ariaLabel,
|
2630
|
+
"arrow-padding": props.arrowPadding,
|
2631
|
+
"avoid-collisions": props.avoidCollisions,
|
2632
|
+
"collision-boundary": props.collisionBoundary,
|
2633
|
+
"collision-padding": props.collisionPadding,
|
2634
|
+
"hide-when-detached": props.hideWhenDetached,
|
2635
|
+
side: props.side,
|
2636
|
+
"side-offset": props.sideOffset,
|
2637
|
+
sticky: props.sticky
|
2638
|
+
}, {
|
2639
|
+
default: withCtx(() => [
|
2640
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
2641
|
+
createElementVNode("p", {
|
2642
|
+
class: "ui-TooltipText",
|
2643
|
+
textContent: toDisplayString(props.content)
|
2644
|
+
}, null, 8, _hoisted_1$4)
|
2645
|
+
]),
|
2646
|
+
createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
|
2166
2647
|
]),
|
2167
|
-
|
2168
|
-
])
|
2169
|
-
|
2170
|
-
|
2171
|
-
])
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
])
|
2178
|
-
|
2179
|
-
}, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
|
2648
|
+
_: 3
|
2649
|
+
}, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
|
2650
|
+
]),
|
2651
|
+
_: 3
|
2652
|
+
}, 8, ["to"])
|
2653
|
+
]),
|
2654
|
+
_: 3
|
2655
|
+
})
|
2656
|
+
]),
|
2657
|
+
_: 3
|
2658
|
+
}, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]);
|
2659
|
+
};
|
2180
2660
|
}
|
2181
|
-
})
|
2661
|
+
});
|
2662
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
2182
2663
|
__name: "Quota",
|
2183
2664
|
props: {
|
2184
2665
|
percent: {},
|
2185
2666
|
color: {}
|
2186
2667
|
},
|
2187
|
-
setup(
|
2188
|
-
const
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2199
|
-
|
2200
|
-
|
2201
|
-
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2668
|
+
setup(__props) {
|
2669
|
+
const props = __props;
|
2670
|
+
const style = computed(() => {
|
2671
|
+
const transform = `translateX(-${100 - props.percent}%)`;
|
2672
|
+
if (props.percent > 100) {
|
2673
|
+
return { transform, "background-color": "var(--red-a10)" };
|
2674
|
+
}
|
2675
|
+
let alpha = "a4";
|
2676
|
+
if (props.percent > 90) {
|
2677
|
+
alpha = "a11";
|
2678
|
+
} else if (props.percent > 66) {
|
2679
|
+
alpha = "a9";
|
2680
|
+
} else if (props.percent > 33) {
|
2681
|
+
alpha = "a6";
|
2682
|
+
}
|
2683
|
+
return { transform, "background-color": `var(--blue-${alpha})` };
|
2684
|
+
});
|
2685
|
+
const percent = computed(() => {
|
2686
|
+
if (props.percent > 100) {
|
2687
|
+
return 100;
|
2688
|
+
} else if (props.percent < 0) {
|
2689
|
+
return 0;
|
2690
|
+
}
|
2691
|
+
return props.percent;
|
2692
|
+
});
|
2693
|
+
return (_ctx, _cache) => {
|
2694
|
+
return openBlock(), createBlock(unref(ProgressRoot), {
|
2695
|
+
class: "ui-Quota",
|
2696
|
+
"model-value": percent.value,
|
2697
|
+
"data-accent-color": props.color
|
2698
|
+
}, {
|
2699
|
+
default: withCtx(() => [
|
2700
|
+
createVNode(unref(ProgressIndicator), {
|
2701
|
+
class: "ui-QuotaValue",
|
2702
|
+
style: normalizeStyle(style.value)
|
2703
|
+
}, null, 8, ["style"])
|
2704
|
+
]),
|
2705
|
+
_: 1
|
2706
|
+
}, 8, ["model-value", "data-accent-color"]);
|
2707
|
+
};
|
2208
2708
|
}
|
2209
|
-
})
|
2709
|
+
});
|
2710
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
2210
2711
|
__name: "Spinner",
|
2211
2712
|
props: {
|
2212
2713
|
icon: { default: "180-ring" },
|
2213
2714
|
size: { default: "2" }
|
2214
2715
|
},
|
2215
|
-
setup(
|
2216
|
-
const
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2716
|
+
setup(__props) {
|
2717
|
+
const props = __props;
|
2718
|
+
const iconName = computed(() => {
|
2719
|
+
return `svg-spinners:${props.icon}`;
|
2720
|
+
});
|
2721
|
+
return (_ctx, _cache) => {
|
2722
|
+
return openBlock(), createBlock(unref(Icon), {
|
2723
|
+
class: normalizeClass(["ui-Spinner", `r-size-${_ctx.size}`]),
|
2724
|
+
icon: iconName.value
|
2725
|
+
}, null, 8, ["class", "icon"]);
|
2726
|
+
};
|
2221
2727
|
}
|
2222
|
-
})
|
2728
|
+
});
|
2729
|
+
const _hoisted_1$3 = ["data-status"];
|
2730
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
2223
2731
|
__name: "SavingIndicator",
|
2224
2732
|
props: {
|
2225
2733
|
status: {},
|
2226
2734
|
size: { default: "2" }
|
2227
2735
|
},
|
2228
|
-
setup(
|
2229
|
-
const
|
2230
|
-
return (
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2736
|
+
setup(__props) {
|
2737
|
+
const props = __props;
|
2738
|
+
return (_ctx, _cache) => {
|
2739
|
+
return openBlock(), createElementBlock("div", {
|
2740
|
+
class: normalizeClass(["ui-SavingIndicator", `r-size-${_ctx.size}`]),
|
2741
|
+
"data-status": props.status
|
2742
|
+
}, [
|
2743
|
+
props.status === "saving" ? (openBlock(), createBlock(unref(Icon), {
|
2744
|
+
key: 0,
|
2745
|
+
icon: "svg-spinners:180-ring"
|
2746
|
+
})) : props.status === "saved" ? (openBlock(), createBlock(unref(Icon), {
|
2747
|
+
key: 1,
|
2748
|
+
icon: "lucide:check-circle-2"
|
2749
|
+
})) : createCommentVNode("", true)
|
2750
|
+
], 10, _hoisted_1$3);
|
2751
|
+
};
|
2242
2752
|
}
|
2243
|
-
})
|
2753
|
+
});
|
2754
|
+
const _hoisted_1$2 = ["data-accent-color"];
|
2755
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
2244
2756
|
__name: "IconCircle",
|
2245
2757
|
props: {
|
2246
2758
|
color: {},
|
@@ -2248,21 +2760,31 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxR
|
|
2248
2760
|
variant: { default: "soft" },
|
2249
2761
|
icon: {}
|
2250
2762
|
},
|
2251
|
-
setup(
|
2252
|
-
const
|
2253
|
-
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
|
2763
|
+
setup(__props) {
|
2764
|
+
const props = __props;
|
2765
|
+
const resetClass = computed(() => {
|
2766
|
+
return extractClass(props, ["size", "variant"]);
|
2767
|
+
});
|
2768
|
+
return (_ctx, _cache) => {
|
2769
|
+
return openBlock(), createElementBlock("span", {
|
2770
|
+
class: normalizeClass(["ui-IconCircle", resetClass.value]),
|
2771
|
+
"data-radius": "full",
|
2772
|
+
"data-accent-color": props.color
|
2773
|
+
}, [
|
2774
|
+
createVNode(unref(Icon), {
|
2775
|
+
icon: props.icon
|
2776
|
+
}, null, 8, ["icon"])
|
2777
|
+
], 10, _hoisted_1$2);
|
2778
|
+
};
|
2262
2779
|
}
|
2263
|
-
})
|
2264
|
-
|
2265
|
-
const
|
2780
|
+
});
|
2781
|
+
const turnstileSrc = "https://challenges.cloudflare.com/turnstile/v0/api.js";
|
2782
|
+
const turnstileLoadFunction = "cfTurnstileOnLoad";
|
2783
|
+
let turnstileState = typeof window !== "undefined" ? window.turnstile !== void 0 ? "ready" : "unloaded" : "unloaded";
|
2784
|
+
let turnstileLoad;
|
2785
|
+
let widgetId;
|
2786
|
+
let resetTimeout;
|
2787
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
2266
2788
|
__name: "Turnstile",
|
2267
2789
|
props: {
|
2268
2790
|
sitekey: {},
|
@@ -2272,55 +2794,88 @@ const ds = /* @__PURE__ */ m({
|
|
2272
2794
|
theme: { default: "auto" },
|
2273
2795
|
action: { default: "" },
|
2274
2796
|
appearance: { default: "always" },
|
2275
|
-
renderOnMount: { type: Boolean, default:
|
2797
|
+
renderOnMount: { type: Boolean, default: true }
|
2276
2798
|
},
|
2277
2799
|
emits: ["update:modelValue"],
|
2278
|
-
setup(
|
2279
|
-
const
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
}
|
2287
|
-
}
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2800
|
+
setup(__props, { emit: __emit }) {
|
2801
|
+
const props = __props;
|
2802
|
+
const emit = __emit;
|
2803
|
+
const element = ref();
|
2804
|
+
const resetTurnstile = () => {
|
2805
|
+
if (window.turnstile) {
|
2806
|
+
emit("update:modelValue", "");
|
2807
|
+
window.turnstile.reset();
|
2808
|
+
}
|
2809
|
+
};
|
2810
|
+
const removeTurnstile = () => {
|
2811
|
+
if (widgetId) {
|
2812
|
+
window.turnstile.remove(widgetId);
|
2813
|
+
widgetId = void 0;
|
2814
|
+
}
|
2815
|
+
};
|
2816
|
+
const callbackTurnstile = (token) => {
|
2817
|
+
emit("update:modelValue", token);
|
2818
|
+
resetTimeout = setTimeout(() => {
|
2819
|
+
resetTurnstile();
|
2820
|
+
}, props.resetInterval);
|
2821
|
+
};
|
2822
|
+
const renderTurnstile = () => {
|
2823
|
+
widgetId = window.turnstile.render(element.value, {
|
2824
|
+
sitekey: props.sitekey,
|
2825
|
+
theme: props.theme,
|
2826
|
+
size: props.size,
|
2827
|
+
callback: callbackTurnstile,
|
2828
|
+
action: props.action,
|
2829
|
+
appearance: props.appearance
|
2295
2830
|
});
|
2296
2831
|
};
|
2297
|
-
|
2298
|
-
const
|
2299
|
-
|
2832
|
+
onMounted(async () => {
|
2833
|
+
const turnstileLoadPromise = new Promise((resolve, reject) => {
|
2834
|
+
turnstileLoad = { resolve, reject };
|
2835
|
+
if (turnstileState === "ready") resolve(void 0);
|
2300
2836
|
});
|
2301
|
-
window[
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2837
|
+
window[turnstileLoadFunction] = () => {
|
2838
|
+
turnstileLoad.resolve();
|
2839
|
+
turnstileState = "ready";
|
2840
|
+
};
|
2841
|
+
const ensureTurnstile = () => {
|
2842
|
+
if (turnstileState === "unloaded") {
|
2843
|
+
turnstileState = "loading";
|
2844
|
+
const url = `${turnstileSrc}?onload=${turnstileLoadFunction}&render=explicit`;
|
2845
|
+
const script = document.createElement("script");
|
2846
|
+
script.src = url;
|
2847
|
+
script.async = true;
|
2848
|
+
script.addEventListener("error", () => {
|
2849
|
+
turnstileLoad.reject("Failed to load Turnstile.");
|
2850
|
+
});
|
2851
|
+
document.head.appendChild(script);
|
2310
2852
|
}
|
2311
|
-
return
|
2312
|
-
}
|
2313
|
-
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2853
|
+
return turnstileLoadPromise;
|
2854
|
+
};
|
2855
|
+
await ensureTurnstile();
|
2856
|
+
if (props.renderOnMount) {
|
2857
|
+
renderTurnstile();
|
2858
|
+
}
|
2859
|
+
});
|
2860
|
+
onBeforeUnmount(() => {
|
2861
|
+
removeTurnstile();
|
2862
|
+
clearTimeout(resetTimeout);
|
2863
|
+
});
|
2864
|
+
return (_ctx, _cache) => {
|
2865
|
+
return openBlock(), createElementBlock("div", {
|
2866
|
+
ref_key: "element",
|
2867
|
+
ref: element
|
2868
|
+
}, null, 512);
|
2869
|
+
};
|
2319
2870
|
}
|
2320
|
-
})
|
2871
|
+
});
|
2872
|
+
const _hoisted_1$1 = {
|
2321
2873
|
type: "button",
|
2322
2874
|
class: "ui-IconifySample"
|
2323
|
-
}
|
2875
|
+
};
|
2876
|
+
const _hoisted_2$1 = { class: "ui-IconifySampleInfo" };
|
2877
|
+
const _hoisted_3$1 = { class: "ui-IconifySampleIcons" };
|
2878
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
2324
2879
|
__name: "IconifySample",
|
2325
2880
|
props: {
|
2326
2881
|
prefix: {},
|
@@ -2330,52 +2885,95 @@ const ds = /* @__PURE__ */ m({
|
|
2330
2885
|
total: {},
|
2331
2886
|
license: {}
|
2332
2887
|
},
|
2333
|
-
setup(
|
2334
|
-
const
|
2335
|
-
return (
|
2336
|
-
|
2337
|
-
|
2338
|
-
|
2339
|
-
|
2340
|
-
|
2341
|
-
|
2342
|
-
(
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
2348
|
-
|
2888
|
+
setup(__props) {
|
2889
|
+
const props = __props;
|
2890
|
+
return (_ctx, _cache) => {
|
2891
|
+
return openBlock(), createElementBlock("button", _hoisted_1$1, [
|
2892
|
+
createElementVNode("div", _hoisted_2$1, [
|
2893
|
+
createElementVNode("strong", null, toDisplayString(props.name), 1),
|
2894
|
+
createElementVNode("span", null, toDisplayString(props.license.title), 1),
|
2895
|
+
createElementVNode("span", null, toDisplayString(props.total) + " icons", 1)
|
2896
|
+
]),
|
2897
|
+
createElementVNode("div", _hoisted_3$1, [
|
2898
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.samples, (icon) => {
|
2899
|
+
return openBlock(), createElementBlock("span", { key: icon }, [
|
2900
|
+
createVNode(unref(Icon), {
|
2901
|
+
icon: props.prefix + ":" + icon
|
2902
|
+
}, null, 8, ["icon"])
|
2903
|
+
]);
|
2904
|
+
}), 128))
|
2905
|
+
])
|
2906
|
+
]);
|
2907
|
+
};
|
2349
2908
|
}
|
2350
|
-
})
|
2909
|
+
});
|
2910
|
+
const _hoisted_1 = { class: "ui-IconifyCollection" };
|
2911
|
+
const _hoisted_2 = { class: "ui-IconifyCollectionGroups" };
|
2912
|
+
const _hoisted_3 = { class: "ui-IconifyCollectionGroupsHead" };
|
2913
|
+
const _hoisted_4 = { class: "ui-IconifyCollectionForm" };
|
2914
|
+
const _hoisted_5 = { class: "mb-2" };
|
2915
|
+
const _hoisted_6 = { class: "font-medium" };
|
2916
|
+
const _hoisted_7 = { class: "text-sm ml-1" };
|
2917
|
+
const _hoisted_8 = { class: "ui-IconifyCollectionSampleGrid" };
|
2918
|
+
const _hoisted_9 = {
|
2351
2919
|
key: 0,
|
2352
2920
|
class: "ui-IconifyCollectionIcons"
|
2353
|
-
}
|
2921
|
+
};
|
2922
|
+
const _hoisted_10 = { class: "ui-IconifyCollectionForm" };
|
2923
|
+
const _hoisted_11 = {
|
2354
2924
|
key: 0,
|
2355
2925
|
class: "ui-IconifyCollectionSuffixes"
|
2356
|
-
}
|
2357
|
-
|
2358
|
-
|
2359
|
-
|
2360
|
-
|
2926
|
+
};
|
2927
|
+
const _hoisted_12 = { class: "ui-IconifyCollectionIconGrid" };
|
2928
|
+
const fetchCollections = async () => {
|
2929
|
+
const apiLink = "https://api.iconify.design/collections";
|
2930
|
+
const resp = await fetch(apiLink);
|
2931
|
+
const data = await resp.json();
|
2932
|
+
const cache = {};
|
2933
|
+
Object.keys(data).forEach((prefix) => {
|
2934
|
+
const item = data[prefix];
|
2935
|
+
if (item.hidden) {
|
2936
|
+
return;
|
2937
|
+
}
|
2938
|
+
if (!cache[item.category]) {
|
2939
|
+
cache[item.category] = [];
|
2940
|
+
}
|
2941
|
+
cache[item.category].push({ ...item, prefix });
|
2361
2942
|
});
|
2362
|
-
const
|
2363
|
-
|
2364
|
-
|
2365
|
-
category
|
2366
|
-
items:
|
2943
|
+
const collections = [];
|
2944
|
+
Object.keys(cache).forEach((category) => {
|
2945
|
+
collections.push({
|
2946
|
+
category,
|
2947
|
+
items: cache[category]
|
2367
2948
|
});
|
2368
|
-
})
|
2369
|
-
|
2370
|
-
|
2371
|
-
|
2372
|
-
|
2373
|
-
const
|
2374
|
-
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2378
|
-
|
2949
|
+
});
|
2950
|
+
return collections;
|
2951
|
+
};
|
2952
|
+
const searchIcons = async (query) => {
|
2953
|
+
const apiLink = `https://api.iconify.design/search?query=${encodeURIComponent(query)}&limit=999`;
|
2954
|
+
const resp = await fetch(apiLink);
|
2955
|
+
const data = await resp.json();
|
2956
|
+
return data.icons;
|
2957
|
+
};
|
2958
|
+
const fetchCollectionIcons = async (prefix) => {
|
2959
|
+
const apiLink = `https://api.iconify.design/collection?prefix=${encodeURIComponent(prefix)}&chars=true&aliases=true`;
|
2960
|
+
const resp = await fetch(apiLink);
|
2961
|
+
const data = await resp.json();
|
2962
|
+
return data;
|
2963
|
+
};
|
2964
|
+
const filterIcons = (names, query, suffix) => {
|
2965
|
+
return names.filter((key) => {
|
2966
|
+
let match = true;
|
2967
|
+
if (query && key.indexOf(query) === -1) {
|
2968
|
+
match = false;
|
2969
|
+
}
|
2970
|
+
if (suffix && key.indexOf(`-${suffix}`) === -1) {
|
2971
|
+
match = false;
|
2972
|
+
}
|
2973
|
+
return match;
|
2974
|
+
});
|
2975
|
+
};
|
2976
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
2379
2977
|
__name: "IconifyCollection",
|
2380
2978
|
props: {
|
2381
2979
|
prefix: {},
|
@@ -2383,242 +2981,320 @@ const ds = /* @__PURE__ */ m({
|
|
2383
2981
|
perpage: { default: 200 }
|
2384
2982
|
},
|
2385
2983
|
emits: ["select"],
|
2386
|
-
setup(
|
2387
|
-
const
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2984
|
+
setup(__props, { emit: __emit }) {
|
2985
|
+
const props = __props;
|
2986
|
+
const emits = __emit;
|
2987
|
+
const shouldDisplay = ref("all");
|
2988
|
+
const groupCollections = ref([]);
|
2989
|
+
const collectionFilter = ref("");
|
2990
|
+
const page = ref(1);
|
2991
|
+
const searchQuery = ref("");
|
2992
|
+
const searchResultIcons = ref([]);
|
2993
|
+
const collectionData = ref();
|
2994
|
+
const collectionQuery = ref("");
|
2995
|
+
const collectionSuffix = ref("");
|
2996
|
+
const reset = () => {
|
2997
|
+
page.value = 1;
|
2998
|
+
searchQuery.value = "";
|
2999
|
+
searchResultIcons.value = [];
|
3000
|
+
collectionData.value = void 0;
|
3001
|
+
collectionQuery.value = "";
|
3002
|
+
collectionSuffix.value = "";
|
3003
|
+
shouldDisplay.value = "all";
|
3004
|
+
};
|
3005
|
+
const onSelectIcon = (icon) => {
|
3006
|
+
emits("select", icon);
|
3007
|
+
};
|
3008
|
+
const onSearch = async () => {
|
3009
|
+
if (searchQuery.value) {
|
3010
|
+
shouldDisplay.value = "search";
|
3011
|
+
searchResultIcons.value = await searchIcons(searchQuery.value);
|
3012
|
+
} else {
|
3013
|
+
shouldDisplay.value = "all";
|
3014
|
+
}
|
3015
|
+
};
|
3016
|
+
const onSelectPrefix = async (prefix) => {
|
3017
|
+
collectionData.value = void 0;
|
3018
|
+
collectionQuery.value = "";
|
3019
|
+
collectionSuffix.value = "";
|
3020
|
+
shouldDisplay.value = "collection";
|
3021
|
+
collectionData.value = await fetchCollectionIcons(prefix);
|
3022
|
+
};
|
3023
|
+
const collectionCount = computed(() => {
|
3024
|
+
let count = 0;
|
3025
|
+
groupCollections.value.forEach((item) => {
|
3026
|
+
count += item.items.length;
|
3027
|
+
});
|
3028
|
+
return count;
|
3029
|
+
});
|
3030
|
+
const visibleCollections = computed(() => {
|
3031
|
+
if (!collectionFilter.value) {
|
3032
|
+
return groupCollections.value;
|
3033
|
+
}
|
3034
|
+
return groupCollections.value.map((collection) => {
|
3035
|
+
const items = collection.items.filter((item) => {
|
3036
|
+
const key = [item.category, item.name, item.prefix].join(" ");
|
3037
|
+
return key.toLowerCase().indexOf(collectionFilter.value) !== -1;
|
2409
3038
|
});
|
2410
|
-
|
2411
|
-
|
2412
|
-
|
2413
|
-
|
2414
|
-
|
2415
|
-
|
2416
|
-
|
3039
|
+
return { ...collection, items };
|
3040
|
+
}).filter((collection) => collection.items.length !== 0);
|
3041
|
+
});
|
3042
|
+
const collectionIcons = computed(() => {
|
3043
|
+
let rv = [];
|
3044
|
+
if (!collectionData.value) {
|
3045
|
+
return rv;
|
3046
|
+
}
|
3047
|
+
if (collectionData.value.uncategorized) {
|
3048
|
+
rv = filterIcons(collectionData.value.uncategorized, collectionQuery.value, collectionSuffix.value);
|
3049
|
+
} else if (collectionData.value.categories) {
|
3050
|
+
Object.keys(collectionData.value.categories).forEach((category) => {
|
3051
|
+
const icons = collectionData.value.categories[category];
|
3052
|
+
filterIcons(icons, collectionQuery.value, collectionSuffix.value).forEach((k) => {
|
3053
|
+
rv.push(k);
|
3054
|
+
});
|
3055
|
+
});
|
3056
|
+
}
|
3057
|
+
if (collectionQuery.value && !rv.length && collectionData.value.hidden) {
|
3058
|
+
rv = filterIcons(collectionData.value.hidden, collectionQuery.value, collectionSuffix.value);
|
3059
|
+
}
|
3060
|
+
return rv.map((name) => {
|
3061
|
+
var _a;
|
3062
|
+
return `${(_a = collectionData.value) == null ? void 0 : _a.prefix}:${name}`;
|
3063
|
+
});
|
3064
|
+
});
|
3065
|
+
const allIcons = computed(() => {
|
3066
|
+
if (shouldDisplay.value === "search") {
|
3067
|
+
return searchResultIcons.value;
|
3068
|
+
} else if (shouldDisplay.value === "collection") {
|
3069
|
+
return collectionIcons.value;
|
3070
|
+
} else {
|
3071
|
+
return [];
|
3072
|
+
}
|
3073
|
+
});
|
3074
|
+
const visibleIcons = computed(() => {
|
3075
|
+
const start = (page.value - 1) * props.perpage;
|
3076
|
+
const end = page.value * props.perpage;
|
3077
|
+
return allIcons.value.slice(start, end);
|
2417
3078
|
});
|
2418
|
-
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2428
|
-
|
2429
|
-
|
3079
|
+
onMounted(async () => {
|
3080
|
+
if (props.prefix) {
|
3081
|
+
onSelectPrefix(props.prefix);
|
3082
|
+
} else if (props.search) {
|
3083
|
+
searchQuery.value = props.search;
|
3084
|
+
onSearch();
|
3085
|
+
}
|
3086
|
+
groupCollections.value = await fetchCollections();
|
3087
|
+
});
|
3088
|
+
return (_ctx, _cache) => {
|
3089
|
+
var _a;
|
3090
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
3091
|
+
withDirectives(createElementVNode("div", _hoisted_2, [
|
3092
|
+
createElementVNode("section", _hoisted_3, [
|
3093
|
+
createElementVNode("h1", null, toDisplayString(collectionCount.value) + " icon sets", 1),
|
3094
|
+
createElementVNode("div", _hoisted_4, [
|
3095
|
+
createVNode(_sfc_main$C, {
|
3096
|
+
modelValue: collectionFilter.value,
|
3097
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => collectionFilter.value = $event),
|
2430
3098
|
placeholder: "Filter icon sets..."
|
2431
3099
|
}, null, 8, ["modelValue"]),
|
2432
|
-
|
2433
|
-
modelValue:
|
2434
|
-
"onUpdate:modelValue":
|
3100
|
+
createVNode(_sfc_main$C, {
|
3101
|
+
modelValue: searchQuery.value,
|
3102
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchQuery.value = $event),
|
2435
3103
|
placeholder: "Search icons...",
|
2436
|
-
onKeydown:
|
3104
|
+
onKeydown: withKeys(onSearch, ["enter"])
|
2437
3105
|
}, null, 8, ["modelValue"])
|
2438
3106
|
])
|
2439
3107
|
]),
|
2440
|
-
(
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2449
|
-
(
|
2450
|
-
|
2451
|
-
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
3108
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleCollections.value, (collection) => {
|
3109
|
+
return openBlock(), createElementBlock("section", {
|
3110
|
+
key: collection.category,
|
3111
|
+
class: "ui-IconifyCollectionSample"
|
3112
|
+
}, [
|
3113
|
+
createElementVNode("h1", _hoisted_5, [
|
3114
|
+
createElementVNode("span", _hoisted_6, toDisplayString(collection.category), 1),
|
3115
|
+
createElementVNode("span", _hoisted_7, "(" + toDisplayString(collection.items.length) + " icon sets)", 1)
|
3116
|
+
]),
|
3117
|
+
createElementVNode("div", _hoisted_8, [
|
3118
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(collection.items, (item) => {
|
3119
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
3120
|
+
key: item.prefix
|
3121
|
+
}, { ref_for: true }, item, {
|
3122
|
+
onClick: withModifiers(($event) => onSelectPrefix(item.prefix), ["prevent"])
|
3123
|
+
}), null, 16, ["onClick"]);
|
3124
|
+
}), 128))
|
3125
|
+
])
|
3126
|
+
]);
|
3127
|
+
}), 128))
|
2457
3128
|
], 512), [
|
2458
|
-
[
|
3129
|
+
[vShow, shouldDisplay.value === "all"]
|
2459
3130
|
]),
|
2460
|
-
|
2461
|
-
|
2462
|
-
|
3131
|
+
shouldDisplay.value !== "all" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
3132
|
+
createElementVNode("div", _hoisted_10, [
|
3133
|
+
createVNode(_sfc_main$U, {
|
2463
3134
|
type: "button",
|
2464
3135
|
variant: "surface",
|
2465
3136
|
color: "gray",
|
2466
|
-
onClick:
|
3137
|
+
onClick: withModifiers(reset, ["prevent"])
|
2467
3138
|
}, {
|
2468
|
-
default:
|
2469
|
-
|
3139
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
3140
|
+
createTextVNode(" Back ")
|
2470
3141
|
])),
|
2471
|
-
_: 1
|
3142
|
+
_: 1,
|
3143
|
+
__: [5]
|
2472
3144
|
}),
|
2473
|
-
|
3145
|
+
shouldDisplay.value === "search" ? (openBlock(), createBlock(_sfc_main$C, {
|
2474
3146
|
key: 0,
|
2475
|
-
modelValue:
|
2476
|
-
"onUpdate:modelValue":
|
3147
|
+
modelValue: searchQuery.value,
|
3148
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchQuery.value = $event),
|
2477
3149
|
placeholder: "Search icons...",
|
2478
|
-
onKeydown:
|
2479
|
-
}, null, 8, ["modelValue"])) :
|
2480
|
-
|
3150
|
+
onKeydown: withKeys(onSearch, ["enter"])
|
3151
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
3152
|
+
shouldDisplay.value === "collection" ? (openBlock(), createBlock(_sfc_main$C, {
|
2481
3153
|
key: 1,
|
2482
|
-
modelValue:
|
2483
|
-
"onUpdate:modelValue":
|
3154
|
+
modelValue: collectionQuery.value,
|
3155
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => collectionQuery.value = $event),
|
2484
3156
|
placeholder: "Search icons..."
|
2485
|
-
}, null, 8, ["modelValue"])) :
|
3157
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
2486
3158
|
]),
|
2487
|
-
|
2488
|
-
(
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
3159
|
+
shouldDisplay.value === "collection" && ((_a = collectionData.value) == null ? void 0 : _a.suffixes) ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
3160
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(collectionData.value.suffixes, (k, v) => {
|
3161
|
+
return openBlock(), createBlock(_sfc_main$U, {
|
3162
|
+
key: v,
|
3163
|
+
variant: collectionSuffix.value === v ? "solid" : "outline",
|
3164
|
+
color: "gray",
|
3165
|
+
"high-contrast": "",
|
3166
|
+
radius: "full",
|
3167
|
+
onClick: withModifiers(($event) => collectionSuffix.value = v, ["prevent"])
|
3168
|
+
}, {
|
3169
|
+
default: withCtx(() => [
|
3170
|
+
createTextVNode(toDisplayString(k), 1)
|
3171
|
+
]),
|
3172
|
+
_: 2
|
3173
|
+
}, 1032, ["variant", "onClick"]);
|
3174
|
+
}), 128))
|
3175
|
+
])) : createCommentVNode("", true),
|
3176
|
+
createElementVNode("div", _hoisted_12, [
|
3177
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleIcons.value, (icon) => {
|
3178
|
+
return openBlock(), createBlock(_sfc_main$7, {
|
3179
|
+
key: icon,
|
3180
|
+
as: "div",
|
3181
|
+
content: icon
|
3182
|
+
}, {
|
3183
|
+
default: withCtx(() => [
|
3184
|
+
createVNode(_sfc_main$T, {
|
3185
|
+
type: "button",
|
3186
|
+
color: "gray",
|
3187
|
+
variant: "ghost",
|
3188
|
+
size: "4",
|
3189
|
+
onClick: withModifiers(($event) => onSelectIcon(icon), ["prevent"])
|
3190
|
+
}, {
|
3191
|
+
default: withCtx(() => [
|
3192
|
+
createVNode(unref(Icon), { icon }, null, 8, ["icon"])
|
3193
|
+
]),
|
3194
|
+
_: 2
|
3195
|
+
}, 1032, ["onClick"])
|
3196
|
+
]),
|
3197
|
+
_: 2
|
3198
|
+
}, 1032, ["content"]);
|
3199
|
+
}), 128))
|
2524
3200
|
]),
|
2525
|
-
|
2526
|
-
page:
|
2527
|
-
"onUpdate:page":
|
2528
|
-
total:
|
2529
|
-
perpage:
|
3201
|
+
createVNode(_sfc_main$a, {
|
3202
|
+
page: page.value,
|
3203
|
+
"onUpdate:page": _cache[4] || (_cache[4] = ($event) => page.value = $event),
|
3204
|
+
total: allIcons.value.length,
|
3205
|
+
perpage: _ctx.perpage
|
2530
3206
|
}, null, 8, ["page", "total", "perpage"])
|
2531
|
-
])) :
|
3207
|
+
])) : createCommentVNode("", true)
|
2532
3208
|
]);
|
2533
3209
|
};
|
2534
3210
|
}
|
2535
3211
|
});
|
2536
3212
|
export {
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2563
|
-
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2570
|
-
$
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
|
2579
|
-
|
2580
|
-
|
2581
|
-
|
2582
|
-
|
2583
|
-
|
2584
|
-
|
2585
|
-
|
2586
|
-
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
3213
|
+
_sfc_main$f as AccordionContent,
|
3214
|
+
_sfc_main$g as AccordionItem,
|
3215
|
+
_sfc_main$h as AccordionRoot,
|
3216
|
+
_sfc_main$c as AccordionTrigger,
|
3217
|
+
AlertDialogAction,
|
3218
|
+
AlertDialogCancel,
|
3219
|
+
_sfc_main$Q as AlertDialogContent,
|
3220
|
+
AlertDialogDescription,
|
3221
|
+
AlertDialogRoot,
|
3222
|
+
AlertDialogTitle,
|
3223
|
+
AlertDialogTrigger,
|
3224
|
+
_sfc_main$Z as Avatar,
|
3225
|
+
_sfc_main$Y as Badge,
|
3226
|
+
_sfc_main$U as Button,
|
3227
|
+
_sfc_main$W as Card,
|
3228
|
+
_sfc_main$V as CardHead,
|
3229
|
+
_sfc_main$J as Checkbox,
|
3230
|
+
_sfc_main$G as CheckboxGroupControl,
|
3231
|
+
_sfc_main$H as CheckboxGroupItem,
|
3232
|
+
_sfc_main$I as CheckboxGroupRoot,
|
3233
|
+
_sfc_main$d as ChevronIcon,
|
3234
|
+
_sfc_main$b as CollapsibleContent,
|
3235
|
+
CollapsibleRoot,
|
3236
|
+
CollapsibleTrigger,
|
3237
|
+
_sfc_main$A as ColorField,
|
3238
|
+
_sfc_main$r as ComboboxContent,
|
3239
|
+
ComboboxEmpty,
|
3240
|
+
ComboboxGroup,
|
3241
|
+
_sfc_main$s as ComboboxInput,
|
3242
|
+
_sfc_main$q as ComboboxItem,
|
3243
|
+
_sfc_main$p as ComboboxLabel,
|
3244
|
+
_sfc_main$t as ComboboxRoot,
|
3245
|
+
DialogClose2 as DialogClose,
|
3246
|
+
_sfc_main$P as DialogContent,
|
3247
|
+
DialogDescription,
|
3248
|
+
_sfc_main$O as DialogHead,
|
3249
|
+
DialogRoot,
|
3250
|
+
DialogTitle2 as DialogTitle,
|
3251
|
+
DialogTrigger,
|
3252
|
+
_sfc_main$N as DropdownMenuContent,
|
3253
|
+
_sfc_main$M as DropdownMenuItem,
|
3254
|
+
DropdownMenuRoot,
|
3255
|
+
DropdownMenuTrigger,
|
3256
|
+
Icon2 as Icon,
|
3257
|
+
_sfc_main$T as IconButton,
|
3258
|
+
_sfc_main$3 as IconCircle,
|
3259
|
+
_sfc_main as IconifyCollection,
|
3260
|
+
_sfc_main$X as Inset,
|
3261
|
+
_sfc_main$a as Pagination,
|
3262
|
+
_sfc_main$e as PlusMinusIcon,
|
3263
|
+
PopoverClose,
|
3264
|
+
_sfc_main$L as PopoverContent,
|
3265
|
+
PopoverRoot,
|
3266
|
+
PopoverTrigger,
|
3267
|
+
_sfc_main$6 as Quota,
|
3268
|
+
_sfc_main$o as Radio,
|
3269
|
+
_sfc_main$l as RadioCardsItem,
|
3270
|
+
_sfc_main$n as RadioCardsRoot,
|
3271
|
+
_sfc_main$m as RadioGroupItem,
|
3272
|
+
_sfc_main$n as RadioGroupRoot,
|
3273
|
+
RadioGroupItem2 as RadioTabsItem,
|
3274
|
+
_sfc_main$k as RadioTabsList,
|
3275
|
+
_sfc_main$4 as SavingIndicator,
|
3276
|
+
_sfc_main$R as ScrollArea,
|
3277
|
+
_sfc_main$y as SelectContent,
|
3278
|
+
SelectGroup,
|
3279
|
+
_sfc_main$w as SelectItem,
|
3280
|
+
_sfc_main$v as SelectLabel,
|
3281
|
+
_sfc_main$z as SelectRoot,
|
3282
|
+
SelectSeparator,
|
3283
|
+
_sfc_main$x as SelectTrigger,
|
3284
|
+
_sfc_main$8 as Separator,
|
3285
|
+
_sfc_main$S as SocialButton,
|
3286
|
+
_sfc_main$5 as Spinner,
|
3287
|
+
_sfc_main$K as Switch,
|
3288
|
+
_sfc_main$9 as Table,
|
3289
|
+
TabsContent,
|
3290
|
+
_sfc_main$j as TabsList,
|
3291
|
+
TabsRoot,
|
3292
|
+
_sfc_main$i as TabsTrigger,
|
3293
|
+
_sfc_main$B as TextArea,
|
3294
|
+
_sfc_main$C as TextField,
|
3295
|
+
_sfc_main$F as Toggle,
|
3296
|
+
_sfc_main$D as ToggleGroupItem,
|
3297
|
+
_sfc_main$E as ToggleGroupRoot,
|
3298
|
+
_sfc_main$7 as Tooltip,
|
3299
|
+
_sfc_main$2 as Turnstile
|
2624
3300
|
};
|