@una-ui/nuxt 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +2 -3
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +8 -8
- 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 +2 -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 +2 -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 +1 -1
- 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/collapsible/Collapsible.vue +1 -1
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +2 -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 +3 -2
- 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/dialog/DialogTrigger.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +2 -2
- 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 +2 -2
- 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 +2 -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 +2 -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 +2 -3
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
- package/dist/runtime/components/forms/select/Select.vue +4 -6
- package/dist/runtime/components/forms/select/Select.vue.d.ts +54 -2
- package/dist/runtime/components/forms/select/SelectContent.vue +2 -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 +2 -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 +2 -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 +2 -1
- package/dist/runtime/components/number-field/NumberField.vue +1 -1
- package/dist/runtime/components/number-field/NumberFieldDecrement.vue +1 -1
- package/dist/runtime/components/number-field/NumberFieldIncrement.vue +1 -1
- package/dist/runtime/components/number-field/NumberFieldInput.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/pin-input/PinInput.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputGroup.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputSeparator.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputSlot.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 +7 -2
- package/dist/runtime/components/sheet/SheetDescription.vue +1 -1
- package/dist/runtime/components/sheet/SheetOverlay.vue +7 -2
- 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/combobox.d.ts +3 -2
- package/dist/runtime/types/radio-group.d.ts +5 -3
- package/dist/runtime/types/select.d.ts +2 -30
- package/package.json +3 -3
|
@@ -60,7 +60,7 @@ const props = defineProps({
|
|
|
60
60
|
navigationMenuLink: { type: String, required: false },
|
|
61
61
|
ariaLabel: { type: String, required: false },
|
|
62
62
|
asChild: { type: Boolean, required: false },
|
|
63
|
-
as: { type:
|
|
63
|
+
as: { type: [String, Object, Function], required: false },
|
|
64
64
|
dropdownMenuItem: { type: null, required: false },
|
|
65
65
|
shortcut: { type: String, required: false },
|
|
66
66
|
onSelect: { type: Function, required: false },
|
|
@@ -33,7 +33,7 @@ const props = defineProps({
|
|
|
33
33
|
prioritizePosition: { type: Boolean, required: false },
|
|
34
34
|
reference: { type: null, required: false },
|
|
35
35
|
asChild: { type: Boolean, required: false },
|
|
36
|
-
as: { type:
|
|
36
|
+
as: { type: [String, Object, Function], required: false }
|
|
37
37
|
});
|
|
38
38
|
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"]);
|
|
39
39
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
@@ -45,7 +45,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
45
45
|
<DropdownMenuContent
|
|
46
46
|
v-bind="forwarded"
|
|
47
47
|
:class="cn(
|
|
48
|
-
'dropdown-menu-content 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
|
|
48
|
+
'dropdown-menu-content 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',
|
|
49
49
|
props.una?.dropdownMenuContent,
|
|
50
50
|
props.class
|
|
51
51
|
)"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
class: { type: null, required: false },
|
|
7
7
|
size: { type: null, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false }
|
|
10
10
|
});
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ const props = defineProps({
|
|
|
17
17
|
disabled: { type: Boolean, required: false },
|
|
18
18
|
textValue: { type: String, required: false },
|
|
19
19
|
asChild: { type: Boolean, required: false },
|
|
20
|
-
as: { type:
|
|
20
|
+
as: { type: [String, Object, Function], required: false },
|
|
21
21
|
type: { type: String, required: false },
|
|
22
22
|
loadingPlacement: { type: String, required: false },
|
|
23
23
|
icon: { type: Boolean, required: false },
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
class: { type: null, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: [String, Object, Function], required: false }
|
|
12
12
|
});
|
|
13
13
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
14
14
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
@@ -8,7 +8,7 @@ import Separator from "../Separator.vue";
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
una: { type: Object, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: [String, Object, Function], required: false },
|
|
12
12
|
separator: { type: null, required: false },
|
|
13
13
|
separatorPosition: { type: null, required: false },
|
|
14
14
|
size: { type: null, required: false },
|
|
@@ -25,7 +25,7 @@ const props = defineProps({
|
|
|
25
25
|
prioritizePosition: { type: Boolean, required: false },
|
|
26
26
|
reference: { type: null, required: false },
|
|
27
27
|
asChild: { type: Boolean, required: false },
|
|
28
|
-
as: { type:
|
|
28
|
+
as: { type: [String, Object, Function], required: false }
|
|
29
29
|
});
|
|
30
30
|
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"]);
|
|
31
31
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
@@ -36,7 +36,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
36
36
|
<DropdownMenuSubContent
|
|
37
37
|
v-bind="forwarded"
|
|
38
38
|
:class="cn(
|
|
39
|
-
'dropdown-menu-sub-content 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
|
|
39
|
+
'dropdown-menu-sub-content 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',
|
|
40
40
|
forwarded.una?.dropdownMenuSubContent,
|
|
41
41
|
props.class
|
|
42
42
|
)"
|
|
@@ -40,7 +40,7 @@ const props = defineProps({
|
|
|
40
40
|
ariaLabel: { type: String, required: false },
|
|
41
41
|
textValue: { type: String, required: false },
|
|
42
42
|
asChild: { type: Boolean, required: false },
|
|
43
|
-
as: { type:
|
|
43
|
+
as: { type: [String, Object, Function], required: false }
|
|
44
44
|
});
|
|
45
45
|
const delegatedProps = reactiveOmit(props, ["class"]);
|
|
46
46
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
@@ -33,7 +33,7 @@ const props = defineProps({
|
|
|
33
33
|
navigationMenuLink: { type: String, required: false },
|
|
34
34
|
ariaLabel: { type: String, required: false },
|
|
35
35
|
asChild: { type: Boolean, required: false },
|
|
36
|
-
as: { type:
|
|
36
|
+
as: { type: [String, Object, Function], required: false }
|
|
37
37
|
});
|
|
38
38
|
const forwardedProps = useForwardProps(props);
|
|
39
39
|
</script>
|
|
@@ -30,7 +30,7 @@ const props = defineProps({
|
|
|
30
30
|
disabled: { type: Boolean, required: false },
|
|
31
31
|
showEdges: { type: Boolean, required: false },
|
|
32
32
|
asChild: { type: Boolean, required: false },
|
|
33
|
-
as: { type:
|
|
33
|
+
as: { type: [String, Object, Function], required: false },
|
|
34
34
|
square: { type: null, required: false },
|
|
35
35
|
class: { type: null, required: false },
|
|
36
36
|
rounded: { type: null, required: false },
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
paginationEllipsis: { type: null, required: false, default: "~" },
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: [String, Object, Function], required: false },
|
|
11
11
|
square: { type: null, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
rounded: { type: null, required: false },
|
|
@@ -6,7 +6,7 @@ import Button from "../../elements/Button.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
type: { type: String, required: false },
|
|
11
11
|
loadingPlacement: { type: String, required: false },
|
|
12
12
|
icon: { type: Boolean, required: false, default: true },
|
|
@@ -6,7 +6,7 @@ import Button from "../../elements/Button.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
type: { type: String, required: false },
|
|
11
11
|
loadingPlacement: { type: String, required: false },
|
|
12
12
|
icon: { type: Boolean, required: false, default: true },
|
|
@@ -10,7 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
una: { type: Object, required: false },
|
|
11
11
|
value: { type: Number, required: true },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
|
-
as: { type:
|
|
13
|
+
as: { type: [String, Object, Function], required: false },
|
|
14
14
|
type: { type: String, required: false },
|
|
15
15
|
loadingPlacement: { type: String, required: false },
|
|
16
16
|
icon: { type: Boolean, required: false },
|
|
@@ -6,7 +6,7 @@ import Button from "../../elements/Button.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
type: { type: String, required: false },
|
|
11
11
|
loadingPlacement: { type: String, required: false },
|
|
12
12
|
icon: { type: Boolean, required: false, default: true },
|
|
@@ -6,7 +6,7 @@ import Button from "../../elements/Button.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
type: { type: String, required: false },
|
|
11
11
|
loadingPlacement: { type: String, required: false },
|
|
12
12
|
icon: { type: Boolean, required: false, default: true },
|
|
@@ -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: [String, Object, Function], required: false },
|
|
31
31
|
disableOutsidePointerEvents: { type: Boolean, required: false },
|
|
32
32
|
class: { type: null, required: false }
|
|
33
33
|
});
|
|
@@ -42,6 +42,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
42
42
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
43
43
|
:class="
|
|
44
44
|
cn(
|
|
45
|
+
'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',
|
|
45
46
|
'popover-content',
|
|
46
47
|
props.class
|
|
47
48
|
)
|
|
@@ -18,7 +18,7 @@ const props = defineProps({
|
|
|
18
18
|
modelValue: { type: null, required: false },
|
|
19
19
|
unmountOnHide: { type: Boolean, required: false },
|
|
20
20
|
asChild: { type: Boolean, required: false },
|
|
21
|
-
as: { type:
|
|
21
|
+
as: { type: [String, Object, Function], required: false },
|
|
22
22
|
class: { type: null, required: false },
|
|
23
23
|
size: { type: null, required: false, default: "sm" },
|
|
24
24
|
tabsActive: { type: String, required: false },
|
|
@@ -10,7 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
value: { type: [String, Number], required: true },
|
|
11
11
|
forceMount: { type: Boolean, required: false },
|
|
12
12
|
asChild: { type: Boolean, required: false },
|
|
13
|
-
as: { type:
|
|
13
|
+
as: { type: [String, Object, Function], required: false },
|
|
14
14
|
class: { type: null, required: false },
|
|
15
15
|
size: { type: null, required: false }
|
|
16
16
|
});
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
una: { type: Object, required: false },
|
|
7
7
|
loop: { type: Boolean, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false, default: "sm" }
|
|
12
12
|
});
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
value: { type: [String, Number], required: true },
|
|
9
9
|
disabled: { type: Boolean, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: [String, Object, Function], required: false },
|
|
12
12
|
type: { type: String, required: false },
|
|
13
13
|
loadingPlacement: { type: String, required: false },
|
|
14
14
|
icon: { type: Boolean, required: false },
|
|
@@ -13,7 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
forceMount: { type: Boolean, required: false },
|
|
14
14
|
ariaLabel: { type: String, required: false },
|
|
15
15
|
asChild: { type: Boolean, required: false },
|
|
16
|
-
as: { type:
|
|
16
|
+
as: { type: [String, Object, Function], required: false },
|
|
17
17
|
side: { type: null, required: false },
|
|
18
18
|
sideOffset: { type: Number, required: false, default: 4 },
|
|
19
19
|
align: { type: null, required: false },
|
|
@@ -37,6 +37,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
37
37
|
<TooltipContent
|
|
38
38
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
39
39
|
:class="cn(
|
|
40
|
+
'animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',
|
|
40
41
|
'tooltip-content',
|
|
41
42
|
props.class,
|
|
42
43
|
props.una?.tooltipContent
|
|
@@ -32,7 +32,7 @@ const props = defineProps({
|
|
|
32
32
|
ariaLabel: { type: String, required: false },
|
|
33
33
|
reference: { type: null, required: false },
|
|
34
34
|
asChild: { type: Boolean, required: false },
|
|
35
|
-
as: { type:
|
|
35
|
+
as: { type: [String, Object, Function], required: false }
|
|
36
36
|
});
|
|
37
37
|
</script>
|
|
38
38
|
|
|
@@ -23,7 +23,7 @@ const props = defineProps({
|
|
|
23
23
|
value: { type: null, required: false },
|
|
24
24
|
id: { type: String, required: false },
|
|
25
25
|
asChild: { type: Boolean, required: false },
|
|
26
|
-
as: { type:
|
|
26
|
+
as: { type: [String, Object, Function], required: false },
|
|
27
27
|
name: { type: String, required: false },
|
|
28
28
|
required: { type: Boolean, required: false },
|
|
29
29
|
class: { type: null, required: false },
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
una: { type: Object, required: false },
|
|
17
17
|
for: { type: String, required: false },
|
|
18
18
|
asChild: { type: Boolean, required: false },
|
|
19
|
-
as: { type:
|
|
19
|
+
as: { type: [String, Object, Function], required: false }
|
|
20
20
|
});
|
|
21
21
|
const id = computed(() => props.id ?? randomId("form-group"));
|
|
22
22
|
const statusClassVariants = computed(() => {
|
|
@@ -18,7 +18,7 @@ const props = defineProps({
|
|
|
18
18
|
minStepsBetweenThumbs: { type: Number, required: false },
|
|
19
19
|
thumbAlignment: { type: String, required: false },
|
|
20
20
|
asChild: { type: Boolean, required: false },
|
|
21
|
-
as: { type:
|
|
21
|
+
as: { type: [String, Object, Function], required: false },
|
|
22
22
|
name: { type: String, required: false },
|
|
23
23
|
required: { type: Boolean, required: false },
|
|
24
24
|
class: { type: null, required: false }
|
|
@@ -21,7 +21,7 @@ const props = defineProps({
|
|
|
21
21
|
id: { type: String, required: false },
|
|
22
22
|
value: { type: String, required: false },
|
|
23
23
|
asChild: { type: Boolean, required: false },
|
|
24
|
-
as: { type:
|
|
24
|
+
as: { type: [String, Object, Function], required: false },
|
|
25
25
|
name: { type: String, required: false },
|
|
26
26
|
required: { type: Boolean, required: false },
|
|
27
27
|
class: { type: null, required: false },
|
|
@@ -24,7 +24,7 @@ const props = defineProps({
|
|
|
24
24
|
una: { type: Object, required: false },
|
|
25
25
|
for: { type: String, required: false },
|
|
26
26
|
asChild: { type: Boolean, required: false },
|
|
27
|
-
as: { type:
|
|
27
|
+
as: { type: [String, Object, Function], required: false }
|
|
28
28
|
});
|
|
29
29
|
const statusClassVariants = computed(() => {
|
|
30
30
|
const text = {
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
class: { type: null, required: false },
|
|
9
9
|
for: { type: String, required: false },
|
|
10
10
|
asChild: { type: Boolean, required: false },
|
|
11
|
-
as: { type:
|
|
11
|
+
as: { type: [String, Object, Function], required: false }
|
|
12
12
|
});
|
|
13
13
|
const { formItemId } = useFormField();
|
|
14
14
|
</script>
|
|
@@ -8,6 +8,7 @@ import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
|
8
8
|
import { cn } from "../../../utils";
|
|
9
9
|
import RadioGroupItem from "./RadioGroupItem.vue";
|
|
10
10
|
const props = defineProps({
|
|
11
|
+
modelValue: { type: null, required: true },
|
|
11
12
|
items: { type: Array, required: false },
|
|
12
13
|
labelKey: { type: null, required: false },
|
|
13
14
|
valueKey: { type: null, required: false },
|
|
@@ -20,14 +21,13 @@ const props = defineProps({
|
|
|
20
21
|
square: { type: null, required: false, default: "1em" },
|
|
21
22
|
rounded: { type: null, required: false },
|
|
22
23
|
icon: { type: null, required: false },
|
|
23
|
-
modelValue: { type: null, required: false },
|
|
24
24
|
defaultValue: { type: null, required: false },
|
|
25
25
|
disabled: { type: Boolean, required: false },
|
|
26
26
|
orientation: { type: String, required: false },
|
|
27
27
|
dir: { type: String, required: false },
|
|
28
28
|
loop: { type: Boolean, required: false },
|
|
29
29
|
asChild: { type: Boolean, required: false },
|
|
30
|
-
as: { type:
|
|
30
|
+
as: { type: [String, Object, Function], required: false },
|
|
31
31
|
name: { type: String, required: false },
|
|
32
32
|
required: { type: Boolean, required: false }
|
|
33
33
|
});
|
|
@@ -71,7 +71,6 @@ function getItemDescription(item) {
|
|
|
71
71
|
|
|
72
72
|
<template>
|
|
73
73
|
<RadioGroupRoot
|
|
74
|
-
v-slot="{ modelValue }"
|
|
75
74
|
:class="cn(
|
|
76
75
|
'radio-group',
|
|
77
76
|
orientation === 'horizontal' ? 'radio-group-orientation-horizontal' : 'radio-group-orientation-vertical',
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
2
|
import type { NRadioGroupItemProps, NRadioGroupProps } from '../../../types/index.js';
|
|
3
|
-
declare const _default: <T extends AcceptableValue
|
|
3
|
+
declare const _default: <T extends AcceptableValue, Item extends T | NRadioGroupItemProps<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
6
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T, Item> & Partial<{}>> & import("vue").PublicProps;
|
|
7
7
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: {
|
|
10
10
|
default?: (props: {
|
|
11
|
-
modelValue:
|
|
11
|
+
modelValue: T;
|
|
12
12
|
}) => any;
|
|
13
13
|
} & {
|
|
14
14
|
label?: (props: {
|
|
15
|
-
item:
|
|
15
|
+
item: Item;
|
|
16
16
|
}) => any;
|
|
17
17
|
} & {
|
|
18
18
|
description?: (props: {
|
|
19
|
-
item:
|
|
19
|
+
item: Item;
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
22
|
emit: (evt: "update:modelValue", payload: string) => void;
|
|
@@ -12,6 +12,7 @@ defineOptions({
|
|
|
12
12
|
inheritAttrs: false
|
|
13
13
|
});
|
|
14
14
|
const props = defineProps({
|
|
15
|
+
value: { type: null, required: true },
|
|
15
16
|
label: { type: String, required: false },
|
|
16
17
|
radioGroup: { type: null, required: false, default: "primary" },
|
|
17
18
|
description: { type: String, required: false },
|
|
@@ -22,10 +23,9 @@ const props = defineProps({
|
|
|
22
23
|
rounded: { type: null, required: false },
|
|
23
24
|
icon: { type: null, required: false, default: "radio-group-indicator-icon" },
|
|
24
25
|
id: { type: String, required: false },
|
|
25
|
-
value: { type: null, required: false },
|
|
26
26
|
disabled: { type: Boolean, required: false },
|
|
27
27
|
asChild: { type: Boolean, required: false },
|
|
28
|
-
as: { type:
|
|
28
|
+
as: { type: [String, Object, Function], required: false },
|
|
29
29
|
name: { type: String, required: false },
|
|
30
30
|
required: { type: Boolean, required: false }
|
|
31
31
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NRadioGroupItemProps } from '../../../types/index.js';
|
|
2
|
+
type __VLS_Props = NRadioGroupItemProps;
|
|
2
3
|
declare var __VLS_9: {}, __VLS_17: {}, __VLS_19: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
icon?: (props: typeof __VLS_9) => any;
|
|
@@ -7,7 +8,7 @@ type __VLS_Slots = {} & {
|
|
|
7
8
|
} & {
|
|
8
9
|
description?: (props: typeof __VLS_19) => any;
|
|
9
10
|
};
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
12
|
icon: import("vue").HTMLAttributes["class"];
|
|
12
13
|
size: import("vue").HTMLAttributes["class"];
|
|
13
14
|
square: import("vue").HTMLAttributes["class"];
|
|
@@ -49,7 +49,6 @@ const props = defineProps({
|
|
|
49
49
|
id: { type: String, required: false }
|
|
50
50
|
});
|
|
51
51
|
const emits = defineEmits(["update:modelValue", "update:open"]);
|
|
52
|
-
defineSlots();
|
|
53
52
|
const hasGroups = computed(() => {
|
|
54
53
|
return Array.isArray(props.items) && props.items.length > 0 && typeof props.items[0] === "object" && "items" in props.items[0];
|
|
55
54
|
});
|
|
@@ -88,15 +87,14 @@ function isItemSelected(item, modelValue) {
|
|
|
88
87
|
|
|
89
88
|
<template>
|
|
90
89
|
<SelectRoot
|
|
91
|
-
v-slot="{ modelValue, open }"
|
|
92
90
|
:class="cn(
|
|
93
91
|
props.una?.select,
|
|
94
92
|
props.class
|
|
95
93
|
)"
|
|
96
94
|
v-bind="forwarded"
|
|
97
95
|
>
|
|
98
|
-
<slot :model-value
|
|
99
|
-
<slot name="trigger-wrapper" :model-value
|
|
96
|
+
<slot :model-value :open>
|
|
97
|
+
<slot name="trigger-wrapper" :model-value :open>
|
|
100
98
|
<SelectTrigger
|
|
101
99
|
:id
|
|
102
100
|
:size
|
|
@@ -105,7 +103,7 @@ function isItemSelected(item, modelValue) {
|
|
|
105
103
|
v-bind="props._selectTrigger"
|
|
106
104
|
:una
|
|
107
105
|
>
|
|
108
|
-
<slot name="trigger" :model-value
|
|
106
|
+
<slot name="trigger" :model-value :open="open">
|
|
109
107
|
<SelectValue
|
|
110
108
|
:placeholder="props.placeholder"
|
|
111
109
|
v-bind="props._selectValue"
|
|
@@ -113,7 +111,7 @@ function isItemSelected(item, modelValue) {
|
|
|
113
111
|
:data-status="status"
|
|
114
112
|
:una
|
|
115
113
|
>
|
|
116
|
-
<slot name="value" :model-value
|
|
114
|
+
<slot name="value" :model-value :open>
|
|
117
115
|
{{ formatSelectedValue(modelValue) || props.placeholder }}
|
|
118
116
|
</slot>
|
|
119
117
|
</SelectValue>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
|
-
import type { NSelectProps,
|
|
2
|
+
import type { NSelectProps, SelectGroup as SelectGroupType } from '../../../types/index.js';
|
|
3
3
|
declare const _default: <T extends AcceptableValue, I extends Array<T | SelectGroupType<T>>, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
@@ -7,7 +7,59 @@ declare const _default: <T extends AcceptableValue, I extends Array<T | SelectGr
|
|
|
7
7
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & NSelectProps<T, I, M> & Partial<{}>> & import("vue").PublicProps;
|
|
8
8
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
9
9
|
attrs: any;
|
|
10
|
-
slots:
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {
|
|
12
|
+
modelValue: (M extends true ? T[] : T) | undefined;
|
|
13
|
+
open: boolean | undefined;
|
|
14
|
+
}) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'trigger-wrapper'?: (props: {
|
|
17
|
+
modelValue: (M extends true ? T[] : T) | undefined;
|
|
18
|
+
open: boolean | undefined;
|
|
19
|
+
}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
trigger?: (props: {
|
|
22
|
+
modelValue: (M extends true ? T[] : T) | undefined;
|
|
23
|
+
open: boolean | undefined;
|
|
24
|
+
}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
value?: (props: {
|
|
27
|
+
modelValue: (M extends true ? T[] : T) | undefined;
|
|
28
|
+
open: boolean | undefined;
|
|
29
|
+
}) => any;
|
|
30
|
+
} & {
|
|
31
|
+
content?: (props: {
|
|
32
|
+
items: I;
|
|
33
|
+
}) => any;
|
|
34
|
+
} & {
|
|
35
|
+
label?: (props: {
|
|
36
|
+
label: string;
|
|
37
|
+
}) => any;
|
|
38
|
+
} & {
|
|
39
|
+
item?: (props: {
|
|
40
|
+
item: I extends number ? number : I extends string ? string : I extends any[] ? I[number] : I extends Iterable<infer T1> ? T1 : any;
|
|
41
|
+
}) => any;
|
|
42
|
+
} & {
|
|
43
|
+
indicator?: (props: {
|
|
44
|
+
item: I extends number ? number : I extends string ? string : I extends any[] ? I[number] : I extends Iterable<infer T1> ? T1 : any;
|
|
45
|
+
}) => any;
|
|
46
|
+
} & {
|
|
47
|
+
group?: (props: {
|
|
48
|
+
items: SelectGroupType<T>;
|
|
49
|
+
}) => any;
|
|
50
|
+
} & {
|
|
51
|
+
label?: (props: {
|
|
52
|
+
label: string;
|
|
53
|
+
}) => any;
|
|
54
|
+
} & {
|
|
55
|
+
item?: (props: {
|
|
56
|
+
item: T;
|
|
57
|
+
}) => any;
|
|
58
|
+
} & {
|
|
59
|
+
indicator?: (props: {
|
|
60
|
+
item: T;
|
|
61
|
+
}) => any;
|
|
62
|
+
};
|
|
11
63
|
emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void);
|
|
12
64
|
}>) => import("vue").VNode & {
|
|
13
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -36,7 +36,7 @@ const props = defineProps({
|
|
|
36
36
|
prioritizePosition: { type: Boolean, required: false },
|
|
37
37
|
reference: { type: null, required: false },
|
|
38
38
|
asChild: { type: Boolean, required: false },
|
|
39
|
-
as: { type:
|
|
39
|
+
as: { type: [String, Object, Function], required: false },
|
|
40
40
|
class: { type: null, required: false },
|
|
41
41
|
size: { type: null, required: false }
|
|
42
42
|
});
|
|
@@ -51,6 +51,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
51
51
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
52
52
|
:class="
|
|
53
53
|
cn(
|
|
54
|
+
'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',
|
|
54
55
|
'select-content',
|
|
55
56
|
position === 'popper' && 'select-content-popper',
|
|
56
57
|
props.class
|
|
@@ -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: [String, Object, Function], required: false },
|
|
9
9
|
class: { type: null, required: false },
|
|
10
10
|
size: { type: null, required: false }
|
|
11
11
|
});
|
|
@@ -17,7 +17,7 @@ const props = defineProps({
|
|
|
17
17
|
disabled: { type: Boolean, required: false },
|
|
18
18
|
textValue: { type: String, required: false },
|
|
19
19
|
asChild: { type: Boolean, required: false },
|
|
20
|
-
as: { type:
|
|
20
|
+
as: { type: [String, Object, Function], required: false },
|
|
21
21
|
class: { type: null, required: false },
|
|
22
22
|
size: { type: null, required: false }
|
|
23
23
|
});
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
class: { type: null, required: false },
|
|
8
8
|
una: { type: Object, required: false },
|
|
9
9
|
asChild: { type: Boolean, required: false },
|
|
10
|
-
as: { type:
|
|
10
|
+
as: { type: [String, Object, Function], required: false, default: "span" }
|
|
11
11
|
});
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import { SelectItemText } from "reka-ui";
|
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
una: { type: Object, required: false },
|
|
5
5
|
asChild: { type: Boolean, required: false },
|
|
6
|
-
as: { type:
|
|
6
|
+
as: { type: [String, Object, Function], required: false },
|
|
7
7
|
class: { type: null, required: false },
|
|
8
8
|
size: { type: null, required: false }
|
|
9
9
|
});
|
|
@@ -5,7 +5,7 @@ const props = defineProps({
|
|
|
5
5
|
una: { type: Object, required: false },
|
|
6
6
|
for: { type: String, required: false },
|
|
7
7
|
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type:
|
|
8
|
+
as: { type: [String, Object, Function], required: false },
|
|
9
9
|
class: { type: null, required: false },
|
|
10
10
|
size: { type: null, required: false }
|
|
11
11
|
});
|
|
@@ -6,7 +6,7 @@ import Icon from "../../elements/Icon.vue";
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
una: { type: Object, required: false },
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
|
-
as: { type:
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
11
|
size: { type: null, required: false }
|
|
12
12
|
});
|