@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,63 @@
|
|
|
1
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
2
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
3
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
// src/components/common/NotificationPopup.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = ["data-position"];
|
|
6
|
+
var _hoisted_2 = { class: "flex min-h-0 flex-1 flex-col gap-4 p-4" };
|
|
7
|
+
var _hoisted_3 = { class: "flex items-center gap-4" };
|
|
8
|
+
var _hoisted_4 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "flex shrink-0 items-center justify-center rounded-lg bg-primary/90 p-3"
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_5 = { class: "flex flex-1 flex-col gap-1 font-normal" };
|
|
13
|
+
var _hoisted_6 = { class: "text-sm leading-[1.429]" };
|
|
14
|
+
var _hoisted_7 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "text-sm leading-[1.21] text-muted-foreground"
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_8 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "min-h-0 flex-1 overflow-y-auto text-sm text-muted-foreground"
|
|
21
|
+
};
|
|
22
|
+
var _hoisted_9 = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "flex items-center justify-between px-4 pb-4"
|
|
25
|
+
};
|
|
26
|
+
var _hoisted_10 = { class: "flex items-center gap-4" };
|
|
27
|
+
// src/components/common/NotificationPopup.vue
|
|
28
|
+
var NotificationPopup_default = /* @__PURE__ */ defineComponent({
|
|
29
|
+
__name: "NotificationPopup",
|
|
30
|
+
props: {
|
|
31
|
+
icon: {},
|
|
32
|
+
title: {},
|
|
33
|
+
subtitle: {},
|
|
34
|
+
closeLabel: {},
|
|
35
|
+
position: { default: "bottom-left" }
|
|
36
|
+
},
|
|
37
|
+
emits: ["close"],
|
|
38
|
+
setup(__props, { emit: __emit }) {
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", {
|
|
42
|
+
role: "status",
|
|
43
|
+
"data-position": __props.position,
|
|
44
|
+
class: normalizeClass(unref(cn)("pointer-events-auto absolute flex max-h-96 w-96 flex-col rounded-lg border bg-background shadow-md", __props.position === "bottom-left" && "bottom-4 left-4", __props.position === "bottom-right" && "right-4 bottom-4"))
|
|
45
|
+
}, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [
|
|
46
|
+
__props.icon ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("i", { class: normalizeClass(unref(cn)("text-white", __props.icon)) }, null, 2)])) : createCommentVNode("", true),
|
|
47
|
+
createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, toDisplayString(__props.title), 1), __props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)]),
|
|
48
|
+
__props.closeLabel ? (openBlock(), createBlock(unref(Button_default), {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "size-6 shrink-0 self-start",
|
|
51
|
+
size: "icon-sm",
|
|
52
|
+
variant: "muted-textonly",
|
|
53
|
+
"aria-label": __props.closeLabel,
|
|
54
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "icon-[lucide--x] size-3.5" }, null, -1)])]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["aria-label"])) : createCommentVNode("", true)
|
|
59
|
+
]), _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)]), _ctx.$slots["footer-start"] || _ctx.$slots["footer-end"] ? (openBlock(), createElementBlock("div", _hoisted_9, [createElementVNode("div", null, [renderSlot(_ctx.$slots, "footer-start")]), createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "footer-end")])])) : createCommentVNode("", true)], 10, _hoisted_1);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { NotificationPopup_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Position = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export interface OverlayIconProps {
|
|
3
|
+
mainIcon: string;
|
|
4
|
+
subIcon: string;
|
|
5
|
+
positionX?: Position;
|
|
6
|
+
positionY?: Position;
|
|
7
|
+
offsetX?: number;
|
|
8
|
+
offsetY?: number;
|
|
9
|
+
subIconScale?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<OverlayIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OverlayIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/OverlayIcon-C-din824.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
html: string;
|
|
3
|
+
as?: 'div' | 'span';
|
|
4
|
+
profile?: 'default' | 'highlighted-code';
|
|
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,58 @@
|
|
|
1
|
+
import { computed, createElementBlock, defineComponent, mergeProps, openBlock } from "vue";
|
|
2
|
+
import createDOMPurify from "dompurify";
|
|
3
|
+
// src/components/common/SanitizedHtml.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = ["innerHTML"];
|
|
5
|
+
var _hoisted_2 = ["innerHTML"];
|
|
6
|
+
// src/components/common/SanitizedHtml.vue
|
|
7
|
+
var SanitizedHtml_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "SanitizedHtml",
|
|
10
|
+
props: {
|
|
11
|
+
html: {},
|
|
12
|
+
as: { default: "div" },
|
|
13
|
+
profile: { default: "default" }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const purifier = createDOMPurify(window);
|
|
17
|
+
purifier.addHook("uponSanitizeAttribute", (node, data) => {
|
|
18
|
+
if (data.attrName !== "style") return;
|
|
19
|
+
if (__props.profile !== "highlighted-code" || !(node instanceof HTMLSpanElement)) {
|
|
20
|
+
data.keepAttr = false;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const source = document.createElement("span").style;
|
|
24
|
+
const allowed = document.createElement("span").style;
|
|
25
|
+
source.cssText = data.attrValue;
|
|
26
|
+
for (const property of [
|
|
27
|
+
"color",
|
|
28
|
+
"font-style",
|
|
29
|
+
"font-weight"
|
|
30
|
+
]) allowed.setProperty(property, source.getPropertyValue(property));
|
|
31
|
+
data.attrValue = allowed.cssText;
|
|
32
|
+
data.keepAttr = data.attrValue.length > 0;
|
|
33
|
+
});
|
|
34
|
+
const sanitizedHtml = computed(() => purifier.sanitize(__props.html, {
|
|
35
|
+
ADD_TAGS: ["video", "source"],
|
|
36
|
+
ADD_ATTR: [
|
|
37
|
+
"controls",
|
|
38
|
+
"autoplay",
|
|
39
|
+
"loop",
|
|
40
|
+
"muted",
|
|
41
|
+
"preload",
|
|
42
|
+
"poster",
|
|
43
|
+
"target",
|
|
44
|
+
"rel"
|
|
45
|
+
],
|
|
46
|
+
FORBID_TAGS: [
|
|
47
|
+
"form",
|
|
48
|
+
"input",
|
|
49
|
+
"button"
|
|
50
|
+
],
|
|
51
|
+
FORBID_ATTR: __props.profile === "highlighted-code" ? [] : ["style"]
|
|
52
|
+
}));
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return __props.as === "span" ? (openBlock(), createElementBlock("span", mergeProps({ key: 0 }, _ctx.$attrs, { innerHTML: sanitizedHtml.value }), null, 16, _hoisted_1)) : (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, _ctx.$attrs, { innerHTML: sanitizedHtml.value }), null, 16, _hoisted_2));
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export { SanitizedHtml_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
position?: 'left' | 'right';
|
|
4
|
+
type?: 'solid' | 'dashed' | 'dotted';
|
|
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,34 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
3
|
+
// src/components/common/TextDivider.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "flex items-center" };
|
|
5
|
+
var _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "mr-2 shrink-0"
|
|
8
|
+
};
|
|
9
|
+
var _hoisted_3 = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "ml-2 shrink-0"
|
|
12
|
+
};
|
|
13
|
+
// src/components/common/TextDivider.vue
|
|
14
|
+
var TextDivider_default = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "TextDivider",
|
|
16
|
+
props: {
|
|
17
|
+
text: {},
|
|
18
|
+
position: { default: "left" },
|
|
19
|
+
type: { default: "solid" }
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
24
|
+
__props.position === "left" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.text), 1)) : createCommentVNode("", true),
|
|
25
|
+
createElementVNode("div", {
|
|
26
|
+
role: "separator",
|
|
27
|
+
class: normalizeClass(unref(cn)("grow border-0 border-t", __props.type === "dashed" && "border-dashed", __props.type === "dotted" && "border-dotted"))
|
|
28
|
+
}, null, 2),
|
|
29
|
+
__props.position === "right" ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.text), 1)) : createCommentVNode("", true)
|
|
30
|
+
]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export { TextDivider_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Scroll speed in pixels per second */
|
|
3
|
+
speed?: number;
|
|
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,51 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, ref, renderSlot, unref, watch } from "vue";
|
|
3
|
+
import { useElementHover, useElementSize, useRafFn } from "@vueuse/core";
|
|
4
|
+
// src/components/common/TextTicker.vue
|
|
5
|
+
var TextTicker_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "TextTicker",
|
|
7
|
+
props: { speed: { default: 70 } },
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const containerRef = ref(null);
|
|
10
|
+
const isHovered = useElementHover(containerRef, { delayEnter: 350 });
|
|
11
|
+
const { width: containerWidth } = useElementSize(containerRef);
|
|
12
|
+
const isScrolling = ref(false);
|
|
13
|
+
let scrollStartTime = 0;
|
|
14
|
+
let overflowAmount = 0;
|
|
15
|
+
const { pause, resume } = useRafFn(({ timestamp }) => {
|
|
16
|
+
const el = containerRef.value;
|
|
17
|
+
if (!el || overflowAmount <= 0) return pause();
|
|
18
|
+
const elapsed = timestamp - scrollStartTime;
|
|
19
|
+
const duration = overflowAmount / __props.speed * 1e3;
|
|
20
|
+
const progress = Math.min(elapsed / duration, 1);
|
|
21
|
+
el.scrollLeft = overflowAmount * progress;
|
|
22
|
+
if (progress >= 1) pause();
|
|
23
|
+
}, { immediate: false });
|
|
24
|
+
function startScroll() {
|
|
25
|
+
const el = containerRef.value;
|
|
26
|
+
if (!el) return;
|
|
27
|
+
overflowAmount = el.scrollWidth - containerWidth.value;
|
|
28
|
+
if (overflowAmount <= 0) return;
|
|
29
|
+
isScrolling.value = true;
|
|
30
|
+
scrollStartTime = performance.now();
|
|
31
|
+
resume();
|
|
32
|
+
}
|
|
33
|
+
function stopScroll() {
|
|
34
|
+
pause();
|
|
35
|
+
if (containerRef.value) containerRef.value.scrollLeft = 0;
|
|
36
|
+
isScrolling.value = false;
|
|
37
|
+
}
|
|
38
|
+
watch(isHovered, (hovered) => {
|
|
39
|
+
if (hovered) startScroll();
|
|
40
|
+
else stopScroll();
|
|
41
|
+
});
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
ref_key: "containerRef",
|
|
45
|
+
ref: containerRef,
|
|
46
|
+
class: normalizeClass(unref(cn)("overflow-hidden whitespace-nowrap", !isScrolling.value && "text-ellipsis"))
|
|
47
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export { TextTicker_default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: 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,51 @@
|
|
|
1
|
+
import MarqueeLine_default from "./MarqueeLine.vue.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, useTemplateRef, withCtx } from "vue";
|
|
3
|
+
import { useElementSize } from "@vueuse/core";
|
|
4
|
+
// src/components/common/textTickerUtils.ts
|
|
5
|
+
function splitTextAtWordBoundary(text, ratio) {
|
|
6
|
+
if (ratio >= 1) return [text, ""];
|
|
7
|
+
const estimate = Math.floor(text.length * ratio);
|
|
8
|
+
const before = text.lastIndexOf(" ", estimate);
|
|
9
|
+
const breakIndex = before > 0 ? before : text.indexOf(" ");
|
|
10
|
+
if (breakIndex <= 0) return [text, ""];
|
|
11
|
+
return [text.substring(0, breakIndex), text.substring(breakIndex + 1)];
|
|
12
|
+
}
|
|
13
|
+
// src/components/common/TextTickerMultiLine.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
+
var _hoisted_1 = ["textContent"];
|
|
15
|
+
var _hoisted_2 = { class: "flex w-full flex-col" };
|
|
16
|
+
// src/components/common/TextTickerMultiLine.vue
|
|
17
|
+
var TextTickerMultiLine_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "TextTickerMultiLine",
|
|
19
|
+
props: { text: {} },
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const measureRef = useTemplateRef("measureRef");
|
|
22
|
+
const containerRef = useTemplateRef("containerRef");
|
|
23
|
+
const { width: textWidth } = useElementSize(measureRef);
|
|
24
|
+
const { width: containerWidth } = useElementSize(containerRef);
|
|
25
|
+
const lines = computed(() => {
|
|
26
|
+
if (!textWidth.value || !containerWidth.value) return [__props.text];
|
|
27
|
+
const safeRenderWidth = containerWidth.value - 30;
|
|
28
|
+
if (textWidth.value <= safeRenderWidth) return [__props.text];
|
|
29
|
+
return splitTextAtWordBoundary(__props.text, safeRenderWidth / textWidth.value);
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock("div", {
|
|
33
|
+
ref_key: "containerRef",
|
|
34
|
+
ref: containerRef,
|
|
35
|
+
class: "w-full"
|
|
36
|
+
}, [createElementVNode("div", {
|
|
37
|
+
ref_key: "measureRef",
|
|
38
|
+
ref: measureRef,
|
|
39
|
+
class: "pointer-events-none invisible absolute inset-x-0 top-0 overflow-hidden whitespace-nowrap",
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
textContent: toDisplayString(__props.text)
|
|
42
|
+
}, null, 8, _hoisted_1), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, index) => {
|
|
43
|
+
return openBlock(), createBlock(MarqueeLine_default, { key: index }, {
|
|
44
|
+
default: withCtx(() => [createTextVNode(toDisplayString(line), 1)]),
|
|
45
|
+
_: 2
|
|
46
|
+
}, 1024);
|
|
47
|
+
}), 128))])], 512);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export { TextTickerMultiLine_default as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
photoUrl?: string | null;
|
|
3
|
+
label: string;
|
|
4
|
+
iconClass?: string;
|
|
5
|
+
size?: 'normal' | 'large';
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, ref, unref, watch } from "vue";
|
|
3
|
+
// src/components/common/UserAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = [
|
|
5
|
+
"src",
|
|
6
|
+
"alt",
|
|
7
|
+
"aria-label"
|
|
8
|
+
];
|
|
9
|
+
var _hoisted_2 = ["aria-label"];
|
|
10
|
+
// src/components/common/UserAvatar.vue
|
|
11
|
+
var UserAvatar_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "UserAvatar",
|
|
13
|
+
props: {
|
|
14
|
+
photoUrl: {},
|
|
15
|
+
label: {},
|
|
16
|
+
iconClass: { default: "size-4" },
|
|
17
|
+
size: { default: "normal" }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const imageError = ref(false);
|
|
21
|
+
const handleImageError = () => {
|
|
22
|
+
imageError.value = true;
|
|
23
|
+
};
|
|
24
|
+
const hasAvatar = computed(() => __props.photoUrl && !imageError.value);
|
|
25
|
+
watch(() => __props.photoUrl, () => {
|
|
26
|
+
imageError.value = false;
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(unref(cn)("inline-flex aspect-square items-center justify-center overflow-hidden rounded-full bg-muted", __props.size === "large" ? "size-12" : "size-8")) }, [hasAvatar.value ? (openBlock(), createElementBlock("img", {
|
|
30
|
+
key: 0,
|
|
31
|
+
src: __props.photoUrl ?? void 0,
|
|
32
|
+
alt: __props.label,
|
|
33
|
+
"aria-label": __props.label,
|
|
34
|
+
class: "size-full object-cover",
|
|
35
|
+
onError: handleImageError
|
|
36
|
+
}, null, 40, _hoisted_1)) : (openBlock(), createElementBlock("i", {
|
|
37
|
+
key: 1,
|
|
38
|
+
"data-testid": "avatar-icon",
|
|
39
|
+
"aria-label": __props.label,
|
|
40
|
+
class: normalizeClass(unref(cn)("icon-[lucide--user]", __props.iconClass))
|
|
41
|
+
}, null, 10, _hoisted_2))], 2);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export { UserAvatar_default as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-DjkACiAr.js";
|
|
2
|
+
import { createElementBlock, openBlock } from "vue";
|
|
3
|
+
// src/components/common/VerticalDivider.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = {
|
|
6
|
+
role: "separator",
|
|
7
|
+
"aria-orientation": "vertical",
|
|
8
|
+
class: "h-6 w-px self-center bg-border"
|
|
9
|
+
};
|
|
10
|
+
function _sfc_render(_ctx, _cache) {
|
|
11
|
+
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
12
|
+
}
|
|
13
|
+
var VerticalDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
14
|
+
export { VerticalDivider_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
baseSrc: string;
|
|
3
|
+
overlaySrc: string;
|
|
4
|
+
label: string;
|
|
5
|
+
baseMuted?: boolean;
|
|
6
|
+
overlayMuted?: boolean;
|
|
7
|
+
startPosition?: number;
|
|
8
|
+
};
|
|
9
|
+
declare function syncPlayback(): void;
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
+
syncPlayback: typeof syncPlayback;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, useTemplateRef, watchEffect } from "vue";
|
|
3
|
+
import { useEventListener, usePreferredReducedMotion } from "@vueuse/core";
|
|
4
|
+
// src/components/common/VideoCompareSlider.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = ["aria-label"];
|
|
6
|
+
var _hoisted_2 = [
|
|
7
|
+
"src",
|
|
8
|
+
"muted",
|
|
9
|
+
"autoplay"
|
|
10
|
+
];
|
|
11
|
+
var _hoisted_3 = [
|
|
12
|
+
"src",
|
|
13
|
+
"muted",
|
|
14
|
+
"autoplay"
|
|
15
|
+
];
|
|
16
|
+
var _hoisted_4 = ["aria-label", "aria-valuenow"];
|
|
17
|
+
var KEY_STEP = 5;
|
|
18
|
+
// src/components/common/VideoCompareSlider.vue
|
|
19
|
+
var VideoCompareSlider_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "VideoCompareSlider",
|
|
21
|
+
props: {
|
|
22
|
+
baseSrc: {},
|
|
23
|
+
overlaySrc: {},
|
|
24
|
+
label: {},
|
|
25
|
+
baseMuted: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
overlayMuted: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
32
|
+
},
|
|
33
|
+
startPosition: { default: 50 }
|
|
34
|
+
},
|
|
35
|
+
setup(__props, { expose: __expose }) {
|
|
36
|
+
const root = useTemplateRef("root");
|
|
37
|
+
const baseVideo = useTemplateRef("baseVideo");
|
|
38
|
+
const overlayVideo = useTemplateRef("overlayVideo");
|
|
39
|
+
const position = ref(__props.startPosition);
|
|
40
|
+
function setPosition(value) {
|
|
41
|
+
position.value = Math.max(0, Math.min(100, value));
|
|
42
|
+
}
|
|
43
|
+
function positionFromPointer(event) {
|
|
44
|
+
const el = root.value;
|
|
45
|
+
if (!el) return;
|
|
46
|
+
const rect = el.getBoundingClientRect();
|
|
47
|
+
if (rect.width === 0) return;
|
|
48
|
+
setPosition((event.clientX - rect.left) / rect.width * 100);
|
|
49
|
+
}
|
|
50
|
+
const isDragging = ref(false);
|
|
51
|
+
useEventListener(root, "pointerdown", (event) => {
|
|
52
|
+
if (event.target.closest("button")) return;
|
|
53
|
+
isDragging.value = true;
|
|
54
|
+
root.value?.setPointerCapture(event.pointerId);
|
|
55
|
+
positionFromPointer(event);
|
|
56
|
+
});
|
|
57
|
+
useEventListener(root, "pointermove", (event) => {
|
|
58
|
+
if (isDragging.value) positionFromPointer(event);
|
|
59
|
+
});
|
|
60
|
+
function endDrag(event) {
|
|
61
|
+
isDragging.value = false;
|
|
62
|
+
root.value?.releasePointerCapture(event.pointerId);
|
|
63
|
+
}
|
|
64
|
+
useEventListener(root, "pointerup", endDrag);
|
|
65
|
+
useEventListener(root, "pointercancel", endDrag);
|
|
66
|
+
const reducedMotion = usePreferredReducedMotion();
|
|
67
|
+
const motionAllowed = computed(() => reducedMotion.value !== "reduce");
|
|
68
|
+
watchEffect(() => {
|
|
69
|
+
if (motionAllowed.value) return;
|
|
70
|
+
baseVideo.value?.pause();
|
|
71
|
+
overlayVideo.value?.pause();
|
|
72
|
+
});
|
|
73
|
+
function onKeydown(event) {
|
|
74
|
+
if (event.key === "ArrowLeft") setPosition(position.value - KEY_STEP);
|
|
75
|
+
else if (event.key === "ArrowRight") setPosition(position.value + KEY_STEP);
|
|
76
|
+
else if (event.key === "Home") setPosition(0);
|
|
77
|
+
else if (event.key === "End") setPosition(100);
|
|
78
|
+
else return;
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
}
|
|
81
|
+
function syncPlayback() {
|
|
82
|
+
if (baseVideo.value && overlayVideo.value) overlayVideo.value.currentTime = baseVideo.value.currentTime;
|
|
83
|
+
}
|
|
84
|
+
__expose({ syncPlayback });
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return openBlock(), createElementBlock("div", {
|
|
87
|
+
ref_key: "root",
|
|
88
|
+
ref: root,
|
|
89
|
+
class: normalizeClass(unref(cn)("relative touch-none overflow-hidden select-none", isDragging.value ? "cursor-grabbing" : "cursor-grab")),
|
|
90
|
+
role: "group",
|
|
91
|
+
"aria-label": __props.label
|
|
92
|
+
}, [
|
|
93
|
+
createElementVNode("video", {
|
|
94
|
+
ref_key: "baseVideo",
|
|
95
|
+
ref: baseVideo,
|
|
96
|
+
src: __props.baseSrc,
|
|
97
|
+
class: "pointer-events-none absolute inset-0 size-full object-cover",
|
|
98
|
+
muted: __props.baseMuted,
|
|
99
|
+
autoplay: motionAllowed.value,
|
|
100
|
+
loop: "",
|
|
101
|
+
playsinline: "",
|
|
102
|
+
"aria-hidden": "true",
|
|
103
|
+
"data-testid": "compare-clip"
|
|
104
|
+
}, null, 8, _hoisted_2),
|
|
105
|
+
createElementVNode("div", {
|
|
106
|
+
class: "absolute inset-0 overflow-hidden",
|
|
107
|
+
style: normalizeStyle({ clipPath: `inset(0 ${100 - position.value}% 0 0)` })
|
|
108
|
+
}, [createElementVNode("video", {
|
|
109
|
+
ref_key: "overlayVideo",
|
|
110
|
+
ref: overlayVideo,
|
|
111
|
+
src: __props.overlaySrc,
|
|
112
|
+
class: "pointer-events-none absolute inset-0 size-full object-cover",
|
|
113
|
+
muted: __props.overlayMuted,
|
|
114
|
+
autoplay: motionAllowed.value,
|
|
115
|
+
loop: "",
|
|
116
|
+
playsinline: "",
|
|
117
|
+
"aria-hidden": "true",
|
|
118
|
+
"data-testid": "compare-clip"
|
|
119
|
+
}, null, 8, _hoisted_3)], 4),
|
|
120
|
+
createElementVNode("div", {
|
|
121
|
+
class: "absolute inset-y-0 w-0.5 -translate-x-1/2 bg-white/90 shadow-lg outline-none focus-visible:ring-2 focus-visible:ring-white",
|
|
122
|
+
style: normalizeStyle({ left: `${position.value}%` }),
|
|
123
|
+
role: "slider",
|
|
124
|
+
tabindex: "0",
|
|
125
|
+
"aria-label": __props.label,
|
|
126
|
+
"aria-valuemin": "0",
|
|
127
|
+
"aria-valuemax": "100",
|
|
128
|
+
"aria-valuenow": Math.round(position.value),
|
|
129
|
+
onKeydown
|
|
130
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "absolute top-1/2 left-1/2 flex size-6 -translate-1/2 items-center justify-center rounded-full bg-white/90 shadow-sm" }, [createElementVNode("i", {
|
|
131
|
+
class: "icon-[lucide--chevrons-left-right] size-3.5 text-black",
|
|
132
|
+
"aria-hidden": "true"
|
|
133
|
+
})], -1)])], 44, _hoisted_4),
|
|
134
|
+
renderSlot(_ctx.$slots, "default")
|
|
135
|
+
], 10, _hoisted_1);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export { VideoCompareSlider_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
bottomClass?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
top?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
bottom?: (props: typeof __VLS_3) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
+
container: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
12
|
+
toolbar: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
mouseenter: () => any;
|
|
15
|
+
mouseleave: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onMouseenter?: (() => any) | undefined;
|
|
18
|
+
onMouseleave?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, unref, withModifiers } from "vue";
|
|
3
|
+
// src/components/common/ViewportWidgetShell.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "pointer-events-none absolute inset-x-0 top-0" };
|
|
5
|
+
var _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "pointer-events-none absolute inset-x-0 bottom-0"
|
|
8
|
+
};
|
|
9
|
+
// src/components/common/ViewportWidgetShell.vue
|
|
10
|
+
var ViewportWidgetShell_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "ViewportWidgetShell",
|
|
12
|
+
props: { bottomClass: {} },
|
|
13
|
+
emits: ["mouseenter", "mouseleave"],
|
|
14
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const container = ref(null);
|
|
17
|
+
const toolbar = ref(null);
|
|
18
|
+
function focusContainer() {
|
|
19
|
+
container.value?.focus();
|
|
20
|
+
}
|
|
21
|
+
__expose({
|
|
22
|
+
container,
|
|
23
|
+
toolbar
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("div", {
|
|
27
|
+
class: "relative size-full min-h-[300px]",
|
|
28
|
+
onPointerdown: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"])),
|
|
29
|
+
onMousedown: _cache[6] || (_cache[6] = withModifiers(() => {}, ["stop"]))
|
|
30
|
+
}, [
|
|
31
|
+
createElementVNode("div", {
|
|
32
|
+
ref_key: "container",
|
|
33
|
+
ref: container,
|
|
34
|
+
class: "relative size-full",
|
|
35
|
+
"data-capture-wheel": "true",
|
|
36
|
+
tabindex: "-1",
|
|
37
|
+
onPointerdown: withModifiers(focusContainer, ["stop"]),
|
|
38
|
+
onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop", "prevent"])),
|
|
39
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => emit("mouseenter")),
|
|
40
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => emit("mouseleave"))
|
|
41
|
+
}, null, 544),
|
|
42
|
+
createElementVNode("div", _hoisted_1, [createElementVNode("div", {
|
|
43
|
+
ref_key: "toolbar",
|
|
44
|
+
ref: toolbar,
|
|
45
|
+
class: "pointer-events-auto flex h-10 items-center gap-1 bg-popover px-2",
|
|
46
|
+
onWheel: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
|
|
47
|
+
}, [renderSlot(_ctx.$slots, "top")], 544)]),
|
|
48
|
+
_ctx.$slots.bottom ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("div", {
|
|
49
|
+
class: normalizeClass(unref(cn)("pointer-events-auto flex h-10 items-center gap-1 bg-popover px-2", __props.bottomClass)),
|
|
50
|
+
onWheel: _cache[4] || (_cache[4] = withModifiers(() => {}, ["stop"]))
|
|
51
|
+
}, [renderSlot(_ctx.$slots, "bottom")], 34)])) : createCommentVNode("", true)
|
|
52
|
+
], 32);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export { ViewportWidgetShell_default as default };
|