@typlog/ui 0.9.2 → 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.js +2392 -1716
- package/dist/style.css +10463 -1
- package/package.json +4 -2
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" },
|
@@ -91,111 +121,136 @@ const _a = /* @__PURE__ */ m({
|
|
91
121
|
size: { default: "1" },
|
92
122
|
highContrast: { type: Boolean, default: void 0 },
|
93
123
|
asChild: { type: Boolean },
|
94
|
-
as: {
|
95
|
-
},
|
96
|
-
setup(
|
97
|
-
const
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
124
|
+
as: { default: "span" }
|
125
|
+
},
|
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" },
|
131
171
|
radius: {},
|
132
172
|
size: { default: "1" },
|
133
173
|
asChild: { type: Boolean },
|
134
|
-
as: {
|
135
|
-
},
|
136
|
-
setup(
|
137
|
-
const
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
174
|
+
as: { default: "div" }
|
175
|
+
},
|
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
|
-
as: {
|
156
|
-
},
|
157
|
-
setup(
|
158
|
-
const
|
159
|
-
return (
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
201
|
+
as: { default: "div" }
|
202
|
+
},
|
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
|
-
as: {
|
181
|
-
},
|
182
|
-
setup(
|
183
|
-
const
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
229
|
+
as: { default: "button" }
|
230
|
+
},
|
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: {},
|
@@ -205,18 +260,22 @@ const _a = /* @__PURE__ */ m({
|
|
205
260
|
highContrast: { type: Boolean },
|
206
261
|
disabled: { type: Boolean },
|
207
262
|
asChild: { type: Boolean },
|
208
|
-
as: {
|
209
|
-
},
|
210
|
-
setup(
|
211
|
-
const
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
263
|
+
as: {}
|
264
|
+
},
|
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: {},
|
@@ -232,28 +292,37 @@ const _a = /* @__PURE__ */ m({
|
|
232
292
|
size: { default: "2" },
|
233
293
|
disabled: { type: Boolean },
|
234
294
|
asChild: { type: Boolean },
|
235
|
-
as: {
|
236
|
-
},
|
237
|
-
setup(
|
238
|
-
const
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
295
|
+
as: { default: "button" }
|
296
|
+
},
|
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,57 +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
|
-
|
315
|
-
|
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
|
+
};
|
316
387
|
}
|
317
|
-
})
|
318
|
-
|
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
|
+
},
|
319
395
|
__name: "AlertDialogContent",
|
320
396
|
props: {
|
321
397
|
to: {},
|
@@ -335,8 +411,10 @@ const _a = /* @__PURE__ */ m({
|
|
335
411
|
as: {}
|
336
412
|
},
|
337
413
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
338
|
-
setup(
|
339
|
-
const
|
414
|
+
setup(__props, { emit: __emit }) {
|
415
|
+
const props = __props;
|
416
|
+
const emits = __emit;
|
417
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
340
418
|
"to",
|
341
419
|
"align",
|
342
420
|
"class",
|
@@ -348,49 +426,56 @@ const _a = /* @__PURE__ */ m({
|
|
348
426
|
"minHeight",
|
349
427
|
"maxHeight"
|
350
428
|
]);
|
351
|
-
return (
|
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
|
-
|
390
|
-
|
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
|
+
};
|
391
471
|
}
|
392
|
-
})
|
393
|
-
|
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
|
+
},
|
394
479
|
__name: "DialogContent",
|
395
480
|
props: {
|
396
481
|
to: {},
|
@@ -410,8 +495,10 @@ const _a = /* @__PURE__ */ m({
|
|
410
495
|
as: {}
|
411
496
|
},
|
412
497
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
413
|
-
setup(
|
414
|
-
const
|
498
|
+
setup(__props, { emit: __emit }) {
|
499
|
+
const props = __props;
|
500
|
+
const emits = __emit;
|
501
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
415
502
|
"to",
|
416
503
|
"align",
|
417
504
|
"class",
|
@@ -423,85 +510,94 @@ const _a = /* @__PURE__ */ m({
|
|
423
510
|
"minHeight",
|
424
511
|
"maxHeight"
|
425
512
|
]);
|
426
|
-
return (
|
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
|
-
|
465
|
-
|
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
|
+
};
|
466
555
|
}
|
467
|
-
})
|
556
|
+
});
|
557
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
468
558
|
__name: "DialogHead",
|
469
559
|
props: {
|
470
560
|
title: {}
|
471
561
|
},
|
472
|
-
setup(
|
473
|
-
const
|
474
|
-
return (
|
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
|
-
|
501
|
-
|
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
|
+
};
|
502
593
|
}
|
503
|
-
})
|
504
|
-
|
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
|
+
},
|
505
601
|
__name: "DropdownMenuContent",
|
506
602
|
props: {
|
507
603
|
to: {},
|
@@ -530,44 +626,53 @@ const _a = /* @__PURE__ */ m({
|
|
530
626
|
as: {}
|
531
627
|
},
|
532
628
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
533
|
-
setup(
|
534
|
-
const
|
629
|
+
setup(__props, { emit: __emit }) {
|
630
|
+
const props = __props;
|
631
|
+
const emits = __emit;
|
632
|
+
const forwarded = useForwardPropsEmits(props, emits, [
|
535
633
|
"to",
|
536
634
|
"size",
|
537
635
|
"variant",
|
538
636
|
"color",
|
539
637
|
"highContrast"
|
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
|
-
|
568
|
-
|
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
|
+
};
|
569
672
|
}
|
570
|
-
})
|
673
|
+
});
|
674
|
+
const _hoisted_1$i = ["textContent"];
|
675
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
571
676
|
__name: "DropdownMenuItem",
|
572
677
|
props: {
|
573
678
|
color: {},
|
@@ -575,36 +680,41 @@ const _a = /* @__PURE__ */ m({
|
|
575
680
|
disabled: { type: Boolean },
|
576
681
|
textValue: {},
|
577
682
|
asChild: { type: Boolean },
|
578
|
-
as: {
|
683
|
+
as: {}
|
579
684
|
},
|
580
685
|
emits: ["select"],
|
581
|
-
setup(
|
582
|
-
const
|
583
|
-
|
584
|
-
const
|
585
|
-
|
586
|
-
|
587
|
-
|
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({
|
588
695
|
class: "ui-MenuItem",
|
589
|
-
"data-accent-color":
|
590
|
-
"data-size":
|
591
|
-
"data-variant":
|
592
|
-
"data-high-contrast": ((
|
593
|
-
},
|
594
|
-
default:
|
595
|
-
|
596
|
-
|
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", {
|
597
704
|
key: 0,
|
598
705
|
class: "ui-MenuShortcut",
|
599
|
-
textContent:
|
600
|
-
}, null, 8,
|
706
|
+
textContent: toDisplayString(props.shortcut)
|
707
|
+
}, null, 8, _hoisted_1$i)) : createCommentVNode("", true)
|
601
708
|
]),
|
602
709
|
_: 3
|
603
710
|
}, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
|
604
711
|
};
|
605
712
|
}
|
606
|
-
})
|
607
|
-
|
713
|
+
});
|
714
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
715
|
+
...{
|
716
|
+
inheritAttrs: false
|
717
|
+
},
|
608
718
|
__name: "PopoverContent",
|
609
719
|
props: {
|
610
720
|
to: {},
|
@@ -630,26 +740,31 @@ const _a = /* @__PURE__ */ m({
|
|
630
740
|
disableOutsidePointerEvents: { type: Boolean }
|
631
741
|
},
|
632
742
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
633
|
-
setup(
|
634
|
-
const
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
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
|
+
};
|
651
765
|
}
|
652
|
-
})
|
766
|
+
});
|
767
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
653
768
|
__name: "Switch",
|
654
769
|
props: {
|
655
770
|
color: {},
|
@@ -668,26 +783,31 @@ const _a = /* @__PURE__ */ m({
|
|
668
783
|
required: { type: Boolean }
|
669
784
|
},
|
670
785
|
emits: ["update:modelValue"],
|
671
|
-
setup(
|
672
|
-
const
|
786
|
+
setup(__props, { emit: __emit }) {
|
787
|
+
const emits = __emit;
|
788
|
+
const props = __props;
|
789
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
673
790
|
"color",
|
674
791
|
"size",
|
675
792
|
"variant",
|
676
793
|
"highContrast",
|
677
794
|
"radius"
|
678
795
|
]);
|
679
|
-
return (
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
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
|
+
};
|
689
808
|
}
|
690
|
-
})
|
809
|
+
});
|
810
|
+
const _hoisted_1$h = {
|
691
811
|
key: 0,
|
692
812
|
xmlns: "http://www.w3.org/2000/svg",
|
693
813
|
viewBox: "0 0 24 24",
|
@@ -696,13 +816,16 @@ const _a = /* @__PURE__ */ m({
|
|
696
816
|
"stroke-width": "4",
|
697
817
|
"stroke-linecap": "round",
|
698
818
|
"stroke-linejoin": "round"
|
699
|
-
}
|
819
|
+
};
|
820
|
+
const _hoisted_2$7 = {
|
700
821
|
key: 0,
|
701
822
|
d: "M5 12h14"
|
702
|
-
}
|
823
|
+
};
|
824
|
+
const _hoisted_3$4 = {
|
703
825
|
key: 1,
|
704
826
|
d: "M20 6 9 17l-5-5"
|
705
|
-
}
|
827
|
+
};
|
828
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
706
829
|
__name: "Checkbox",
|
707
830
|
props: {
|
708
831
|
color: {},
|
@@ -720,85 +843,126 @@ const _a = /* @__PURE__ */ m({
|
|
720
843
|
required: { type: Boolean }
|
721
844
|
},
|
722
845
|
emits: ["update:modelValue"],
|
723
|
-
setup(
|
724
|
-
const
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
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
|
+
};
|
744
871
|
}
|
745
|
-
})
|
872
|
+
});
|
873
|
+
const [injectCheckboxGroupRootContext, provideCheckboxGroupRootContext] = createContext("ui_CheckboxGroupRoot");
|
874
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
746
875
|
__name: "CheckboxGroupRoot",
|
747
|
-
props: /* @__PURE__ */
|
876
|
+
props: /* @__PURE__ */ mergeModels({
|
748
877
|
disabled: { type: Boolean },
|
749
878
|
name: {},
|
750
879
|
asChild: { type: Boolean },
|
751
|
-
as: {
|
880
|
+
as: {}
|
752
881
|
}, {
|
753
|
-
modelValue: {
|
882
|
+
"modelValue": {
|
754
883
|
default: []
|
755
884
|
},
|
756
|
-
modelModifiers: {}
|
885
|
+
"modelModifiers": {}
|
757
886
|
}),
|
758
887
|
emits: ["update:modelValue"],
|
759
|
-
setup(
|
760
|
-
const
|
761
|
-
|
762
|
-
|
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);
|
763
923
|
}
|
764
|
-
}
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
selected: u,
|
774
|
-
checked: y,
|
775
|
-
addModelValue: (h) => {
|
776
|
-
var f, B;
|
777
|
-
((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
|
+
}
|
778
933
|
},
|
779
|
-
removeModelValue
|
780
|
-
toggleModelValue: (
|
781
|
-
|
934
|
+
removeModelValue,
|
935
|
+
toggleModelValue: (checked2) => {
|
936
|
+
if (checked2) {
|
937
|
+
modelValue.value = [...allValues.value];
|
938
|
+
} else {
|
939
|
+
modelValue.value = [];
|
940
|
+
}
|
782
941
|
},
|
783
|
-
initAllValue: (
|
784
|
-
|
942
|
+
initAllValue: (value) => {
|
943
|
+
allValues.value.push(value);
|
785
944
|
},
|
786
|
-
removeAllValue: (
|
787
|
-
|
945
|
+
removeAllValue: (value) => {
|
946
|
+
allValues.value.splice(allValues.value.indexOf(value), 1);
|
947
|
+
removeModelValue(value);
|
788
948
|
},
|
789
|
-
disabled
|
790
|
-
name:
|
791
|
-
})
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
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
|
+
};
|
800
963
|
}
|
801
|
-
})
|
964
|
+
});
|
965
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
802
966
|
__name: "CheckboxGroupItem",
|
803
967
|
props: {
|
804
968
|
value: {},
|
@@ -811,31 +975,46 @@ const _a = /* @__PURE__ */ m({
|
|
811
975
|
disabled: { type: Boolean },
|
812
976
|
id: {},
|
813
977
|
asChild: { type: Boolean },
|
814
|
-
as: {
|
978
|
+
as: {},
|
815
979
|
name: {},
|
816
980
|
required: { type: Boolean }
|
817
981
|
},
|
818
|
-
setup(
|
819
|
-
const
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
};
|
827
|
-
|
828
|
-
|
829
|
-
})
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
}
|
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
|
+
};
|
837
1015
|
}
|
838
|
-
})
|
1016
|
+
});
|
1017
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
839
1018
|
__name: "CheckboxGroupControl",
|
840
1019
|
props: {
|
841
1020
|
color: {},
|
@@ -848,27 +1027,33 @@ const _a = /* @__PURE__ */ m({
|
|
848
1027
|
value: {},
|
849
1028
|
id: {},
|
850
1029
|
asChild: { type: Boolean },
|
851
|
-
as: {
|
1030
|
+
as: {},
|
852
1031
|
name: {},
|
853
1032
|
required: { type: Boolean }
|
854
1033
|
},
|
855
|
-
setup(
|
856
|
-
const
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
};
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
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
|
+
};
|
870
1054
|
}
|
871
|
-
})
|
1055
|
+
});
|
1056
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
872
1057
|
__name: "Toggle",
|
873
1058
|
props: {
|
874
1059
|
color: {},
|
@@ -885,26 +1070,31 @@ const _a = /* @__PURE__ */ m({
|
|
885
1070
|
required: { type: Boolean }
|
886
1071
|
},
|
887
1072
|
emits: ["update:modelValue"],
|
888
|
-
setup(
|
889
|
-
const
|
1073
|
+
setup(__props, { emit: __emit }) {
|
1074
|
+
const emits = __emit;
|
1075
|
+
const props = __props;
|
1076
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
890
1077
|
"color",
|
891
1078
|
"size",
|
892
1079
|
"variant",
|
893
1080
|
"highContrast",
|
894
1081
|
"radius"
|
895
1082
|
]);
|
896
|
-
return (
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
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
|
+
};
|
906
1095
|
}
|
907
|
-
})
|
1096
|
+
});
|
1097
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
908
1098
|
__name: "ToggleGroupRoot",
|
909
1099
|
props: {
|
910
1100
|
color: {},
|
@@ -926,54 +1116,69 @@ const _a = /* @__PURE__ */ m({
|
|
926
1116
|
defaultValue: {}
|
927
1117
|
},
|
928
1118
|
emits: ["update:modelValue"],
|
929
|
-
setup(
|
930
|
-
const
|
1119
|
+
setup(__props, { emit: __emit }) {
|
1120
|
+
const emits = __emit;
|
1121
|
+
const props = __props;
|
1122
|
+
const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
|
931
1123
|
"color",
|
932
1124
|
"size",
|
933
1125
|
"variant",
|
934
1126
|
"highContrast",
|
935
1127
|
"radius"
|
936
1128
|
]);
|
937
|
-
return (
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
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
|
+
};
|
947
1141
|
}
|
948
|
-
})
|
1142
|
+
});
|
1143
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
949
1144
|
__name: "ToggleGroupItem",
|
950
1145
|
props: {
|
951
1146
|
value: {},
|
952
1147
|
disabled: { type: Boolean },
|
953
1148
|
asChild: { type: Boolean },
|
954
|
-
as: {
|
955
|
-
},
|
956
|
-
setup(
|
957
|
-
const
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
1149
|
+
as: {}
|
1150
|
+
},
|
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
|
+
};
|
964
1162
|
}
|
965
|
-
})
|
1163
|
+
});
|
1164
|
+
const _hoisted_1$g = ["data-radius", "data-accent-color"];
|
1165
|
+
const _hoisted_2$6 = ["id", "type"];
|
1166
|
+
const _hoisted_3$3 = {
|
966
1167
|
key: 0,
|
967
1168
|
class: "ui-TextFieldSlot",
|
968
1169
|
"data-side": "left"
|
969
|
-
}
|
1170
|
+
};
|
1171
|
+
const _hoisted_4$1 = {
|
970
1172
|
key: 1,
|
971
1173
|
class: "ui-TextFieldSlot",
|
972
1174
|
"data-side": "right"
|
973
|
-
}
|
974
|
-
|
1175
|
+
};
|
1176
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
1177
|
+
...{
|
1178
|
+
inheritAttrs: false
|
1179
|
+
},
|
975
1180
|
__name: "TextField",
|
976
|
-
props: /* @__PURE__ */
|
1181
|
+
props: /* @__PURE__ */ mergeModels({
|
977
1182
|
id: {},
|
978
1183
|
class: {},
|
979
1184
|
size: { default: "2" },
|
@@ -982,57 +1187,78 @@ const _a = /* @__PURE__ */ m({
|
|
982
1187
|
radius: {},
|
983
1188
|
type: { default: "text" }
|
984
1189
|
}, {
|
985
|
-
modelValue: {
|
1190
|
+
"modelValue": {
|
986
1191
|
default: ""
|
987
1192
|
},
|
988
|
-
modelModifiers: {}
|
1193
|
+
"modelModifiers": {}
|
989
1194
|
}),
|
990
1195
|
emits: ["update:modelValue"],
|
991
|
-
setup(
|
992
|
-
const
|
993
|
-
|
994
|
-
|
995
|
-
const
|
996
|
-
if (
|
997
|
-
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;
|
998
1206
|
requestAnimationFrame(() => {
|
999
|
-
|
1207
|
+
input.setSelectionRange(cursorPosition, cursorPosition);
|
1208
|
+
input.focus();
|
1000
1209
|
});
|
1001
|
-
}
|
1002
|
-
|
1003
|
-
|
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;
|
1220
|
+
}
|
1221
|
+
});
|
1222
|
+
const resetClass = computed(() => {
|
1223
|
+
const rv = extractClass(props, ["size", "variant"]);
|
1224
|
+
if (props.class) {
|
1225
|
+
rv.push(props.class);
|
1004
1226
|
}
|
1005
|
-
|
1006
|
-
const u = R(e, ["size", "variant"]);
|
1007
|
-
return e.class && u.push(e.class), u;
|
1227
|
+
return rv;
|
1008
1228
|
});
|
1009
|
-
return (
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
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
|
+
};
|
1031
1253
|
}
|
1032
|
-
})
|
1033
|
-
|
1254
|
+
});
|
1255
|
+
const _hoisted_1$f = ["data-accent-color"];
|
1256
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
1257
|
+
...{
|
1258
|
+
inheritAttrs: false
|
1259
|
+
},
|
1034
1260
|
__name: "TextArea",
|
1035
|
-
props: /* @__PURE__ */
|
1261
|
+
props: /* @__PURE__ */ mergeModels({
|
1036
1262
|
class: {},
|
1037
1263
|
size: { default: "2" },
|
1038
1264
|
variant: { default: "surface" },
|
@@ -1040,60 +1266,78 @@ const _a = /* @__PURE__ */ m({
|
|
1040
1266
|
color: {},
|
1041
1267
|
radius: {}
|
1042
1268
|
}, {
|
1043
|
-
modelValue: {
|
1269
|
+
"modelValue": {
|
1044
1270
|
default: ""
|
1045
1271
|
},
|
1046
|
-
modelModifiers: {}
|
1272
|
+
"modelModifiers": {}
|
1047
1273
|
}),
|
1048
1274
|
emits: ["update:modelValue"],
|
1049
|
-
setup(
|
1050
|
-
const
|
1051
|
-
|
1052
|
-
|
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;
|
1053
1284
|
});
|
1054
|
-
return (
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
"
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
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
|
+
};
|
1064
1297
|
}
|
1065
|
-
})
|
1298
|
+
});
|
1299
|
+
const _hoisted_1$e = ["data-radius"];
|
1300
|
+
const _hoisted_2$5 = ["id"];
|
1301
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
1066
1302
|
__name: "ColorField",
|
1067
|
-
props: /* @__PURE__ */
|
1303
|
+
props: /* @__PURE__ */ mergeModels({
|
1068
1304
|
id: {},
|
1069
1305
|
variant: { default: "solid" },
|
1070
1306
|
size: { default: "2" },
|
1071
1307
|
radius: {}
|
1072
1308
|
}, {
|
1073
|
-
modelValue: {
|
1309
|
+
"modelValue": {
|
1074
1310
|
default: "#000000"
|
1075
1311
|
},
|
1076
|
-
modelModifiers: {}
|
1312
|
+
"modelModifiers": {}
|
1077
1313
|
}),
|
1078
1314
|
emits: ["update:modelValue"],
|
1079
|
-
setup(
|
1080
|
-
const
|
1081
|
-
|
1082
|
-
|
1083
|
-
"
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
"
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
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
|
+
};
|
1095
1337
|
}
|
1096
|
-
})
|
1338
|
+
});
|
1339
|
+
const [injectSelectRootContext, provideSelectRootContext] = createContext("ui_SelectRoot");
|
1340
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
1097
1341
|
__name: "SelectRoot",
|
1098
1342
|
props: {
|
1099
1343
|
size: { default: "2" },
|
@@ -1112,21 +1356,30 @@ const _a = /* @__PURE__ */ m({
|
|
1112
1356
|
required: { type: Boolean }
|
1113
1357
|
},
|
1114
1358
|
emits: ["update:modelValue", "update:open"],
|
1115
|
-
setup(
|
1116
|
-
const
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
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
|
+
};
|
1127
1377
|
}
|
1128
|
-
})
|
1129
|
-
|
1378
|
+
});
|
1379
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
1380
|
+
...{
|
1381
|
+
inheritAttrs: false
|
1382
|
+
},
|
1130
1383
|
__name: "SelectContent",
|
1131
1384
|
props: {
|
1132
1385
|
to: {},
|
@@ -1152,67 +1405,81 @@ const _a = /* @__PURE__ */ m({
|
|
1152
1405
|
asChild: { type: Boolean },
|
1153
1406
|
as: {}
|
1154
1407
|
},
|
1155
|
-
setup(
|
1156
|
-
const
|
1157
|
-
|
1158
|
-
|
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;
|
1159
1422
|
});
|
1160
|
-
return (
|
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
|
-
|
1212
|
-
|
1213
|
-
|
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
|
+
};
|
1214
1479
|
}
|
1215
|
-
})
|
1480
|
+
});
|
1481
|
+
const _hoisted_1$d = { class: "ui-SelectTriggerInner" };
|
1482
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
1216
1483
|
__name: "SelectTrigger",
|
1217
1484
|
props: {
|
1218
1485
|
variant: { default: "surface" },
|
@@ -1223,104 +1490,126 @@ const _a = /* @__PURE__ */ m({
|
|
1223
1490
|
asChild: { type: Boolean },
|
1224
1491
|
as: {}
|
1225
1492
|
},
|
1226
|
-
setup(
|
1227
|
-
const
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
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
|
+
})
|
1249
1531
|
]),
|
1250
|
-
_:
|
1251
|
-
}
|
1532
|
+
_: 1
|
1533
|
+
})
|
1252
1534
|
]),
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
class: "ui-SelectIcon",
|
1257
|
-
icon: "radix-icons:chevron-down"
|
1258
|
-
})
|
1259
|
-
]),
|
1260
|
-
_: 1
|
1261
|
-
})
|
1262
|
-
]),
|
1263
|
-
_: 3
|
1264
|
-
}, 8, ["class", "disabled", "data-accent-color", "data-radius"]));
|
1535
|
+
_: 3
|
1536
|
+
}, 8, ["class", "disabled", "data-accent-color", "data-radius"]);
|
1537
|
+
};
|
1265
1538
|
}
|
1266
|
-
})
|
1539
|
+
});
|
1540
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
1267
1541
|
__name: "SelectItem",
|
1268
1542
|
props: {
|
1269
1543
|
value: {},
|
1270
1544
|
disabled: { type: Boolean },
|
1271
1545
|
textValue: {},
|
1272
1546
|
asChild: { type: Boolean },
|
1273
|
-
as: {
|
1274
|
-
},
|
1275
|
-
setup(
|
1276
|
-
const
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1547
|
+
as: {}
|
1548
|
+
},
|
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
|
+
};
|
1572
|
+
}
|
1573
|
+
});
|
1574
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
1296
1575
|
__name: "SelectLabel",
|
1297
1576
|
props: {
|
1298
1577
|
for: {},
|
1299
1578
|
asChild: { type: Boolean },
|
1300
|
-
as: {
|
1301
|
-
},
|
1302
|
-
setup(
|
1303
|
-
const
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1579
|
+
as: {}
|
1580
|
+
},
|
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
|
+
};
|
1310
1593
|
}
|
1311
|
-
})
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
}
|
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 = {
|
1317
1604
|
class: "ui-SelectSeparator",
|
1318
1605
|
"aria-hidden": "true"
|
1319
1606
|
};
|
1320
|
-
function
|
1321
|
-
return
|
1607
|
+
function _sfc_render(_ctx, _cache) {
|
1608
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c);
|
1322
1609
|
}
|
1323
|
-
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({
|
1324
1613
|
__name: "ComboboxRoot",
|
1325
1614
|
props: {
|
1326
1615
|
size: { default: "2" },
|
@@ -1333,7 +1622,7 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1333
1622
|
ignoreFilter: { type: Boolean },
|
1334
1623
|
modelValue: {},
|
1335
1624
|
defaultValue: {},
|
1336
|
-
multiple: { type: Boolean, default:
|
1625
|
+
multiple: { type: Boolean, default: false },
|
1337
1626
|
dir: {},
|
1338
1627
|
disabled: { type: Boolean },
|
1339
1628
|
highlightOnHover: { type: Boolean },
|
@@ -1344,26 +1633,38 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1344
1633
|
required: { type: Boolean }
|
1345
1634
|
},
|
1346
1635
|
emits: ["update:modelValue", "highlight", "update:open"],
|
1347
|
-
setup(
|
1348
|
-
const
|
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
|
+
};
|
1361
1656
|
}
|
1362
|
-
})
|
1657
|
+
});
|
1658
|
+
const _hoisted_1$b = {
|
1363
1659
|
key: 0,
|
1364
1660
|
class: "ui-ComboboxValues"
|
1365
|
-
}
|
1366
|
-
|
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
|
+
},
|
1367
1668
|
__name: "ComboboxInput",
|
1368
1669
|
props: {
|
1369
1670
|
variant: { default: "surface" },
|
@@ -1377,70 +1678,104 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1377
1678
|
as: {}
|
1378
1679
|
},
|
1379
1680
|
emits: ["update:modelValue"],
|
1380
|
-
setup(
|
1381
|
-
const
|
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
|
-
|
1415
|
-
|
1416
|
-
|
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),
|
1417
1760
|
variant: void 0,
|
1418
1761
|
radius: void 0
|
1419
|
-
},
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
radius: void 0
|
1431
|
-
}), null, 16)),
|
1432
|
-
p(a(wt), { class: "ui-ComboboxTrigger" }, {
|
1433
|
-
default: c(() => [
|
1434
|
-
p(a(k), { icon: "radix-icons:chevron-down" })
|
1435
|
-
]),
|
1436
|
-
_: 1
|
1437
|
-
})
|
1438
|
-
]),
|
1439
|
-
_: 3
|
1440
|
-
}, 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
|
+
};
|
1441
1773
|
}
|
1442
|
-
})
|
1443
|
-
|
1774
|
+
});
|
1775
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
1776
|
+
...{
|
1777
|
+
inheritAttrs: false
|
1778
|
+
},
|
1444
1779
|
__name: "ComboboxContent",
|
1445
1780
|
props: {
|
1446
1781
|
to: {},
|
@@ -1468,137 +1803,172 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1468
1803
|
disableOutsidePointerEvents: { type: Boolean }
|
1469
1804
|
},
|
1470
1805
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
1471
|
-
setup(
|
1472
|
-
const { forwardRef
|
1473
|
-
|
1474
|
-
|
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;
|
1475
1818
|
});
|
1476
|
-
return (
|
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
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
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
|
+
};
|
1531
1876
|
}
|
1532
|
-
})
|
1877
|
+
});
|
1878
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
1533
1879
|
__name: "ComboboxItem",
|
1534
1880
|
props: {
|
1535
1881
|
textValue: {},
|
1536
1882
|
value: {},
|
1537
1883
|
disabled: { type: Boolean },
|
1538
1884
|
asChild: { type: Boolean },
|
1539
|
-
as: {
|
1540
|
-
},
|
1541
|
-
setup(
|
1542
|
-
const
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1885
|
+
as: {}
|
1886
|
+
},
|
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
|
+
};
|
1555
1904
|
}
|
1556
|
-
})
|
1905
|
+
});
|
1906
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
1557
1907
|
__name: "ComboboxLabel",
|
1558
1908
|
props: {
|
1559
1909
|
for: {},
|
1560
1910
|
asChild: { type: Boolean },
|
1561
|
-
as: {
|
1562
|
-
},
|
1563
|
-
setup(
|
1564
|
-
const
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1911
|
+
as: {}
|
1912
|
+
},
|
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
|
+
};
|
1571
1925
|
}
|
1572
|
-
})
|
1926
|
+
});
|
1927
|
+
const _hoisted_1$a = ["data-accent-color"];
|
1928
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
1573
1929
|
__name: "Radio",
|
1574
|
-
props: /* @__PURE__ */
|
1930
|
+
props: /* @__PURE__ */ mergeModels({
|
1575
1931
|
color: {},
|
1576
1932
|
size: { default: "2" },
|
1577
1933
|
variant: { default: "surface" },
|
1578
1934
|
highContrast: { type: Boolean }
|
1579
1935
|
}, {
|
1580
|
-
modelValue: {
|
1936
|
+
"modelValue": {
|
1581
1937
|
default: ""
|
1582
1938
|
},
|
1583
|
-
modelModifiers: {}
|
1939
|
+
"modelModifiers": {}
|
1584
1940
|
}),
|
1585
1941
|
emits: ["update:modelValue"],
|
1586
|
-
setup(
|
1587
|
-
const
|
1588
|
-
|
1589
|
-
|
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;
|
1590
1953
|
}
|
1591
|
-
})
|
1592
|
-
|
1593
|
-
"
|
1594
|
-
|
1595
|
-
|
1596
|
-
"
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
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
|
+
};
|
1600
1968
|
}
|
1601
|
-
})
|
1969
|
+
});
|
1970
|
+
const [injectRadioGroupRootContext, provideRadioGroupRootContext] = createContext("ui_RadioGroupRoot");
|
1971
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
1602
1972
|
__name: "RadioGroupRoot",
|
1603
1973
|
props: {
|
1604
1974
|
color: {},
|
@@ -1617,76 +1987,92 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1617
1987
|
required: { type: Boolean }
|
1618
1988
|
},
|
1619
1989
|
emits: ["update:modelValue"],
|
1620
|
-
setup(
|
1621
|
-
const
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
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
|
+
};
|
1628
2004
|
}
|
1629
|
-
})
|
2005
|
+
});
|
2006
|
+
const _hoisted_1$9 = { class: "ui-RadioGroupItem" };
|
2007
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
1630
2008
|
__name: "RadioGroupItem",
|
1631
2009
|
props: {
|
1632
2010
|
id: {},
|
1633
2011
|
value: {},
|
1634
2012
|
disabled: { type: Boolean },
|
1635
2013
|
asChild: { type: Boolean },
|
1636
|
-
as: {
|
2014
|
+
as: {},
|
1637
2015
|
name: {},
|
1638
2016
|
required: { type: Boolean }
|
1639
2017
|
},
|
1640
|
-
setup(
|
1641
|
-
const
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
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}`
|
1646
2027
|
];
|
1647
|
-
|
2028
|
+
if ((_a = rootContext.highContrast) == null ? void 0 : _a.value) {
|
2029
|
+
rv.push("r-high-contrast");
|
2030
|
+
}
|
2031
|
+
return rv;
|
1648
2032
|
});
|
1649
|
-
return (
|
1650
|
-
var
|
1651
|
-
return
|
1652
|
-
|
1653
|
-
class: ["ui-Radio",
|
1654
|
-
"data-accent-color": (
|
1655
|
-
},
|
1656
|
-
|
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")
|
1657
2041
|
]);
|
1658
2042
|
};
|
1659
2043
|
}
|
1660
|
-
})
|
2044
|
+
});
|
2045
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
1661
2046
|
__name: "RadioCardsItem",
|
1662
2047
|
props: {
|
1663
2048
|
id: {},
|
1664
2049
|
value: {},
|
1665
2050
|
disabled: { type: Boolean },
|
1666
2051
|
asChild: { type: Boolean },
|
1667
|
-
as: {
|
2052
|
+
as: {},
|
1668
2053
|
name: {},
|
1669
2054
|
required: { type: Boolean }
|
1670
2055
|
},
|
1671
|
-
setup(
|
1672
|
-
const
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
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({
|
1678
2064
|
class: "ui-RadioCardsItem",
|
1679
|
-
"data-accent-color": (
|
1680
|
-
"data-size":
|
1681
|
-
"data-variant":
|
1682
|
-
"data-high-contrast": (
|
1683
|
-
}, { ...
|
1684
|
-
default:
|
1685
|
-
|
1686
|
-
"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
|
1687
2073
|
}, {
|
1688
|
-
default:
|
1689
|
-
|
2074
|
+
default: withCtx(() => [
|
2075
|
+
renderSlot(_ctx.$slots, "default")
|
1690
2076
|
]),
|
1691
2077
|
_: 3
|
1692
2078
|
}, 8, ["as-child"])
|
@@ -1695,7 +2081,8 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1695
2081
|
}, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
|
1696
2082
|
};
|
1697
2083
|
}
|
1698
|
-
})
|
2084
|
+
});
|
2085
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
1699
2086
|
__name: "RadioTabsList",
|
1700
2087
|
props: {
|
1701
2088
|
size: { default: "2" },
|
@@ -1711,60 +2098,77 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1711
2098
|
required: { type: Boolean }
|
1712
2099
|
},
|
1713
2100
|
emits: ["update:modelValue"],
|
1714
|
-
setup(
|
1715
|
-
const
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
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
|
+
};
|
1724
2115
|
}
|
1725
|
-
})
|
2116
|
+
});
|
2117
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
1726
2118
|
__name: "TabsList",
|
1727
2119
|
props: {
|
1728
2120
|
size: { default: "2" },
|
1729
2121
|
color: {},
|
1730
2122
|
highContrast: { type: Boolean }
|
1731
2123
|
},
|
1732
|
-
setup(
|
1733
|
-
const
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
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
|
+
};
|
1744
2141
|
}
|
1745
|
-
})
|
2142
|
+
});
|
2143
|
+
const _hoisted_1$8 = { class: "ui-TabTriggerInner" };
|
2144
|
+
const _hoisted_2$3 = { class: "ui-TabTriggerInnerHidden" };
|
2145
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
1746
2146
|
__name: "TabsTrigger",
|
1747
2147
|
props: {
|
1748
2148
|
value: {},
|
1749
2149
|
disabled: { type: Boolean },
|
1750
2150
|
asChild: { type: Boolean },
|
1751
|
-
as: {
|
1752
|
-
},
|
1753
|
-
setup(
|
1754
|
-
const
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
2151
|
+
as: {}
|
2152
|
+
},
|
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
|
+
])
|
1759
2165
|
]),
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
]),
|
1764
|
-
_: 3
|
1765
|
-
}, 16));
|
2166
|
+
_: 3
|
2167
|
+
}, 16);
|
2168
|
+
};
|
1766
2169
|
}
|
1767
|
-
})
|
2170
|
+
});
|
2171
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
1768
2172
|
__name: "AccordionRoot",
|
1769
2173
|
props: {
|
1770
2174
|
size: { default: "1" },
|
@@ -1780,131 +2184,164 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1780
2184
|
defaultValue: {}
|
1781
2185
|
},
|
1782
2186
|
emits: ["update:modelValue"],
|
1783
|
-
setup(
|
1784
|
-
const
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
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
|
+
};
|
1793
2201
|
}
|
1794
|
-
})
|
2202
|
+
});
|
2203
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
1795
2204
|
__name: "AccordionItem",
|
1796
2205
|
props: {
|
1797
2206
|
disabled: { type: Boolean },
|
1798
2207
|
value: {},
|
1799
2208
|
unmountOnHide: { type: Boolean },
|
1800
2209
|
asChild: { type: Boolean },
|
1801
|
-
as: {
|
1802
|
-
},
|
1803
|
-
setup(
|
1804
|
-
const
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
2210
|
+
as: {}
|
2211
|
+
},
|
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
|
+
};
|
1811
2223
|
}
|
1812
|
-
})
|
1813
|
-
|
2224
|
+
});
|
2225
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
2226
|
+
...{
|
2227
|
+
inheritAttrs: false
|
2228
|
+
},
|
1814
2229
|
__name: "AccordionContent",
|
1815
2230
|
props: {
|
1816
2231
|
forceMount: { type: Boolean },
|
1817
2232
|
asChild: { type: Boolean },
|
1818
|
-
as: {
|
1819
|
-
},
|
1820
|
-
setup(
|
1821
|
-
const
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
2233
|
+
as: {}
|
2234
|
+
},
|
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
|
+
};
|
1830
2248
|
}
|
1831
|
-
})
|
2249
|
+
});
|
2250
|
+
const _hoisted_1$7 = ["data-accent-color"];
|
2251
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
1832
2252
|
__name: "PlusMinusIcon",
|
1833
2253
|
props: {
|
1834
2254
|
color: { default: void 0 },
|
1835
2255
|
size: { default: "1" }
|
1836
2256
|
},
|
1837
|
-
setup(
|
1838
|
-
const
|
1839
|
-
return (
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
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
|
+
};
|
1846
2268
|
}
|
1847
|
-
})
|
2269
|
+
});
|
2270
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
1848
2271
|
__name: "ChevronIcon",
|
1849
2272
|
props: {
|
1850
2273
|
arrowTransform: { default: "right-down" }
|
1851
2274
|
},
|
1852
|
-
setup(
|
1853
|
-
return (
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
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
|
+
};
|
1858
2283
|
}
|
1859
|
-
})
|
2284
|
+
});
|
2285
|
+
const _hoisted_1$6 = { class: "ui-AccordionTriggerText" };
|
2286
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
1860
2287
|
__name: "AccordionTrigger",
|
1861
2288
|
props: {
|
1862
2289
|
indicator: { default: "chevron" },
|
1863
2290
|
asChild: { type: Boolean },
|
1864
2291
|
as: {}
|
1865
2292
|
},
|
1866
|
-
setup(
|
1867
|
-
const
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
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)
|
1874
2311
|
]),
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
})) : e.indicator === "chevron" ? (r(), d(jo, {
|
1879
|
-
key: 1,
|
1880
|
-
"arrow-transform": "down-up"
|
1881
|
-
})) : z("", !0)
|
1882
|
-
]),
|
1883
|
-
_: 3
|
1884
|
-
}, 16, ["class"]));
|
2312
|
+
_: 3
|
2313
|
+
}, 16, ["class"]);
|
2314
|
+
};
|
1885
2315
|
}
|
1886
|
-
})
|
1887
|
-
|
2316
|
+
});
|
2317
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
2318
|
+
...{
|
2319
|
+
inheritAttrs: false
|
2320
|
+
},
|
1888
2321
|
__name: "CollapsibleContent",
|
1889
2322
|
props: {
|
1890
2323
|
forceMount: { type: Boolean },
|
1891
2324
|
asChild: { type: Boolean },
|
1892
|
-
as: {
|
1893
|
-
},
|
1894
|
-
setup(
|
1895
|
-
const
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
2325
|
+
as: {}
|
2326
|
+
},
|
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
|
+
};
|
1904
2340
|
}
|
1905
|
-
})
|
2341
|
+
});
|
2342
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
1906
2343
|
__name: "Pagination",
|
1907
|
-
props: /* @__PURE__ */
|
2344
|
+
props: /* @__PURE__ */ mergeModels({
|
1908
2345
|
total: {},
|
1909
2346
|
perpage: { default: 10 },
|
1910
2347
|
edge: { default: 2 },
|
@@ -1917,160 +2354,195 @@ const Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [zo, Io] = oe("ui_ComboboxR
|
|
1917
2354
|
asChild: { type: Boolean },
|
1918
2355
|
as: {}
|
1919
2356
|
}, {
|
1920
|
-
page: { required:
|
1921
|
-
pageModifiers: {}
|
2357
|
+
"page": { required: true },
|
2358
|
+
"pageModifiers": {}
|
1922
2359
|
}),
|
1923
2360
|
emits: ["update:page"],
|
1924
|
-
setup(
|
1925
|
-
const
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
disabled: e.disabled
|
1932
|
-
})), n = C(() => {
|
1933
|
-
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, M = v > B && t.value + e.edge + 2 < v, H = [];
|
1934
|
-
let K = 2, J = v - 1;
|
1935
|
-
A && !M ? K = Math.max(4, v - 2 * e.edge - 2) : !A && M ? J = Math.min(2 * e.edge + 3, v - 1) : A && M && (K = t.value - e.edge, J = t.value + e.edge);
|
1936
|
-
for (let X = K; X <= J; X++)
|
1937
|
-
H.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(() => {
|
1938
2368
|
return {
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
2369
|
+
color: props.color,
|
2370
|
+
radius: props.radius,
|
2371
|
+
variant: props.variant,
|
2372
|
+
size: props.size,
|
2373
|
+
highContrast: props.highContrast,
|
2374
|
+
disabled: props.disabled
|
1945
2375
|
};
|
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 Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [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 Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [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 Ga = /* @__PURE__ */ Bo(xo, [["render", wo]]), [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
|
-
return `${(D = h.value) == null ? void 0 : D.prefix}:${w}`;
|
2413
|
-
})) : S;
|
2414
|
-
}), me = C(() => l.value === "search" ? v.value : l.value === "collection" ? Re.value : []), Pe = C(() => {
|
2415
|
-
const S = (u.value - 1) * t.perpage, w = u.value * t.perpage;
|
2416
|
-
return me.value.slice(S, w);
|
3039
|
+
return { ...collection, items };
|
3040
|
+
}).filter((collection) => collection.items.length !== 0);
|
2417
3041
|
});
|
2418
|
-
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2428
|
-
|
2429
|
-
|
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);
|
3078
|
+
});
|
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
|
-
|
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))
|
2456
3128
|
], 512), [
|
2457
|
-
[
|
3129
|
+
[vShow, shouldDisplay.value === "all"]
|
2458
3130
|
]),
|
2459
|
-
|
2460
|
-
|
2461
|
-
|
3131
|
+
shouldDisplay.value !== "all" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
3132
|
+
createElementVNode("div", _hoisted_10, [
|
3133
|
+
createVNode(_sfc_main$U, {
|
2462
3134
|
type: "button",
|
2463
3135
|
variant: "surface",
|
2464
3136
|
color: "gray",
|
2465
|
-
onClick:
|
3137
|
+
onClick: withModifiers(reset, ["prevent"])
|
2466
3138
|
}, {
|
2467
|
-
default:
|
2468
|
-
|
3139
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
3140
|
+
createTextVNode(" Back ")
|
2469
3141
|
])),
|
2470
3142
|
_: 1,
|
2471
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
|
};
|