@typlog/ui 0.12.2 → 0.12.3
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/components/badge.css +13 -11
- package/components/checkbox.css +11 -9
- package/components/dropdown.css +14 -5
- package/components/{scrollarea.css → scroll-area.css} +14 -5
- package/components/separator.css +11 -9
- package/components/table.css +15 -7
- package/components/tabs.css +25 -26
- package/components/toggle.css +37 -29
- package/components.css +502 -272
- package/components.d.ts +179 -54
- package/components.js +614 -383
- package/package.json +1 -1
- package/components/dialog.css +0 -159
package/components.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, markRaw, createElementBlock, createElementVNode, computed, normalizeClass, createTextVNode, toDisplayString, createCommentVNode,
|
|
2
|
-
import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxEmpty, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, useId, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport,
|
|
3
|
-
import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
|
1
|
+
import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, renderSlot, markRaw, createElementBlock, createElementVNode, computed, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, normalizeProps, guardReactiveProps, useAttrs, mergeModels, useTemplateRef, useModel, withDirectives, isRef, vModelDynamic, vModelText, onMounted, Fragment, ref, watch, renderList, withModifiers, vModelRadio, effectScope, createStaticVNode, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, DialogClose, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, NavigationMenuRoot, NavigationMenuViewport, NavigationMenuList, NavigationMenuIndicator, NavigationMenuLink, NavigationMenuTrigger, NavigationMenuContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxEmpty, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, useId, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport, ProgressRoot, ProgressIndicator } from "reka-ui";
|
|
3
|
+
import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose as DialogClose2, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, NavigationMenuItem, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
|
4
4
|
import { Icon } from "@iconify/vue";
|
|
5
5
|
const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
|
|
6
|
-
const _sfc_main$
|
|
6
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
inheritAttrs: false
|
|
9
|
+
},
|
|
7
10
|
__name: "ThemeProvider",
|
|
8
11
|
props: {
|
|
9
12
|
accentColor: { default: "indigo" },
|
|
@@ -29,7 +32,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
29
32
|
return (_ctx, _cache) => {
|
|
30
33
|
return openBlock(), createBlock(unref(TooltipProvider), null, {
|
|
31
34
|
default: withCtx(() => [
|
|
32
|
-
createVNode(unref(Primitive), {
|
|
35
|
+
createVNode(unref(Primitive), mergeProps({
|
|
33
36
|
class: "ui-root",
|
|
34
37
|
"data-accent-color": unref(accentColor),
|
|
35
38
|
"data-gray-color": unref(grayColor),
|
|
@@ -39,32 +42,32 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
39
42
|
"data-has-background": unref(hasBackground),
|
|
40
43
|
as: props.as,
|
|
41
44
|
"as-child": props.asChild
|
|
42
|
-
}, {
|
|
45
|
+
}, _ctx.$attrs), {
|
|
43
46
|
default: withCtx(() => [
|
|
44
47
|
renderSlot(_ctx.$slots, "default")
|
|
45
48
|
]),
|
|
46
49
|
_: 3
|
|
47
|
-
},
|
|
50
|
+
}, 16, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-panel-background", "data-has-background", "as", "as-child"])
|
|
48
51
|
]),
|
|
49
52
|
_: 3
|
|
50
53
|
});
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
|
-
const _hoisted_1$
|
|
57
|
+
const _hoisted_1$w = {
|
|
55
58
|
viewBox: "0 0 24 24",
|
|
56
59
|
width: "1em",
|
|
57
60
|
height: "1em"
|
|
58
61
|
};
|
|
59
|
-
function render$
|
|
60
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
62
|
+
function render$a(_ctx, _cache) {
|
|
63
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$w, _cache[0] || (_cache[0] = [
|
|
61
64
|
createElementVNode("path", {
|
|
62
65
|
fill: "currentColor",
|
|
63
66
|
d: "M4 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4"
|
|
64
67
|
}, null, -1)
|
|
65
68
|
]));
|
|
66
69
|
}
|
|
67
|
-
const UserIcon = markRaw({ name: "ri-user-line", render: render$
|
|
70
|
+
const UserIcon = markRaw({ name: "ri-user-line", render: render$a });
|
|
68
71
|
function useForwardPropsWithout(props, exclude) {
|
|
69
72
|
const parsedProps = useForwardProps(props);
|
|
70
73
|
return computed(() => ({
|
|
@@ -111,7 +114,7 @@ function kebabize(str) {
|
|
|
111
114
|
function _kebabReplace(str, ofs) {
|
|
112
115
|
return (ofs ? "-" : "") + str.toLowerCase();
|
|
113
116
|
}
|
|
114
|
-
const _sfc_main
|
|
117
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
115
118
|
__name: "Avatar",
|
|
116
119
|
props: {
|
|
117
120
|
alt: {},
|
|
@@ -171,7 +174,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
171
174
|
};
|
|
172
175
|
}
|
|
173
176
|
});
|
|
174
|
-
const _sfc_main$
|
|
177
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
175
178
|
__name: "Badge",
|
|
176
179
|
props: {
|
|
177
180
|
variant: { default: "soft" },
|
|
@@ -201,7 +204,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
201
204
|
};
|
|
202
205
|
}
|
|
203
206
|
});
|
|
204
|
-
const _sfc_main$
|
|
207
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
205
208
|
__name: "Card",
|
|
206
209
|
props: {
|
|
207
210
|
variant: { default: "surface" },
|
|
@@ -228,7 +231,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
228
231
|
};
|
|
229
232
|
}
|
|
230
233
|
});
|
|
231
|
-
const _sfc_main$
|
|
234
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
232
235
|
__name: "Button",
|
|
233
236
|
props: {
|
|
234
237
|
variant: { default: "solid" },
|
|
@@ -261,7 +264,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
261
264
|
};
|
|
262
265
|
}
|
|
263
266
|
});
|
|
264
|
-
const _sfc_main$
|
|
267
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
265
268
|
__name: "IconButton",
|
|
266
269
|
props: {
|
|
267
270
|
variant: { default: "solid" },
|
|
@@ -294,13 +297,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
294
297
|
};
|
|
295
298
|
}
|
|
296
299
|
});
|
|
297
|
-
const _hoisted_1$
|
|
300
|
+
const _hoisted_1$v = {
|
|
298
301
|
viewBox: "0 0 15 15",
|
|
299
302
|
width: "1em",
|
|
300
303
|
height: "1em"
|
|
301
304
|
};
|
|
302
|
-
function render$
|
|
303
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
305
|
+
function render$9(_ctx, _cache) {
|
|
306
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$v, _cache[0] || (_cache[0] = [
|
|
304
307
|
createElementVNode("path", {
|
|
305
308
|
fill: "currentColor",
|
|
306
309
|
"fill-rule": "evenodd",
|
|
@@ -309,8 +312,8 @@ function render$8(_ctx, _cache) {
|
|
|
309
312
|
}, null, -1)
|
|
310
313
|
]));
|
|
311
314
|
}
|
|
312
|
-
const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$
|
|
313
|
-
const _sfc_main$
|
|
315
|
+
const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$9 });
|
|
316
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
314
317
|
__name: "CloseButton",
|
|
315
318
|
props: {
|
|
316
319
|
variant: { default: "ghost" },
|
|
@@ -343,7 +346,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
343
346
|
};
|
|
344
347
|
}
|
|
345
348
|
});
|
|
346
|
-
const _sfc_main
|
|
349
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
347
350
|
__name: "ScrollArea",
|
|
348
351
|
props: {
|
|
349
352
|
size: { default: "1" },
|
|
@@ -407,7 +410,159 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
407
410
|
};
|
|
408
411
|
}
|
|
409
412
|
});
|
|
410
|
-
const _sfc_main$
|
|
413
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
414
|
+
__name: "ThemeWrapper",
|
|
415
|
+
props: {
|
|
416
|
+
accentColor: {},
|
|
417
|
+
radius: {}
|
|
418
|
+
},
|
|
419
|
+
setup(__props) {
|
|
420
|
+
const props = __props;
|
|
421
|
+
const theme = injectThemeContext();
|
|
422
|
+
return (_ctx, _cache) => {
|
|
423
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
424
|
+
class: "ui-root",
|
|
425
|
+
"data-accent-color": props.accentColor || unref(theme).accentColor.value,
|
|
426
|
+
"data-gray-color": unref(theme).grayColor.value,
|
|
427
|
+
"data-radius": props.radius || unref(theme).radius.value,
|
|
428
|
+
"data-scaling": unref(theme).scaling.value,
|
|
429
|
+
"as-child": ""
|
|
430
|
+
}, {
|
|
431
|
+
default: withCtx(() => [
|
|
432
|
+
renderSlot(_ctx.$slots, "default")
|
|
433
|
+
]),
|
|
434
|
+
_: 3
|
|
435
|
+
}, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"]);
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
const _hoisted_1$u = ["textContent"];
|
|
440
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
441
|
+
...{
|
|
442
|
+
inheritAttrs: false
|
|
443
|
+
},
|
|
444
|
+
__name: "Tooltip",
|
|
445
|
+
props: {
|
|
446
|
+
content: {},
|
|
447
|
+
maxWidth: { default: "360px" },
|
|
448
|
+
color: { default: "gray" },
|
|
449
|
+
forceMount: { type: Boolean },
|
|
450
|
+
ariaLabel: {},
|
|
451
|
+
asChild: { type: Boolean },
|
|
452
|
+
as: {},
|
|
453
|
+
side: { default: "top" },
|
|
454
|
+
sideOffset: { default: 4 },
|
|
455
|
+
align: {},
|
|
456
|
+
alignOffset: {},
|
|
457
|
+
avoidCollisions: { type: Boolean, default: true },
|
|
458
|
+
collisionBoundary: {},
|
|
459
|
+
collisionPadding: { default: 10 },
|
|
460
|
+
arrowPadding: {},
|
|
461
|
+
sticky: {},
|
|
462
|
+
hideWhenDetached: { type: Boolean },
|
|
463
|
+
positionStrategy: {},
|
|
464
|
+
updatePositionStrategy: {}
|
|
465
|
+
},
|
|
466
|
+
setup(__props) {
|
|
467
|
+
const props = __props;
|
|
468
|
+
return (_ctx, _cache) => {
|
|
469
|
+
return openBlock(), createBlock(unref(TooltipRoot), null, {
|
|
470
|
+
default: withCtx(() => [
|
|
471
|
+
createVNode(unref(TooltipTrigger), mergeProps({
|
|
472
|
+
as: props.as,
|
|
473
|
+
"as-child": props.asChild
|
|
474
|
+
}, _ctx.$attrs), {
|
|
475
|
+
default: withCtx(() => [
|
|
476
|
+
renderSlot(_ctx.$slots, "default")
|
|
477
|
+
]),
|
|
478
|
+
_: 3
|
|
479
|
+
}, 16, ["as", "as-child"]),
|
|
480
|
+
createVNode(unref(TooltipPortal), null, {
|
|
481
|
+
default: withCtx(() => [
|
|
482
|
+
createVNode(_sfc_main$_, null, {
|
|
483
|
+
default: withCtx(() => [
|
|
484
|
+
createVNode(unref(TooltipContent), {
|
|
485
|
+
class: "ui-Tooltip",
|
|
486
|
+
align: props.align,
|
|
487
|
+
"align-offset": props.alignOffset,
|
|
488
|
+
"aria-label": props.ariaLabel,
|
|
489
|
+
"arrow-padding": props.arrowPadding,
|
|
490
|
+
"avoid-collisions": props.avoidCollisions,
|
|
491
|
+
"collision-boundary": props.collisionBoundary,
|
|
492
|
+
"collision-padding": props.collisionPadding,
|
|
493
|
+
"hide-when-detached": props.hideWhenDetached,
|
|
494
|
+
side: props.side,
|
|
495
|
+
"side-offset": props.sideOffset,
|
|
496
|
+
sticky: props.sticky,
|
|
497
|
+
"data-accent-color": props.color,
|
|
498
|
+
style: normalizeStyle({ maxWidth: props.maxWidth })
|
|
499
|
+
}, {
|
|
500
|
+
default: withCtx(() => [
|
|
501
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
502
|
+
createElementVNode("p", {
|
|
503
|
+
class: "ui-TooltipText",
|
|
504
|
+
textContent: toDisplayString(props.content)
|
|
505
|
+
}, null, 8, _hoisted_1$u)
|
|
506
|
+
]),
|
|
507
|
+
createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
|
|
508
|
+
]),
|
|
509
|
+
_: 3
|
|
510
|
+
}, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky", "data-accent-color", "style"])
|
|
511
|
+
]),
|
|
512
|
+
_: 3
|
|
513
|
+
})
|
|
514
|
+
]),
|
|
515
|
+
_: 3
|
|
516
|
+
})
|
|
517
|
+
]),
|
|
518
|
+
_: 3
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
524
|
+
__name: "DialogCloseButton",
|
|
525
|
+
props: {
|
|
526
|
+
tooltip: { default: "Close" },
|
|
527
|
+
variant: { default: "ghost" },
|
|
528
|
+
color: { default: "gray" },
|
|
529
|
+
radius: {},
|
|
530
|
+
size: { default: "2" },
|
|
531
|
+
highContrast: { type: Boolean, default: false },
|
|
532
|
+
disabled: { type: Boolean },
|
|
533
|
+
as: { default: "button" },
|
|
534
|
+
asChild: { type: Boolean }
|
|
535
|
+
},
|
|
536
|
+
setup(__props) {
|
|
537
|
+
const props = __props;
|
|
538
|
+
const forwarded = useForwardPropsWithout(props, ["tooltip"]);
|
|
539
|
+
return (_ctx, _cache) => {
|
|
540
|
+
return openBlock(), createBlock(_sfc_main$Z, {
|
|
541
|
+
content: props.tooltip,
|
|
542
|
+
"as-child": ""
|
|
543
|
+
}, {
|
|
544
|
+
default: withCtx(() => [
|
|
545
|
+
createVNode(unref(DialogClose), {
|
|
546
|
+
class: "ui-DialogCloseButton",
|
|
547
|
+
"as-child": ""
|
|
548
|
+
}, {
|
|
549
|
+
default: withCtx(() => [
|
|
550
|
+
createVNode(_sfc_main$11, normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
551
|
+
default: withCtx(() => [
|
|
552
|
+
createVNode(unref(CrossIcon))
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
}, 16)
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
})
|
|
559
|
+
]),
|
|
560
|
+
_: 1
|
|
561
|
+
}, 8, ["content"]);
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
411
566
|
__name: "DialogTitle",
|
|
412
567
|
props: {
|
|
413
568
|
asChild: { type: Boolean },
|
|
@@ -430,7 +585,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
430
585
|
};
|
|
431
586
|
}
|
|
432
587
|
});
|
|
433
|
-
const _sfc_main$
|
|
588
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
434
589
|
__name: "DialogDescription",
|
|
435
590
|
props: {
|
|
436
591
|
asChild: { type: Boolean },
|
|
@@ -453,35 +608,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
453
608
|
};
|
|
454
609
|
}
|
|
455
610
|
});
|
|
456
|
-
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
457
|
-
__name: "ThemeWrapper",
|
|
458
|
-
props: {
|
|
459
|
-
accentColor: {},
|
|
460
|
-
radius: {}
|
|
461
|
-
},
|
|
462
|
-
setup(__props) {
|
|
463
|
-
const props = __props;
|
|
464
|
-
const theme = injectThemeContext();
|
|
465
|
-
return (_ctx, _cache) => {
|
|
466
|
-
return openBlock(), createBlock(unref(Primitive), {
|
|
467
|
-
class: "ui-root",
|
|
468
|
-
"data-accent-color": props.accentColor || unref(theme).accentColor.value,
|
|
469
|
-
"data-gray-color": unref(theme).grayColor.value,
|
|
470
|
-
"data-radius": props.radius || unref(theme).radius.value,
|
|
471
|
-
"data-scaling": unref(theme).scaling.value,
|
|
472
|
-
"as-child": ""
|
|
473
|
-
}, {
|
|
474
|
-
default: withCtx(() => [
|
|
475
|
-
renderSlot(_ctx.$slots, "default")
|
|
476
|
-
]),
|
|
477
|
-
_: 3
|
|
478
|
-
}, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"]);
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
611
|
const _hoisted_1$t = { class: "ui-DialogWrapper" };
|
|
483
612
|
const _hoisted_2$8 = { class: "ui-DialogContainer" };
|
|
484
|
-
const _sfc_main$
|
|
613
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
485
614
|
...{
|
|
486
615
|
inheritAttrs: false
|
|
487
616
|
},
|
|
@@ -501,7 +630,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
501
630
|
return (_ctx, _cache) => {
|
|
502
631
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
503
632
|
default: withCtx(() => [
|
|
504
|
-
createVNode(_sfc_main$
|
|
633
|
+
createVNode(_sfc_main$_, null, {
|
|
505
634
|
default: withCtx(() => [
|
|
506
635
|
createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
507
636
|
default: withCtx(() => [
|
|
@@ -534,7 +663,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
534
663
|
});
|
|
535
664
|
const _hoisted_1$s = { class: "ui-DialogWrapper" };
|
|
536
665
|
const _hoisted_2$7 = { class: "ui-DialogContainer" };
|
|
537
|
-
const _sfc_main$
|
|
666
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
538
667
|
...{
|
|
539
668
|
inheritAttrs: false
|
|
540
669
|
},
|
|
@@ -553,7 +682,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
553
682
|
return (_ctx, _cache) => {
|
|
554
683
|
return openBlock(), createBlock(unref(AlertDialogPortal), null, {
|
|
555
684
|
default: withCtx(() => [
|
|
556
|
-
createVNode(_sfc_main$
|
|
685
|
+
createVNode(_sfc_main$_, null, {
|
|
557
686
|
default: withCtx(() => [
|
|
558
687
|
createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
559
688
|
default: withCtx(() => [
|
|
@@ -584,7 +713,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
584
713
|
});
|
|
585
714
|
const _hoisted_1$r = { class: "ui-MenuViewport" };
|
|
586
715
|
const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui:DropdownMenuContent");
|
|
587
|
-
const _sfc_main$
|
|
716
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
588
717
|
...{
|
|
589
718
|
inheritAttrs: false
|
|
590
719
|
},
|
|
@@ -634,7 +763,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
634
763
|
return (_ctx, _cache) => {
|
|
635
764
|
return openBlock(), createBlock(unref(DropdownMenuPortal), null, {
|
|
636
765
|
default: withCtx(() => [
|
|
637
|
-
createVNode(_sfc_main$
|
|
766
|
+
createVNode(_sfc_main$_, {
|
|
638
767
|
"accent-color": props.color
|
|
639
768
|
}, {
|
|
640
769
|
default: withCtx(() => [
|
|
@@ -646,7 +775,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
646
775
|
class: ["ui-PopperContent ui-MenuContent", unref(resetClass)]
|
|
647
776
|
}), {
|
|
648
777
|
default: withCtx(() => [
|
|
649
|
-
createVNode(_sfc_main
|
|
778
|
+
createVNode(_sfc_main$$, { type: "auto" }, {
|
|
650
779
|
default: withCtx(() => [
|
|
651
780
|
createElementVNode("div", _hoisted_1$r, [
|
|
652
781
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -667,7 +796,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
667
796
|
}
|
|
668
797
|
});
|
|
669
798
|
const _hoisted_1$q = ["textContent"];
|
|
670
|
-
const _sfc_main$
|
|
799
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
671
800
|
__name: "DropdownMenuItem",
|
|
672
801
|
props: {
|
|
673
802
|
color: {},
|
|
@@ -687,96 +816,279 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
687
816
|
return (_ctx, _cache) => {
|
|
688
817
|
return openBlock(), createBlock(unref(DropdownMenuItem), mergeProps({
|
|
689
818
|
class: "ui-MenuItem",
|
|
690
|
-
"data-accent-color": props.color,
|
|
819
|
+
"data-accent-color": props.color || unref(rootContext).color.value,
|
|
691
820
|
"data-variant": unref(rootContext).variant.value,
|
|
692
821
|
"data-high-contrast": unref(rootContext).highContrast?.value || void 0
|
|
693
822
|
}, unref(forwarded)), {
|
|
694
823
|
default: withCtx(() => [
|
|
695
824
|
renderSlot(_ctx.$slots, "default"),
|
|
696
|
-
props.shortcut ? (openBlock(), createElementBlock("div", {
|
|
697
|
-
key: 0,
|
|
698
|
-
class: "ui-MenuShortcut",
|
|
699
|
-
textContent: toDisplayString(props.shortcut)
|
|
700
|
-
}, null, 8, _hoisted_1$q)) : createCommentVNode("", true)
|
|
825
|
+
props.shortcut ? (openBlock(), createElementBlock("div", {
|
|
826
|
+
key: 0,
|
|
827
|
+
class: "ui-MenuShortcut",
|
|
828
|
+
textContent: toDisplayString(props.shortcut)
|
|
829
|
+
}, null, 8, _hoisted_1$q)) : createCommentVNode("", true)
|
|
830
|
+
]),
|
|
831
|
+
_: 3
|
|
832
|
+
}, 16, ["data-accent-color", "data-variant", "data-high-contrast"]);
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
const _export_sfc = (sfc, props) => {
|
|
837
|
+
const target = sfc.__vccOpts || sfc;
|
|
838
|
+
for (const [key, val] of props) {
|
|
839
|
+
target[key] = val;
|
|
840
|
+
}
|
|
841
|
+
return target;
|
|
842
|
+
};
|
|
843
|
+
const _sfc_main$R = {};
|
|
844
|
+
const _hoisted_1$p = {
|
|
845
|
+
class: "ui-DropdownMenuSeparator",
|
|
846
|
+
"aria-hidden": "true"
|
|
847
|
+
};
|
|
848
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
849
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p);
|
|
850
|
+
}
|
|
851
|
+
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$2]]);
|
|
852
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
853
|
+
...{
|
|
854
|
+
inheritAttrs: false
|
|
855
|
+
},
|
|
856
|
+
__name: "PopoverPopup",
|
|
857
|
+
props: {
|
|
858
|
+
size: { default: "1" },
|
|
859
|
+
forceMount: { type: Boolean },
|
|
860
|
+
side: { default: "bottom" },
|
|
861
|
+
sideOffset: { default: 4 },
|
|
862
|
+
sideFlip: { type: Boolean },
|
|
863
|
+
align: { default: "start" },
|
|
864
|
+
alignOffset: {},
|
|
865
|
+
alignFlip: { type: Boolean },
|
|
866
|
+
avoidCollisions: { type: Boolean },
|
|
867
|
+
collisionBoundary: {},
|
|
868
|
+
collisionPadding: {},
|
|
869
|
+
arrowPadding: {},
|
|
870
|
+
sticky: {},
|
|
871
|
+
hideWhenDetached: { type: Boolean },
|
|
872
|
+
positionStrategy: {},
|
|
873
|
+
updatePositionStrategy: {},
|
|
874
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
875
|
+
prioritizePosition: { type: Boolean },
|
|
876
|
+
reference: {},
|
|
877
|
+
asChild: { type: Boolean },
|
|
878
|
+
as: {},
|
|
879
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
880
|
+
},
|
|
881
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
882
|
+
setup(__props, { emit: __emit }) {
|
|
883
|
+
const props = __props;
|
|
884
|
+
const emits = __emit;
|
|
885
|
+
const forwarded = useForwardPropsEmitsWithout(props, emits, ["to", "size"]);
|
|
886
|
+
return (_ctx, _cache) => {
|
|
887
|
+
return openBlock(), createBlock(unref(PopoverPortal), null, {
|
|
888
|
+
default: withCtx(() => [
|
|
889
|
+
createVNode(_sfc_main$_, null, {
|
|
890
|
+
default: withCtx(() => [
|
|
891
|
+
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
892
|
+
class: ["ui-PopoverPopup ui-PopperContent", `r-size-${props.size}`]
|
|
893
|
+
}), {
|
|
894
|
+
default: withCtx(() => [
|
|
895
|
+
renderSlot(_ctx.$slots, "default")
|
|
896
|
+
]),
|
|
897
|
+
_: 3
|
|
898
|
+
}, 16, ["class"])
|
|
899
|
+
]),
|
|
900
|
+
_: 3
|
|
901
|
+
})
|
|
902
|
+
]),
|
|
903
|
+
_: 3
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
909
|
+
__name: "NavigationMenuRoot",
|
|
910
|
+
props: {
|
|
911
|
+
modelValue: {},
|
|
912
|
+
defaultValue: {},
|
|
913
|
+
dir: {},
|
|
914
|
+
orientation: {},
|
|
915
|
+
delayDuration: {},
|
|
916
|
+
skipDelayDuration: {},
|
|
917
|
+
disableClickTrigger: { type: Boolean },
|
|
918
|
+
disableHoverTrigger: { type: Boolean },
|
|
919
|
+
disablePointerLeaveClose: { type: Boolean },
|
|
920
|
+
unmountOnHide: { type: Boolean },
|
|
921
|
+
asChild: { type: Boolean },
|
|
922
|
+
as: {}
|
|
923
|
+
},
|
|
924
|
+
emits: ["update:modelValue"],
|
|
925
|
+
setup(__props, { emit: __emit }) {
|
|
926
|
+
const props = __props;
|
|
927
|
+
const emits = __emit;
|
|
928
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
929
|
+
return (_ctx, _cache) => {
|
|
930
|
+
return openBlock(), createBlock(unref(NavigationMenuRoot), mergeProps(unref(forwarded), { class: "ui-NavigationMenuRoot" }), {
|
|
931
|
+
default: withCtx(() => [
|
|
932
|
+
renderSlot(_ctx.$slots, "default"),
|
|
933
|
+
createVNode(unref(NavigationMenuViewport), { class: "ui-NavigationMenuViewport" })
|
|
934
|
+
]),
|
|
935
|
+
_: 3
|
|
936
|
+
}, 16);
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
const [injectNavigationMenuListContext, provideNavigationMenuListContext] = createContext("ui:NavigationMenuList");
|
|
941
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
942
|
+
__name: "NavigationMenuList",
|
|
943
|
+
props: {
|
|
944
|
+
color: {},
|
|
945
|
+
size: { default: "2" },
|
|
946
|
+
radius: {},
|
|
947
|
+
asChild: { type: Boolean },
|
|
948
|
+
as: {}
|
|
949
|
+
},
|
|
950
|
+
setup(__props) {
|
|
951
|
+
const props = __props;
|
|
952
|
+
const forwarded = useForwardPropsWithout(props, ["color", "size", "radius"]);
|
|
953
|
+
const resetClass = buildPropsClass(props, ["size"]);
|
|
954
|
+
const { color, radius, size } = toRefs(props);
|
|
955
|
+
provideNavigationMenuListContext({
|
|
956
|
+
color,
|
|
957
|
+
radius,
|
|
958
|
+
size
|
|
959
|
+
});
|
|
960
|
+
return (_ctx, _cache) => {
|
|
961
|
+
return openBlock(), createBlock(unref(NavigationMenuList), mergeProps(unref(forwarded), {
|
|
962
|
+
class: ["ui-NavigationMenuList", unref(resetClass)]
|
|
963
|
+
}), {
|
|
964
|
+
default: withCtx(() => [
|
|
965
|
+
renderSlot(_ctx.$slots, "default"),
|
|
966
|
+
createVNode(unref(NavigationMenuIndicator), { class: "ui-NavigationMenuIndicator" })
|
|
967
|
+
]),
|
|
968
|
+
_: 3
|
|
969
|
+
}, 16, ["class"]);
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
974
|
+
__name: "NavigationMenuLink",
|
|
975
|
+
props: {
|
|
976
|
+
color: {},
|
|
977
|
+
size: { default: "2" },
|
|
978
|
+
radius: {},
|
|
979
|
+
active: { type: Boolean },
|
|
980
|
+
asChild: { type: Boolean },
|
|
981
|
+
as: {}
|
|
982
|
+
},
|
|
983
|
+
emits: ["select"],
|
|
984
|
+
setup(__props, { emit: __emit }) {
|
|
985
|
+
const props = __props;
|
|
986
|
+
const emits = __emit;
|
|
987
|
+
const ctx = injectNavigationMenuListContext(null);
|
|
988
|
+
const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "radius"]);
|
|
989
|
+
const resetClass = computed(() => {
|
|
990
|
+
const size = props.size || ctx?.size.value || "2";
|
|
991
|
+
return `r-size-${size}`;
|
|
992
|
+
});
|
|
993
|
+
return (_ctx, _cache) => {
|
|
994
|
+
return openBlock(), createBlock(unref(NavigationMenuLink), mergeProps({ class: "ui-NavigationMenuLink" }, unref(forwarded), {
|
|
995
|
+
class: resetClass.value,
|
|
996
|
+
"data-accent-color": props.color || unref(ctx)?.color.value,
|
|
997
|
+
"data-radius": props.radius || unref(ctx)?.radius.value
|
|
998
|
+
}), {
|
|
999
|
+
default: withCtx(() => [
|
|
1000
|
+
renderSlot(_ctx.$slots, "default")
|
|
1001
|
+
]),
|
|
1002
|
+
_: 3
|
|
1003
|
+
}, 16, ["class", "data-accent-color", "data-radius"]);
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
const _hoisted_1$o = {
|
|
1008
|
+
viewBox: "0 0 15 15",
|
|
1009
|
+
width: "1em",
|
|
1010
|
+
height: "1em"
|
|
1011
|
+
};
|
|
1012
|
+
function render$8(_ctx, _cache) {
|
|
1013
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$o, _cache[0] || (_cache[0] = [
|
|
1014
|
+
createElementVNode("path", {
|
|
1015
|
+
fill: "currentColor",
|
|
1016
|
+
"fill-rule": "evenodd",
|
|
1017
|
+
d: "M4.182 6.182a.45.45 0 0 1 .636 0L7.5 8.864l2.682-2.682a.45.45 0 0 1 .636.636l-3 3a.45.45 0 0 1-.636 0l-3-3a.45.45 0 0 1 0-.636",
|
|
1018
|
+
"clip-rule": "evenodd"
|
|
1019
|
+
}, null, -1)
|
|
1020
|
+
]));
|
|
1021
|
+
}
|
|
1022
|
+
const CaretDownIcon = markRaw({ name: "radix-icons-caret-down", render: render$8 });
|
|
1023
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1024
|
+
__name: "NavigationMenuTrigger",
|
|
1025
|
+
props: {
|
|
1026
|
+
color: {},
|
|
1027
|
+
size: {},
|
|
1028
|
+
radius: {},
|
|
1029
|
+
disabled: { type: Boolean },
|
|
1030
|
+
asChild: { type: Boolean },
|
|
1031
|
+
as: {}
|
|
1032
|
+
},
|
|
1033
|
+
setup(__props) {
|
|
1034
|
+
const props = __props;
|
|
1035
|
+
const ctx = injectNavigationMenuListContext(null);
|
|
1036
|
+
const forwarded = useForwardPropsWithout(props, ["color", "size", "radius"]);
|
|
1037
|
+
const attrs = useAttrs();
|
|
1038
|
+
const defaultAs = computed(() => {
|
|
1039
|
+
if (props.as) {
|
|
1040
|
+
return props.as;
|
|
1041
|
+
}
|
|
1042
|
+
if (attrs.href) {
|
|
1043
|
+
return "a";
|
|
1044
|
+
} else {
|
|
1045
|
+
return forwarded.value.as;
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
const resetClass = computed(() => {
|
|
1049
|
+
const size = props.size || ctx?.size.value || "2";
|
|
1050
|
+
return `r-size-${size}`;
|
|
1051
|
+
});
|
|
1052
|
+
return (_ctx, _cache) => {
|
|
1053
|
+
return openBlock(), createBlock(unref(NavigationMenuTrigger), mergeProps({ class: "ui-NavigationMenuTrigger" }, unref(forwarded), {
|
|
1054
|
+
as: defaultAs.value,
|
|
1055
|
+
class: resetClass.value,
|
|
1056
|
+
"data-accent-color": props.color || unref(ctx)?.color.value,
|
|
1057
|
+
"data-radius": props.radius || unref(ctx)?.radius.value
|
|
1058
|
+
}), {
|
|
1059
|
+
default: withCtx(() => [
|
|
1060
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1061
|
+
createVNode(unref(CaretDownIcon), { class: "ui-NavigationMenuTriggerArrow" })
|
|
701
1062
|
]),
|
|
702
1063
|
_: 3
|
|
703
|
-
}, 16, ["
|
|
1064
|
+
}, 16, ["as", "class", "data-accent-color", "data-radius"]);
|
|
704
1065
|
};
|
|
705
1066
|
}
|
|
706
1067
|
});
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
for (const [key, val] of props) {
|
|
710
|
-
target[key] = val;
|
|
711
|
-
}
|
|
712
|
-
return target;
|
|
713
|
-
};
|
|
714
|
-
const _sfc_main$N = {};
|
|
715
|
-
const _hoisted_1$p = {
|
|
716
|
-
class: "ui-DropdownMenuSeparator",
|
|
717
|
-
"aria-hidden": "true"
|
|
718
|
-
};
|
|
719
|
-
function _sfc_render$2(_ctx, _cache) {
|
|
720
|
-
return openBlock(), createElementBlock("div", _hoisted_1$p);
|
|
721
|
-
}
|
|
722
|
-
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$2]]);
|
|
723
|
-
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
724
|
-
...{
|
|
725
|
-
inheritAttrs: false
|
|
726
|
-
},
|
|
727
|
-
__name: "PopoverPopup",
|
|
1068
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1069
|
+
__name: "NavigationMenuContent",
|
|
728
1070
|
props: {
|
|
729
|
-
size: { default: "1" },
|
|
730
1071
|
forceMount: { type: Boolean },
|
|
731
|
-
|
|
732
|
-
sideOffset: { default: 4 },
|
|
733
|
-
sideFlip: { type: Boolean },
|
|
734
|
-
align: { default: "start" },
|
|
735
|
-
alignOffset: {},
|
|
736
|
-
alignFlip: { type: Boolean },
|
|
737
|
-
avoidCollisions: { type: Boolean },
|
|
738
|
-
collisionBoundary: {},
|
|
739
|
-
collisionPadding: {},
|
|
740
|
-
arrowPadding: {},
|
|
741
|
-
sticky: {},
|
|
742
|
-
hideWhenDetached: { type: Boolean },
|
|
743
|
-
positionStrategy: {},
|
|
744
|
-
updatePositionStrategy: {},
|
|
745
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
746
|
-
prioritizePosition: { type: Boolean },
|
|
747
|
-
reference: {},
|
|
1072
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
748
1073
|
asChild: { type: Boolean },
|
|
749
|
-
as: {}
|
|
750
|
-
disableOutsidePointerEvents: { type: Boolean }
|
|
1074
|
+
as: {}
|
|
751
1075
|
},
|
|
752
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"
|
|
1076
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
753
1077
|
setup(__props, { emit: __emit }) {
|
|
754
1078
|
const props = __props;
|
|
755
1079
|
const emits = __emit;
|
|
756
|
-
const forwarded =
|
|
1080
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
757
1081
|
return (_ctx, _cache) => {
|
|
758
|
-
return openBlock(), createBlock(unref(
|
|
1082
|
+
return openBlock(), createBlock(unref(NavigationMenuContent), mergeProps(unref(forwarded), { class: "ui-NavigationMenuContent" }), {
|
|
759
1083
|
default: withCtx(() => [
|
|
760
|
-
|
|
761
|
-
default: withCtx(() => [
|
|
762
|
-
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
763
|
-
class: ["ui-PopoverPopup ui-PopperContent", `r-size-${props.size}`]
|
|
764
|
-
}), {
|
|
765
|
-
default: withCtx(() => [
|
|
766
|
-
renderSlot(_ctx.$slots, "default")
|
|
767
|
-
]),
|
|
768
|
-
_: 3
|
|
769
|
-
}, 16, ["class"])
|
|
770
|
-
]),
|
|
771
|
-
_: 3
|
|
772
|
-
})
|
|
1084
|
+
renderSlot(_ctx.$slots, "default")
|
|
773
1085
|
]),
|
|
774
1086
|
_: 3
|
|
775
|
-
});
|
|
1087
|
+
}, 16);
|
|
776
1088
|
};
|
|
777
1089
|
}
|
|
778
1090
|
});
|
|
779
|
-
const _sfc_main$
|
|
1091
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
780
1092
|
__name: "Switch",
|
|
781
1093
|
props: {
|
|
782
1094
|
color: {},
|
|
@@ -814,7 +1126,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
814
1126
|
};
|
|
815
1127
|
}
|
|
816
1128
|
});
|
|
817
|
-
const _hoisted_1$
|
|
1129
|
+
const _hoisted_1$n = {
|
|
818
1130
|
width: "9",
|
|
819
1131
|
height: "9",
|
|
820
1132
|
viewBox: "0 0 9 9",
|
|
@@ -833,7 +1145,7 @@ const _hoisted_3$2 = {
|
|
|
833
1145
|
clipRule: "evenodd",
|
|
834
1146
|
d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"
|
|
835
1147
|
};
|
|
836
|
-
const _sfc_main$
|
|
1148
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
837
1149
|
__name: "Checkbox",
|
|
838
1150
|
props: {
|
|
839
1151
|
color: {},
|
|
@@ -867,7 +1179,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
867
1179
|
"as-child": ""
|
|
868
1180
|
}, {
|
|
869
1181
|
default: withCtx(() => [
|
|
870
|
-
(openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1182
|
+
(openBlock(), createElementBlock("svg", _hoisted_1$n, [
|
|
871
1183
|
state === "indeterminate" ? (openBlock(), createElementBlock("path", _hoisted_2$6)) : (openBlock(), createElementBlock("path", _hoisted_3$2))
|
|
872
1184
|
]))
|
|
873
1185
|
]),
|
|
@@ -879,7 +1191,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
879
1191
|
};
|
|
880
1192
|
}
|
|
881
1193
|
});
|
|
882
|
-
const _sfc_main$
|
|
1194
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
883
1195
|
__name: "Toggle",
|
|
884
1196
|
props: {
|
|
885
1197
|
variant: { default: "soft" },
|
|
@@ -915,7 +1227,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
915
1227
|
};
|
|
916
1228
|
}
|
|
917
1229
|
});
|
|
918
|
-
const _sfc_main$
|
|
1230
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
919
1231
|
__name: "ToggleGroupRoot",
|
|
920
1232
|
props: {
|
|
921
1233
|
variant: { default: "solid" },
|
|
@@ -956,7 +1268,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
956
1268
|
};
|
|
957
1269
|
}
|
|
958
1270
|
});
|
|
959
|
-
const _sfc_main$
|
|
1271
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
960
1272
|
__name: "ToggleGroupItem",
|
|
961
1273
|
props: {
|
|
962
1274
|
value: {},
|
|
@@ -977,7 +1289,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
977
1289
|
};
|
|
978
1290
|
}
|
|
979
1291
|
});
|
|
980
|
-
const _hoisted_1$
|
|
1292
|
+
const _hoisted_1$m = ["data-radius", "data-accent-color"];
|
|
981
1293
|
const _hoisted_2$5 = ["id", "type"];
|
|
982
1294
|
const _hoisted_3$1 = ["id", "type"];
|
|
983
1295
|
const _hoisted_4 = {
|
|
@@ -990,7 +1302,7 @@ const _hoisted_5 = {
|
|
|
990
1302
|
class: "ui-TextFieldSlot",
|
|
991
1303
|
"data-side": "right"
|
|
992
1304
|
};
|
|
993
|
-
const _sfc_main$
|
|
1305
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
994
1306
|
...{
|
|
995
1307
|
inheritAttrs: false
|
|
996
1308
|
},
|
|
@@ -1070,12 +1382,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1070
1382
|
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1071
1383
|
renderSlot(_ctx.$slots, "right")
|
|
1072
1384
|
])) : createCommentVNode("", true)
|
|
1073
|
-
], 42, _hoisted_1$
|
|
1385
|
+
], 42, _hoisted_1$m);
|
|
1074
1386
|
};
|
|
1075
1387
|
}
|
|
1076
1388
|
});
|
|
1077
|
-
const _hoisted_1$
|
|
1078
|
-
const _sfc_main$
|
|
1389
|
+
const _hoisted_1$l = ["data-accent-color", "data-radius"];
|
|
1390
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1079
1391
|
...{
|
|
1080
1392
|
inheritAttrs: false
|
|
1081
1393
|
},
|
|
@@ -1109,12 +1421,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1109
1421
|
}, _ctx.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
|
|
1110
1422
|
[vModelText, modelValue.value]
|
|
1111
1423
|
])
|
|
1112
|
-
], 10, _hoisted_1$
|
|
1424
|
+
], 10, _hoisted_1$l);
|
|
1113
1425
|
};
|
|
1114
1426
|
}
|
|
1115
1427
|
});
|
|
1116
|
-
const _hoisted_1$
|
|
1117
|
-
const _sfc_main$
|
|
1428
|
+
const _hoisted_1$k = ["id"];
|
|
1429
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1118
1430
|
__name: "ColorField",
|
|
1119
1431
|
props: /* @__PURE__ */ mergeModels({
|
|
1120
1432
|
id: {},
|
|
@@ -1150,7 +1462,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1150
1462
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
1151
1463
|
class: "ui-ColorFieldInput",
|
|
1152
1464
|
type: "color"
|
|
1153
|
-
}, null, 8, _hoisted_1$
|
|
1465
|
+
}, null, 8, _hoisted_1$k), [
|
|
1154
1466
|
[vModelText, modelValue.value]
|
|
1155
1467
|
])
|
|
1156
1468
|
]),
|
|
@@ -1160,7 +1472,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1160
1472
|
}
|
|
1161
1473
|
});
|
|
1162
1474
|
const [injectSelectRootContext, provideSelectRootContext] = createContext("ui:SelectRoot");
|
|
1163
|
-
const _sfc_main$
|
|
1475
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1164
1476
|
__name: "SelectRoot",
|
|
1165
1477
|
props: {
|
|
1166
1478
|
size: { default: "2" },
|
|
@@ -1199,7 +1511,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1199
1511
|
};
|
|
1200
1512
|
}
|
|
1201
1513
|
});
|
|
1202
|
-
const _sfc_main$
|
|
1514
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1203
1515
|
...{
|
|
1204
1516
|
inheritAttrs: false
|
|
1205
1517
|
},
|
|
@@ -1247,7 +1559,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1247
1559
|
return (_ctx, _cache) => {
|
|
1248
1560
|
return openBlock(), createBlock(unref(SelectPortal), null, {
|
|
1249
1561
|
default: withCtx(() => [
|
|
1250
|
-
createVNode(_sfc_main$
|
|
1562
|
+
createVNode(_sfc_main$_, {
|
|
1251
1563
|
"accent-color": unref(context).color.value
|
|
1252
1564
|
}, {
|
|
1253
1565
|
default: withCtx(() => [
|
|
@@ -1305,13 +1617,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1305
1617
|
};
|
|
1306
1618
|
}
|
|
1307
1619
|
});
|
|
1308
|
-
const _hoisted_1$
|
|
1620
|
+
const _hoisted_1$j = {
|
|
1309
1621
|
viewBox: "0 0 15 15",
|
|
1310
1622
|
width: "1em",
|
|
1311
1623
|
height: "1em"
|
|
1312
1624
|
};
|
|
1313
1625
|
function render$7(_ctx, _cache) {
|
|
1314
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1626
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
|
|
1315
1627
|
createElementVNode("path", {
|
|
1316
1628
|
fill: "currentColor",
|
|
1317
1629
|
"fill-rule": "evenodd",
|
|
@@ -1321,8 +1633,8 @@ function render$7(_ctx, _cache) {
|
|
|
1321
1633
|
]));
|
|
1322
1634
|
}
|
|
1323
1635
|
const ChevronDownIcon = markRaw({ name: "radix-icons-chevron-down", render: render$7 });
|
|
1324
|
-
const _hoisted_1$
|
|
1325
|
-
const _sfc_main$
|
|
1636
|
+
const _hoisted_1$i = { class: "ui-SelectTriggerInner" };
|
|
1637
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1326
1638
|
__name: "SelectTrigger",
|
|
1327
1639
|
props: {
|
|
1328
1640
|
variant: { default: "surface" },
|
|
@@ -1347,7 +1659,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1347
1659
|
"data-radius": props.radius
|
|
1348
1660
|
}, {
|
|
1349
1661
|
default: withCtx(() => [
|
|
1350
|
-
createElementVNode("span", _hoisted_1$
|
|
1662
|
+
createElementVNode("span", _hoisted_1$i, [
|
|
1351
1663
|
createVNode(unref(SelectValue), {
|
|
1352
1664
|
placeholder: props.placeholder
|
|
1353
1665
|
}, {
|
|
@@ -1372,13 +1684,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1372
1684
|
};
|
|
1373
1685
|
}
|
|
1374
1686
|
});
|
|
1375
|
-
const _hoisted_1$
|
|
1687
|
+
const _hoisted_1$h = {
|
|
1376
1688
|
viewBox: "0 0 15 15",
|
|
1377
1689
|
width: "1em",
|
|
1378
1690
|
height: "1em"
|
|
1379
1691
|
};
|
|
1380
1692
|
function render$6(_ctx, _cache) {
|
|
1381
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1693
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$h, _cache[0] || (_cache[0] = [
|
|
1382
1694
|
createElementVNode("path", {
|
|
1383
1695
|
fill: "currentColor",
|
|
1384
1696
|
"fill-rule": "evenodd",
|
|
@@ -1388,7 +1700,7 @@ function render$6(_ctx, _cache) {
|
|
|
1388
1700
|
]));
|
|
1389
1701
|
}
|
|
1390
1702
|
const CheckIcon$1 = markRaw({ name: "radix-icons-check", render: render$6 });
|
|
1391
|
-
const _sfc_main$
|
|
1703
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1392
1704
|
__name: "SelectItem",
|
|
1393
1705
|
props: {
|
|
1394
1706
|
value: {},
|
|
@@ -1422,7 +1734,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
1422
1734
|
};
|
|
1423
1735
|
}
|
|
1424
1736
|
});
|
|
1425
|
-
const _sfc_main$
|
|
1737
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1426
1738
|
__name: "SelectLabel",
|
|
1427
1739
|
props: {
|
|
1428
1740
|
for: {},
|
|
@@ -1443,17 +1755,17 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1443
1755
|
};
|
|
1444
1756
|
}
|
|
1445
1757
|
});
|
|
1446
|
-
const _sfc_main$
|
|
1447
|
-
const _hoisted_1$
|
|
1758
|
+
const _sfc_main$x = {};
|
|
1759
|
+
const _hoisted_1$g = {
|
|
1448
1760
|
class: "ui-SelectSeparator",
|
|
1449
1761
|
"aria-hidden": "true"
|
|
1450
1762
|
};
|
|
1451
1763
|
function _sfc_render$1(_ctx, _cache) {
|
|
1452
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1764
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g);
|
|
1453
1765
|
}
|
|
1454
|
-
const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1766
|
+
const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
|
|
1455
1767
|
const [injectComboboxRootContext, provideComboboxRootContext] = createContext("ui:ComboboxRoot");
|
|
1456
|
-
const _sfc_main$
|
|
1768
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1457
1769
|
__name: "ComboboxRoot",
|
|
1458
1770
|
props: {
|
|
1459
1771
|
size: { default: "2" },
|
|
@@ -1502,13 +1814,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1502
1814
|
};
|
|
1503
1815
|
}
|
|
1504
1816
|
});
|
|
1505
|
-
const _hoisted_1$
|
|
1817
|
+
const _hoisted_1$f = {
|
|
1506
1818
|
key: 0,
|
|
1507
1819
|
class: "ui-ComboboxValues"
|
|
1508
1820
|
};
|
|
1509
1821
|
const _hoisted_2$4 = ["aria-current", "value"];
|
|
1510
1822
|
const _hoisted_3 = ["onClick"];
|
|
1511
|
-
const _sfc_main$
|
|
1823
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1512
1824
|
...{
|
|
1513
1825
|
inheritAttrs: false
|
|
1514
1826
|
},
|
|
@@ -1574,7 +1886,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1574
1886
|
"data-multiple": unref(context).multiple.value || void 0
|
|
1575
1887
|
}, {
|
|
1576
1888
|
default: withCtx(() => [
|
|
1577
|
-
unref(context).multiple.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1889
|
+
unref(context).multiple.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
1578
1890
|
(openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (item, index) => {
|
|
1579
1891
|
return openBlock(), createElementBlock("div", {
|
|
1580
1892
|
key: displayValue(item),
|
|
@@ -1624,7 +1936,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1624
1936
|
};
|
|
1625
1937
|
}
|
|
1626
1938
|
});
|
|
1627
|
-
const _sfc_main$
|
|
1939
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1628
1940
|
...{
|
|
1629
1941
|
inheritAttrs: false
|
|
1630
1942
|
},
|
|
@@ -1672,7 +1984,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1672
1984
|
return (_ctx, _cache) => {
|
|
1673
1985
|
return openBlock(), createBlock(unref(ComboboxPortal), null, {
|
|
1674
1986
|
default: withCtx(() => [
|
|
1675
|
-
createVNode(_sfc_main$
|
|
1987
|
+
createVNode(_sfc_main$_, {
|
|
1676
1988
|
"accent-color": unref(context).color.value
|
|
1677
1989
|
}, {
|
|
1678
1990
|
default: withCtx(() => [
|
|
@@ -1732,7 +2044,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1732
2044
|
};
|
|
1733
2045
|
}
|
|
1734
2046
|
});
|
|
1735
|
-
const _sfc_main$
|
|
2047
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1736
2048
|
__name: "ComboboxItem",
|
|
1737
2049
|
props: {
|
|
1738
2050
|
textValue: {},
|
|
@@ -1760,7 +2072,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1760
2072
|
};
|
|
1761
2073
|
}
|
|
1762
2074
|
});
|
|
1763
|
-
const _sfc_main$
|
|
2075
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1764
2076
|
__name: "ComboboxLabel",
|
|
1765
2077
|
props: {
|
|
1766
2078
|
for: {},
|
|
@@ -1781,7 +2093,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1781
2093
|
};
|
|
1782
2094
|
}
|
|
1783
2095
|
});
|
|
1784
|
-
const _sfc_main$
|
|
2096
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1785
2097
|
__name: "ComboboxEmpty",
|
|
1786
2098
|
setup(__props) {
|
|
1787
2099
|
return (_ctx, _cache) => {
|
|
@@ -1794,8 +2106,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1794
2106
|
};
|
|
1795
2107
|
}
|
|
1796
2108
|
});
|
|
1797
|
-
const _hoisted_1$
|
|
1798
|
-
const _sfc_main$
|
|
2109
|
+
const _hoisted_1$e = ["data-accent-color"];
|
|
2110
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1799
2111
|
__name: "Radio",
|
|
1800
2112
|
props: /* @__PURE__ */ mergeModels({
|
|
1801
2113
|
variant: { default: "surface" },
|
|
@@ -1829,13 +2141,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1829
2141
|
class: normalizeClass(["ui-RadioBase ui-Radio", unref(resetClass)]),
|
|
1830
2142
|
type: "radio",
|
|
1831
2143
|
"data-accent-color": props.color
|
|
1832
|
-
}, null, 10, _hoisted_1$
|
|
2144
|
+
}, null, 10, _hoisted_1$e)), [
|
|
1833
2145
|
[vModelRadio, unref(modelValue)]
|
|
1834
2146
|
]);
|
|
1835
2147
|
};
|
|
1836
2148
|
}
|
|
1837
2149
|
});
|
|
1838
|
-
const _sfc_main$
|
|
2150
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1839
2151
|
__name: "RadioGroupRoot",
|
|
1840
2152
|
props: {
|
|
1841
2153
|
variant: { default: "surface" },
|
|
@@ -1872,8 +2184,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1872
2184
|
};
|
|
1873
2185
|
}
|
|
1874
2186
|
});
|
|
1875
|
-
const _hoisted_1$
|
|
1876
|
-
const _sfc_main$
|
|
2187
|
+
const _hoisted_1$d = { class: "ui-RadioGroupItem" };
|
|
2188
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1877
2189
|
__name: "RadioGroupItem",
|
|
1878
2190
|
props: {
|
|
1879
2191
|
color: {},
|
|
@@ -1893,7 +2205,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1893
2205
|
const forwarded = useForwardPropsWithout(props, ["color", "size", "variant", "highContrast"]);
|
|
1894
2206
|
const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
|
|
1895
2207
|
return (_ctx, _cache) => {
|
|
1896
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
2208
|
+
return openBlock(), createElementBlock("label", _hoisted_1$d, [
|
|
1897
2209
|
createVNode(unref(RadioGroupItem), mergeProps({
|
|
1898
2210
|
class: ["ui-RadioBase ui-RadioGroupItemIndicator", unref(resetClass)],
|
|
1899
2211
|
"data-accent-color": props.color
|
|
@@ -1903,7 +2215,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1903
2215
|
};
|
|
1904
2216
|
}
|
|
1905
2217
|
});
|
|
1906
|
-
const _sfc_main$
|
|
2218
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1907
2219
|
__name: "RadioCardsRoot",
|
|
1908
2220
|
props: {
|
|
1909
2221
|
variant: { default: "surface" },
|
|
@@ -1940,7 +2252,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1940
2252
|
};
|
|
1941
2253
|
}
|
|
1942
2254
|
});
|
|
1943
|
-
const _sfc_main$
|
|
2255
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1944
2256
|
__name: "RadioCardsItem",
|
|
1945
2257
|
props: {
|
|
1946
2258
|
id: {},
|
|
@@ -1965,7 +2277,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1965
2277
|
};
|
|
1966
2278
|
}
|
|
1967
2279
|
});
|
|
1968
|
-
const _sfc_main$
|
|
2280
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1969
2281
|
__name: "RadioTabsRoot",
|
|
1970
2282
|
props: {
|
|
1971
2283
|
variant: { default: "classic" },
|
|
@@ -2003,7 +2315,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2003
2315
|
};
|
|
2004
2316
|
}
|
|
2005
2317
|
});
|
|
2006
|
-
const _sfc_main$
|
|
2318
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2007
2319
|
__name: "RadioTabsItem",
|
|
2008
2320
|
props: {
|
|
2009
2321
|
id: {},
|
|
@@ -2027,7 +2339,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2027
2339
|
};
|
|
2028
2340
|
}
|
|
2029
2341
|
});
|
|
2030
|
-
const _sfc_main$
|
|
2342
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2031
2343
|
__name: "TabsList",
|
|
2032
2344
|
props: {
|
|
2033
2345
|
size: { default: "2" },
|
|
@@ -2041,7 +2353,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2041
2353
|
const resetClass = buildPropsClass(props, ["variant", "size", "highContrast"]);
|
|
2042
2354
|
return (_ctx, _cache) => {
|
|
2043
2355
|
return openBlock(), createBlock(unref(TabsList), {
|
|
2044
|
-
class: normalizeClass(["ui-
|
|
2356
|
+
class: normalizeClass(["ui-TabsList", unref(resetClass)]),
|
|
2045
2357
|
"data-radius": props.radius,
|
|
2046
2358
|
"data-accent-color": props.color
|
|
2047
2359
|
}, {
|
|
@@ -2054,9 +2366,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2054
2366
|
};
|
|
2055
2367
|
}
|
|
2056
2368
|
});
|
|
2057
|
-
const _hoisted_1$
|
|
2369
|
+
const _hoisted_1$c = { class: "ui-TabTriggerInner" };
|
|
2058
2370
|
const _hoisted_2$3 = { class: "ui-TabTriggerInnerHidden" };
|
|
2059
|
-
const _sfc_main$
|
|
2371
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2060
2372
|
__name: "TabsTrigger",
|
|
2061
2373
|
props: {
|
|
2062
2374
|
value: {},
|
|
@@ -2070,7 +2382,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2070
2382
|
return (_ctx, _cache) => {
|
|
2071
2383
|
return openBlock(), createBlock(unref(TabsTrigger), mergeProps(unref(forwarded), { class: "ui-TabTrigger" }), {
|
|
2072
2384
|
default: withCtx(() => [
|
|
2073
|
-
createElementVNode("span", _hoisted_1$
|
|
2385
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
2074
2386
|
renderSlot(_ctx.$slots, "default")
|
|
2075
2387
|
]),
|
|
2076
2388
|
createElementVNode("span", _hoisted_2$3, [
|
|
@@ -2082,7 +2394,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2082
2394
|
};
|
|
2083
2395
|
}
|
|
2084
2396
|
});
|
|
2085
|
-
const _sfc_main$
|
|
2397
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2086
2398
|
...{
|
|
2087
2399
|
inheritAttrs: false
|
|
2088
2400
|
},
|
|
@@ -2135,7 +2447,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2135
2447
|
}
|
|
2136
2448
|
});
|
|
2137
2449
|
const [injectAccordionRootContext, provideAccordionRootContext] = createContext("ui:AccordionRoot");
|
|
2138
|
-
const _sfc_main$
|
|
2450
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2139
2451
|
__name: "AccordionRoot",
|
|
2140
2452
|
props: {
|
|
2141
2453
|
size: { default: "1" },
|
|
@@ -2175,7 +2487,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2175
2487
|
};
|
|
2176
2488
|
}
|
|
2177
2489
|
});
|
|
2178
|
-
const _sfc_main$
|
|
2490
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2179
2491
|
__name: "AccordionItem",
|
|
2180
2492
|
props: {
|
|
2181
2493
|
value: {},
|
|
@@ -2205,7 +2517,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2205
2517
|
};
|
|
2206
2518
|
}
|
|
2207
2519
|
});
|
|
2208
|
-
const _sfc_main$
|
|
2520
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2209
2521
|
...{
|
|
2210
2522
|
inheritAttrs: false
|
|
2211
2523
|
},
|
|
@@ -2230,13 +2542,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2230
2542
|
};
|
|
2231
2543
|
}
|
|
2232
2544
|
});
|
|
2233
|
-
const _hoisted_1$
|
|
2545
|
+
const _hoisted_1$b = {
|
|
2234
2546
|
viewBox: "0 0 15 15",
|
|
2235
2547
|
width: "1em",
|
|
2236
2548
|
height: "1em"
|
|
2237
2549
|
};
|
|
2238
2550
|
function render$5(_ctx, _cache) {
|
|
2239
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2551
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$b, _cache[0] || (_cache[0] = [
|
|
2240
2552
|
createElementVNode("path", {
|
|
2241
2553
|
fill: "currentColor",
|
|
2242
2554
|
"fill-rule": "evenodd",
|
|
@@ -2246,19 +2558,19 @@ function render$5(_ctx, _cache) {
|
|
|
2246
2558
|
]));
|
|
2247
2559
|
}
|
|
2248
2560
|
const ChevronIcon = markRaw({ name: "radix-icons-chevron-right", render: render$5 });
|
|
2249
|
-
const _hoisted_1$
|
|
2561
|
+
const _hoisted_1$a = { class: "ui-AccordionIndicator" };
|
|
2250
2562
|
const _hoisted_2$2 = {
|
|
2251
2563
|
key: 1,
|
|
2252
2564
|
class: "ui-AccordionIndicator-plus"
|
|
2253
2565
|
};
|
|
2254
|
-
const _sfc_main$
|
|
2566
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2255
2567
|
__name: "AccordionIndicator",
|
|
2256
2568
|
props: {
|
|
2257
2569
|
variant: { default: "chevron" }
|
|
2258
2570
|
},
|
|
2259
2571
|
setup(__props) {
|
|
2260
2572
|
return (_ctx, _cache) => {
|
|
2261
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2573
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
2262
2574
|
_ctx.variant == "chevron" ? (openBlock(), createBlock(unref(ChevronIcon), {
|
|
2263
2575
|
key: 0,
|
|
2264
2576
|
class: "ui-AccordionIndicator-chevron"
|
|
@@ -2271,8 +2583,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2271
2583
|
};
|
|
2272
2584
|
}
|
|
2273
2585
|
});
|
|
2274
|
-
const _hoisted_1$
|
|
2275
|
-
const _sfc_main$
|
|
2586
|
+
const _hoisted_1$9 = { class: "ui-AccordionTriggerText" };
|
|
2587
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2276
2588
|
__name: "AccordionTrigger",
|
|
2277
2589
|
props: {
|
|
2278
2590
|
indicatorSide: {},
|
|
@@ -2293,10 +2605,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2293
2605
|
return (_ctx, _cache) => {
|
|
2294
2606
|
return openBlock(), createBlock(unref(AccordionTrigger), mergeProps({ class: "ui-AccordionTrigger" }, unref(forwarded)), {
|
|
2295
2607
|
default: withCtx(() => [
|
|
2296
|
-
createElementVNode("div", _hoisted_1$
|
|
2608
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
2297
2609
|
renderSlot(_ctx.$slots, "default")
|
|
2298
2610
|
]),
|
|
2299
|
-
indicatorIcon.value !== "none" ? (openBlock(), createBlock(_sfc_main$
|
|
2611
|
+
indicatorIcon.value !== "none" ? (openBlock(), createBlock(_sfc_main$d, {
|
|
2300
2612
|
key: 0,
|
|
2301
2613
|
"data-side": indicatorSide.value,
|
|
2302
2614
|
variant: indicatorIcon.value
|
|
@@ -2307,7 +2619,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2307
2619
|
};
|
|
2308
2620
|
}
|
|
2309
2621
|
});
|
|
2310
|
-
const _sfc_main$
|
|
2622
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2311
2623
|
__name: "CollapsibleRoot",
|
|
2312
2624
|
props: {
|
|
2313
2625
|
color: {},
|
|
@@ -2342,7 +2654,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2342
2654
|
};
|
|
2343
2655
|
}
|
|
2344
2656
|
});
|
|
2345
|
-
const _sfc_main$
|
|
2657
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2346
2658
|
__name: "CollapsibleIndicator",
|
|
2347
2659
|
setup(__props) {
|
|
2348
2660
|
return (_ctx, _cache) => {
|
|
@@ -2350,8 +2662,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2350
2662
|
};
|
|
2351
2663
|
}
|
|
2352
2664
|
});
|
|
2353
|
-
const _hoisted_1$
|
|
2354
|
-
const _sfc_main$
|
|
2665
|
+
const _hoisted_1$8 = { class: "ui-CollapsibleTriggerText" };
|
|
2666
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2355
2667
|
__name: "CollapsibleTrigger",
|
|
2356
2668
|
props: {
|
|
2357
2669
|
indicator: { default: "right" },
|
|
@@ -2364,10 +2676,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2364
2676
|
return (_ctx, _cache) => {
|
|
2365
2677
|
return openBlock(), createBlock(unref(CollapsibleTrigger), mergeProps({ class: "ui-CollapsibleTrigger" }, unref(forwarded)), {
|
|
2366
2678
|
default: withCtx(() => [
|
|
2367
|
-
createElementVNode("span", _hoisted_1$
|
|
2679
|
+
createElementVNode("span", _hoisted_1$8, [
|
|
2368
2680
|
renderSlot(_ctx.$slots, "default")
|
|
2369
2681
|
]),
|
|
2370
|
-
_ctx.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$
|
|
2682
|
+
_ctx.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$a, {
|
|
2371
2683
|
key: 0,
|
|
2372
2684
|
"data-side": _ctx.indicator
|
|
2373
2685
|
}, null, 8, ["data-side"])) : createCommentVNode("", true)
|
|
@@ -2377,10 +2689,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2377
2689
|
};
|
|
2378
2690
|
}
|
|
2379
2691
|
});
|
|
2380
|
-
const _sfc_main$
|
|
2381
|
-
...{
|
|
2382
|
-
inheritAttrs: false
|
|
2383
|
-
},
|
|
2692
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2384
2693
|
__name: "CollapsibleContent",
|
|
2385
2694
|
props: {
|
|
2386
2695
|
forceMount: { type: Boolean },
|
|
@@ -2393,16 +2702,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2393
2702
|
return (_ctx, _cache) => {
|
|
2394
2703
|
return openBlock(), createBlock(unref(CollapsibleContent), mergeProps(unref(forwardedProps), { class: "ui-CollapsibleContent" }), {
|
|
2395
2704
|
default: withCtx(() => [
|
|
2396
|
-
|
|
2397
|
-
renderSlot(_ctx.$slots, "default")
|
|
2398
|
-
], 16)
|
|
2705
|
+
renderSlot(_ctx.$slots, "default")
|
|
2399
2706
|
]),
|
|
2400
2707
|
_: 3
|
|
2401
2708
|
}, 16);
|
|
2402
2709
|
};
|
|
2403
2710
|
}
|
|
2404
2711
|
});
|
|
2405
|
-
const _sfc_main$
|
|
2712
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2406
2713
|
__name: "Pagination",
|
|
2407
2714
|
props: /* @__PURE__ */ mergeModels({
|
|
2408
2715
|
total: {},
|
|
@@ -2477,7 +2784,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2477
2784
|
return openBlock(), createElementBlock("div", {
|
|
2478
2785
|
class: normalizeClass(["ui-Pagination", unref(resetClass)])
|
|
2479
2786
|
}, [
|
|
2480
|
-
pagination.value.prev ? (openBlock(), createBlock(_sfc_main$
|
|
2787
|
+
pagination.value.prev ? (openBlock(), createBlock(_sfc_main$11, mergeProps({ key: 0 }, buttonProps.value, {
|
|
2481
2788
|
"aria-label": "Previous",
|
|
2482
2789
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
|
|
2483
2790
|
}), {
|
|
@@ -2490,7 +2797,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2490
2797
|
]),
|
|
2491
2798
|
_: 3
|
|
2492
2799
|
}, 16)) : createCommentVNode("", true),
|
|
2493
|
-
createVNode(_sfc_main$
|
|
2800
|
+
createVNode(_sfc_main$12, mergeProps(buttonProps.value, {
|
|
2494
2801
|
disabled: page.value === 1,
|
|
2495
2802
|
"aria-current": "page",
|
|
2496
2803
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
|
|
@@ -2502,7 +2809,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2502
2809
|
]),
|
|
2503
2810
|
_: 3
|
|
2504
2811
|
}, 16, ["disabled"]),
|
|
2505
|
-
pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$
|
|
2812
|
+
pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$11, mergeProps({ key: 1 }, buttonProps.value, {
|
|
2506
2813
|
onClick: withModifiers(selectLeft, ["prevent"])
|
|
2507
2814
|
}), {
|
|
2508
2815
|
default: withCtx(() => [
|
|
@@ -2515,7 +2822,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2515
2822
|
_: 3
|
|
2516
2823
|
}, 16)) : createCommentVNode("", true),
|
|
2517
2824
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
|
|
2518
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2825
|
+
return openBlock(), createBlock(_sfc_main$12, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
|
|
2519
2826
|
disabled: p === page.value,
|
|
2520
2827
|
"aria-current": "page",
|
|
2521
2828
|
onClick: withModifiers(($event) => selectPage(p), ["prevent"])
|
|
@@ -2528,7 +2835,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2528
2835
|
_: 2
|
|
2529
2836
|
}, 1040, ["disabled", "onClick"]);
|
|
2530
2837
|
}), 128)),
|
|
2531
|
-
pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$
|
|
2838
|
+
pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$11, mergeProps({ key: 2 }, buttonProps.value, {
|
|
2532
2839
|
onClick: withModifiers(selectRight, ["prevent"])
|
|
2533
2840
|
}), {
|
|
2534
2841
|
default: withCtx(() => [
|
|
@@ -2540,7 +2847,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2540
2847
|
]),
|
|
2541
2848
|
_: 3
|
|
2542
2849
|
}, 16)) : createCommentVNode("", true),
|
|
2543
|
-
pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2850
|
+
pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$12, mergeProps({ key: 3 }, buttonProps.value, {
|
|
2544
2851
|
disabled: pagination.value.totalPages === page.value,
|
|
2545
2852
|
"aria-current": "page",
|
|
2546
2853
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
|
|
@@ -2554,7 +2861,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2554
2861
|
]),
|
|
2555
2862
|
_: 3
|
|
2556
2863
|
}, 16, ["disabled"])) : createCommentVNode("", true),
|
|
2557
|
-
pagination.value.next ? (openBlock(), createBlock(_sfc_main$
|
|
2864
|
+
pagination.value.next ? (openBlock(), createBlock(_sfc_main$11, mergeProps({ key: 4 }, buttonProps.value, {
|
|
2558
2865
|
"aria-label": "Next",
|
|
2559
2866
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
|
|
2560
2867
|
}), {
|
|
@@ -2659,21 +2966,21 @@ const useToastManager = /* @__PURE__ */ createGlobalState(() => {
|
|
|
2659
2966
|
promise
|
|
2660
2967
|
};
|
|
2661
2968
|
});
|
|
2662
|
-
const _sfc_main$
|
|
2663
|
-
const _hoisted_1$
|
|
2969
|
+
const _sfc_main$6 = {};
|
|
2970
|
+
const _hoisted_1$7 = { class: "ui-SpinnerIcon" };
|
|
2664
2971
|
function _sfc_render(_ctx, _cache) {
|
|
2665
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
2972
|
+
return openBlock(), createElementBlock("span", _hoisted_1$7, _cache[0] || (_cache[0] = [
|
|
2666
2973
|
createStaticVNode('<span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span>', 8)
|
|
2667
2974
|
]));
|
|
2668
2975
|
}
|
|
2669
|
-
const SpinnerIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2670
|
-
const _hoisted_1$
|
|
2976
|
+
const SpinnerIcon = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]);
|
|
2977
|
+
const _hoisted_1$6 = {
|
|
2671
2978
|
viewBox: "0 0 24 24",
|
|
2672
2979
|
width: "1em",
|
|
2673
2980
|
height: "1em"
|
|
2674
2981
|
};
|
|
2675
2982
|
function render$4(_ctx, _cache) {
|
|
2676
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2983
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [
|
|
2677
2984
|
createElementVNode("path", {
|
|
2678
2985
|
fill: "currentColor",
|
|
2679
2986
|
d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-12.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m2 5.5h-1v-4.5h-3v2h1V15h-1v2h4z"
|
|
@@ -2681,13 +2988,13 @@ function render$4(_ctx, _cache) {
|
|
|
2681
2988
|
]));
|
|
2682
2989
|
}
|
|
2683
2990
|
const InfoIcon = markRaw({ name: "ri-information-2-fill", render: render$4 });
|
|
2684
|
-
const _hoisted_1$
|
|
2991
|
+
const _hoisted_1$5 = {
|
|
2685
2992
|
viewBox: "0 0 24 24",
|
|
2686
2993
|
width: "1em",
|
|
2687
2994
|
height: "1em"
|
|
2688
2995
|
};
|
|
2689
2996
|
function render$3(_ctx, _cache) {
|
|
2690
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2997
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$5, _cache[0] || (_cache[0] = [
|
|
2691
2998
|
createElementVNode("path", {
|
|
2692
2999
|
fill: "currentColor",
|
|
2693
3000
|
d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m5.457-12.543L11 15.914l-4.207-4.207l1.414-1.414L11 13.086l5.043-5.043z"
|
|
@@ -2695,13 +3002,13 @@ function render$3(_ctx, _cache) {
|
|
|
2695
3002
|
]));
|
|
2696
3003
|
}
|
|
2697
3004
|
const SuccessIcon = markRaw({ name: "ri-checkbox-circle-fill", render: render$3 });
|
|
2698
|
-
const _hoisted_1$
|
|
3005
|
+
const _hoisted_1$4 = {
|
|
2699
3006
|
viewBox: "0 0 24 24",
|
|
2700
3007
|
width: "1em",
|
|
2701
3008
|
height: "1em"
|
|
2702
3009
|
};
|
|
2703
3010
|
function render$2(_ctx, _cache) {
|
|
2704
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3011
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [
|
|
2705
3012
|
createElementVNode("path", {
|
|
2706
3013
|
fill: "currentColor",
|
|
2707
3014
|
d: "m12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0M11 16v2h2v-2zm0-7v5h2V9z"
|
|
@@ -2709,13 +3016,13 @@ function render$2(_ctx, _cache) {
|
|
|
2709
3016
|
]));
|
|
2710
3017
|
}
|
|
2711
3018
|
const WarningIcon = markRaw({ name: "ri-alert-fill", render: render$2 });
|
|
2712
|
-
const _hoisted_1$
|
|
3019
|
+
const _hoisted_1$3 = {
|
|
2713
3020
|
viewBox: "0 0 24 24",
|
|
2714
3021
|
width: "1em",
|
|
2715
3022
|
height: "1em"
|
|
2716
3023
|
};
|
|
2717
3024
|
function render$1(_ctx, _cache) {
|
|
2718
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3025
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [
|
|
2719
3026
|
createElementVNode("path", {
|
|
2720
3027
|
fill: "currentColor",
|
|
2721
3028
|
d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m-1-7v2h2v-2zm0-8v6h2V7z"
|
|
@@ -2723,7 +3030,7 @@ function render$1(_ctx, _cache) {
|
|
|
2723
3030
|
]));
|
|
2724
3031
|
}
|
|
2725
3032
|
const ErrorIcon = markRaw({ name: "ri-error-warning-fill", render: render$1 });
|
|
2726
|
-
const _hoisted_1$
|
|
3033
|
+
const _hoisted_1$2 = ["data-accent-color"];
|
|
2727
3034
|
const _hoisted_2$1 = { class: "ui-ToastContent" };
|
|
2728
3035
|
const CATEGORY_ICONS = {
|
|
2729
3036
|
loading: SpinnerIcon,
|
|
@@ -2739,7 +3046,7 @@ const CATEGORY_COLORS = {
|
|
|
2739
3046
|
warning: "orange",
|
|
2740
3047
|
error: "red"
|
|
2741
3048
|
};
|
|
2742
|
-
const _sfc_main$
|
|
3049
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2743
3050
|
__name: "ToastItem",
|
|
2744
3051
|
props: {
|
|
2745
3052
|
yPosition: {},
|
|
@@ -2809,7 +3116,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2809
3116
|
"data-accent-color": categoryColor.value
|
|
2810
3117
|
}, [
|
|
2811
3118
|
(openBlock(), createBlock(resolveDynamicComponent(categoryIcon.value)))
|
|
2812
|
-
], 8, _hoisted_1$
|
|
3119
|
+
], 8, _hoisted_1$2)) : createCommentVNode("", true),
|
|
2813
3120
|
createElementVNode("div", _hoisted_2$1, [
|
|
2814
3121
|
createVNode(unref(ToastTitle), { class: "ui-ToastTitle" }, {
|
|
2815
3122
|
default: withCtx(() => [
|
|
@@ -2835,7 +3142,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2835
3142
|
onClick: _ctx.message.action.onClick
|
|
2836
3143
|
}, {
|
|
2837
3144
|
default: withCtx(() => [
|
|
2838
|
-
createVNode(_sfc_main$
|
|
3145
|
+
createVNode(_sfc_main$12, {
|
|
2839
3146
|
variant: _ctx.message.action.variant || "soft",
|
|
2840
3147
|
radius: _ctx.message.action.radius,
|
|
2841
3148
|
size: _ctx.message.action.size || "1",
|
|
@@ -2855,7 +3162,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2855
3162
|
};
|
|
2856
3163
|
}
|
|
2857
3164
|
});
|
|
2858
|
-
const _sfc_main$
|
|
3165
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2859
3166
|
...{
|
|
2860
3167
|
inheritAttrs: false
|
|
2861
3168
|
},
|
|
@@ -2894,7 +3201,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2894
3201
|
message: msg,
|
|
2895
3202
|
index
|
|
2896
3203
|
}, () => [
|
|
2897
|
-
(openBlock(), createBlock(_sfc_main$
|
|
3204
|
+
(openBlock(), createBlock(_sfc_main$5, {
|
|
2898
3205
|
key: msg.id,
|
|
2899
3206
|
message: msg,
|
|
2900
3207
|
index,
|
|
@@ -2905,7 +3212,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2905
3212
|
}), 128)),
|
|
2906
3213
|
createVNode(unref(ToastPortal), null, {
|
|
2907
3214
|
default: withCtx(() => [
|
|
2908
|
-
createVNode(_sfc_main$
|
|
3215
|
+
createVNode(_sfc_main$_, null, {
|
|
2909
3216
|
default: withCtx(() => [
|
|
2910
3217
|
createVNode(unref(ToastViewport), mergeProps({ class: "ui-ToastViewport" }, _ctx.$attrs, {
|
|
2911
3218
|
class: `r-size-${_ctx.size}`,
|
|
@@ -2937,9 +3244,9 @@ const toast = Object.assign(
|
|
|
2937
3244
|
promise: toastManager.promise
|
|
2938
3245
|
}
|
|
2939
3246
|
);
|
|
2940
|
-
const _hoisted_1$
|
|
3247
|
+
const _hoisted_1$1 = ["data-size", "data-variant"];
|
|
2941
3248
|
const _hoisted_2 = ["data-layout"];
|
|
2942
|
-
const _sfc_main$
|
|
3249
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2943
3250
|
__name: "Table",
|
|
2944
3251
|
props: {
|
|
2945
3252
|
size: { default: "2" },
|
|
@@ -2954,7 +3261,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2954
3261
|
"data-size": props.size,
|
|
2955
3262
|
"data-variant": props.variant
|
|
2956
3263
|
}, [
|
|
2957
|
-
createVNode(_sfc_main
|
|
3264
|
+
createVNode(_sfc_main$$, null, {
|
|
2958
3265
|
default: withCtx(() => [
|
|
2959
3266
|
createElementVNode("table", {
|
|
2960
3267
|
class: "ui-TableContent",
|
|
@@ -2965,11 +3272,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2965
3272
|
]),
|
|
2966
3273
|
_: 3
|
|
2967
3274
|
})
|
|
2968
|
-
], 8, _hoisted_1$
|
|
3275
|
+
], 8, _hoisted_1$1);
|
|
2969
3276
|
};
|
|
2970
3277
|
}
|
|
2971
3278
|
});
|
|
2972
|
-
const _sfc_main$
|
|
3279
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2973
3280
|
__name: "Separator",
|
|
2974
3281
|
props: {
|
|
2975
3282
|
as: { default: "span" },
|
|
@@ -2990,90 +3297,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2990
3297
|
};
|
|
2991
3298
|
}
|
|
2992
3299
|
});
|
|
2993
|
-
const _hoisted_1$1 = ["textContent"];
|
|
2994
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2995
|
-
...{
|
|
2996
|
-
inheritAttrs: false
|
|
2997
|
-
},
|
|
2998
|
-
__name: "Tooltip",
|
|
2999
|
-
props: {
|
|
3000
|
-
content: {},
|
|
3001
|
-
maxWidth: { default: "360px" },
|
|
3002
|
-
color: { default: "gray" },
|
|
3003
|
-
forceMount: { type: Boolean },
|
|
3004
|
-
ariaLabel: {},
|
|
3005
|
-
asChild: { type: Boolean },
|
|
3006
|
-
as: {},
|
|
3007
|
-
side: { default: "top" },
|
|
3008
|
-
sideOffset: { default: 4 },
|
|
3009
|
-
align: {},
|
|
3010
|
-
alignOffset: {},
|
|
3011
|
-
avoidCollisions: { type: Boolean, default: true },
|
|
3012
|
-
collisionBoundary: {},
|
|
3013
|
-
collisionPadding: { default: 10 },
|
|
3014
|
-
arrowPadding: {},
|
|
3015
|
-
sticky: {},
|
|
3016
|
-
hideWhenDetached: { type: Boolean },
|
|
3017
|
-
positionStrategy: {},
|
|
3018
|
-
updatePositionStrategy: {}
|
|
3019
|
-
},
|
|
3020
|
-
setup(__props) {
|
|
3021
|
-
const props = __props;
|
|
3022
|
-
return (_ctx, _cache) => {
|
|
3023
|
-
return openBlock(), createBlock(unref(TooltipRoot), null, {
|
|
3024
|
-
default: withCtx(() => [
|
|
3025
|
-
createVNode(unref(TooltipTrigger), mergeProps({
|
|
3026
|
-
as: props.as,
|
|
3027
|
-
"as-child": props.asChild
|
|
3028
|
-
}, _ctx.$attrs), {
|
|
3029
|
-
default: withCtx(() => [
|
|
3030
|
-
renderSlot(_ctx.$slots, "default")
|
|
3031
|
-
]),
|
|
3032
|
-
_: 3
|
|
3033
|
-
}, 16, ["as", "as-child"]),
|
|
3034
|
-
createVNode(unref(TooltipPortal), null, {
|
|
3035
|
-
default: withCtx(() => [
|
|
3036
|
-
createVNode(_sfc_main$S, null, {
|
|
3037
|
-
default: withCtx(() => [
|
|
3038
|
-
createVNode(unref(TooltipContent), {
|
|
3039
|
-
class: "ui-Tooltip",
|
|
3040
|
-
align: props.align,
|
|
3041
|
-
"align-offset": props.alignOffset,
|
|
3042
|
-
"aria-label": props.ariaLabel,
|
|
3043
|
-
"arrow-padding": props.arrowPadding,
|
|
3044
|
-
"avoid-collisions": props.avoidCollisions,
|
|
3045
|
-
"collision-boundary": props.collisionBoundary,
|
|
3046
|
-
"collision-padding": props.collisionPadding,
|
|
3047
|
-
"hide-when-detached": props.hideWhenDetached,
|
|
3048
|
-
side: props.side,
|
|
3049
|
-
"side-offset": props.sideOffset,
|
|
3050
|
-
sticky: props.sticky,
|
|
3051
|
-
"data-accent-color": props.color,
|
|
3052
|
-
style: normalizeStyle({ maxWidth: props.maxWidth })
|
|
3053
|
-
}, {
|
|
3054
|
-
default: withCtx(() => [
|
|
3055
|
-
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
3056
|
-
createElementVNode("p", {
|
|
3057
|
-
class: "ui-TooltipText",
|
|
3058
|
-
textContent: toDisplayString(props.content)
|
|
3059
|
-
}, null, 8, _hoisted_1$1)
|
|
3060
|
-
]),
|
|
3061
|
-
createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
|
|
3062
|
-
]),
|
|
3063
|
-
_: 3
|
|
3064
|
-
}, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky", "data-accent-color", "style"])
|
|
3065
|
-
]),
|
|
3066
|
-
_: 3
|
|
3067
|
-
})
|
|
3068
|
-
]),
|
|
3069
|
-
_: 3
|
|
3070
|
-
})
|
|
3071
|
-
]),
|
|
3072
|
-
_: 3
|
|
3073
|
-
});
|
|
3074
|
-
};
|
|
3075
|
-
}
|
|
3076
|
-
});
|
|
3077
3300
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3078
3301
|
__name: "Quota",
|
|
3079
3302
|
props: {
|
|
@@ -3161,88 +3384,96 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3161
3384
|
}
|
|
3162
3385
|
});
|
|
3163
3386
|
export {
|
|
3164
|
-
_sfc_main$
|
|
3165
|
-
_sfc_main$
|
|
3166
|
-
_sfc_main$
|
|
3167
|
-
_sfc_main$
|
|
3168
|
-
_sfc_main$
|
|
3387
|
+
_sfc_main$e as AccordionContent,
|
|
3388
|
+
_sfc_main$d as AccordionIndicator,
|
|
3389
|
+
_sfc_main$f as AccordionItem,
|
|
3390
|
+
_sfc_main$g as AccordionRoot,
|
|
3391
|
+
_sfc_main$c as AccordionTrigger,
|
|
3169
3392
|
AlertDialogAction,
|
|
3170
3393
|
AlertDialogCancel,
|
|
3171
|
-
_sfc_main$
|
|
3172
|
-
_sfc_main$
|
|
3394
|
+
_sfc_main$Y as AlertDialogCancelButton,
|
|
3395
|
+
_sfc_main$W as AlertDialogDescription,
|
|
3396
|
+
_sfc_main$U as AlertDialogPopup,
|
|
3173
3397
|
AlertDialogRoot,
|
|
3174
|
-
_sfc_main$
|
|
3398
|
+
_sfc_main$X as AlertDialogTitle,
|
|
3175
3399
|
AlertDialogTrigger,
|
|
3176
|
-
_sfc_main
|
|
3177
|
-
_sfc_main$
|
|
3178
|
-
_sfc_main$
|
|
3179
|
-
_sfc_main$
|
|
3180
|
-
_sfc_main$
|
|
3400
|
+
_sfc_main$15 as Avatar,
|
|
3401
|
+
_sfc_main$14 as Badge,
|
|
3402
|
+
_sfc_main$12 as Button,
|
|
3403
|
+
_sfc_main$13 as Card,
|
|
3404
|
+
_sfc_main$J as Checkbox,
|
|
3181
3405
|
CheckboxGroupRoot as CheckboxGroup,
|
|
3182
|
-
_sfc_main$
|
|
3183
|
-
_sfc_main$
|
|
3184
|
-
_sfc_main$
|
|
3185
|
-
_sfc_main$
|
|
3186
|
-
_sfc_main$
|
|
3187
|
-
_sfc_main$
|
|
3188
|
-
_sfc_main$
|
|
3189
|
-
_sfc_main$
|
|
3406
|
+
_sfc_main$10 as CloseButton,
|
|
3407
|
+
_sfc_main$8 as CollapsibleContent,
|
|
3408
|
+
_sfc_main$a as CollapsibleIndicator,
|
|
3409
|
+
_sfc_main$b as CollapsibleRoot,
|
|
3410
|
+
_sfc_main$9 as CollapsibleTrigger,
|
|
3411
|
+
_sfc_main$D as ColorField,
|
|
3412
|
+
_sfc_main$u as ComboboxContent,
|
|
3413
|
+
_sfc_main$r as ComboboxEmpty,
|
|
3190
3414
|
ComboboxGroup,
|
|
3191
|
-
_sfc_main$
|
|
3192
|
-
_sfc_main$
|
|
3193
|
-
_sfc_main$
|
|
3194
|
-
_sfc_main$
|
|
3195
|
-
DialogClose,
|
|
3196
|
-
_sfc_main$
|
|
3197
|
-
_sfc_main$
|
|
3415
|
+
_sfc_main$v as ComboboxInput,
|
|
3416
|
+
_sfc_main$t as ComboboxItem,
|
|
3417
|
+
_sfc_main$s as ComboboxLabel,
|
|
3418
|
+
_sfc_main$w as ComboboxRoot,
|
|
3419
|
+
DialogClose2 as DialogClose,
|
|
3420
|
+
_sfc_main$Y as DialogCloseButton,
|
|
3421
|
+
_sfc_main$W as DialogDescription,
|
|
3422
|
+
_sfc_main$V as DialogPopup,
|
|
3198
3423
|
DialogRoot,
|
|
3199
|
-
_sfc_main$
|
|
3424
|
+
_sfc_main$X as DialogTitle,
|
|
3200
3425
|
DialogTrigger,
|
|
3201
|
-
_sfc_main$
|
|
3202
|
-
_sfc_main$
|
|
3426
|
+
_sfc_main$T as DropdownMenuContent,
|
|
3427
|
+
_sfc_main$S as DropdownMenuItem,
|
|
3203
3428
|
DropdownMenuRoot,
|
|
3204
3429
|
DropdownMenuSeparator,
|
|
3205
3430
|
DropdownMenuTrigger,
|
|
3206
|
-
_sfc_main$
|
|
3207
|
-
_sfc_main$
|
|
3208
|
-
_sfc_main$
|
|
3431
|
+
_sfc_main$h as Editable,
|
|
3432
|
+
_sfc_main$11 as IconButton,
|
|
3433
|
+
_sfc_main$L as NavigationMenuContent,
|
|
3434
|
+
NavigationMenuItem,
|
|
3435
|
+
_sfc_main$N as NavigationMenuLink,
|
|
3436
|
+
_sfc_main$O as NavigationMenuList,
|
|
3437
|
+
_sfc_main$P as NavigationMenuRoot,
|
|
3438
|
+
_sfc_main$M as NavigationMenuTrigger,
|
|
3439
|
+
_sfc_main$7 as Pagination,
|
|
3209
3440
|
PopoverClose,
|
|
3210
|
-
_sfc_main$
|
|
3441
|
+
_sfc_main$Q as PopoverPopup,
|
|
3211
3442
|
PopoverRoot,
|
|
3212
3443
|
PopoverTrigger,
|
|
3213
3444
|
_sfc_main$1 as Quota,
|
|
3214
|
-
_sfc_main$
|
|
3215
|
-
_sfc_main$
|
|
3216
|
-
_sfc_main$
|
|
3217
|
-
_sfc_main$
|
|
3218
|
-
_sfc_main$
|
|
3219
|
-
_sfc_main$
|
|
3220
|
-
_sfc_main$
|
|
3445
|
+
_sfc_main$q as Radio,
|
|
3446
|
+
_sfc_main$m as RadioCardsItem,
|
|
3447
|
+
_sfc_main$n as RadioCardsRoot,
|
|
3448
|
+
_sfc_main$o as RadioGroupItem,
|
|
3449
|
+
_sfc_main$p as RadioGroupRoot,
|
|
3450
|
+
_sfc_main$k as RadioTabsItem,
|
|
3451
|
+
_sfc_main$l as RadioTabsRoot,
|
|
3221
3452
|
_sfc_main as SavingIndicator,
|
|
3222
|
-
_sfc_main
|
|
3223
|
-
_sfc_main$
|
|
3453
|
+
_sfc_main$$ as ScrollArea,
|
|
3454
|
+
_sfc_main$B as SelectContent,
|
|
3224
3455
|
SelectGroup,
|
|
3225
|
-
_sfc_main$
|
|
3226
|
-
_sfc_main$
|
|
3227
|
-
_sfc_main$
|
|
3456
|
+
_sfc_main$z as SelectItem,
|
|
3457
|
+
_sfc_main$y as SelectLabel,
|
|
3458
|
+
_sfc_main$C as SelectRoot,
|
|
3228
3459
|
SelectSeparator,
|
|
3229
|
-
_sfc_main$
|
|
3230
|
-
_sfc_main$
|
|
3460
|
+
_sfc_main$A as SelectTrigger,
|
|
3461
|
+
_sfc_main$2 as Separator,
|
|
3231
3462
|
SpinnerIcon,
|
|
3232
|
-
_sfc_main$
|
|
3233
|
-
_sfc_main$
|
|
3463
|
+
_sfc_main$K as Switch,
|
|
3464
|
+
_sfc_main$3 as Table,
|
|
3234
3465
|
TabsContent,
|
|
3235
|
-
_sfc_main$
|
|
3466
|
+
_sfc_main$j as TabsList,
|
|
3236
3467
|
TabsRoot,
|
|
3237
|
-
_sfc_main$
|
|
3238
|
-
_sfc_main$
|
|
3239
|
-
_sfc_main$
|
|
3240
|
-
_sfc_main$
|
|
3241
|
-
_sfc_main$
|
|
3242
|
-
_sfc_main$
|
|
3243
|
-
_sfc_main$
|
|
3244
|
-
_sfc_main$
|
|
3245
|
-
_sfc_main$
|
|
3468
|
+
_sfc_main$i as TabsTrigger,
|
|
3469
|
+
_sfc_main$E as TextArea,
|
|
3470
|
+
_sfc_main$F as TextField,
|
|
3471
|
+
_sfc_main$16 as ThemeProvider,
|
|
3472
|
+
_sfc_main$4 as ToastProvider,
|
|
3473
|
+
_sfc_main$I as Toggle,
|
|
3474
|
+
_sfc_main$G as ToggleGroupItem,
|
|
3475
|
+
_sfc_main$H as ToggleGroupRoot,
|
|
3476
|
+
_sfc_main$Z as Tooltip,
|
|
3246
3477
|
buildPropsClass,
|
|
3247
3478
|
injectThemeContext,
|
|
3248
3479
|
provideThemeContext,
|