@comfyorg/design-system 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -10
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +2 -0
- package/dist/badge/CreditBadge.vue.d.ts +7 -0
- package/dist/badge/CreditBadge.vue.js +35 -0
- package/dist/badge/badge.variants.d.ts +12 -0
- package/dist/button/Button.vue.d.ts +31 -0
- package/dist/button/Button.vue.js +2 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +37 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +15 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +2 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +2 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +2 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +57 -0
- package/dist/card/card.variants.d.ts +11 -0
- package/dist/chart/Chart.vue.d.ts +12 -0
- package/dist/chart/Chart.vue.js +180 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +49 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +2 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +23 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +22 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +28 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +34 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +73 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +41 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +93 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +12 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +2 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +60 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +36 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +53 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +54 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +15 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +141 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +58 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +107 -0
- package/dist/common/textTickerUtils.d.ts +1 -0
- package/dist/components.css +44 -0
- package/dist/composables/useAttrsClass.d.ts +12 -0
- package/dist/composables/useAttrsClass.js +18 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +18 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +27 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +27 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +19 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +61 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +72 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +25 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +24 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +73 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +33 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +24 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +24 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +27 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +35 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +55 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +38 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +2 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +39 -0
- package/dist/dialog/types.d.ts +6 -0
- package/dist/dialog/types.js +0 -0
- package/dist/field/Field.vue.d.ts +19 -0
- package/dist/field/Field.vue.js +42 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +24 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +39 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +24 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +28 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +18 -0
- package/dist/field/field.variants.d.ts +11 -0
- package/dist/hover-card/HoverCard.vue.d.ts +18 -0
- package/dist/hover-card/HoverCard.vue.js +26 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +68 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +23 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +33 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +40 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +31 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +32 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +2 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +68 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +2 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +2 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +2 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +2 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +22 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +124 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +2 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +28 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +19 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +28 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +32 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +62 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +52 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +2 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +79 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +2 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +2 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +35 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +2 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +2 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +2 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +2 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +2 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +2 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +2 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +2 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +2 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +15 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +7 -0
- package/dist/menu/mouseDownUtil.d.ts +3 -0
- package/dist/menu/types.d.ts +69 -0
- package/dist/menu/types.js +0 -0
- package/dist/menu/usePointMenu.d.ts +19 -0
- package/dist/menu/usePointMenu.js +56 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +75 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +15 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +137 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +2 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +2 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +42 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +16 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +75 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +35 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +35 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +25 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +56 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +140 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +91 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +13 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +45 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +42 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +104 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +234 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +127 -0
- package/dist/search-input/searchInput.variants.d.ts +45 -0
- package/dist/select/DropdownControl.vue.d.ts +16 -0
- package/dist/select/DropdownControl.vue.js +48 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +2 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +2 -0
- package/dist/select/SelectItem.vue.d.ts +18 -0
- package/dist/select/SelectItem.vue.js +2 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +2 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +2 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +2 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +2 -0
- package/dist/select/types.d.ts +4 -0
- package/dist/select/types.js +0 -0
- package/dist/select/useSelectSearch.d.ts +3 -0
- package/dist/select/useSelectSearch.js +15 -0
- package/dist/shared/Badge-D3uWa3yk.js +92 -0
- package/dist/shared/Button-CilmsOkY.js +141 -0
- package/dist/shared/Card-l7baUdn0.js +34 -0
- package/dist/shared/CardFooter-BM6EmVi7.js +21 -0
- package/dist/shared/CardHeader-B5To28Jp.js +21 -0
- package/dist/shared/ContextMenuContent-CNQHJQ81.js +64 -0
- package/dist/shared/DialogTitle-CfkkTGuU.js +43 -0
- package/dist/shared/Input-39RLwDr2.js +38 -0
- package/dist/shared/InputGroup-kjQKkhyB.js +25 -0
- package/dist/shared/InputGroupAddon-DLDRT0CQ.js +38 -0
- package/dist/shared/InputGroupButton-BoEp2apg.js +41 -0
- package/dist/shared/InputGroupInput-E2MlEVUU.js +32 -0
- package/dist/shared/Label-Cx_lFofI.js +36 -0
- package/dist/shared/MenuAction-BdghJ23k.js +124 -0
- package/dist/shared/MenuContent-ChqlM3xA.js +80 -0
- package/dist/shared/MenuItemContent--dPNoBmU.js +69 -0
- package/dist/shared/MenuItems-BJKetPV-.js +69 -0
- package/dist/shared/MenuRadioGroup-Bpjt9sHI.js +65 -0
- package/dist/shared/MenuRadioItem-h7hh_RGU.js +36 -0
- package/dist/shared/MenuSeparator-Dm6CkPqB.js +28 -0
- package/dist/shared/MenuSub-Dbnj2w-X.js +23 -0
- package/dist/shared/MenuSubContent-M-g3fllh.js +69 -0
- package/dist/shared/MenuSubTrigger-D6-3s2NL.js +35 -0
- package/dist/shared/MenuSubmenu-QHWMyfKF.js +43 -0
- package/dist/shared/MultiSelectContent-c1D5avjh.js +162 -0
- package/dist/shared/MultiSelectTrigger-lmuXqETa.js +52 -0
- package/dist/shared/OverlayIcon-DntJI-mm.js +45 -0
- package/dist/shared/SearchableSingleSelect-Dnti1kqJ.js +184 -0
- package/dist/shared/Select-CP3OZjtL.js +33 -0
- package/dist/shared/SelectContent-C8aNlcFf.js +91 -0
- package/dist/shared/SelectItem-tU4CIa5J.js +42 -0
- package/dist/shared/SelectScrollDownButton-Dvig5MVc.js +30 -0
- package/dist/shared/SelectScrollUpButton-lv-npT6v.js +30 -0
- package/dist/shared/SelectTrigger-CCDiZW91.js +47 -0
- package/dist/shared/SelectValue-DFZFSiQp.js +23 -0
- package/dist/shared/Switch-DsCzHpDU.js +63 -0
- package/dist/shared/TableHead-OxGist4m.js +24 -0
- package/dist/shared/TagRemoveButton-BiCdscIC.js +38 -0
- package/dist/shared/TextTooltip-ClHQl84h.js +29 -0
- package/dist/shared/Tooltip-DbXyHv20.js +34 -0
- package/dist/shared/TooltipContent-Bju-U7gc.js +91 -0
- package/dist/shared/TooltipTrigger-CVwISmWo.js +65 -0
- package/dist/shared/_plugin-vue_export-helper-BOaGB7Aw.js +8 -0
- package/dist/shared/searchInput.variants-NOge_52E.js +47 -0
- package/dist/shared/select.variants-BPn5Z7N1.js +40 -0
- package/dist/shared/src-CnJ6AzLP.js +12 -0
- package/dist/shared/tabKeys-BISOrxWu.js +4 -0
- package/dist/shared/tabs.variants-XUREdHry.js +23 -0
- package/dist/shared/tag.variants-CCqCn8Jc.js +34 -0
- package/dist/shared/tagsInputContext-QXu7RrG5.js +5 -0
- package/dist/shared/toggleGroup.variants-CvjZDHMw.js +39 -0
- package/dist/shared/tooltipContext-BL5JtM0i.js +4 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +2 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +187 -0
- package/dist/single-select/types.d.ts +25 -0
- package/dist/single-select/types.js +0 -0
- package/dist/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/skeleton/Skeleton.vue.js +24 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +88 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +41 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +40 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +45 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +37 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +2 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +76 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +31 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +28 -0
- package/dist/tab/tab.variants.d.ts +9 -0
- package/dist/tab/tabKeys.d.ts +7 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/Table.vue.js +23 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +21 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +21 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +2 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +21 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +21 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +47 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +19 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +43 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +37 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +38 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +39 -0
- package/dist/tabs/tabs.variants.d.ts +21 -0
- package/dist/tags-input/TagsInput.vue.d.ts +32 -0
- package/dist/tags-input/TagsInput.vue.js +98 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +56 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +34 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +35 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +28 -0
- package/dist/tags-input/tagsInputContext.d.ts +4 -0
- package/dist/textarea/Textarea.vue.d.ts +17 -0
- package/dist/textarea/Textarea.vue.js +33 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +42 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +31 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +29 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +47 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +55 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +31 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +33 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +61 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +45 -0
- package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
- package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
- package/dist/tooltip/TextTooltip.vue.js +2 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +2 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +2 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +39 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +2 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +8 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +110 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +55 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +82 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +7 -0
- package/dist-types/button.variants.d.ts +16 -0
- package/dist-types/select.variants.d.ts +24 -0
- package/dist-types/tag.variants.d.ts +21 -0
- package/dist-types/workspaceAvatar.d.ts +5 -0
- package/package.json +165 -7
- package/src/button.variants.ts +84 -0
- package/src/css/_deprecated-aliases.css +12 -0
- package/src/css/_legacy-palette.css +33 -0
- package/src/css/_legacy-ui.css +418 -0
- package/src/css/_markdown.css +227 -0
- package/src/css/_mask-editor.css +180 -0
- package/src/css/_palette.css +40 -4
- package/src/css/base.css +0 -6
- package/src/css/iconSizing.test.ts +80 -0
- package/src/css/iconifyDynamicPlugin.ts +15 -6
- package/src/css/icons.test.ts +17 -0
- package/src/css/lucideStrokePlugin.js +5 -6
- package/src/css/style.css +108 -1698
- package/src/icons/README.md +33 -26
- package/src/icons/astroid-filled.svg +3 -0
- package/src/icons/claude.svg +1 -1
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString } from "vue";
|
|
2
|
+
//#region src/components/common/MarkdownText.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = { class: "wrap-break-word" };
|
|
4
|
+
var _hoisted_2 = ["textContent"];
|
|
5
|
+
var _hoisted_3 = { key: 1 };
|
|
6
|
+
var _hoisted_4 = ["href"];
|
|
7
|
+
var _hoisted_5 = { class: "text-blue-600" };
|
|
8
|
+
var _hoisted_6 = { key: 1 };
|
|
9
|
+
var _hoisted_7 = { key: 2 };
|
|
10
|
+
var _hoisted_8 = {
|
|
11
|
+
key: 3,
|
|
12
|
+
class: "rounded-sm px-1 py-0.5 text-xs"
|
|
13
|
+
};
|
|
14
|
+
var _hoisted_9 = { key: 4 };
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/common/MarkdownText.vue
|
|
17
|
+
var MarkdownText_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "MarkdownText",
|
|
19
|
+
props: { text: {} },
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const hasMarkdown = computed(() => {
|
|
22
|
+
return /(\[.*?\]\(.*?\)|(\*\*|__)(.*?)(\*\*|__)|(\*|_)(.*?)(\*|_)|`(.*?)`)/.test(__props.text);
|
|
23
|
+
});
|
|
24
|
+
const parsedSegments = computed(() => {
|
|
25
|
+
if (!hasMarkdown.value) return [{
|
|
26
|
+
type: "text",
|
|
27
|
+
text: __props.text
|
|
28
|
+
}];
|
|
29
|
+
const segments = [];
|
|
30
|
+
const remainingText = __props.text;
|
|
31
|
+
let lastIndex = 0;
|
|
32
|
+
const linkRegex = /\[(.*?)\]\((.*?)\)/g;
|
|
33
|
+
let linkMatch;
|
|
34
|
+
while ((linkMatch = linkRegex.exec(remainingText)) !== null) {
|
|
35
|
+
if (linkMatch.index > lastIndex) segments.push({
|
|
36
|
+
type: "text",
|
|
37
|
+
text: remainingText.substring(lastIndex, linkMatch.index)
|
|
38
|
+
});
|
|
39
|
+
segments.push({
|
|
40
|
+
type: "link",
|
|
41
|
+
text: linkMatch[1],
|
|
42
|
+
url: linkMatch[2]
|
|
43
|
+
});
|
|
44
|
+
lastIndex = linkMatch.index + linkMatch[0].length;
|
|
45
|
+
}
|
|
46
|
+
if (lastIndex < remainingText.length) {
|
|
47
|
+
let rest = remainingText.substring(lastIndex);
|
|
48
|
+
rest = rest.replace(/(\*\*|__)(.*?)(\*\*|__)/g, (_, __, p2) => {
|
|
49
|
+
segments.push({
|
|
50
|
+
type: "bold",
|
|
51
|
+
text: p2
|
|
52
|
+
});
|
|
53
|
+
return "";
|
|
54
|
+
});
|
|
55
|
+
rest = rest.replace(/(\*|_)(.*?)(\*|_)/g, (_, __, p2) => {
|
|
56
|
+
segments.push({
|
|
57
|
+
type: "italic",
|
|
58
|
+
text: p2
|
|
59
|
+
});
|
|
60
|
+
return "";
|
|
61
|
+
});
|
|
62
|
+
rest = rest.replace(/`(.*?)`/g, (_, p1) => {
|
|
63
|
+
segments.push({
|
|
64
|
+
type: "code",
|
|
65
|
+
text: p1
|
|
66
|
+
});
|
|
67
|
+
return "";
|
|
68
|
+
});
|
|
69
|
+
if (rest) segments.push({
|
|
70
|
+
type: "text",
|
|
71
|
+
text: rest
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return segments;
|
|
75
|
+
});
|
|
76
|
+
return (_ctx, _cache) => {
|
|
77
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [!hasMarkdown.value ? (openBlock(), createElementBlock("div", {
|
|
78
|
+
key: 0,
|
|
79
|
+
textContent: toDisplayString(__props.text)
|
|
80
|
+
}, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(parsedSegments.value, (segment, index) => {
|
|
81
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [segment.type === "link" && "url" in segment ? (openBlock(), createElementBlock("a", {
|
|
82
|
+
key: 0,
|
|
83
|
+
href: segment.url,
|
|
84
|
+
target: "_blank",
|
|
85
|
+
rel: "noopener noreferrer",
|
|
86
|
+
class: "hover:underline"
|
|
87
|
+
}, [createElementVNode("span", _hoisted_5, toDisplayString(segment.text), 1)], 8, _hoisted_4)) : segment.type === "bold" ? (openBlock(), createElementBlock("strong", _hoisted_6, toDisplayString(segment.text), 1)) : segment.type === "italic" ? (openBlock(), createElementBlock("em", _hoisted_7, toDisplayString(segment.text), 1)) : segment.type === "code" ? (openBlock(), createElementBlock("code", _hoisted_8, toDisplayString(segment.text), 1)) : (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(segment.text), 1))], 64);
|
|
88
|
+
}), 128))]))]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
export { MarkdownText_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
2
|
+
import { createElementBlock, createElementVNode, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#region src/components/common/MarqueeLine.vue
|
|
4
|
+
var _sfc_main = {};
|
|
5
|
+
var _hoisted_1 = { class: "@container overflow-hidden mask-[linear-gradient(to_right,black_70%,transparent)] motion-safe:group-hover:mask-none" };
|
|
6
|
+
var _hoisted_2 = { class: "inline-block min-w-full whitespace-nowrap [--_marquee-end:min(calc(-100%+100cqw),0px)] motion-safe:group-hover:animate-[marquee-scroll_2s_linear_infinite_alternate]" };
|
|
7
|
+
function _sfc_render(_ctx, _cache) {
|
|
8
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default")])]);
|
|
9
|
+
}
|
|
10
|
+
var MarqueeLine_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MarqueeLine_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,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,60 @@
|
|
|
1
|
+
import { computed, createElementBlock, defineComponent, mergeProps, openBlock } from "vue";
|
|
2
|
+
import createDOMPurify from "dompurify";
|
|
3
|
+
//#region src/components/common/SanitizedHtml.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = ["innerHTML"];
|
|
5
|
+
var _hoisted_2 = ["innerHTML"];
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/common/SanitizedHtml.vue
|
|
8
|
+
var SanitizedHtml_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "SanitizedHtml",
|
|
11
|
+
props: {
|
|
12
|
+
html: {},
|
|
13
|
+
as: { default: "div" },
|
|
14
|
+
profile: { default: "default" }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const purifier = createDOMPurify(window);
|
|
18
|
+
purifier.addHook("uponSanitizeAttribute", (node, data) => {
|
|
19
|
+
if (data.attrName !== "style") return;
|
|
20
|
+
if (__props.profile !== "highlighted-code" || !(node instanceof HTMLSpanElement)) {
|
|
21
|
+
data.keepAttr = false;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const source = document.createElement("span").style;
|
|
25
|
+
const allowed = document.createElement("span").style;
|
|
26
|
+
source.cssText = data.attrValue;
|
|
27
|
+
for (const property of [
|
|
28
|
+
"color",
|
|
29
|
+
"font-style",
|
|
30
|
+
"font-weight"
|
|
31
|
+
]) allowed.setProperty(property, source.getPropertyValue(property));
|
|
32
|
+
data.attrValue = allowed.cssText;
|
|
33
|
+
data.keepAttr = data.attrValue.length > 0;
|
|
34
|
+
});
|
|
35
|
+
const sanitizedHtml = computed(() => purifier.sanitize(__props.html, {
|
|
36
|
+
ADD_TAGS: ["video", "source"],
|
|
37
|
+
ADD_ATTR: [
|
|
38
|
+
"controls",
|
|
39
|
+
"autoplay",
|
|
40
|
+
"loop",
|
|
41
|
+
"muted",
|
|
42
|
+
"preload",
|
|
43
|
+
"poster",
|
|
44
|
+
"target",
|
|
45
|
+
"rel"
|
|
46
|
+
],
|
|
47
|
+
FORBID_TAGS: [
|
|
48
|
+
"form",
|
|
49
|
+
"input",
|
|
50
|
+
"button"
|
|
51
|
+
],
|
|
52
|
+
FORBID_ATTR: __props.profile === "highlighted-code" ? [] : ["style"]
|
|
53
|
+
}));
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
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));
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
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,36 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
3
|
+
//#region 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
|
+
//#endregion
|
|
14
|
+
//#region src/components/common/TextDivider.vue
|
|
15
|
+
var TextDivider_default = /* @__PURE__ */ defineComponent({
|
|
16
|
+
__name: "TextDivider",
|
|
17
|
+
props: {
|
|
18
|
+
text: {},
|
|
19
|
+
position: { default: "left" },
|
|
20
|
+
type: { default: "solid" }
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
25
|
+
__props.position === "left" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.text), 1)) : createCommentVNode("", true),
|
|
26
|
+
createElementVNode("div", {
|
|
27
|
+
role: "separator",
|
|
28
|
+
class: normalizeClass(unref(cn)("grow border-0 border-t", __props.type === "dashed" && "border-dashed", __props.type === "dotted" && "border-dotted"))
|
|
29
|
+
}, null, 2),
|
|
30
|
+
__props.position === "right" ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.text), 1)) : createCommentVNode("", true)
|
|
31
|
+
]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
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,53 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, ref, renderSlot, unref, watch } from "vue";
|
|
3
|
+
import { useElementHover, useElementSize, useRafFn } from "@vueuse/core";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/common/TextTicker.vue
|
|
6
|
+
var TextTicker_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "TextTicker",
|
|
8
|
+
props: { speed: { default: 70 } },
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const containerRef = ref(null);
|
|
11
|
+
const isHovered = useElementHover(containerRef, { delayEnter: 350 });
|
|
12
|
+
const { width: containerWidth } = useElementSize(containerRef);
|
|
13
|
+
const isScrolling = ref(false);
|
|
14
|
+
let scrollStartTime = 0;
|
|
15
|
+
let overflowAmount = 0;
|
|
16
|
+
const { pause, resume } = useRafFn(({ timestamp }) => {
|
|
17
|
+
const el = containerRef.value;
|
|
18
|
+
if (!el || overflowAmount <= 0) return pause();
|
|
19
|
+
const elapsed = timestamp - scrollStartTime;
|
|
20
|
+
const duration = overflowAmount / __props.speed * 1e3;
|
|
21
|
+
const progress = Math.min(elapsed / duration, 1);
|
|
22
|
+
el.scrollLeft = overflowAmount * progress;
|
|
23
|
+
if (progress >= 1) pause();
|
|
24
|
+
}, { immediate: false });
|
|
25
|
+
function startScroll() {
|
|
26
|
+
const el = containerRef.value;
|
|
27
|
+
if (!el) return;
|
|
28
|
+
overflowAmount = el.scrollWidth - containerWidth.value;
|
|
29
|
+
if (overflowAmount <= 0) return;
|
|
30
|
+
isScrolling.value = true;
|
|
31
|
+
scrollStartTime = performance.now();
|
|
32
|
+
resume();
|
|
33
|
+
}
|
|
34
|
+
function stopScroll() {
|
|
35
|
+
pause();
|
|
36
|
+
if (containerRef.value) containerRef.value.scrollLeft = 0;
|
|
37
|
+
isScrolling.value = false;
|
|
38
|
+
}
|
|
39
|
+
watch(isHovered, (hovered) => {
|
|
40
|
+
if (hovered) startScroll();
|
|
41
|
+
else stopScroll();
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", {
|
|
45
|
+
ref_key: "containerRef",
|
|
46
|
+
ref: containerRef,
|
|
47
|
+
class: normalizeClass(unref(cn)("overflow-hidden whitespace-nowrap", !isScrolling.value && "text-ellipsis"))
|
|
48
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
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,54 @@
|
|
|
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
|
+
//#region 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
|
+
//#endregion
|
|
14
|
+
//#region src/components/common/TextTickerMultiLine.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var _hoisted_1 = ["textContent"];
|
|
16
|
+
var _hoisted_2 = { class: "flex w-full flex-col" };
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/common/TextTickerMultiLine.vue
|
|
19
|
+
var TextTickerMultiLine_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "TextTickerMultiLine",
|
|
21
|
+
props: { text: {} },
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const measureRef = useTemplateRef("measureRef");
|
|
24
|
+
const containerRef = useTemplateRef("containerRef");
|
|
25
|
+
const { width: textWidth } = useElementSize(measureRef);
|
|
26
|
+
const { width: containerWidth } = useElementSize(containerRef);
|
|
27
|
+
const lines = computed(() => {
|
|
28
|
+
if (!textWidth.value || !containerWidth.value) return [__props.text];
|
|
29
|
+
const safeRenderWidth = containerWidth.value - 30;
|
|
30
|
+
if (textWidth.value <= safeRenderWidth) return [__props.text];
|
|
31
|
+
return splitTextAtWordBoundary(__props.text, safeRenderWidth / textWidth.value);
|
|
32
|
+
});
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("div", {
|
|
35
|
+
ref_key: "containerRef",
|
|
36
|
+
ref: containerRef,
|
|
37
|
+
class: "w-full"
|
|
38
|
+
}, [createElementVNode("div", {
|
|
39
|
+
ref_key: "measureRef",
|
|
40
|
+
ref: measureRef,
|
|
41
|
+
class: "pointer-events-none invisible absolute inset-x-0 top-0 overflow-hidden whitespace-nowrap",
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
textContent: toDisplayString(__props.text)
|
|
44
|
+
}, null, 8, _hoisted_1), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, index) => {
|
|
45
|
+
return openBlock(), createBlock(MarqueeLine_default, { key: index }, {
|
|
46
|
+
default: withCtx(() => [createTextVNode(toDisplayString(line), 1)]),
|
|
47
|
+
_: 2
|
|
48
|
+
}, 1024);
|
|
49
|
+
}), 128))])], 512);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { TextTickerMultiLine_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,15 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "../shared/_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
2
|
+
import { createElementBlock, openBlock } from "vue";
|
|
3
|
+
//#region 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
|
+
//#endregion
|
|
15
|
+
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,141 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.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
|
+
//#region 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
|
+
//#endregion
|
|
19
|
+
//#region src/components/common/VideoCompareSlider.vue
|
|
20
|
+
var VideoCompareSlider_default = /* @__PURE__ */ defineComponent({
|
|
21
|
+
__name: "VideoCompareSlider",
|
|
22
|
+
props: {
|
|
23
|
+
baseSrc: {},
|
|
24
|
+
overlaySrc: {},
|
|
25
|
+
label: {},
|
|
26
|
+
baseMuted: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
overlayMuted: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
startPosition: { default: 50 }
|
|
35
|
+
},
|
|
36
|
+
setup(__props, { expose: __expose }) {
|
|
37
|
+
const root = useTemplateRef("root");
|
|
38
|
+
const baseVideo = useTemplateRef("baseVideo");
|
|
39
|
+
const overlayVideo = useTemplateRef("overlayVideo");
|
|
40
|
+
const position = ref(__props.startPosition);
|
|
41
|
+
function setPosition(value) {
|
|
42
|
+
position.value = Math.max(0, Math.min(100, value));
|
|
43
|
+
}
|
|
44
|
+
function positionFromPointer(event) {
|
|
45
|
+
const el = root.value;
|
|
46
|
+
if (!el) return;
|
|
47
|
+
const rect = el.getBoundingClientRect();
|
|
48
|
+
if (rect.width === 0) return;
|
|
49
|
+
setPosition((event.clientX - rect.left) / rect.width * 100);
|
|
50
|
+
}
|
|
51
|
+
const isDragging = ref(false);
|
|
52
|
+
useEventListener(root, "pointerdown", (event) => {
|
|
53
|
+
if (event.target.closest("button")) return;
|
|
54
|
+
isDragging.value = true;
|
|
55
|
+
root.value?.setPointerCapture(event.pointerId);
|
|
56
|
+
positionFromPointer(event);
|
|
57
|
+
});
|
|
58
|
+
useEventListener(root, "pointermove", (event) => {
|
|
59
|
+
if (isDragging.value) positionFromPointer(event);
|
|
60
|
+
});
|
|
61
|
+
function endDrag(event) {
|
|
62
|
+
isDragging.value = false;
|
|
63
|
+
root.value?.releasePointerCapture(event.pointerId);
|
|
64
|
+
}
|
|
65
|
+
useEventListener(root, "pointerup", endDrag);
|
|
66
|
+
useEventListener(root, "pointercancel", endDrag);
|
|
67
|
+
const reducedMotion = usePreferredReducedMotion();
|
|
68
|
+
const motionAllowed = computed(() => reducedMotion.value !== "reduce");
|
|
69
|
+
watchEffect(() => {
|
|
70
|
+
if (motionAllowed.value) return;
|
|
71
|
+
baseVideo.value?.pause();
|
|
72
|
+
overlayVideo.value?.pause();
|
|
73
|
+
});
|
|
74
|
+
function onKeydown(event) {
|
|
75
|
+
if (event.key === "ArrowLeft") setPosition(position.value - KEY_STEP);
|
|
76
|
+
else if (event.key === "ArrowRight") setPosition(position.value + KEY_STEP);
|
|
77
|
+
else if (event.key === "Home") setPosition(0);
|
|
78
|
+
else if (event.key === "End") setPosition(100);
|
|
79
|
+
else return;
|
|
80
|
+
event.preventDefault();
|
|
81
|
+
}
|
|
82
|
+
function syncPlayback() {
|
|
83
|
+
if (baseVideo.value && overlayVideo.value) overlayVideo.value.currentTime = baseVideo.value.currentTime;
|
|
84
|
+
}
|
|
85
|
+
__expose({ syncPlayback });
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return openBlock(), createElementBlock("div", {
|
|
88
|
+
ref_key: "root",
|
|
89
|
+
ref: root,
|
|
90
|
+
class: normalizeClass(unref(cn)("relative touch-none overflow-hidden select-none", isDragging.value ? "cursor-grabbing" : "cursor-grab")),
|
|
91
|
+
role: "group",
|
|
92
|
+
"aria-label": __props.label
|
|
93
|
+
}, [
|
|
94
|
+
createElementVNode("video", {
|
|
95
|
+
ref_key: "baseVideo",
|
|
96
|
+
ref: baseVideo,
|
|
97
|
+
src: __props.baseSrc,
|
|
98
|
+
class: "pointer-events-none absolute inset-0 size-full object-cover",
|
|
99
|
+
muted: __props.baseMuted,
|
|
100
|
+
autoplay: motionAllowed.value,
|
|
101
|
+
loop: "",
|
|
102
|
+
playsinline: "",
|
|
103
|
+
"aria-hidden": "true",
|
|
104
|
+
"data-testid": "compare-clip"
|
|
105
|
+
}, null, 8, _hoisted_2),
|
|
106
|
+
createElementVNode("div", {
|
|
107
|
+
class: "absolute inset-0 overflow-hidden",
|
|
108
|
+
style: normalizeStyle({ clipPath: `inset(0 ${100 - position.value}% 0 0)` })
|
|
109
|
+
}, [createElementVNode("video", {
|
|
110
|
+
ref_key: "overlayVideo",
|
|
111
|
+
ref: overlayVideo,
|
|
112
|
+
src: __props.overlaySrc,
|
|
113
|
+
class: "pointer-events-none absolute inset-0 size-full object-cover",
|
|
114
|
+
muted: __props.overlayMuted,
|
|
115
|
+
autoplay: motionAllowed.value,
|
|
116
|
+
loop: "",
|
|
117
|
+
playsinline: "",
|
|
118
|
+
"aria-hidden": "true",
|
|
119
|
+
"data-testid": "compare-clip"
|
|
120
|
+
}, null, 8, _hoisted_3)], 4),
|
|
121
|
+
createElementVNode("div", {
|
|
122
|
+
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",
|
|
123
|
+
style: normalizeStyle({ left: `${position.value}%` }),
|
|
124
|
+
role: "slider",
|
|
125
|
+
tabindex: "0",
|
|
126
|
+
"aria-label": __props.label,
|
|
127
|
+
"aria-valuemin": "0",
|
|
128
|
+
"aria-valuemax": "100",
|
|
129
|
+
"aria-valuenow": Math.round(position.value),
|
|
130
|
+
onKeydown
|
|
131
|
+
}, [..._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", {
|
|
132
|
+
class: "icon-[lucide--chevrons-left-right] size-3.5 text-black",
|
|
133
|
+
"aria-hidden": "true"
|
|
134
|
+
})], -1)])], 44, _hoisted_4),
|
|
135
|
+
renderSlot(_ctx.$slots, "default")
|
|
136
|
+
], 10, _hoisted_1);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
//#endregion
|
|
141
|
+
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
|
+
};
|