@una-ui/nuxt-edge 1.0.0-alpha.0-29174314.205cb42 → 1.0.0-alpha.0-29174329.f2aabc4
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +1 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxAnchor.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxEmpty.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxGroup.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxInput.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxItem.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxLabel.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxList.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxSeparator.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxViewport.vue +1 -1
- package/dist/runtime/components/data/table/TableBody.vue +1 -1
- package/dist/runtime/components/data/table/TableCaption.vue +1 -1
- package/dist/runtime/components/data/table/TableCell.vue +1 -1
- package/dist/runtime/components/data/table/TableFooter.vue +1 -1
- package/dist/runtime/components/data/table/TableHead.vue +1 -1
- package/dist/runtime/components/data/table/TableHeader.vue +1 -1
- package/dist/runtime/components/data/table/TableRow.vue +1 -1
- package/dist/runtime/components/drawer/DrawerClose.vue +1 -1
- package/dist/runtime/components/drawer/DrawerContent.vue +1 -1
- package/dist/runtime/components/drawer/DrawerDescription.vue +1 -1
- package/dist/runtime/components/drawer/DrawerOverlay.vue +1 -1
- package/dist/runtime/components/drawer/DrawerTitle.vue +1 -1
- package/dist/runtime/components/drawer/DrawerTrigger.vue +1 -1
- package/dist/runtime/components/elements/AvatarGroup.vue +1 -1
- package/dist/runtime/components/elements/Label.vue +1 -1
- package/dist/runtime/components/elements/Progress.vue +1 -1
- package/dist/runtime/components/elements/Separator.vue +1 -1
- package/dist/runtime/components/elements/Toggle.vue +1 -1
- package/dist/runtime/components/elements/avatar/Avatar.vue +18 -16
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +4 -2
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue +1 -1
- package/dist/runtime/components/elements/avatar/AvatarImage.vue +1 -1
- package/dist/runtime/components/elements/card/Card.vue +15 -4
- package/dist/runtime/components/elements/card/Card.vue.d.ts +6 -4
- package/dist/runtime/components/elements/card/CardAction.vue +19 -0
- package/dist/runtime/components/elements/card/CardAction.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardContent.vue +1 -0
- package/dist/runtime/components/elements/card/CardDescription.vue +1 -0
- package/dist/runtime/components/elements/card/CardFooter.vue +1 -0
- package/dist/runtime/components/elements/card/CardHeader.vue +1 -0
- package/dist/runtime/components/elements/card/CardTitle.vue +1 -0
- package/dist/runtime/components/elements/collapsible/Collapsible.vue +1 -1
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +1 -1
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationLast.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationNext.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue +1 -1
- package/dist/runtime/components/elements/popover/PopoverContent.vue +1 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsList.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue +1 -1
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
- package/dist/runtime/components/forms/Checkbox.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/Slider.vue +1 -1
- package/dist/runtime/components/forms/Switch.vue +1 -1
- package/dist/runtime/components/forms/form/FormField.vue +1 -1
- package/dist/runtime/components/forms/form/FormLabel.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
- package/dist/runtime/components/forms/select/SelectContent.vue +1 -1
- package/dist/runtime/components/forms/select/SelectGroup.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItem.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
- package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +1 -1
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +1 -1
- package/dist/runtime/components/forms/select/SelectSeparator.vue +1 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
- package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCard.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCardArrow.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCardContent.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCardTrigger.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -1
- package/dist/runtime/components/overlays/toast/Toast.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastClose.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastDescription.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastTitle.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastViewport.vue +1 -1
- package/dist/runtime/components/resizable/ResizableHandle.vue +1 -1
- package/dist/runtime/components/resizable/ResizablePanel.vue +1 -1
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue +1 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue +1 -1
- package/dist/runtime/components/scroll-area/ScrollBar.vue +1 -1
- package/dist/runtime/components/sheet/SheetClose.vue +1 -1
- package/dist/runtime/components/sheet/SheetContent.vue +1 -1
- package/dist/runtime/components/sheet/SheetDescription.vue +1 -1
- package/dist/runtime/components/sheet/SheetTitle.vue +1 -1
- package/dist/runtime/components/sheet/SheetTrigger.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue +2 -2
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +1 -1
- package/dist/runtime/types/card.d.ts +5 -0
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import Button from "../elements/Button.vue";
|
|
|
4
4
|
const props = defineProps({
|
|
5
5
|
onClick: { type: Function, required: false },
|
|
6
6
|
asChild: { type: Boolean, required: false },
|
|
7
|
-
as: { type:
|
|
7
|
+
as: { type: null, required: false },
|
|
8
8
|
type: { type: String, required: false },
|
|
9
9
|
loadingPlacement: { type: String, required: false },
|
|
10
10
|
icon: { type: Boolean, required: false },
|
|
@@ -5,7 +5,7 @@ import Button from "../elements/Button.vue";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
onClick: { type: Function, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
type: { type: String, required: false },
|
|
10
10
|
loadingPlacement: { type: String, required: false },
|
|
11
11
|
icon: { type: Boolean, required: false },
|
|
@@ -22,7 +22,7 @@ const props = defineProps({
|
|
|
22
22
|
trapFocus: { type: Boolean, required: false },
|
|
23
23
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
24
24
|
asChild: { type: Boolean, required: false },
|
|
25
|
-
as: { type:
|
|
25
|
+
as: { type: null, required: false },
|
|
26
26
|
class: { type: null, required: false }
|
|
27
27
|
});
|
|
28
28
|
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false }
|
|
10
10
|
});
|
|
11
11
|
const delegatedProps = reactiveOmit(props, "class", "una");
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
forceMount: { type: Boolean, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false }
|
|
10
10
|
});
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false }
|
|
10
10
|
});
|
|
11
11
|
const delegatedProps = reactiveOmit(props, "class", "una");
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
ratio: { type: Number, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: null, required: false },
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
rounded: { type: null, required: false, default: "md" }
|
|
13
13
|
});
|
|
@@ -52,7 +52,7 @@ const props = defineProps({
|
|
|
52
52
|
highlightOnHover: { type: Boolean, required: false },
|
|
53
53
|
by: { type: [String, Function], required: false },
|
|
54
54
|
asChild: { type: Boolean, required: false },
|
|
55
|
-
as: { type:
|
|
55
|
+
as: { type: null, required: false },
|
|
56
56
|
name: { type: String, required: false },
|
|
57
57
|
required: { type: Boolean, required: false },
|
|
58
58
|
status: { type: String, required: false },
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
reference: { type: null, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false }
|
|
12
12
|
});
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false },
|
|
10
10
|
size: { type: null, required: false, default: "sm" }
|
|
11
11
|
});
|
|
@@ -14,7 +14,7 @@ const props = defineProps({
|
|
|
14
14
|
_comboboxLabel: { type: Object, required: false },
|
|
15
15
|
una: { type: Object, required: false },
|
|
16
16
|
asChild: { type: Boolean, required: false },
|
|
17
|
-
as: { type:
|
|
17
|
+
as: { type: null, required: false },
|
|
18
18
|
class: { type: null, required: false },
|
|
19
19
|
size: { type: null, required: false }
|
|
20
20
|
});
|
|
@@ -12,7 +12,7 @@ const props = defineProps({
|
|
|
12
12
|
autoFocus: { type: Boolean, required: false },
|
|
13
13
|
disabled: { type: Boolean, required: false },
|
|
14
14
|
asChild: { type: Boolean, required: false },
|
|
15
|
-
as: { type:
|
|
15
|
+
as: { type: null, required: false },
|
|
16
16
|
type: { type: null, required: false },
|
|
17
17
|
status: { type: String, required: false },
|
|
18
18
|
loading: { type: Boolean, required: false },
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
value: { type: null, required: true },
|
|
9
9
|
disabled: { type: Boolean, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: null, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
size: { type: null, required: false, default: "sm" }
|
|
14
14
|
});
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
icon: { type: null, required: false, default: "combobox-item-indicator-icon-name" },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false }
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
for: { type: String, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false }
|
|
12
12
|
});
|
|
@@ -27,7 +27,7 @@ const props = defineProps({
|
|
|
27
27
|
prioritizePosition: { type: Boolean, required: false },
|
|
28
28
|
reference: { type: null, required: false },
|
|
29
29
|
asChild: { type: Boolean, required: false },
|
|
30
|
-
as: { type:
|
|
30
|
+
as: { type: null, required: false },
|
|
31
31
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
32
32
|
class: { type: null, required: false },
|
|
33
33
|
size: { type: null, required: false }
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false },
|
|
10
10
|
size: { type: null, required: false }
|
|
11
11
|
});
|
|
@@ -11,7 +11,7 @@ const props = defineProps({
|
|
|
11
11
|
una: { type: Object, required: false },
|
|
12
12
|
disabled: { type: Boolean, required: false },
|
|
13
13
|
asChild: { type: Boolean, required: false },
|
|
14
|
-
as: { type:
|
|
14
|
+
as: { type: null, required: false },
|
|
15
15
|
type: { type: String, required: false },
|
|
16
16
|
loadingPlacement: { type: String, required: false },
|
|
17
17
|
icon: { type: Boolean, required: false },
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
nonce: { type: String, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false }
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false, default: "tbody" }
|
|
10
10
|
});
|
|
11
11
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
12
12
|
</script>
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false, default: "caption" }
|
|
10
10
|
});
|
|
11
11
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
12
12
|
</script>
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
dataPinned: { type: [String, Boolean], required: false },
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: null, required: false, default: "td" }
|
|
11
11
|
});
|
|
12
12
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
13
13
|
</script>
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false, default: "tfoot" }
|
|
10
10
|
});
|
|
11
11
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
12
12
|
</script>
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
dataPinned: { type: [String, Boolean], required: false },
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: null, required: false, default: "th" }
|
|
11
11
|
});
|
|
12
12
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
13
13
|
</script>
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false, default: "thead" }
|
|
10
10
|
});
|
|
11
11
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
12
12
|
</script>
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: null, required: false, default: "tr" }
|
|
10
10
|
});
|
|
11
11
|
const rootProps = reactiveOmit(props, ["una", "class"]);
|
|
12
12
|
</script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DrawerClose } from "vaul-vue";
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
asChild: { type: Boolean, required: false },
|
|
5
|
-
as: { type:
|
|
5
|
+
as: { type: null, required: false },
|
|
6
6
|
type: { type: String, required: false },
|
|
7
7
|
loadingPlacement: { type: String, required: false },
|
|
8
8
|
icon: { type: Boolean, required: false },
|
|
@@ -17,7 +17,7 @@ const props = defineProps({
|
|
|
17
17
|
trapFocus: { type: Boolean, required: false },
|
|
18
18
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
19
19
|
asChild: { type: Boolean, required: false },
|
|
20
|
-
as: { type:
|
|
20
|
+
as: { type: null, required: false },
|
|
21
21
|
class: { type: null, required: false }
|
|
22
22
|
});
|
|
23
23
|
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false }
|
|
10
10
|
});
|
|
11
11
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
class: { type: null, required: false },
|
|
8
8
|
forceMount: { type: Boolean, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: null, required: false }
|
|
11
11
|
});
|
|
12
12
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
13
13
|
</script>
|
|
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: null, required: false },
|
|
9
9
|
class: { type: null, required: false }
|
|
10
10
|
});
|
|
11
11
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
@@ -17,7 +17,7 @@ const props = defineProps({
|
|
|
17
17
|
rounded: { type: null, required: false },
|
|
18
18
|
avatar: { type: null, required: false },
|
|
19
19
|
asChild: { type: Boolean, required: false },
|
|
20
|
-
as: { type:
|
|
20
|
+
as: { type: null, required: false, default: "div" },
|
|
21
21
|
icon: { type: Boolean, required: false },
|
|
22
22
|
delayMs: { type: Number, required: false },
|
|
23
23
|
referrerPolicy: { type: null, required: false },
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
class: { type: null, required: false },
|
|
8
8
|
for: { type: String, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: null, required: false }
|
|
11
11
|
});
|
|
12
12
|
const rootProps = reactiveOmit(props, ["label", "class"]);
|
|
13
13
|
</script>
|
|
@@ -15,7 +15,7 @@ const props = defineProps({
|
|
|
15
15
|
getValueLabel: { type: Function, required: false },
|
|
16
16
|
getValueText: { type: Function, required: false },
|
|
17
17
|
asChild: { type: Boolean, required: false },
|
|
18
|
-
as: { type:
|
|
18
|
+
as: { type: null, required: false },
|
|
19
19
|
class: { type: null, required: false }
|
|
20
20
|
});
|
|
21
21
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
@@ -10,7 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
orientation: { type: String, required: false, default: "horizontal" },
|
|
11
11
|
decorative: { type: Boolean, required: false },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
|
-
as: { type:
|
|
13
|
+
as: { type: null, required: false },
|
|
14
14
|
class: { type: null, required: false },
|
|
15
15
|
label: { type: String, required: false }
|
|
16
16
|
});
|
|
@@ -10,7 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
modelValue: { type: [Boolean, null], required: false },
|
|
11
11
|
disabled: { type: Boolean, required: false },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
|
-
as: { type:
|
|
13
|
+
as: { type: null, required: false },
|
|
14
14
|
name: { type: String, required: false },
|
|
15
15
|
required: { type: Boolean, required: false },
|
|
16
16
|
type: { type: String, required: false },
|
|
@@ -17,7 +17,7 @@ const props = defineProps({
|
|
|
17
17
|
rounded: { type: null, required: false, default: "full" },
|
|
18
18
|
avatar: { type: null, required: false, default: "soft" },
|
|
19
19
|
asChild: { type: Boolean, required: false },
|
|
20
|
-
as: { type:
|
|
20
|
+
as: { type: null, required: false, default: "span" },
|
|
21
21
|
label: { type: String, required: false },
|
|
22
22
|
icon: { type: Boolean, required: false },
|
|
23
23
|
delayMs: { type: Number, required: false },
|
|
@@ -42,22 +42,24 @@ const props = defineProps({
|
|
|
42
42
|
v-bind="{ ..._avatarRoot, ...$attrs }"
|
|
43
43
|
>
|
|
44
44
|
<slot>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
<slot name="image">
|
|
46
|
+
<AvatarImage
|
|
47
|
+
v-if="src"
|
|
48
|
+
:src
|
|
49
|
+
:una
|
|
50
|
+
:alt
|
|
51
|
+
v-bind="_avatarImage"
|
|
52
|
+
/>
|
|
53
|
+
</slot>
|
|
54
|
+
|
|
55
|
+
<AvatarFallback
|
|
56
|
+
:label="label || alt?.split(' ').map((word) => word[0]).join('').slice(0, 2)"
|
|
57
|
+
:icon
|
|
58
|
+
v-bind="_avatarFallback"
|
|
48
59
|
:una
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
>
|
|
61
|
+
<slot name="fallback" />
|
|
62
|
+
</AvatarFallback>
|
|
52
63
|
</slot>
|
|
53
|
-
|
|
54
|
-
<AvatarFallback
|
|
55
|
-
:label="label || alt?.split(' ').map((word) => word[0]).join('').slice(0, 2)"
|
|
56
|
-
:icon
|
|
57
|
-
v-bind="_avatarFallback"
|
|
58
|
-
:una
|
|
59
|
-
>
|
|
60
|
-
<slot name="fallback" />
|
|
61
|
-
</AvatarFallback>
|
|
62
64
|
</AvatarRoot>
|
|
63
65
|
</template>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { NAvatarProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_6: {},
|
|
2
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_16: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
} & {
|
|
6
|
-
|
|
6
|
+
image?: (props: typeof __VLS_8) => any;
|
|
7
|
+
} & {
|
|
8
|
+
fallback?: (props: typeof __VLS_16) => any;
|
|
7
9
|
};
|
|
8
10
|
declare const __VLS_component: import("vue").DefineComponent<NAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAvatarProps> & Readonly<{}>, {
|
|
9
11
|
size: import("vue").HTMLAttributes["class"];
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
delayMs: { type: Number, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: null, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
size: { type: null, required: false },
|
|
14
14
|
square: { type: null, required: false },
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
referrerPolicy: { type: null, required: false },
|
|
9
9
|
crossOrigin: { type: null, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: null, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
size: { type: null, required: false },
|
|
14
14
|
square: { type: null, required: false },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { reactiveOmit } from "@vueuse/core";
|
|
3
3
|
import { cn } from "../../../utils";
|
|
4
|
+
import CardAction from "./CardAction.vue";
|
|
4
5
|
import CardContent from "./CardContent.vue";
|
|
5
6
|
import CardDescription from "./CardDescription.vue";
|
|
6
7
|
import CardFooter from "./CardFooter.vue";
|
|
@@ -10,7 +11,7 @@ defineOptions({
|
|
|
10
11
|
inheritAttrs: false
|
|
11
12
|
});
|
|
12
13
|
const props = defineProps({
|
|
13
|
-
card: { type: String, required: false, default: "
|
|
14
|
+
card: { type: String, required: false, default: "solid-gray" },
|
|
14
15
|
title: { type: String, required: false },
|
|
15
16
|
description: { type: String, required: false },
|
|
16
17
|
_cardContent: { type: Object, required: false },
|
|
@@ -18,6 +19,7 @@ const props = defineProps({
|
|
|
18
19
|
_cardDescription: { type: Object, required: false },
|
|
19
20
|
_cardHeader: { type: Object, required: false },
|
|
20
21
|
_cardFooter: { type: Object, required: false },
|
|
22
|
+
_cardAction: { type: Object, required: false },
|
|
21
23
|
una: { type: Object, required: false },
|
|
22
24
|
class: { type: null, required: false }
|
|
23
25
|
});
|
|
@@ -26,6 +28,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
|
|
|
26
28
|
|
|
27
29
|
<template>
|
|
28
30
|
<div
|
|
31
|
+
data-slot="card"
|
|
29
32
|
v-bind="{ ...$attrs, delegatedProps }"
|
|
30
33
|
:card="card"
|
|
31
34
|
:class="cn(
|
|
@@ -33,7 +36,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
|
|
|
33
36
|
props.class
|
|
34
37
|
)"
|
|
35
38
|
>
|
|
36
|
-
<slot
|
|
39
|
+
<slot>
|
|
37
40
|
<CardHeader
|
|
38
41
|
v-if="$slots.header || $slots.title || $slots.description || title || description"
|
|
39
42
|
v-bind="delegatedProps._cardHeader"
|
|
@@ -59,15 +62,23 @@ const delegatedProps = reactiveOmit(props, ["class"]);
|
|
|
59
62
|
{{ description }}
|
|
60
63
|
</slot>
|
|
61
64
|
</CardDescription>
|
|
65
|
+
|
|
66
|
+
<CardAction
|
|
67
|
+
v-if="$slots.action"
|
|
68
|
+
v-bind="delegatedProps._cardAction"
|
|
69
|
+
:una
|
|
70
|
+
>
|
|
71
|
+
<slot name="action" />
|
|
72
|
+
</CardAction>
|
|
62
73
|
</slot>
|
|
63
74
|
</CardHeader>
|
|
64
75
|
|
|
65
76
|
<CardContent
|
|
66
|
-
v-if="$slots.
|
|
77
|
+
v-if="$slots.content"
|
|
67
78
|
v-bind="delegatedProps._cardContent"
|
|
68
79
|
:una
|
|
69
80
|
>
|
|
70
|
-
<slot />
|
|
81
|
+
<slot name="content" />
|
|
71
82
|
</CardContent>
|
|
72
83
|
|
|
73
84
|
<CardFooter
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NCardProps } from '../../../types/card.js';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_6: {}, __VLS_11: {}, __VLS_16: {}, __VLS_21: {}, __VLS_26: {};
|
|
2
|
+
declare var __VLS_1: {}, __VLS_6: {}, __VLS_11: {}, __VLS_16: {}, __VLS_21: {}, __VLS_26: {}, __VLS_31: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
} & {
|
|
6
6
|
header?: (props: typeof __VLS_6) => any;
|
|
7
7
|
} & {
|
|
@@ -9,9 +9,11 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
} & {
|
|
10
10
|
description?: (props: typeof __VLS_16) => any;
|
|
11
11
|
} & {
|
|
12
|
-
|
|
12
|
+
action?: (props: typeof __VLS_21) => any;
|
|
13
13
|
} & {
|
|
14
|
-
|
|
14
|
+
content?: (props: typeof __VLS_26) => any;
|
|
15
|
+
} & {
|
|
16
|
+
footer?: (props: typeof __VLS_31) => any;
|
|
15
17
|
};
|
|
16
18
|
declare const __VLS_component: import("vue").DefineComponent<NCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NCardProps> & Readonly<{}>, {
|
|
17
19
|
card: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../utils";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
una: { type: Object, required: false },
|
|
5
|
+
class: { type: null, required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div
|
|
11
|
+
data-slot="card-action"
|
|
12
|
+
:class="cn(
|
|
13
|
+
'card-action',
|
|
14
|
+
props.class
|
|
15
|
+
)"
|
|
16
|
+
>
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NCardActionProps } from '../../../types/card.js';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NCardActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NCardActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|