@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
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<NavigationMenuItem
|
|
15
15
|
data-slot="navigation-menu-item"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('relative', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</NavigationMenuItem>
|
|
@@ -19,7 +19,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
19
19
|
<NavigationMenuLink
|
|
20
20
|
data-slot="navigation-menu-link"
|
|
21
21
|
v-bind="forwarded"
|
|
22
|
-
:class="cn('
|
|
22
|
+
:class="cn('data-active:focus:bg-accent data-active:hover:bg-accent data-active:bg-accent/50 data-active:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 [&_svg:not([class*=\'text-\'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
23
23
|
>
|
|
24
24
|
<slot />
|
|
25
25
|
</NavigationMenuLink>
|
|
@@ -18,7 +18,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
19
|
:class="
|
|
20
20
|
cn(
|
|
21
|
-
'
|
|
21
|
+
'group flex flex-1 list-none items-center justify-center gap-1',
|
|
22
22
|
props.class,
|
|
23
23
|
)
|
|
24
24
|
"
|
|
@@ -21,11 +21,11 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
21
21
|
<NavigationMenuTrigger
|
|
22
22
|
data-slot="navigation-menu-trigger"
|
|
23
23
|
v-bind="forwardedProps"
|
|
24
|
-
:class="cn(navigationMenuTriggerStyle(), '
|
|
24
|
+
:class="cn(navigationMenuTriggerStyle(), 'group', props.class)"
|
|
25
25
|
>
|
|
26
26
|
<slot />
|
|
27
27
|
<ChevronDown
|
|
28
|
-
class="
|
|
28
|
+
class="relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"
|
|
29
29
|
aria-hidden="true"
|
|
30
30
|
/>
|
|
31
31
|
</NavigationMenuTrigger>
|
|
@@ -16,13 +16,13 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<div class="
|
|
19
|
+
<div class="absolute top-full left-0 isolate z-50 flex justify-center">
|
|
20
20
|
<NavigationMenuViewport
|
|
21
21
|
data-slot="navigation-menu-viewport"
|
|
22
22
|
v-bind="forwardedProps"
|
|
23
23
|
:class="
|
|
24
24
|
cn(
|
|
25
|
-
'
|
|
25
|
+
'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--reka-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--reka-navigation-menu-viewport-width)] left-[var(--reka-navigation-menu-viewport-left)]',
|
|
26
26
|
props.class,
|
|
27
27
|
)
|
|
28
28
|
"
|
|
@@ -14,7 +14,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<NumberFieldRoot v-slot="slotProps" v-bind="forwarded" :class="cn('
|
|
17
|
+
<NumberFieldRoot v-slot="slotProps" v-bind="forwarded" :class="cn('grid gap-1.5', props.class)">
|
|
18
18
|
<slot v-bind="slotProps" />
|
|
19
19
|
</NumberFieldRoot>
|
|
20
20
|
</template>
|
|
@@ -8,7 +8,7 @@ const props = defineProps<{
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<div :class="cn('
|
|
11
|
+
<div :class="cn('relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5', props.class)">
|
|
12
12
|
<slot />
|
|
13
13
|
</div>
|
|
14
14
|
</template>
|
|
@@ -14,9 +14,9 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<NumberFieldDecrement data-slot="decrement" v-bind="forwarded" :class="cn('
|
|
17
|
+
<NumberFieldDecrement data-slot="decrement" v-bind="forwarded" :class="cn('absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20', props.class)">
|
|
18
18
|
<slot>
|
|
19
|
-
<Minus class="
|
|
19
|
+
<Minus class="h-4 w-4" />
|
|
20
20
|
</slot>
|
|
21
21
|
</NumberFieldDecrement>
|
|
22
22
|
</template>
|
|
@@ -14,9 +14,9 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<NumberFieldIncrement data-slot="increment" v-bind="forwarded" :class="cn('
|
|
17
|
+
<NumberFieldIncrement data-slot="increment" v-bind="forwarded" :class="cn('absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-3', props.class)">
|
|
18
18
|
<slot>
|
|
19
|
-
<Plus class="
|
|
19
|
+
<Plus class="h-4 w-4" />
|
|
20
20
|
</slot>
|
|
21
21
|
</NumberFieldIncrement>
|
|
22
22
|
</template>
|
|
@@ -11,6 +11,6 @@ const props = defineProps<{
|
|
|
11
11
|
<template>
|
|
12
12
|
<NumberFieldInput
|
|
13
13
|
data-slot="input"
|
|
14
|
-
:class="cn('
|
|
14
|
+
:class="cn('flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-sm text-center shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', props.class)"
|
|
15
15
|
/>
|
|
16
16
|
</template>
|
|
@@ -19,7 +19,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
19
19
|
v-slot="slotProps"
|
|
20
20
|
data-slot="pagination"
|
|
21
21
|
v-bind="forwarded"
|
|
22
|
-
:class="cn('
|
|
22
|
+
:class="cn('mx-auto flex w-full justify-center', props.class)"
|
|
23
23
|
>
|
|
24
24
|
<slot v-bind="slotProps" />
|
|
25
25
|
</PaginationRoot>
|
|
@@ -15,7 +15,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
15
15
|
v-slot="slotProps"
|
|
16
16
|
data-slot="pagination-content"
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex flex-row items-center gap-1', props.class)"
|
|
19
19
|
>
|
|
20
20
|
<slot v-bind="slotProps" />
|
|
21
21
|
</PaginationList>
|
|
@@ -15,11 +15,11 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
15
15
|
<PaginationEllipsis
|
|
16
16
|
data-slot="pagination-ellipsis"
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex size-9 items-center justify-center', props.class)"
|
|
19
19
|
>
|
|
20
20
|
<slot>
|
|
21
|
-
<MoreHorizontal class="
|
|
22
|
-
<span class="
|
|
21
|
+
<MoreHorizontal class="size-4" />
|
|
22
|
+
<span class="sr-only">More pages</span>
|
|
23
23
|
</slot>
|
|
24
24
|
</PaginationEllipsis>
|
|
25
25
|
</template>
|
|
@@ -22,12 +22,12 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
22
22
|
<template>
|
|
23
23
|
<PaginationFirst
|
|
24
24
|
data-slot="pagination-first"
|
|
25
|
-
:class="cn(buttonVariants({ variant: 'ghost', size }), '
|
|
25
|
+
:class="cn(buttonVariants({ variant: 'ghost', size }), 'gap-1 px-2.5 sm:pr-2.5', props.class)"
|
|
26
26
|
v-bind="forwarded"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
29
|
<ChevronLeftIcon />
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="hidden sm:block">First</span>
|
|
31
31
|
</slot>
|
|
32
32
|
</PaginationFirst>
|
|
33
33
|
</template>
|
|
@@ -22,11 +22,11 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
22
22
|
<template>
|
|
23
23
|
<PaginationLast
|
|
24
24
|
data-slot="pagination-last"
|
|
25
|
-
:class="cn(buttonVariants({ variant: 'ghost', size }), '
|
|
25
|
+
:class="cn(buttonVariants({ variant: 'ghost', size }), 'gap-1 px-2.5 sm:pr-2.5', props.class)"
|
|
26
26
|
v-bind="forwarded"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
|
-
<span class="
|
|
29
|
+
<span class="hidden sm:block">Last</span>
|
|
30
30
|
<ChevronRightIcon />
|
|
31
31
|
</slot>
|
|
32
32
|
</PaginationLast>
|
|
@@ -22,11 +22,11 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
22
22
|
<template>
|
|
23
23
|
<PaginationNext
|
|
24
24
|
data-slot="pagination-next"
|
|
25
|
-
:class="cn(buttonVariants({ variant: 'ghost', size }), '
|
|
25
|
+
:class="cn(buttonVariants({ variant: 'ghost', size }), 'gap-1 px-2.5 sm:pr-2.5', props.class)"
|
|
26
26
|
v-bind="forwarded"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
|
-
<span class="
|
|
29
|
+
<span class="hidden sm:block">Next</span>
|
|
30
30
|
<ChevronRightIcon />
|
|
31
31
|
</slot>
|
|
32
32
|
</PaginationNext>
|
|
@@ -22,12 +22,12 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
22
22
|
<template>
|
|
23
23
|
<PaginationPrev
|
|
24
24
|
data-slot="pagination-previous"
|
|
25
|
-
:class="cn(buttonVariants({ variant: 'ghost', size }), '
|
|
25
|
+
:class="cn(buttonVariants({ variant: 'ghost', size }), 'gap-1 px-2.5 sm:pr-2.5', props.class)"
|
|
26
26
|
v-bind="forwarded"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
29
|
<ChevronLeftIcon />
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="hidden sm:block">Previous</span>
|
|
31
31
|
</slot>
|
|
32
32
|
</PaginationPrev>
|
|
33
33
|
</template>
|
|
@@ -19,7 +19,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
19
19
|
<PinInputRoot
|
|
20
20
|
:otp="props.otp"
|
|
21
21
|
data-slot="pin-input"
|
|
22
|
-
v-bind="forwarded" :class="cn('
|
|
22
|
+
v-bind="forwarded" :class="cn('flex items-center gap-2 has-disabled:opacity-50 disabled:cursor-not-allowed', props.class)"
|
|
23
23
|
>
|
|
24
24
|
<slot />
|
|
25
25
|
</PinInputRoot>
|
|
@@ -14,7 +14,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
14
14
|
<Primitive
|
|
15
15
|
data-slot="pin-input-group"
|
|
16
16
|
v-bind="forwardedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('flex items-center', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</Primitive>
|
|
@@ -16,6 +16,6 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
<PinInputInput
|
|
17
17
|
data-slot="pin-input-slot"
|
|
18
18
|
v-bind="forwardedProps"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('border-input focus:border-ring focus:ring-ring/50 focus:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:focus:aria-invalid:ring-destructive/40 aria-invalid:border-destructive focus:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none text-center first:rounded-l-md first:border-l last:rounded-r-md focus:z-10 focus:ring-[3px]', props.class)"
|
|
20
20
|
/>
|
|
21
21
|
</template>
|
|
@@ -34,7 +34,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
34
34
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
35
35
|
:class="
|
|
36
36
|
cn(
|
|
37
|
-
'
|
|
37
|
+
'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 w-72 rounded-md border p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden',
|
|
38
38
|
props.class,
|
|
39
39
|
)
|
|
40
40
|
"
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ProgressRootProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import {
|
|
6
|
-
|
|
2
|
+
import type { ProgressRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import {
|
|
6
|
+
ProgressIndicator,
|
|
7
|
+
ProgressRoot,
|
|
8
|
+
} from "reka-ui"
|
|
9
|
+
import { cn } from "@/lib/utils"
|
|
7
10
|
|
|
8
11
|
const props = withDefaults(
|
|
9
12
|
defineProps<ProgressRootProps & { class?: HTMLAttributes["class"] }>(),
|
|
10
13
|
{
|
|
11
14
|
modelValue: 0,
|
|
12
15
|
},
|
|
13
|
-
)
|
|
16
|
+
)
|
|
14
17
|
|
|
15
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
18
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
16
19
|
</script>
|
|
17
20
|
|
|
18
21
|
<template>
|
|
@@ -21,14 +24,14 @@ const delegatedProps = reactiveOmit(props, "class");
|
|
|
21
24
|
v-bind="delegatedProps"
|
|
22
25
|
:class="
|
|
23
26
|
cn(
|
|
24
|
-
'
|
|
27
|
+
'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',
|
|
25
28
|
props.class,
|
|
26
29
|
)
|
|
27
30
|
"
|
|
28
31
|
>
|
|
29
32
|
<ProgressIndicator
|
|
30
33
|
data-slot="progress-indicator"
|
|
31
|
-
class="
|
|
34
|
+
class="bg-primary h-full w-full flex-1 transition-all"
|
|
32
35
|
:style="`transform: translateX(-${100 - (props.modelValue ?? 0)}%);`"
|
|
33
36
|
/>
|
|
34
37
|
</ProgressRoot>
|
|
@@ -17,7 +17,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
17
17
|
<RadioGroupRoot
|
|
18
18
|
v-slot="slotProps"
|
|
19
19
|
data-slot="radio-group"
|
|
20
|
-
:class="cn('
|
|
20
|
+
:class="cn('grid gap-3', props.class)"
|
|
21
21
|
v-bind="forwarded"
|
|
22
22
|
>
|
|
23
23
|
<slot v-bind="slotProps" />
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { RadioGroupItemProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { CircleIcon } from "lucide-vue-next"
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import type { RadioGroupItemProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CircleIcon } from "lucide-vue-next"
|
|
6
|
+
import {
|
|
7
|
+
RadioGroupIndicator,
|
|
8
|
+
RadioGroupItem,
|
|
9
|
+
useForwardProps,
|
|
10
|
+
} from "reka-ui"
|
|
11
|
+
import { cn } from "@/lib/utils"
|
|
8
12
|
|
|
9
|
-
const props = defineProps<
|
|
10
|
-
RadioGroupItemProps & { class?: HTMLAttributes["class"] }
|
|
11
|
-
>();
|
|
13
|
+
const props = defineProps<RadioGroupItemProps & { class?: HTMLAttributes["class"] }>()
|
|
12
14
|
|
|
13
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
15
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
14
16
|
|
|
15
|
-
const forwardedProps = useForwardProps(delegatedProps)
|
|
17
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
16
18
|
</script>
|
|
17
19
|
|
|
18
20
|
<template>
|
|
@@ -21,19 +23,17 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
21
23
|
v-bind="forwardedProps"
|
|
22
24
|
:class="
|
|
23
25
|
cn(
|
|
24
|
-
'
|
|
26
|
+
'border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
25
27
|
props.class,
|
|
26
28
|
)
|
|
27
29
|
"
|
|
28
30
|
>
|
|
29
31
|
<RadioGroupIndicator
|
|
30
32
|
data-slot="radio-group-indicator"
|
|
31
|
-
class="
|
|
33
|
+
class="relative flex items-center justify-center"
|
|
32
34
|
>
|
|
33
35
|
<slot>
|
|
34
|
-
<CircleIcon
|
|
35
|
-
class="tw:fill-primary tw:absolute tw:top-1/2 tw:left-1/2 tw:size-2 tw:-translate-x-1/2 tw:-translate-y-1/2"
|
|
36
|
-
/>
|
|
36
|
+
<CircleIcon class="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />
|
|
37
37
|
</slot>
|
|
38
38
|
</RadioGroupIndicator>
|
|
39
39
|
</RadioGroupItem>
|
|
@@ -19,19 +19,19 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
19
19
|
<RangeCalendarRoot
|
|
20
20
|
v-slot="{ grid, weekDays }"
|
|
21
21
|
data-slot="range-calendar"
|
|
22
|
-
:class="cn('
|
|
22
|
+
:class="cn('p-3', props.class)"
|
|
23
23
|
v-bind="forwarded"
|
|
24
24
|
>
|
|
25
25
|
<RangeCalendarHeader>
|
|
26
26
|
<RangeCalendarHeading />
|
|
27
27
|
|
|
28
|
-
<div class="
|
|
28
|
+
<div class="flex items-center gap-1">
|
|
29
29
|
<RangeCalendarPrevButton />
|
|
30
30
|
<RangeCalendarNextButton />
|
|
31
31
|
</div>
|
|
32
32
|
</RangeCalendarHeader>
|
|
33
33
|
|
|
34
|
-
<div class="
|
|
34
|
+
<div class="flex flex-col gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0">
|
|
35
35
|
<RangeCalendarGrid v-for="month in grid" :key="month.value.toString()">
|
|
36
36
|
<RangeCalendarGridHead>
|
|
37
37
|
<RangeCalendarGridRow>
|
|
@@ -43,7 +43,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
43
43
|
</RangeCalendarGridRow>
|
|
44
44
|
</RangeCalendarGridHead>
|
|
45
45
|
<RangeCalendarGridBody>
|
|
46
|
-
<RangeCalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class="
|
|
46
|
+
<RangeCalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class="mt-2 w-full">
|
|
47
47
|
<RangeCalendarCell
|
|
48
48
|
v-for="weekDate in weekDates"
|
|
49
49
|
:key="weekDate.toString()"
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<RangeCalendarCell
|
|
17
17
|
data-slot="range-calendar-cell"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:bg-accent first:[&:has([data-selected])]:rounded-l-md last:[&:has([data-selected])]:rounded-r-md [&:has([data-selected][data-selection-end])]:rounded-r-md [&:has([data-selected][data-selection-start])]:rounded-l-md', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -20,18 +20,18 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
20
20
|
data-slot="range-calendar-trigger"
|
|
21
21
|
:class="cn(
|
|
22
22
|
buttonVariants({ variant: 'ghost' }),
|
|
23
|
-
'
|
|
24
|
-
'
|
|
23
|
+
'h-8 w-8 p-0 font-normal data-[selected]:opacity-100',
|
|
24
|
+
'[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground',
|
|
25
25
|
// Selection Start
|
|
26
|
-
'
|
|
26
|
+
'data-[selection-start]:bg-primary data-[selection-start]:text-primary-foreground data-[selection-start]:hover:bg-primary data-[selection-start]:hover:text-primary-foreground data-[selection-start]:focus:bg-primary data-[selection-start]:focus:text-primary-foreground',
|
|
27
27
|
// Selection End
|
|
28
|
-
'
|
|
28
|
+
'data-[selection-end]:bg-primary data-[selection-end]:text-primary-foreground data-[selection-end]:hover:bg-primary data-[selection-end]:hover:text-primary-foreground data-[selection-end]:focus:bg-primary data-[selection-end]:focus:text-primary-foreground',
|
|
29
29
|
// Outside months
|
|
30
|
-
'
|
|
30
|
+
'data-[outside-view]:text-muted-foreground',
|
|
31
31
|
// Disabled
|
|
32
|
-
'
|
|
32
|
+
'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
|
|
33
33
|
// Unavailable
|
|
34
|
-
'
|
|
34
|
+
'data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through',
|
|
35
35
|
props.class,
|
|
36
36
|
)"
|
|
37
37
|
v-bind="forwardedProps"
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<RangeCalendarGrid
|
|
17
17
|
data-slot="range-calendar-grid"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('w-full border-collapse space-x-1', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<RangeCalendarGridRow
|
|
17
17
|
data-slot="range-calendar-grid-row"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex', props.class)" v-bind="forwardedProps"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
</RangeCalendarGridRow>
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<RangeCalendarHeadCell
|
|
17
17
|
data-slot="range-calendar-head-cell"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('w-8 rounded-md text-[0.8rem] font-normal text-muted-foreground', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<RangeCalendarHeader
|
|
17
17
|
data-slot="range-calendar-header"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex justify-center pt-1 relative items-center w-full', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -20,7 +20,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
20
20
|
<RangeCalendarHeading
|
|
21
21
|
v-slot="{ headingValue }"
|
|
22
22
|
data-slot="range-calendar-heading"
|
|
23
|
-
:class="cn('
|
|
23
|
+
:class="cn('text-sm font-medium', props.class)"
|
|
24
24
|
v-bind="forwardedProps"
|
|
25
25
|
>
|
|
26
26
|
<slot :heading-value>
|
|
@@ -19,14 +19,14 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
19
19
|
data-slot="range-calendar-next-button"
|
|
20
20
|
:class="cn(
|
|
21
21
|
buttonVariants({ variant: 'outline' }),
|
|
22
|
-
'
|
|
23
|
-
'
|
|
22
|
+
'absolute right-1',
|
|
23
|
+
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
24
24
|
props.class,
|
|
25
25
|
)"
|
|
26
26
|
v-bind="forwardedProps"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
|
-
<ChevronRight class="
|
|
29
|
+
<ChevronRight class="size-4" />
|
|
30
30
|
</slot>
|
|
31
31
|
</RangeCalendarNext>
|
|
32
32
|
</template>
|
|
@@ -19,14 +19,14 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
19
19
|
data-slot="range-calendar-prev-button"
|
|
20
20
|
:class="cn(
|
|
21
21
|
buttonVariants({ variant: 'outline' }),
|
|
22
|
-
'
|
|
23
|
-
'
|
|
22
|
+
'absolute left-1',
|
|
23
|
+
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
24
24
|
props.class,
|
|
25
25
|
)"
|
|
26
26
|
v-bind="forwardedProps"
|
|
27
27
|
>
|
|
28
28
|
<slot>
|
|
29
|
-
<ChevronLeft class="
|
|
29
|
+
<ChevronLeft class="size-4" />
|
|
30
30
|
</slot>
|
|
31
31
|
</RangeCalendarPrev>
|
|
32
32
|
</template>
|
|
@@ -17,12 +17,12 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
17
17
|
<SplitterResizeHandle
|
|
18
18
|
data-slot="resizable-handle"
|
|
19
19
|
v-bind="forwarded"
|
|
20
|
-
:class="cn('
|
|
20
|
+
:class="cn('bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90', props.class)"
|
|
21
21
|
>
|
|
22
22
|
<template v-if="props.withHandle">
|
|
23
|
-
<div class="
|
|
23
|
+
<div class="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
|
|
24
24
|
<slot>
|
|
25
|
-
<GripVertical class="
|
|
25
|
+
<GripVertical class="size-2.5" />
|
|
26
26
|
</slot>
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
@@ -18,7 +18,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
18
18
|
v-slot="slotProps"
|
|
19
19
|
data-slot="resizable-panel-group"
|
|
20
20
|
v-bind="forwarded"
|
|
21
|
-
:class="cn('
|
|
21
|
+
:class="cn('flex h-full w-full data-[orientation=vertical]:flex-col', props.class)"
|
|
22
22
|
>
|
|
23
23
|
<slot v-bind="slotProps" />
|
|
24
24
|
</SplitterGroup>
|
|
@@ -19,11 +19,11 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
19
19
|
<ScrollAreaRoot
|
|
20
20
|
data-slot="scroll-area"
|
|
21
21
|
v-bind="delegatedProps"
|
|
22
|
-
:class="cn('
|
|
22
|
+
:class="cn('relative', props.class)"
|
|
23
23
|
>
|
|
24
24
|
<ScrollAreaViewport
|
|
25
25
|
data-slot="scroll-area-viewport"
|
|
26
|
-
class="
|
|
26
|
+
class="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
|
|
27
27
|
>
|
|
28
28
|
<slot />
|
|
29
29
|
</ScrollAreaViewport>
|