@agrotools1/at-components 2.0.13 → 2.0.14-beta.1
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/accordion/Accordion.vue.js +30 -0
- package/dist/accordion/Accordion.vue2.js +4 -0
- package/dist/accordion/AccordionContent.vue.js +29 -0
- package/dist/accordion/AccordionContent.vue2.js +4 -0
- package/dist/accordion/AccordionItem.vue.js +29 -0
- package/dist/accordion/AccordionItem.vue2.js +4 -0
- package/dist/accordion/AccordionTrigger.vue.js +38 -0
- package/dist/accordion/AccordionTrigger.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialog.vue.js +22 -0
- package/dist/alert-dialog/AlertDialog.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogAction.vue.js +29 -0
- package/dist/alert-dialog/AlertDialogAction.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogCancel.vue.js +29 -0
- package/dist/alert-dialog/AlertDialogCancel.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogContent.vue.js +44 -0
- package/dist/alert-dialog/AlertDialogContent.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogDescription.vue.js +26 -0
- package/dist/alert-dialog/AlertDialogDescription.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogFooter.vue.js +25 -0
- package/dist/alert-dialog/AlertDialogFooter.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogHeader.vue.js +20 -0
- package/dist/alert-dialog/AlertDialogHeader.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogTitle.vue.js +26 -0
- package/dist/alert-dialog/AlertDialogTitle.vue2.js +4 -0
- package/dist/alert-dialog/AlertDialogTrigger.vue.js +21 -0
- package/dist/alert-dialog/AlertDialogTrigger.vue2.js +4 -0
- package/dist/assets/illustrations/renovabio/biomass.svg.js +16 -0
- package/dist/assets/illustrations/renovabio/volume.svg.js +16 -0
- package/dist/assets/illustrations/system/add-file.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-connection.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-download.svg.js +16 -0
- package/dist/assets/illustrations/system/cloud-upload.svg.js +16 -0
- package/dist/assets/illustrations/system/corrupted-file.svg.js +16 -0
- package/dist/assets/illustrations/system/dynamic-production.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-box.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +16 -0
- package/dist/assets/illustrations/system/empty-folder.svg.js +16 -0
- package/dist/assets/illustrations/system/empty.svg.js +16 -0
- package/dist/assets/illustrations/system/error-illustration.svg.js +16 -0
- package/dist/assets/illustrations/system/error.svg.js +16 -0
- package/dist/assets/illustrations/system/file-backup-2.svg.js +16 -0
- package/dist/assets/illustrations/system/file-backup.svg.js +16 -0
- package/dist/assets/illustrations/system/filtering-upload.svg.js +16 -0
- package/dist/assets/illustrations/system/flight.svg.js +16 -0
- package/dist/assets/illustrations/system/fly.svg.js +16 -0
- package/dist/assets/illustrations/system/movies.svg.js +16 -0
- package/dist/assets/illustrations/system/multimedia.svg.js +16 -0
- package/dist/assets/illustrations/system/notification-bell.svg.js +16 -0
- package/dist/assets/illustrations/system/page-2.svg.js +16 -0
- package/dist/assets/illustrations/system/page.svg.js +16 -0
- package/dist/assets/illustrations/system/photos.svg.js +16 -0
- package/dist/assets/illustrations/system/recycle-bin.svg.js +16 -0
- package/dist/assets/illustrations/system/rocket-launch.svg.js +16 -0
- package/dist/assets/illustrations/system/search-territory.svg.js +16 -0
- package/dist/assets/illustrations/system/signal.svg.js +16 -0
- package/dist/assets/illustrations/system/siren.svg.js +16 -0
- package/dist/assets/illustrations/system/wrong.svg.js +16 -0
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +17 -0
- package/dist/assets/illustrations/tools/agriculture.svg.js +16 -0
- package/dist/assets/illustrations/tools/alert-center.svg.js +16 -0
- package/dist/assets/illustrations/tools/area.svg.js +16 -0
- package/dist/assets/illustrations/tools/at-insights.svg.js +16 -0
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +16 -0
- package/dist/assets/illustrations/tools/credit.svg.js +16 -0
- package/dist/assets/illustrations/tools/deforestation.svg.js +16 -0
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +16 -0
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +16 -0
- package/dist/assets/illustrations/tools/extract.svg.js +16 -0
- package/dist/assets/illustrations/tools/farm.svg.js +16 -0
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +16 -0
- package/dist/assets/illustrations/tools/gix.svg.js +16 -0
- package/dist/assets/illustrations/tools/inapto.svg.js +16 -0
- package/dist/assets/illustrations/tools/insurance.svg.js +16 -0
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +16 -0
- package/dist/assets/illustrations/tools/lockdown.svg.js +16 -0
- package/dist/assets/illustrations/tools/map.svg.js +31 -0
- package/dist/assets/illustrations/tools/pasture.svg.js +16 -0
- package/dist/assets/illustrations/tools/rating-2.svg.js +16 -0
- package/dist/assets/illustrations/tools/rating.svg.js +16 -0
- package/dist/assets/illustrations/tools/recurrence.svg.js +16 -0
- package/dist/assets/illustrations/tools/refrigerators.svg.js +16 -0
- package/dist/assets/illustrations/tools/settings.svg.js +16 -0
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +16 -0
- package/dist/assets/illustrations/tools/soil-use.svg.js +16 -0
- package/dist/assets/illustrations/tools/storm.svg.js +16 -0
- package/dist/assets/illustrations/tools/territory-details.svg.js +16 -0
- package/dist/assets/illustrations/tools/timeline.svg.js +16 -0
- package/dist/avatar/Avatar.vue.js +37 -0
- package/dist/avatar/Avatar.vue2.js +4 -0
- package/dist/avatar/AvatarFallback.vue.js +30 -0
- package/dist/avatar/AvatarFallback.vue2.js +4 -0
- package/dist/avatar/AvatarImage.vue.js +24 -0
- package/dist/avatar/AvatarImage.vue2.js +4 -0
- package/dist/badge/Badge.vue.js +30 -0
- package/dist/badge/Badge.vue2.js +4 -0
- package/dist/badge/index.js +29 -0
- package/dist/breadcrumb/Breadcrumb.vue.js +20 -0
- package/dist/breadcrumb/Breadcrumb.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.js +20 -0
- package/dist/breadcrumb/BreadcrumbItem.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbLink.vue.js +35 -0
- package/dist/breadcrumb/BreadcrumbLink.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbList.vue.js +25 -0
- package/dist/breadcrumb/BreadcrumbList.vue2.js +4 -0
- package/dist/breadcrumb/BreadcrumbSeparator.vue.js +25 -0
- package/dist/breadcrumb/BreadcrumbSeparator.vue2.js +4 -0
- package/dist/button/Button.vue.js +31 -0
- package/dist/button/Button.vue2.js +4 -0
- package/dist/button/index.js +27 -0
- package/dist/calendar/Calendar.vue.js +216 -0
- package/dist/calendar/Calendar.vue2.js +4 -0
- package/dist/calendar/CalendarCell.vue.js +31 -0
- package/dist/calendar/CalendarCell.vue2.js +4 -0
- package/dist/calendar/CalendarCellTrigger.vue.js +43 -0
- package/dist/calendar/CalendarCellTrigger.vue2.js +4 -0
- package/dist/calendar/CalendarGrid.vue.js +27 -0
- package/dist/calendar/CalendarGrid.vue2.js +4 -0
- package/dist/calendar/CalendarGridBody.vue.js +21 -0
- package/dist/calendar/CalendarGridBody.vue2.js +4 -0
- package/dist/calendar/CalendarGridHead.vue.js +22 -0
- package/dist/calendar/CalendarGridHead.vue2.js +4 -0
- package/dist/calendar/CalendarGridRow.vue.js +27 -0
- package/dist/calendar/CalendarGridRow.vue2.js +4 -0
- package/dist/calendar/CalendarHeadCell.vue.js +27 -0
- package/dist/calendar/CalendarHeadCell.vue2.js +4 -0
- package/dist/calendar/CalendarHeader.vue.js +27 -0
- package/dist/calendar/CalendarHeader.vue2.js +4 -0
- package/dist/calendar/CalendarHeading.vue.js +34 -0
- package/dist/calendar/CalendarHeading.vue2.js +4 -0
- package/dist/calendar/CalendarNextButton.vue.js +37 -0
- package/dist/calendar/CalendarNextButton.vue2.js +4 -0
- package/dist/calendar/CalendarPrevButton.vue.js +37 -0
- package/dist/calendar/CalendarPrevButton.vue2.js +4 -0
- package/dist/card/Card.vue.js +51 -0
- package/dist/card/Card.vue2.js +4 -0
- package/dist/card/CardDescription.vue.js +33 -0
- package/dist/card/CardDescription.vue2.js +4 -0
- package/dist/card/CardTitle.vue.js +35 -0
- package/dist/card/CardTitle.vue2.js +4 -0
- package/dist/carousel/Carousel.vue.js +62 -0
- package/dist/carousel/Carousel.vue2.js +4 -0
- package/dist/carousel/CarouselContent.vue.js +28 -0
- package/dist/carousel/CarouselContent.vue2.js +4 -0
- package/dist/carousel/CarouselItem.vue.js +29 -0
- package/dist/carousel/CarouselItem.vue2.js +4 -0
- package/dist/carousel/CarouselNext.vue.js +44 -0
- package/dist/carousel/CarouselNext.vue2.js +4 -0
- package/dist/carousel/CarouselPrevious.vue.js +44 -0
- package/dist/carousel/CarouselPrevious.vue2.js +4 -0
- package/dist/carousel/useCarousel.js +48 -0
- package/dist/checkbox/Checkbox.vue.js +74 -0
- package/dist/checkbox/Checkbox.vue2.js +4 -0
- package/dist/combobox/Combobox.vue.js +38 -0
- package/dist/combobox/Combobox.vue2.js +4 -0
- package/dist/combobox/ComboboxAnchor.vue.js +27 -0
- package/dist/combobox/ComboboxAnchor.vue2.js +4 -0
- package/dist/combobox/ComboboxEmpty.vue.js +26 -0
- package/dist/combobox/ComboboxEmpty.vue2.js +4 -0
- package/dist/combobox/ComboboxGroup.vue.js +36 -0
- package/dist/combobox/ComboboxGroup.vue2.js +4 -0
- package/dist/combobox/ComboboxInput.vue.js +82 -0
- package/dist/combobox/ComboboxInput.vue2.js +4 -0
- package/dist/combobox/ComboboxItem.vue.js +33 -0
- package/dist/combobox/ComboboxItem.vue2.js +4 -0
- package/dist/combobox/ComboboxItemIndicator.vue.js +26 -0
- package/dist/combobox/ComboboxItemIndicator.vue2.js +4 -0
- package/dist/combobox/ComboboxList.vue.js +57 -0
- package/dist/combobox/ComboboxList.vue2.js +4 -0
- package/dist/combobox/ComboboxSeparator.vue.js +26 -0
- package/dist/combobox/ComboboxSeparator.vue2.js +4 -0
- package/dist/combobox/ComboboxViewport.vue.js +27 -0
- package/dist/combobox/ComboboxViewport.vue2.js +4 -0
- package/dist/command/Command.vue.js +102 -0
- package/dist/command/Command.vue2.js +4 -0
- package/dist/command/CommandDialog.vue.js +58 -0
- package/dist/command/CommandDialog.vue2.js +4 -0
- package/dist/command/CommandEmpty.vue.js +30 -0
- package/dist/command/CommandEmpty.vue2.js +4 -0
- package/dist/command/CommandGroup.vue.js +40 -0
- package/dist/command/CommandGroup.vue2.js +4 -0
- package/dist/command/CommandInput.vue.js +43 -0
- package/dist/command/CommandInput.vue2.js +4 -0
- package/dist/command/CommandItem.vue.js +51 -0
- package/dist/command/CommandItem.vue2.js +4 -0
- package/dist/command/CommandList.vue.js +28 -0
- package/dist/command/CommandList.vue2.js +4 -0
- package/dist/command/CommandSeparator.vue.js +28 -0
- package/dist/command/CommandSeparator.vue2.js +4 -0
- package/dist/command/CommandShortcut.vue.js +20 -0
- package/dist/command/CommandShortcut.vue2.js +4 -0
- package/dist/command/contexts.js +8 -0
- package/dist/composables/use-file-upload.js +146 -0
- package/dist/data-table/DataTable.vue.js +171 -0
- package/dist/data-table/DataTable.vue2.js +4 -0
- package/dist/data-table/DataTableColumnHeader.vue.js +33 -0
- package/dist/data-table/DataTableColumnHeader.vue2.js +4 -0
- package/dist/data-table/DataTablePagination.vue.js +56 -0
- package/dist/data-table/DataTablePagination.vue2.js +4 -0
- package/dist/date-picker/DatePicker.vue.js +104 -0
- package/dist/date-picker/DatePicker.vue2.js +4 -0
- package/dist/date-range-picker/DateRangePicker.vue.js +79 -0
- package/dist/date-range-picker/DateRangePicker.vue2.js +4 -0
- package/dist/dialog/Dialog.vue.js +23 -0
- package/dist/dialog/Dialog.vue2.js +4 -0
- package/dist/dialog/DialogBody.vue.js +20 -0
- package/dist/dialog/DialogBody.vue2.js +4 -0
- package/dist/dialog/DialogClose.vue.js +21 -0
- package/dist/dialog/DialogClose.vue2.js +4 -0
- package/dist/dialog/DialogContent.vue.js +50 -0
- package/dist/dialog/DialogContent.vue2.js +4 -0
- package/dist/dialog/DialogDescription.vue.js +26 -0
- package/dist/dialog/DialogDescription.vue2.js +4 -0
- package/dist/dialog/DialogFooter.vue.js +25 -0
- package/dist/dialog/DialogFooter.vue2.js +4 -0
- package/dist/dialog/DialogHeader.vue.js +20 -0
- package/dist/dialog/DialogHeader.vue2.js +4 -0
- package/dist/dialog/DialogOverlay.vue.js +30 -0
- package/dist/dialog/DialogOverlay.vue2.js +4 -0
- package/dist/dialog/DialogScrollContent.vue.js +58 -0
- package/dist/dialog/DialogScrollContent.vue2.js +4 -0
- package/dist/dialog/DialogTitle.vue.js +26 -0
- package/dist/dialog/DialogTitle.vue2.js +4 -0
- package/dist/dialog/DialogTrigger.vue.js +21 -0
- package/dist/dialog/DialogTrigger.vue2.js +4 -0
- package/dist/dialog/index.js +20 -0
- package/dist/dropdown-menu/DropdownMenu.vue.js +24 -0
- package/dist/dropdown-menu/DropdownMenu.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +42 -0
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +54 -0
- package/dist/dropdown-menu/DropdownMenuContent.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuGroup.vue.js +21 -0
- package/dist/dropdown-menu/DropdownMenuGroup.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuItem.vue.js +38 -0
- package/dist/dropdown-menu/DropdownMenuItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuLabel.vue.js +30 -0
- package/dist/dropdown-menu/DropdownMenuLabel.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue.js +23 -0
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.js +43 -0
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.vue.js +21 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuShortcut.vue.js +20 -0
- package/dist/dropdown-menu/DropdownMenuShortcut.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSub.vue.js +22 -0
- package/dist/dropdown-menu/DropdownMenuSub.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSubContent.vue.js +47 -0
- package/dist/dropdown-menu/DropdownMenuSubContent.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.js +34 -0
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue2.js +4 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.vue.js +22 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.vue2.js +4 -0
- package/dist/illustration/Illustration.vue.js +17 -0
- package/dist/illustration/Illustration.vue2.js +4 -0
- package/dist/illustration/illustrations.js +127 -0
- package/dist/index.css +1 -1
- package/dist/index.js +454 -30969
- package/dist/input/Input.vue.js +43 -0
- package/dist/input/Input.vue2.js +4 -0
- package/dist/label/Label.vue.js +30 -0
- package/dist/label/Label.vue2.js +4 -0
- package/dist/lib/date.js +34 -0
- package/dist/lib/utils.js +13 -0
- package/dist/multi-select/MultiSelectContent.vue.js +69 -0
- package/dist/multi-select/MultiSelectContent.vue2.js +4 -0
- package/dist/multi-select/MultiSelectEmpty.vue.js +22 -0
- package/dist/multi-select/MultiSelectEmpty.vue2.js +4 -0
- package/dist/multi-select/MultiSelectGroup.vue.js +26 -0
- package/dist/multi-select/MultiSelectGroup.vue2.js +4 -0
- package/dist/multi-select/MultiSelectItem.vue.js +71 -0
- package/dist/multi-select/MultiSelectItem.vue2.js +4 -0
- package/dist/multi-select/MultiSelectLabel.vue.js +28 -0
- package/dist/multi-select/MultiSelectLabel.vue2.js +4 -0
- package/dist/multi-select/MultiSelectRoot.vue.js +76 -0
- package/dist/multi-select/MultiSelectRoot.vue2.js +4 -0
- package/dist/multi-select/MultiSelectSeparator.vue.js +25 -0
- package/dist/multi-select/MultiSelectSeparator.vue2.js +4 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +61 -0
- package/dist/multi-select/MultiSelectTrigger.vue2.js +4 -0
- package/dist/multi-select/MultiSelectValue.vue.js +79 -0
- package/dist/multi-select/MultiSelectValue.vue2.js +4 -0
- package/dist/multi-select/contexts.js +10 -0
- package/dist/multi-select/utils.js +11 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/CalendarDate.js +219 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/conversion.js +137 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/manipulation.js +214 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/queries.js +60 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/string.js +27 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.8.2/node_modules/@internationalized/date/dist/utils.js +6 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1771 -0
- package/dist/node_modules/.pnpm/@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_/node_modules/@tanstack/vue-table/build/lib/index.js +168 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/Icon.js +39 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-left.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/arrow-right.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/calendar.js +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js +11 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-left.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-left.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevrons-right.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-check.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle-x.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/circle.js +13 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/ellipsis.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/info.js +15 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle-alert.js +21 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/triangle.js +16 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js +14 -0
- package/dist/node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js +20 -0
- package/dist/node_modules/.pnpm/reka-ui@2.5.0_typescript@5.8.3_vue@3.5.19_typescript@5.8.3_/node_modules/reka-ui/dist/date/comparators.js +10 -0
- package/dist/pagination/Pagination.vue.js +34 -0
- package/dist/pagination/Pagination.vue2.js +4 -0
- package/dist/pagination/PaginationContent.vue.js +26 -0
- package/dist/pagination/PaginationContent.vue2.js +4 -0
- package/dist/pagination/PaginationEllipsis.vue.js +30 -0
- package/dist/pagination/PaginationEllipsis.vue2.js +4 -0
- package/dist/pagination/PaginationFirst.vue.js +37 -0
- package/dist/pagination/PaginationFirst.vue2.js +4 -0
- package/dist/pagination/PaginationItem.vue.js +38 -0
- package/dist/pagination/PaginationItem.vue2.js +4 -0
- package/dist/pagination/PaginationLast.vue.js +37 -0
- package/dist/pagination/PaginationLast.vue2.js +4 -0
- package/dist/pagination/PaginationNext.vue.js +37 -0
- package/dist/pagination/PaginationNext.vue2.js +4 -0
- package/dist/pagination/PaginationPrevious.vue.js +37 -0
- package/dist/pagination/PaginationPrevious.vue2.js +4 -0
- package/dist/popover/Popover.vue.js +23 -0
- package/dist/popover/Popover.vue2.js +4 -0
- package/dist/popover/PopoverAnchor.vue.js +22 -0
- package/dist/popover/PopoverAnchor.vue2.js +4 -0
- package/dist/popover/PopoverContent.vue.js +55 -0
- package/dist/popover/PopoverContent.vue2.js +4 -0
- package/dist/popover/PopoverTrigger.vue.js +21 -0
- package/dist/popover/PopoverTrigger.vue2.js +4 -0
- package/dist/radio-group/RadioGroup.vue.js +36 -0
- package/dist/radio-group/RadioGroup.vue2.js +4 -0
- package/dist/radio-group/RadioGroupItem.vue.js +62 -0
- package/dist/radio-group/RadioGroupItem.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendar.vue.js +219 -0
- package/dist/range-calendar/RangeCalendar.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarCell.vue.js +31 -0
- package/dist/range-calendar/RangeCalendarCell.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarCellTrigger.vue.js +47 -0
- package/dist/range-calendar/RangeCalendarCellTrigger.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGrid.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarGrid.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridBody.vue.js +21 -0
- package/dist/range-calendar/RangeCalendarGridBody.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridHead.vue.js +21 -0
- package/dist/range-calendar/RangeCalendarGridHead.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarGridRow.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarGridRow.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeadCell.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarHeadCell.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeader.vue.js +27 -0
- package/dist/range-calendar/RangeCalendarHeader.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarHeading.vue.js +34 -0
- package/dist/range-calendar/RangeCalendarHeading.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarNextButton.vue.js +37 -0
- package/dist/range-calendar/RangeCalendarNextButton.vue2.js +4 -0
- package/dist/range-calendar/RangeCalendarPrevButton.vue.js +37 -0
- package/dist/range-calendar/RangeCalendarPrevButton.vue2.js +4 -0
- package/dist/select/Select.vue.js +31 -0
- package/dist/select/Select.vue2.js +4 -0
- package/dist/select/SelectContent.vue.js +73 -0
- package/dist/select/SelectContent.vue2.js +4 -0
- package/dist/select/SelectGroup.vue.js +21 -0
- package/dist/select/SelectGroup.vue2.js +4 -0
- package/dist/select/SelectItem.vue.js +46 -0
- package/dist/select/SelectItem.vue2.js +4 -0
- package/dist/select/SelectItemText.vue.js +21 -0
- package/dist/select/SelectItemText.vue2.js +4 -0
- package/dist/select/SelectLabel.vue.js +27 -0
- package/dist/select/SelectLabel.vue2.js +4 -0
- package/dist/select/SelectScrollDownButton.vue.js +29 -0
- package/dist/select/SelectScrollDownButton.vue2.js +4 -0
- package/dist/select/SelectScrollUpButton.vue.js +29 -0
- package/dist/select/SelectScrollUpButton.vue2.js +4 -0
- package/dist/select/SelectSeparator.vue.js +21 -0
- package/dist/select/SelectSeparator.vue2.js +4 -0
- package/dist/select/SelectTrigger.vue.js +60 -0
- package/dist/select/SelectTrigger.vue2.js +4 -0
- package/dist/select/SelectValue.vue.js +22 -0
- package/dist/select/SelectValue.vue2.js +4 -0
- package/dist/separator/Separator.vue.js +26 -0
- package/dist/separator/Separator.vue2.js +4 -0
- package/dist/sheet/Sheet.vue.js +23 -0
- package/dist/sheet/Sheet.vue2.js +4 -0
- package/dist/sheet/SheetClose.vue.js +21 -0
- package/dist/sheet/SheetClose.vue2.js +4 -0
- package/dist/sheet/SheetContent.vue.js +54 -0
- package/dist/sheet/SheetContent.vue2.js +4 -0
- package/dist/sheet/SheetDescription.vue.js +27 -0
- package/dist/sheet/SheetDescription.vue2.js +4 -0
- package/dist/sheet/SheetFooter.vue.js +20 -0
- package/dist/sheet/SheetFooter.vue2.js +4 -0
- package/dist/sheet/SheetHeader.vue.js +20 -0
- package/dist/sheet/SheetHeader.vue2.js +4 -0
- package/dist/sheet/SheetOverlay.vue.js +31 -0
- package/dist/sheet/SheetOverlay.vue2.js +4 -0
- package/dist/sheet/SheetTitle.vue.js +27 -0
- package/dist/sheet/SheetTitle.vue2.js +4 -0
- package/dist/sheet/SheetTrigger.vue.js +21 -0
- package/dist/sheet/SheetTrigger.vue2.js +4 -0
- package/dist/sidebar/Sidebar.vue.js +63 -0
- package/dist/sidebar/Sidebar.vue2.js +4 -0
- package/dist/sidebar/SidebarContent.vue.js +26 -0
- package/dist/sidebar/SidebarContent.vue2.js +4 -0
- package/dist/sidebar/SidebarFooter.vue.js +21 -0
- package/dist/sidebar/SidebarFooter.vue2.js +4 -0
- package/dist/sidebar/SidebarGroup.vue.js +21 -0
- package/dist/sidebar/SidebarGroup.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupAction.vue.js +36 -0
- package/dist/sidebar/SidebarGroupAction.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupContent.vue.js +21 -0
- package/dist/sidebar/SidebarGroupContent.vue2.js +4 -0
- package/dist/sidebar/SidebarGroupLabel.vue.js +35 -0
- package/dist/sidebar/SidebarGroupLabel.vue2.js +4 -0
- package/dist/sidebar/SidebarHeader.vue.js +21 -0
- package/dist/sidebar/SidebarHeader.vue2.js +4 -0
- package/dist/sidebar/SidebarInput.vue.js +30 -0
- package/dist/sidebar/SidebarInput.vue2.js +4 -0
- package/dist/sidebar/SidebarInset.vue.js +20 -0
- package/dist/sidebar/SidebarInset.vue2.js +4 -0
- package/dist/sidebar/SidebarMenu.vue.js +21 -0
- package/dist/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuAction.vue.js +41 -0
- package/dist/sidebar/SidebarMenuAction.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuBadge.vue.js +31 -0
- package/dist/sidebar/SidebarMenuBadge.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuButton.vue.js +59 -0
- package/dist/sidebar/SidebarMenuButton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuButtonChild.vue.js +35 -0
- package/dist/sidebar/SidebarMenuButtonChild.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuItem.vue.js +21 -0
- package/dist/sidebar/SidebarMenuItem.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSkeleton.vue.js +35 -0
- package/dist/sidebar/SidebarMenuSkeleton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSub.vue.js +27 -0
- package/dist/sidebar/SidebarMenuSub.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSubButton.vue.js +42 -0
- package/dist/sidebar/SidebarMenuSubButton.vue2.js +4 -0
- package/dist/sidebar/SidebarMenuSubItem.vue.js +21 -0
- package/dist/sidebar/SidebarMenuSubItem.vue2.js +4 -0
- package/dist/sidebar/SidebarProvider.vue.js +39 -0
- package/dist/sidebar/SidebarProvider.vue2.js +4 -0
- package/dist/sidebar/SidebarSeparator.vue.js +25 -0
- package/dist/sidebar/SidebarSeparator.vue2.js +4 -0
- package/dist/sidebar/index.js +24 -0
- package/dist/sidebar/utils.js +8 -0
- package/dist/skeleton/Skeleton.vue.js +18 -0
- package/dist/skeleton/Skeleton.vue2.js +4 -0
- package/dist/sonner/Sonner.vue.js +31 -0
- package/dist/sonner/Sonner.vue2.js +4 -0
- package/dist/sonner/Toast.vue.js +70 -0
- package/dist/sonner/Toast.vue2.js +4 -0
- package/dist/sonner/index.js +22 -0
- package/dist/sonner/toast.js +12 -0
- package/dist/stepper/Stepper.vue.js +32 -0
- package/dist/stepper/Stepper.vue2.js +4 -0
- package/dist/stepper/StepperDescription.vue.js +26 -0
- package/dist/stepper/StepperDescription.vue2.js +4 -0
- package/dist/stepper/StepperIndicator.vue.js +37 -0
- package/dist/stepper/StepperIndicator.vue2.js +4 -0
- package/dist/stepper/StepperItem.vue.js +32 -0
- package/dist/stepper/StepperItem.vue2.js +4 -0
- package/dist/stepper/StepperSeparator.vue.js +34 -0
- package/dist/stepper/StepperSeparator.vue2.js +4 -0
- package/dist/stepper/StepperTitle.vue.js +26 -0
- package/dist/stepper/StepperTitle.vue2.js +4 -0
- package/dist/stepper/StepperTrigger.vue.js +29 -0
- package/dist/stepper/StepperTrigger.vue2.js +4 -0
- package/dist/switch/Switch.vue.js +62 -0
- package/dist/switch/Switch.vue2.js +4 -0
- package/dist/table/Table.vue.js +30 -0
- package/dist/table/Table.vue2.js +4 -0
- package/dist/table/TableBody.vue.js +25 -0
- package/dist/table/TableBody.vue2.js +4 -0
- package/dist/table/TableCaption.vue.js +20 -0
- package/dist/table/TableCaption.vue2.js +4 -0
- package/dist/table/TableCell.vue.js +25 -0
- package/dist/table/TableCell.vue2.js +4 -0
- package/dist/table/TableEmpty.vue.js +49 -0
- package/dist/table/TableEmpty.vue2.js +4 -0
- package/dist/table/TableFooter.vue.js +20 -0
- package/dist/table/TableFooter.vue2.js +4 -0
- package/dist/table/TableHead.vue.js +26 -0
- package/dist/table/TableHead.vue2.js +4 -0
- package/dist/table/TableHeader.vue.js +22 -0
- package/dist/table/TableHeader.vue2.js +4 -0
- package/dist/table/TableRow.vue.js +20 -0
- package/dist/table/TableRow.vue2.js +4 -0
- package/dist/table/utils.js +6 -0
- package/dist/tabs/Tabs.vue.js +33 -0
- package/dist/tabs/Tabs.vue2.js +4 -0
- package/dist/tabs/TabsContent.vue.js +29 -0
- package/dist/tabs/TabsContent.vue2.js +4 -0
- package/dist/tabs/TabsList.vue.js +30 -0
- package/dist/tabs/TabsList.vue2.js +4 -0
- package/dist/tabs/TabsTrigger.vue.js +33 -0
- package/dist/tabs/TabsTrigger.vue2.js +4 -0
- package/dist/tabs/index.js +18 -0
- package/dist/tag/Tag.vue.js +31 -0
- package/dist/tag/Tag.vue2.js +4 -0
- package/dist/tag/index.js +35 -0
- package/dist/textarea/Textarea.vue.js +35 -0
- package/dist/textarea/Textarea.vue2.js +4 -0
- package/dist/time-picker/TimePicker.vue.js +142 -0
- package/dist/time-picker/TimePicker.vue2.js +4 -0
- package/dist/tooltip/Tooltip.vue.js +27 -0
- package/dist/tooltip/Tooltip.vue2.js +4 -0
- package/dist/tooltip/TooltipContent.vue.js +51 -0
- package/dist/tooltip/TooltipContent.vue2.js +4 -0
- package/dist/tooltip/TooltipProvider.vue.js +25 -0
- package/dist/tooltip/TooltipProvider.vue2.js +4 -0
- package/dist/tooltip/TooltipTrigger.vue.js +22 -0
- package/dist/tooltip/TooltipTrigger.vue2.js +4 -0
- package/dist/upload/UploadContent.vue.js +30 -0
- package/dist/upload/UploadContent.vue2.js +4 -0
- package/dist/upload/UploadContentDescription.vue.js +37 -0
- package/dist/upload/UploadContentDescription.vue2.js +4 -0
- package/dist/upload/UploadContentLoadingDescription.vue.js +37 -0
- package/dist/upload/UploadContentLoadingDescription.vue2.js +4 -0
- package/dist/upload/UploadContentSuccessDescription.vue.js +37 -0
- package/dist/upload/UploadContentSuccessDescription.vue2.js +4 -0
- package/dist/upload/UploadContentTitle.vue.js +35 -0
- package/dist/upload/UploadContentTitle.vue2.js +4 -0
- package/dist/upload/UploadFileItem.vue.js +106 -0
- package/dist/upload/UploadFileItem.vue2.js +4 -0
- package/dist/upload/UploadRoot.vue.js +109 -0
- package/dist/upload/UploadRoot.vue2.js +4 -0
- package/dist/upload/upload-context.js +6 -0
- package/package.json +5 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as b, computed as x, createElementBlock as l, openBlock as n, normalizeClass as i, unref as t, createBlock as w, createCommentVNode as u, createVNode as a, createElementVNode as y, mergeProps as C, withCtx as B, renderSlot as V } from "vue";
|
|
2
|
+
import { reactiveOmit as k } from "@vueuse/core";
|
|
3
|
+
import { injectComboboxRootContext as I, useForwardPropsEmits as z, ComboboxInput as P } from "reka-ui";
|
|
4
|
+
import { cn as d } from "../lib/utils.js";
|
|
5
|
+
import A from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js";
|
|
6
|
+
import E from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
|
|
7
|
+
import N from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js";
|
|
8
|
+
const _ = /* @__PURE__ */ b({
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
__name: "ComboboxInput",
|
|
11
|
+
props: {
|
|
12
|
+
displayValue: {},
|
|
13
|
+
modelValue: {},
|
|
14
|
+
autoFocus: { type: Boolean },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {},
|
|
18
|
+
class: {},
|
|
19
|
+
withIcon: { type: Boolean },
|
|
20
|
+
withClearButton: { type: Boolean, default: !0 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(p, { emit: c }) {
|
|
24
|
+
const s = p, m = c, o = I(), f = k(s, "class", "withIcon"), h = z(f, m), g = x(() => {
|
|
25
|
+
const e = o.modelValue.value;
|
|
26
|
+
return Array.isArray(e) ? e.length > 0 : e != null && e !== "";
|
|
27
|
+
});
|
|
28
|
+
function v(e) {
|
|
29
|
+
e.stopPropagation(), e.preventDefault();
|
|
30
|
+
const r = o.multiple.value ? [] : void 0;
|
|
31
|
+
o.modelValue.value = r;
|
|
32
|
+
}
|
|
33
|
+
return (e, r) => (n(), l("div", {
|
|
34
|
+
"data-slot": "command-input-wrapper",
|
|
35
|
+
class: i(
|
|
36
|
+
t(d)(
|
|
37
|
+
"selection:bg-primary selection:text-primary-foreground !border-input flex h-10 w-full items-center gap-2.5 rounded-md border bg-transparent px-3 shadow-xs transition-[color,box-shadow]",
|
|
38
|
+
"hover:ring-ring/24 hover:ring-[2px]",
|
|
39
|
+
"focus-within:ring-ring/24 focus-within:border-none focus-within:ring-[2px]",
|
|
40
|
+
"aria-invalid:ring-destructive/24 aria-invalid:border-destructive"
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
}, [
|
|
44
|
+
e.withIcon ? (n(), w(t(A), {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "size-4 shrink-0 opacity-50"
|
|
47
|
+
})) : u("", !0),
|
|
48
|
+
a(t(P), C({
|
|
49
|
+
"data-slot": "command-input",
|
|
50
|
+
class: t(d)(
|
|
51
|
+
"placeholder:text-muted-foreground flex h-full w-full bg-transparent text-sm text-gray-800 outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
52
|
+
s.class
|
|
53
|
+
)
|
|
54
|
+
}, { ...e.$attrs, ...t(h) }), {
|
|
55
|
+
default: B(() => [
|
|
56
|
+
V(e.$slots, "default")
|
|
57
|
+
]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 16, ["class"]),
|
|
60
|
+
e.withClearButton && g.value ? (n(), l("button", {
|
|
61
|
+
key: 1,
|
|
62
|
+
type: "button",
|
|
63
|
+
class: "text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
|
|
64
|
+
onClick: v
|
|
65
|
+
}, [
|
|
66
|
+
a(t(E), { class: "size-4" })
|
|
67
|
+
])) : u("", !0),
|
|
68
|
+
y("button", {
|
|
69
|
+
type: "button",
|
|
70
|
+
class: i(["text-muted-foreground hover:text-foreground cursor-pointer transition-transform", {
|
|
71
|
+
"rotate-180": t(o).open.value
|
|
72
|
+
}]),
|
|
73
|
+
onClick: r[0] || (r[0] = ($) => t(o).onOpenChange(!t(o).open.value))
|
|
74
|
+
}, [
|
|
75
|
+
a(t(N), { class: "size-4" })
|
|
76
|
+
], 2)
|
|
77
|
+
], 2));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
_ as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as l, createBlock as d, openBlock as c, unref as e, mergeProps as m, withCtx as p, renderSlot as u } from "vue";
|
|
2
|
+
import { reactiveOmit as g } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as h, ComboboxItem as f } from "reka-ui";
|
|
4
|
+
import { cn as x } from "../lib/utils.js";
|
|
5
|
+
const y = /* @__PURE__ */ l({
|
|
6
|
+
__name: "ComboboxItem",
|
|
7
|
+
props: {
|
|
8
|
+
textValue: {},
|
|
9
|
+
value: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["select"],
|
|
16
|
+
setup(o, { emit: s }) {
|
|
17
|
+
const t = o, a = s, r = g(t, "class"), n = h(r, a);
|
|
18
|
+
return (i, _) => (c(), d(e(f), m({ "data-slot": "combobox-item" }, e(n), {
|
|
19
|
+
class: e(x)(
|
|
20
|
+
"data-[highlighted]:bg-accent [&_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-[highlighted]:text-neutral-100 [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[highlighted]:[&_svg]:!text-white [&_svg:not([class*='size-'])]:size-4",
|
|
21
|
+
t.class
|
|
22
|
+
)
|
|
23
|
+
}), {
|
|
24
|
+
default: p(() => [
|
|
25
|
+
u(i.$slots, "default")
|
|
26
|
+
]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 16, ["class"]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
y as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as c, createBlock as m, openBlock as n, unref as o, mergeProps as l, withCtx as p, renderSlot as d } from "vue";
|
|
2
|
+
import { reactiveOmit as i } from "@vueuse/core";
|
|
3
|
+
import { useForwardProps as f, ComboboxItemIndicator as u } from "reka-ui";
|
|
4
|
+
import { cn as b } from "../lib/utils.js";
|
|
5
|
+
const w = /* @__PURE__ */ c({
|
|
6
|
+
__name: "ComboboxItemIndicator",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const t = e, r = i(t, "class"), s = f(r);
|
|
14
|
+
return (a, _) => (n(), m(o(u), l({ "data-slot": "combobox-item-indicator" }, o(s), {
|
|
15
|
+
class: o(b)("ml-auto", t.class)
|
|
16
|
+
}), {
|
|
17
|
+
default: p(() => [
|
|
18
|
+
d(a.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16, ["class"]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
w as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as l, createBlock as p, openBlock as c, unref as o, withCtx as t, createVNode as m, mergeProps as f, renderSlot as u } from "vue";
|
|
2
|
+
import { reactiveOmit as b } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as g, ComboboxPortal as y, ComboboxContent as h } from "reka-ui";
|
|
4
|
+
import { cn as B } from "../lib/utils.js";
|
|
5
|
+
const O = /* @__PURE__ */ l({
|
|
6
|
+
__name: "ComboboxList",
|
|
7
|
+
props: {
|
|
8
|
+
forceMount: { type: Boolean },
|
|
9
|
+
position: { default: "popper" },
|
|
10
|
+
bodyLock: { type: Boolean },
|
|
11
|
+
side: {},
|
|
12
|
+
sideOffset: { default: 4 },
|
|
13
|
+
sideFlip: { type: Boolean },
|
|
14
|
+
align: { default: "center" },
|
|
15
|
+
alignOffset: {},
|
|
16
|
+
alignFlip: { type: Boolean },
|
|
17
|
+
avoidCollisions: { type: Boolean },
|
|
18
|
+
collisionBoundary: {},
|
|
19
|
+
collisionPadding: {},
|
|
20
|
+
arrowPadding: {},
|
|
21
|
+
sticky: {},
|
|
22
|
+
hideWhenDetached: { type: Boolean },
|
|
23
|
+
positionStrategy: {},
|
|
24
|
+
updatePositionStrategy: {},
|
|
25
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
26
|
+
prioritizePosition: { type: Boolean },
|
|
27
|
+
reference: {},
|
|
28
|
+
asChild: { type: Boolean },
|
|
29
|
+
as: {},
|
|
30
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
31
|
+
class: {}
|
|
32
|
+
},
|
|
33
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
34
|
+
setup(a, { emit: i }) {
|
|
35
|
+
const e = a, n = i, s = b(e, "class"), r = g(s, n);
|
|
36
|
+
return (d, w) => (c(), p(o(y), null, {
|
|
37
|
+
default: t(() => [
|
|
38
|
+
m(o(h), f({ "data-slot": "combobox-list" }, o(r), {
|
|
39
|
+
class: o(B)(
|
|
40
|
+
"!border-input max-h-[50vh] overflow-y-auto overscroll-contain !border",
|
|
41
|
+
"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-[var(--reka-combobox-trigger-width)] min-w-[var(--reka-combobox-trigger-width)] origin-(--reka-combobox-content-transform-origin) rounded-md shadow-xs outline-none",
|
|
42
|
+
e.class
|
|
43
|
+
)
|
|
44
|
+
}), {
|
|
45
|
+
default: t(() => [
|
|
46
|
+
u(d.$slots, "default")
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 16, ["class"])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
O as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as p, openBlock as c, unref as o, mergeProps as m, withCtx as l, renderSlot as n } from "vue";
|
|
2
|
+
import { reactiveOmit as d } from "@vueuse/core";
|
|
3
|
+
import { ComboboxSeparator as f } from "reka-ui";
|
|
4
|
+
import { cn as i } from "../lib/utils.js";
|
|
5
|
+
const h = /* @__PURE__ */ s({
|
|
6
|
+
__name: "ComboboxSeparator",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: {}
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
const e = r, t = d(e, "class");
|
|
14
|
+
return (a, b) => (c(), p(o(f), m({ "data-slot": "combobox-separator" }, o(t), {
|
|
15
|
+
class: o(i)("bg-border -mx-1 h-px", e.class)
|
|
16
|
+
}), {
|
|
17
|
+
default: l(() => [
|
|
18
|
+
n(a.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16, ["class"]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
h as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as c, createBlock as l, openBlock as p, unref as o, mergeProps as n, withCtx as m, renderSlot as d } from "vue";
|
|
2
|
+
import { reactiveOmit as i } from "@vueuse/core";
|
|
3
|
+
import { useForwardProps as f, ComboboxViewport as u } from "reka-ui";
|
|
4
|
+
import { cn as w } from "../lib/utils.js";
|
|
5
|
+
const v = /* @__PURE__ */ c({
|
|
6
|
+
__name: "ComboboxViewport",
|
|
7
|
+
props: {
|
|
8
|
+
nonce: {},
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(r) {
|
|
14
|
+
const e = r, t = i(e, "class"), s = f(t);
|
|
15
|
+
return (a, b) => (p(), l(o(u), n({ "data-slot": "combobox-viewport" }, o(s), {
|
|
16
|
+
class: o(w)("scroll-py-1 overflow-x-hidden overflow-y-auto", e.class)
|
|
17
|
+
}), {
|
|
18
|
+
default: m(() => [
|
|
19
|
+
d(a.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 16, ["class"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
v as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as y, ref as d, reactive as C, computed as S, watch as x, createBlock as B, openBlock as b, unref as n, mergeProps as M, withCtx as _, renderSlot as F } from "vue";
|
|
2
|
+
import { reactiveOmit as V } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as G, useFilter as R, ListboxRoot as P } from "reka-ui";
|
|
4
|
+
import { cn as k } from "../lib/utils.js";
|
|
5
|
+
import { provideCommandContext as A } from "./contexts.js";
|
|
6
|
+
const L = /* @__PURE__ */ y({
|
|
7
|
+
__name: "Command",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { default: "" },
|
|
10
|
+
defaultValue: {},
|
|
11
|
+
multiple: { type: Boolean },
|
|
12
|
+
orientation: {},
|
|
13
|
+
dir: {},
|
|
14
|
+
disabled: { type: Boolean },
|
|
15
|
+
selectionBehavior: {},
|
|
16
|
+
highlightOnHover: { type: Boolean },
|
|
17
|
+
by: {},
|
|
18
|
+
asChild: { type: Boolean },
|
|
19
|
+
as: {},
|
|
20
|
+
name: {},
|
|
21
|
+
required: { type: Boolean },
|
|
22
|
+
class: {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
|
|
25
|
+
setup(c, { emit: p }) {
|
|
26
|
+
const u = c, m = p, f = V(u, "class"), h = G(f, m), s = d(/* @__PURE__ */ new Map()), r = d(/* @__PURE__ */ new Map()), { contains: v } = R({ sensitivity: "base" }), o = C({
|
|
27
|
+
search: "",
|
|
28
|
+
filtered: {
|
|
29
|
+
/** The count of all visible items. */
|
|
30
|
+
count: 0,
|
|
31
|
+
/** Map from visible item id to its search score. */
|
|
32
|
+
items: /* @__PURE__ */ new Map(),
|
|
33
|
+
/** Set of groups with at least one visible item. */
|
|
34
|
+
groups: /* @__PURE__ */ new Set()
|
|
35
|
+
}
|
|
36
|
+
}), g = S(() => !!o.search && o.filtered.count === 0);
|
|
37
|
+
function w() {
|
|
38
|
+
if (!o.search) {
|
|
39
|
+
o.filtered.count = s.value.size;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
43
|
+
let a = 0;
|
|
44
|
+
for (const [I, l] of s.value) {
|
|
45
|
+
const i = v(l.textContent, o.search) ? 1 : 0;
|
|
46
|
+
e.set(I, i), i > 0 && (a++, l.groupId && t.add(l.groupId));
|
|
47
|
+
}
|
|
48
|
+
o.filtered = {
|
|
49
|
+
count: a,
|
|
50
|
+
groups: t,
|
|
51
|
+
items: e
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return x(
|
|
55
|
+
() => o.search,
|
|
56
|
+
() => w()
|
|
57
|
+
), A({
|
|
58
|
+
groupsMap: r,
|
|
59
|
+
itemsMap: s,
|
|
60
|
+
search: () => o.search,
|
|
61
|
+
onSearch: (e) => o.search = e,
|
|
62
|
+
isEmptySearchResult: g,
|
|
63
|
+
isGroupVisible: (e) => o.search ? o.filtered.groups.has(e) : !0,
|
|
64
|
+
isItemVisible: (e) => {
|
|
65
|
+
if (o.search) {
|
|
66
|
+
const t = o.filtered.items.get(e);
|
|
67
|
+
return t === void 0 ? !0 : t > 0;
|
|
68
|
+
} else
|
|
69
|
+
return !0;
|
|
70
|
+
},
|
|
71
|
+
onGroupAdd: (e) => {
|
|
72
|
+
r.value.has(e) || r.value.set(e, /* @__PURE__ */ new Set());
|
|
73
|
+
},
|
|
74
|
+
onGroupRemove: (e) => {
|
|
75
|
+
r.value.delete(e);
|
|
76
|
+
},
|
|
77
|
+
onItemAdd: (e, t) => {
|
|
78
|
+
var a;
|
|
79
|
+
s.value.set(e, t), t.groupId && (r.value.has(t.groupId) ? (a = r.value.get(t.groupId)) == null || a.add(e) : r.value.set(t.groupId, /* @__PURE__ */ new Set([e])));
|
|
80
|
+
},
|
|
81
|
+
onItemRemove: (e, t) => {
|
|
82
|
+
s.value.delete(e), t.groupId && r.value.delete(t.groupId);
|
|
83
|
+
},
|
|
84
|
+
onSelect: () => {
|
|
85
|
+
o.search = "";
|
|
86
|
+
}
|
|
87
|
+
}), (e, t) => (b(), B(n(P), M({ "data-slot": "command" }, n(h), {
|
|
88
|
+
class: n(k)(
|
|
89
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
90
|
+
u.class
|
|
91
|
+
)
|
|
92
|
+
}), {
|
|
93
|
+
default: _(() => [
|
|
94
|
+
F(e.$slots, "default")
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 16, ["class"]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
L as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as p, openBlock as f, unref as e, normalizeProps as d, guardReactiveProps as c, withCtx as o, createVNode as t, createTextVNode as a, toDisplayString as n, renderSlot as u } from "vue";
|
|
2
|
+
import { useForwardPropsEmits as _ } from "reka-ui";
|
|
3
|
+
import $ from "./Command.vue.js";
|
|
4
|
+
import y from "../dialog/Dialog.vue.js";
|
|
5
|
+
import B from "../dialog/DialogContent.vue.js";
|
|
6
|
+
import h from "../dialog/DialogHeader.vue.js";
|
|
7
|
+
import w from "../dialog/DialogTitle.vue.js";
|
|
8
|
+
import C from "../dialog/DialogDescription.vue.js";
|
|
9
|
+
const F = /* @__PURE__ */ s({
|
|
10
|
+
__name: "CommandDialog",
|
|
11
|
+
props: {
|
|
12
|
+
open: { type: Boolean },
|
|
13
|
+
defaultOpen: { type: Boolean },
|
|
14
|
+
modal: { type: Boolean },
|
|
15
|
+
title: { default: "Command Palette" },
|
|
16
|
+
description: { default: "Search for a command to run..." }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:open"],
|
|
19
|
+
setup(m, { emit: l }) {
|
|
20
|
+
const i = _(m, l);
|
|
21
|
+
return (r, S) => (f(), p(e(y), d(c(e(i))), {
|
|
22
|
+
default: o(() => [
|
|
23
|
+
t(e(B), { class: "overflow-hidden p-0" }, {
|
|
24
|
+
default: o(() => [
|
|
25
|
+
t(e(h), { class: "sr-only" }, {
|
|
26
|
+
default: o(() => [
|
|
27
|
+
t(e(w), null, {
|
|
28
|
+
default: o(() => [
|
|
29
|
+
a(n(r.title), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}),
|
|
33
|
+
t(e(C), null, {
|
|
34
|
+
default: o(() => [
|
|
35
|
+
a(n(r.description), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}),
|
|
42
|
+
t($, null, {
|
|
43
|
+
default: o(() => [
|
|
44
|
+
u(r.$slots, "default")
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
})
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
F as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, createBlock as n, createCommentVNode as c, unref as t, openBlock as p, mergeProps as l, withCtx as i, renderSlot as d } from "vue";
|
|
2
|
+
import { reactiveOmit as f } from "@vueuse/core";
|
|
3
|
+
import { Primitive as u } from "reka-ui";
|
|
4
|
+
import { cn as C } from "../lib/utils.js";
|
|
5
|
+
import { injectCommandContext as x } from "./contexts.js";
|
|
6
|
+
const P = /* @__PURE__ */ a({
|
|
7
|
+
__name: "CommandEmpty",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {}
|
|
12
|
+
},
|
|
13
|
+
setup(o) {
|
|
14
|
+
const e = o, m = f(e, "class"), r = x();
|
|
15
|
+
return (s, y) => t(r).isEmptySearchResult.value ? (p(), n(t(u), l({
|
|
16
|
+
key: 0,
|
|
17
|
+
"data-slot": "command-empty"
|
|
18
|
+
}, t(m), {
|
|
19
|
+
class: t(C)("py-6 text-center text-sm font-bold", e.class)
|
|
20
|
+
}), {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
d(s.$slots, "default")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16, ["class"])) : c("", !0);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
P as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as u, computed as c, onMounted as l, onUnmounted as f, createBlock as d, openBlock as s, unref as e, mergeProps as x, withCtx as a, createCommentVNode as g, renderSlot as C, createTextVNode as h, toDisplayString as v } from "vue";
|
|
2
|
+
import { reactiveOmit as G } from "@vueuse/core";
|
|
3
|
+
import { useId as b, ListboxGroup as y, ListboxGroupLabel as _ } from "reka-ui";
|
|
4
|
+
import { cn as V } from "../lib/utils.js";
|
|
5
|
+
import { injectCommandContext as k, provideCommandGroupContext as B } from "./contexts.js";
|
|
6
|
+
const A = /* @__PURE__ */ u({
|
|
7
|
+
__name: "CommandGroup",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: {},
|
|
12
|
+
heading: {}
|
|
13
|
+
},
|
|
14
|
+
setup(i) {
|
|
15
|
+
const r = i, m = G(r, "class"), o = b(void 0, "at-command-group"), t = k(), p = c(() => t.isGroupVisible(o));
|
|
16
|
+
return B({ id: o }), l(() => t.onGroupAdd(o)), f(() => t.onGroupRemove(o)), (n, L) => (s(), d(e(y), x(e(m), {
|
|
17
|
+
id: e(o),
|
|
18
|
+
"data-slot": "command-group",
|
|
19
|
+
class: e(V)("overflow-hidden p-1 text-gray-900", r.class),
|
|
20
|
+
hidden: p.value ? void 0 : !0
|
|
21
|
+
}), {
|
|
22
|
+
default: a(() => [
|
|
23
|
+
n.heading ? (s(), d(e(_), {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "text-muted-foreground px-2 py-1.5 text-xs font-medium"
|
|
26
|
+
}, {
|
|
27
|
+
default: a(() => [
|
|
28
|
+
h(v(n.heading), 1)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
})) : g("", !0),
|
|
32
|
+
C(n.$slots, "default")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["id", "class", "hidden"]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
A as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as p, computed as i, toValue as u, createElementBlock as f, openBlock as h, createVNode as l, unref as e, mergeProps as x } from "vue";
|
|
2
|
+
import { reactiveOmit as b } from "@vueuse/core";
|
|
3
|
+
import { useForwardProps as g, ListboxFilter as y } from "reka-ui";
|
|
4
|
+
import { cn as C } from "../lib/utils.js";
|
|
5
|
+
import { injectCommandContext as V } from "./contexts.js";
|
|
6
|
+
import w from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/search.js";
|
|
7
|
+
const B = {
|
|
8
|
+
"data-slot": "command-input-wrapper",
|
|
9
|
+
class: "flex h-12 items-center gap-2 border-b px-3"
|
|
10
|
+
}, j = /* @__PURE__ */ p({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "CommandInput",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
autoFocus: { type: Boolean },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {},
|
|
19
|
+
class: {}
|
|
20
|
+
},
|
|
21
|
+
setup(n) {
|
|
22
|
+
const t = n, d = b(t, "class"), m = g(d), a = V(), r = i({
|
|
23
|
+
get: () => u(a.search),
|
|
24
|
+
set: (o) => a.onSearch(o)
|
|
25
|
+
});
|
|
26
|
+
return (o, s) => (h(), f("div", B, [
|
|
27
|
+
l(e(w), { class: "size-4 shrink-0 opacity-50" }),
|
|
28
|
+
l(e(y), x({ ...e(m), ...o.$attrs }, {
|
|
29
|
+
modelValue: r.value,
|
|
30
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
31
|
+
"data-slot": "command-input",
|
|
32
|
+
"auto-focus": "",
|
|
33
|
+
class: e(C)(
|
|
34
|
+
"placeholder:text-muted-foreground outline-hidden flex h-12 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",
|
|
35
|
+
t.class
|
|
36
|
+
)
|
|
37
|
+
}), null, 16, ["modelValue", "class"])
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
j as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as g, shallowRef as x, computed as d, onMounted as C, onUnmounted as h, createBlock as _, createCommentVNode as b, openBlock as I, unref as t, mergeProps as y, withCtx as k, renderSlot as S } from "vue";
|
|
2
|
+
import { reactiveOmit as w, useCurrentElement as B } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as E, useId as P, ListboxItem as R } from "reka-ui";
|
|
4
|
+
import { cn as V } from "../lib/utils.js";
|
|
5
|
+
import { injectCommandContext as j, injectCommandGroupContext as z } from "./contexts.js";
|
|
6
|
+
const N = /* @__PURE__ */ g({
|
|
7
|
+
__name: "CommandItem",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["select"],
|
|
16
|
+
setup(l, { emit: m }) {
|
|
17
|
+
const e = l, c = m, u = w(e, "class"), p = E(u, c), o = P(void 0, "at-command-item"), n = j(), f = z(), r = x(null), i = B(r), v = d(() => n.isItemVisible(o)), s = d(() => {
|
|
18
|
+
var a;
|
|
19
|
+
if (i.value instanceof HTMLElement)
|
|
20
|
+
return {
|
|
21
|
+
groupId: f.id,
|
|
22
|
+
value: e.value,
|
|
23
|
+
disabled: e.disabled,
|
|
24
|
+
textContent: i.value.textContent ?? ((a = e.value) == null ? void 0 : a.toString()) ?? ""
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
return C(() => {
|
|
28
|
+
s.value && n.onItemAdd(o, s.value);
|
|
29
|
+
}), h(() => {
|
|
30
|
+
s.value && n.onItemRemove(o, s.value);
|
|
31
|
+
}), (a, G) => v.value ? (I(), _(t(R), y({ key: 0 }, t(p), {
|
|
32
|
+
id: t(o),
|
|
33
|
+
ref_key: "itemRef",
|
|
34
|
+
ref: r,
|
|
35
|
+
"data-slot": "command-item",
|
|
36
|
+
class: t(V)(
|
|
37
|
+
"data-[highlighted]:bg-accent/24 data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-3 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
38
|
+
e.class
|
|
39
|
+
),
|
|
40
|
+
onSelect: t(n).onSelect
|
|
41
|
+
}), {
|
|
42
|
+
default: k(() => [
|
|
43
|
+
S(a.$slots, "default")
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 16, ["id", "class", "onSelect"])) : b("", !0);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
N as default
|
|
51
|
+
};
|