@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
|
@@ -17,7 +17,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
18
|
:orientation="props.orientation"
|
|
19
19
|
:class="cn(
|
|
20
|
-
'
|
|
20
|
+
'bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto',
|
|
21
21
|
props.class,
|
|
22
22
|
)"
|
|
23
23
|
/>
|
|
@@ -22,7 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
22
22
|
:data-orientation="props.orientation"
|
|
23
23
|
:as="as"
|
|
24
24
|
:as-child="asChild"
|
|
25
|
-
:class="cn('
|
|
25
|
+
:class="cn('bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
26
26
|
>
|
|
27
27
|
<slot />
|
|
28
28
|
</Primitive>
|
|
@@ -44,13 +44,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
44
44
|
|
|
45
45
|
<template>
|
|
46
46
|
<DefineMonthTemplate v-slot="{ date }">
|
|
47
|
-
<div class="
|
|
48
|
-
<div class="
|
|
49
|
-
<div class="
|
|
47
|
+
<div class="**:data-[slot=native-select-icon]:right-1">
|
|
48
|
+
<div class="relative">
|
|
49
|
+
<div class="absolute inset-0 flex h-full items-center text-sm pl-2 pointer-events-none">
|
|
50
50
|
{{ formatter.custom(toDate(date), { month: 'short' }) }}
|
|
51
51
|
</div>
|
|
52
52
|
<NativeSelect
|
|
53
|
-
class="
|
|
53
|
+
class="text-xs h-8 pr-6 pl-2 text-transparent relative"
|
|
54
54
|
@change="(e: Event) => {
|
|
55
55
|
placeholder = placeholder.set({
|
|
56
56
|
month: Number((e?.target as any)?.value),
|
|
@@ -66,13 +66,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
66
66
|
</DefineMonthTemplate>
|
|
67
67
|
|
|
68
68
|
<DefineYearTemplate v-slot="{ date }">
|
|
69
|
-
<div class="
|
|
70
|
-
<div class="
|
|
71
|
-
<div class="
|
|
69
|
+
<div class="**:data-[slot=native-select-icon]:right-1">
|
|
70
|
+
<div class="relative">
|
|
71
|
+
<div class="absolute inset-0 flex h-full items-center text-sm pl-2 pointer-events-none">
|
|
72
72
|
{{ formatter.custom(toDate(date), { year: 'numeric' }) }}
|
|
73
73
|
</div>
|
|
74
74
|
<NativeSelect
|
|
75
|
-
class="
|
|
75
|
+
class="text-xs h-8 pr-6 pl-2 text-transparent relative"
|
|
76
76
|
@change="(e: Event) => {
|
|
77
77
|
placeholder = placeholder.set({
|
|
78
78
|
year: Number((e?.target as any)?.value),
|
|
@@ -92,10 +92,10 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
92
92
|
v-bind="forwarded"
|
|
93
93
|
v-model:placeholder="placeholder"
|
|
94
94
|
data-slot="calendar"
|
|
95
|
-
:class="cn('
|
|
95
|
+
:class="cn('p-3', props.class)"
|
|
96
96
|
>
|
|
97
|
-
<CalendarHeader class="
|
|
98
|
-
<nav class="
|
|
97
|
+
<CalendarHeader class="pt-0">
|
|
98
|
+
<nav class="flex items-center gap-1 absolute top-0 inset-x-0 justify-between">
|
|
99
99
|
<CalendarPrevButton>
|
|
100
100
|
<slot name="calendar-prev-icon" />
|
|
101
101
|
</CalendarPrevButton>
|
|
@@ -106,19 +106,19 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
106
106
|
|
|
107
107
|
<slot name="calendar-heading" :date="date" :month="ReuseMonthTemplate" :year="ReuseYearTemplate">
|
|
108
108
|
<template v-if="layout === 'month-and-year'">
|
|
109
|
-
<div class="
|
|
109
|
+
<div class="flex items-center justify-center gap-1">
|
|
110
110
|
<ReuseMonthTemplate :date="date" />
|
|
111
111
|
<ReuseYearTemplate :date="date" />
|
|
112
112
|
</div>
|
|
113
113
|
</template>
|
|
114
114
|
<template v-else-if="layout === 'month-only'">
|
|
115
|
-
<div class="
|
|
115
|
+
<div class="flex items-center justify-center gap-1">
|
|
116
116
|
<ReuseMonthTemplate :date="date" />
|
|
117
117
|
{{ formatter.custom(toDate(date), { year: 'numeric' }) }}
|
|
118
118
|
</div>
|
|
119
119
|
</template>
|
|
120
120
|
<template v-else-if="layout === 'year-only'">
|
|
121
|
-
<div class="
|
|
121
|
+
<div class="flex items-center justify-center gap-1">
|
|
122
122
|
{{ formatter.custom(toDate(date), { month: 'short' }) }}
|
|
123
123
|
<ReuseYearTemplate :date="date" />
|
|
124
124
|
</div>
|
|
@@ -129,7 +129,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
129
129
|
</slot>
|
|
130
130
|
</CalendarHeader>
|
|
131
131
|
|
|
132
|
-
<div class="
|
|
132
|
+
<div class="flex flex-col gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0">
|
|
133
133
|
<CalendarGrid v-for="month in grid" :key="month.value.toString()">
|
|
134
134
|
<CalendarGridHead>
|
|
135
135
|
<CalendarGridRow>
|
|
@@ -141,7 +141,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
141
141
|
</CalendarGridRow>
|
|
142
142
|
</CalendarGridHead>
|
|
143
143
|
<CalendarGridBody>
|
|
144
|
-
<CalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class="
|
|
144
|
+
<CalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class="mt-2 w-full">
|
|
145
145
|
<CalendarCell
|
|
146
146
|
v-for="weekDate in weekDates"
|
|
147
147
|
:key="weekDate.toString()"
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<CalendarCell
|
|
17
17
|
data-slot="calendar-cell"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('relative p-0 text-center text-sm focus-within:relative focus-within:z-20 flex-1 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -20,16 +20,16 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
20
20
|
data-slot="calendar-cell-trigger"
|
|
21
21
|
:class="cn(
|
|
22
22
|
buttonVariants({ variant: 'ghost' }),
|
|
23
|
-
'
|
|
24
|
-
'
|
|
23
|
+
'size-8 p-0 font-normal aria-selected:opacity-100 cursor-default',
|
|
24
|
+
'[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground',
|
|
25
25
|
// Selected
|
|
26
|
-
'
|
|
26
|
+
'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground',
|
|
27
27
|
// Disabled
|
|
28
|
-
'
|
|
28
|
+
'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
|
|
29
29
|
// Unavailable
|
|
30
|
-
'
|
|
30
|
+
'data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through',
|
|
31
31
|
// Outside months
|
|
32
|
-
'
|
|
32
|
+
'data-[outside-view]:text-muted-foreground',
|
|
33
33
|
props.class,
|
|
34
34
|
)"
|
|
35
35
|
v-bind="forwardedProps"
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<CalendarGrid
|
|
17
17
|
data-slot="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
|
<CalendarGridRow
|
|
17
17
|
data-slot="calendar-grid-row"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex', props.class)" v-bind="forwardedProps"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
</CalendarGridRow>
|
|
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
15
15
|
<template>
|
|
16
16
|
<CalendarHeadCell
|
|
17
17
|
data-slot="calendar-head-cell"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem]', 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
|
<CalendarHeader
|
|
17
17
|
data-slot="calendar-header"
|
|
18
|
-
:class="cn('
|
|
18
|
+
:class="cn('flex justify-center pt-1 relative items-center w-full px-8', props.class)"
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
@@ -20,7 +20,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
20
20
|
<CalendarHeading
|
|
21
21
|
v-slot="{ headingValue }"
|
|
22
22
|
data-slot="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,13 +19,13 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
19
19
|
data-slot="calendar-next-button"
|
|
20
20
|
:class="cn(
|
|
21
21
|
buttonVariants({ variant: 'outline' }),
|
|
22
|
-
'
|
|
22
|
+
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
23
23
|
props.class,
|
|
24
24
|
)"
|
|
25
25
|
v-bind="forwardedProps"
|
|
26
26
|
>
|
|
27
27
|
<slot>
|
|
28
|
-
<ChevronRight class="
|
|
28
|
+
<ChevronRight class="size-4" />
|
|
29
29
|
</slot>
|
|
30
30
|
</CalendarNext>
|
|
31
31
|
</template>
|
|
@@ -19,13 +19,13 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
19
19
|
data-slot="calendar-prev-button"
|
|
20
20
|
:class="cn(
|
|
21
21
|
buttonVariants({ variant: 'outline' }),
|
|
22
|
-
'
|
|
22
|
+
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
23
23
|
props.class,
|
|
24
24
|
)"
|
|
25
25
|
v-bind="forwardedProps"
|
|
26
26
|
>
|
|
27
27
|
<slot>
|
|
28
|
-
<ChevronLeft class="
|
|
28
|
+
<ChevronLeft class="size-4" />
|
|
29
29
|
</slot>
|
|
30
30
|
</CalendarPrev>
|
|
31
31
|
</template>
|
|
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|
|
12
12
|
data-slot="card"
|
|
13
13
|
:class="
|
|
14
14
|
cn(
|
|
15
|
-
'
|
|
15
|
+
'bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm',
|
|
16
16
|
props.class,
|
|
17
17
|
)
|
|
18
18
|
"
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<div
|
|
12
12
|
data-slot="card-action"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</div>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<div
|
|
12
12
|
data-slot="card-header"
|
|
13
|
-
:class="cn('
|
|
13
|
+
:class="cn('@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</div>
|
|
@@ -16,13 +16,13 @@ const { carouselRef, orientation } = useCarousel()
|
|
|
16
16
|
<div
|
|
17
17
|
ref="carouselRef"
|
|
18
18
|
data-slot="carousel-content"
|
|
19
|
-
class="
|
|
19
|
+
class="overflow-hidden"
|
|
20
20
|
>
|
|
21
21
|
<div
|
|
22
22
|
:class="
|
|
23
23
|
cn(
|
|
24
|
-
'
|
|
25
|
-
orientation === 'horizontal' ? '
|
|
24
|
+
'flex',
|
|
25
|
+
orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col',
|
|
26
26
|
props.class,
|
|
27
27
|
)"
|
|
28
28
|
v-bind="$attrs"
|
|
@@ -14,8 +14,8 @@ const { orientation } = useCarousel()
|
|
|
14
14
|
role="group"
|
|
15
15
|
aria-roledescription="slide"
|
|
16
16
|
:class="cn(
|
|
17
|
-
'
|
|
18
|
-
orientation === 'horizontal' ? '
|
|
17
|
+
'min-w-0 shrink-0 grow-0 basis-full',
|
|
18
|
+
orientation === 'horizontal' ? 'pl-4' : 'pt-4',
|
|
19
19
|
props.class,
|
|
20
20
|
)"
|
|
21
21
|
>
|
|
@@ -23,10 +23,10 @@ const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|
|
23
23
|
data-slot="carousel-next"
|
|
24
24
|
:disabled="!canScrollNext"
|
|
25
25
|
:class="cn(
|
|
26
|
-
'
|
|
26
|
+
'absolute size-8 rounded-full',
|
|
27
27
|
orientation === 'horizontal'
|
|
28
|
-
? '
|
|
29
|
-
: '
|
|
28
|
+
? 'top-1/2 -right-12 -translate-y-1/2'
|
|
29
|
+
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
30
30
|
props.class,
|
|
31
31
|
)"
|
|
32
32
|
:variant="variant"
|
|
@@ -35,7 +35,7 @@ const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|
|
35
35
|
>
|
|
36
36
|
<slot>
|
|
37
37
|
<ArrowRight />
|
|
38
|
-
<span class="
|
|
38
|
+
<span class="sr-only">Next Slide</span>
|
|
39
39
|
</slot>
|
|
40
40
|
</Button>
|
|
41
41
|
</template>
|
|
@@ -23,10 +23,10 @@ const { orientation, canScrollPrev, scrollPrev } = useCarousel()
|
|
|
23
23
|
data-slot="carousel-previous"
|
|
24
24
|
:disabled="!canScrollPrev"
|
|
25
25
|
:class="cn(
|
|
26
|
-
'
|
|
26
|
+
'absolute size-8 rounded-full',
|
|
27
27
|
orientation === 'horizontal'
|
|
28
|
-
? '
|
|
29
|
-
: '
|
|
28
|
+
? 'top-1/2 -left-12 -translate-y-1/2'
|
|
29
|
+
: '-top-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
30
30
|
props.class,
|
|
31
31
|
)"
|
|
32
32
|
:variant="variant"
|
|
@@ -35,7 +35,7 @@ const { orientation, canScrollPrev, scrollPrev } = useCarousel()
|
|
|
35
35
|
>
|
|
36
36
|
<slot>
|
|
37
37
|
<ArrowLeft />
|
|
38
|
-
<span class="
|
|
38
|
+
<span class="sr-only">Previous Slide</span>
|
|
39
39
|
</slot>
|
|
40
40
|
</Button>
|
|
41
41
|
</template>
|
|
@@ -20,15 +20,15 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
20
20
|
data-slot="checkbox"
|
|
21
21
|
v-bind="forwarded"
|
|
22
22
|
:class="
|
|
23
|
-
cn('
|
|
23
|
+
cn('peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-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 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
24
24
|
props.class)"
|
|
25
25
|
>
|
|
26
26
|
<CheckboxIndicator
|
|
27
27
|
data-slot="checkbox-indicator"
|
|
28
|
-
class="
|
|
28
|
+
class="grid place-content-center text-current transition-none"
|
|
29
29
|
>
|
|
30
30
|
<slot v-bind="slotProps">
|
|
31
|
-
<Check class="
|
|
31
|
+
<Check class="size-3.5" />
|
|
32
32
|
</slot>
|
|
33
33
|
</CheckboxIndicator>
|
|
34
34
|
</CheckboxRoot>
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<ComboboxEmpty
|
|
15
15
|
data-slot="combobox-empty"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
|
-
:class="cn('
|
|
17
|
+
:class="cn('py-6 text-center text-sm', props.class)"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
20
20
|
</ComboboxEmpty>
|
|
@@ -17,9 +17,9 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
17
17
|
<ComboboxGroup
|
|
18
18
|
data-slot="combobox-group"
|
|
19
19
|
v-bind="delegatedProps"
|
|
20
|
-
:class="cn('
|
|
20
|
+
:class="cn('overflow-hidden p-1 text-foreground', props.class)"
|
|
21
21
|
>
|
|
22
|
-
<ComboboxLabel v-if="heading" class="
|
|
22
|
+
<ComboboxLabel v-if="heading" class="px-2 py-1.5 text-xs font-medium text-muted-foreground">
|
|
23
23
|
{{ heading }}
|
|
24
24
|
</ComboboxLabel>
|
|
25
25
|
<slot />
|
|
@@ -24,13 +24,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
24
24
|
<template>
|
|
25
25
|
<div
|
|
26
26
|
data-slot="command-input-wrapper"
|
|
27
|
-
class="
|
|
27
|
+
class="flex h-9 items-center gap-2 border-b px-3"
|
|
28
28
|
>
|
|
29
|
-
<SearchIcon class="
|
|
29
|
+
<SearchIcon class="size-4 shrink-0 opacity-50" />
|
|
30
30
|
<ComboboxInput
|
|
31
31
|
data-slot="command-input"
|
|
32
32
|
:class="cn(
|
|
33
|
-
'
|
|
33
|
+
'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
|
|
34
34
|
props.class,
|
|
35
35
|
)"
|
|
36
36
|
|
|
@@ -17,7 +17,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
17
17
|
<ComboboxItem
|
|
18
18
|
data-slot="combobox-item"
|
|
19
19
|
v-bind="forwarded"
|
|
20
|
-
:class="cn('
|
|
20
|
+
:class="cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
21
21
|
>
|
|
22
22
|
<slot />
|
|
23
23
|
</ComboboxItem>
|
|
@@ -16,7 +16,7 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
16
16
|
<ComboboxItemIndicator
|
|
17
17
|
data-slot="combobox-item-indicator"
|
|
18
18
|
v-bind="forwarded"
|
|
19
|
-
:class="cn('
|
|
19
|
+
:class="cn('ml-auto', props.class)"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
22
22
|
</ComboboxItemIndicator>
|
|
@@ -25,7 +25,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
25
25
|
<ComboboxContent
|
|
26
26
|
data-slot="combobox-list"
|
|
27
27
|
v-bind="{ ...$attrs, ...forwarded }"
|
|
28
|
-
:class="cn('
|
|
28
|
+
:class="cn('z-50 w-[200px] rounded-md border bg-popover text-popover-foreground origin-(--reka-combobox-content-transform-origin) overflow-hidden shadow-md outline-none 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', props.class)"
|
|
29
29
|
>
|
|
30
30
|
<slot />
|
|
31
31
|
</ComboboxContent>
|
|
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
14
14
|
<ComboboxSeparator
|
|
15
15
|
data-slot="combobox-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
|
</ComboboxSeparator>
|
|
@@ -16,7 +16,7 @@ const forwarded = useForwardProps(delegatedProps)
|
|
|
16
16
|
<ComboboxViewport
|
|
17
17
|
data-slot="combobox-viewport"
|
|
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
|
<slot />
|
|
22
22
|
</ComboboxViewport>
|
|
@@ -80,7 +80,7 @@ provideCommandContext({
|
|
|
80
80
|
<ListboxRoot
|
|
81
81
|
data-slot="command"
|
|
82
82
|
v-bind="forwarded"
|
|
83
|
-
:class="cn('
|
|
83
|
+
:class="cn('bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md', props.class)"
|
|
84
84
|
>
|
|
85
85
|
<slot />
|
|
86
86
|
</ListboxRoot>
|
|
@@ -18,8 +18,8 @@ const forwarded = useForwardPropsEmits(props, emits)
|
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
20
|
<Dialog v-slot="slotProps" v-bind="forwarded">
|
|
21
|
-
<DialogContent class="
|
|
22
|
-
<DialogHeader class="
|
|
21
|
+
<DialogContent class="overflow-hidden p-0 ">
|
|
22
|
+
<DialogHeader class="sr-only">
|
|
23
23
|
<DialogTitle>{{ title }}</DialogTitle>
|
|
24
24
|
<DialogDescription>{{ description }}</DialogDescription>
|
|
25
25
|
</DialogHeader>
|
|
@@ -20,7 +20,7 @@ const isRender = computed(() => !!filterState.search && filterState.filtered.cou
|
|
|
20
20
|
<Primitive
|
|
21
21
|
v-if="isRender"
|
|
22
22
|
data-slot="command-empty"
|
|
23
|
-
v-bind="delegatedProps" :class="cn('
|
|
23
|
+
v-bind="delegatedProps" :class="cn('py-6 text-center text-sm', props.class)"
|
|
24
24
|
>
|
|
25
25
|
<slot />
|
|
26
26
|
</Primitive>
|
|
@@ -34,10 +34,10 @@ onUnmounted(() => {
|
|
|
34
34
|
v-bind="delegatedProps"
|
|
35
35
|
:id="id"
|
|
36
36
|
data-slot="command-group"
|
|
37
|
-
:class="cn('
|
|
37
|
+
:class="cn('text-foreground overflow-hidden p-1', props.class)"
|
|
38
38
|
:hidden="isRender ? undefined : true"
|
|
39
39
|
>
|
|
40
|
-
<ListboxGroupLabel v-if="heading" data-slot="command-group-heading" class="
|
|
40
|
+
<ListboxGroupLabel v-if="heading" data-slot="command-group-heading" class="px-2 py-1.5 text-xs font-medium text-muted-foreground">
|
|
41
41
|
{{ heading }}
|
|
42
42
|
</ListboxGroupLabel>
|
|
43
43
|
<slot />
|
|
@@ -25,15 +25,15 @@ const { filterState } = useCommand()
|
|
|
25
25
|
<template>
|
|
26
26
|
<div
|
|
27
27
|
data-slot="command-input-wrapper"
|
|
28
|
-
class="
|
|
28
|
+
class="flex h-9 items-center gap-2 border-b px-3"
|
|
29
29
|
>
|
|
30
|
-
<Search class="
|
|
30
|
+
<Search class="size-4 shrink-0 opacity-50" />
|
|
31
31
|
<ListboxFilter
|
|
32
32
|
v-bind="{ ...forwardedProps, ...$attrs }"
|
|
33
33
|
v-model="filterState.search"
|
|
34
34
|
data-slot="command-input"
|
|
35
35
|
auto-focus
|
|
36
|
-
:class="cn('
|
|
36
|
+
:class="cn('placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
|
|
37
37
|
/>
|
|
38
38
|
</div>
|
|
39
39
|
</template>
|
|
@@ -66,7 +66,7 @@ onUnmounted(() => {
|
|
|
66
66
|
:id="id"
|
|
67
67
|
ref="itemRef"
|
|
68
68
|
data-slot="command-item"
|
|
69
|
-
:class="cn('
|
|
69
|
+
:class="cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
70
70
|
@select="() => {
|
|
71
71
|
filterState.search = ''
|
|
72
72
|
}"
|