@comfyorg/design-system 1.1.0 → 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 -10
- 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 +165 -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 +40 -4
- 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 +108 -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/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/components/menu/menuStyles.ts
|
|
2
|
+
var menuContentClass = "z-overlay min-w-48 overflow-y-auto rounded-lg border bg-background p-1 text-foreground shadow-lg outline-none";
|
|
3
|
+
var menuItemClass = "flex min-h-8 cursor-default items-center gap-2 rounded-md px-3 py-1.5 text-sm outline-none data-disabled:opacity-50 data-highlighted:bg-accent";
|
|
4
|
+
var menuButtonClass = `${menuItemClass} w-full justify-start border-0 bg-transparent text-left hover:bg-accent focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50`;
|
|
5
|
+
var selectedMenuButtonClass = "bg-muted hover:bg-muted focus-visible:bg-muted";
|
|
6
|
+
//#endregion
|
|
7
|
+
export { menuButtonClass, menuContentClass, menuItemClass, selectedMenuButtonClass };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { OverlayIconProps } from '@comfyorg/design-system/common/OverlayIcon';
|
|
2
|
+
export interface MenuItemCommandEvent {
|
|
3
|
+
originalEvent: Event;
|
|
4
|
+
item: MenuItem;
|
|
5
|
+
}
|
|
6
|
+
interface MenuItemMetadata {
|
|
7
|
+
label?: string | (() => string);
|
|
8
|
+
description?: string | (() => string);
|
|
9
|
+
icon?: string;
|
|
10
|
+
disabled?: boolean | (() => boolean);
|
|
11
|
+
visible?: boolean | (() => boolean);
|
|
12
|
+
key?: string;
|
|
13
|
+
class?: string | (() => string);
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
shortcut?: string | (() => string | undefined);
|
|
16
|
+
badge?: string;
|
|
17
|
+
overlayIcon?: OverlayIconProps;
|
|
18
|
+
trailingIcon?: string;
|
|
19
|
+
presentation?: 'switch';
|
|
20
|
+
}
|
|
21
|
+
export interface MenuItemSeparator extends MenuItemMetadata {
|
|
22
|
+
separator: true;
|
|
23
|
+
command?: never;
|
|
24
|
+
items?: never;
|
|
25
|
+
checked?: never;
|
|
26
|
+
radioGroup?: never;
|
|
27
|
+
}
|
|
28
|
+
export interface MenuItemSubmenu extends MenuItemMetadata {
|
|
29
|
+
separator?: false;
|
|
30
|
+
items: MenuItem[];
|
|
31
|
+
command?: never;
|
|
32
|
+
checked?: never;
|
|
33
|
+
radioGroup?: never;
|
|
34
|
+
}
|
|
35
|
+
export interface MenuItemRadioGroup extends MenuItemMetadata {
|
|
36
|
+
separator?: false;
|
|
37
|
+
items?: never;
|
|
38
|
+
command?: never;
|
|
39
|
+
checked?: never;
|
|
40
|
+
radioGroup: {
|
|
41
|
+
value: string | (() => string);
|
|
42
|
+
options: {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
icon?: string;
|
|
46
|
+
command: () => unknown;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface MenuItemAction extends MenuItemMetadata {
|
|
51
|
+
separator?: false;
|
|
52
|
+
items?: never;
|
|
53
|
+
radioGroup?: never;
|
|
54
|
+
command?: (event: MenuItemCommandEvent) => unknown;
|
|
55
|
+
checked?: boolean | (() => boolean);
|
|
56
|
+
pressAndHoldInterval?: number;
|
|
57
|
+
variant?: 'destructive';
|
|
58
|
+
/** Keeps a disabled item in keyboard focus order, marked `aria-disabled`, so its tooltip stays reachable. */
|
|
59
|
+
focusableWhenDisabled?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface MenuRadioOption<T extends string = string> {
|
|
62
|
+
label: string;
|
|
63
|
+
value: T;
|
|
64
|
+
command?: () => unknown;
|
|
65
|
+
icon?: string;
|
|
66
|
+
tooltip?: string;
|
|
67
|
+
}
|
|
68
|
+
export type MenuItem = MenuItemSeparator | MenuItemSubmenu | MenuItemRadioGroup | MenuItemAction;
|
|
69
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State for a non-modal menu opened from code at the event's pointer or element.
|
|
3
|
+
* Bind `menuProps` to a `Menu`; any outside press closes it, even one stopped before reaching the document.
|
|
4
|
+
*/
|
|
5
|
+
export declare function usePointMenu(onShow?: (event: Event) => void): {
|
|
6
|
+
open: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
menuProps: import('vue').ComputedRef<{
|
|
8
|
+
open: boolean;
|
|
9
|
+
'onUpdate:open': (value: boolean) => void;
|
|
10
|
+
reference: {
|
|
11
|
+
getBoundingClientRect: () => DOMRect;
|
|
12
|
+
} | undefined;
|
|
13
|
+
modal: boolean;
|
|
14
|
+
onFocusOutside: (event: Event) => void;
|
|
15
|
+
}>;
|
|
16
|
+
show: (event: Event) => void;
|
|
17
|
+
hide: () => void;
|
|
18
|
+
toggle: (event: Event) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { getMenuAnchorPosition } from "./menuAnchor.js";
|
|
2
|
+
import { computed, ref, shallowRef } from "vue";
|
|
3
|
+
import { useEventListener } from "@vueuse/core";
|
|
4
|
+
//#region src/components/menu/usePointMenu.ts
|
|
5
|
+
/**
|
|
6
|
+
* State for a non-modal menu opened from code at the event's pointer or element.
|
|
7
|
+
* Bind `menuProps` to a `Menu`; any outside press closes it, even one stopped before reaching the document.
|
|
8
|
+
*/
|
|
9
|
+
function usePointMenu(onShow) {
|
|
10
|
+
const open = ref(false);
|
|
11
|
+
const reference = shallowRef();
|
|
12
|
+
let shownFrom = null;
|
|
13
|
+
let dismissingPress = null;
|
|
14
|
+
function show(event) {
|
|
15
|
+
dismissingPress = null;
|
|
16
|
+
shownFrom = event.currentTarget;
|
|
17
|
+
onShow?.(event);
|
|
18
|
+
const { x, y } = getMenuAnchorPosition(event);
|
|
19
|
+
reference.value = { getBoundingClientRect: () => new DOMRect(x, y, 1, 1) };
|
|
20
|
+
open.value = true;
|
|
21
|
+
}
|
|
22
|
+
function hide() {
|
|
23
|
+
dismissingPress = null;
|
|
24
|
+
open.value = false;
|
|
25
|
+
}
|
|
26
|
+
function toggle(event) {
|
|
27
|
+
const control = event.currentTarget;
|
|
28
|
+
const pressDismissedMenu = event instanceof MouseEvent && event.detail > 0 && control instanceof Node && control === shownFrom && dismissingPress !== null && control.contains(dismissingPress);
|
|
29
|
+
if (open.value || pressDismissedMenu) hide();
|
|
30
|
+
else show(event);
|
|
31
|
+
}
|
|
32
|
+
useEventListener(document, "pointerdown", ({ target }) => {
|
|
33
|
+
dismissingPress = null;
|
|
34
|
+
if (!open.value) return;
|
|
35
|
+
if (target instanceof Element && target.closest("[role=\"menu\"]")) return;
|
|
36
|
+
dismissingPress = target instanceof Node ? target : null;
|
|
37
|
+
open.value = false;
|
|
38
|
+
}, { capture: true });
|
|
39
|
+
return {
|
|
40
|
+
open,
|
|
41
|
+
menuProps: computed(() => ({
|
|
42
|
+
open: open.value,
|
|
43
|
+
"onUpdate:open": (value) => {
|
|
44
|
+
open.value = value;
|
|
45
|
+
},
|
|
46
|
+
reference: reference.value,
|
|
47
|
+
modal: false,
|
|
48
|
+
onFocusOutside: (event) => event.preventDefault()
|
|
49
|
+
})),
|
|
50
|
+
show,
|
|
51
|
+
hide,
|
|
52
|
+
toggle
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { usePointMenu };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MessageVariants } from './message.variants';
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<({
|
|
13
|
+
severity?: MessageVariants["severity"];
|
|
14
|
+
class?: HTMLAttributes["class"];
|
|
15
|
+
} & {
|
|
16
|
+
closable: true;
|
|
17
|
+
closeLabel: string;
|
|
18
|
+
} & __VLS_ModelProps) | ({
|
|
19
|
+
severity?: MessageVariants["severity"];
|
|
20
|
+
class?: HTMLAttributes["class"];
|
|
21
|
+
} & {
|
|
22
|
+
closable?: false;
|
|
23
|
+
closeLabel?: string;
|
|
24
|
+
} & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
close: (event: MouseEvent) => any;
|
|
26
|
+
"update:visible": (value: boolean) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
28
|
+
severity?: MessageVariants["severity"];
|
|
29
|
+
class?: HTMLAttributes["class"];
|
|
30
|
+
} & {
|
|
31
|
+
closable: true;
|
|
32
|
+
closeLabel: string;
|
|
33
|
+
} & __VLS_ModelProps) | ({
|
|
34
|
+
severity?: MessageVariants["severity"];
|
|
35
|
+
class?: HTMLAttributes["class"];
|
|
36
|
+
} & {
|
|
37
|
+
closable?: false;
|
|
38
|
+
closeLabel?: string;
|
|
39
|
+
} & __VLS_ModelProps)> & Readonly<{
|
|
40
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
41
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { t as Button_default } from "../shared/Button-CilmsOkY.js";
|
|
3
|
+
import { messageVariants } from "./message.variants.js";
|
|
4
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderSlot, unref, useModel, withCtx } from "vue";
|
|
5
|
+
//#region src/components/message/Message.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "shrink-0",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
};
|
|
11
|
+
var _hoisted_2 = { class: "min-w-0 flex-1" };
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/message/Message.vue
|
|
14
|
+
var Message_default = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "Message",
|
|
16
|
+
props: /*@__PURE__*/ mergeModels({
|
|
17
|
+
severity: {},
|
|
18
|
+
class: {
|
|
19
|
+
type: [
|
|
20
|
+
Boolean,
|
|
21
|
+
null,
|
|
22
|
+
String,
|
|
23
|
+
Object,
|
|
24
|
+
Array
|
|
25
|
+
],
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
closable: { type: Boolean },
|
|
29
|
+
closeLabel: {}
|
|
30
|
+
}, {
|
|
31
|
+
"visible": {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
"visibleModifiers": {}
|
|
36
|
+
}),
|
|
37
|
+
emits: /*@__PURE__*/ mergeModels(["close"], ["update:visible"]),
|
|
38
|
+
setup(__props, { emit: __emit }) {
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
const visible = useModel(__props, "visible");
|
|
41
|
+
function close(event) {
|
|
42
|
+
visible.value = false;
|
|
43
|
+
emit("close", event);
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return visible.value ? (openBlock(), createElementBlock("div", {
|
|
47
|
+
key: 0,
|
|
48
|
+
role: "alert",
|
|
49
|
+
"aria-live": "assertive",
|
|
50
|
+
"aria-atomic": "true",
|
|
51
|
+
class: normalizeClass(unref(cn)(unref(messageVariants)({ severity: __props.severity }), __props.class))
|
|
52
|
+
}, [
|
|
53
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true),
|
|
54
|
+
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")]),
|
|
55
|
+
__props.closable ? (openBlock(), createBlock(unref(Button_default), {
|
|
56
|
+
key: 1,
|
|
57
|
+
type: "button",
|
|
58
|
+
variant: "textonly",
|
|
59
|
+
size: "unset",
|
|
60
|
+
class: "size-6 shrink-0 p-0 text-current",
|
|
61
|
+
"aria-label": __props.closeLabel,
|
|
62
|
+
onClick: close
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", {
|
|
65
|
+
class: "icon-[lucide--x]",
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}, null, -1)])]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true)
|
|
70
|
+
], 2)) : createCommentVNode("", true);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { Message_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'cva';
|
|
2
|
+
export declare const messageVariants: (props?: ({
|
|
3
|
+
severity?: "error" | "warning" | "info" | "success" | "secondary" | undefined;
|
|
4
|
+
} & ({
|
|
5
|
+
class?: import('cva').ClassValue;
|
|
6
|
+
className?: never;
|
|
7
|
+
} | {
|
|
8
|
+
class?: never;
|
|
9
|
+
className?: import('cva').ClassValue;
|
|
10
|
+
})) | undefined) => string;
|
|
11
|
+
export type MessageVariants = VariantProps<typeof messageVariants>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/components/message/message.variants.ts
|
|
3
|
+
var messageVariants = cva({
|
|
4
|
+
base: "flex w-full items-start gap-2 rounded-lg border px-3 py-2.75 text-sm",
|
|
5
|
+
variants: { severity: {
|
|
6
|
+
error: "border-destructive/40 bg-destructive/10 text-foreground",
|
|
7
|
+
warning: "border-warning/50 bg-warning/15 text-foreground",
|
|
8
|
+
info: "border-primary/40 bg-primary/10 text-foreground",
|
|
9
|
+
success: "border-success/50 bg-success/15 text-foreground",
|
|
10
|
+
secondary: "border-border/50 bg-secondary text-foreground"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { severity: "info" }
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { messageVariants };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { SelectOption } from '@comfyorg/design-system/lib/select/types';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue: SelectOption[];
|
|
4
|
+
'searchQuery'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_15: {
|
|
7
|
+
selected: SelectOption[];
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
value?: (props: typeof __VLS_15) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<(import('./types').MultiSelectBaseProps & {
|
|
13
|
+
showSearchBox?: false;
|
|
14
|
+
searchLabel?: string;
|
|
15
|
+
} & {
|
|
16
|
+
showClearButton?: false;
|
|
17
|
+
clearAllLabel?: string;
|
|
18
|
+
} & {
|
|
19
|
+
showSelectedCount?: false;
|
|
20
|
+
formatSelectedCount?: (count: number) => string;
|
|
21
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
22
|
+
showSearchBox?: false;
|
|
23
|
+
searchLabel?: string;
|
|
24
|
+
} & {
|
|
25
|
+
showClearButton?: false;
|
|
26
|
+
clearAllLabel?: string;
|
|
27
|
+
} & {
|
|
28
|
+
showSelectedCount: boolean;
|
|
29
|
+
formatSelectedCount: (count: number) => string;
|
|
30
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
31
|
+
showSearchBox?: false;
|
|
32
|
+
searchLabel?: string;
|
|
33
|
+
} & {
|
|
34
|
+
showClearButton: boolean;
|
|
35
|
+
clearAllLabel: string;
|
|
36
|
+
} & {
|
|
37
|
+
showSelectedCount?: false;
|
|
38
|
+
formatSelectedCount?: (count: number) => string;
|
|
39
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
40
|
+
showSearchBox?: false;
|
|
41
|
+
searchLabel?: string;
|
|
42
|
+
} & {
|
|
43
|
+
showClearButton: boolean;
|
|
44
|
+
clearAllLabel: string;
|
|
45
|
+
} & {
|
|
46
|
+
showSelectedCount: boolean;
|
|
47
|
+
formatSelectedCount: (count: number) => string;
|
|
48
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
49
|
+
showSearchBox: boolean;
|
|
50
|
+
searchLabel: string;
|
|
51
|
+
} & {
|
|
52
|
+
showClearButton?: false;
|
|
53
|
+
clearAllLabel?: string;
|
|
54
|
+
} & {
|
|
55
|
+
showSelectedCount?: false;
|
|
56
|
+
formatSelectedCount?: (count: number) => string;
|
|
57
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
58
|
+
showSearchBox: boolean;
|
|
59
|
+
searchLabel: string;
|
|
60
|
+
} & {
|
|
61
|
+
showClearButton?: false;
|
|
62
|
+
clearAllLabel?: string;
|
|
63
|
+
} & {
|
|
64
|
+
showSelectedCount: boolean;
|
|
65
|
+
formatSelectedCount: (count: number) => string;
|
|
66
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
67
|
+
showSearchBox: boolean;
|
|
68
|
+
searchLabel: string;
|
|
69
|
+
} & {
|
|
70
|
+
showClearButton: boolean;
|
|
71
|
+
clearAllLabel: string;
|
|
72
|
+
} & {
|
|
73
|
+
showSelectedCount?: false;
|
|
74
|
+
formatSelectedCount?: (count: number) => string;
|
|
75
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
76
|
+
showSearchBox: boolean;
|
|
77
|
+
searchLabel: string;
|
|
78
|
+
} & {
|
|
79
|
+
showClearButton: boolean;
|
|
80
|
+
clearAllLabel: string;
|
|
81
|
+
} & {
|
|
82
|
+
showSelectedCount: boolean;
|
|
83
|
+
formatSelectedCount: (count: number) => string;
|
|
84
|
+
} & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
|
+
"update:modelValue": (value: SelectOption[]) => any;
|
|
86
|
+
"update:searchQuery": (value: string) => any;
|
|
87
|
+
}, string, import('vue').PublicProps, Readonly<(import('./types').MultiSelectBaseProps & {
|
|
88
|
+
showSearchBox?: false;
|
|
89
|
+
searchLabel?: string;
|
|
90
|
+
} & {
|
|
91
|
+
showClearButton?: false;
|
|
92
|
+
clearAllLabel?: string;
|
|
93
|
+
} & {
|
|
94
|
+
showSelectedCount?: false;
|
|
95
|
+
formatSelectedCount?: (count: number) => string;
|
|
96
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
97
|
+
showSearchBox?: false;
|
|
98
|
+
searchLabel?: string;
|
|
99
|
+
} & {
|
|
100
|
+
showClearButton?: false;
|
|
101
|
+
clearAllLabel?: string;
|
|
102
|
+
} & {
|
|
103
|
+
showSelectedCount: boolean;
|
|
104
|
+
formatSelectedCount: (count: number) => string;
|
|
105
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
106
|
+
showSearchBox?: false;
|
|
107
|
+
searchLabel?: string;
|
|
108
|
+
} & {
|
|
109
|
+
showClearButton: boolean;
|
|
110
|
+
clearAllLabel: string;
|
|
111
|
+
} & {
|
|
112
|
+
showSelectedCount?: false;
|
|
113
|
+
formatSelectedCount?: (count: number) => string;
|
|
114
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
115
|
+
showSearchBox?: false;
|
|
116
|
+
searchLabel?: string;
|
|
117
|
+
} & {
|
|
118
|
+
showClearButton: boolean;
|
|
119
|
+
clearAllLabel: string;
|
|
120
|
+
} & {
|
|
121
|
+
showSelectedCount: boolean;
|
|
122
|
+
formatSelectedCount: (count: number) => string;
|
|
123
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
124
|
+
showSearchBox: boolean;
|
|
125
|
+
searchLabel: string;
|
|
126
|
+
} & {
|
|
127
|
+
showClearButton?: false;
|
|
128
|
+
clearAllLabel?: string;
|
|
129
|
+
} & {
|
|
130
|
+
showSelectedCount?: false;
|
|
131
|
+
formatSelectedCount?: (count: number) => string;
|
|
132
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
133
|
+
showSearchBox: boolean;
|
|
134
|
+
searchLabel: string;
|
|
135
|
+
} & {
|
|
136
|
+
showClearButton?: false;
|
|
137
|
+
clearAllLabel?: string;
|
|
138
|
+
} & {
|
|
139
|
+
showSelectedCount: boolean;
|
|
140
|
+
formatSelectedCount: (count: number) => string;
|
|
141
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
142
|
+
showSearchBox: boolean;
|
|
143
|
+
searchLabel: string;
|
|
144
|
+
} & {
|
|
145
|
+
showClearButton: boolean;
|
|
146
|
+
clearAllLabel: string;
|
|
147
|
+
} & {
|
|
148
|
+
showSelectedCount?: false;
|
|
149
|
+
formatSelectedCount?: (count: number) => string;
|
|
150
|
+
} & __VLS_ModelProps) | (import('./types').MultiSelectBaseProps & {
|
|
151
|
+
showSearchBox: boolean;
|
|
152
|
+
searchLabel: string;
|
|
153
|
+
} & {
|
|
154
|
+
showClearButton: boolean;
|
|
155
|
+
clearAllLabel: string;
|
|
156
|
+
} & {
|
|
157
|
+
showSelectedCount: boolean;
|
|
158
|
+
formatSelectedCount: (count: number) => string;
|
|
159
|
+
} & __VLS_ModelProps)> & Readonly<{
|
|
160
|
+
"onUpdate:modelValue"?: ((value: SelectOption[]) => any) | undefined;
|
|
161
|
+
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
162
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
163
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
164
|
+
declare const _default: typeof __VLS_export;
|
|
165
|
+
export default _default;
|
|
166
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
167
|
+
new (): {
|
|
168
|
+
$slots: S;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { useAttrsClass } from "../composables/useAttrsClass.js";
|
|
2
|
+
import { usePopoverSizing } from "../composables/usePopoverSizing.js";
|
|
3
|
+
import { t as MultiSelectContent_default } from "../shared/MultiSelectContent-c1D5avjh.js";
|
|
4
|
+
import { t as MultiSelectTrigger_default } from "../shared/MultiSelectTrigger-lmuXqETa.js";
|
|
5
|
+
import { createBlock, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, ref, renderSlot, unref, useModel, withCtx } from "vue";
|
|
6
|
+
import { ComboboxRoot } from "reka-ui";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/multi-select/MultiSelect.vue
|
|
9
|
+
var MultiSelect_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
__name: "MultiSelect",
|
|
12
|
+
props: /*@__PURE__*/ mergeModels({
|
|
13
|
+
accessibleLabel: {},
|
|
14
|
+
emptyText: {},
|
|
15
|
+
label: {},
|
|
16
|
+
options: { default: () => [] },
|
|
17
|
+
size: { default: "lg" },
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
actionsPlacement: { default: "header" },
|
|
23
|
+
searchPlaceholder: {},
|
|
24
|
+
listMaxHeight: { default: "28rem" },
|
|
25
|
+
popoverMinWidth: {},
|
|
26
|
+
popoverMaxWidth: {},
|
|
27
|
+
contentStyle: { type: [
|
|
28
|
+
Boolean,
|
|
29
|
+
null,
|
|
30
|
+
String,
|
|
31
|
+
Object,
|
|
32
|
+
Array
|
|
33
|
+
] },
|
|
34
|
+
showSearchBox: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
searchLabel: {},
|
|
39
|
+
showClearButton: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
clearAllLabel: {},
|
|
44
|
+
showSelectedCount: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
formatSelectedCount: { type: Function }
|
|
49
|
+
}, {
|
|
50
|
+
"modelValue": { required: true },
|
|
51
|
+
"modelModifiers": {},
|
|
52
|
+
"searchQuery": { default: "" },
|
|
53
|
+
"searchQueryModifiers": {}
|
|
54
|
+
}),
|
|
55
|
+
emits: ["update:modelValue", "update:searchQuery"],
|
|
56
|
+
setup(__props) {
|
|
57
|
+
const { attrsClass, attrsWithoutClass } = useAttrsClass();
|
|
58
|
+
const selectedItems = useModel(__props, "modelValue");
|
|
59
|
+
const searchQuery = useModel(__props, "searchQuery");
|
|
60
|
+
const isOpen = ref(false);
|
|
61
|
+
const popoverStyle = usePopoverSizing({
|
|
62
|
+
minWidth: __props.popoverMinWidth,
|
|
63
|
+
maxWidth: __props.popoverMaxWidth
|
|
64
|
+
});
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createBlock(unref(ComboboxRoot), {
|
|
67
|
+
modelValue: selectedItems.value,
|
|
68
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selectedItems.value = $event),
|
|
69
|
+
open: isOpen.value,
|
|
70
|
+
"onUpdate:open": _cache[4] || (_cache[4] = ($event) => isOpen.value = $event),
|
|
71
|
+
multiple: "",
|
|
72
|
+
by: "value",
|
|
73
|
+
disabled: __props.disabled,
|
|
74
|
+
"ignore-filter": "",
|
|
75
|
+
"reset-search-term-on-select": false
|
|
76
|
+
}, {
|
|
77
|
+
default: withCtx(() => [createVNode(MultiSelectTrigger_default, mergeProps(unref(attrsWithoutClass), {
|
|
78
|
+
class: unref(attrsClass),
|
|
79
|
+
label: __props.label,
|
|
80
|
+
"accessible-label": __props.accessibleLabel,
|
|
81
|
+
"selected-items": selectedItems.value,
|
|
82
|
+
size: __props.size
|
|
83
|
+
}), createSlots({ _: 2 }, [_ctx.$slots.value ? {
|
|
84
|
+
name: "default",
|
|
85
|
+
fn: withCtx(({ selected }) => [renderSlot(_ctx.$slots, "value", { selected })]),
|
|
86
|
+
key: "0"
|
|
87
|
+
} : void 0]), 1040, [
|
|
88
|
+
"class",
|
|
89
|
+
"label",
|
|
90
|
+
"accessible-label",
|
|
91
|
+
"selected-items",
|
|
92
|
+
"size"
|
|
93
|
+
]), createVNode(MultiSelectContent_default, {
|
|
94
|
+
modelValue: selectedItems.value,
|
|
95
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedItems.value = $event),
|
|
96
|
+
"search-query": searchQuery.value,
|
|
97
|
+
"onUpdate:searchQuery": _cache[1] || (_cache[1] = ($event) => searchQuery.value = $event),
|
|
98
|
+
options: __props.options,
|
|
99
|
+
"show-search-box": __props.showSearchBox,
|
|
100
|
+
"show-clear-button": __props.showClearButton,
|
|
101
|
+
"actions-placement": __props.actionsPlacement,
|
|
102
|
+
"search-placeholder": __props.searchPlaceholder,
|
|
103
|
+
"search-label": __props.searchLabel,
|
|
104
|
+
"empty-text": __props.emptyText,
|
|
105
|
+
"clear-all-label": __props.clearAllLabel,
|
|
106
|
+
"format-selected-count": __props.showSelectedCount ? __props.formatSelectedCount : void 0,
|
|
107
|
+
"list-max-height": __props.listMaxHeight,
|
|
108
|
+
"popover-style": unref(popoverStyle),
|
|
109
|
+
"content-style": __props.contentStyle,
|
|
110
|
+
onEscape: _cache[2] || (_cache[2] = ($event) => isOpen.value = false)
|
|
111
|
+
}, null, 8, [
|
|
112
|
+
"modelValue",
|
|
113
|
+
"search-query",
|
|
114
|
+
"options",
|
|
115
|
+
"show-search-box",
|
|
116
|
+
"show-clear-button",
|
|
117
|
+
"actions-placement",
|
|
118
|
+
"search-placeholder",
|
|
119
|
+
"search-label",
|
|
120
|
+
"empty-text",
|
|
121
|
+
"clear-all-label",
|
|
122
|
+
"format-selected-count",
|
|
123
|
+
"list-max-height",
|
|
124
|
+
"popover-style",
|
|
125
|
+
"content-style"
|
|
126
|
+
])]),
|
|
127
|
+
_: 3
|
|
128
|
+
}, 8, [
|
|
129
|
+
"modelValue",
|
|
130
|
+
"open",
|
|
131
|
+
"disabled"
|
|
132
|
+
]);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
//#endregion
|
|
137
|
+
export { MultiSelect_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { SelectOption } from '@comfyorg/design-system/lib/select/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
searchLabel?: string;
|
|
5
|
+
emptyText: string;
|
|
6
|
+
clearAllLabel?: string;
|
|
7
|
+
formatSelectedCount?: (count: number) => string;
|
|
8
|
+
options: SelectOption[];
|
|
9
|
+
showSearchBox: boolean;
|
|
10
|
+
showClearButton: boolean;
|
|
11
|
+
actionsPlacement: 'header' | 'footer';
|
|
12
|
+
searchPlaceholder?: string;
|
|
13
|
+
listMaxHeight: string;
|
|
14
|
+
popoverStyle: StyleValue;
|
|
15
|
+
contentStyle?: StyleValue;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_ModelProps = {
|
|
18
|
+
modelValue: SelectOption[];
|
|
19
|
+
'searchQuery': string;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
22
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
escape: () => any;
|
|
24
|
+
"update:modelValue": (value: SelectOption[]) => any;
|
|
25
|
+
"update:searchQuery": (value: string) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
onEscape?: (() => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: SelectOption[]) => any) | undefined;
|
|
29
|
+
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ClassValue } from 'cva';
|
|
2
|
+
import { SelectOption } from '@comfyorg/design-system/lib/select/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: ClassValue;
|
|
5
|
+
label?: string;
|
|
6
|
+
accessibleLabel: string;
|
|
7
|
+
selectedItems: SelectOption[];
|
|
8
|
+
size: 'lg' | 'md';
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_14: {
|
|
11
|
+
selected: SelectOption[];
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_14) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|