@tb-dev/vue-components 0.2.6 → 1.0.1
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/components/__base/accordion/Accordion.vue.d.ts +23 -0
- package/dist/components/__base/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/components/__base/accordion/AccordionItem.vue.d.ts +22 -0
- package/dist/components/__base/accordion/AccordionTrigger.vue.d.ts +23 -0
- package/dist/components/__base/accordion/index.d.ts +4 -0
- package/dist/components/__base/alert/Alert.vue.d.ts +23 -0
- package/dist/components/__base/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/components/__base/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/components/__base/alert/index.d.ts +8 -0
- package/dist/components/__base/alert-dialog/AlertDialog.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogContent.vue.d.ts +52 -0
- package/dist/components/__base/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
- package/dist/components/__base/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
- package/dist/components/__base/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/components/__base/alert-dialog/index.d.ts +9 -0
- package/dist/components/__base/avatar/Avatar.vue.d.ts +21 -0
- package/dist/components/__base/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/components/__base/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/components/__base/avatar/index.d.ts +3 -0
- package/dist/components/__base/badge/index.d.ts +1 -1
- package/dist/components/__base/button/index.d.ts +1 -1
- package/dist/components/__base/combobox/Combobox.vue.d.ts +2 -2
- package/dist/components/__base/context-menu/ContextMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/context-menu/ContextMenuSubContent.vue.d.ts +2 -2
- package/dist/components/__base/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/__base/menubar/MenubarCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/menubar/MenubarSubContent.vue.d.ts +2 -2
- package/dist/components/__base/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/__base/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/components/__base/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/components/__base/toggle/Toggle.vue.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialog.vue.d.ts +29 -0
- package/dist/components/alert-dialog/index.d.ts +3 -0
- package/dist/components/alert-dialog/types.d.ts +10 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.vue.d.ts +29 -0
- package/dist/components/dialog/index.d.ts +4 -1
- package/dist/components/dialog/types.d.ts +8 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/index.css +111 -0
- package/dist/index.js +701 -137
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,21 +1,631 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createElementBlock, createCommentVNode, computed, normalizeStyle, toDisplayString, resolveDynamicComponent, mergeModels, useModel, createTextVNode, withDirectives, isRef, vModelText, useTemplateRef, normalizeProps, guardReactiveProps, Fragment, ref, renderList, createSlots } from 'vue';
|
|
2
|
+
import { useForwardPropsEmits, AccordionRoot, AccordionContent, useForwardProps, AccordionItem, AccordionHeader, AccordionTrigger, AlertDialogRoot, Primitive, AlertDialogAction, AlertDialogCancel, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, AvatarRoot, AvatarFallback, AvatarImage, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, CheckboxRoot, CheckboxIndicator, ComboboxRoot, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCardRoot, HoverCardPortal, HoverCardContent, HoverCardTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Label, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, PaginationRoot, PaginationList, PaginationEllipsis, PaginationFirst, PaginationListItem, PaginationLast, PaginationNext, PaginationPrev, PopoverRoot, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SplitterResizeHandle, SplitterPanel, SplitterGroup, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, Separator, createContext, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SliderRoot, SliderTrack, SliderRange, SliderThumb, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
|
|
3
|
+
export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal, PaginationList, PaginationListItem } from 'reka-ui';
|
|
4
|
+
import { reactiveOmit, useVModel, onClickOutside, useMediaQuery } from '@vueuse/core';
|
|
3
5
|
import { twMerge } from 'tailwind-merge';
|
|
4
6
|
import { clsx } from 'clsx';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
+
import { ChevronDown, Check, SearchIcon, Circle, ChevronRight, X, Minus, Plus, LoaderCircle, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, GripVertical, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
8
|
+
import { cva } from 'class-variance-authority';
|
|
7
9
|
import { RouterLink } from 'vue-router';
|
|
8
10
|
import { toPixel } from '@tb-dev/utils';
|
|
9
|
-
import { Check, SearchIcon, Circle, ChevronRight, X, Minus, Plus, LoaderCircle, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, GripVertical, ChevronDown, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
10
|
-
import { reactiveOmit, useVModel, onClickOutside, useMediaQuery } from '@vueuse/core';
|
|
11
11
|
import { Toaster } from 'vue-sonner';
|
|
12
12
|
export { toast as sonner } from 'vue-sonner';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const _sfc_main$3i = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "Accordion",
|
|
16
|
+
props: {
|
|
17
|
+
collapsible: { type: Boolean },
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
dir: {},
|
|
20
|
+
orientation: {},
|
|
21
|
+
unmountOnHide: { type: Boolean },
|
|
22
|
+
asChild: { type: Boolean },
|
|
23
|
+
as: { type: [String, Object, Function] },
|
|
24
|
+
type: {},
|
|
25
|
+
modelValue: {},
|
|
26
|
+
defaultValue: {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const emits = __emit;
|
|
32
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(unref(AccordionRoot), mergeProps({ "data-slot": "accordion" }, unref(forwarded)), {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
renderSlot(_ctx.$slots, "default")
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
function cn(...inputs) {
|
|
45
|
+
return twMerge(clsx(inputs));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const _sfc_main$3h = /* @__PURE__ */ defineComponent({
|
|
49
|
+
__name: "AccordionContent",
|
|
50
|
+
props: {
|
|
51
|
+
forceMount: { type: Boolean },
|
|
52
|
+
asChild: { type: Boolean },
|
|
53
|
+
as: { type: [String, Object, Function] },
|
|
54
|
+
class: {}
|
|
55
|
+
},
|
|
56
|
+
setup(__props) {
|
|
57
|
+
const props = __props;
|
|
58
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createBlock(unref(AccordionContent), mergeProps({ "data-slot": "accordion-content" }, unref(delegatedProps), { class: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }), {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
createElementVNode("div", {
|
|
63
|
+
class: normalizeClass(unref(cn)("pt-0 pb-4", props.class))
|
|
64
|
+
}, [
|
|
65
|
+
renderSlot(_ctx.$slots, "default")
|
|
66
|
+
], 2)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 16);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
75
|
+
__name: "AccordionItem",
|
|
76
|
+
props: {
|
|
77
|
+
disabled: { type: Boolean },
|
|
78
|
+
value: {},
|
|
79
|
+
unmountOnHide: { type: Boolean },
|
|
80
|
+
asChild: { type: Boolean },
|
|
81
|
+
as: { type: [String, Object, Function] },
|
|
82
|
+
class: {}
|
|
83
|
+
},
|
|
84
|
+
setup(__props) {
|
|
85
|
+
const props = __props;
|
|
86
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
87
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return openBlock(), createBlock(unref(AccordionItem), mergeProps({ "data-slot": "accordion-item" }, unref(forwardedProps), {
|
|
90
|
+
class: unref(cn)("border-b last:border-b-0", props.class)
|
|
91
|
+
}), {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
renderSlot(_ctx.$slots, "default")
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 16, ["class"]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
102
|
+
__name: "AccordionTrigger",
|
|
103
|
+
props: {
|
|
104
|
+
asChild: { type: Boolean },
|
|
105
|
+
as: { type: [String, Object, Function] },
|
|
106
|
+
class: {}
|
|
107
|
+
},
|
|
108
|
+
setup(__props) {
|
|
109
|
+
const props = __props;
|
|
110
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
return openBlock(), createBlock(unref(AccordionHeader), { class: "flex" }, {
|
|
113
|
+
default: withCtx(() => [
|
|
114
|
+
createVNode(unref(AccordionTrigger), mergeProps({ "data-slot": "accordion-trigger" }, unref(delegatedProps), {
|
|
115
|
+
class: unref(cn)(
|
|
116
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
117
|
+
props.class
|
|
118
|
+
)
|
|
119
|
+
}), {
|
|
120
|
+
default: withCtx(() => [
|
|
121
|
+
renderSlot(_ctx.$slots, "default"),
|
|
122
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
123
|
+
createVNode(unref(ChevronDown), { class: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
124
|
+
])
|
|
125
|
+
]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 16, ["class"])
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const _sfc_main$3e = /* @__PURE__ */ defineComponent({
|
|
136
|
+
__name: "Alert",
|
|
137
|
+
props: {
|
|
138
|
+
class: {},
|
|
139
|
+
variant: {}
|
|
140
|
+
},
|
|
141
|
+
setup(__props) {
|
|
142
|
+
const props = __props;
|
|
143
|
+
return (_ctx, _cache) => {
|
|
144
|
+
return openBlock(), createElementBlock("div", {
|
|
145
|
+
"data-slot": "alert",
|
|
146
|
+
class: normalizeClass(unref(cn)(unref(alertVariants)({ variant: _ctx.variant }), props.class)),
|
|
147
|
+
role: "alert"
|
|
148
|
+
}, [
|
|
149
|
+
renderSlot(_ctx.$slots, "default")
|
|
150
|
+
], 2);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const _sfc_main$3d = /* @__PURE__ */ defineComponent({
|
|
156
|
+
__name: "AlertDescription",
|
|
157
|
+
props: {
|
|
158
|
+
class: {}
|
|
159
|
+
},
|
|
160
|
+
setup(__props) {
|
|
161
|
+
const props = __props;
|
|
162
|
+
return (_ctx, _cache) => {
|
|
163
|
+
return openBlock(), createElementBlock("div", {
|
|
164
|
+
"data-slot": "alert-description",
|
|
165
|
+
class: normalizeClass(
|
|
166
|
+
unref(cn)(
|
|
167
|
+
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
168
|
+
props.class
|
|
169
|
+
)
|
|
170
|
+
)
|
|
171
|
+
}, [
|
|
172
|
+
renderSlot(_ctx.$slots, "default")
|
|
173
|
+
], 2);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
const _sfc_main$3c = /* @__PURE__ */ defineComponent({
|
|
179
|
+
__name: "AlertTitle",
|
|
180
|
+
props: {
|
|
181
|
+
class: {}
|
|
182
|
+
},
|
|
183
|
+
setup(__props) {
|
|
184
|
+
const props = __props;
|
|
185
|
+
return (_ctx, _cache) => {
|
|
186
|
+
return openBlock(), createElementBlock("div", {
|
|
187
|
+
"data-slot": "alert-title",
|
|
188
|
+
class: normalizeClass(unref(cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", props.class))
|
|
189
|
+
}, [
|
|
190
|
+
renderSlot(_ctx.$slots, "default")
|
|
191
|
+
], 2);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
const alertVariants = cva(
|
|
197
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
198
|
+
{
|
|
199
|
+
variants: {
|
|
200
|
+
variant: {
|
|
201
|
+
default: "bg-card text-card-foreground",
|
|
202
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
defaultVariants: {
|
|
206
|
+
variant: "default"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
212
|
+
__name: "AlertDialog",
|
|
213
|
+
props: {
|
|
214
|
+
open: { type: Boolean },
|
|
215
|
+
defaultOpen: { type: Boolean }
|
|
216
|
+
},
|
|
217
|
+
emits: ["update:open"],
|
|
218
|
+
setup(__props, { emit: __emit }) {
|
|
219
|
+
const props = __props;
|
|
220
|
+
const emits = __emit;
|
|
221
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
222
|
+
return (_ctx, _cache) => {
|
|
223
|
+
return openBlock(), createBlock(unref(AlertDialogRoot), mergeProps({ "data-slot": "alert-dialog" }, unref(forwarded)), {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
renderSlot(_ctx.$slots, "default")
|
|
226
|
+
]),
|
|
227
|
+
_: 3
|
|
228
|
+
}, 16);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
234
|
+
__name: "Button",
|
|
235
|
+
props: {
|
|
236
|
+
variant: {},
|
|
237
|
+
size: {},
|
|
238
|
+
class: {},
|
|
239
|
+
type: { default: "button" },
|
|
240
|
+
asChild: { type: Boolean },
|
|
241
|
+
as: { type: [String, Object, Function], default: "button" }
|
|
242
|
+
},
|
|
243
|
+
setup(__props) {
|
|
244
|
+
const props = __props;
|
|
245
|
+
return (_ctx, _cache) => {
|
|
246
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
247
|
+
"data-slot": "button",
|
|
248
|
+
as: _ctx.as,
|
|
249
|
+
"as-child": _ctx.asChild,
|
|
250
|
+
type: _ctx.type,
|
|
251
|
+
class: normalizeClass(unref(cn)(unref(buttonVariants)({ variant: _ctx.variant, size: _ctx.size }), props.class))
|
|
252
|
+
}, {
|
|
253
|
+
default: withCtx(() => [
|
|
254
|
+
renderSlot(_ctx.$slots, "default")
|
|
255
|
+
]),
|
|
256
|
+
_: 3
|
|
257
|
+
}, 8, ["as", "as-child", "type", "class"]);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
const buttonVariants = cva(
|
|
263
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
264
|
+
{
|
|
265
|
+
variants: {
|
|
266
|
+
variant: {
|
|
267
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
268
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
269
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
270
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
271
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
272
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
273
|
+
},
|
|
274
|
+
size: {
|
|
275
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
276
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
277
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
278
|
+
icon: "size-9"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
defaultVariants: {
|
|
282
|
+
variant: "default",
|
|
283
|
+
size: "default"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
|
|
288
|
+
const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
289
|
+
__name: "AlertDialogAction",
|
|
290
|
+
props: {
|
|
291
|
+
asChild: { type: Boolean },
|
|
292
|
+
as: { type: [String, Object, Function] },
|
|
293
|
+
class: {}
|
|
294
|
+
},
|
|
295
|
+
setup(__props) {
|
|
296
|
+
const props = __props;
|
|
297
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
298
|
+
return (_ctx, _cache) => {
|
|
299
|
+
return openBlock(), createBlock(unref(AlertDialogAction), mergeProps(unref(delegatedProps), {
|
|
300
|
+
class: unref(cn)(unref(buttonVariants)(), props.class)
|
|
301
|
+
}), {
|
|
302
|
+
default: withCtx(() => [
|
|
303
|
+
renderSlot(_ctx.$slots, "default")
|
|
304
|
+
]),
|
|
305
|
+
_: 3
|
|
306
|
+
}, 16, ["class"]);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
312
|
+
__name: "AlertDialogCancel",
|
|
313
|
+
props: {
|
|
314
|
+
asChild: { type: Boolean },
|
|
315
|
+
as: { type: [String, Object, Function] },
|
|
316
|
+
class: {}
|
|
317
|
+
},
|
|
318
|
+
setup(__props) {
|
|
319
|
+
const props = __props;
|
|
320
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
321
|
+
return (_ctx, _cache) => {
|
|
322
|
+
return openBlock(), createBlock(unref(AlertDialogCancel), mergeProps(unref(delegatedProps), {
|
|
323
|
+
class: unref(cn)(unref(buttonVariants)({ variant: "outline" }), "mt-2 sm:mt-0", props.class)
|
|
324
|
+
}), {
|
|
325
|
+
default: withCtx(() => [
|
|
326
|
+
renderSlot(_ctx.$slots, "default")
|
|
327
|
+
]),
|
|
328
|
+
_: 3
|
|
329
|
+
}, 16, ["class"]);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
const _sfc_main$37 = /* @__PURE__ */ defineComponent({
|
|
335
|
+
__name: "AlertDialogContent",
|
|
336
|
+
props: {
|
|
337
|
+
forceMount: { type: Boolean },
|
|
338
|
+
trapFocus: { type: Boolean },
|
|
339
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
340
|
+
asChild: { type: Boolean },
|
|
341
|
+
as: { type: [String, Object, Function] },
|
|
342
|
+
class: {}
|
|
343
|
+
},
|
|
344
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
345
|
+
setup(__props, { emit: __emit }) {
|
|
346
|
+
const props = __props;
|
|
347
|
+
const emits = __emit;
|
|
348
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
349
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
350
|
+
return (_ctx, _cache) => {
|
|
351
|
+
return openBlock(), createBlock(unref(AlertDialogPortal), null, {
|
|
352
|
+
default: withCtx(() => [
|
|
353
|
+
createVNode(unref(AlertDialogOverlay), {
|
|
354
|
+
"data-slot": "alert-dialog-overlay",
|
|
355
|
+
class: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"
|
|
356
|
+
}),
|
|
357
|
+
createVNode(unref(AlertDialogContent), mergeProps({ "data-slot": "alert-dialog-content" }, unref(forwarded), {
|
|
358
|
+
class: unref(cn)(
|
|
359
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
360
|
+
props.class
|
|
361
|
+
)
|
|
362
|
+
}), {
|
|
363
|
+
default: withCtx(() => [
|
|
364
|
+
renderSlot(_ctx.$slots, "default")
|
|
365
|
+
]),
|
|
366
|
+
_: 3
|
|
367
|
+
}, 16, ["class"])
|
|
368
|
+
]),
|
|
369
|
+
_: 3
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
const _sfc_main$36 = /* @__PURE__ */ defineComponent({
|
|
376
|
+
__name: "AlertDialogDescription",
|
|
377
|
+
props: {
|
|
378
|
+
asChild: { type: Boolean },
|
|
379
|
+
as: { type: [String, Object, Function] },
|
|
380
|
+
class: {}
|
|
381
|
+
},
|
|
382
|
+
setup(__props) {
|
|
383
|
+
const props = __props;
|
|
384
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
385
|
+
return (_ctx, _cache) => {
|
|
386
|
+
return openBlock(), createBlock(unref(AlertDialogDescription), mergeProps({ "data-slot": "alert-dialog-description" }, unref(delegatedProps), {
|
|
387
|
+
class: unref(cn)("text-muted-foreground text-sm", props.class)
|
|
388
|
+
}), {
|
|
389
|
+
default: withCtx(() => [
|
|
390
|
+
renderSlot(_ctx.$slots, "default")
|
|
391
|
+
]),
|
|
392
|
+
_: 3
|
|
393
|
+
}, 16, ["class"]);
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
399
|
+
__name: "AlertDialogFooter",
|
|
400
|
+
props: {
|
|
401
|
+
class: {}
|
|
402
|
+
},
|
|
403
|
+
setup(__props) {
|
|
404
|
+
const props = __props;
|
|
405
|
+
return (_ctx, _cache) => {
|
|
406
|
+
return openBlock(), createElementBlock("div", {
|
|
407
|
+
"data-slot": "alert-dialog-footer",
|
|
408
|
+
class: normalizeClass(unref(cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", props.class))
|
|
409
|
+
}, [
|
|
410
|
+
renderSlot(_ctx.$slots, "default")
|
|
411
|
+
], 2);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
417
|
+
__name: "AlertDialogHeader",
|
|
418
|
+
props: {
|
|
419
|
+
class: {}
|
|
420
|
+
},
|
|
421
|
+
setup(__props) {
|
|
422
|
+
const props = __props;
|
|
423
|
+
return (_ctx, _cache) => {
|
|
424
|
+
return openBlock(), createElementBlock("div", {
|
|
425
|
+
"data-slot": "alert-dialog-header",
|
|
426
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-2 text-center sm:text-left", props.class))
|
|
427
|
+
}, [
|
|
428
|
+
renderSlot(_ctx.$slots, "default")
|
|
429
|
+
], 2);
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
435
|
+
__name: "AlertDialogTitle",
|
|
436
|
+
props: {
|
|
437
|
+
asChild: { type: Boolean },
|
|
438
|
+
as: { type: [String, Object, Function] },
|
|
439
|
+
class: {}
|
|
440
|
+
},
|
|
441
|
+
setup(__props) {
|
|
442
|
+
const props = __props;
|
|
443
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
444
|
+
return (_ctx, _cache) => {
|
|
445
|
+
return openBlock(), createBlock(unref(AlertDialogTitle), mergeProps({ "data-slot": "alert-dialog-title" }, unref(delegatedProps), {
|
|
446
|
+
class: unref(cn)("text-lg font-semibold", props.class)
|
|
447
|
+
}), {
|
|
448
|
+
default: withCtx(() => [
|
|
449
|
+
renderSlot(_ctx.$slots, "default")
|
|
450
|
+
]),
|
|
451
|
+
_: 3
|
|
452
|
+
}, 16, ["class"]);
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
458
|
+
__name: "AlertDialogTrigger",
|
|
459
|
+
props: {
|
|
460
|
+
asChild: { type: Boolean },
|
|
461
|
+
as: { type: [String, Object, Function] }
|
|
462
|
+
},
|
|
463
|
+
setup(__props) {
|
|
464
|
+
const props = __props;
|
|
465
|
+
return (_ctx, _cache) => {
|
|
466
|
+
return openBlock(), createBlock(unref(AlertDialogTrigger), mergeProps({ "data-slot": "alert-dialog-trigger" }, props), {
|
|
467
|
+
default: withCtx(() => [
|
|
468
|
+
renderSlot(_ctx.$slots, "default")
|
|
469
|
+
]),
|
|
470
|
+
_: 3
|
|
471
|
+
}, 16);
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
477
|
+
__name: "AlertDialog",
|
|
478
|
+
props: {
|
|
479
|
+
actionClass: {},
|
|
480
|
+
cancelClass: {},
|
|
481
|
+
contentClass: {},
|
|
482
|
+
descriptionClass: {},
|
|
483
|
+
footerClass: {},
|
|
484
|
+
headerClass: {},
|
|
485
|
+
titleClass: {}
|
|
486
|
+
},
|
|
487
|
+
setup(__props) {
|
|
488
|
+
return (_ctx, _cache) => {
|
|
489
|
+
return openBlock(), createBlock(unref(_sfc_main$3b), null, {
|
|
490
|
+
default: withCtx(() => [
|
|
491
|
+
createVNode(unref(_sfc_main$32), null, {
|
|
492
|
+
default: withCtx(() => [
|
|
493
|
+
renderSlot(_ctx.$slots, "trigger")
|
|
494
|
+
]),
|
|
495
|
+
_: 3
|
|
496
|
+
}),
|
|
497
|
+
createVNode(unref(_sfc_main$37), {
|
|
498
|
+
class: normalizeClass(_ctx.contentClass)
|
|
499
|
+
}, {
|
|
500
|
+
default: withCtx(() => [
|
|
501
|
+
createVNode(unref(_sfc_main$34), {
|
|
502
|
+
class: normalizeClass(_ctx.headerClass)
|
|
503
|
+
}, {
|
|
504
|
+
default: withCtx(() => [
|
|
505
|
+
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$33), {
|
|
506
|
+
key: 0,
|
|
507
|
+
class: normalizeClass(_ctx.titleClass)
|
|
508
|
+
}, {
|
|
509
|
+
default: withCtx(() => [
|
|
510
|
+
renderSlot(_ctx.$slots, "title")
|
|
511
|
+
]),
|
|
512
|
+
_: 3
|
|
513
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
514
|
+
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$36), {
|
|
515
|
+
key: 1,
|
|
516
|
+
class: normalizeClass(_ctx.descriptionClass)
|
|
517
|
+
}, {
|
|
518
|
+
default: withCtx(() => [
|
|
519
|
+
renderSlot(_ctx.$slots, "description")
|
|
520
|
+
]),
|
|
521
|
+
_: 3
|
|
522
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
523
|
+
]),
|
|
524
|
+
_: 3
|
|
525
|
+
}, 8, ["class"]),
|
|
526
|
+
createVNode(unref(_sfc_main$35), {
|
|
527
|
+
class: normalizeClass(_ctx.footerClass)
|
|
528
|
+
}, {
|
|
529
|
+
default: withCtx(() => [
|
|
530
|
+
_ctx.$slots.action ? (openBlock(), createBlock(unref(_sfc_main$39), {
|
|
531
|
+
key: 0,
|
|
532
|
+
class: normalizeClass(_ctx.actionClass)
|
|
533
|
+
}, {
|
|
534
|
+
default: withCtx(() => [
|
|
535
|
+
renderSlot(_ctx.$slots, "action")
|
|
536
|
+
]),
|
|
537
|
+
_: 3
|
|
538
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
539
|
+
_ctx.$slots.cancel ? (openBlock(), createBlock(unref(_sfc_main$38), {
|
|
540
|
+
key: 1,
|
|
541
|
+
class: normalizeClass(_ctx.cancelClass)
|
|
542
|
+
}, {
|
|
543
|
+
default: withCtx(() => [
|
|
544
|
+
renderSlot(_ctx.$slots, "cancel")
|
|
545
|
+
]),
|
|
546
|
+
_: 3
|
|
547
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
548
|
+
]),
|
|
549
|
+
_: 3
|
|
550
|
+
}, 8, ["class"])
|
|
551
|
+
]),
|
|
552
|
+
_: 3
|
|
553
|
+
}, 8, ["class"])
|
|
554
|
+
]),
|
|
555
|
+
_: 3
|
|
556
|
+
});
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
562
|
+
__name: "Avatar",
|
|
563
|
+
props: {
|
|
564
|
+
class: {}
|
|
565
|
+
},
|
|
566
|
+
setup(__props) {
|
|
567
|
+
const props = __props;
|
|
568
|
+
return (_ctx, _cache) => {
|
|
569
|
+
return openBlock(), createBlock(unref(AvatarRoot), {
|
|
570
|
+
"data-slot": "avatar",
|
|
571
|
+
class: normalizeClass(unref(cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", props.class))
|
|
572
|
+
}, {
|
|
573
|
+
default: withCtx(() => [
|
|
574
|
+
renderSlot(_ctx.$slots, "default")
|
|
575
|
+
]),
|
|
576
|
+
_: 3
|
|
577
|
+
}, 8, ["class"]);
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
|
|
583
|
+
__name: "AvatarFallback",
|
|
584
|
+
props: {
|
|
585
|
+
delayMs: {},
|
|
586
|
+
asChild: { type: Boolean },
|
|
587
|
+
as: { type: [String, Object, Function] },
|
|
588
|
+
class: {}
|
|
589
|
+
},
|
|
590
|
+
setup(__props) {
|
|
591
|
+
const props = __props;
|
|
592
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
593
|
+
return (_ctx, _cache) => {
|
|
594
|
+
return openBlock(), createBlock(unref(AvatarFallback), mergeProps({ "data-slot": "avatar-fallback" }, unref(delegatedProps), {
|
|
595
|
+
class: unref(cn)("bg-muted flex size-full items-center justify-center rounded-full", props.class)
|
|
596
|
+
}), {
|
|
597
|
+
default: withCtx(() => [
|
|
598
|
+
renderSlot(_ctx.$slots, "default")
|
|
599
|
+
]),
|
|
600
|
+
_: 3
|
|
601
|
+
}, 16, ["class"]);
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
});
|
|
17
605
|
|
|
18
606
|
const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
|
|
607
|
+
__name: "AvatarImage",
|
|
608
|
+
props: {
|
|
609
|
+
src: {},
|
|
610
|
+
referrerPolicy: {},
|
|
611
|
+
crossOrigin: {},
|
|
612
|
+
asChild: { type: Boolean },
|
|
613
|
+
as: { type: [String, Object, Function] }
|
|
614
|
+
},
|
|
615
|
+
setup(__props) {
|
|
616
|
+
const props = __props;
|
|
617
|
+
return (_ctx, _cache) => {
|
|
618
|
+
return openBlock(), createBlock(unref(AvatarImage), mergeProps({ "data-slot": "avatar-image" }, props, { class: "aspect-square size-full" }), {
|
|
619
|
+
default: withCtx(() => [
|
|
620
|
+
renderSlot(_ctx.$slots, "default")
|
|
621
|
+
]),
|
|
622
|
+
_: 3
|
|
623
|
+
}, 16);
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
|
|
19
629
|
__name: "Badge",
|
|
20
630
|
props: {
|
|
21
631
|
asChild: { type: Boolean },
|
|
@@ -60,61 +670,6 @@ const badgeVariants = cva(
|
|
|
60
670
|
}
|
|
61
671
|
);
|
|
62
672
|
|
|
63
|
-
const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
|
|
64
|
-
__name: "Button",
|
|
65
|
-
props: {
|
|
66
|
-
variant: {},
|
|
67
|
-
size: {},
|
|
68
|
-
class: {},
|
|
69
|
-
type: { default: "button" },
|
|
70
|
-
asChild: { type: Boolean },
|
|
71
|
-
as: { type: [String, Object, Function], default: "button" }
|
|
72
|
-
},
|
|
73
|
-
setup(__props) {
|
|
74
|
-
const props = __props;
|
|
75
|
-
return (_ctx, _cache) => {
|
|
76
|
-
return openBlock(), createBlock(unref(Primitive), {
|
|
77
|
-
"data-slot": "button",
|
|
78
|
-
as: _ctx.as,
|
|
79
|
-
"as-child": _ctx.asChild,
|
|
80
|
-
type: _ctx.type,
|
|
81
|
-
class: normalizeClass(unref(cn)(unref(buttonVariants)({ variant: _ctx.variant, size: _ctx.size }), props.class))
|
|
82
|
-
}, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
renderSlot(_ctx.$slots, "default")
|
|
85
|
-
]),
|
|
86
|
-
_: 3
|
|
87
|
-
}, 8, ["as", "as-child", "type", "class"]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
const buttonVariants = cva(
|
|
93
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
94
|
-
{
|
|
95
|
-
variants: {
|
|
96
|
-
variant: {
|
|
97
|
-
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
98
|
-
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
99
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
100
|
-
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
101
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
102
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
103
|
-
},
|
|
104
|
-
size: {
|
|
105
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
106
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
107
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
108
|
-
icon: "size-9"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
defaultVariants: {
|
|
112
|
-
variant: "default",
|
|
113
|
-
size: "default"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
|
|
118
673
|
const _hoisted_1$e = { key: 0 };
|
|
119
674
|
const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
120
675
|
__name: "ButtonLinkInner",
|
|
@@ -129,7 +684,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
|
129
684
|
setup(__props) {
|
|
130
685
|
const props = __props;
|
|
131
686
|
return (_ctx, _cache) => {
|
|
132
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
687
|
+
return openBlock(), createBlock(unref(_sfc_main$3a), {
|
|
133
688
|
disabled: _ctx.disabled,
|
|
134
689
|
size: _ctx.size,
|
|
135
690
|
variant: _ctx.variant,
|
|
@@ -208,15 +763,18 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
|
208
763
|
},
|
|
209
764
|
setup(__props) {
|
|
210
765
|
const props = __props;
|
|
766
|
+
const delegatedProps = computed(() => {
|
|
767
|
+
const { class: _, ...delegated } = props;
|
|
768
|
+
return delegated;
|
|
769
|
+
});
|
|
211
770
|
return (_ctx, _cache) => {
|
|
212
|
-
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2X), {
|
|
213
|
-
key: 0,
|
|
771
|
+
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2X), mergeProps({ key: 0 }, delegatedProps.value, {
|
|
214
772
|
to: _ctx.to,
|
|
215
773
|
variant: "ghost",
|
|
216
774
|
size: "icon",
|
|
217
|
-
class:
|
|
775
|
+
class: props.class,
|
|
218
776
|
"button-class": _ctx.buttonClass
|
|
219
|
-
}, {
|
|
777
|
+
}), {
|
|
220
778
|
default: withCtx(() => [
|
|
221
779
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
222
780
|
class: normalizeClass(_ctx.iconClass),
|
|
@@ -224,12 +782,11 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
|
224
782
|
}, null, 8, ["class", "size"]))
|
|
225
783
|
]),
|
|
226
784
|
_: 1
|
|
227
|
-
},
|
|
228
|
-
key: 1,
|
|
785
|
+
}, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$3a), mergeProps({ key: 1 }, delegatedProps.value, {
|
|
229
786
|
variant: "ghost",
|
|
230
787
|
size: "icon",
|
|
231
|
-
class:
|
|
232
|
-
}, {
|
|
788
|
+
class: unref(cn)(props.class, _ctx.buttonClass)
|
|
789
|
+
}), {
|
|
233
790
|
default: withCtx(() => [
|
|
234
791
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
235
792
|
class: normalizeClass(_ctx.iconClass),
|
|
@@ -237,7 +794,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
|
237
794
|
}, null, 8, ["class", "size"]))
|
|
238
795
|
]),
|
|
239
796
|
_: 1
|
|
240
|
-
},
|
|
797
|
+
}, 16, ["class"]));
|
|
241
798
|
};
|
|
242
799
|
}
|
|
243
800
|
});
|
|
@@ -1550,108 +2107,115 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
|
|
|
1550
2107
|
});
|
|
1551
2108
|
|
|
1552
2109
|
const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
1553
|
-
__name: "
|
|
2110
|
+
__name: "DialogTitle",
|
|
1554
2111
|
props: {
|
|
1555
|
-
forceMount: { type: Boolean },
|
|
1556
|
-
trapFocus: { type: Boolean },
|
|
1557
|
-
disableOutsidePointerEvents: { type: Boolean },
|
|
1558
2112
|
asChild: { type: Boolean },
|
|
1559
2113
|
as: { type: [String, Object, Function] },
|
|
1560
2114
|
class: {}
|
|
1561
2115
|
},
|
|
1562
|
-
|
|
1563
|
-
setup(__props, { emit: __emit }) {
|
|
2116
|
+
setup(__props) {
|
|
1564
2117
|
const props = __props;
|
|
1565
|
-
const emits = __emit;
|
|
1566
2118
|
const delegatedProps = computed(() => {
|
|
1567
2119
|
const { class: _, ...delegated } = props;
|
|
1568
2120
|
return delegated;
|
|
1569
2121
|
});
|
|
1570
|
-
const
|
|
2122
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1571
2123
|
return (_ctx, _cache) => {
|
|
1572
|
-
return openBlock(), createBlock(unref(
|
|
2124
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), {
|
|
2125
|
+
class: unref(cn)("text-lg leading-none font-semibold", props.class)
|
|
2126
|
+
}), {
|
|
1573
2127
|
default: withCtx(() => [
|
|
1574
|
-
|
|
1575
|
-
default: withCtx(() => [
|
|
1576
|
-
createVNode(unref(DialogContent), mergeProps({
|
|
1577
|
-
class: unref(cn)(
|
|
1578
|
-
"border-border bg-background relative z-50 my-8 grid w-full max-w-lg gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
1579
|
-
props.class
|
|
1580
|
-
)
|
|
1581
|
-
}, unref(forwarded), {
|
|
1582
|
-
onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
|
|
1583
|
-
const originalEvent = event.detail.originalEvent;
|
|
1584
|
-
const target = originalEvent.target;
|
|
1585
|
-
if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
|
|
1586
|
-
event.preventDefault();
|
|
1587
|
-
}
|
|
1588
|
-
})
|
|
1589
|
-
}), {
|
|
1590
|
-
default: withCtx(() => [
|
|
1591
|
-
renderSlot(_ctx.$slots, "default"),
|
|
1592
|
-
createVNode(unref(DialogClose), { class: "hover:bg-secondary absolute top-4 right-4 rounded-md p-0.5 transition-colors" }, {
|
|
1593
|
-
default: withCtx(() => [
|
|
1594
|
-
createVNode(unref(X), { class: "h-4 w-4" }),
|
|
1595
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
1596
|
-
]),
|
|
1597
|
-
_: 1,
|
|
1598
|
-
__: [1]
|
|
1599
|
-
})
|
|
1600
|
-
]),
|
|
1601
|
-
_: 3
|
|
1602
|
-
}, 16, ["class"])
|
|
1603
|
-
]),
|
|
1604
|
-
_: 3
|
|
1605
|
-
})
|
|
2128
|
+
renderSlot(_ctx.$slots, "default")
|
|
1606
2129
|
]),
|
|
1607
2130
|
_: 3
|
|
1608
|
-
});
|
|
2131
|
+
}, 16, ["class"]);
|
|
1609
2132
|
};
|
|
1610
2133
|
}
|
|
1611
2134
|
});
|
|
1612
2135
|
|
|
1613
2136
|
const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
1614
|
-
__name: "
|
|
2137
|
+
__name: "DialogTrigger",
|
|
1615
2138
|
props: {
|
|
1616
2139
|
asChild: { type: Boolean },
|
|
1617
|
-
as: { type: [String, Object, Function] }
|
|
1618
|
-
class: {}
|
|
2140
|
+
as: { type: [String, Object, Function] }
|
|
1619
2141
|
},
|
|
1620
2142
|
setup(__props) {
|
|
1621
2143
|
const props = __props;
|
|
1622
|
-
const delegatedProps = computed(() => {
|
|
1623
|
-
const { class: _, ...delegated } = props;
|
|
1624
|
-
return delegated;
|
|
1625
|
-
});
|
|
1626
|
-
const forwardedProps = useForwardProps(delegatedProps);
|
|
1627
2144
|
return (_ctx, _cache) => {
|
|
1628
|
-
return openBlock(), createBlock(unref(
|
|
1629
|
-
class: unref(cn)("text-lg leading-none font-semibold", props.class)
|
|
1630
|
-
}), {
|
|
2145
|
+
return openBlock(), createBlock(unref(DialogTrigger), mergeProps({ "data-slot": "dialog-trigger" }, props), {
|
|
1631
2146
|
default: withCtx(() => [
|
|
1632
2147
|
renderSlot(_ctx.$slots, "default")
|
|
1633
2148
|
]),
|
|
1634
2149
|
_: 3
|
|
1635
|
-
}, 16
|
|
2150
|
+
}, 16);
|
|
1636
2151
|
};
|
|
1637
2152
|
}
|
|
1638
2153
|
});
|
|
1639
2154
|
|
|
1640
2155
|
const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
1641
|
-
__name: "
|
|
2156
|
+
__name: "Dialog",
|
|
1642
2157
|
props: {
|
|
1643
|
-
|
|
1644
|
-
|
|
2158
|
+
contentClass: {},
|
|
2159
|
+
descriptionClass: {},
|
|
2160
|
+
footerClass: {},
|
|
2161
|
+
headerClass: {},
|
|
2162
|
+
titleClass: {}
|
|
1645
2163
|
},
|
|
1646
2164
|
setup(__props) {
|
|
1647
|
-
const props = __props;
|
|
1648
2165
|
return (_ctx, _cache) => {
|
|
1649
|
-
return openBlock(), createBlock(unref(
|
|
2166
|
+
return openBlock(), createBlock(unref(_sfc_main$2m), null, {
|
|
1650
2167
|
default: withCtx(() => [
|
|
1651
|
-
|
|
2168
|
+
createVNode(unref(_sfc_main$2e), null, {
|
|
2169
|
+
default: withCtx(() => [
|
|
2170
|
+
renderSlot(_ctx.$slots, "trigger")
|
|
2171
|
+
]),
|
|
2172
|
+
_: 3
|
|
2173
|
+
}),
|
|
2174
|
+
createVNode(unref(_sfc_main$2j), {
|
|
2175
|
+
class: normalizeClass(_ctx.contentClass)
|
|
2176
|
+
}, {
|
|
2177
|
+
default: withCtx(() => [
|
|
2178
|
+
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$2g), {
|
|
2179
|
+
key: 0,
|
|
2180
|
+
class: normalizeClass(_ctx.headerClass)
|
|
2181
|
+
}, {
|
|
2182
|
+
default: withCtx(() => [
|
|
2183
|
+
createVNode(unref(_sfc_main$2f), {
|
|
2184
|
+
class: normalizeClass(_ctx.titleClass)
|
|
2185
|
+
}, {
|
|
2186
|
+
default: withCtx(() => [
|
|
2187
|
+
renderSlot(_ctx.$slots, "title")
|
|
2188
|
+
]),
|
|
2189
|
+
_: 3
|
|
2190
|
+
}, 8, ["class"]),
|
|
2191
|
+
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$2i), {
|
|
2192
|
+
key: 0,
|
|
2193
|
+
class: normalizeClass(_ctx.descriptionClass)
|
|
2194
|
+
}, {
|
|
2195
|
+
default: withCtx(() => [
|
|
2196
|
+
renderSlot(_ctx.$slots, "description")
|
|
2197
|
+
]),
|
|
2198
|
+
_: 3
|
|
2199
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
2200
|
+
]),
|
|
2201
|
+
_: 3
|
|
2202
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
2203
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$2h), {
|
|
2204
|
+
key: 1,
|
|
2205
|
+
class: normalizeClass(_ctx.footerClass)
|
|
2206
|
+
}, {
|
|
2207
|
+
default: withCtx(() => [
|
|
2208
|
+
renderSlot(_ctx.$slots, "footer")
|
|
2209
|
+
]),
|
|
2210
|
+
_: 3
|
|
2211
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
2212
|
+
renderSlot(_ctx.$slots, "default")
|
|
2213
|
+
]),
|
|
2214
|
+
_: 3
|
|
2215
|
+
}, 8, ["class"])
|
|
1652
2216
|
]),
|
|
1653
2217
|
_: 3
|
|
1654
|
-
}
|
|
2218
|
+
});
|
|
1655
2219
|
};
|
|
1656
2220
|
}
|
|
1657
2221
|
});
|
|
@@ -5292,7 +5856,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
5292
5856
|
const props = __props;
|
|
5293
5857
|
const { toggleSidebar } = useSidebar();
|
|
5294
5858
|
return (_ctx, _cache) => {
|
|
5295
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
5859
|
+
return openBlock(), createBlock(unref(_sfc_main$3a), {
|
|
5296
5860
|
"data-sidebar": "trigger",
|
|
5297
5861
|
"data-slot": "sidebar-trigger",
|
|
5298
5862
|
variant: "ghost",
|
|
@@ -6335,4 +6899,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6335
6899
|
}
|
|
6336
6900
|
});
|
|
6337
6901
|
|
|
6338
|
-
export { _sfc_main$2_ as
|
|
6902
|
+
export { _sfc_main$3i as Accordion, _sfc_main$3h as AccordionContent, _sfc_main$3g as AccordionItem, _sfc_main$3f as AccordionTrigger, _sfc_main$3e as Alert, _sfc_main$3d as AlertDescription, _sfc_main$31 as AlertDialog, _sfc_main$3c as AlertTitle, _sfc_main$30 as Avatar, _sfc_main$2$ as AvatarFallback, _sfc_main$2_ as AvatarImage, _sfc_main$2Z as Badge, _sfc_main$3a as Button, _sfc_main$2W as ButtonIcon, _sfc_main$2X as ButtonLink, _sfc_main$2N as Card, _sfc_main$2L as Checkbox, _sfc_main$2K as Combobox, _sfc_main$2J as ComboboxAnchor, _sfc_main$2I as ComboboxEmpty, _sfc_main$2H as ComboboxGroup, _sfc_main$2G as ComboboxInput, _sfc_main$2F as ComboboxItem, _sfc_main$2E as ComboboxItemIndicator, _sfc_main$2D as ComboboxList, _sfc_main$2C as ComboboxSeparator, _sfc_main$2B as ComboboxViewport, _sfc_main$2A as ContextMenu, _sfc_main$2z as ContextMenuCheckboxItem, _sfc_main$2y as ContextMenuContent, _sfc_main$2x as ContextMenuGroup, _sfc_main$2w as ContextMenuItem, _sfc_main$2v as ContextMenuLabel, _sfc_main$2u as ContextMenuRadioGroup, _sfc_main$2t as ContextMenuRadioItem, _sfc_main$2s as ContextMenuSeparator, _sfc_main$2r as ContextMenuShortcut, _sfc_main$2q as ContextMenuSub, _sfc_main$2p as ContextMenuSubContent, _sfc_main$2o as ContextMenuSubTrigger, _sfc_main$2n as ContextMenuTrigger, _sfc_main$2d as Dialog, _sfc_main$2l as DialogClose, _sfc_main$2c as DropdownMenu, _sfc_main$2b as DropdownMenuCheckboxItem, _sfc_main$2a as DropdownMenuContent, _sfc_main$29 as DropdownMenuGroup, _sfc_main$28 as DropdownMenuItem, _sfc_main$27 as DropdownMenuLabel, _sfc_main$26 as DropdownMenuRadioGroup, _sfc_main$25 as DropdownMenuRadioItem, _sfc_main$24 as DropdownMenuSeparator, _sfc_main$23 as DropdownMenuShortcut, _sfc_main$22 as DropdownMenuSub, _sfc_main$21 as DropdownMenuSubContent, _sfc_main$20 as DropdownMenuSubTrigger, _sfc_main$1$ as DropdownMenuTrigger, _sfc_main$1X as HoverCard, _sfc_main$1V as Input, _sfc_main$1P as InputNumber, _sfc_main$1O as InputText, _sfc_main$1N as Label, _sfc_main$1M as Link, Loading, _sfc_main$1K as Menubar, _sfc_main$1J as MenubarCheckboxItem, _sfc_main$1I as MenubarContent, _sfc_main$1H as MenubarGroup, _sfc_main$1G as MenubarItem, _sfc_main$1F as MenubarLabel, _sfc_main$1E as MenubarMenu, _sfc_main$1D as MenubarRadioGroup, _sfc_main$1C as MenubarRadioItem, _sfc_main$1B as MenubarSeparator, _sfc_main$1A as MenubarShortcut, _sfc_main$1z as MenubarSub, _sfc_main$1y as MenubarSubContent, _sfc_main$1x as MenubarSubTrigger, _sfc_main$1w as MenubarTrigger, _sfc_main$1v as Pagination, _sfc_main$1u as PaginationContent, _sfc_main$1t as PaginationEllipsis, _sfc_main$1s as PaginationFirst, _sfc_main$1r as PaginationItem, _sfc_main$1q as PaginationLast, _sfc_main$1p as PaginationNext, _sfc_main$1o as PaginationPrevious, _sfc_main$1k as Popover, _sfc_main$1j as Progress, _sfc_main$1i as RadioGroup, _sfc_main$1h as RadioGroupItem, _sfc_main$1g as ResizableHandle, _sfc_main$1f as ResizablePanel, _sfc_main$1e as ResizablePanelGroup, _sfc_main$2U as ScrollArea, _sfc_main$12 as Select, _sfc_main$1b as SelectGroup, _sfc_main$1a as SelectItem, _sfc_main$19 as SelectItemText, _sfc_main$18 as SelectLabel, _sfc_main$17 as SelectScrollDownButton, _sfc_main$16 as SelectScrollUpButton, _sfc_main$15 as SelectSeparator, _sfc_main$11 as Separator, _sfc_main$10 as Sheet, _sfc_main$$ as SheetClose, _sfc_main$Z as SheetContent, _sfc_main$Y as SheetDescription, _sfc_main$X as SheetFooter, _sfc_main$W as SheetHeader, _sfc_main$V as SheetTitle, _sfc_main$U as SheetTrigger, _sfc_main$r as Sidebar, _sfc_main$Q as SidebarGroup, _sfc_main$P as SidebarGroupAction, _sfc_main$O as SidebarGroupContent, _sfc_main$N as SidebarGroupLabel, _sfc_main$K as SidebarMenu, _sfc_main$J as SidebarMenuAction, _sfc_main$I as SidebarMenuBadge, _sfc_main$C as SidebarMenuButton, _sfc_main$B as SidebarMenuItem, _sfc_main$z as SidebarMenuSkeleton, _sfc_main$y as SidebarMenuSub, _sfc_main$x as SidebarMenuSubButton, _sfc_main$w as SidebarMenuSubItem, _sfc_main$u as SidebarRail, _sfc_main$t as SidebarSeparator, _sfc_main$s as SidebarTrigger, _sfc_main$A as Skeleton, _sfc_main$q as Slider, _sfc_main$p as Sonner, _sfc_main$n as Switch, _sfc_main$e as Table, _sfc_main$k as TableCell, _sfc_main$i as TableEmpty, _sfc_main$g as TableHead, _sfc_main$d as TableLink, _sfc_main$j as TableRow, _sfc_main$c as Tabs, _sfc_main$b as TabsContent, _sfc_main$a as TabsList, _sfc_main$9 as TabsTrigger, _sfc_main$8 as TagsInput, _sfc_main$7 as TagsInputInput, _sfc_main$6 as TagsInputItem, _sfc_main$5 as TagsInputItemDelete, _sfc_main$4 as TagsInputItemText, _sfc_main$2 as Textarea, _sfc_main$1 as Toggle, _sfc_main as Tooltip, cn, toBooleanCheckboxValue, useSidebar };
|