@comfyorg/design-system 1.1.0 → 1.3.0-alpha.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 +113 -10
- package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
- package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +1 -0
- package/dist/badge/CreditBadge.vue.d.ts +6 -0
- package/dist/badge/CreditBadge.vue.js +21 -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 +1 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +35 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +13 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +1 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +1 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +1 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +55 -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 +177 -0
- package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +47 -0
- package/dist/chip/Tag.vue.d.ts +61 -0
- package/dist/chip/Tag.vue.js +71 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +1 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
- package/dist/color-picker/ColorPicker.vue.js +139 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
- package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
- package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
- package/dist/color-picker/types.d.ts +22 -0
- package/dist/color-picker/types.js +0 -0
- package/dist/color-picker/useColorPicker.d.ts +33 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +21 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +20 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +26 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +32 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +71 -0
- package/dist/common/HighlightedText.vue.d.ts +8 -0
- package/dist/common/HighlightedText.vue.js +49 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +39 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +91 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +11 -0
- package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
- package/dist/common/NoResultsPlaceholder.vue.js +49 -0
- package/dist/common/NotificationPopup.vue.d.ts +28 -0
- package/dist/common/NotificationPopup.vue.js +63 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +1 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +58 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +34 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +51 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +51 -0
- package/dist/common/UserAvatar.vue.d.ts +9 -0
- package/dist/common/UserAvatar.vue.js +45 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +14 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +139 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +56 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +105 -0
- package/dist/common/highlightQuery.d.ts +6 -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 +17 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +17 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +25 -0
- package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
- package/dist/confirm/ConfirmFooter.vue.js +53 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +25 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +17 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +59 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +70 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +23 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +1 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +1 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +31 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +22 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +22 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +25 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +1 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +53 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +1 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +1 -0
- package/dist/dialog/Dialogue.vue.d.ts +22 -0
- package/dist/dialog/Dialogue.vue.js +56 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +38 -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 +39 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +22 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +37 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +22 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +26 -0
- package/dist/field/FieldSwitch.vue.d.ts +16 -0
- package/dist/field/FieldSwitch.vue.js +43 -0
- package/dist/field/LayoutField.vue.d.ts +18 -0
- package/dist/field/LayoutField.vue.js +1 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +16 -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 +24 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +66 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +21 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +31 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +38 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +29 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +30 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +1 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +66 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +1 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +1 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +1 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +1 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +21 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +122 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +1 -0
- package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
- package/dist/layout/BaseModalLayout.vue.js +198 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +26 -0
- package/dist/media/ImageLightbox.vue.d.ts +17 -0
- package/dist/media/ImageLightbox.vue.js +76 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +17 -0
- package/dist/media/Video.vue.d.ts +28 -0
- package/dist/media/Video.vue.js +100 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +26 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +30 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +60 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +50 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +1 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +77 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +1 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +1 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +33 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +1 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +1 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +1 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +1 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +1 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +1 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +1 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +1 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +1 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +14 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +6 -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 +55 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +73 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +14 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +135 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +1 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +1 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
- package/dist/navigation/LeftSidePanel.vue.js +82 -0
- package/dist/navigation/NavIcon.vue.d.ts +7 -0
- package/dist/navigation/NavIcon.vue.js +1 -0
- package/dist/navigation/NavItem.vue.d.ts +21 -0
- package/dist/navigation/NavItem.vue.js +1 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +1 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +15 -0
- package/dist/navigation/types.d.ts +13 -0
- package/dist/navigation/types.js +0 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +73 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +33 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +33 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +23 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +54 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +138 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +1 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +12 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +43 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +40 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +102 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +232 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +125 -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 +46 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +1 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +1 -0
- package/dist/select/SelectItem.vue.d.ts +22 -0
- package/dist/select/SelectItem.vue.js +1 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +1 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +1 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +1 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +1 -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 +14 -0
- package/dist/shared/Badge-DFHO3AFi.js +90 -0
- package/dist/shared/Button-Dj_H5v3V.js +138 -0
- package/dist/shared/Card-BrvqUM49.js +32 -0
- package/dist/shared/CardFooter-BV_I0pM-.js +19 -0
- package/dist/shared/CardHeader-CMutruBx.js +19 -0
- package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
- package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
- package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
- package/dist/shared/ContextMenuContent-RNyBBJOX.js +62 -0
- package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
- package/dist/shared/DialogContent-v2s55FXs.js +71 -0
- package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
- package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
- package/dist/shared/DialogTitle-Chomvpgq.js +41 -0
- package/dist/shared/Input-DOeNoniw.js +36 -0
- package/dist/shared/InputGroup-BYt6BWpk.js +23 -0
- package/dist/shared/InputGroupAddon-B1cn7czs.js +36 -0
- package/dist/shared/InputGroupButton-tw5AYOoR.js +39 -0
- package/dist/shared/InputGroupInput-C_kkIxvY.js +30 -0
- package/dist/shared/Label-kwhWNR2P.js +34 -0
- package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
- package/dist/shared/MenuAction-0z8BSoX9.js +121 -0
- package/dist/shared/MenuContent--tKCqaIO.js +78 -0
- package/dist/shared/MenuItemContent-Be658c7e.js +67 -0
- package/dist/shared/MenuItems-BZTlERd6.js +67 -0
- package/dist/shared/MenuRadioGroup-B28YS1p1.js +63 -0
- package/dist/shared/MenuRadioItem-D8DFu-KU.js +34 -0
- package/dist/shared/MenuSeparator-DrAiObmE.js +26 -0
- package/dist/shared/MenuSub-DSizq_fV.js +21 -0
- package/dist/shared/MenuSubContent-ghzkX4hX.js +67 -0
- package/dist/shared/MenuSubTrigger-BGRIm_Bf.js +33 -0
- package/dist/shared/MenuSubmenu-CjPf8DXl.js +41 -0
- package/dist/shared/MultiSelectContent-9xyBQKz3.js +160 -0
- package/dist/shared/MultiSelectTrigger-DNySkpH9.js +50 -0
- package/dist/shared/NavIcon-FTJH75HH.js +12 -0
- package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
- package/dist/shared/NavTitle-BM22yfCR.js +40 -0
- package/dist/shared/OverlayIcon-C-din824.js +43 -0
- package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
- package/dist/shared/SearchableSingleSelect-DQauLQWW.js +182 -0
- package/dist/shared/Select-DtVgv7Po.js +31 -0
- package/dist/shared/SelectContent-Ba1mCDWM.js +89 -0
- package/dist/shared/SelectItem-DaOr3TFS.js +55 -0
- package/dist/shared/SelectScrollDownButton-DYmxtida.js +28 -0
- package/dist/shared/SelectScrollUpButton-DiyvSb9O.js +28 -0
- package/dist/shared/SelectTrigger-BBicbVsI.js +45 -0
- package/dist/shared/SelectValue-BjaQc-WU.js +21 -0
- package/dist/shared/Switch-qavkHWMz.js +61 -0
- package/dist/shared/TableHead-DpsXVMzk.js +22 -0
- package/dist/shared/TagRemoveButton-D919R-To.js +36 -0
- package/dist/shared/TextTooltip-BNlZI515.js +27 -0
- package/dist/shared/Tooltip-4rCebVao.js +32 -0
- package/dist/shared/TooltipContent-0GR7hBNu.js +89 -0
- package/dist/shared/TooltipTrigger-64EIE5f2.js +63 -0
- package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
- package/dist/shared/_plugin-vue_export-helper-DjkACiAr.js +7 -0
- package/dist/shared/searchInput.variants-BdYHNjce.js +46 -0
- package/dist/shared/select.variants-cRXaATWS.js +39 -0
- package/dist/shared/src-DTwuqov4.js +11 -0
- package/dist/shared/tabKeys-CP6c3wTY.js +3 -0
- package/dist/shared/tabs.variants-Cgk7bRhG.js +22 -0
- package/dist/shared/tag.variants-BEXRRbPc.js +33 -0
- package/dist/shared/tagsInputContext-C-X1-iNf.js +4 -0
- package/dist/shared/toggleGroup.variants-BuwGELw0.js +38 -0
- package/dist/shared/tooltipContext-arEyjGQC.js +3 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +1 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +185 -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 +22 -0
- package/dist/slider/GradientSlider.vue.d.ts +20 -0
- package/dist/slider/GradientSlider.vue.js +100 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +86 -0
- package/dist/slider/gradients.d.ts +6 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +39 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +38 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +43 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +35 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +1 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +73 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +29 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +26 -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 +21 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +19 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +19 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +1 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +19 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +19 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +45 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +18 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +41 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +35 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +36 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +37 -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 +96 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +54 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +32 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +33 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +26 -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 +31 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +40 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +29 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +27 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +45 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +53 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +29 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +31 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +59 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +43 -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 +1 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +1 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +1 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +37 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +1 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +7 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +1 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +53 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +80 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +6 -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 +186 -8
- 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 +179 -0
- package/src/css/_palette.css +40 -4
- package/src/css/base.css +0 -6
- package/src/css/component-support.css +69 -0
- 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/published.css +3 -0
- package/src/css/style.css +5 -1909
- package/src/css/theme.css +243 -0
- package/src/css/themes/void.css +102 -0
- package/src/icons/README.md +61 -97
- 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,39 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { t as Button_default } from "./Button-Dj_H5v3V.js";
|
|
3
|
+
import { inputGroupButtonVariants } from "../input-group/inputGroup.variants.js";
|
|
4
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
// src/components/input-group/InputGroupButton.vue
|
|
6
|
+
var InputGroupButton_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "InputGroupButton",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "muted-textonly" },
|
|
10
|
+
size: { default: "xs" },
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Button_default), {
|
|
22
|
+
type: "button",
|
|
23
|
+
"data-slot": "input-group-button",
|
|
24
|
+
"data-size": __props.size,
|
|
25
|
+
variant: __props.variant,
|
|
26
|
+
size: "unset",
|
|
27
|
+
class: normalizeClass(unref(cn)(unref(inputGroupButtonVariants)({ size: __props.size }), __props.class))
|
|
28
|
+
}, {
|
|
29
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 8, [
|
|
32
|
+
"data-size",
|
|
33
|
+
"variant",
|
|
34
|
+
"class"
|
|
35
|
+
]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export { InputGroupButton_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { t as Input_default } from "./Input-DOeNoniw.js";
|
|
3
|
+
import { createBlock, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel } from "vue";
|
|
4
|
+
// src/components/input-group/InputGroupInput.vue
|
|
5
|
+
var InputGroupInput_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "InputGroupInput",
|
|
7
|
+
props: /*@__PURE__*/ mergeModels({ class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } }, {
|
|
14
|
+
"modelValue": {},
|
|
15
|
+
"modelModifiers": {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const modelValue = useModel(__props, "modelValue");
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Input_default), {
|
|
22
|
+
modelValue: modelValue.value,
|
|
23
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
24
|
+
"data-slot": "input-group-control",
|
|
25
|
+
class: normalizeClass(unref(cn)("flex-1 rounded-none bg-transparent text-inherit focus-visible:ring-0 aria-invalid:ring-0", __props.class))
|
|
26
|
+
}, null, 8, ["modelValue", "class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export { InputGroupInput_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { Label, useForwardProps } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
// src/components/label/Label.vue
|
|
6
|
+
var Label_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "Label",
|
|
8
|
+
props: {
|
|
9
|
+
for: {},
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const forwarded = useForwardProps(reactiveOmit(props, "class"));
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Label), mergeProps(unref(forwarded), {
|
|
25
|
+
"data-slot": "label",
|
|
26
|
+
class: unref(cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", props.class)
|
|
27
|
+
}), {
|
|
28
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["class"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export { Label_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as Tooltip_default } from "./Tooltip-4rCebVao.js";
|
|
2
|
+
import { t as TooltipContent_default } from "./TooltipContent-0GR7hBNu.js";
|
|
3
|
+
import { t as TooltipTrigger_default } from "./TooltipTrigger-64EIE5f2.js";
|
|
4
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
5
|
+
import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
// src/components/field/LayoutField.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "relative top-px ml-0.5 icon-[lucide--info] size-3 group-hover:text-primary"
|
|
10
|
+
};
|
|
11
|
+
// src/components/field/LayoutField.vue
|
|
12
|
+
var LayoutField_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "LayoutField",
|
|
14
|
+
props: {
|
|
15
|
+
label: {},
|
|
16
|
+
tooltip: {},
|
|
17
|
+
singleline: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("flex gap-2", __props.singleline ? "items-center justify-between" : "flex-col")) }, [createVNode(unref(Tooltip_default), { disabled: !__props.tooltip }, {
|
|
22
|
+
default: withCtx(() => [createVNode(unref(TooltipTrigger_default), { "as-child": "" }, {
|
|
23
|
+
default: withCtx(() => [createElementVNode("span", { class: normalizeClass(unref(cn)("group truncate text-sm text-muted-foreground", __props.tooltip ? "cursor-help" : "", __props.singleline ? "flex-1" : "")) }, [createTextVNode(toDisplayString(__props.label) + " ", 1), __props.tooltip ? (openBlock(), createElementBlock("i", _hoisted_1)) : createCommentVNode("", true)], 2)]),
|
|
24
|
+
_: 1
|
|
25
|
+
}), createVNode(unref(TooltipContent_default), { side: "left" }, {
|
|
26
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.tooltip), 1)]),
|
|
27
|
+
_: 1
|
|
28
|
+
})]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["disabled"]), renderSlot(_ctx.$slots, "default")], 2);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export { LayoutField_default as t };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { t as TextTooltip_default } from "./TextTooltip-BNlZI515.js";
|
|
3
|
+
import { menuItemClass } from "../menu/menuStyles.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, isRef, normalizeClass, onBeforeUnmount, openBlock, renderSlot, resolveDynamicComponent, toValue, unref, withCtx } from "vue";
|
|
5
|
+
import { DropdownMenuCheckboxItem, DropdownMenuItem } from "reka-ui";
|
|
6
|
+
import { createReusableTemplate, useEventListener } from "@vueuse/core";
|
|
7
|
+
// src/components/menu/mouseDownUtil.ts
|
|
8
|
+
var whileMouseDown = (elementOrEvent, callback, interval = 30) => {
|
|
9
|
+
const element = elementOrEvent instanceof HTMLElement ? elementOrEvent : elementOrEvent.target;
|
|
10
|
+
let iteration = 0;
|
|
11
|
+
const intervalId = setInterval(() => {
|
|
12
|
+
callback(iteration++);
|
|
13
|
+
}, interval);
|
|
14
|
+
const dispose = () => {
|
|
15
|
+
clearInterval(intervalId);
|
|
16
|
+
disposeGlobal();
|
|
17
|
+
disposeLocal();
|
|
18
|
+
};
|
|
19
|
+
const disposeGlobal = useEventListener(document, "mouseup", dispose);
|
|
20
|
+
const disposeLocal = useEventListener(element, "mouseup", dispose);
|
|
21
|
+
return { dispose };
|
|
22
|
+
};
|
|
23
|
+
// src/components/menu/MenuAction.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
+
var _hoisted_1 = {
|
|
25
|
+
key: 0,
|
|
26
|
+
"aria-disabled": "true"
|
|
27
|
+
};
|
|
28
|
+
// src/components/menu/MenuAction.vue
|
|
29
|
+
var MenuAction_default = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "MenuAction",
|
|
31
|
+
props: {
|
|
32
|
+
allowCommandless: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
item: {}
|
|
37
|
+
},
|
|
38
|
+
emits: ["select", "activate"],
|
|
39
|
+
setup(__props, { emit: __emit }) {
|
|
40
|
+
const emit = __emit;
|
|
41
|
+
const [DefineItem, ReuseItem] = createReusableTemplate();
|
|
42
|
+
const disabled = computed(() => toValue(__props.item.disabled) === true);
|
|
43
|
+
const focusableDisabled = computed(() => disabled.value && __props.item.focusableWhenDisabled === true);
|
|
44
|
+
const unfocusable = computed(() => disabled.value ? !__props.item.focusableWhenDisabled : !__props.item.command && !__props.allowCommandless);
|
|
45
|
+
let pointerRepeating = false;
|
|
46
|
+
let stopRepeating;
|
|
47
|
+
onBeforeUnmount(() => stopRepeating?.());
|
|
48
|
+
function mouseDown(event) {
|
|
49
|
+
if (event.button !== 0 || toValue(__props.item.disabled) || !__props.item.command || __props.item.pressAndHoldInterval === void 0) return;
|
|
50
|
+
stopRepeating?.();
|
|
51
|
+
pointerRepeating = false;
|
|
52
|
+
const { dispose } = whileMouseDown(event, () => {
|
|
53
|
+
const firstRepeat = !pointerRepeating;
|
|
54
|
+
pointerRepeating = true;
|
|
55
|
+
__props.item.command?.({
|
|
56
|
+
originalEvent: event,
|
|
57
|
+
item: __props.item
|
|
58
|
+
});
|
|
59
|
+
if (firstRepeat) emit("activate", __props.item);
|
|
60
|
+
}, __props.item.pressAndHoldInterval);
|
|
61
|
+
stopRepeating = dispose;
|
|
62
|
+
}
|
|
63
|
+
function select(event) {
|
|
64
|
+
if (disabled.value || !__props.item.command) {
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (pointerRepeating) {
|
|
69
|
+
pointerRepeating = false;
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (__props.item.checked !== void 0) event.preventDefault();
|
|
74
|
+
__props.item.command({
|
|
75
|
+
originalEvent: event,
|
|
76
|
+
item: __props.item
|
|
77
|
+
});
|
|
78
|
+
emit("activate", __props.item);
|
|
79
|
+
if (event.defaultPrevented) return;
|
|
80
|
+
if (__props.item.pressAndHoldInterval !== void 0) {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
emit("select");
|
|
85
|
+
}
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineItem), null, {
|
|
88
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(__props.item.checked === void 0 ? unref(DropdownMenuItem) : unref(DropdownMenuCheckboxItem)), {
|
|
89
|
+
"aria-label": toValue(__props.item.label),
|
|
90
|
+
"aria-description": toValue(__props.item.description),
|
|
91
|
+
disabled: unfocusable.value,
|
|
92
|
+
"as-child": focusableDisabled.value,
|
|
93
|
+
class: normalizeClass(unref(cn)(unref(menuItemClass), __props.item.variant === "destructive" && "text-destructive", focusableDisabled.value && "opacity-50", toValue(__props.item.class))),
|
|
94
|
+
"model-value": toValue(__props.item.checked),
|
|
95
|
+
onMousedown: mouseDown,
|
|
96
|
+
onKeydownCapture: _cache[0] || (_cache[0] = ($event) => isRef(pointerRepeating) ? pointerRepeating.value = false : pointerRepeating = false),
|
|
97
|
+
onSelect: select
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [focusableDisabled.value ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 40, [
|
|
102
|
+
"aria-label",
|
|
103
|
+
"aria-description",
|
|
104
|
+
"disabled",
|
|
105
|
+
"as-child",
|
|
106
|
+
"class",
|
|
107
|
+
"model-value"
|
|
108
|
+
]))]),
|
|
109
|
+
_: 3
|
|
110
|
+
}), __props.item.tooltip ? (openBlock(), createBlock(unref(TextTooltip_default), {
|
|
111
|
+
key: 0,
|
|
112
|
+
text: __props.item.tooltip,
|
|
113
|
+
side: "right"
|
|
114
|
+
}, {
|
|
115
|
+
default: withCtx(() => [createVNode(unref(ReuseItem))]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["text"])) : (openBlock(), createBlock(unref(ReuseItem), { key: 1 }))], 64);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
export { MenuAction_default as t };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.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
|
+
// src/components/menu/MenuContent.vue
|
|
6
|
+
var MenuContent_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
__name: "MenuContent",
|
|
9
|
+
props: {
|
|
10
|
+
forceMount: { type: Boolean },
|
|
11
|
+
loop: { type: Boolean },
|
|
12
|
+
memoDependencies: {},
|
|
13
|
+
side: {},
|
|
14
|
+
sideOffset: {},
|
|
15
|
+
sideFlip: { type: Boolean },
|
|
16
|
+
align: {},
|
|
17
|
+
alignOffset: {},
|
|
18
|
+
alignFlip: { type: Boolean },
|
|
19
|
+
avoidCollisions: { type: Boolean },
|
|
20
|
+
collisionBoundary: {},
|
|
21
|
+
collisionPadding: {},
|
|
22
|
+
arrowPadding: {},
|
|
23
|
+
hideShiftedArrow: { type: Boolean },
|
|
24
|
+
sticky: {},
|
|
25
|
+
hideWhenDetached: { type: Boolean },
|
|
26
|
+
positionStrategy: {},
|
|
27
|
+
updatePositionStrategy: {},
|
|
28
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
29
|
+
prioritizePosition: { type: Boolean },
|
|
30
|
+
reference: {},
|
|
31
|
+
asChild: { type: Boolean },
|
|
32
|
+
as: {},
|
|
33
|
+
class: { type: [
|
|
34
|
+
Boolean,
|
|
35
|
+
null,
|
|
36
|
+
String,
|
|
37
|
+
Object,
|
|
38
|
+
Array
|
|
39
|
+
] },
|
|
40
|
+
to: {},
|
|
41
|
+
width: { default: "default" },
|
|
42
|
+
maxHeight: { default: "available" }
|
|
43
|
+
},
|
|
44
|
+
emits: [
|
|
45
|
+
"escapeKeyDown",
|
|
46
|
+
"pointerDownOutside",
|
|
47
|
+
"focusOutside",
|
|
48
|
+
"interactOutside",
|
|
49
|
+
"openAutoFocus",
|
|
50
|
+
"closeAutoFocus"
|
|
51
|
+
],
|
|
52
|
+
setup(__props, { emit: __emit }) {
|
|
53
|
+
const restProps = createPropsRestProxy(__props, [
|
|
54
|
+
"class",
|
|
55
|
+
"to",
|
|
56
|
+
"width",
|
|
57
|
+
"maxHeight"
|
|
58
|
+
]);
|
|
59
|
+
const forwarded = useForwardPropsEmits(restProps, __emit);
|
|
60
|
+
const rootContext = injectDropdownMenuRootContext();
|
|
61
|
+
return (_ctx, _cache) => {
|
|
62
|
+
return openBlock(), createBlock(unref(DropdownMenuPortal), {
|
|
63
|
+
key: Number(unref(rootContext).open.value),
|
|
64
|
+
to: __props.to
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [createVNode(unref(DropdownMenuContent), mergeProps({
|
|
67
|
+
...unref(forwarded),
|
|
68
|
+
..._ctx.$attrs
|
|
69
|
+
}, { 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) }), {
|
|
70
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16, ["class"])]),
|
|
73
|
+
_: 3
|
|
74
|
+
}, 8, ["to"]);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export { MenuContent_default as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as Badge_default } from "./Badge-DFHO3AFi.js";
|
|
2
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
3
|
+
import { t as OverlayIcon_default } from "./OverlayIcon-C-din824.js";
|
|
4
|
+
import { t as Switch_default } from "./Switch-qavkHWMz.js";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, toDisplayString, toValue, unref, withCtx } from "vue";
|
|
6
|
+
// 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
|
+
// src/components/menu/MenuItemContent.vue
|
|
23
|
+
var MenuItemContent_default = /* @__PURE__ */ defineComponent({
|
|
24
|
+
__name: "MenuItemContent",
|
|
25
|
+
props: {
|
|
26
|
+
hasSubmenu: { type: Boolean },
|
|
27
|
+
item: {}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
32
|
+
__props.item.overlayIcon ? (openBlock(), createBlock(unref(OverlayIcon_default), normalizeProps(mergeProps({ key: 0 }, __props.item.overlayIcon)), null, 16)) : __props.item.icon ? (openBlock(), createElementBlock("i", {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: normalizeClass(__props.item.icon)
|
|
35
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
36
|
+
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)]),
|
|
37
|
+
__props.item.trailingIcon ? (openBlock(), createElementBlock("i", {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: normalizeClass(unref(cn)(__props.item.trailingIcon, "ml-auto"))
|
|
40
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
41
|
+
__props.item.badge ? (openBlock(), createBlock(unref(Badge_default), {
|
|
42
|
+
key: 3,
|
|
43
|
+
variant: "pill",
|
|
44
|
+
severity: "default",
|
|
45
|
+
class: "ml-3 px-1.5 uppercase"
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.item.badge), 1)]),
|
|
48
|
+
_: 1
|
|
49
|
+
})) : createCommentVNode("", true),
|
|
50
|
+
__props.hasSubmenu ? (openBlock(), createElementBlock("i", _hoisted_4)) : __props.item.presentation === "switch" ? (openBlock(), createBlock(unref(Switch_default), {
|
|
51
|
+
key: 5,
|
|
52
|
+
"model-value": toValue(__props.item.checked),
|
|
53
|
+
class: "pointer-events-none ml-4",
|
|
54
|
+
"aria-hidden": "true",
|
|
55
|
+
readonly: "",
|
|
56
|
+
tabindex: "-1"
|
|
57
|
+
}, null, 8, ["model-value"])) : __props.item.checked !== void 0 ? (openBlock(), createElementBlock("i", {
|
|
58
|
+
key: 6,
|
|
59
|
+
"data-testid": "menu-item-indicator",
|
|
60
|
+
class: normalizeClass(unref(cn)("ml-auto icon-[lucide--check]", !toValue(__props.item.checked) && "invisible"))
|
|
61
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
62
|
+
!__props.hasSubmenu && toValue(__props.item.shortcut) ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(toValue(__props.item.shortcut)), 1)) : createCommentVNode("", true)
|
|
63
|
+
], 64);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export { MenuItemContent_default as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as MenuAction_default } from "./MenuAction-0z8BSoX9.js";
|
|
2
|
+
import { t as MenuItemContent_default } from "./MenuItemContent-Be658c7e.js";
|
|
3
|
+
import { t as MenuSeparator_default } from "./MenuSeparator-DrAiObmE.js";
|
|
4
|
+
import { t as MenuSubmenu_default } from "./MenuSubmenu-CjPf8DXl.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
|
+
// src/components/menu/MenuItems.vue
|
|
8
|
+
var MenuItems_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "MenuItems",
|
|
10
|
+
__name: "MenuItems",
|
|
11
|
+
props: {
|
|
12
|
+
items: {},
|
|
13
|
+
itemContent: { type: Function }
|
|
14
|
+
},
|
|
15
|
+
emits: ["select", "activate"],
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const [DefineItemContent, ReuseItemContent] = createReusableTemplate();
|
|
18
|
+
const emit = __emit;
|
|
19
|
+
const visibleItems = computed(() => __props.items.filter((item) => toValue(item.visible) !== false));
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
const _component_MenuItems = resolveComponent("MenuItems", true);
|
|
22
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineItemContent), null, {
|
|
23
|
+
default: withCtx(({ item, hasSubmenu }) => [__props.itemContent ? (openBlock(), createBlock(resolveDynamicComponent(__props.itemContent), normalizeProps(mergeProps({ key: 0 }, {
|
|
24
|
+
item,
|
|
25
|
+
hasSubmenu
|
|
26
|
+
})), null, 16)) : renderSlot(_ctx.$slots, "item", {
|
|
27
|
+
item,
|
|
28
|
+
hasSubmenu
|
|
29
|
+
}, () => [createVNode(MenuItemContent_default, {
|
|
30
|
+
item,
|
|
31
|
+
"has-submenu": hasSubmenu
|
|
32
|
+
}, null, 8, ["item", "has-submenu"])], void 0, 1)]),
|
|
33
|
+
_: 3
|
|
34
|
+
}), (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
|
|
35
|
+
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, {
|
|
36
|
+
key: 1,
|
|
37
|
+
item
|
|
38
|
+
}, {
|
|
39
|
+
content: withCtx(({ items: childItems }) => [createVNode(_component_MenuItems, {
|
|
40
|
+
items: childItems,
|
|
41
|
+
"item-content": __props.itemContent ?? _ctx.$slots.item,
|
|
42
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => emit("select")),
|
|
43
|
+
onActivate: _cache[1] || (_cache[1] = ($event) => emit("activate", $event))
|
|
44
|
+
}, null, 8, ["items", "item-content"])]),
|
|
45
|
+
default: withCtx(() => [createVNode(unref(ReuseItemContent), {
|
|
46
|
+
item,
|
|
47
|
+
"has-submenu": true
|
|
48
|
+
}, null, 8, ["item"])]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["item"])) : (openBlock(), createBlock(MenuAction_default, {
|
|
51
|
+
key: 2,
|
|
52
|
+
item,
|
|
53
|
+
"allow-commandless": Boolean(__props.itemContent ?? _ctx.$slots.item),
|
|
54
|
+
onSelect: _cache[2] || (_cache[2] = ($event) => emit("select")),
|
|
55
|
+
onActivate: _cache[3] || (_cache[3] = ($event) => emit("activate", $event))
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [createVNode(unref(ReuseItemContent), {
|
|
58
|
+
item,
|
|
59
|
+
"has-submenu": false
|
|
60
|
+
}, null, 8, ["item"])]),
|
|
61
|
+
_: 2
|
|
62
|
+
}, 1032, ["item", "allow-commandless"]))], 64);
|
|
63
|
+
}), 128))], 64);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export { MenuItems_default as t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as TextTooltip_default } from "./TextTooltip-BNlZI515.js";
|
|
2
|
+
import { t as MenuItemContent_default } from "./MenuItemContent-Be658c7e.js";
|
|
3
|
+
import { t as MenuRadioItem_default } from "./MenuRadioItem-D8DFu-KU.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
|
+
// src/components/menu/MenuRadioGroup.vue
|
|
8
|
+
var MenuRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "MenuRadioGroup",
|
|
10
|
+
props: /*@__PURE__*/ mergeModels({ options: {} }, {
|
|
11
|
+
"modelValue": { required: true },
|
|
12
|
+
"modelModifiers": {}
|
|
13
|
+
}),
|
|
14
|
+
emits: /*@__PURE__*/ mergeModels(["select"], ["update:modelValue"]),
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const selected = useModel(__props, "modelValue");
|
|
17
|
+
const emit = __emit;
|
|
18
|
+
const [DefineItem, ReuseItem] = createReusableTemplate({ props: { option: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
} } });
|
|
22
|
+
function select(option, event) {
|
|
23
|
+
selected.value = option.value;
|
|
24
|
+
option.command?.();
|
|
25
|
+
emit("select", event);
|
|
26
|
+
}
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(DefineItem), null, {
|
|
29
|
+
default: withCtx(({ option }) => [createVNode(MenuRadioItem_default, {
|
|
30
|
+
value: option.value,
|
|
31
|
+
onSelect: ($event) => select(option, $event)
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [createVNode(MenuItemContent_default, {
|
|
34
|
+
item: {
|
|
35
|
+
label: option.label,
|
|
36
|
+
icon: option.icon,
|
|
37
|
+
checked: selected.value === option.value
|
|
38
|
+
},
|
|
39
|
+
"has-submenu": false
|
|
40
|
+
}, null, 8, ["item"])]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1032, ["value", "onSelect"])]),
|
|
43
|
+
_: 1
|
|
44
|
+
}), createVNode(unref(DropdownMenuRadioGroup), { "model-value": selected.value }, {
|
|
45
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
46
|
+
return openBlock(), createElementBlock(Fragment, { key: option.value }, [option.tooltip ? (openBlock(), createBlock(unref(TextTooltip_default), {
|
|
47
|
+
key: 0,
|
|
48
|
+
text: option.tooltip,
|
|
49
|
+
side: "right"
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [createVNode(unref(ReuseItem), { option }, null, 8, ["option"])]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, 1032, ["text"])) : (openBlock(), createBlock(unref(ReuseItem), {
|
|
54
|
+
key: 1,
|
|
55
|
+
option
|
|
56
|
+
}, null, 8, ["option"]))], 64);
|
|
57
|
+
}), 128))]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["model-value"])], 64);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { MenuRadioGroup_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.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
|
+
// src/components/menu/MenuRadioItem.vue
|
|
6
|
+
var MenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "MenuRadioItem",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
textValue: {},
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
class: { type: [
|
|
15
|
+
Boolean,
|
|
16
|
+
null,
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Array
|
|
20
|
+
] }
|
|
21
|
+
},
|
|
22
|
+
emits: ["select"],
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
25
|
+
const forwarded = useForwardPropsEmits(restProps, __emit);
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createBlock(unref(DropdownMenuRadioItem), mergeProps(unref(forwarded), { class: unref(cn)(unref(menuItemClass), "w-full", __props.class) }), {
|
|
28
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["class"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export { MenuRadioItem_default as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
3
|
+
import { DropdownMenuSeparator, useForwardProps } from "reka-ui";
|
|
4
|
+
// src/components/menu/MenuSeparator.vue
|
|
5
|
+
var MenuSeparator_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "MenuSeparator",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
20
|
+
const forwarded = useForwardProps(restProps);
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(unref(DropdownMenuSeparator), mergeProps(unref(forwarded), { class: unref(cn)("my-1 h-px bg-border/50", __props.class) }), null, 16, ["class"]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export { MenuSeparator_default as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DropdownMenuSub, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
// src/components/menu/MenuSub.vue
|
|
4
|
+
var MenuSub_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "MenuSub",
|
|
6
|
+
props: {
|
|
7
|
+
defaultOpen: { type: Boolean },
|
|
8
|
+
open: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:open"],
|
|
11
|
+
setup(__props, { emit: __emit }) {
|
|
12
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createBlock(unref(DropdownMenuSub), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
15
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
16
|
+
_: 3
|
|
17
|
+
}, 16);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export { MenuSub_default as t };
|