@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 @@
|
|
|
1
|
+
export { t as default } from "../shared/Input-DOeNoniw.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
hidePasswordLabel: string;
|
|
4
|
+
showPasswordLabel: string;
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
modelValue?: string;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as InputGroup_default } from "../shared/InputGroup-BYt6BWpk.js";
|
|
2
|
+
import { t as InputGroupAddon_default } from "../shared/InputGroupAddon-B1cn7czs.js";
|
|
3
|
+
import { t as InputGroupButton_default } from "../shared/InputGroupButton-tw5AYOoR.js";
|
|
4
|
+
import { t as InputGroupInput_default } from "../shared/InputGroupInput-C_kkIxvY.js";
|
|
5
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, ref, unref, useModel, withCtx } from "vue";
|
|
6
|
+
// src/components/input/PasswordInput.vue
|
|
7
|
+
var PasswordInput_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "PasswordInput",
|
|
10
|
+
props: /*@__PURE__*/ mergeModels({
|
|
11
|
+
hidePasswordLabel: {},
|
|
12
|
+
showPasswordLabel: {},
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
"modelValue": {},
|
|
26
|
+
"modelModifiers": {}
|
|
27
|
+
}),
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const modelValue = useModel(__props, "modelValue");
|
|
31
|
+
const visible = ref(false);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(InputGroup_default), { class: normalizeClass(__props.class) }, {
|
|
34
|
+
default: withCtx(() => [createVNode(unref(InputGroupInput_default), mergeProps({
|
|
35
|
+
modelValue: modelValue.value,
|
|
36
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
37
|
+
}, _ctx.$attrs, {
|
|
38
|
+
type: visible.value ? "text" : "password",
|
|
39
|
+
disabled: __props.disabled
|
|
40
|
+
}), null, 16, [
|
|
41
|
+
"modelValue",
|
|
42
|
+
"type",
|
|
43
|
+
"disabled"
|
|
44
|
+
]), createVNode(unref(InputGroupAddon_default), { align: "inline-end" }, {
|
|
45
|
+
default: withCtx(() => [createVNode(unref(InputGroupButton_default), {
|
|
46
|
+
size: "icon-sm",
|
|
47
|
+
disabled: __props.disabled,
|
|
48
|
+
"aria-label": visible.value ? __props.hidePasswordLabel : __props.showPasswordLabel,
|
|
49
|
+
"aria-pressed": visible.value,
|
|
50
|
+
onClick: _cache[1] || (_cache[1] = ($event) => visible.value = !visible.value)
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [createElementVNode("i", { class: normalizeClass(visible.value ? "icon-[lucide--eye-off]" : "icon-[lucide--eye]") }, null, 2)]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, [
|
|
55
|
+
"disabled",
|
|
56
|
+
"aria-label",
|
|
57
|
+
"aria-pressed"
|
|
58
|
+
])]),
|
|
59
|
+
_: 1
|
|
60
|
+
})]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["class"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export { PasswordInput_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/InputGroup-BYt6BWpk.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { InputGroupAddonVariants } from './inputGroup.variants';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
align?: InputGroupAddonVariants['align'];
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/InputGroupAddon-B1cn7czs.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { ButtonVariants } from '@comfyorg/design-system/button.variants';
|
|
3
|
+
import { InputGroupButtonVariants } from './inputGroup.variants';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
variant?: ButtonVariants['variant'];
|
|
6
|
+
size?: InputGroupButtonVariants['size'];
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_8: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_8) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/InputGroupButton-tw5AYOoR.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
modelValue?: string | number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/InputGroupInput-C_kkIxvY.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from 'cva';
|
|
2
|
+
export declare const inputGroupAddonVariants: (props?: ({
|
|
3
|
+
align?: "inline-start" | "inline-end" | undefined;
|
|
4
|
+
} & ({
|
|
5
|
+
class?: import('cva').ClassValue;
|
|
6
|
+
className?: never;
|
|
7
|
+
} | {
|
|
8
|
+
class?: never;
|
|
9
|
+
className?: import('cva').ClassValue;
|
|
10
|
+
})) | undefined) => string;
|
|
11
|
+
export type InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;
|
|
12
|
+
export declare const inputGroupButtonVariants: (props?: ({
|
|
13
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | undefined;
|
|
14
|
+
} & ({
|
|
15
|
+
class?: import('cva').ClassValue;
|
|
16
|
+
className?: never;
|
|
17
|
+
} | {
|
|
18
|
+
class?: never;
|
|
19
|
+
className?: import('cva').ClassValue;
|
|
20
|
+
})) | undefined) => string;
|
|
21
|
+
export type InputGroupButtonVariants = VariantProps<typeof inputGroupButtonVariants>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// src/components/input-group/inputGroup.variants.ts
|
|
3
|
+
var inputGroupAddonVariants = cva({
|
|
4
|
+
base: "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-has-[[data-slot=input-group-control]:disabled]/input-group:opacity-50",
|
|
5
|
+
variants: { align: {
|
|
6
|
+
"inline-start": "order-first pl-3 has-[>button]:pl-1",
|
|
7
|
+
"inline-end": "order-last pr-3 has-[>button]:pr-1"
|
|
8
|
+
} },
|
|
9
|
+
defaultVariants: { align: "inline-start" }
|
|
10
|
+
});
|
|
11
|
+
var inputGroupButtonVariants = cva({
|
|
12
|
+
base: "flex items-center gap-2 text-sm",
|
|
13
|
+
variants: { size: {
|
|
14
|
+
xs: "h-6 gap-1 rounded-sm px-2",
|
|
15
|
+
sm: "h-8 gap-1.5 rounded-md px-2.5",
|
|
16
|
+
"icon-xs": "size-6 rounded-sm p-0",
|
|
17
|
+
"icon-sm": "size-8 p-0"
|
|
18
|
+
} },
|
|
19
|
+
defaultVariants: { size: "xs" }
|
|
20
|
+
});
|
|
21
|
+
export { inputGroupAddonVariants, inputGroupButtonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
max?: number;
|
|
6
|
+
min?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue: number;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: number) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, useTemplateRef } from "vue";
|
|
3
|
+
// src/components/knob/Knob.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = [
|
|
5
|
+
"tabindex",
|
|
6
|
+
"aria-valuemin",
|
|
7
|
+
"aria-valuemax",
|
|
8
|
+
"aria-valuenow",
|
|
9
|
+
"aria-disabled"
|
|
10
|
+
];
|
|
11
|
+
var _hoisted_2 = {
|
|
12
|
+
viewBox: "0 0 32 32",
|
|
13
|
+
class: "size-full rotate-[-225deg]"
|
|
14
|
+
};
|
|
15
|
+
var _hoisted_3 = ["stroke-dashoffset"];
|
|
16
|
+
// src/components/knob/Knob.vue
|
|
17
|
+
var Knob_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "Knob",
|
|
19
|
+
props: /*@__PURE__*/ mergeModels({
|
|
20
|
+
class: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
max: { default: 100 },
|
|
32
|
+
min: { default: 0 },
|
|
33
|
+
step: { default: 1 }
|
|
34
|
+
}, {
|
|
35
|
+
"modelValue": { required: true },
|
|
36
|
+
"modelModifiers": {}
|
|
37
|
+
}),
|
|
38
|
+
emits: ["update:modelValue"],
|
|
39
|
+
setup(__props) {
|
|
40
|
+
const modelValue = useModel(__props, "modelValue");
|
|
41
|
+
const root = useTemplateRef("root");
|
|
42
|
+
const progress = computed(() => __props.max === __props.min ? 0 : (modelValue.value - __props.min) / (__props.max - __props.min));
|
|
43
|
+
const dashOffset = computed(() => 75 * (1 - progress.value));
|
|
44
|
+
function setValue(value) {
|
|
45
|
+
if (__props.disabled) return;
|
|
46
|
+
const stepped = __props.step ? Math.round((value - __props.min) / __props.step) * __props.step + __props.min : value;
|
|
47
|
+
modelValue.value = Math.min(__props.max, Math.max(__props.min, stepped));
|
|
48
|
+
}
|
|
49
|
+
function updateFromPointer(event) {
|
|
50
|
+
const bounds = root.value?.getBoundingClientRect();
|
|
51
|
+
if (!bounds) return;
|
|
52
|
+
const x = event.clientX - bounds.left - bounds.width / 2;
|
|
53
|
+
const y = event.clientY - bounds.top - bounds.height / 2;
|
|
54
|
+
const clockwise = (Math.atan2(y, x) * 180 / Math.PI + 225 + 360) % 360;
|
|
55
|
+
const position = clockwise > 315 ? 0 : clockwise / 270;
|
|
56
|
+
setValue(__props.min + position * (__props.max - __props.min));
|
|
57
|
+
}
|
|
58
|
+
function onPointerDown(event) {
|
|
59
|
+
root.value?.setPointerCapture(event.pointerId);
|
|
60
|
+
updateFromPointer(event);
|
|
61
|
+
}
|
|
62
|
+
function keyboardTarget(key) {
|
|
63
|
+
switch (key) {
|
|
64
|
+
case "ArrowUp":
|
|
65
|
+
case "ArrowRight": return modelValue.value + __props.step;
|
|
66
|
+
case "ArrowDown":
|
|
67
|
+
case "ArrowLeft": return modelValue.value - __props.step;
|
|
68
|
+
case "PageUp": return modelValue.value + 10 * __props.step;
|
|
69
|
+
case "PageDown": return modelValue.value - 10 * __props.step;
|
|
70
|
+
case "Home": return __props.min;
|
|
71
|
+
case "End": return __props.max;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function onKeydown(event) {
|
|
75
|
+
const target = keyboardTarget(event.key);
|
|
76
|
+
if (target === void 0) return;
|
|
77
|
+
event.preventDefault();
|
|
78
|
+
setValue(target);
|
|
79
|
+
}
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createElementBlock("div", {
|
|
82
|
+
ref_key: "root",
|
|
83
|
+
ref: root,
|
|
84
|
+
role: "slider",
|
|
85
|
+
tabindex: __props.disabled ? -1 : 0,
|
|
86
|
+
"aria-valuemin": __props.min,
|
|
87
|
+
"aria-valuemax": __props.max,
|
|
88
|
+
"aria-valuenow": modelValue.value,
|
|
89
|
+
"aria-disabled": __props.disabled || void 0,
|
|
90
|
+
class: normalizeClass(unref(cn)("size-12 cursor-pointer touch-none outline-none", __props.disabled && "cursor-not-allowed opacity-50", __props.class)),
|
|
91
|
+
onKeydown,
|
|
92
|
+
onPointerdown: onPointerDown,
|
|
93
|
+
onPointermove: _cache[0] || (_cache[0] = (event) => root.value?.hasPointerCapture(event.pointerId) && updateFromPointer(event))
|
|
94
|
+
}, [(openBlock(), createElementBlock("svg", _hoisted_2, [_cache[1] || (_cache[1] = createElementVNode("circle", {
|
|
95
|
+
"data-testid": "knob-track",
|
|
96
|
+
cx: "16",
|
|
97
|
+
cy: "16",
|
|
98
|
+
r: "12",
|
|
99
|
+
pathLength: "100",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
"stroke-width": "3",
|
|
103
|
+
"stroke-dasharray": "75 25",
|
|
104
|
+
class: "text-secondary"
|
|
105
|
+
}, null, -1)), createElementVNode("circle", {
|
|
106
|
+
"data-testid": "knob-value",
|
|
107
|
+
cx: "16",
|
|
108
|
+
cy: "16",
|
|
109
|
+
r: "12",
|
|
110
|
+
pathLength: "100",
|
|
111
|
+
fill: "none",
|
|
112
|
+
stroke: "currentColor",
|
|
113
|
+
"stroke-width": "3",
|
|
114
|
+
"stroke-linecap": "round",
|
|
115
|
+
"stroke-dasharray": "75 100",
|
|
116
|
+
"stroke-dashoffset": dashOffset.value,
|
|
117
|
+
class: "text-primary"
|
|
118
|
+
}, null, 8, _hoisted_3)]))], 42, _hoisted_1);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export { Knob_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LabelProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = LabelProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/Label-kwhWNR2P.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ButtonVariants } from '@comfyorg/design-system/button.variants';
|
|
2
|
+
declare const SIZE_CLASSES: {
|
|
3
|
+
readonly md: "h-[80vh] w-[90vw] max-w-[1400px]";
|
|
4
|
+
readonly lg: "h-[80vh] max-h-[1026px] w-[90vw] max-w-[1280px] min-[1450px]:max-w-[1724px] min-[3000px]:max-h-[1320px] min-[3000px]:max-w-[2200px]";
|
|
5
|
+
};
|
|
6
|
+
type ModalSize = keyof typeof SIZE_CLASSES;
|
|
7
|
+
type ContentPadding = 'default' | 'compact' | 'none';
|
|
8
|
+
type HeaderPadding = 'default' | 'symmetric';
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
contentTitle: string;
|
|
11
|
+
labels: {
|
|
12
|
+
showLeftPanel: string;
|
|
13
|
+
hideLeftPanel: string;
|
|
14
|
+
showRightPanel: string;
|
|
15
|
+
hideRightPanel: string;
|
|
16
|
+
close: string;
|
|
17
|
+
};
|
|
18
|
+
rightPanelTitle?: string;
|
|
19
|
+
size?: ModalSize;
|
|
20
|
+
leftPanelWidth?: string;
|
|
21
|
+
contentPadding?: ContentPadding;
|
|
22
|
+
headerPadding?: HeaderPadding;
|
|
23
|
+
closeButtonVariant?: ButtonVariants['variant'];
|
|
24
|
+
closeIcon?: string;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_ModelProps = {
|
|
27
|
+
'rightPanelOpen'?: boolean;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
30
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_21: {}, __VLS_23: {}, __VLS_41: {}, __VLS_49: {}, __VLS_51: {}, __VLS_53: {}, __VLS_71: {};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
leftPanelHeaderTitle?: (props: typeof __VLS_1) => any;
|
|
33
|
+
} & {
|
|
34
|
+
leftPanel?: (props: typeof __VLS_11) => any;
|
|
35
|
+
} & {
|
|
36
|
+
header?: (props: typeof __VLS_21) => any;
|
|
37
|
+
} & {
|
|
38
|
+
'header-right-area'?: (props: typeof __VLS_23) => any;
|
|
39
|
+
} & {
|
|
40
|
+
contentFilter?: (props: typeof __VLS_41) => any;
|
|
41
|
+
} & {
|
|
42
|
+
content?: (props: typeof __VLS_49) => any;
|
|
43
|
+
} & {
|
|
44
|
+
rightPanelHeaderTitle?: (props: typeof __VLS_51) => any;
|
|
45
|
+
} & {
|
|
46
|
+
rightPanelHeaderActions?: (props: typeof __VLS_53) => any;
|
|
47
|
+
} & {
|
|
48
|
+
rightPanel?: (props: typeof __VLS_71) => any;
|
|
49
|
+
};
|
|
50
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
51
|
+
getContentScrollTop: () => number;
|
|
52
|
+
setContentScrollTop: (scrollTop: number) => void;
|
|
53
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
close: () => any;
|
|
55
|
+
"update:rightPanelOpen": (value: boolean) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
57
|
+
onClose?: (() => any) | undefined;
|
|
58
|
+
"onUpdate:rightPanelOpen"?: ((value: boolean) => any) | undefined;
|
|
59
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
61
|
+
declare const _default: typeof __VLS_export;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
2
|
+
import { t as DialogTitle_default } from "../shared/DialogTitle-Chomvpgq.js";
|
|
3
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useModel, useSlots, watch, withCtx, withKeys } from "vue";
|
|
5
|
+
import { useBreakpoints } from "@vueuse/core";
|
|
6
|
+
// src/components/layout/BaseModalLayout.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = ["inert", "aria-hidden"];
|
|
8
|
+
var _hoisted_2 = {
|
|
9
|
+
"data-component-id": "LeftPanelHeader",
|
|
10
|
+
class: "flex h-18 w-full shrink-0 items-center-safe gap-2 pr-3 pl-6"
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_3 = { class: "flex flex-col overflow-hidden bg-background" };
|
|
13
|
+
var _hoisted_4 = { class: "flex min-h-0 flex-1 flex-col" };
|
|
14
|
+
var _hoisted_5 = ["inert", "aria-hidden"];
|
|
15
|
+
var _hoisted_6 = { class: "flex h-full w-72 min-w-72 flex-col bg-card" };
|
|
16
|
+
var _hoisted_7 = {
|
|
17
|
+
"data-component-id": "RightPanelHeader",
|
|
18
|
+
class: "flex h-18 shrink-0 items-center gap-2 px-6"
|
|
19
|
+
};
|
|
20
|
+
var _hoisted_8 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "flex-1 text-base font-semibold select-none"
|
|
23
|
+
};
|
|
24
|
+
var _hoisted_9 = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "flex-1"
|
|
27
|
+
};
|
|
28
|
+
var _hoisted_10 = { class: "min-h-0 flex-1 overflow-y-auto" };
|
|
29
|
+
// src/components/layout/BaseModalLayout.vue
|
|
30
|
+
var BaseModalLayout_default = /* @__PURE__ */ defineComponent({
|
|
31
|
+
__name: "BaseModalLayout",
|
|
32
|
+
props: /*@__PURE__*/ mergeModels({
|
|
33
|
+
contentTitle: {},
|
|
34
|
+
labels: {},
|
|
35
|
+
rightPanelTitle: {},
|
|
36
|
+
size: { default: "lg" },
|
|
37
|
+
leftPanelWidth: { default: "14rem" },
|
|
38
|
+
contentPadding: { default: "default" },
|
|
39
|
+
headerPadding: { default: "default" },
|
|
40
|
+
closeButtonVariant: {},
|
|
41
|
+
closeIcon: { default: "icon-[lucide--x]" }
|
|
42
|
+
}, {
|
|
43
|
+
"rightPanelOpen": {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
"rightPanelOpenModifiers": {}
|
|
48
|
+
}),
|
|
49
|
+
emits: /*@__PURE__*/ mergeModels(["close"], ["update:rightPanelOpen"]),
|
|
50
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
51
|
+
const SIZE_CLASSES = {
|
|
52
|
+
md: "h-[80vh] w-[90vw] max-w-[1400px]",
|
|
53
|
+
lg: "h-[80vh] max-h-[1026px] w-[90vw] max-w-[1280px] min-[1450px]:max-w-[1724px] min-[3000px]:max-h-[1320px] min-[3000px]:max-w-[2200px]"
|
|
54
|
+
};
|
|
55
|
+
const emit = __emit;
|
|
56
|
+
const sizeClasses = computed(() => SIZE_CLASSES[__props.size]);
|
|
57
|
+
const isRightPanelOpen = useModel(__props, "rightPanelOpen");
|
|
58
|
+
const slots = useSlots();
|
|
59
|
+
const hasLeftPanel = computed(() => !!slots.leftPanel);
|
|
60
|
+
const hasRightPanel = computed(() => !!slots.rightPanel);
|
|
61
|
+
const notMobile = useBreakpoints({ md: 880 }).greater("md");
|
|
62
|
+
const isLeftPanelOpen = ref(true);
|
|
63
|
+
const mobileMenuOpen = ref(false);
|
|
64
|
+
const contentContainer = ref(null);
|
|
65
|
+
watch(notMobile, (isDesktop) => {
|
|
66
|
+
if (!isDesktop) mobileMenuOpen.value = false;
|
|
67
|
+
});
|
|
68
|
+
const showLeftPanel = computed(() => {
|
|
69
|
+
return notMobile.value ? isLeftPanelOpen.value : mobileMenuOpen.value;
|
|
70
|
+
});
|
|
71
|
+
const headerClass = computed(() => cn("flex w-full items-center justify-between gap-2", __props.headerPadding === "symmetric" ? "px-6 py-5" : "h-18 px-6"));
|
|
72
|
+
const headerContentClass = computed(() => cn("flex min-w-0 flex-1 gap-2", __props.headerPadding === "symmetric" && "min-h-10 items-center"));
|
|
73
|
+
const contentContainerClass = computed(() => cn("flex scrollbar-custom min-h-0 flex-1 flex-col overflow-y-auto", __props.contentPadding === "default" && "px-6 pt-0 pb-10", __props.contentPadding === "compact" && "px-6 pt-0 pb-2"));
|
|
74
|
+
const gridStyle = computed(() => ({ gridTemplateColumns: hasRightPanel.value ? `${hasLeftPanel.value && showLeftPanel.value ? __props.leftPanelWidth : "0rem"} 1fr ${isRightPanelOpen.value ? "18rem" : "0rem"}` : `${hasLeftPanel.value && showLeftPanel.value ? __props.leftPanelWidth : "0rem"} 1fr` }));
|
|
75
|
+
const toggleLeftPanel = () => {
|
|
76
|
+
if (notMobile.value) isLeftPanelOpen.value = !isLeftPanelOpen.value;
|
|
77
|
+
else mobileMenuOpen.value = !mobileMenuOpen.value;
|
|
78
|
+
};
|
|
79
|
+
const toggleRightPanel = () => {
|
|
80
|
+
isRightPanelOpen.value = !isRightPanelOpen.value;
|
|
81
|
+
};
|
|
82
|
+
function handleEscape(event) {
|
|
83
|
+
const target = event.target;
|
|
84
|
+
if (!(target instanceof HTMLElement)) return;
|
|
85
|
+
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement || target.isContentEditable) return;
|
|
86
|
+
if (isRightPanelOpen.value) {
|
|
87
|
+
event.stopPropagation();
|
|
88
|
+
isRightPanelOpen.value = false;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
__expose({
|
|
92
|
+
getContentScrollTop: () => contentContainer.value?.scrollTop ?? 0,
|
|
93
|
+
setContentScrollTop: (scrollTop) => {
|
|
94
|
+
if (contentContainer.value) contentContainer.value.scrollTop = scrollTop;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createElementBlock("div", {
|
|
99
|
+
class: normalizeClass(unref(cn)("relative overflow-hidden rounded-2xl border bg-background shadow-lg", sizeClasses.value)),
|
|
100
|
+
onKeydownCapture: withKeys(handleEscape, ["esc"])
|
|
101
|
+
}, [createElementVNode("div", {
|
|
102
|
+
class: "grid size-full transition-[grid-template-columns] duration-300 ease-out",
|
|
103
|
+
style: normalizeStyle(gridStyle.value)
|
|
104
|
+
}, [
|
|
105
|
+
createElementVNode("nav", {
|
|
106
|
+
class: "flex h-full flex-col overflow-hidden bg-card",
|
|
107
|
+
inert: !showLeftPanel.value,
|
|
108
|
+
"aria-hidden": !showLeftPanel.value
|
|
109
|
+
}, [createElementVNode("header", _hoisted_2, [renderSlot(_ctx.$slots, "leftPanelHeaderTitle"), !unref(notMobile) && showLeftPanel.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
110
|
+
key: 0,
|
|
111
|
+
size: "lg",
|
|
112
|
+
class: "ml-auto w-10 p-0",
|
|
113
|
+
"aria-label": __props.labels.hideLeftPanel,
|
|
114
|
+
onClick: toggleLeftPanel
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createElementVNode("i", { class: "icon-[lucide--panel-left-close]" }, null, -1)])]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true)]), renderSlot(_ctx.$slots, "leftPanel")], 8, _hoisted_1),
|
|
119
|
+
createElementVNode("div", _hoisted_3, [_ctx.$slots.header ? (openBlock(), createElementBlock("header", {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: normalizeClass(headerClass.value)
|
|
122
|
+
}, [
|
|
123
|
+
createElementVNode("div", { class: normalizeClass(headerContentClass.value) }, [!unref(notMobile) && !showLeftPanel.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
124
|
+
key: 0,
|
|
125
|
+
size: "lg",
|
|
126
|
+
class: "w-10 p-0",
|
|
127
|
+
"aria-label": __props.labels.showLeftPanel,
|
|
128
|
+
onClick: toggleLeftPanel
|
|
129
|
+
}, {
|
|
130
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createElementVNode("i", { class: "icon-[lucide--panel-left]" }, null, -1)])]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 2),
|
|
133
|
+
renderSlot(_ctx.$slots, "header-right-area"),
|
|
134
|
+
!isRightPanelOpen.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [hasRightPanel.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
135
|
+
key: 0,
|
|
136
|
+
size: "lg",
|
|
137
|
+
class: "w-10 p-0",
|
|
138
|
+
"aria-label": __props.labels.showRightPanel,
|
|
139
|
+
onClick: toggleRightPanel
|
|
140
|
+
}, {
|
|
141
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createElementVNode("i", { class: "icon-[lucide--panel-right]" }, null, -1)])]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true), createVNode(unref(Button_default), {
|
|
144
|
+
size: "lg",
|
|
145
|
+
class: "w-10",
|
|
146
|
+
variant: __props.closeButtonVariant,
|
|
147
|
+
"aria-label": __props.labels.close,
|
|
148
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [createElementVNode("i", { class: normalizeClass(__props.closeIcon) }, null, 2)]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["variant", "aria-label"])], 64)) : createCommentVNode("", true)
|
|
153
|
+
], 2)) : createCommentVNode("", true), createElementVNode("main", _hoisted_4, [
|
|
154
|
+
renderSlot(_ctx.$slots, "contentFilter"),
|
|
155
|
+
createVNode(unref(DialogTitle_default), { class: normalizeClass(unref(cn)("m-0 px-6 pt-2 pb-6 text-2xl font-normal capitalize select-none", hasLeftPanel.value && "sr-only")) }, {
|
|
156
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.contentTitle), 1)]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["class"]),
|
|
159
|
+
createElementVNode("div", {
|
|
160
|
+
ref_key: "contentContainer",
|
|
161
|
+
ref: contentContainer,
|
|
162
|
+
"data-testid": "base-modal-content",
|
|
163
|
+
class: normalizeClass(contentContainerClass.value)
|
|
164
|
+
}, [renderSlot(_ctx.$slots, "content")], 2)
|
|
165
|
+
])]),
|
|
166
|
+
hasRightPanel.value ? (openBlock(), createElementBlock("aside", {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "overflow-hidden",
|
|
169
|
+
inert: !isRightPanelOpen.value,
|
|
170
|
+
"aria-hidden": !isRightPanelOpen.value
|
|
171
|
+
}, [createElementVNode("div", _hoisted_6, [createElementVNode("header", _hoisted_7, [
|
|
172
|
+
__props.rightPanelTitle ? (openBlock(), createElementBlock("h2", _hoisted_8, toDisplayString(__props.rightPanelTitle), 1)) : (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "rightPanelHeaderTitle")])),
|
|
173
|
+
renderSlot(_ctx.$slots, "rightPanelHeaderActions"),
|
|
174
|
+
createVNode(unref(Button_default), {
|
|
175
|
+
size: "lg",
|
|
176
|
+
class: "w-10 p-0",
|
|
177
|
+
"aria-label": __props.labels.hideRightPanel,
|
|
178
|
+
onClick: toggleRightPanel
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [createElementVNode("i", { class: "icon-[lucide--panel-right-close]" }, null, -1)])]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["aria-label"]),
|
|
183
|
+
createVNode(unref(Button_default), {
|
|
184
|
+
size: "lg",
|
|
185
|
+
class: "w-10 p-0",
|
|
186
|
+
variant: __props.closeButtonVariant,
|
|
187
|
+
"aria-label": __props.labels.close,
|
|
188
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("close"))
|
|
189
|
+
}, {
|
|
190
|
+
default: withCtx(() => [createElementVNode("i", { class: normalizeClass(__props.closeIcon) }, null, 2)]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["variant", "aria-label"])
|
|
193
|
+
]), createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "rightPanel")])])], 8, _hoisted_5)) : createCommentVNode("", true)
|
|
194
|
+
], 4)], 34);
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
export { BaseModalLayout_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface AudioPreviewProps {
|
|
2
|
+
readonly audioUrls: readonly string[];
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<AudioPreviewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AudioPreviewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|