@geniusdynamics/ns8-ui-lib 1.0.6 → 1.0.7
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/ns8-ui-lib.css +1 -1
- package/dist/ns8-ui-lib.es.js +222 -222
- package/dist/ns8-ui-lib.es.js.map +1 -1
- package/dist/ns8-ui-lib.umd.js +3 -3
- package/dist/ns8-ui-lib.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/App.vue +3 -4
- package/src/components/HelloWorld.vue +2 -2
- package/src/components/NS/CompleteDemo.vue +49 -49
- package/src/components/NS/Demo.vue +20 -20
- package/src/components/NS/cards/NSBackupCard.vue +41 -41
- package/src/components/NS/cards/NSSystemInfoCard.vue +37 -37
- package/src/components/NS/cards/NSSystemdServiceCard.vue +27 -27
- package/src/components/NS/checkbox/NSCheckbox.vue +4 -4
- package/src/components/NS/data-table/NSDataTable.vue +29 -29
- package/src/components/NS/empty-state/NSEmptyState.vue +3 -3
- package/src/components/NS/inline-notification/NSInlineNotification.vue +9 -9
- package/src/components/NS/lottie-animation/NSLottieAnimation.vue +5 -5
- package/src/components/NS/modal/NSModal.vue +10 -10
- package/src/components/NS/modal/NSModalTrigger.vue +1 -1
- package/src/components/NS/pagination/NSPagination.vue +10 -10
- package/src/components/NS/progress/NSProgress.vue +3 -3
- package/src/components/NS/progress/NSProgressBar.vue +4 -4
- package/src/components/NS/slider/NSByteSlider.vue +3 -3
- package/src/components/NS/slider/NSSlider.vue +2 -2
- package/src/components/NS/tag/NSTag.vue +5 -5
- package/src/components/NS/text-input/NSTextInput.vue +5 -5
- package/src/components/NS/toast-notification/NSToastNotification.vue +7 -7
- package/src/components/NS/toggle/NSToggle.vue +2 -2
- package/src/components/NS/wizard/NSWizard.vue +21 -21
- package/src/components/ui/accordion/AccordionContent.vue +2 -2
- package/src/components/ui/accordion/AccordionItem.vue +1 -1
- package/src/components/ui/accordion/AccordionTrigger.vue +3 -3
- package/src/components/ui/alert/AlertDescription.vue +1 -1
- package/src/components/ui/alert/AlertTitle.vue +1 -1
- package/src/components/ui/alert-dialog/AlertDialogCancel.vue +1 -1
- package/src/components/ui/alert-dialog/AlertDialogContent.vue +2 -2
- package/src/components/ui/alert-dialog/AlertDialogDescription.vue +1 -1
- package/src/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
- package/src/components/ui/alert-dialog/AlertDialogHeader.vue +1 -1
- package/src/components/ui/alert-dialog/AlertDialogTitle.vue +1 -1
- package/src/components/ui/avatar/Avatar.vue +1 -1
- package/src/components/ui/avatar/AvatarFallback.vue +1 -1
- package/src/components/ui/avatar/AvatarImage.vue +1 -1
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +3 -3
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +1 -1
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +1 -1
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +1 -1
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +1 -1
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +1 -1
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +1 -1
- package/src/components/ui/button-group/ButtonGroupText.vue +1 -1
- package/src/components/ui/calendar/Calendar.vue +16 -16
- package/src/components/ui/calendar/CalendarCell.vue +1 -1
- package/src/components/ui/calendar/CalendarCellTrigger.vue +6 -6
- package/src/components/ui/calendar/CalendarGrid.vue +1 -1
- package/src/components/ui/calendar/CalendarGridRow.vue +1 -1
- package/src/components/ui/calendar/CalendarHeadCell.vue +1 -1
- package/src/components/ui/calendar/CalendarHeader.vue +1 -1
- package/src/components/ui/calendar/CalendarHeading.vue +1 -1
- package/src/components/ui/calendar/CalendarNextButton.vue +2 -2
- package/src/components/ui/calendar/CalendarPrevButton.vue +2 -2
- package/src/components/ui/card/Card.vue +1 -1
- package/src/components/ui/card/CardAction.vue +1 -1
- package/src/components/ui/card/CardContent.vue +1 -1
- package/src/components/ui/card/CardDescription.vue +1 -1
- package/src/components/ui/card/CardFooter.vue +1 -1
- package/src/components/ui/card/CardHeader.vue +1 -1
- package/src/components/ui/card/CardTitle.vue +1 -1
- package/src/components/ui/carousel/Carousel.vue +1 -1
- package/src/components/ui/carousel/CarouselContent.vue +3 -3
- package/src/components/ui/carousel/CarouselItem.vue +2 -2
- package/src/components/ui/carousel/CarouselNext.vue +4 -4
- package/src/components/ui/carousel/CarouselPrevious.vue +4 -4
- package/src/components/ui/checkbox/Checkbox.vue +3 -3
- package/src/components/ui/combobox/ComboboxAnchor.vue +1 -1
- package/src/components/ui/combobox/ComboboxEmpty.vue +1 -1
- package/src/components/ui/combobox/ComboboxGroup.vue +2 -2
- package/src/components/ui/combobox/ComboboxInput.vue +3 -3
- package/src/components/ui/combobox/ComboboxItem.vue +1 -1
- package/src/components/ui/combobox/ComboboxItemIndicator.vue +1 -1
- package/src/components/ui/combobox/ComboboxList.vue +1 -1
- package/src/components/ui/combobox/ComboboxSeparator.vue +1 -1
- package/src/components/ui/combobox/ComboboxTrigger.vue +1 -1
- package/src/components/ui/combobox/ComboboxViewport.vue +1 -1
- package/src/components/ui/command/Command.vue +1 -1
- package/src/components/ui/command/CommandDialog.vue +2 -2
- package/src/components/ui/command/CommandEmpty.vue +1 -1
- package/src/components/ui/command/CommandGroup.vue +2 -2
- package/src/components/ui/command/CommandInput.vue +3 -3
- package/src/components/ui/command/CommandItem.vue +1 -1
- package/src/components/ui/command/CommandList.vue +1 -1
- package/src/components/ui/command/CommandSeparator.vue +1 -1
- package/src/components/ui/command/CommandShortcut.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +3 -3
- package/src/components/ui/context-menu/ContextMenuContent.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuItem.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuLabel.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuRadioItem.vue +3 -3
- package/src/components/ui/context-menu/ContextMenuSeparator.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuShortcut.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuSubContent.vue +1 -1
- package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +2 -2
- package/src/components/ui/dialog/DialogContent.vue +18 -27
- package/src/components/ui/dialog/DialogDescription.vue +1 -1
- package/src/components/ui/dialog/DialogFooter.vue +1 -1
- package/src/components/ui/dialog/DialogHeader.vue +1 -1
- package/src/components/ui/dialog/DialogOverlay.vue +1 -1
- package/src/components/ui/dialog/DialogScrollContent.vue +5 -5
- package/src/components/ui/dialog/DialogTitle.vue +1 -1
- package/src/components/ui/drawer/DrawerContent.vue +6 -6
- package/src/components/ui/drawer/DrawerDescription.vue +1 -1
- package/src/components/ui/drawer/DrawerFooter.vue +1 -1
- package/src/components/ui/drawer/DrawerHeader.vue +1 -1
- package/src/components/ui/drawer/DrawerOverlay.vue +1 -1
- package/src/components/ui/drawer/DrawerTitle.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +3 -3
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +3 -3
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +2 -2
- package/src/components/ui/empty/Empty.vue +1 -1
- package/src/components/ui/empty/EmptyContent.vue +1 -1
- package/src/components/ui/empty/EmptyDescription.vue +2 -2
- package/src/components/ui/empty/EmptyHeader.vue +1 -1
- package/src/components/ui/empty/EmptyTitle.vue +1 -1
- package/src/components/ui/field/FieldContent.vue +1 -1
- package/src/components/ui/field/FieldDescription.vue +3 -3
- package/src/components/ui/field/FieldError.vue +2 -2
- package/src/components/ui/field/FieldGroup.vue +1 -1
- package/src/components/ui/field/FieldLabel.vue +3 -3
- package/src/components/ui/field/FieldLegend.vue +3 -3
- package/src/components/ui/field/FieldSeparator.vue +3 -3
- package/src/components/ui/field/FieldSet.vue +2 -2
- package/src/components/ui/field/FieldTitle.vue +1 -1
- package/src/components/ui/form/FormDescription.vue +1 -1
- package/src/components/ui/form/FormItem.vue +1 -1
- package/src/components/ui/form/FormLabel.vue +1 -1
- package/src/components/ui/form/FormMessage.vue +1 -1
- package/src/components/ui/hover-card/HoverCardContent.vue +1 -1
- package/src/components/ui/input/Input.vue +3 -3
- package/src/components/ui/input-group/InputGroup.vue +8 -8
- package/src/components/ui/input-group/InputGroupInput.vue +1 -1
- package/src/components/ui/input-group/InputGroupText.vue +1 -1
- package/src/components/ui/input-group/InputGroupTextarea.vue +1 -1
- package/src/components/ui/input-otp/InputOTP.vue +1 -1
- package/src/components/ui/input-otp/InputOTPGroup.vue +1 -1
- package/src/components/ui/input-otp/InputOTPSlot.vue +3 -3
- package/src/components/ui/item/ItemActions.vue +1 -1
- package/src/components/ui/item/ItemContent.vue +1 -1
- package/src/components/ui/item/ItemDescription.vue +2 -2
- package/src/components/ui/item/ItemFooter.vue +1 -1
- package/src/components/ui/item/ItemGroup.vue +1 -1
- package/src/components/ui/item/ItemHeader.vue +1 -1
- package/src/components/ui/item/ItemSeparator.vue +1 -1
- package/src/components/ui/item/ItemTitle.vue +1 -1
- package/src/components/ui/kbd/Kbd.vue +3 -3
- package/src/components/ui/kbd/KbdGroup.vue +1 -1
- package/src/components/ui/label/Label.vue +1 -1
- package/src/components/ui/menubar/Menubar.vue +1 -1
- package/src/components/ui/menubar/MenubarCheckboxItem.vue +3 -3
- package/src/components/ui/menubar/MenubarContent.vue +1 -1
- package/src/components/ui/menubar/MenubarItem.vue +1 -1
- package/src/components/ui/menubar/MenubarLabel.vue +1 -1
- package/src/components/ui/menubar/MenubarRadioItem.vue +3 -3
- package/src/components/ui/menubar/MenubarSeparator.vue +1 -1
- package/src/components/ui/menubar/MenubarShortcut.vue +1 -1
- package/src/components/ui/menubar/MenubarSubContent.vue +1 -1
- package/src/components/ui/menubar/MenubarSubTrigger.vue +2 -2
- package/src/components/ui/menubar/MenubarTrigger.vue +1 -1
- package/src/components/ui/native-select/NativeSelect.vue +5 -5
- package/src/components/ui/native-select/NativeSelectOptGroup.vue +1 -1
- package/src/components/ui/native-select/NativeSelectOption.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenu.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuContent.vue +2 -2
- package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +2 -2
- package/src/components/ui/navigation-menu/NavigationMenuItem.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuList.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +2 -2
- package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +2 -2
- package/src/components/ui/number-field/NumberField.vue +1 -1
- package/src/components/ui/number-field/NumberFieldContent.vue +1 -1
- package/src/components/ui/number-field/NumberFieldDecrement.vue +2 -2
- package/src/components/ui/number-field/NumberFieldIncrement.vue +2 -2
- package/src/components/ui/number-field/NumberFieldInput.vue +1 -1
- package/src/components/ui/pagination/Pagination.vue +1 -1
- package/src/components/ui/pagination/PaginationContent.vue +1 -1
- package/src/components/ui/pagination/PaginationEllipsis.vue +3 -3
- package/src/components/ui/pagination/PaginationFirst.vue +2 -2
- package/src/components/ui/pagination/PaginationLast.vue +2 -2
- package/src/components/ui/pagination/PaginationNext.vue +2 -2
- package/src/components/ui/pagination/PaginationPrevious.vue +2 -2
- package/src/components/ui/pin-input/PinInput.vue +1 -1
- package/src/components/ui/pin-input/PinInputGroup.vue +1 -1
- package/src/components/ui/pin-input/PinInputSlot.vue +1 -1
- package/src/components/ui/popover/PopoverContent.vue +1 -1
- package/src/components/ui/progress/Progress.vue +12 -9
- package/src/components/ui/radio-group/RadioGroup.vue +1 -1
- package/src/components/ui/radio-group/RadioGroupItem.vue +16 -16
- package/src/components/ui/range-calendar/RangeCalendar.vue +4 -4
- package/src/components/ui/range-calendar/RangeCalendarCell.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue +7 -7
- package/src/components/ui/range-calendar/RangeCalendarGrid.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarGridRow.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarHeadCell.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarHeader.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/ui/range-calendar/RangeCalendarNextButton.vue +3 -3
- package/src/components/ui/range-calendar/RangeCalendarPrevButton.vue +3 -3
- package/src/components/ui/resizable/ResizableHandle.vue +3 -3
- package/src/components/ui/resizable/ResizablePanelGroup.vue +1 -1
- package/src/components/ui/scroll-area/ScrollArea.vue +2 -2
- package/src/components/ui/scroll-area/ScrollBar.vue +16 -22
- package/src/components/ui/select/SelectContent.vue +18 -27
- package/src/components/ui/select/SelectItem.vue +3 -3
- package/src/components/ui/select/SelectLabel.vue +1 -1
- package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
- package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
- package/src/components/ui/select/SelectSeparator.vue +1 -1
- package/src/components/ui/select/SelectTrigger.vue +2 -2
- package/src/components/ui/separator/Separator.vue +1 -1
- package/src/components/ui/sheet/SheetContent.vue +28 -31
- package/src/components/ui/sheet/SheetDescription.vue +1 -1
- package/src/components/ui/sheet/SheetFooter.vue +1 -1
- package/src/components/ui/sheet/SheetHeader.vue +1 -1
- package/src/components/ui/sheet/SheetOverlay.vue +1 -1
- package/src/components/ui/sheet/SheetTitle.vue +1 -1
- package/src/components/ui/sidebar/Sidebar.vue +16 -16
- package/src/components/ui/sidebar/SidebarContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarFooter.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroup.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupAction.vue +3 -3
- package/src/components/ui/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +2 -2
- package/src/components/ui/sidebar/SidebarHeader.vue +1 -1
- package/src/components/ui/sidebar/SidebarInput.vue +1 -1
- package/src/components/ui/sidebar/SidebarInset.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenu.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuAction.vue +7 -7
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +6 -6
- package/src/components/ui/sidebar/SidebarMenuItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +3 -3
- package/src/components/ui/sidebar/SidebarMenuSub.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +5 -5
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarProvider.vue +1 -1
- package/src/components/ui/sidebar/SidebarRail.vue +6 -6
- package/src/components/ui/sidebar/SidebarSeparator.vue +1 -1
- package/src/components/ui/sidebar/SidebarTrigger.vue +2 -2
- package/src/components/ui/skeleton/Skeleton.vue +1 -1
- package/src/components/ui/slider/Slider.vue +4 -4
- package/src/components/ui/sonner/Sonner.vue +7 -7
- package/src/components/ui/spinner/Spinner.vue +1 -1
- package/src/components/ui/stepper/Stepper.vue +1 -1
- package/src/components/ui/stepper/StepperDescription.vue +1 -1
- package/src/components/ui/stepper/StepperIndicator.vue +4 -4
- package/src/components/ui/stepper/StepperItem.vue +1 -1
- package/src/components/ui/stepper/StepperSeparator.vue +3 -3
- package/src/components/ui/stepper/StepperTitle.vue +1 -1
- package/src/components/ui/stepper/StepperTrigger.vue +1 -1
- package/src/components/ui/switch/Switch.vue +2 -2
- package/src/components/ui/table/Table.vue +6 -12
- package/src/components/ui/table/TableBody.vue +1 -1
- package/src/components/ui/table/TableCaption.vue +1 -1
- package/src/components/ui/table/TableCell.vue +1 -1
- package/src/components/ui/table/TableEmpty.vue +14 -17
- package/src/components/ui/table/TableFooter.vue +1 -1
- package/src/components/ui/table/TableHead.vue +1 -1
- package/src/components/ui/table/TableHeader.vue +1 -1
- package/src/components/ui/table/TableRow.vue +1 -1
- package/src/components/ui/tabs/Tabs.vue +1 -1
- package/src/components/ui/tabs/TabsContent.vue +1 -1
- package/src/components/ui/tabs/TabsList.vue +1 -1
- package/src/components/ui/tabs/TabsTrigger.vue +1 -1
- package/src/components/ui/tags-input/TagsInput.vue +3 -3
- package/src/components/ui/tags-input/TagsInputInput.vue +1 -1
- package/src/components/ui/tags-input/TagsInputItem.vue +1 -1
- package/src/components/ui/tags-input/TagsInputItemDelete.vue +2 -2
- package/src/components/ui/tags-input/TagsInputItemText.vue +1 -1
- package/src/components/ui/textarea/Textarea.vue +1 -1
- package/src/components/ui/toggle-group/ToggleGroup.vue +1 -1
- package/src/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
- package/src/components/ui/tooltip/TooltipContent.vue +2 -2
- package/src/components/ui/checkbox/NsCheckbox.vue +0 -123
- package/src/components/ui/empty-state/NsEmptyState.vue +0 -149
- package/src/components/ui/inline-notification/NsInlineNotification.vue +0 -163
- package/src/components/ui/tag/NsTag.vue +0 -114
- package/src/components/ui/text-input/NsTextInput.vue +0 -269
- package/src/components/ui/toggle/NsToggle.vue +0 -126
|
@@ -16,7 +16,7 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
16
16
|
<ListboxContent
|
|
17
17
|
data-slot="command-list"
|
|
18
18
|
v-bind="forwarded"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', props.class)"
|
|
20
20
|
>
|
|
21
21
|
<div role="presentation">
|
|
22
22
|
<slot />
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<Separator
|
|
15
15
|
data-slot="command-separator"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('bg-border -mx-1 h-px', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</Separator>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<span
|
|
12
12
|
data-slot="command-shortcut"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('text-muted-foreground ml-auto text-xs tracking-widest', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</span>
|
|
@@ -23,14 +23,14 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
23
23
|
data-slot="context-menu-checkbox-item"
|
|
24
24
|
v-bind="forwarded"
|
|
25
25
|
:class="cn(
|
|
26
|
-
'
|
|
26
|
+
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
27
27
|
props.class,
|
|
28
28
|
)"
|
|
29
29
|
>
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
31
31
|
<ContextMenuItemIndicator>
|
|
32
32
|
<slot name="indicator-icon">
|
|
33
|
-
<Check class="
|
|
33
|
+
<Check class="size-4" />
|
|
34
34
|
</slot>
|
|
35
35
|
</ContextMenuItemIndicator>
|
|
36
36
|
</span>
|
|
@@ -27,7 +27,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
27
27
|
data-slot="context-menu-content"
|
|
28
28
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
29
29
|
:class="cn(
|
|
30
|
-
'
|
|
30
|
+
'bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',
|
|
31
31
|
props.class,
|
|
32
32
|
)"
|
|
33
33
|
>
|
|
@@ -29,7 +29,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
29
29
|
:data-variant="variant"
|
|
30
30
|
v-bind="forwarded"
|
|
31
31
|
:class="cn(
|
|
32
|
-
'
|
|
32
|
+
'focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*=\'text-\'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
33
33
|
props.class,
|
|
34
34
|
)"
|
|
35
35
|
>
|
|
@@ -15,7 +15,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
15
15
|
data-slot="context-menu-label"
|
|
16
16
|
:data-inset="inset ? '' : undefined"
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', props.class)"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
</ContextMenuLabel>
|
|
@@ -23,14 +23,14 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
23
23
|
data-slot="context-menu-radio-item"
|
|
24
24
|
v-bind="forwarded"
|
|
25
25
|
:class="cn(
|
|
26
|
-
'
|
|
26
|
+
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
27
27
|
props.class,
|
|
28
28
|
)"
|
|
29
29
|
>
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
31
31
|
<ContextMenuItemIndicator>
|
|
32
32
|
<slot name="indicator-icon">
|
|
33
|
-
<Circle class="
|
|
33
|
+
<Circle class="size-2 fill-current" />
|
|
34
34
|
</slot>
|
|
35
35
|
</ContextMenuItemIndicator>
|
|
36
36
|
</span>
|
|
@@ -16,6 +16,6 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
16
16
|
<ContextMenuSeparator
|
|
17
17
|
data-slot="context-menu-separator"
|
|
18
18
|
v-bind="delegatedProps"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('bg-border -mx-1 my-1 h-px', props.class)"
|
|
20
20
|
/>
|
|
21
21
|
</template>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<span
|
|
12
12
|
data-slot="context-menu-shortcut"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('text-muted-foreground ml-auto text-xs tracking-widest', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</span>
|
|
@@ -22,7 +22,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
22
22
|
v-bind="forwarded"
|
|
23
23
|
:class="
|
|
24
24
|
cn(
|
|
25
|
-
'
|
|
25
|
+
'bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',
|
|
26
26
|
props.class,
|
|
27
27
|
)
|
|
28
28
|
"
|
|
@@ -22,11 +22,11 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
22
22
|
:data-inset="inset ? '' : undefined"
|
|
23
23
|
v-bind="forwardedProps"
|
|
24
24
|
:class="cn(
|
|
25
|
-
'
|
|
25
|
+
'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
26
26
|
props.class,
|
|
27
27
|
)"
|
|
28
28
|
>
|
|
29
29
|
<slot />
|
|
30
|
-
<ChevronRight class="
|
|
30
|
+
<ChevronRight class="ml-auto" />
|
|
31
31
|
</ContextMenuSubTrigger>
|
|
32
32
|
</template>
|
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogContentEmits, DialogContentProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { X } from "lucide-vue-next"
|
|
2
|
+
import type { DialogContentEmits, DialogContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { X } from "lucide-vue-next"
|
|
6
6
|
import {
|
|
7
7
|
DialogClose,
|
|
8
8
|
DialogContent,
|
|
9
9
|
DialogPortal,
|
|
10
10
|
useForwardPropsEmits,
|
|
11
|
-
} from "reka-ui"
|
|
12
|
-
import { cn } from "@/lib/utils"
|
|
13
|
-
import DialogOverlay from "./DialogOverlay.vue"
|
|
11
|
+
} from "reka-ui"
|
|
12
|
+
import { cn } from "@/lib/utils"
|
|
13
|
+
import DialogOverlay from "./DialogOverlay.vue"
|
|
14
14
|
|
|
15
15
|
defineOptions({
|
|
16
16
|
inheritAttrs: false,
|
|
17
|
-
})
|
|
17
|
+
})
|
|
18
18
|
|
|
19
|
-
const props = withDefaults(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
showCloseButton?: boolean;
|
|
24
|
-
}
|
|
25
|
-
>(),
|
|
26
|
-
{
|
|
27
|
-
showCloseButton: true,
|
|
28
|
-
},
|
|
29
|
-
);
|
|
30
|
-
const emits = defineEmits<DialogContentEmits>();
|
|
19
|
+
const props = withDefaults(defineProps<DialogContentProps & { class?: HTMLAttributes["class"], showCloseButton?: boolean }>(), {
|
|
20
|
+
showCloseButton: true,
|
|
21
|
+
})
|
|
22
|
+
const emits = defineEmits<DialogContentEmits>()
|
|
31
23
|
|
|
32
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
24
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
33
25
|
|
|
34
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
26
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
35
27
|
</script>
|
|
36
28
|
|
|
37
29
|
<template>
|
|
@@ -42,20 +34,19 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
42
34
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
43
35
|
:class="
|
|
44
36
|
cn(
|
|
45
|
-
'
|
|
37
|
+
'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',
|
|
46
38
|
props.class,
|
|
47
|
-
)
|
|
48
|
-
"
|
|
39
|
+
)"
|
|
49
40
|
>
|
|
50
41
|
<slot />
|
|
51
42
|
|
|
52
43
|
<DialogClose
|
|
53
44
|
v-if="showCloseButton"
|
|
54
45
|
data-slot="dialog-close"
|
|
55
|
-
class="
|
|
46
|
+
class="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
56
47
|
>
|
|
57
48
|
<X />
|
|
58
|
-
<span class="
|
|
49
|
+
<span class="sr-only">Close</span>
|
|
59
50
|
</DialogClose>
|
|
60
51
|
</DialogContent>
|
|
61
52
|
</DialogPortal>
|
|
@@ -16,7 +16,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
<DialogDescription
|
|
17
17
|
data-slot="dialog-description"
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('text-muted-foreground text-sm', props.class)"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
22
22
|
</DialogDescription>
|
|
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<{
|
|
|
15
15
|
<template>
|
|
16
16
|
<div
|
|
17
17
|
data-slot="dialog-footer"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
<DialogClose v-if="showCloseButton" as-child>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<div
|
|
12
12
|
data-slot="dialog-header"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</div>
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<DialogOverlay
|
|
15
15
|
data-slot="dialog-overlay"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('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', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</DialogOverlay>
|
|
@@ -27,12 +27,12 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
27
27
|
<template>
|
|
28
28
|
<DialogPortal>
|
|
29
29
|
<DialogOverlay
|
|
30
|
-
class="
|
|
30
|
+
class="fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
31
31
|
>
|
|
32
32
|
<DialogContent
|
|
33
33
|
:class="
|
|
34
34
|
cn(
|
|
35
|
-
'
|
|
35
|
+
'relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full',
|
|
36
36
|
props.class,
|
|
37
37
|
)
|
|
38
38
|
"
|
|
@@ -48,10 +48,10 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
48
48
|
<slot />
|
|
49
49
|
|
|
50
50
|
<DialogClose
|
|
51
|
-
class="
|
|
51
|
+
class="absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary"
|
|
52
52
|
>
|
|
53
|
-
<X class="
|
|
54
|
-
<span class="
|
|
53
|
+
<X class="w-4 h-4" />
|
|
54
|
+
<span class="sr-only">Close</span>
|
|
55
55
|
</DialogClose>
|
|
56
56
|
</DialogContent>
|
|
57
57
|
</DialogOverlay>
|
|
@@ -16,7 +16,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
<DialogTitle
|
|
17
17
|
data-slot="dialog-title"
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('text-lg leading-none font-semibold', props.class)"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
22
22
|
</DialogTitle>
|
|
@@ -23,15 +23,15 @@ const forwarded = useForwardPropsEmits(props, emits)
|
|
|
23
23
|
data-slot="drawer-content"
|
|
24
24
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
25
25
|
:class="cn(
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
26
|
+
'group/drawer-content bg-background fixed z-50 flex h-auto flex-col',
|
|
27
|
+
'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg',
|
|
28
|
+
'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg',
|
|
29
|
+
'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm',
|
|
30
|
+
'data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm',
|
|
31
31
|
props.class,
|
|
32
32
|
)"
|
|
33
33
|
>
|
|
34
|
-
<div class="
|
|
34
|
+
<div class="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
|
|
35
35
|
<slot />
|
|
36
36
|
</DrawerContent>
|
|
37
37
|
</DrawerPortal>
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<DrawerDescription
|
|
15
15
|
data-slot="drawer-description"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('text-muted-foreground text-sm', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</DrawerDescription>
|
|
@@ -14,6 +14,6 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<DrawerOverlay
|
|
15
15
|
data-slot="drawer-overlay"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('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', props.class)"
|
|
18
18
|
/>
|
|
19
19
|
</template>
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<DrawerTitle
|
|
15
15
|
data-slot="drawer-title"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('text-foreground font-semibold', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</DrawerTitle>
|
|
@@ -23,14 +23,14 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
23
23
|
data-slot="dropdown-menu-checkbox-item"
|
|
24
24
|
v-bind="forwarded"
|
|
25
25
|
:class=" cn(
|
|
26
|
-
'
|
|
26
|
+
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
27
27
|
props.class,
|
|
28
28
|
)"
|
|
29
29
|
>
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
31
31
|
<DropdownMenuItemIndicator>
|
|
32
32
|
<slot name="indicator-icon">
|
|
33
|
-
<Check class="
|
|
33
|
+
<Check class="size-4" />
|
|
34
34
|
</slot>
|
|
35
35
|
</DropdownMenuItemIndicator>
|
|
36
36
|
</span>
|
|
@@ -31,7 +31,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
31
31
|
<DropdownMenuContent
|
|
32
32
|
data-slot="dropdown-menu-content"
|
|
33
33
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
34
|
-
:class="cn('
|
|
34
|
+
:class="cn('bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md', props.class)"
|
|
35
35
|
>
|
|
36
36
|
<slot />
|
|
37
37
|
</DropdownMenuContent>
|
|
@@ -24,7 +24,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
24
24
|
:data-inset="inset ? '' : undefined"
|
|
25
25
|
:data-variant="variant"
|
|
26
26
|
v-bind="forwardedProps"
|
|
27
|
-
:class="cn('
|
|
27
|
+
:class="cn('focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=\'text-\'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
28
28
|
>
|
|
29
29
|
<slot />
|
|
30
30
|
</DropdownMenuItem>
|
|
@@ -16,7 +16,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
data-slot="dropdown-menu-label"
|
|
17
17
|
:data-inset="inset ? '' : undefined"
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', props.class)"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
22
22
|
</DropdownMenuLabel>
|
|
@@ -24,14 +24,14 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
24
24
|
data-slot="dropdown-menu-radio-item"
|
|
25
25
|
v-bind="forwarded"
|
|
26
26
|
:class="cn(
|
|
27
|
-
'
|
|
27
|
+
'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
28
28
|
props.class,
|
|
29
29
|
)"
|
|
30
30
|
>
|
|
31
|
-
<span class="
|
|
31
|
+
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
32
32
|
<DropdownMenuItemIndicator>
|
|
33
33
|
<slot name="indicator-icon">
|
|
34
|
-
<Circle class="
|
|
34
|
+
<Circle class="size-2 fill-current" />
|
|
35
35
|
</slot>
|
|
36
36
|
</DropdownMenuItemIndicator>
|
|
37
37
|
</span>
|
|
@@ -18,6 +18,6 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
18
18
|
<DropdownMenuSeparator
|
|
19
19
|
data-slot="dropdown-menu-separator"
|
|
20
20
|
v-bind="delegatedProps"
|
|
21
|
-
:class="cn('
|
|
21
|
+
:class="cn('bg-border -mx-1 my-1 h-px', props.class)"
|
|
22
22
|
/>
|
|
23
23
|
</template>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<span
|
|
12
12
|
data-slot="dropdown-menu-shortcut"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('text-muted-foreground ml-auto text-xs tracking-widest', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</span>
|
|
@@ -20,7 +20,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
20
20
|
<DropdownMenuSubContent
|
|
21
21
|
data-slot="dropdown-menu-sub-content"
|
|
22
22
|
v-bind="forwarded"
|
|
23
|
-
:class="cn('
|
|
23
|
+
:class="cn('bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg', props.class)"
|
|
24
24
|
>
|
|
25
25
|
<slot />
|
|
26
26
|
</DropdownMenuSubContent>
|
|
@@ -21,11 +21,11 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
21
21
|
v-bind="forwardedProps"
|
|
22
22
|
:data-inset="inset ? '' : undefined"
|
|
23
23
|
:class="cn(
|
|
24
|
-
'
|
|
24
|
+
'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4 data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=\'text-\'])]:text-muted-foreground',
|
|
25
25
|
props.class,
|
|
26
26
|
)"
|
|
27
27
|
>
|
|
28
28
|
<slot />
|
|
29
|
-
<ChevronRight class="
|
|
29
|
+
<ChevronRight class="ml-auto size-4" />
|
|
30
30
|
</DropdownMenuSubTrigger>
|
|
31
31
|
</template>
|
|
@@ -11,7 +11,7 @@ const props = defineProps<{
|
|
|
11
11
|
<div
|
|
12
12
|
data-slot="empty"
|
|
13
13
|
:class="cn(
|
|
14
|
-
'
|
|
14
|
+
'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12',
|
|
15
15
|
props.class,
|
|
16
16
|
)"
|
|
17
17
|
>
|
|
@@ -11,7 +11,7 @@ const props = defineProps<{
|
|
|
11
11
|
<div
|
|
12
12
|
data-slot="empty-content"
|
|
13
13
|
:class="cn(
|
|
14
|
-
'
|
|
14
|
+
'flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm',
|
|
15
15
|
props.class,
|
|
16
16
|
)"
|
|
17
17
|
>
|
|
@@ -11,8 +11,8 @@ defineProps<{
|
|
|
11
11
|
<p
|
|
12
12
|
data-slot="empty-description"
|
|
13
13
|
:class="cn(
|
|
14
|
-
'
|
|
15
|
-
$attrs.class ?? '
|
|
14
|
+
'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',
|
|
15
|
+
$attrs.class ?? '',
|
|
16
16
|
)"
|
|
17
17
|
>
|
|
18
18
|
<slot />
|
|
@@ -11,7 +11,7 @@ const props = defineProps<{
|
|
|
11
11
|
<div
|
|
12
12
|
data-slot="field-content"
|
|
13
13
|
:class="cn(
|
|
14
|
-
'
|
|
14
|
+
'group/field-content flex flex-1 flex-col gap-1.5 leading-snug',
|
|
15
15
|
props.class,
|
|
16
16
|
)"
|
|
17
17
|
>
|
|
@@ -11,9 +11,9 @@ const props = defineProps<{
|
|
|
11
11
|
<p
|
|
12
12
|
data-slot="field-description"
|
|
13
13
|
:class="cn(
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
14
|
+
'text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance',
|
|
15
|
+
'last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5',
|
|
16
|
+
'[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
|
|
17
17
|
props.class,
|
|
18
18
|
)"
|
|
19
19
|
>
|
|
@@ -36,7 +36,7 @@ const content = computed(() => {
|
|
|
36
36
|
v-if="$slots.default || content"
|
|
37
37
|
role="alert"
|
|
38
38
|
data-slot="field-error"
|
|
39
|
-
:class="cn('
|
|
39
|
+
:class="cn('text-destructive text-sm font-normal', props.class)"
|
|
40
40
|
>
|
|
41
41
|
<slot v-if="$slots.default" />
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ const content = computed(() => {
|
|
|
44
44
|
{{ content }}
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
|
-
<ul v-else-if="Array.isArray(content)" class="
|
|
47
|
+
<ul v-else-if="Array.isArray(content)" class="ml-4 flex list-disc flex-col gap-1">
|
|
48
48
|
<li v-for="(error, index) in content" :key="index">
|
|
49
49
|
{{ error }}
|
|
50
50
|
</li>
|