@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,80 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { menuContentClass } from "../menu/menuStyles.js";
|
|
3
|
+
import { createBlock, createPropsRestProxy, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import { DropdownMenuContent, DropdownMenuPortal, injectDropdownMenuRootContext, useForwardPropsEmits } from "reka-ui";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/menu/MenuContent.vue
|
|
7
|
+
var MenuContent_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "MenuContent",
|
|
10
|
+
props: {
|
|
11
|
+
forceMount: { type: Boolean },
|
|
12
|
+
loop: { type: Boolean },
|
|
13
|
+
memoDependencies: {},
|
|
14
|
+
side: {},
|
|
15
|
+
sideOffset: {},
|
|
16
|
+
sideFlip: { type: Boolean },
|
|
17
|
+
align: {},
|
|
18
|
+
alignOffset: {},
|
|
19
|
+
alignFlip: { type: Boolean },
|
|
20
|
+
avoidCollisions: { type: Boolean },
|
|
21
|
+
collisionBoundary: {},
|
|
22
|
+
collisionPadding: {},
|
|
23
|
+
arrowPadding: {},
|
|
24
|
+
hideShiftedArrow: { type: Boolean },
|
|
25
|
+
sticky: {},
|
|
26
|
+
hideWhenDetached: { type: Boolean },
|
|
27
|
+
positionStrategy: {},
|
|
28
|
+
updatePositionStrategy: {},
|
|
29
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
30
|
+
prioritizePosition: { type: Boolean },
|
|
31
|
+
reference: {},
|
|
32
|
+
asChild: { type: Boolean },
|
|
33
|
+
as: {},
|
|
34
|
+
class: { type: [
|
|
35
|
+
Boolean,
|
|
36
|
+
null,
|
|
37
|
+
String,
|
|
38
|
+
Object,
|
|
39
|
+
Array
|
|
40
|
+
] },
|
|
41
|
+
to: {},
|
|
42
|
+
width: { default: "default" },
|
|
43
|
+
maxHeight: { default: "available" }
|
|
44
|
+
},
|
|
45
|
+
emits: [
|
|
46
|
+
"escapeKeyDown",
|
|
47
|
+
"pointerDownOutside",
|
|
48
|
+
"focusOutside",
|
|
49
|
+
"interactOutside",
|
|
50
|
+
"openAutoFocus",
|
|
51
|
+
"closeAutoFocus"
|
|
52
|
+
],
|
|
53
|
+
setup(__props, { emit: __emit }) {
|
|
54
|
+
const restProps = createPropsRestProxy(__props, [
|
|
55
|
+
"class",
|
|
56
|
+
"to",
|
|
57
|
+
"width",
|
|
58
|
+
"maxHeight"
|
|
59
|
+
]);
|
|
60
|
+
const forwarded = useForwardPropsEmits(restProps, __emit);
|
|
61
|
+
const rootContext = injectDropdownMenuRootContext();
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return openBlock(), createBlock(unref(DropdownMenuPortal), {
|
|
64
|
+
key: Number(unref(rootContext).open.value),
|
|
65
|
+
to: __props.to
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(() => [createVNode(unref(DropdownMenuContent), mergeProps({
|
|
68
|
+
...unref(forwarded),
|
|
69
|
+
..._ctx.$attrs
|
|
70
|
+
}, { class: unref(cn)(unref(menuContentClass), __props.width === "trigger" && "w-(--reka-dropdown-menu-trigger-width) min-w-0 overflow-hidden", __props.width === "compact" && "w-max min-w-46.5", __props.maxHeight === "available" && "max-h-(--reka-dropdown-menu-content-available-height)", __props.maxHeight === "compact" && "max-h-64", __props.maxHeight === "viewport" && "max-h-[min(40vh,var(--reka-dropdown-menu-content-available-height))]", __props.class) }), {
|
|
71
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 16, ["class"])]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["to"]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
export { MenuContent_default as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { t as Switch_default } from "./Switch-DsCzHpDU.js";
|
|
3
|
+
import { t as Badge_default } from "./Badge-D3uWa3yk.js";
|
|
4
|
+
import { t as OverlayIcon_default } from "./OverlayIcon-DntJI-mm.js";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, toDisplayString, toValue, unref, withCtx } from "vue";
|
|
6
|
+
//#region src/components/menu/MenuItemContent.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "min-w-0 flex-1" };
|
|
8
|
+
var _hoisted_2 = { class: "block truncate" };
|
|
9
|
+
var _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "block max-w-64 text-xs whitespace-normal text-muted-foreground"
|
|
12
|
+
};
|
|
13
|
+
var _hoisted_4 = {
|
|
14
|
+
key: 4,
|
|
15
|
+
"data-testid": "menu-item-submenu-indicator",
|
|
16
|
+
class: "ml-auto icon-[lucide--chevron-right]"
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_5 = {
|
|
19
|
+
key: 7,
|
|
20
|
+
class: "ml-auto rounded-sm border bg-secondary p-1 text-xs text-nowrap text-muted-foreground"
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/menu/MenuItemContent.vue
|
|
24
|
+
var MenuItemContent_default = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "MenuItemContent",
|
|
26
|
+
props: {
|
|
27
|
+
hasSubmenu: { type: Boolean },
|
|
28
|
+
item: {}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
33
|
+
__props.item.overlayIcon ? (openBlock(), createBlock(unref(OverlayIcon_default), normalizeProps(mergeProps({ key: 0 }, __props.item.overlayIcon)), null, 16)) : __props.item.icon ? (openBlock(), createElementBlock("i", {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: normalizeClass(__props.item.icon)
|
|
36
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
37
|
+
createElementVNode("span", _hoisted_1, [createElementVNode("span", _hoisted_2, toDisplayString(toValue(__props.item.label)), 1), __props.item.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(toValue(__props.item.description)), 1)) : createCommentVNode("", true)]),
|
|
38
|
+
__props.item.trailingIcon ? (openBlock(), createElementBlock("i", {
|
|
39
|
+
key: 2,
|
|
40
|
+
class: normalizeClass(unref(cn)(__props.item.trailingIcon, "ml-auto"))
|
|
41
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
42
|
+
__props.item.badge ? (openBlock(), createBlock(unref(Badge_default), {
|
|
43
|
+
key: 3,
|
|
44
|
+
variant: "pill",
|
|
45
|
+
severity: "default",
|
|
46
|
+
class: "ml-3 px-1.5 uppercase"
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.item.badge), 1)]),
|
|
49
|
+
_: 1
|
|
50
|
+
})) : createCommentVNode("", true),
|
|
51
|
+
__props.hasSubmenu ? (openBlock(), createElementBlock("i", _hoisted_4)) : __props.item.presentation === "switch" ? (openBlock(), createBlock(unref(Switch_default), {
|
|
52
|
+
key: 5,
|
|
53
|
+
"model-value": toValue(__props.item.checked),
|
|
54
|
+
class: "pointer-events-none ml-4",
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
readonly: "",
|
|
57
|
+
tabindex: "-1"
|
|
58
|
+
}, null, 8, ["model-value"])) : __props.item.checked !== void 0 ? (openBlock(), createElementBlock("i", {
|
|
59
|
+
key: 6,
|
|
60
|
+
"data-testid": "menu-item-indicator",
|
|
61
|
+
class: normalizeClass(unref(cn)("ml-auto icon-[lucide--check]", !toValue(__props.item.checked) && "invisible"))
|
|
62
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
63
|
+
!__props.hasSubmenu && toValue(__props.item.shortcut) ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(toValue(__props.item.shortcut)), 1)) : createCommentVNode("", true)
|
|
64
|
+
], 64);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { MenuItemContent_default as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as MenuAction_default } from "./MenuAction-BdghJ23k.js";
|
|
2
|
+
import { t as MenuItemContent_default } from "./MenuItemContent--dPNoBmU.js";
|
|
3
|
+
import { t as MenuSeparator_default } from "./MenuSeparator-Dm6CkPqB.js";
|
|
4
|
+
import { t as MenuSubmenu_default } from "./MenuSubmenu-QHWMyfKF.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, mergeProps, normalizeProps, openBlock, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toValue, unref, withCtx } from "vue";
|
|
6
|
+
import { createReusableTemplate } from "@vueuse/core";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/menu/MenuItems.vue
|
|
9
|
+
var MenuItems_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "MenuItems",
|
|
11
|
+
__name: "MenuItems",
|
|
12
|
+
props: {
|
|
13
|
+
items: {},
|
|
14
|
+
itemContent: { type: Function }
|
|
15
|
+
},
|
|
16
|
+
emits: ["select", "activate"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const [DefineItemContent, ReuseItemContent] = createReusableTemplate();
|
|
19
|
+
const emit = __emit;
|
|
20
|
+
const visibleItems = computed(() => __props.items.filter((item) => toValue(item.visible) !== false));
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
const _component_MenuItems = resolveComponent("MenuItems", true);
|
|
23
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineItemContent), null, {
|
|
24
|
+
default: withCtx(({ item, hasSubmenu }) => [__props.itemContent ? (openBlock(), createBlock(resolveDynamicComponent(__props.itemContent), normalizeProps(mergeProps({ key: 0 }, {
|
|
25
|
+
item,
|
|
26
|
+
hasSubmenu
|
|
27
|
+
})), null, 16)) : renderSlot(_ctx.$slots, "item", {
|
|
28
|
+
item,
|
|
29
|
+
hasSubmenu
|
|
30
|
+
}, () => [createVNode(MenuItemContent_default, {
|
|
31
|
+
item,
|
|
32
|
+
"has-submenu": hasSubmenu
|
|
33
|
+
}, null, 8, ["item", "has-submenu"])], void 0, 1)]),
|
|
34
|
+
_: 3
|
|
35
|
+
}), (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
36
|
+
return openBlock(), createElementBlock(Fragment, { key: item.key ?? toValue(item.label) ?? index }, [item.separator ? (openBlock(), createBlock(MenuSeparator_default, { key: 0 })) : item.items || item.radioGroup ? (openBlock(), createBlock(MenuSubmenu_default, {
|
|
37
|
+
key: 1,
|
|
38
|
+
item
|
|
39
|
+
}, {
|
|
40
|
+
content: withCtx(({ items: childItems }) => [createVNode(_component_MenuItems, {
|
|
41
|
+
items: childItems,
|
|
42
|
+
"item-content": __props.itemContent ?? _ctx.$slots.item,
|
|
43
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => emit("select")),
|
|
44
|
+
onActivate: _cache[1] || (_cache[1] = ($event) => emit("activate", $event))
|
|
45
|
+
}, null, 8, ["items", "item-content"])]),
|
|
46
|
+
default: withCtx(() => [createVNode(unref(ReuseItemContent), {
|
|
47
|
+
item,
|
|
48
|
+
"has-submenu": true
|
|
49
|
+
}, null, 8, ["item"])]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, 1032, ["item"])) : (openBlock(), createBlock(MenuAction_default, {
|
|
52
|
+
key: 2,
|
|
53
|
+
item,
|
|
54
|
+
"allow-commandless": Boolean(__props.itemContent ?? _ctx.$slots.item),
|
|
55
|
+
onSelect: _cache[2] || (_cache[2] = ($event) => emit("select")),
|
|
56
|
+
onActivate: _cache[3] || (_cache[3] = ($event) => emit("activate", $event))
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [createVNode(unref(ReuseItemContent), {
|
|
59
|
+
item,
|
|
60
|
+
"has-submenu": false
|
|
61
|
+
}, null, 8, ["item"])]),
|
|
62
|
+
_: 2
|
|
63
|
+
}, 1032, ["item", "allow-commandless"]))], 64);
|
|
64
|
+
}), 128))], 64);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { MenuItems_default as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as TextTooltip_default } from "./TextTooltip-ClHQl84h.js";
|
|
2
|
+
import { t as MenuItemContent_default } from "./MenuItemContent--dPNoBmU.js";
|
|
3
|
+
import { t as MenuRadioItem_default } from "./MenuRadioItem-h7hh_RGU.js";
|
|
4
|
+
import { Fragment, createBlock, createElementBlock, createVNode, defineComponent, mergeModels, openBlock, renderList, unref, useModel, withCtx } from "vue";
|
|
5
|
+
import { DropdownMenuRadioGroup } from "reka-ui";
|
|
6
|
+
import { createReusableTemplate } from "@vueuse/core";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/menu/MenuRadioGroup.vue
|
|
9
|
+
var MenuRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "MenuRadioGroup",
|
|
11
|
+
props: /*@__PURE__*/ mergeModels({ options: {} }, {
|
|
12
|
+
"modelValue": { required: true },
|
|
13
|
+
"modelModifiers": {}
|
|
14
|
+
}),
|
|
15
|
+
emits: /*@__PURE__*/ mergeModels(["select"], ["update:modelValue"]),
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const selected = useModel(__props, "modelValue");
|
|
18
|
+
const emit = __emit;
|
|
19
|
+
const [DefineItem, ReuseItem] = createReusableTemplate({ props: { option: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true
|
|
22
|
+
} } });
|
|
23
|
+
function select(option, event) {
|
|
24
|
+
selected.value = option.value;
|
|
25
|
+
option.command?.();
|
|
26
|
+
emit("select", event);
|
|
27
|
+
}
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineItem), null, {
|
|
30
|
+
default: withCtx(({ option }) => [createVNode(MenuRadioItem_default, {
|
|
31
|
+
value: option.value,
|
|
32
|
+
onSelect: ($event) => select(option, $event)
|
|
33
|
+
}, {
|
|
34
|
+
default: withCtx(() => [createVNode(MenuItemContent_default, {
|
|
35
|
+
item: {
|
|
36
|
+
label: option.label,
|
|
37
|
+
icon: option.icon,
|
|
38
|
+
checked: selected.value === option.value
|
|
39
|
+
},
|
|
40
|
+
"has-submenu": false
|
|
41
|
+
}, null, 8, ["item"])]),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1032, ["value", "onSelect"])]),
|
|
44
|
+
_: 1
|
|
45
|
+
}), createVNode(unref(DropdownMenuRadioGroup), { "model-value": selected.value }, {
|
|
46
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
47
|
+
return openBlock(), createElementBlock(Fragment, { key: option.value }, [option.tooltip ? (openBlock(), createBlock(unref(TextTooltip_default), {
|
|
48
|
+
key: 0,
|
|
49
|
+
text: option.tooltip,
|
|
50
|
+
side: "right"
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [createVNode(unref(ReuseItem), { option }, null, 8, ["option"])]),
|
|
53
|
+
_: 2
|
|
54
|
+
}, 1032, ["text"])) : (openBlock(), createBlock(unref(ReuseItem), {
|
|
55
|
+
key: 1,
|
|
56
|
+
option
|
|
57
|
+
}, null, 8, ["option"]))], 64);
|
|
58
|
+
}), 128))]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["model-value"])], 64);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { MenuRadioGroup_default as t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { menuItemClass } from "../menu/menuStyles.js";
|
|
3
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import { DropdownMenuRadioItem, useForwardPropsEmits } from "reka-ui";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/menu/MenuRadioItem.vue
|
|
7
|
+
var MenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "MenuRadioItem",
|
|
9
|
+
props: {
|
|
10
|
+
value: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
textValue: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {},
|
|
15
|
+
class: { type: [
|
|
16
|
+
Boolean,
|
|
17
|
+
null,
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Array
|
|
21
|
+
] }
|
|
22
|
+
},
|
|
23
|
+
emits: ["select"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
26
|
+
const forwarded = useForwardPropsEmits(restProps, __emit);
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createBlock(unref(DropdownMenuRadioItem), mergeProps(unref(forwarded), { class: unref(cn)(unref(menuItemClass), "w-full", __props.class) }), {
|
|
29
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 16, ["class"]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { MenuRadioItem_default as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
3
|
+
import { DropdownMenuSeparator, useForwardProps } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/menu/MenuSeparator.vue
|
|
6
|
+
var MenuSeparator_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "MenuSeparator",
|
|
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
|
+
const forwarded = useForwardProps(restProps);
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(DropdownMenuSeparator), mergeProps(unref(forwarded), { class: unref(cn)("my-1 h-px bg-border/50", __props.class) }), null, 16, ["class"]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { MenuSeparator_default as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DropdownMenuSub, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/menu/MenuSub.vue
|
|
5
|
+
var MenuSub_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "MenuSub",
|
|
7
|
+
props: {
|
|
8
|
+
defaultOpen: { type: Boolean },
|
|
9
|
+
open: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:open"],
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(unref(DropdownMenuSub), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
16
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
17
|
+
_: 3
|
|
18
|
+
}, 16);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { MenuSub_default as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { menuContentClass } from "../menu/menuStyles.js";
|
|
3
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx, withModifiers } from "vue";
|
|
4
|
+
import { DropdownMenuSubContent, useForwardPropsEmits } from "reka-ui";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/menu/MenuSubContent.vue
|
|
7
|
+
var MenuSubContent_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "MenuSubContent",
|
|
9
|
+
props: {
|
|
10
|
+
forceMount: { type: Boolean },
|
|
11
|
+
loop: { type: Boolean },
|
|
12
|
+
memoDependencies: {},
|
|
13
|
+
sideOffset: {},
|
|
14
|
+
sideFlip: { type: Boolean },
|
|
15
|
+
alignOffset: {},
|
|
16
|
+
alignFlip: { type: Boolean },
|
|
17
|
+
avoidCollisions: { type: Boolean },
|
|
18
|
+
collisionBoundary: {},
|
|
19
|
+
collisionPadding: {},
|
|
20
|
+
arrowPadding: {},
|
|
21
|
+
hideShiftedArrow: { type: Boolean },
|
|
22
|
+
sticky: {},
|
|
23
|
+
hideWhenDetached: { type: Boolean },
|
|
24
|
+
positionStrategy: {},
|
|
25
|
+
updatePositionStrategy: {},
|
|
26
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
27
|
+
prioritizePosition: { type: Boolean },
|
|
28
|
+
reference: {},
|
|
29
|
+
asChild: { type: Boolean },
|
|
30
|
+
as: {},
|
|
31
|
+
class: { type: [
|
|
32
|
+
Boolean,
|
|
33
|
+
null,
|
|
34
|
+
String,
|
|
35
|
+
Object,
|
|
36
|
+
Array
|
|
37
|
+
] },
|
|
38
|
+
width: { default: "default" },
|
|
39
|
+
maxHeight: { default: "available" }
|
|
40
|
+
},
|
|
41
|
+
emits: [
|
|
42
|
+
"escapeKeyDown",
|
|
43
|
+
"pointerDownOutside",
|
|
44
|
+
"focusOutside",
|
|
45
|
+
"interactOutside",
|
|
46
|
+
"entryFocus",
|
|
47
|
+
"openAutoFocus",
|
|
48
|
+
"closeAutoFocus"
|
|
49
|
+
],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
const restProps = createPropsRestProxy(__props, [
|
|
52
|
+
"class",
|
|
53
|
+
"width",
|
|
54
|
+
"maxHeight"
|
|
55
|
+
]);
|
|
56
|
+
const forwarded = useForwardPropsEmits(restProps, __emit);
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(unref(DropdownMenuSubContent), mergeProps(unref(forwarded), {
|
|
59
|
+
class: unref(cn)(unref(menuContentClass), __props.width === "compact" && "min-w-46.5", __props.maxHeight === "available" && "max-h-(--reka-dropdown-menu-content-available-height)", __props.maxHeight === "compact" && "max-h-64", __props.class),
|
|
60
|
+
onPointermove: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
61
|
+
}), {
|
|
62
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 16, ["class"]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { MenuSubContent_default as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { menuItemClass } from "../menu/menuStyles.js";
|
|
3
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import { DropdownMenuSubTrigger, useForwardProps } from "reka-ui";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/menu/MenuSubTrigger.vue
|
|
7
|
+
var MenuSubTrigger_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "MenuSubTrigger",
|
|
9
|
+
props: {
|
|
10
|
+
graceDuration: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
textValue: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {},
|
|
15
|
+
class: { type: [
|
|
16
|
+
Boolean,
|
|
17
|
+
null,
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Array
|
|
21
|
+
] }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
25
|
+
const forwarded = useForwardProps(restProps);
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createBlock(unref(DropdownMenuSubTrigger), mergeProps(unref(forwarded), { class: unref(cn)(unref(menuItemClass), __props.class) }), {
|
|
28
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["class"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { MenuSubTrigger_default as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as MenuRadioGroup_default } from "./MenuRadioGroup-Bpjt9sHI.js";
|
|
2
|
+
import { t as MenuSub_default } from "./MenuSub-Dbnj2w-X.js";
|
|
3
|
+
import { t as MenuSubContent_default } from "./MenuSubContent-M-g3fllh.js";
|
|
4
|
+
import { t as MenuSubTrigger_default } from "./MenuSubTrigger-D6-3s2NL.js";
|
|
5
|
+
import { computed, createBlock, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toValue, withCtx } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/menu/MenuSubmenu.vue
|
|
8
|
+
var MenuSubmenu_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "MenuSubmenu",
|
|
10
|
+
props: { item: {} },
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const disabled = computed(() => toValue(__props.item.disabled) || (__props.item.items ?? __props.item.radioGroup.options).length === 0);
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createBlock(MenuSub_default, null, {
|
|
15
|
+
default: withCtx(() => [createVNode(MenuSubTrigger_default, {
|
|
16
|
+
"aria-label": toValue(__props.item.label),
|
|
17
|
+
disabled: disabled.value,
|
|
18
|
+
class: normalizeClass(toValue(__props.item.class))
|
|
19
|
+
}, {
|
|
20
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 8, [
|
|
23
|
+
"aria-label",
|
|
24
|
+
"disabled",
|
|
25
|
+
"class"
|
|
26
|
+
]), createVNode(MenuSubContent_default, {
|
|
27
|
+
"side-offset": 2,
|
|
28
|
+
"align-offset": -5
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [__props.item.items ? renderSlot(_ctx.$slots, "content", { items: __props.item.items }, void 0, void 0, 0) : (openBlock(), createBlock(MenuRadioGroup_default, {
|
|
31
|
+
key: 1,
|
|
32
|
+
"model-value": toValue(__props.item.radioGroup.value),
|
|
33
|
+
options: __props.item.radioGroup.options
|
|
34
|
+
}, null, 8, ["model-value", "options"]))]),
|
|
35
|
+
_: 3
|
|
36
|
+
})]),
|
|
37
|
+
_: 3
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { MenuSubmenu_default as t };
|