@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,26 @@
|
|
|
1
|
+
import { Fragment, createCommentVNode, createElementBlock, defineComponent, openBlock, renderList } from "vue";
|
|
2
|
+
// src/components/media/AudioPreview.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "flex flex-col gap-2 px-2"
|
|
6
|
+
};
|
|
7
|
+
var _hoisted_2 = ["src"];
|
|
8
|
+
// src/components/media/AudioPreview.vue
|
|
9
|
+
var AudioPreview_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "AudioPreview",
|
|
11
|
+
props: { audioUrls: {} },
|
|
12
|
+
setup(__props) {
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return __props.audioUrls.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.audioUrls, (url, index) => {
|
|
15
|
+
return openBlock(), createElementBlock("audio", {
|
|
16
|
+
key: index,
|
|
17
|
+
src: url,
|
|
18
|
+
controls: "",
|
|
19
|
+
preload: "metadata",
|
|
20
|
+
class: "w-full"
|
|
21
|
+
}, null, 8, _hoisted_2);
|
|
22
|
+
}), 128))])) : createCommentVNode("", true);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export { AudioPreview_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
fallbackTitle: string;
|
|
5
|
+
closeLabel: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as DialogClose_default } from "../shared/DialogClose-CrtPRSNX.js";
|
|
2
|
+
import { t as DialogContent_default } from "../shared/DialogContent-v2s55FXs.js";
|
|
3
|
+
import { t as DialogOverlay_default } from "../shared/DialogOverlay-C9qv0zme.js";
|
|
4
|
+
import { t as DialogPortal_default } from "../shared/DialogPortal-DtCpLgtO.js";
|
|
5
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
7
|
+
import { DialogDescription, DialogRoot, DialogTitle, VisuallyHidden } from "reka-ui";
|
|
8
|
+
// src/components/media/ImageLightbox.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _hoisted_1 = ["src", "alt"];
|
|
10
|
+
// src/components/media/ImageLightbox.vue
|
|
11
|
+
var ImageLightbox_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "ImageLightbox",
|
|
13
|
+
props: /*@__PURE__*/ mergeModels({
|
|
14
|
+
src: {},
|
|
15
|
+
alt: { default: "" },
|
|
16
|
+
fallbackTitle: {},
|
|
17
|
+
closeLabel: {}
|
|
18
|
+
}, {
|
|
19
|
+
"modelValue": {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
"modelModifiers": {}
|
|
24
|
+
}),
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const open = useModel(__props, "modelValue");
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createBlock(unref(DialogRoot), {
|
|
30
|
+
open: open.value,
|
|
31
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [createVNode(unref(DialogPortal_default), null, {
|
|
34
|
+
default: withCtx(() => [createVNode(unref(DialogOverlay_default)), createVNode(unref(DialogContent_default), {
|
|
35
|
+
surface: "none",
|
|
36
|
+
size: "fit"
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createVNode(unref(VisuallyHidden), null, {
|
|
40
|
+
default: withCtx(() => [createVNode(unref(DialogTitle), null, {
|
|
41
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.alt || __props.fallbackTitle), 1)]),
|
|
42
|
+
_: 1
|
|
43
|
+
}), __props.alt ? (openBlock(), createBlock(unref(DialogDescription), { key: 0 }, {
|
|
44
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.alt), 1)]),
|
|
45
|
+
_: 1
|
|
46
|
+
})) : createCommentVNode("", true)]),
|
|
47
|
+
_: 1
|
|
48
|
+
}),
|
|
49
|
+
createVNode(unref(DialogClose_default), null, {
|
|
50
|
+
default: withCtx(() => [createVNode(unref(Button_default), {
|
|
51
|
+
"aria-label": __props.closeLabel,
|
|
52
|
+
size: "icon",
|
|
53
|
+
variant: "muted-textonly",
|
|
54
|
+
class: "absolute -top-2 -right-2 z-10 translate-x-full text-white hover:text-white/80"
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "icon-[lucide--x] size-5" }, null, -1)])]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["aria-label"])]),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
createElementVNode("img", {
|
|
62
|
+
src: __props.src,
|
|
63
|
+
alt: __props.alt,
|
|
64
|
+
class: "max-h-[90vh] max-w-[90vw] rounded-sm object-contain"
|
|
65
|
+
}, null, 8, _hoisted_1)
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})]),
|
|
69
|
+
_: 1
|
|
70
|
+
})]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["open"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export { ImageLightbox_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
fileName: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
|
|
2
|
+
// src/components/media/MediaTitle.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = ["title"];
|
|
4
|
+
// src/components/media/MediaTitle.vue
|
|
5
|
+
var MediaTitle_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "MediaTitle",
|
|
7
|
+
props: { fileName: {} },
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("p", {
|
|
11
|
+
class: "m-0 line-clamp-2 text-sm/tight break-all text-foreground",
|
|
12
|
+
title: __props.fileName
|
|
13
|
+
}, toDisplayString(__props.fileName), 9, _hoisted_1);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { MediaTitle_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
sources?: Array<{
|
|
3
|
+
src: string;
|
|
4
|
+
type: string;
|
|
5
|
+
}>;
|
|
6
|
+
posterSrc?: string;
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
muted?: boolean;
|
|
9
|
+
loop?: boolean;
|
|
10
|
+
playsInline?: boolean;
|
|
11
|
+
playbackLabels?: {
|
|
12
|
+
play: string;
|
|
13
|
+
pause: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_9: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
fallback?: (props: typeof __VLS_9) => any;
|
|
19
|
+
};
|
|
20
|
+
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>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, unref, useTemplateRef, watchEffect, withCtx } from "vue";
|
|
3
|
+
import { usePreferredReducedMotion } from "@vueuse/core";
|
|
4
|
+
// src/components/media/Video.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "relative"
|
|
8
|
+
};
|
|
9
|
+
var _hoisted_2 = [
|
|
10
|
+
"poster",
|
|
11
|
+
"autoplay",
|
|
12
|
+
"muted",
|
|
13
|
+
"loop",
|
|
14
|
+
"playsinline"
|
|
15
|
+
];
|
|
16
|
+
var _hoisted_3 = [
|
|
17
|
+
"src",
|
|
18
|
+
"type",
|
|
19
|
+
"onError"
|
|
20
|
+
];
|
|
21
|
+
// src/components/media/Video.vue
|
|
22
|
+
var Video_default = /* @__PURE__ */ defineComponent({
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
__name: "Video",
|
|
25
|
+
props: {
|
|
26
|
+
sources: { default: () => [] },
|
|
27
|
+
posterSrc: { default: "" },
|
|
28
|
+
autoplay: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
muted: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
loop: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
playsInline: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
playbackLabels: {}
|
|
45
|
+
},
|
|
46
|
+
setup(__props) {
|
|
47
|
+
const video = useTemplateRef("video");
|
|
48
|
+
const failed = ref(false);
|
|
49
|
+
const playing = ref(false);
|
|
50
|
+
const reducedMotion = usePreferredReducedMotion();
|
|
51
|
+
const shouldAutoplay = computed(() => __props.autoplay && reducedMotion.value !== "reduce");
|
|
52
|
+
watchEffect(() => {
|
|
53
|
+
if (__props.autoplay && !shouldAutoplay.value) video.value?.pause();
|
|
54
|
+
});
|
|
55
|
+
function togglePlayback() {
|
|
56
|
+
const element = video.value;
|
|
57
|
+
if (!element) return;
|
|
58
|
+
if (!element.paused) element.pause();
|
|
59
|
+
else element.play().catch(() => {
|
|
60
|
+
playing.value = false;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return __props.sources.length && !failed.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("video", mergeProps({
|
|
65
|
+
ref_key: "video",
|
|
66
|
+
ref: video
|
|
67
|
+
}, _ctx.$attrs, {
|
|
68
|
+
poster: __props.posterSrc || void 0,
|
|
69
|
+
autoplay: shouldAutoplay.value,
|
|
70
|
+
muted: __props.muted,
|
|
71
|
+
loop: __props.loop,
|
|
72
|
+
playsinline: __props.playsInline,
|
|
73
|
+
onPlay: _cache[0] || (_cache[0] = ($event) => playing.value = true),
|
|
74
|
+
onPause: _cache[1] || (_cache[1] = ($event) => playing.value = false),
|
|
75
|
+
onError: _cache[2] || (_cache[2] = ($event) => failed.value = true)
|
|
76
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.sources, (source, index) => {
|
|
77
|
+
return openBlock(), createElementBlock("source", {
|
|
78
|
+
key: source.src,
|
|
79
|
+
src: source.src,
|
|
80
|
+
type: source.type,
|
|
81
|
+
onError: ($event) => failed.value = index === __props.sources.length - 1
|
|
82
|
+
}, null, 40, _hoisted_3);
|
|
83
|
+
}), 128))], 16, _hoisted_2), __props.playbackLabels ? (openBlock(), createBlock(unref(Button_default), {
|
|
84
|
+
key: 0,
|
|
85
|
+
variant: "overlay-white",
|
|
86
|
+
size: "icon",
|
|
87
|
+
class: "absolute right-3 bottom-3",
|
|
88
|
+
"aria-label": playing.value ? __props.playbackLabels.pause : __props.playbackLabels.play,
|
|
89
|
+
onClick: togglePlayback
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [createElementVNode("i", {
|
|
92
|
+
class: normalizeClass(playing.value ? "icon-[lucide--pause]" : "icon-[lucide--play]"),
|
|
93
|
+
"aria-hidden": "true"
|
|
94
|
+
}, null, 2)]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true)])) : renderSlot(_ctx.$slots, "fallback", {}, void 0, void 0, 1);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export { Video_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible?: boolean;
|
|
3
|
+
size?: 'sm' | 'md';
|
|
4
|
+
overlayClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: 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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
3
|
+
// src/components/media/VideoPlayOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "pointer-events-none absolute inset-0 flex items-center justify-center" };
|
|
5
|
+
// src/components/media/VideoPlayOverlay.vue
|
|
6
|
+
var VideoPlayOverlay_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "VideoPlayOverlay",
|
|
8
|
+
props: {
|
|
9
|
+
visible: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
},
|
|
13
|
+
size: { default: "md" },
|
|
14
|
+
overlayClass: { default: "bg-black/15" }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const iconSizeClass = computed(() => __props.size === "sm" ? "size-3" : "size-6");
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return __props.visible ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", { class: normalizeClass(unref(cn)("pointer-events-none absolute inset-0", __props.overlayClass)) }, null, 2), createElementVNode("div", _hoisted_1, [createElementVNode("i", {
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
class: normalizeClass(unref(cn)("icon-[lucide--play] text-white", iconSizeClass.value))
|
|
22
|
+
}, null, 2)])], 64)) : createCommentVNode("", true);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export { VideoPlayOverlay_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: 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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, ref, toDisplayString, useTemplateRef } from "vue";
|
|
2
|
+
// src/components/media/VideoPreview.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = ["src"];
|
|
4
|
+
var _hoisted_2 = { class: "z-10 self-center" };
|
|
5
|
+
// src/components/media/VideoPreview.vue
|
|
6
|
+
var VideoPreview_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "VideoPreview",
|
|
8
|
+
props: {
|
|
9
|
+
src: {},
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const videoRef = useTemplateRef("videoRef");
|
|
14
|
+
const width = ref("");
|
|
15
|
+
const height = ref("");
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("video", mergeProps({
|
|
18
|
+
ref_key: "videoRef",
|
|
19
|
+
ref: videoRef,
|
|
20
|
+
src: __props.src,
|
|
21
|
+
controls: ""
|
|
22
|
+
}, _ctx.$attrs, { onLoadedmetadata: _cache[0] || (_cache[0] = () => {
|
|
23
|
+
if (!videoRef.value) return;
|
|
24
|
+
width.value = `${videoRef.value.videoWidth}`;
|
|
25
|
+
height.value = `${videoRef.value.videoHeight}`;
|
|
26
|
+
}) }), null, 16, _hoisted_1), createElementVNode("span", _hoisted_2, [createTextVNode(toDisplayString(`${width.value} x ${height.value}`) + " ", 1), __props.label ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" | " + toDisplayString(__props.label), 1)], 64)) : createCommentVNode("", true)])], 64);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export { VideoPreview_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare var __VLS_1: {
|
|
2
|
+
style: {
|
|
3
|
+
transform: string;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, 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,60 @@
|
|
|
1
|
+
import { computed, createElementBlock, defineComponent, isRef, normalizeStyle, openBlock, ref, renderSlot, useTemplateRef, withModifiers } from "vue";
|
|
2
|
+
// src/components/media/ZoomPane.vue
|
|
3
|
+
var ZoomPane_default = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ZoomPane",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
const zoomPane = useTemplateRef("zoomPane");
|
|
7
|
+
const zoom = ref(1);
|
|
8
|
+
const panX = ref(0);
|
|
9
|
+
const panY = ref(0);
|
|
10
|
+
function handleWheel(e) {
|
|
11
|
+
const zoomPaneEl = zoomPane.value;
|
|
12
|
+
if (!zoomPaneEl || (e.deltaY < 0 ? zoom.value > 1200 : zoom.value < -500)) return;
|
|
13
|
+
zoom.value -= e.deltaY;
|
|
14
|
+
const { x, y, width, height } = zoomPaneEl.getBoundingClientRect();
|
|
15
|
+
const offsetX = e.clientX - x - width / 2;
|
|
16
|
+
const offsetY = e.clientY - y - height / 2;
|
|
17
|
+
const scaler = 1.1 ** (e.deltaY / -30);
|
|
18
|
+
panY.value = panY.value * scaler - offsetY * (scaler - 1);
|
|
19
|
+
panX.value = panX.value * scaler - offsetX * (scaler - 1);
|
|
20
|
+
}
|
|
21
|
+
let dragging = false;
|
|
22
|
+
function handleDown(e) {
|
|
23
|
+
if (e.button !== 0 && e.button !== 1) return;
|
|
24
|
+
const zoomPaneEl = zoomPane.value;
|
|
25
|
+
if (!zoomPaneEl) return;
|
|
26
|
+
zoomPaneEl.parentElement?.focus();
|
|
27
|
+
zoomPaneEl.setPointerCapture(e.pointerId);
|
|
28
|
+
dragging = true;
|
|
29
|
+
}
|
|
30
|
+
function handleMove(e) {
|
|
31
|
+
if (!dragging) return;
|
|
32
|
+
panX.value += e.movementX;
|
|
33
|
+
panY.value += e.movementY;
|
|
34
|
+
}
|
|
35
|
+
const transform = computed(() => {
|
|
36
|
+
const scale = 1.1 ** (zoom.value / 30);
|
|
37
|
+
return `matrix(${[
|
|
38
|
+
scale,
|
|
39
|
+
0,
|
|
40
|
+
0,
|
|
41
|
+
scale,
|
|
42
|
+
panX.value,
|
|
43
|
+
panY.value
|
|
44
|
+
].join(",")})`;
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createElementBlock("div", {
|
|
48
|
+
ref_key: "zoomPane",
|
|
49
|
+
ref: zoomPane,
|
|
50
|
+
class: "place-content-center contain-size",
|
|
51
|
+
onWheel: handleWheel,
|
|
52
|
+
onPointerdown: withModifiers(handleDown, ["prevent"]),
|
|
53
|
+
onPointermove: handleMove,
|
|
54
|
+
onPointerup: _cache[0] || (_cache[0] = ($event) => isRef(dragging) ? dragging.value = false : dragging = false),
|
|
55
|
+
onPointercancel: _cache[1] || (_cache[1] = ($event) => isRef(dragging) ? dragging.value = false : dragging = false)
|
|
56
|
+
}, [renderSlot(_ctx.$slots, "default", { style: normalizeStyle({ transform: transform.value }) })], 544);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export { ZoomPane_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MenuItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
model: MenuItem[];
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
'open'?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare var __VLS_16: {}, __VLS_33: {
|
|
11
|
+
item: MenuItem;
|
|
12
|
+
hasSubmenu: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_16) => any;
|
|
16
|
+
} & {
|
|
17
|
+
item?: (props: typeof __VLS_33) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:open": (value: boolean) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as ContextMenuContent_default } from "../shared/ContextMenuContent-RNyBBJOX.js";
|
|
2
|
+
import { t as MenuItems_default } from "../shared/MenuItems-BZTlERd6.js";
|
|
3
|
+
import { createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useModel, withCtx } from "vue";
|
|
4
|
+
import { ContextMenuRoot, ContextMenuTrigger } from "reka-ui";
|
|
5
|
+
// src/components/menu/ContextMenu.vue
|
|
6
|
+
var ContextMenu_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
__name: "ContextMenu",
|
|
9
|
+
props: /*@__PURE__*/ mergeModels({
|
|
10
|
+
id: {},
|
|
11
|
+
model: {}
|
|
12
|
+
}, {
|
|
13
|
+
"open": {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
"openModifiers": {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:open"],
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const open = useModel(__props, "open");
|
|
22
|
+
function setOpen(value) {
|
|
23
|
+
open.value = value && __props.model.some((item) => toValue(item.visible) !== false);
|
|
24
|
+
}
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(ContextMenuRoot), {
|
|
27
|
+
open: open.value,
|
|
28
|
+
modal: false,
|
|
29
|
+
"onUpdate:open": setOpen
|
|
30
|
+
}, {
|
|
31
|
+
default: withCtx(() => [createVNode(unref(ContextMenuTrigger), { "as-child": "" }, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}), createVNode(ContextMenuContent_default, mergeProps({ id: __props.id }, _ctx.$attrs, { class: "max-h-(--reka-context-menu-content-available-height)" }), {
|
|
35
|
+
default: withCtx(() => [createVNode(MenuItems_default, {
|
|
36
|
+
items: __props.model,
|
|
37
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => open.value = false)
|
|
38
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.item ? {
|
|
39
|
+
name: "item",
|
|
40
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
41
|
+
key: "0"
|
|
42
|
+
} : void 0]), 1032, ["items"])]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 16, ["id"])]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 8, ["open"]);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export { ContextMenu_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ContextMenuContentProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = ContextMenuContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_14: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_14) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: import('reka-ui').PointerDownOutsideEvent) => any;
|
|
13
|
+
focusOutside: (event: import('reka-ui').FocusOutsideEvent) => any;
|
|
14
|
+
interactOutside: (event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any;
|
|
15
|
+
closeAutoFocus: (event: Event) => any;
|
|
16
|
+
openAutoFocus: (event: Event) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
|
+
onPointerDownOutside?: ((event: import('reka-ui').PointerDownOutsideEvent) => any) | undefined;
|
|
20
|
+
onFocusOutside?: ((event: import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
21
|
+
onInteractOutside?: ((event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ContextMenuContent-RNyBBJOX.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DropdownMenuContentProps } from 'reka-ui';
|
|
2
|
+
import { MenuItem, MenuItemAction } from './types';
|
|
3
|
+
type MenuProps = {
|
|
4
|
+
items?: MenuItem[];
|
|
5
|
+
label?: string;
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
to?: string | HTMLElement;
|
|
8
|
+
} & Pick<DropdownMenuContentProps, 'align' | 'collisionPadding' | 'side' | 'sideOffset'>;
|
|
9
|
+
type __VLS_Props = MenuProps;
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
'open'?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare var __VLS_14: {
|
|
15
|
+
open: boolean;
|
|
16
|
+
}, __VLS_28: {}, __VLS_40: {
|
|
17
|
+
item: MenuItem;
|
|
18
|
+
hasSubmenu: boolean;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
trigger?: (props: typeof __VLS_14) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_28) => any;
|
|
24
|
+
} & {
|
|
25
|
+
item?: (props: typeof __VLS_40) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:open": (value: boolean) => any;
|
|
29
|
+
activate: (item: MenuItemAction) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
32
|
+
onActivate?: ((item: MenuItemAction) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|