@agrotools1/at-components 2.0.36 → 2.0.38
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 +7 -7
- package/dist/accordion/AccordionContent.vue.js +6 -6
- package/dist/accordion/AccordionItem.vue.js +8 -8
- package/dist/accordion/AccordionTrigger.vue.js +2 -2
- package/dist/alert-dialog/AlertDialogAction.vue.js +6 -6
- package/dist/alert-dialog/AlertDialogDescription.vue.js +1 -1
- package/dist/alert-dialog/AlertDialogTitle.vue.js +6 -6
- package/dist/alert-dialog/AlertDialogTrigger.vue.js +6 -6
- package/dist/assets/illustrations/renovabio/biomass.svg.js +2 -2
- package/dist/assets/illustrations/renovabio/volume.svg.js +2 -2
- package/dist/assets/illustrations/system/add-file.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-connection.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-download.svg.js +2 -2
- package/dist/assets/illustrations/system/cloud-upload.svg.js +2 -2
- package/dist/assets/illustrations/system/corrupted-file.svg.js +2 -2
- package/dist/assets/illustrations/system/dynamic-production.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-box.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +2 -2
- package/dist/assets/illustrations/system/empty-folder.svg.js +2 -2
- package/dist/assets/illustrations/system/empty.svg.js +2 -2
- package/dist/assets/illustrations/system/error-illustration.svg.js +2 -2
- package/dist/assets/illustrations/system/error.svg.js +2 -2
- package/dist/assets/illustrations/system/file-backup-2.svg.js +2 -2
- package/dist/assets/illustrations/system/file-backup.svg.js +2 -2
- package/dist/assets/illustrations/system/filtering-upload.svg.js +2 -2
- package/dist/assets/illustrations/system/flight.svg.js +2 -2
- package/dist/assets/illustrations/system/fly.svg.js +2 -2
- package/dist/assets/illustrations/system/movies.svg.js +2 -2
- package/dist/assets/illustrations/system/multimedia.svg.js +2 -2
- package/dist/assets/illustrations/system/notification-bell.svg.js +2 -2
- package/dist/assets/illustrations/system/page-2.svg.js +2 -2
- package/dist/assets/illustrations/system/page.svg.js +2 -2
- package/dist/assets/illustrations/system/photos.svg.js +2 -2
- package/dist/assets/illustrations/system/recycle-bin.svg.js +2 -2
- package/dist/assets/illustrations/system/rocket-launch.svg.js +2 -2
- package/dist/assets/illustrations/system/search-territory.svg.js +2 -2
- package/dist/assets/illustrations/system/signal.svg.js +2 -2
- package/dist/assets/illustrations/system/siren.svg.js +2 -2
- package/dist/assets/illustrations/system/wrong.svg.js +2 -2
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +2 -2
- package/dist/assets/illustrations/tools/agriculture.svg.js +2 -2
- package/dist/assets/illustrations/tools/alert-center.svg.js +2 -2
- package/dist/assets/illustrations/tools/area.svg.js +2 -2
- package/dist/assets/illustrations/tools/at-insights.svg.js +2 -2
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +2 -2
- package/dist/assets/illustrations/tools/credit.svg.js +2 -2
- package/dist/assets/illustrations/tools/deforestation.svg.js +2 -2
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +2 -2
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +2 -2
- package/dist/assets/illustrations/tools/extract.svg.js +2 -2
- package/dist/assets/illustrations/tools/farm.svg.js +2 -2
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +2 -2
- package/dist/assets/illustrations/tools/gix.svg.js +2 -2
- package/dist/assets/illustrations/tools/inapto.svg.js +2 -2
- package/dist/assets/illustrations/tools/insurance.svg.js +2 -2
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +2 -2
- package/dist/assets/illustrations/tools/lockdown.svg.js +2 -2
- package/dist/assets/illustrations/tools/map.svg.js +2 -2
- package/dist/assets/illustrations/tools/pasture.svg.js +2 -2
- package/dist/assets/illustrations/tools/rating-2.svg.js +2 -2
- package/dist/assets/illustrations/tools/rating.svg.js +2 -2
- package/dist/assets/illustrations/tools/recurrence.svg.js +2 -2
- package/dist/assets/illustrations/tools/refrigerators.svg.js +2 -2
- package/dist/assets/illustrations/tools/settings.svg.js +2 -2
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +2 -2
- package/dist/assets/illustrations/tools/soil-use.svg.js +2 -2
- package/dist/assets/illustrations/tools/storm.svg.js +2 -2
- package/dist/assets/illustrations/tools/territory-details.svg.js +2 -2
- package/dist/assets/illustrations/tools/timeline.svg.js +2 -2
- package/dist/avatar/AvatarFallback.vue.js +9 -9
- package/dist/avatar/AvatarImage.vue.js +6 -6
- package/dist/badge/Badge.vue.js +12 -12
- package/dist/breadcrumb/BreadcrumbLink.vue.js +11 -11
- package/dist/breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/dist/button/Button.vue.js +14 -14
- package/dist/button-new/ButtonNew.vue.js +26 -26
- package/dist/calendar/Calendar.vue.js +1 -1
- package/dist/calendar/CalendarCell.vue.js +3 -3
- package/dist/calendar/CalendarCellTrigger.vue.js +8 -8
- package/dist/calendar/CalendarGrid.vue.js +7 -7
- package/dist/calendar/CalendarGridBody.vue.js +5 -5
- package/dist/calendar/CalendarGridHead.vue.js +6 -6
- package/dist/calendar/CalendarGridRow.vue.js +10 -10
- package/dist/calendar/CalendarHeadCell.vue.js +8 -8
- package/dist/calendar/CalendarHeader.vue.js +10 -10
- package/dist/calendar/CalendarHeading.vue.js +16 -16
- package/dist/calendar/CalendarNextButton.vue.js +13 -13
- package/dist/calendar/CalendarPrevButton.vue.js +15 -15
- package/dist/card/Card.vue.js +16 -16
- package/dist/card/CardDescription.vue.js +7 -7
- package/dist/card/CardTitle.vue.js +7 -7
- package/dist/carousel/CarouselNext.vue.js +1 -1
- package/dist/carousel/CarouselPrevious.vue.js +1 -1
- package/dist/changelog/versions/components/index.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.37.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.37.d.ts.map +1 -0
- package/dist/changelog/versions/components/v2.0.38.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.38.d.ts.map +1 -0
- package/dist/checkbox/Checkbox.vue.js +9 -9
- package/dist/combobox/Combobox.vue.js +8 -8
- package/dist/combobox/ComboboxAnchor.vue.js +7 -7
- package/dist/combobox/ComboboxEmpty.vue.js +9 -9
- package/dist/combobox/ComboboxGroup.vue.js +12 -12
- package/dist/combobox/ComboboxInput.vue.js +3 -3
- package/dist/combobox/ComboboxItem.vue.js +9 -9
- package/dist/combobox/ComboboxItemIndicator.vue.js +9 -9
- package/dist/combobox/ComboboxList.vue.d.ts +9 -3
- package/dist/combobox/ComboboxList.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxList.vue.js +31 -22
- package/dist/combobox/ComboboxSeparator.vue.js +13 -13
- package/dist/combobox/ComboboxViewport.vue.js +7 -7
- package/dist/command/CommandEmpty.vue.js +9 -9
- package/dist/command/CommandGroup.vue.js +6 -6
- package/dist/command/CommandInput.vue.js +8 -8
- package/dist/command/CommandItem.vue.js +11 -11
- package/dist/command/CommandList.vue.js +9 -9
- package/dist/command/CommandSeparator.vue.js +10 -10
- package/dist/data-table/DataTable.vue.js +1 -1
- package/dist/date-picker/DatePicker.vue.js +1 -1
- package/dist/date-range-picker/DateRangePicker.vue.js +1 -1
- package/dist/dialog/DialogClose.vue.js +5 -5
- package/dist/dialog/DialogContent.vue.js +19 -18
- package/dist/dialog/DialogDescription.vue.js +7 -7
- package/dist/dialog/DialogOverlay.vue.js +8 -8
- package/dist/dialog/DialogScrollContent.vue.js +21 -20
- package/dist/dialog/DialogTitle.vue.js +8 -8
- package/dist/dialog/DialogTrigger.vue.js +7 -7
- package/dist/document-input/DocumentAutoComplete.vue.d.ts.map +1 -1
- package/dist/document-input/DocumentAutoComplete.vue.js +113 -108
- package/dist/dropdown-menu/DropdownMenuCheckboxItem.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +10 -3
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +31 -21
- package/dist/dropdown-menu/DropdownMenuGroup.vue.js +5 -5
- package/dist/dropdown-menu/DropdownMenuLabel.vue.js +11 -11
- package/dist/dropdown-menu/DropdownMenuRadioGroup.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuRadioItem.vue.js +13 -13
- package/dist/dropdown-menu/DropdownMenuSeparator.vue.js +6 -6
- package/dist/dropdown-menu/DropdownMenuSubContent.vue.js +5 -5
- package/dist/dropdown-menu/DropdownMenuSubTrigger.vue.js +9 -9
- package/dist/dropdown-menu/DropdownMenuTrigger.vue.js +7 -7
- package/dist/index.css +1 -1
- package/dist/index.js +112 -112
- package/dist/input/Input.vue.js +8 -8
- package/dist/label/Label.vue.js +5 -5
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +37 -8
- package/dist/multi-select/MultiSelectContent.vue.d.ts +3 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts.map +1 -1
- package/dist/multi-select/MultiSelectContent.vue.js +15 -15
- package/dist/multi-select/MultiSelectEmpty.vue.js +4 -4
- package/dist/multi-select/MultiSelectGroup.vue.js +9 -9
- package/dist/multi-select/MultiSelectItem.vue.js +14 -14
- package/dist/multi-select/MultiSelectLabel.vue.js +7 -7
- package/dist/multi-select/MultiSelectSeparator.vue.js +10 -10
- package/dist/multi-select/MultiSelectTrigger.vue.js +20 -20
- package/dist/multi-select/MultiSelectValue.vue.js +21 -21
- package/dist/pagination/Pagination.vue.js +10 -10
- package/dist/pagination/PaginationContent.vue.js +8 -8
- package/dist/pagination/PaginationEllipsis.vue.js +7 -7
- package/dist/pagination/PaginationFirst.vue.js +1 -1
- package/dist/pagination/PaginationLast.vue.js +1 -1
- package/dist/pagination/PaginationNext.vue.js +1 -1
- package/dist/pagination/PaginationPrevious.vue.js +1 -1
- package/dist/popover/PopoverAnchor.vue.js +6 -6
- package/dist/popover/PopoverContent.vue.d.ts +8 -2
- package/dist/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/popover/PopoverContent.vue.js +32 -23
- package/dist/popover/PopoverTrigger.vue.js +8 -8
- package/dist/radio-group/RadioGroup.vue.js +12 -12
- package/dist/radio-group/RadioGroupItem.vue.js +10 -10
- package/dist/range-calendar/RangeCalendar.vue.js +1 -1
- package/dist/range-calendar/RangeCalendarCell.vue.js +5 -5
- package/dist/range-calendar/RangeCalendarCellTrigger.vue.js +5 -5
- package/dist/range-calendar/RangeCalendarGrid.vue.js +7 -7
- package/dist/range-calendar/RangeCalendarGridBody.vue.js +6 -6
- package/dist/range-calendar/RangeCalendarGridHead.vue.js +6 -6
- package/dist/range-calendar/RangeCalendarGridRow.vue.js +7 -7
- package/dist/range-calendar/RangeCalendarHeadCell.vue.js +9 -9
- package/dist/range-calendar/RangeCalendarHeader.vue.js +11 -11
- package/dist/range-calendar/RangeCalendarHeading.vue.js +15 -15
- package/dist/range-calendar/RangeCalendarNextButton.vue.js +10 -10
- package/dist/range-calendar/RangeCalendarPrevButton.vue.js +11 -11
- package/dist/select/SelectContent.vue.d.ts +9 -2
- package/dist/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/select/SelectContent.vue.js +42 -33
- package/dist/select/SelectGroup.vue.js +8 -8
- package/dist/select/SelectItem.vue.js +10 -10
- package/dist/select/SelectItemText.vue.js +7 -7
- package/dist/select/SelectLabel.vue.js +5 -5
- package/dist/select/SelectScrollDownButton.vue.js +13 -13
- package/dist/select/SelectScrollUpButton.vue.js +14 -14
- package/dist/select/SelectSeparator.vue.js +9 -9
- package/dist/select/SelectTrigger.vue.js +2 -2
- package/dist/select/SelectValue.vue.js +6 -6
- package/dist/sheet/SheetClose.vue.js +8 -8
- package/dist/sheet/SheetContent.vue.d.ts +3 -0
- package/dist/sheet/SheetContent.vue.d.ts.map +1 -1
- package/dist/sheet/SheetContent.vue.js +26 -21
- package/dist/sheet/SheetDescription.vue.js +9 -9
- package/dist/sheet/SheetOverlay.vue.js +6 -6
- package/dist/sheet/SheetTitle.vue.js +8 -8
- package/dist/sheet/SheetTrigger.vue.js +8 -8
- package/dist/sidebar/Sidebar.vue.js +2 -2
- package/dist/sidebar/SidebarGroupAction.vue.js +10 -10
- package/dist/sidebar/SidebarGroupLabel.vue.js +11 -11
- package/dist/sidebar/SidebarMenuAction.vue.js +1 -1
- package/dist/sidebar/SidebarMenuButton.vue.js +17 -17
- package/dist/sidebar/SidebarMenuButtonChild.vue.js +8 -8
- package/dist/sidebar/SidebarMenuSubButton.vue.js +7 -7
- package/dist/sonner/Toast.vue.js +5 -5
- package/dist/stepper/StepperDescription.vue.js +9 -9
- package/dist/stepper/StepperIndicator.vue.js +6 -6
- package/dist/stepper/StepperItem.vue.js +7 -7
- package/dist/stepper/StepperSeparator.vue.js +3 -3
- package/dist/stepper/StepperTitle.vue.js +7 -7
- package/dist/stepper/StepperTrigger.vue.js +5 -5
- package/dist/switch/Switch.vue.js +8 -8
- package/dist/tabs/Tabs.vue.js +10 -10
- package/dist/tabs/TabsContent.vue.js +6 -6
- package/dist/tabs/TabsList.vue.d.ts +412 -5
- package/dist/tabs/TabsList.vue.d.ts.map +1 -1
- package/dist/tabs/TabsList.vue.js +97 -20
- package/dist/tabs/TabsTrigger.vue.d.ts +1 -1
- package/dist/tabs/TabsTrigger.vue.d.ts.map +1 -1
- package/dist/tabs/TabsTrigger.vue.js +17 -14
- package/dist/tabs/index.d.ts +2 -5
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +10 -24
- package/dist/tabs/tabs.variants.d.ts +6 -0
- package/dist/tabs/tabs.variants.d.ts.map +1 -0
- package/dist/tabs/tabs.variants.js +18 -0
- package/dist/tabs/useTabsOverflow.d.ts +20 -0
- package/dist/tabs/useTabsOverflow.d.ts.map +1 -0
- package/dist/tabs/useTabsOverflow.js +51 -0
- package/dist/tag/Tag.vue.js +13 -13
- package/dist/time-picker/TimePicker.vue.js +2 -2
- package/dist/tooltip/TooltipTrigger.vue.js +8 -8
- package/dist/upload/UploadContent.vue.js +12 -12
- package/dist/upload/UploadContentDescription.vue.js +8 -8
- package/dist/upload/UploadContentLoadingDescription.vue.js +9 -9
- package/dist/upload/UploadContentSuccessDescription.vue.js +7 -7
- package/dist/upload/UploadContentTitle.vue.js +5 -5
- package/dist/upload/UploadFileItem.vue.js +7 -7
- package/dist/upload/UploadRoot.vue.js +28 -28
- package/package.json +1 -1
- /package/dist/node_modules/.pnpm/{@tanstack_vue-table@8.21.3_vue@3.5.19_typescript@5.8.3_ → @tanstack_vue-table@8.21.3_vue@3.5.16_typescript@5.8.3_}/node_modules/@tanstack/vue-table/build/lib/index.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/Icon.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/createLucideIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/arrow-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/arrow-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/calendar.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/check.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevrons-left.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/chevrons-right.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle-check.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle-x.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/circle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/ellipsis.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/info.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/loader-circle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/search.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/triangle-alert.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/triangle.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/icons/x.js +0 -0
- /package/dist/node_modules/.pnpm/{lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_ → lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_}/node_modules/lucide-vue-next/dist/esm/shared/src/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{reka-ui@2.5.0_typescript@5.8.3_vue@3.5.19_typescript@5.8.3_ → reka-ui@2.5.0_typescript@5.8.3_vue@3.5.16_typescript@5.8.3_}/node_modules/reka-ui/dist/date/comparators.js +0 -0
package/dist/tabs/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
export { default as AgtTabs } from './Tabs.vue';
|
|
3
2
|
export { default as AgtTabsContent } from './TabsContent.vue';
|
|
4
3
|
export { default as AgtTabsList } from './TabsList.vue';
|
|
5
4
|
export { default as AgtTabsTrigger } from './TabsTrigger.vue';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
export type TabsTriggerVariants = VariantProps<typeof tabsTriggerVariants>;
|
|
5
|
+
export { tabsTriggerVariants } from './tabs.variants';
|
|
6
|
+
export type { TabsTriggerVariants } from './tabs.variants';
|
|
10
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/tabs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/tabs/index.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import {
|
|
6
|
-
const e = r(
|
|
7
|
-
"data-[state=active]:text-primary-500 hover:text-primary-500 cursor-pointer bg-background disabled:cursor-not-allowed font-bold text-sm transition-all duration-300 flex-1 inline-flex relative items-center gap-1.5 whitespace-nowrap",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "hover:bg-linear-(--tab-trigger-background) after:w-15 after:-rotate-20 hover:after:bg-linear-(--tab-trigger-background) rounded-t-md border border-transparent p-4 text-gray-600 after:absolute after:-bottom-[21%] after:-right-3 after:-z-10 after:h-[110%] after:rounded-md after:bg-neutral-100 disabled:hover:bg-none disabled:hover:text-gray-600 disabled:hover:after:bg-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 h-full",
|
|
12
|
-
simple: "data-[state=active]:border-primary-500 border-b border-neutral-200 p-2 min-w-40"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
variant: "default"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
import { default as r } from "./Tabs.vue.js";
|
|
2
|
+
import { default as o } from "./TabsContent.vue.js";
|
|
3
|
+
import { default as f } from "./TabsList.vue.js";
|
|
4
|
+
import { default as T } from "./TabsTrigger.vue.js";
|
|
5
|
+
import { tabsTriggerVariants as m } from "./tabs.variants.js";
|
|
20
6
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
r as AgtTabs,
|
|
8
|
+
o as AgtTabsContent,
|
|
9
|
+
f as AgtTabsList,
|
|
10
|
+
T as AgtTabsTrigger,
|
|
11
|
+
m as tabsTriggerVariants
|
|
26
12
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const tabsTriggerVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "simple" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type TabsTriggerVariants = VariantProps<typeof tabsTriggerVariants>;
|
|
6
|
+
//# sourceMappingURL=tabs.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.variants.d.ts","sourceRoot":"","sources":["../../src/tabs/tabs.variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAG5D,eAAO,MAAM,mBAAmB;;8EAc/B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r(
|
|
3
|
+
"data-[state=active]:text-primary-500 hover:text-primary-500 cursor-pointer bg-background disabled:cursor-not-allowed font-bold text-sm transition-all duration-300 flex-1 inline-flex relative items-center gap-1.5 whitespace-nowrap",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "hover:bg-linear-(--tab-trigger-background) after:w-15 after:-rotate-20 hover:after:bg-linear-(--tab-trigger-background) rounded-t-md border border-transparent p-4 text-gray-600 after:absolute after:-bottom-[21%] after:-right-3 after:-z-10 after:h-[110%] after:rounded-md after:bg-neutral-100 disabled:hover:bg-none disabled:hover:text-gray-600 disabled:hover:after:bg-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 h-full",
|
|
8
|
+
simple: "data-[state=active]:border-primary-500 border-b border-neutral-200 p-2 min-w-40"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: "default"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
t as tabsTriggerVariants
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentPublicInstance, Ref } from 'vue';
|
|
2
|
+
export interface OverflowTab {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useTabsOverflow(listRef: Ref<ComponentPublicInstance | null>, wrapperRef: Ref<HTMLElement | null>): {
|
|
8
|
+
overflowTabs: Ref<{
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}[], OverflowTab[] | {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
}[]>;
|
|
17
|
+
hasOverflow: Ref<boolean, boolean>;
|
|
18
|
+
updateOverflow: () => void;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useTabsOverflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabsOverflow.d.ts","sourceRoot":"","sources":["../../src/tabs/useTabsOverflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAIvD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,eAAe,CAC7B,OAAO,EAAE,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,EAC5C,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;;YAT/B,MAAM;eACH,MAAM;kBACH,OAAO;;YAFb,MAAM;eACH,MAAM;kBACH,OAAO;;;;EAiGlB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ref as b, onMounted as O, nextTick as P, computed as A } from "vue";
|
|
2
|
+
import { useResizeObserver as W, useMutationObserver as x } from "@vueuse/core";
|
|
3
|
+
const E = 180;
|
|
4
|
+
function S(l, i) {
|
|
5
|
+
const v = b([]), p = b(!1);
|
|
6
|
+
let a = !1;
|
|
7
|
+
const s = () => {
|
|
8
|
+
if (a || !l.value || !i.value) return;
|
|
9
|
+
const o = l.value.$el;
|
|
10
|
+
if (o) {
|
|
11
|
+
a = !0;
|
|
12
|
+
try {
|
|
13
|
+
const n = Array.from(
|
|
14
|
+
o.querySelectorAll('[data-slot="tabs-trigger"]')
|
|
15
|
+
);
|
|
16
|
+
n.forEach((r) => {
|
|
17
|
+
const t = r.parentElement;
|
|
18
|
+
t && (t.style.removeProperty("position"), t.style.removeProperty("width"), t.style.removeProperty("height"), t.style.removeProperty("padding"), t.style.removeProperty("margin"), t.style.removeProperty("overflow"), t.style.removeProperty("clip-path"), r.removeAttribute("tabindex"));
|
|
19
|
+
});
|
|
20
|
+
const u = i.value.clientWidth;
|
|
21
|
+
if (u === 0) return;
|
|
22
|
+
let f = 0, c = !1;
|
|
23
|
+
const d = [], w = 8;
|
|
24
|
+
n.forEach((r, t) => {
|
|
25
|
+
var m;
|
|
26
|
+
const e = r.parentElement;
|
|
27
|
+
if (!e) return;
|
|
28
|
+
const y = e.offsetWidth, h = t > 0 ? y + w : y, g = t === n.length - 1 && !c ? u : u - E;
|
|
29
|
+
f + h > g ? (c = !0, e.style.position = "absolute", e.style.width = "1px", e.style.height = "1px", e.style.padding = "0", e.style.margin = "-1px", e.style.overflow = "hidden", e.style.clipPath = "inset(50%)", r.setAttribute("tabindex", "-1"), d.push({
|
|
30
|
+
id: r.getAttribute("data-value") || String(t),
|
|
31
|
+
label: ((m = r.textContent) == null ? void 0 : m.trim()) ?? "",
|
|
32
|
+
isActive: r.getAttribute("data-state") === "active"
|
|
33
|
+
})) : f += h;
|
|
34
|
+
}), v.value = d, p.value = c;
|
|
35
|
+
} finally {
|
|
36
|
+
a = !1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return O(() => P(s)), W(i, s), x(
|
|
41
|
+
A(() => {
|
|
42
|
+
var o;
|
|
43
|
+
return (o = l.value) == null ? void 0 : o.$el;
|
|
44
|
+
}),
|
|
45
|
+
s,
|
|
46
|
+
{ childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-state"] }
|
|
47
|
+
), { overflowTabs: v, hasOverflow: p, updateOverflow: s };
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
S as useTabsOverflow
|
|
51
|
+
};
|
package/dist/tag/Tag.vue.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as
|
|
2
|
-
import { Primitive as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { tagVariants as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as r, createBlock as i, openBlock as o, unref as s, normalizeClass as n, withCtx as l, renderSlot as p } from "vue";
|
|
2
|
+
import { Primitive as c } from "reka-ui";
|
|
3
|
+
import { cn as m } from "../lib/utils.js";
|
|
4
|
+
import { tagVariants as d } from "./index.js";
|
|
5
|
+
const g = /* @__PURE__ */ r({
|
|
6
6
|
__name: "Tag",
|
|
7
7
|
props: {
|
|
8
8
|
variant: {},
|
|
9
9
|
size: {},
|
|
10
10
|
class: {},
|
|
11
11
|
asChild: { type: Boolean },
|
|
12
|
-
as: { default: "div" }
|
|
12
|
+
as: { type: [String, Object, Function], default: "div" }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return (a, f) => (
|
|
14
|
+
setup(t) {
|
|
15
|
+
const e = t;
|
|
16
|
+
return (a, f) => (o(), i(s(c), {
|
|
17
17
|
"data-slot": "tag",
|
|
18
18
|
as: a.as,
|
|
19
19
|
"as-child": a.asChild,
|
|
20
|
-
class:
|
|
20
|
+
class: n(s(m)(s(d)({ variant: a.variant, size: a.size }), e.class))
|
|
21
21
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
|
|
22
|
+
default: l(() => [
|
|
23
|
+
p(a.$slots, "default")
|
|
24
24
|
]),
|
|
25
25
|
_: 3
|
|
26
26
|
}, 8, ["as", "as-child", "class"]));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
g as default
|
|
31
31
|
};
|
|
@@ -4,8 +4,8 @@ import { useVModel as $ } from "@vueuse/core";
|
|
|
4
4
|
import "../button/index.js";
|
|
5
5
|
import f from "../input/Input.vue.js";
|
|
6
6
|
import o from "../button/Button.vue.js";
|
|
7
|
-
import b from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.
|
|
8
|
-
import v from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.
|
|
7
|
+
import b from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-up.js";
|
|
8
|
+
import v from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js";
|
|
9
9
|
const w = { class: "flex flex-col items-center gap-1" }, B = { class: "flex flex-col items-center gap-1" }, q = /* @__PURE__ */ C({
|
|
10
10
|
__name: "TimePicker",
|
|
11
11
|
props: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createBlock as n, openBlock as p, unref as i, mergeProps as a, withCtx as l, renderSlot as s } from "vue";
|
|
2
2
|
import { TooltipTrigger as c } from "reka-ui";
|
|
3
|
-
const
|
|
3
|
+
const u = /* @__PURE__ */ r({
|
|
4
4
|
__name: "TooltipTrigger",
|
|
5
5
|
props: {
|
|
6
6
|
reference: {},
|
|
7
7
|
asChild: { type: Boolean },
|
|
8
|
-
as: {}
|
|
8
|
+
as: { type: [String, Object, Function] }
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const
|
|
12
|
-
return (
|
|
13
|
-
default:
|
|
14
|
-
|
|
11
|
+
const t = e;
|
|
12
|
+
return (o, f) => (p(), n(i(c), a({ "data-slot": "tooltip-trigger" }, t), {
|
|
13
|
+
default: l(() => [
|
|
14
|
+
s(o.$slots, "default")
|
|
15
15
|
]),
|
|
16
16
|
_: 3
|
|
17
17
|
}, 16));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
u as default
|
|
22
22
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Primitive as
|
|
3
|
-
import { cn as
|
|
4
|
-
const C = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as o, createBlock as l, openBlock as r, unref as a, normalizeClass as n, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
+
import { Primitive as c } from "reka-ui";
|
|
3
|
+
import { cn as f } from "../lib/utils.js";
|
|
4
|
+
const C = /* @__PURE__ */ o({
|
|
5
5
|
__name: "UploadContent",
|
|
6
6
|
props: {
|
|
7
7
|
class: {},
|
|
8
8
|
asChild: { type: Boolean },
|
|
9
|
-
as: { default: "div" }
|
|
9
|
+
as: { type: [String, Object, Function], default: "div" }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
13
|
-
return (
|
|
11
|
+
setup(s) {
|
|
12
|
+
const e = s;
|
|
13
|
+
return (t, d) => (r(), l(a(c), {
|
|
14
14
|
"data-slot": "upload-content",
|
|
15
|
-
as:
|
|
16
|
-
"as-child":
|
|
15
|
+
as: t.as,
|
|
16
|
+
"as-child": t.asChild,
|
|
17
17
|
class: n(
|
|
18
|
-
|
|
18
|
+
a(f)("flex h-full w-max flex-row flex-wrap items-start justify-start gap-y-2", e.class)
|
|
19
19
|
)
|
|
20
20
|
}, {
|
|
21
21
|
default: i(() => [
|
|
22
|
-
p(
|
|
22
|
+
p(t.$slots, "default")
|
|
23
23
|
]),
|
|
24
24
|
_: 3
|
|
25
25
|
}, 8, ["as", "as-child", "class"]));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, createBlock as l, openBlock as i, unref as t, normalizeClass as r, withCtx as c, renderSlot as p } from "vue";
|
|
2
2
|
import { Primitive as d } from "reka-ui";
|
|
3
3
|
import { cn as m } from "../lib/utils.js";
|
|
4
4
|
import { injectUploadRootContext as f } from "./upload-context.js";
|
|
5
|
-
const v = /* @__PURE__ */
|
|
5
|
+
const v = /* @__PURE__ */ s({
|
|
6
6
|
__name: "UploadContentDescription",
|
|
7
7
|
props: {
|
|
8
8
|
class: {},
|
|
9
9
|
asChild: { type: Boolean },
|
|
10
|
-
as: { default: "h8" }
|
|
10
|
+
as: { type: [String, Object, Function], default: "h8" }
|
|
11
11
|
},
|
|
12
12
|
setup(a) {
|
|
13
|
-
const
|
|
14
|
-
return (o, u) => (i(),
|
|
13
|
+
const n = a, e = f();
|
|
14
|
+
return (o, u) => (i(), l(t(d), {
|
|
15
15
|
"data-slot": "upload-content-description",
|
|
16
16
|
as: o.as,
|
|
17
17
|
"as-child": o.asChild,
|
|
@@ -19,14 +19,14 @@ const v = /* @__PURE__ */ l({
|
|
|
19
19
|
t(m)(
|
|
20
20
|
"font-nunito block w-full items-start text-start text-sm font-normal text-gray-900",
|
|
21
21
|
t(e).isUploading.value || t(e).isUploadingComplete.value ? "hidden" : "",
|
|
22
|
-
|
|
22
|
+
n.class
|
|
23
23
|
)
|
|
24
24
|
),
|
|
25
25
|
role: "heading",
|
|
26
26
|
"aria-level": "8"
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
28
|
+
default: c(() => [
|
|
29
|
+
p(o.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
32
|
}, 8, ["as", "as-child", "class"]));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, createBlock as l, openBlock as i, unref as o, normalizeClass as r, withCtx as c, renderSlot as d } from "vue";
|
|
2
2
|
import { Primitive as p } from "reka-ui";
|
|
3
3
|
import { cn as m } from "../lib/utils.js";
|
|
4
4
|
import { injectUploadRootContext as f } from "./upload-context.js";
|
|
5
|
-
const _ = /* @__PURE__ */
|
|
5
|
+
const _ = /* @__PURE__ */ s({
|
|
6
6
|
__name: "UploadContentLoadingDescription",
|
|
7
7
|
props: {
|
|
8
8
|
class: {},
|
|
9
9
|
asChild: { type: Boolean },
|
|
10
|
-
as: { default: "h8" }
|
|
10
|
+
as: { type: [String, Object, Function], default: "h8" }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(e) {
|
|
13
|
+
const a = e, n = f();
|
|
14
14
|
return (t, u) => (i(), l(o(p), {
|
|
15
15
|
"data-slot": "upload-content-loading-description",
|
|
16
16
|
as: t.as,
|
|
@@ -18,15 +18,15 @@ const _ = /* @__PURE__ */ n({
|
|
|
18
18
|
class: r(
|
|
19
19
|
o(m)(
|
|
20
20
|
"font-nunito hidden w-full items-start text-start text-sm font-normal text-gray-900",
|
|
21
|
-
o(
|
|
22
|
-
|
|
21
|
+
o(n).isUploading.value ? "block" : "",
|
|
22
|
+
a.class
|
|
23
23
|
)
|
|
24
24
|
),
|
|
25
25
|
role: "heading",
|
|
26
26
|
"aria-level": "8"
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
28
|
+
default: c(() => [
|
|
29
|
+
d(t.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
32
|
}, 8, ["as", "as-child", "class"]));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, createBlock as l, openBlock as r, unref as e, normalizeClass as i, withCtx as c, renderSlot as p } from "vue";
|
|
2
2
|
import { Primitive as d } from "reka-ui";
|
|
3
3
|
import { cn as m } from "../lib/utils.js";
|
|
4
|
-
import { injectUploadRootContext as
|
|
5
|
-
const
|
|
4
|
+
import { injectUploadRootContext as u } from "./upload-context.js";
|
|
5
|
+
const _ = /* @__PURE__ */ n({
|
|
6
6
|
__name: "UploadContentSuccessDescription",
|
|
7
7
|
props: {
|
|
8
8
|
class: {},
|
|
9
9
|
asChild: { type: Boolean },
|
|
10
|
-
as: { default: "h8" }
|
|
10
|
+
as: { type: [String, Object, Function], default: "h8" }
|
|
11
11
|
},
|
|
12
12
|
setup(o) {
|
|
13
|
-
const s = o, a =
|
|
14
|
-
return (t,
|
|
13
|
+
const s = o, a = u();
|
|
14
|
+
return (t, f) => (r(), l(e(d), {
|
|
15
15
|
"data-slot": "upload-content-success-description",
|
|
16
16
|
as: t.as,
|
|
17
17
|
"as-child": t.asChild,
|
|
@@ -33,5 +33,5 @@ const g = /* @__PURE__ */ l({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
_ as default
|
|
37
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as l, createBlock as n, openBlock as i, unref as t, normalizeClass as r, withCtx as p, renderSlot as
|
|
2
|
-
import { Primitive as
|
|
1
|
+
import { defineComponent as l, createBlock as n, openBlock as i, unref as t, normalizeClass as r, withCtx as p, renderSlot as c } from "vue";
|
|
2
|
+
import { Primitive as d } from "reka-ui";
|
|
3
3
|
import { cn as m } from "../lib/utils.js";
|
|
4
4
|
import { injectUploadRootContext as f } from "./upload-context.js";
|
|
5
5
|
const _ = /* @__PURE__ */ l({
|
|
@@ -7,11 +7,11 @@ const _ = /* @__PURE__ */ l({
|
|
|
7
7
|
props: {
|
|
8
8
|
class: {},
|
|
9
9
|
asChild: { type: Boolean },
|
|
10
|
-
as: { default: "p" }
|
|
10
|
+
as: { type: [String, Object, Function], default: "p" }
|
|
11
11
|
},
|
|
12
12
|
setup(a) {
|
|
13
13
|
const s = a, e = f();
|
|
14
|
-
return (o, u) => (i(), n(t(
|
|
14
|
+
return (o, u) => (i(), n(t(d), {
|
|
15
15
|
"data-slot": "upload-content-title",
|
|
16
16
|
as: o.as,
|
|
17
17
|
"as-child": o.asChild,
|
|
@@ -24,7 +24,7 @@ const _ = /* @__PURE__ */ l({
|
|
|
24
24
|
)
|
|
25
25
|
}, {
|
|
26
26
|
default: p(() => [
|
|
27
|
-
|
|
27
|
+
c(o.$slots, "default")
|
|
28
28
|
]),
|
|
29
29
|
_: 3
|
|
30
30
|
}, 8, ["as", "as-child", "class"]));
|
|
@@ -3,13 +3,13 @@ import { Primitive as g } from "reka-ui";
|
|
|
3
3
|
import { formatBytes as v } from "../composables/use-file-upload.js";
|
|
4
4
|
import { cn as x } from "../lib/utils.js";
|
|
5
5
|
import { injectUploadRootContext as _ } from "./upload-context.js";
|
|
6
|
-
const y = { class: "flex w-full items-center justify-between gap-1" }, L = { class: "flex w-full items-center gap-1" }, V = { class: "text-xs font-semibold text-gray-800" }, H = { class: "place-self-end text-xs font-normal text-gray-600" }, B = { class: "flex w-full items-center justify-center gap-1" }, M = { class: "h-1 w-full rounded-full" },
|
|
6
|
+
const y = { class: "flex w-full items-center justify-between gap-1" }, L = { class: "flex w-full items-center gap-1" }, V = { class: "text-xs font-semibold text-gray-800" }, H = { class: "place-self-end text-xs font-normal text-gray-600" }, B = { class: "flex w-full items-center justify-center gap-1" }, M = { class: "h-1 w-full rounded-full" }, b = { class: "place-self-end text-xs font-normal text-gray-600" }, U = /* @__PURE__ */ f({
|
|
7
7
|
__name: "UploadFileItem",
|
|
8
8
|
props: {
|
|
9
9
|
file: {},
|
|
10
10
|
class: {},
|
|
11
11
|
asChild: { type: Boolean },
|
|
12
|
-
as: { default: "div" }
|
|
12
|
+
as: { type: [String, Object, Function], default: "div" }
|
|
13
13
|
},
|
|
14
14
|
setup(r) {
|
|
15
15
|
const n = r, a = _(), o = d(0);
|
|
@@ -68,8 +68,8 @@ const y = { class: "flex w-full items-center justify-between gap-1" }, L = { cla
|
|
|
68
68
|
]),
|
|
69
69
|
e("div", {
|
|
70
70
|
role: "button",
|
|
71
|
-
onClick: l[0] || (l[0] = w((
|
|
72
|
-
},
|
|
71
|
+
onClick: l[0] || (l[0] = w((j) => i(a).removeFile(t.file.id), ["stop", "prevent"]))
|
|
72
|
+
}, l[2] || (l[2] = [
|
|
73
73
|
e("svg", {
|
|
74
74
|
width: "10",
|
|
75
75
|
height: "10",
|
|
@@ -93,14 +93,14 @@ const y = { class: "flex w-full items-center justify-between gap-1" }, L = { cla
|
|
|
93
93
|
])
|
|
94
94
|
])
|
|
95
95
|
], -1)
|
|
96
|
-
])
|
|
96
|
+
]))
|
|
97
97
|
]),
|
|
98
|
-
e("span",
|
|
98
|
+
e("span", b, s(i(v)(t.file.file.size, 2)), 1)
|
|
99
99
|
]),
|
|
100
100
|
_: 1
|
|
101
101
|
}, 8, ["as", "as-child", "class"]));
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
U as default
|
|
106
106
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as F, computed as y, createBlock as h, openBlock as C, unref as o, withCtx as B, createElementVNode as d, normalizeClass as z, createVNode as U, renderSlot as _ } from "vue";
|
|
2
2
|
import { useFileUpload as b } from "../composables/use-file-upload.js";
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
3
|
+
import S from "../illustration/Illustration.vue.js";
|
|
4
|
+
import { cn as R } from "../lib/utils.js";
|
|
5
5
|
import { Primitive as k } from "reka-ui";
|
|
6
6
|
import { provideUploadRootContext as w } from "./upload-context.js";
|
|
7
|
-
const M = { class: "relative" },
|
|
7
|
+
const M = { class: "relative" }, $ = /* @__PURE__ */ F({
|
|
8
8
|
__name: "UploadRoot",
|
|
9
9
|
props: {
|
|
10
10
|
onFilesAdded: { type: Function },
|
|
@@ -16,21 +16,21 @@ const M = { class: "relative" }, D = /* @__PURE__ */ F({
|
|
|
16
16
|
initialFiles: {},
|
|
17
17
|
class: {},
|
|
18
18
|
asChild: { type: Boolean },
|
|
19
|
-
as: {}
|
|
19
|
+
as: { type: [String, Object, Function] }
|
|
20
20
|
},
|
|
21
21
|
setup(f) {
|
|
22
|
-
const l = f,
|
|
23
|
-
files:
|
|
22
|
+
const l = f, c = y(() => l.maxSizeMB ? l.maxSizeMB * 1024 * 1024 : 5 * 1024 * 1024), {
|
|
23
|
+
files: i,
|
|
24
24
|
errors: p,
|
|
25
|
-
dropzoneRef:
|
|
25
|
+
dropzoneRef: m,
|
|
26
26
|
inputRef: g,
|
|
27
|
-
isUploading:
|
|
28
|
-
isUploadingComplete:
|
|
27
|
+
isUploading: t,
|
|
28
|
+
isUploadingComplete: a,
|
|
29
29
|
openFileDialog: u,
|
|
30
30
|
removeFile: v
|
|
31
31
|
} = b({
|
|
32
32
|
accept: l.accept,
|
|
33
|
-
maxSize:
|
|
33
|
+
maxSize: c.value,
|
|
34
34
|
initialFiles: l.initialFiles || [],
|
|
35
35
|
maxFiles: l.maxFiles || 5,
|
|
36
36
|
multiple: l.multiple || !1,
|
|
@@ -38,30 +38,30 @@ const M = { class: "relative" }, D = /* @__PURE__ */ F({
|
|
|
38
38
|
onFilesChange: l.onFilesChange
|
|
39
39
|
});
|
|
40
40
|
return w({
|
|
41
|
-
isUploading:
|
|
42
|
-
isUploadingComplete:
|
|
43
|
-
files:
|
|
41
|
+
isUploading: t,
|
|
42
|
+
isUploadingComplete: a,
|
|
43
|
+
files: i,
|
|
44
44
|
errors: p,
|
|
45
45
|
removeFile: v,
|
|
46
|
-
handleUpdateProgressOnParent: (s,
|
|
47
|
-
const e =
|
|
46
|
+
handleUpdateProgressOnParent: (s, r) => {
|
|
47
|
+
const e = i.value.find((n) => n.id === s);
|
|
48
48
|
if (e) {
|
|
49
|
-
|
|
49
|
+
t.value = !0, e.progress = 0, e.uploadedBytes = 0;
|
|
50
50
|
const n = setInterval(() => {
|
|
51
|
-
if (
|
|
51
|
+
if (i.value.every((x) => x.progress === 100)) {
|
|
52
52
|
setTimeout(() => {
|
|
53
|
-
|
|
53
|
+
t.value = !1, a.value = !0;
|
|
54
54
|
}, 1e3), clearInterval(n);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
e.progress !== void 0 && e.uploadedBytes !== void 0 && e.progress < 100 && (e.uploadedBytes += 5e4, e.progress = Math.min(
|
|
58
58
|
100,
|
|
59
59
|
Math.floor(e.uploadedBytes * 100 / (e.file.size || 1))
|
|
60
|
-
),
|
|
60
|
+
), r(e.progress));
|
|
61
61
|
}, 60);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
}), (s,
|
|
64
|
+
}), (s, r) => (C(), h(o(k), {
|
|
65
65
|
as: "div",
|
|
66
66
|
"data-slot": "upload",
|
|
67
67
|
class: "flex flex-col gap-2"
|
|
@@ -70,14 +70,14 @@ const M = { class: "relative" }, D = /* @__PURE__ */ F({
|
|
|
70
70
|
d("div", M, [
|
|
71
71
|
d("div", {
|
|
72
72
|
ref_key: "dropzoneRef",
|
|
73
|
-
ref:
|
|
73
|
+
ref: m,
|
|
74
74
|
role: "button",
|
|
75
75
|
class: z(
|
|
76
|
-
o(
|
|
76
|
+
o(R)(
|
|
77
77
|
"border-dashed-neutral-400 relative flex cursor-default flex-row flex-nowrap items-center justify-start gap-4 overflow-hidden rounded-2xl border-2 border-dashed bg-gray-100 p-5 transition-colors data-[dragging=true]:opacity-80"
|
|
78
78
|
)
|
|
79
79
|
),
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: r[0] || (r[0] = //@ts-ignore
|
|
81
81
|
(...e) => o(u) && o(u)(...e))
|
|
82
82
|
}, [
|
|
83
83
|
d("input", {
|
|
@@ -86,15 +86,15 @@ const M = { class: "relative" }, D = /* @__PURE__ */ F({
|
|
|
86
86
|
"aria-label": "Upload file",
|
|
87
87
|
type: "file"
|
|
88
88
|
}, null, 512),
|
|
89
|
-
U(
|
|
90
|
-
illustration: o(
|
|
89
|
+
U(S, {
|
|
90
|
+
illustration: o(t) || o(a) ? "filteringUpload" : "cloudUpload",
|
|
91
91
|
class: "size-12 text-neutral-500",
|
|
92
92
|
width: 48,
|
|
93
93
|
height: 48
|
|
94
94
|
}, null, 8, ["illustration"]),
|
|
95
95
|
_(s.$slots, "default", {
|
|
96
|
-
isUploading: o(
|
|
97
|
-
files: o(
|
|
96
|
+
isUploading: o(t),
|
|
97
|
+
files: o(i),
|
|
98
98
|
errors: o(p)
|
|
99
99
|
})
|
|
100
100
|
], 2)
|
|
@@ -105,5 +105,5 @@ const M = { class: "relative" }, D = /* @__PURE__ */ F({
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
$ as default
|
|
109
109
|
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|