@comfyorg/design-system 1.0.1 → 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 -9
- 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 +167 -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 +43 -0
- 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 +109 -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/icons/comfy-cloud.svg +4 -0
- package/src/icons/comfy-logo.svg +2 -2
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
- package/src/workspaceAvatar.ts +54 -0
- package/src/icons/credits.svg +0 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, unref, withModifiers } from "vue";
|
|
3
|
+
//#region 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
|
+
//#endregion
|
|
10
|
+
//#region src/components/common/ViewportWidgetShell.vue
|
|
11
|
+
var ViewportWidgetShell_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "ViewportWidgetShell",
|
|
13
|
+
props: { bottomClass: {} },
|
|
14
|
+
emits: ["mouseenter", "mouseleave"],
|
|
15
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const container = ref(null);
|
|
18
|
+
const toolbar = ref(null);
|
|
19
|
+
function focusContainer() {
|
|
20
|
+
container.value?.focus();
|
|
21
|
+
}
|
|
22
|
+
__expose({
|
|
23
|
+
container,
|
|
24
|
+
toolbar
|
|
25
|
+
});
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createElementBlock("div", {
|
|
28
|
+
class: "relative size-full min-h-[300px]",
|
|
29
|
+
onPointerdown: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"])),
|
|
30
|
+
onMousedown: _cache[6] || (_cache[6] = withModifiers(() => {}, ["stop"]))
|
|
31
|
+
}, [
|
|
32
|
+
createElementVNode("div", {
|
|
33
|
+
ref_key: "container",
|
|
34
|
+
ref: container,
|
|
35
|
+
class: "relative size-full",
|
|
36
|
+
"data-capture-wheel": "true",
|
|
37
|
+
tabindex: "-1",
|
|
38
|
+
onPointerdown: withModifiers(focusContainer, ["stop"]),
|
|
39
|
+
onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop", "prevent"])),
|
|
40
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => emit("mouseenter")),
|
|
41
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => emit("mouseleave"))
|
|
42
|
+
}, null, 544),
|
|
43
|
+
createElementVNode("div", _hoisted_1, [createElementVNode("div", {
|
|
44
|
+
ref_key: "toolbar",
|
|
45
|
+
ref: toolbar,
|
|
46
|
+
class: "pointer-events-auto flex h-10 items-center gap-1 bg-popover px-2",
|
|
47
|
+
onWheel: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
|
|
48
|
+
}, [renderSlot(_ctx.$slots, "top")], 544)]),
|
|
49
|
+
_ctx.$slots.bottom ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("div", {
|
|
50
|
+
class: normalizeClass(unref(cn)("pointer-events-auto flex h-10 items-center gap-1 bg-popover px-2", __props.bottomClass)),
|
|
51
|
+
onWheel: _cache[4] || (_cache[4] = withModifiers(() => {}, ["stop"]))
|
|
52
|
+
}, [renderSlot(_ctx.$slots, "bottom")], 34)])) : createCommentVNode("", true)
|
|
53
|
+
], 32);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ViewportWidgetShell_default as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
items: (T & {
|
|
5
|
+
key: string;
|
|
6
|
+
})[];
|
|
7
|
+
gridStyle: CSSProperties;
|
|
8
|
+
bufferRows?: number;
|
|
9
|
+
resizeDebounce?: number;
|
|
10
|
+
defaultItemHeight?: number;
|
|
11
|
+
defaultItemWidth?: number;
|
|
12
|
+
maxColumns?: number;
|
|
13
|
+
onLoadMore?: () => unknown;
|
|
14
|
+
canLoadMore?: boolean;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {
|
|
21
|
+
item?: (props: {
|
|
22
|
+
item: T & {
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
index: number;
|
|
26
|
+
}) => any;
|
|
27
|
+
};
|
|
28
|
+
emit: {};
|
|
29
|
+
}>) => import('vue').VNode & {
|
|
30
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} : {
|
|
37
|
+
[K in keyof T as K]: T[K];
|
|
38
|
+
}) & {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, watch } from "vue";
|
|
2
|
+
import { useElementSize, useInfiniteScroll, useScroll, whenever } from "@vueuse/core";
|
|
3
|
+
import { clamp, debounce } from "es-toolkit/compat";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/common/VirtualGrid.vue
|
|
6
|
+
var VirtualGrid_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "VirtualGrid",
|
|
8
|
+
props: {
|
|
9
|
+
items: {},
|
|
10
|
+
gridStyle: {},
|
|
11
|
+
bufferRows: { default: 1 },
|
|
12
|
+
resizeDebounce: { default: 64 },
|
|
13
|
+
defaultItemHeight: { default: 200 },
|
|
14
|
+
defaultItemWidth: { default: 200 },
|
|
15
|
+
maxColumns: { default: () => Infinity },
|
|
16
|
+
onLoadMore: { type: Function },
|
|
17
|
+
canLoadMore: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const itemHeight = ref(__props.defaultItemHeight);
|
|
24
|
+
const itemWidth = ref(__props.defaultItemWidth);
|
|
25
|
+
const container = ref(null);
|
|
26
|
+
const { width, height } = useElementSize(container);
|
|
27
|
+
const { y: scrollY } = useScroll(container, { eventListenerOptions: { passive: true } });
|
|
28
|
+
const cols = computed(() => {
|
|
29
|
+
if (__props.maxColumns !== Infinity) return __props.maxColumns;
|
|
30
|
+
return Math.floor(width.value / itemWidth.value) || 1;
|
|
31
|
+
});
|
|
32
|
+
const mergedGridStyle = computed(() => {
|
|
33
|
+
if (__props.maxColumns === Infinity) return __props.gridStyle;
|
|
34
|
+
return {
|
|
35
|
+
...__props.gridStyle,
|
|
36
|
+
gridTemplateColumns: `repeat(${__props.maxColumns}, minmax(0, 1fr))`
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
const viewRows = computed(() => Math.ceil(height.value / itemHeight.value));
|
|
40
|
+
const offsetRows = computed(() => Math.floor(scrollY.value / itemHeight.value));
|
|
41
|
+
const isValidGrid = computed(() => height.value && width.value && __props.items?.length);
|
|
42
|
+
const state = computed(() => {
|
|
43
|
+
const fromRow = offsetRows.value - __props.bufferRows;
|
|
44
|
+
const toRow = offsetRows.value + __props.bufferRows + viewRows.value;
|
|
45
|
+
const fromCol = fromRow * cols.value;
|
|
46
|
+
const toCol = toRow * cols.value;
|
|
47
|
+
const total = __props.items?.length ?? 0;
|
|
48
|
+
const windowSize = Math.max(toCol - fromCol, 0);
|
|
49
|
+
const end = clamp(toCol, 0, total);
|
|
50
|
+
let start = clamp(fromCol, 0, end);
|
|
51
|
+
if (start === end && total > 0) start = Math.max(0, end - windowSize);
|
|
52
|
+
return {
|
|
53
|
+
start,
|
|
54
|
+
end
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
const renderedItems = computed(() => isValidGrid.value ? __props.items.slice(state.value.start, state.value.end) : []);
|
|
58
|
+
function rowsToHeight(itemsCount) {
|
|
59
|
+
return `${Math.ceil(itemsCount / cols.value) * itemHeight.value}px`;
|
|
60
|
+
}
|
|
61
|
+
const topSpacerStyle = computed(() => ({ height: rowsToHeight(state.value.start) }));
|
|
62
|
+
const bottomSpacerStyle = computed(() => ({ height: rowsToHeight(__props.items.length - state.value.end) }));
|
|
63
|
+
const distance = 2 * __props.defaultItemHeight * (1 + __props.bufferRows);
|
|
64
|
+
useInfiniteScroll(container, async () => {
|
|
65
|
+
await __props.onLoadMore?.();
|
|
66
|
+
}, {
|
|
67
|
+
canLoadMore: () => __props.canLoadMore,
|
|
68
|
+
distance
|
|
69
|
+
});
|
|
70
|
+
function updateItemSize() {
|
|
71
|
+
if (container.value) {
|
|
72
|
+
const firstItem = container.value.querySelector("[data-virtual-grid-item]");
|
|
73
|
+
if (!firstItem?.clientHeight || !firstItem?.clientWidth) return;
|
|
74
|
+
if (itemHeight.value !== firstItem.clientHeight) itemHeight.value = firstItem.clientHeight;
|
|
75
|
+
if (itemWidth.value !== firstItem.clientWidth) itemWidth.value = firstItem.clientWidth;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const onResize = debounce(updateItemSize, __props.resizeDebounce);
|
|
79
|
+
watch([width, height], onResize, { flush: "post" });
|
|
80
|
+
watch(() => __props.gridStyle, updateItemSize, { flush: "post" });
|
|
81
|
+
whenever(() => __props.items, updateItemSize, { flush: "post" });
|
|
82
|
+
onBeforeUnmount(() => {
|
|
83
|
+
onResize.cancel();
|
|
84
|
+
});
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return openBlock(), createElementBlock("div", {
|
|
87
|
+
ref_key: "container",
|
|
88
|
+
ref: container,
|
|
89
|
+
class: "h-full scrollbar-thin scrollbar-thumb-(--muted) scrollbar-track-transparent scrollbar-gutter-stable overflow-y-auto [overflow-anchor:none]"
|
|
90
|
+
}, [
|
|
91
|
+
createElementVNode("div", { style: normalizeStyle(topSpacerStyle.value) }, null, 4),
|
|
92
|
+
createElementVNode("div", { style: normalizeStyle(mergedGridStyle.value) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(renderedItems.value, (item, i) => {
|
|
93
|
+
return openBlock(), createElementBlock("div", {
|
|
94
|
+
key: item.key,
|
|
95
|
+
"data-virtual-grid-item": ""
|
|
96
|
+
}, [renderSlot(_ctx.$slots, "item", {
|
|
97
|
+
item,
|
|
98
|
+
index: state.value.start + i
|
|
99
|
+
})]);
|
|
100
|
+
}), 128))], 4),
|
|
101
|
+
createElementVNode("div", { style: normalizeStyle(bottomSpacerStyle.value) }, null, 4)
|
|
102
|
+
], 512);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
export { VirtualGrid_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function splitTextAtWordBoundary(text: string, ratio: number): [string, string];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
.content-divider[data-v-dcb6a1f4] {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
border: none;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
position: relative;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
}
|
|
11
|
+
.content-divider--horizontal[data-v-dcb6a1f4] {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: var(--v5581bd6e);
|
|
14
|
+
}
|
|
15
|
+
.content-divider--vertical[data-v-dcb6a1f4] {
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: var(--v5581bd6e);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dot-animation[data-v-8e668792] {
|
|
21
|
+
animation: dot-pulse-8e668792 1s ease-in-out infinite;
|
|
22
|
+
}
|
|
23
|
+
@keyframes dot-pulse-8e668792 {
|
|
24
|
+
0%,
|
|
25
|
+
80%,
|
|
26
|
+
100% {
|
|
27
|
+
opacity: 0.3;
|
|
28
|
+
}
|
|
29
|
+
40% {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes marquee-scroll {
|
|
35
|
+
0%,
|
|
36
|
+
20% {
|
|
37
|
+
transform: translateX(0);
|
|
38
|
+
}
|
|
39
|
+
80%,
|
|
40
|
+
100% {
|
|
41
|
+
transform: translateX(var(--_marquee-end));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
/**
|
|
3
|
+
* Splits `class` out of `$attrs` so wrappers can merge it with `cn()` onto an
|
|
4
|
+
* inner element while the remaining attrs fall through untouched.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useAttrsClass(): {
|
|
7
|
+
attrsClass: import('vue').ComputedRef<ClassValue>;
|
|
8
|
+
attrsWithoutClass: import('vue').ComputedRef<{
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
style?: import('vue').StyleValue;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { computed, useAttrs } from "vue";
|
|
2
|
+
//#region src/components/composables/useAttrsClass.ts
|
|
3
|
+
/**
|
|
4
|
+
* Splits `class` out of `$attrs` so wrappers can merge it with `cn()` onto an
|
|
5
|
+
* inner element while the remaining attrs fall through untouched.
|
|
6
|
+
*/
|
|
7
|
+
function useAttrsClass() {
|
|
8
|
+
const attrs = useAttrs();
|
|
9
|
+
return {
|
|
10
|
+
attrsClass: computed(() => attrs.class),
|
|
11
|
+
attrsWithoutClass: computed(() => {
|
|
12
|
+
const { class: _class, ...rest } = attrs;
|
|
13
|
+
return rest;
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { useAttrsClass };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, ComputedRef } from 'vue';
|
|
2
|
+
interface PopoverSizeOptions {
|
|
3
|
+
minWidth?: string;
|
|
4
|
+
maxWidth?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Composable for managing popover sizing styles
|
|
8
|
+
* @param options Popover size configuration
|
|
9
|
+
* @returns Computed style object for popover sizing
|
|
10
|
+
*/
|
|
11
|
+
export declare function usePopoverSizing(options: PopoverSizeOptions): ComputedRef<CSSProperties>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
//#region src/components/composables/usePopoverSizing.ts
|
|
3
|
+
/**
|
|
4
|
+
* Composable for managing popover sizing styles
|
|
5
|
+
* @param options Popover size configuration
|
|
6
|
+
* @returns Computed style object for popover sizing
|
|
7
|
+
*/
|
|
8
|
+
function usePopoverSizing(options) {
|
|
9
|
+
return computed(() => {
|
|
10
|
+
const { minWidth, maxWidth } = options;
|
|
11
|
+
const style = {};
|
|
12
|
+
if (minWidth) style.minWidth = minWidth;
|
|
13
|
+
if (maxWidth) style.maxWidth = maxWidth;
|
|
14
|
+
return style;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { usePopoverSizing };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
promptText?: MaybeRefOrGetter<string>;
|
|
4
|
+
preserveNewlines?: boolean;
|
|
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,27 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, toValue, unref } from "vue";
|
|
3
|
+
//#region src/components/confirm/ConfirmBody.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "flex flex-col border-t p-4 text-sm/5 wrap-break-word text-muted-foreground" };
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/confirm/ConfirmBody.vue
|
|
7
|
+
var ConfirmBody_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "ConfirmBody",
|
|
9
|
+
props: {
|
|
10
|
+
promptText: {},
|
|
11
|
+
preserveNewlines: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const promptTextReal = computed(() => toValue(__props.promptText));
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [promptTextReal.value ? (openBlock(), createElementBlock("p", {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: normalizeClass(unref(cn)("m-0", __props.preserveNewlines && "whitespace-pre-line"))
|
|
22
|
+
}, toDisplayString(promptTextReal.value), 3)) : createCommentVNode("", true)]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ConfirmBody_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString } from "vue";
|
|
2
|
+
//#region src/components/confirm/ConfirmHeader.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var _hoisted_1 = { class: "flex items-center gap-2 p-4 text-sm font-normal" };
|
|
4
|
+
var _hoisted_2 = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "flex-auto"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/confirm/ConfirmHeader.vue
|
|
10
|
+
var ConfirmHeader_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "ConfirmHeader",
|
|
12
|
+
props: {
|
|
13
|
+
title: {},
|
|
14
|
+
icon: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [__props.icon ? (openBlock(), createElementBlock("i", {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: normalizeClass(__props.icon),
|
|
21
|
+
"aria-hidden": "true"
|
|
22
|
+
}, null, 2)) : createCommentVNode("", true), __props.title ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true)]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ConfirmHeader_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
fullHeight?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/content-card/CardBottom.vue
|
|
5
|
+
var CardBottom_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "CardBottom",
|
|
7
|
+
props: { fullHeight: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: true
|
|
10
|
+
} },
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const containerClasses = computed(() => cn("w-full flex-1", __props.fullHeight && "h-full"));
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(containerClasses.value) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { CardBottom_default as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: 'mini' | 'compact' | 'regular' | 'portrait' | 'tall' | 'auto';
|
|
3
|
+
variant?: 'default' | 'ghost' | 'outline';
|
|
4
|
+
rounded?: 'none' | 'md' | 'lg' | 'xl';
|
|
5
|
+
customAspectRatio?: string;
|
|
6
|
+
hasBorder?: boolean;
|
|
7
|
+
hasBackground?: boolean;
|
|
8
|
+
hasShadow?: boolean;
|
|
9
|
+
hasCursor?: boolean;
|
|
10
|
+
class?: string;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
top?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
bottom?: (props: typeof __VLS_3) => any;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#region src/components/content-card/CardContainer.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var structureClasses = "flex flex-col overflow-hidden";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/content-card/CardContainer.vue
|
|
7
|
+
var CardContainer_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "CardContainer",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: "regular" },
|
|
11
|
+
variant: { default: "default" },
|
|
12
|
+
rounded: { default: "md" },
|
|
13
|
+
customAspectRatio: {},
|
|
14
|
+
hasBorder: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
hasBackground: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true
|
|
21
|
+
},
|
|
22
|
+
hasShadow: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
},
|
|
26
|
+
hasCursor: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
class: { default: "" }
|
|
31
|
+
},
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const roundedClasses = {
|
|
34
|
+
none: "rounded-none",
|
|
35
|
+
md: "rounded",
|
|
36
|
+
lg: "rounded-lg",
|
|
37
|
+
xl: "rounded-xl"
|
|
38
|
+
};
|
|
39
|
+
const containerClasses = computed(() => {
|
|
40
|
+
const variantClasses = {
|
|
41
|
+
default: cn(__props.hasBackground && "bg-secondary", __props.hasBorder && "border border-border", __props.hasShadow && "shadow-sm", __props.hasCursor && "cursor-pointer"),
|
|
42
|
+
ghost: cn(__props.hasCursor && "cursor-pointer", "p-2 transition-colors duration-200"),
|
|
43
|
+
outline: cn(__props.hasBorder && "border-2 border-border/50", __props.hasCursor && "cursor-pointer", "transition-colors hover:border-border/25")
|
|
44
|
+
};
|
|
45
|
+
const aspectRatio = __props.customAspectRatio ? `aspect-[${__props.customAspectRatio}]` : {
|
|
46
|
+
mini: "aspect-100/120",
|
|
47
|
+
compact: "aspect-240/311",
|
|
48
|
+
regular: "aspect-256/308",
|
|
49
|
+
portrait: "aspect-256/325",
|
|
50
|
+
tall: "aspect-256/353",
|
|
51
|
+
auto: ""
|
|
52
|
+
}[__props.size];
|
|
53
|
+
return cn(structureClasses, roundedClasses[__props.rounded], variantClasses[__props.variant], aspectRatio, __props.class);
|
|
54
|
+
});
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(containerClasses.value) }, [renderSlot(_ctx.$slots, "top"), renderSlot(_ctx.$slots, "bottom")], 2);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { CardContainer_default as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
ratio?: 'square' | 'landscape';
|
|
3
|
+
topLeftClass?: string;
|
|
4
|
+
topRightClass?: string;
|
|
5
|
+
centerLeftClass?: string;
|
|
6
|
+
centerRightClass?: string;
|
|
7
|
+
bottomLeftClass?: string;
|
|
8
|
+
bottomRightClass?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {
|
|
11
|
+
class: string;
|
|
12
|
+
}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
'top-left'?: (props: typeof __VLS_3) => any;
|
|
17
|
+
} & {
|
|
18
|
+
'top-right'?: (props: typeof __VLS_5) => any;
|
|
19
|
+
} & {
|
|
20
|
+
'center-left'?: (props: typeof __VLS_7) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'center-right'?: (props: typeof __VLS_9) => any;
|
|
23
|
+
} & {
|
|
24
|
+
'bottom-left'?: (props: typeof __VLS_11) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'bottom-right'?: (props: typeof __VLS_13) => any;
|
|
27
|
+
};
|
|
28
|
+
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>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, useSlots } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/content-card/CardTop.vue
|
|
5
|
+
var CardTop_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "CardTop",
|
|
7
|
+
props: {
|
|
8
|
+
ratio: { default: "square" },
|
|
9
|
+
topLeftClass: {},
|
|
10
|
+
topRightClass: {},
|
|
11
|
+
centerLeftClass: {},
|
|
12
|
+
centerRightClass: {},
|
|
13
|
+
bottomLeftClass: {},
|
|
14
|
+
bottomRightClass: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const slots = useSlots();
|
|
18
|
+
const topStyle = computed(() => {
|
|
19
|
+
return `relative p-0 overflow-hidden ${{
|
|
20
|
+
square: "aspect-square",
|
|
21
|
+
landscape: "aspect-48/27"
|
|
22
|
+
}[__props.ratio]}`;
|
|
23
|
+
});
|
|
24
|
+
const defaultSlotClasses = {
|
|
25
|
+
"top-left": "absolute top-2 left-2 flex flex-wrap justify-start gap-2",
|
|
26
|
+
"top-right": "absolute top-2 right-2 flex flex-wrap justify-end gap-2",
|
|
27
|
+
"center-left": "absolute top-1/2 left-2 flex -translate-y-1/2 flex-wrap justify-start gap-2",
|
|
28
|
+
"center-right": "absolute top-1/2 right-2 flex -translate-y-1/2 flex-wrap justify-end gap-2",
|
|
29
|
+
"bottom-left": "absolute bottom-2 left-2 flex flex-wrap justify-start gap-2",
|
|
30
|
+
"bottom-right": "absolute right-2 bottom-2 flex flex-wrap justify-end gap-2"
|
|
31
|
+
};
|
|
32
|
+
const slotClasses = computed(() => ({
|
|
33
|
+
"top-left": cn(defaultSlotClasses["top-left"], __props.topLeftClass),
|
|
34
|
+
"top-right": cn(defaultSlotClasses["top-right"], __props.topRightClass),
|
|
35
|
+
"center-left": cn(defaultSlotClasses["center-left"], __props.centerLeftClass),
|
|
36
|
+
"center-right": cn(defaultSlotClasses["center-right"], __props.centerRightClass),
|
|
37
|
+
"bottom-left": cn(defaultSlotClasses["bottom-left"], __props.bottomLeftClass),
|
|
38
|
+
"bottom-right": cn(defaultSlotClasses["bottom-right"], __props.bottomRightClass)
|
|
39
|
+
}));
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(topStyle.value) }, [
|
|
42
|
+
renderSlot(_ctx.$slots, "default", { class: "absolute top-0 left-0 size-full" }),
|
|
43
|
+
unref(slots)["top-left"] ? (openBlock(), createElementBlock("div", {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: normalizeClass(slotClasses.value["top-left"])
|
|
46
|
+
}, [renderSlot(_ctx.$slots, "top-left")], 2)) : createCommentVNode("", true),
|
|
47
|
+
unref(slots)["top-right"] ? (openBlock(), createElementBlock("div", {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: normalizeClass(slotClasses.value["top-right"])
|
|
50
|
+
}, [renderSlot(_ctx.$slots, "top-right")], 2)) : createCommentVNode("", true),
|
|
51
|
+
unref(slots)["center-left"] ? (openBlock(), createElementBlock("div", {
|
|
52
|
+
key: 2,
|
|
53
|
+
class: normalizeClass(slotClasses.value["center-left"])
|
|
54
|
+
}, [renderSlot(_ctx.$slots, "center-left")], 2)) : createCommentVNode("", true),
|
|
55
|
+
unref(slots)["center-right"] ? (openBlock(), createElementBlock("div", {
|
|
56
|
+
key: 3,
|
|
57
|
+
class: normalizeClass(slotClasses.value["center-right"])
|
|
58
|
+
}, [renderSlot(_ctx.$slots, "center-right")], 2)) : createCommentVNode("", true),
|
|
59
|
+
unref(slots)["bottom-left"] ? (openBlock(), createElementBlock("div", {
|
|
60
|
+
key: 4,
|
|
61
|
+
class: normalizeClass(slotClasses.value["bottom-left"])
|
|
62
|
+
}, [renderSlot(_ctx.$slots, "bottom-left")], 2)) : createCommentVNode("", true),
|
|
63
|
+
unref(slots)["bottom-right"] ? (openBlock(), createElementBlock("div", {
|
|
64
|
+
key: 5,
|
|
65
|
+
class: normalizeClass(slotClasses.value["bottom-right"])
|
|
66
|
+
}, [renderSlot(_ctx.$slots, "bottom-right")], 2)) : createCommentVNode("", true)
|
|
67
|
+
], 2);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { CardTop_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DialogRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
close: () => void;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:open": (value: boolean) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
12
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|