@comfyorg/design-system 1.0.1 → 1.2.0
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/README.md +89 -9
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +2 -0
- package/dist/badge/CreditBadge.vue.d.ts +7 -0
- package/dist/badge/CreditBadge.vue.js +35 -0
- package/dist/badge/badge.variants.d.ts +12 -0
- package/dist/button/Button.vue.d.ts +31 -0
- package/dist/button/Button.vue.js +2 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +37 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +15 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +2 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +2 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +2 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +57 -0
- package/dist/card/card.variants.d.ts +11 -0
- package/dist/chart/Chart.vue.d.ts +12 -0
- package/dist/chart/Chart.vue.js +180 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +49 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +2 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +23 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +22 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +28 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +34 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +73 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +41 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +93 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +12 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +2 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +60 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +36 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +53 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +54 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +15 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +141 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +58 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +107 -0
- package/dist/common/textTickerUtils.d.ts +1 -0
- package/dist/components.css +44 -0
- package/dist/composables/useAttrsClass.d.ts +12 -0
- package/dist/composables/useAttrsClass.js +18 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +18 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +27 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +27 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +19 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +61 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +72 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +25 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +24 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +73 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +33 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +24 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +24 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +27 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +35 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +55 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +38 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +2 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +39 -0
- package/dist/dialog/types.d.ts +6 -0
- package/dist/dialog/types.js +0 -0
- package/dist/field/Field.vue.d.ts +19 -0
- package/dist/field/Field.vue.js +42 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +24 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +39 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +24 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +28 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +18 -0
- package/dist/field/field.variants.d.ts +11 -0
- package/dist/hover-card/HoverCard.vue.d.ts +18 -0
- package/dist/hover-card/HoverCard.vue.js +26 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +68 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +23 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +33 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +40 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +31 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +32 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +2 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +68 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +2 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +2 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +2 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +2 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +22 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +124 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +2 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +28 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +19 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +28 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +32 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +62 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +52 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +2 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +79 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +2 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +2 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +35 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +2 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +2 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +2 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +2 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +2 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +2 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +2 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +2 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +2 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +15 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +7 -0
- package/dist/menu/mouseDownUtil.d.ts +3 -0
- package/dist/menu/types.d.ts +69 -0
- package/dist/menu/types.js +0 -0
- package/dist/menu/usePointMenu.d.ts +19 -0
- package/dist/menu/usePointMenu.js +56 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +75 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +15 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +137 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +2 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +2 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +42 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +16 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +75 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +35 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +35 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +25 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +56 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +140 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +91 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +13 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +45 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +42 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +104 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +234 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +127 -0
- package/dist/search-input/searchInput.variants.d.ts +45 -0
- package/dist/select/DropdownControl.vue.d.ts +16 -0
- package/dist/select/DropdownControl.vue.js +48 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +2 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +2 -0
- package/dist/select/SelectItem.vue.d.ts +18 -0
- package/dist/select/SelectItem.vue.js +2 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +2 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +2 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +2 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +2 -0
- package/dist/select/types.d.ts +4 -0
- package/dist/select/types.js +0 -0
- package/dist/select/useSelectSearch.d.ts +3 -0
- package/dist/select/useSelectSearch.js +15 -0
- package/dist/shared/Badge-D3uWa3yk.js +92 -0
- package/dist/shared/Button-CilmsOkY.js +141 -0
- package/dist/shared/Card-l7baUdn0.js +34 -0
- package/dist/shared/CardFooter-BM6EmVi7.js +21 -0
- package/dist/shared/CardHeader-B5To28Jp.js +21 -0
- package/dist/shared/ContextMenuContent-CNQHJQ81.js +64 -0
- package/dist/shared/DialogTitle-CfkkTGuU.js +43 -0
- package/dist/shared/Input-39RLwDr2.js +38 -0
- package/dist/shared/InputGroup-kjQKkhyB.js +25 -0
- package/dist/shared/InputGroupAddon-DLDRT0CQ.js +38 -0
- package/dist/shared/InputGroupButton-BoEp2apg.js +41 -0
- package/dist/shared/InputGroupInput-E2MlEVUU.js +32 -0
- package/dist/shared/Label-Cx_lFofI.js +36 -0
- package/dist/shared/MenuAction-BdghJ23k.js +124 -0
- package/dist/shared/MenuContent-ChqlM3xA.js +80 -0
- package/dist/shared/MenuItemContent--dPNoBmU.js +69 -0
- package/dist/shared/MenuItems-BJKetPV-.js +69 -0
- package/dist/shared/MenuRadioGroup-Bpjt9sHI.js +65 -0
- package/dist/shared/MenuRadioItem-h7hh_RGU.js +36 -0
- package/dist/shared/MenuSeparator-Dm6CkPqB.js +28 -0
- package/dist/shared/MenuSub-Dbnj2w-X.js +23 -0
- package/dist/shared/MenuSubContent-M-g3fllh.js +69 -0
- package/dist/shared/MenuSubTrigger-D6-3s2NL.js +35 -0
- package/dist/shared/MenuSubmenu-QHWMyfKF.js +43 -0
- package/dist/shared/MultiSelectContent-c1D5avjh.js +162 -0
- package/dist/shared/MultiSelectTrigger-lmuXqETa.js +52 -0
- package/dist/shared/OverlayIcon-DntJI-mm.js +45 -0
- package/dist/shared/SearchableSingleSelect-Dnti1kqJ.js +184 -0
- package/dist/shared/Select-CP3OZjtL.js +33 -0
- package/dist/shared/SelectContent-C8aNlcFf.js +91 -0
- package/dist/shared/SelectItem-tU4CIa5J.js +42 -0
- package/dist/shared/SelectScrollDownButton-Dvig5MVc.js +30 -0
- package/dist/shared/SelectScrollUpButton-lv-npT6v.js +30 -0
- package/dist/shared/SelectTrigger-CCDiZW91.js +47 -0
- package/dist/shared/SelectValue-DFZFSiQp.js +23 -0
- package/dist/shared/Switch-DsCzHpDU.js +63 -0
- package/dist/shared/TableHead-OxGist4m.js +24 -0
- package/dist/shared/TagRemoveButton-BiCdscIC.js +38 -0
- package/dist/shared/TextTooltip-ClHQl84h.js +29 -0
- package/dist/shared/Tooltip-DbXyHv20.js +34 -0
- package/dist/shared/TooltipContent-Bju-U7gc.js +91 -0
- package/dist/shared/TooltipTrigger-CVwISmWo.js +65 -0
- package/dist/shared/_plugin-vue_export-helper-BOaGB7Aw.js +8 -0
- package/dist/shared/searchInput.variants-NOge_52E.js +47 -0
- package/dist/shared/select.variants-BPn5Z7N1.js +40 -0
- package/dist/shared/src-CnJ6AzLP.js +12 -0
- package/dist/shared/tabKeys-BISOrxWu.js +4 -0
- package/dist/shared/tabs.variants-XUREdHry.js +23 -0
- package/dist/shared/tag.variants-CCqCn8Jc.js +34 -0
- package/dist/shared/tagsInputContext-QXu7RrG5.js +5 -0
- package/dist/shared/toggleGroup.variants-CvjZDHMw.js +39 -0
- package/dist/shared/tooltipContext-BL5JtM0i.js +4 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +2 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +187 -0
- package/dist/single-select/types.d.ts +25 -0
- package/dist/single-select/types.js +0 -0
- package/dist/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/skeleton/Skeleton.vue.js +24 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +88 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +41 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +40 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +45 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +37 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +2 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +76 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +31 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +28 -0
- package/dist/tab/tab.variants.d.ts +9 -0
- package/dist/tab/tabKeys.d.ts +7 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/Table.vue.js +23 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +21 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +21 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +2 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +21 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +21 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +47 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +19 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +43 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +37 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +38 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +39 -0
- package/dist/tabs/tabs.variants.d.ts +21 -0
- package/dist/tags-input/TagsInput.vue.d.ts +32 -0
- package/dist/tags-input/TagsInput.vue.js +98 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +56 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +34 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +35 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +28 -0
- package/dist/tags-input/tagsInputContext.d.ts +4 -0
- package/dist/textarea/Textarea.vue.d.ts +17 -0
- package/dist/textarea/Textarea.vue.js +33 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +42 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +31 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +29 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +47 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +55 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +31 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +33 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +61 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +45 -0
- package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
- package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
- package/dist/tooltip/TextTooltip.vue.js +2 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +2 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +2 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +39 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +2 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +8 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +110 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +55 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +82 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +7 -0
- package/dist-types/button.variants.d.ts +16 -0
- package/dist-types/select.variants.d.ts +24 -0
- package/dist-types/tag.variants.d.ts +21 -0
- package/dist-types/workspaceAvatar.d.ts +5 -0
- package/package.json +167 -7
- package/src/button.variants.ts +84 -0
- package/src/css/_deprecated-aliases.css +12 -0
- package/src/css/_legacy-palette.css +33 -0
- package/src/css/_legacy-ui.css +418 -0
- package/src/css/_markdown.css +227 -0
- package/src/css/_mask-editor.css +180 -0
- package/src/css/_palette.css +43 -0
- package/src/css/base.css +0 -6
- package/src/css/iconSizing.test.ts +80 -0
- package/src/css/iconifyDynamicPlugin.ts +15 -6
- package/src/css/icons.test.ts +17 -0
- package/src/css/lucideStrokePlugin.js +5 -6
- package/src/css/style.css +109 -1698
- package/src/icons/README.md +33 -26
- package/src/icons/astroid-filled.svg +3 -0
- package/src/icons/claude.svg +1 -1
- package/src/icons/comfy-cloud.svg +4 -0
- package/src/icons/comfy-logo.svg +2 -2
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
- package/src/workspaceAvatar.ts +54 -0
- package/src/icons/credits.svg +0 -3
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { t as Button_default } from "./Button-CilmsOkY.js";
|
|
3
|
+
import { a as selectItemVariants, i as selectEmptyMessageClass, s as stopEscapeToDocument, t as selectContentClass } from "./select.variants-BPn5Z7N1.js";
|
|
4
|
+
import { useSelectSearch } from "../select/useSelectSearch.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useModel, withCtx, withModifiers } from "vue";
|
|
6
|
+
import { ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxViewport, FocusScope, injectComboboxRootContext } from "reka-ui";
|
|
7
|
+
//#region src/components/multi-select/MultiSelectContent.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "px-2 pt-2 pb-0"
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_2 = { class: "flex items-center gap-2 rounded-lg border px-3 py-1.5 text-sm" };
|
|
13
|
+
var _hoisted_3 = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "px-1 text-sm text-muted-foreground"
|
|
16
|
+
};
|
|
17
|
+
var _hoisted_4 = { class: "flex size-4 shrink-0 items-center justify-center rounded-sm transition-all duration-200 group-data-[state=checked]:bg-primary group-data-[state=unchecked]:bg-secondary [&>span]:flex" };
|
|
18
|
+
var _hoisted_5 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "px-1 text-sm text-muted-foreground"
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/multi-select/MultiSelectContent.vue
|
|
24
|
+
var MultiSelectContent_default = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "MultiSelectContent",
|
|
26
|
+
props: /*@__PURE__*/ mergeModels({
|
|
27
|
+
searchLabel: {},
|
|
28
|
+
emptyText: {},
|
|
29
|
+
clearAllLabel: {},
|
|
30
|
+
formatSelectedCount: { type: Function },
|
|
31
|
+
options: {},
|
|
32
|
+
showSearchBox: { type: Boolean },
|
|
33
|
+
showClearButton: { type: Boolean },
|
|
34
|
+
actionsPlacement: {},
|
|
35
|
+
searchPlaceholder: {},
|
|
36
|
+
listMaxHeight: {},
|
|
37
|
+
popoverStyle: { type: [
|
|
38
|
+
Boolean,
|
|
39
|
+
null,
|
|
40
|
+
String,
|
|
41
|
+
Object,
|
|
42
|
+
Array
|
|
43
|
+
] },
|
|
44
|
+
contentStyle: { type: [
|
|
45
|
+
Boolean,
|
|
46
|
+
null,
|
|
47
|
+
String,
|
|
48
|
+
Object,
|
|
49
|
+
Array
|
|
50
|
+
] }
|
|
51
|
+
}, {
|
|
52
|
+
"modelValue": { required: true },
|
|
53
|
+
"modelModifiers": {},
|
|
54
|
+
"searchQuery": { required: true },
|
|
55
|
+
"searchQueryModifiers": {}
|
|
56
|
+
}),
|
|
57
|
+
emits: /*@__PURE__*/ mergeModels(["escape"], ["update:modelValue", "update:searchQuery"]),
|
|
58
|
+
setup(__props, { emit: __emit }) {
|
|
59
|
+
const { open } = injectComboboxRootContext();
|
|
60
|
+
const emit = __emit;
|
|
61
|
+
const selectedItems = useModel(__props, "modelValue");
|
|
62
|
+
const searchQuery = useModel(__props, "searchQuery");
|
|
63
|
+
const hasActions = computed(() => Boolean(__props.formatSelectedCount) || __props.showClearButton);
|
|
64
|
+
const actionsClass = computed(() => cn("flex shrink-0 items-center justify-between", __props.actionsPlacement === "header" ? "mt-2 border-b px-2 pb-4" : "-mx-2 mt-2 border-t px-4 pt-3 pb-1"));
|
|
65
|
+
const searchResults = useSelectSearch(searchQuery, () => __props.options);
|
|
66
|
+
const filteredOptions = computed(() => {
|
|
67
|
+
if (!searchQuery.value.trim()) return __props.options;
|
|
68
|
+
return [...selectedItems.value.filter((item) => !searchResults.value.some(({ value }) => value === item.value)), ...searchResults.value];
|
|
69
|
+
});
|
|
70
|
+
function onKeydown(event) {
|
|
71
|
+
if (event.key !== "Escape") return;
|
|
72
|
+
stopEscapeToDocument(event);
|
|
73
|
+
emit("escape");
|
|
74
|
+
}
|
|
75
|
+
function preventFocusDismiss(event) {
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
}
|
|
78
|
+
return (_ctx, _cache) => {
|
|
79
|
+
return openBlock(), createBlock(unref(ComboboxPortal), { key: Number(unref(open)) }, {
|
|
80
|
+
default: withCtx(() => [createVNode(unref(ComboboxContent), {
|
|
81
|
+
position: "popper",
|
|
82
|
+
"side-offset": 8,
|
|
83
|
+
align: "start",
|
|
84
|
+
style: normalizeStyle([__props.popoverStyle, __props.contentStyle]),
|
|
85
|
+
class: normalizeClass(unref(cn)(unref(selectContentClass), "flex flex-col")),
|
|
86
|
+
onKeydown,
|
|
87
|
+
onFocusOutside: preventFocusDismiss
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [createVNode(unref(FocusScope), {
|
|
90
|
+
class: "contents",
|
|
91
|
+
onMountAutoFocus: _cache[3] || (_cache[3] = withModifiers(() => {}, ["prevent"]))
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
__props.showSearchBox ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [_cache[4] || (_cache[4] = createElementVNode("i", { class: "icon-[lucide--search] text-muted-foreground" }, null, -1)), createVNode(unref(ComboboxInput), {
|
|
95
|
+
modelValue: searchQuery.value,
|
|
96
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
97
|
+
placeholder: __props.searchPlaceholder,
|
|
98
|
+
"aria-label": __props.searchLabel,
|
|
99
|
+
class: "w-full border-none bg-transparent outline-none"
|
|
100
|
+
}, null, 8, [
|
|
101
|
+
"modelValue",
|
|
102
|
+
"placeholder",
|
|
103
|
+
"aria-label"
|
|
104
|
+
])])])) : createCommentVNode("", true),
|
|
105
|
+
hasActions.value && __props.actionsPlacement === "header" ? (openBlock(), createElementBlock("div", {
|
|
106
|
+
key: 1,
|
|
107
|
+
class: normalizeClass(actionsClass.value)
|
|
108
|
+
}, [__props.formatSelectedCount ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.formatSelectedCount(selectedItems.value.length)), 1)) : createCommentVNode("", true), __props.showClearButton ? (openBlock(), createBlock(unref(Button_default), {
|
|
109
|
+
key: 1,
|
|
110
|
+
variant: "textonly",
|
|
111
|
+
size: "md",
|
|
112
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectedItems.value = [], ["stop"]))
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.clearAllLabel), 1)]),
|
|
115
|
+
_: 1
|
|
116
|
+
})) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
117
|
+
createVNode(unref(ComboboxViewport), {
|
|
118
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-0 p-0 text-sm", "scrollbar-custom overflow-y-auto", "min-w-(--reka-combobox-trigger-width)")),
|
|
119
|
+
style: normalizeStyle({ maxHeight: `min(${__props.listMaxHeight}, 50vh)` })
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredOptions.value, (opt) => {
|
|
122
|
+
return openBlock(), createBlock(unref(ComboboxItem), {
|
|
123
|
+
key: opt.value,
|
|
124
|
+
value: opt,
|
|
125
|
+
class: normalizeClass(unref(cn)("group", unref(selectItemVariants)({ layout: "multi" })))
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(unref(ComboboxItemIndicator), null, {
|
|
128
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createElementVNode("i", { class: "icon-[lucide--check] text-xs font-bold text-foreground" }, null, -1)])]),
|
|
129
|
+
_: 1
|
|
130
|
+
})]), createElementVNode("span", null, toDisplayString(opt.name), 1)]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1032, ["value", "class"]);
|
|
133
|
+
}), 128)), createVNode(unref(ComboboxEmpty), { class: normalizeClass(unref(selectEmptyMessageClass)) }, {
|
|
134
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.emptyText), 1)]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["class"])]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["class", "style"]),
|
|
139
|
+
hasActions.value && __props.actionsPlacement === "footer" ? (openBlock(), createElementBlock("div", {
|
|
140
|
+
key: 2,
|
|
141
|
+
class: normalizeClass(actionsClass.value)
|
|
142
|
+
}, [__props.formatSelectedCount ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.formatSelectedCount(selectedItems.value.length)), 1)) : createCommentVNode("", true), __props.showClearButton ? (openBlock(), createBlock(unref(Button_default), {
|
|
143
|
+
key: 1,
|
|
144
|
+
variant: "textonly",
|
|
145
|
+
size: "md",
|
|
146
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectedItems.value = [], ["stop"]))
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.clearAllLabel), 1)]),
|
|
149
|
+
_: 1
|
|
150
|
+
})) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["style", "class"])]),
|
|
156
|
+
_: 1
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
//#endregion
|
|
162
|
+
export { MultiSelectContent_default as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { n as selectCountBadgeClass, o as selectTriggerVariants, r as selectDropdownClass } from "./select.variants-BPn5Z7N1.js";
|
|
3
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { ComboboxAnchor, ComboboxTrigger } from "reka-ui";
|
|
5
|
+
//#region src/components/multi-select/MultiSelectTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = { class: "flex flex-1 items-center overflow-hidden py-2 pl-2 whitespace-nowrap" };
|
|
7
|
+
var _hoisted_2 = { class: "truncate text-sm" };
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/multi-select/MultiSelectTrigger.vue
|
|
10
|
+
var MultiSelectTrigger_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
__name: "MultiSelectTrigger",
|
|
13
|
+
props: {
|
|
14
|
+
class: { type: [
|
|
15
|
+
Array,
|
|
16
|
+
Object,
|
|
17
|
+
String,
|
|
18
|
+
Number,
|
|
19
|
+
null,
|
|
20
|
+
Boolean
|
|
21
|
+
] },
|
|
22
|
+
label: {},
|
|
23
|
+
accessibleLabel: {},
|
|
24
|
+
selectedItems: {},
|
|
25
|
+
size: {}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createBlock(unref(ComboboxAnchor), { "as-child": "" }, {
|
|
30
|
+
default: withCtx(() => [createVNode(unref(ComboboxTrigger), mergeProps(_ctx.$attrs, {
|
|
31
|
+
"aria-label": __props.accessibleLabel,
|
|
32
|
+
class: unref(cn)(unref(selectTriggerVariants)({
|
|
33
|
+
size: __props.size,
|
|
34
|
+
border: __props.selectedItems.length ? "active" : "none"
|
|
35
|
+
}), __props.class)
|
|
36
|
+
}), {
|
|
37
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [__props.selectedItems.length === 0 ? (openBlock(), createElementBlock("span", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: normalizeClass(__props.size === "md" ? "text-xs" : "text-sm")
|
|
40
|
+
}, toDisplayString(__props.label), 3)) : renderSlot(_ctx.$slots, "default", { selected: __props.selectedItems }, () => [createElementVNode("span", _hoisted_2, toDisplayString(__props.selectedItems.map(({ name }) => name).join(", ")), 1)], void 0, 1), __props.selectedItems.length ? (openBlock(), createElementBlock("span", {
|
|
41
|
+
key: 2,
|
|
42
|
+
class: normalizeClass(unref(cn)("pointer-events-none absolute -top-1.5 -right-1.5 z-10", unref(selectCountBadgeClass)))
|
|
43
|
+
}, toDisplayString(__props.selectedItems.length), 3)) : createCommentVNode("", true)]), createElementVNode("div", { class: normalizeClass(unref(selectDropdownClass)) }, [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "icon-[lucide--chevron-down] text-muted-foreground" }, null, -1)])], 2)]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16, ["aria-label", "class"])]),
|
|
46
|
+
_: 3
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { MultiSelectTrigger_default as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
|
|
3
|
+
//#region src/components/common/OverlayIcon.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "relative inline-flex items-center justify-center" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/common/OverlayIcon.vue
|
|
7
|
+
var OverlayIcon_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "OverlayIcon",
|
|
9
|
+
props: {
|
|
10
|
+
mainIcon: {},
|
|
11
|
+
subIcon: {},
|
|
12
|
+
positionX: { default: "right" },
|
|
13
|
+
positionY: { default: "bottom" },
|
|
14
|
+
offsetX: { default: 0 },
|
|
15
|
+
offsetY: { default: 0 },
|
|
16
|
+
subIconScale: { default: .6 }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const textShadow = [
|
|
20
|
+
`-1px -1px 0 rgba(0, 0, 0, 0.7)`,
|
|
21
|
+
`1px -1px 0 rgba(0, 0, 0, 0.7)`,
|
|
22
|
+
`-1px 1px 0 rgba(0, 0, 0, 0.7)`,
|
|
23
|
+
`1px 1px 0 rgba(0, 0, 0, 0.7)`,
|
|
24
|
+
`-1px 0 0 rgba(0, 0, 0, 0.7)`,
|
|
25
|
+
`1px 0 0 rgba(0, 0, 0, 0.7)`,
|
|
26
|
+
`0 -1px 0 rgba(0, 0, 0, 0.7)`,
|
|
27
|
+
`0 1px 0 rgba(0, 0, 0, 0.7)`
|
|
28
|
+
].join(", ");
|
|
29
|
+
const subIconStyle = computed(() => ({
|
|
30
|
+
scale: __props.subIconScale,
|
|
31
|
+
transformOrigin: `${__props.positionX} ${__props.positionY}`,
|
|
32
|
+
textShadow,
|
|
33
|
+
...__props.offsetX !== 0 && { [__props.positionX === "left" ? "left" : "right"]: `${__props.offsetX}px` },
|
|
34
|
+
...__props.offsetY !== 0 && { [__props.positionY === "top" ? "top" : "bottom"]: `${__props.offsetY}px` }
|
|
35
|
+
}));
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [createElementVNode("i", { class: normalizeClass(__props.mainIcon) }, null, 2), createElementVNode("i", {
|
|
38
|
+
class: normalizeClass(unref(cn)(__props.subIcon, "pointer-events-none absolute leading-none", __props.positionX === "left" ? "left-0" : "right-0", __props.positionY === "top" ? "top-0" : "bottom-0")),
|
|
39
|
+
style: normalizeStyle(subIconStyle.value)
|
|
40
|
+
}, null, 6)]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { OverlayIcon_default as t };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { a as selectItemVariants, i as selectEmptyMessageClass, o as selectTriggerVariants, r as selectDropdownClass, s as stopEscapeToDocument, t as selectContentClass } from "./select.variants-BPn5Z7N1.js";
|
|
3
|
+
import { useSelectSearch } from "../select/useSelectSearch.js";
|
|
4
|
+
import { useAttrsClass } from "../composables/useAttrsClass.js";
|
|
5
|
+
import { usePopoverSizing } from "../composables/usePopoverSizing.js";
|
|
6
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxRoot, ComboboxTrigger, ComboboxViewport, FocusScope } from "reka-ui";
|
|
8
|
+
import { unrefElement } from "@vueuse/core";
|
|
9
|
+
//#region src/components/single-select/SearchableSingleSelect.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "icon-[lucide--loader-circle] animate-spin text-muted-foreground"
|
|
13
|
+
};
|
|
14
|
+
var _hoisted_2 = { class: "truncate" };
|
|
15
|
+
var _hoisted_3 = { class: "px-2 pt-2" };
|
|
16
|
+
var _hoisted_4 = { class: "flex items-center gap-2 rounded-lg border px-3 py-1.5" };
|
|
17
|
+
var _hoisted_5 = { class: "truncate" };
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/single-select/SearchableSingleSelect.vue
|
|
20
|
+
var SearchableSingleSelect_default = /* @__PURE__ */ defineComponent({
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
__name: "SearchableSingleSelect",
|
|
23
|
+
props: /*@__PURE__*/ mergeModels({
|
|
24
|
+
label: {},
|
|
25
|
+
accessibleLabel: {},
|
|
26
|
+
searchLabel: {},
|
|
27
|
+
emptyText: {},
|
|
28
|
+
options: { default: () => [] },
|
|
29
|
+
size: { default: "lg" },
|
|
30
|
+
invalid: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
loading: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
searchPlaceholder: {},
|
|
43
|
+
listMaxHeight: { default: "28rem" },
|
|
44
|
+
popoverMinWidth: {},
|
|
45
|
+
popoverMaxWidth: {},
|
|
46
|
+
contentStyle: { type: [
|
|
47
|
+
Boolean,
|
|
48
|
+
null,
|
|
49
|
+
String,
|
|
50
|
+
Object,
|
|
51
|
+
Array
|
|
52
|
+
] }
|
|
53
|
+
}, {
|
|
54
|
+
"modelValue": { required: true },
|
|
55
|
+
"modelModifiers": {}
|
|
56
|
+
}),
|
|
57
|
+
emits: ["update:modelValue"],
|
|
58
|
+
setup(__props) {
|
|
59
|
+
const { attrsClass, attrsWithoutClass } = useAttrsClass();
|
|
60
|
+
const selectedItem = useModel(__props, "modelValue");
|
|
61
|
+
const triggerRef = useTemplateRef("trigger");
|
|
62
|
+
const isOpen = ref(false);
|
|
63
|
+
const searchQuery = ref("");
|
|
64
|
+
const filteredOptions = useSelectSearch(searchQuery, () => __props.options);
|
|
65
|
+
const selectedOption = computed({
|
|
66
|
+
get: () => __props.options.find(({ value }) => value === selectedItem.value),
|
|
67
|
+
set: (option) => {
|
|
68
|
+
selectedItem.value = option?.value;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
watch(isOpen, (open) => {
|
|
72
|
+
if (!open) searchQuery.value = "";
|
|
73
|
+
});
|
|
74
|
+
function onContentKeydown(event) {
|
|
75
|
+
if (event.key === "Tab") {
|
|
76
|
+
unrefElement(triggerRef)?.focus();
|
|
77
|
+
isOpen.value = false;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (event.key === "Escape") {
|
|
81
|
+
stopEscapeToDocument(event);
|
|
82
|
+
isOpen.value = false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const optionStyle = usePopoverSizing({
|
|
86
|
+
minWidth: __props.popoverMinWidth,
|
|
87
|
+
maxWidth: __props.popoverMaxWidth
|
|
88
|
+
});
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return openBlock(), createBlock(unref(ComboboxRoot), {
|
|
91
|
+
modelValue: selectedOption.value,
|
|
92
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selectedOption.value = $event),
|
|
93
|
+
open: isOpen.value,
|
|
94
|
+
"onUpdate:open": _cache[4] || (_cache[4] = ($event) => isOpen.value = $event),
|
|
95
|
+
by: "value",
|
|
96
|
+
disabled: __props.disabled,
|
|
97
|
+
"ignore-filter": ""
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [createVNode(unref(ComboboxAnchor), { "as-child": "" }, {
|
|
100
|
+
default: withCtx(() => [createVNode(unref(ComboboxTrigger), mergeProps({ ref: "trigger" }, unref(attrsWithoutClass), {
|
|
101
|
+
tabindex: "0",
|
|
102
|
+
"aria-label": __props.accessibleLabel,
|
|
103
|
+
"aria-busy": __props.loading || void 0,
|
|
104
|
+
"aria-invalid": __props.invalid || void 0,
|
|
105
|
+
class: unref(cn)(unref(selectTriggerVariants)({
|
|
106
|
+
size: __props.size,
|
|
107
|
+
border: __props.invalid ? "invalid" : "none"
|
|
108
|
+
}), unref(attrsClass))
|
|
109
|
+
}), {
|
|
110
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(cn)("flex flex-1 items-center gap-2 overflow-hidden py-2 pl-2", __props.size === "md" ? "text-xs" : "text-sm")) }, [__props.loading ? (openBlock(), createElementBlock("i", _hoisted_1)) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1), createElementVNode("span", _hoisted_2, toDisplayString(selectedOption.value?.name ?? __props.label), 1)], 2), createElementVNode("div", { class: normalizeClass(unref(selectDropdownClass)) }, [..._cache[5] || (_cache[5] = [createElementVNode("i", { class: "icon-[lucide--chevron-down] text-muted-foreground" }, null, -1)])], 2)]),
|
|
111
|
+
_: 3
|
|
112
|
+
}, 16, [
|
|
113
|
+
"aria-label",
|
|
114
|
+
"aria-busy",
|
|
115
|
+
"aria-invalid",
|
|
116
|
+
"class"
|
|
117
|
+
])]),
|
|
118
|
+
_: 3
|
|
119
|
+
}), (openBlock(), createBlock(unref(ComboboxPortal), { key: Number(isOpen.value) }, {
|
|
120
|
+
default: withCtx(() => [createVNode(unref(ComboboxContent), {
|
|
121
|
+
position: "popper",
|
|
122
|
+
"side-offset": 8,
|
|
123
|
+
align: "start",
|
|
124
|
+
style: normalizeStyle([unref(optionStyle), __props.contentStyle]),
|
|
125
|
+
class: normalizeClass(unref(cn)(unref(selectContentClass), "min-w-(--reka-combobox-trigger-width)")),
|
|
126
|
+
onKeydown: onContentKeydown
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [createVNode(unref(FocusScope), {
|
|
129
|
+
class: "contents",
|
|
130
|
+
onMountAutoFocus: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
|
|
131
|
+
onUnmountAutoFocus: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"]))
|
|
132
|
+
}, {
|
|
133
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [_cache[6] || (_cache[6] = createElementVNode("i", { class: "icon-[lucide--search] text-muted-foreground" }, null, -1)), createVNode(unref(ComboboxInput), {
|
|
134
|
+
modelValue: searchQuery.value,
|
|
135
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
136
|
+
"aria-label": __props.searchLabel,
|
|
137
|
+
placeholder: __props.searchPlaceholder,
|
|
138
|
+
class: "w-full border-none bg-transparent text-sm outline-none"
|
|
139
|
+
}, null, 8, [
|
|
140
|
+
"modelValue",
|
|
141
|
+
"aria-label",
|
|
142
|
+
"placeholder"
|
|
143
|
+
])])]), createVNode(unref(ComboboxViewport), {
|
|
144
|
+
style: normalizeStyle({ maxHeight: `min(${__props.listMaxHeight}, 50vh)` }),
|
|
145
|
+
class: "scrollbar-custom w-full"
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredOptions), (opt) => {
|
|
148
|
+
return openBlock(), createBlock(unref(ComboboxItem), {
|
|
149
|
+
key: opt.value,
|
|
150
|
+
value: opt,
|
|
151
|
+
class: normalizeClass(unref(selectItemVariants)({ layout: "single" }))
|
|
152
|
+
}, {
|
|
153
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5, toDisplayString(opt.name), 1), createVNode(unref(ComboboxItemIndicator), { class: "flex shrink-0 items-center justify-center" }, {
|
|
154
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [createElementVNode("i", {
|
|
155
|
+
class: "icon-[lucide--check] text-foreground",
|
|
156
|
+
"aria-hidden": "true"
|
|
157
|
+
}, null, -1)])]),
|
|
158
|
+
_: 1
|
|
159
|
+
})]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1032, ["value", "class"]);
|
|
162
|
+
}), 128)), createVNode(unref(ComboboxEmpty), { class: normalizeClass(unref(selectEmptyMessageClass)) }, {
|
|
163
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.emptyText), 1)]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["class"])]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["style"])]),
|
|
168
|
+
_: 1
|
|
169
|
+
})]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["style", "class"])]),
|
|
172
|
+
_: 1
|
|
173
|
+
}))]),
|
|
174
|
+
_: 3
|
|
175
|
+
}, 8, [
|
|
176
|
+
"modelValue",
|
|
177
|
+
"open",
|
|
178
|
+
"disabled"
|
|
179
|
+
]);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
//#endregion
|
|
184
|
+
export { SearchableSingleSelect_default as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/select/Select.vue
|
|
5
|
+
var Select_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "Select",
|
|
7
|
+
props: {
|
|
8
|
+
open: { type: Boolean },
|
|
9
|
+
defaultOpen: { type: Boolean },
|
|
10
|
+
defaultValue: {},
|
|
11
|
+
modelValue: {},
|
|
12
|
+
nullableValue: {},
|
|
13
|
+
by: { type: [String, Function] },
|
|
14
|
+
dir: {},
|
|
15
|
+
multiple: { type: Boolean },
|
|
16
|
+
autocomplete: {},
|
|
17
|
+
disabled: { type: Boolean },
|
|
18
|
+
name: {},
|
|
19
|
+
required: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "update:open"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createBlock(unref(SelectRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
26
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 16);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Select_default as t };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { t as SelectScrollDownButton_default } from "./SelectScrollDownButton-Dvig5MVc.js";
|
|
3
|
+
import { t as SelectScrollUpButton_default } from "./SelectScrollUpButton-lv-npT6v.js";
|
|
4
|
+
import { computed, createBlock, createPropsRestProxy, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { SelectContent, SelectPortal, SelectViewport, useForwardPropsEmits } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/select/SelectContent.vue
|
|
8
|
+
var SelectContent_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "SelectContent",
|
|
11
|
+
props: {
|
|
12
|
+
forceMount: { type: Boolean },
|
|
13
|
+
position: { default: "popper" },
|
|
14
|
+
bodyLock: { type: Boolean },
|
|
15
|
+
loop: { type: Boolean },
|
|
16
|
+
memoDependencies: {},
|
|
17
|
+
side: {},
|
|
18
|
+
sideOffset: {},
|
|
19
|
+
sideFlip: { type: Boolean },
|
|
20
|
+
align: {},
|
|
21
|
+
alignOffset: {},
|
|
22
|
+
alignFlip: { type: Boolean },
|
|
23
|
+
avoidCollisions: { type: Boolean },
|
|
24
|
+
collisionBoundary: {},
|
|
25
|
+
collisionPadding: {},
|
|
26
|
+
arrowPadding: {},
|
|
27
|
+
hideShiftedArrow: { type: Boolean },
|
|
28
|
+
sticky: {},
|
|
29
|
+
hideWhenDetached: { type: Boolean },
|
|
30
|
+
positionStrategy: {},
|
|
31
|
+
updatePositionStrategy: {},
|
|
32
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
33
|
+
prioritizePosition: { type: Boolean },
|
|
34
|
+
reference: {},
|
|
35
|
+
dir: {},
|
|
36
|
+
asChild: { type: Boolean },
|
|
37
|
+
as: {},
|
|
38
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
39
|
+
class: { type: [
|
|
40
|
+
Boolean,
|
|
41
|
+
null,
|
|
42
|
+
String,
|
|
43
|
+
Object,
|
|
44
|
+
Array
|
|
45
|
+
] },
|
|
46
|
+
disablePortal: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: [
|
|
52
|
+
"closeAutoFocus",
|
|
53
|
+
"escapeKeyDown",
|
|
54
|
+
"pointerDownOutside"
|
|
55
|
+
],
|
|
56
|
+
setup(__props, { emit: __emit }) {
|
|
57
|
+
const restProps = createPropsRestProxy(__props, [
|
|
58
|
+
"position",
|
|
59
|
+
"disablePortal",
|
|
60
|
+
"class"
|
|
61
|
+
]);
|
|
62
|
+
const emits = __emit;
|
|
63
|
+
const delegatedProps = computed(() => ({
|
|
64
|
+
position: __props.position,
|
|
65
|
+
...restProps
|
|
66
|
+
}));
|
|
67
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return openBlock(), createBlock(unref(SelectPortal), { disabled: __props.disablePortal }, {
|
|
70
|
+
default: withCtx(() => [createVNode(unref(SelectContent), mergeProps({
|
|
71
|
+
...unref(forwarded),
|
|
72
|
+
..._ctx.$attrs
|
|
73
|
+
}, { class: unref(cn)("relative z-overlay max-h-96 min-w-32 overflow-hidden", "mt-2 rounded-lg p-2", "bg-background text-foreground", "border border-solid", "shadow-md", "data-[state=closed]:animate-out data-[state=open]:animate-in", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", __props.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", __props.class) }), {
|
|
74
|
+
default: withCtx(() => [
|
|
75
|
+
renderSlot(_ctx.$slots, "prepend"),
|
|
76
|
+
createVNode(SelectScrollUpButton_default),
|
|
77
|
+
createVNode(unref(SelectViewport), { class: normalizeClass(unref(cn)("flex scrollbar-custom flex-col gap-0", __props.position === "popper" && "h-(--reka-select-trigger-height) w-full min-w-(--reka-select-trigger-width)")) }, {
|
|
78
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
79
|
+
_: 3
|
|
80
|
+
}, 8, ["class"]),
|
|
81
|
+
createVNode(SelectScrollDownButton_default)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 16, ["class"])]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 8, ["disabled"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
91
|
+
export { SelectContent_default as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectItem, SelectItemIndicator, SelectItemText } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/select/SelectItem.vue
|
|
6
|
+
var SelectItem_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectItem",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
textValue: {},
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
class: { type: [
|
|
15
|
+
Boolean,
|
|
16
|
+
null,
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Array
|
|
20
|
+
] }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createBlock(unref(SelectItem), mergeProps(restProps, { class: unref(cn)("relative flex w-full cursor-pointer items-center justify-between select-none", "gap-3 rounded-sm px-2 py-3 text-sm outline-none", "hover:bg-accent", "focus:bg-accent", "data-[state=checked]:bg-muted", "data-[state=checked]:hover:bg-muted", "data-disabled:pointer-events-none data-disabled:opacity-50", __props.class) }), {
|
|
26
|
+
default: withCtx(() => [createVNode(unref(SelectItemText), { class: "truncate" }, {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}), createVNode(unref(SelectItemIndicator), { class: "flex shrink-0 items-center justify-center" }, {
|
|
30
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", {
|
|
31
|
+
class: "icon-[lucide--check] text-foreground",
|
|
32
|
+
"aria-hidden": "true"
|
|
33
|
+
}, null, -1)])]),
|
|
34
|
+
_: 1
|
|
35
|
+
})]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 16, ["class"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SelectItem_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollDownButton } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/select/SelectScrollDownButton.vue
|
|
6
|
+
var SelectScrollDownButton_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectScrollDownButton",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(unref(SelectScrollDownButton), mergeProps(restProps, { class: unref(cn)("flex cursor-default items-center justify-center py-1 text-muted-foreground", __props.class) }), {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", { class: "icon-[lucide--chevron-down]" }, null, -1))])]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SelectScrollDownButton_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollUpButton } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/select/SelectScrollUpButton.vue
|
|
6
|
+
var SelectScrollUpButton_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectScrollUpButton",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {},
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(unref(SelectScrollUpButton), mergeProps(restProps, { class: unref(cn)("flex cursor-default items-center justify-center py-1 text-muted-foreground", __props.class) }), {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", { class: "icon-[lucide--chevron-up]" }, null, -1))])]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SelectScrollUpButton_default as t };
|