@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,47 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectIcon, SelectTrigger } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/select/SelectTrigger.vue
|
|
6
|
+
var SelectTrigger_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SelectTrigger",
|
|
8
|
+
props: {
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
reference: {},
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
size: { default: "lg" },
|
|
21
|
+
invalid: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const restProps = createPropsRestProxy(__props, [
|
|
28
|
+
"class",
|
|
29
|
+
"size",
|
|
30
|
+
"invalid"
|
|
31
|
+
]);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(SelectTrigger), mergeProps(restProps, {
|
|
34
|
+
"aria-invalid": __props.invalid || void 0,
|
|
35
|
+
class: unref(cn)("flex w-full cursor-pointer items-center justify-between select-none", __props.size === "md" ? "h-8 px-3 py-1 text-xs" : "h-10 px-4 py-2 text-sm", "rounded-lg", "bg-secondary text-foreground", "transition-all duration-200 ease-in-out", "hover:bg-accent", "border-[2.5px] border-solid", __props.invalid ? "border-destructive" : "border-transparent focus:border-border", "focus:outline-none", "data-placeholder:text-muted-foreground", "disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-secondary", "[&>span]:truncate", __props.class)
|
|
36
|
+
}), {
|
|
37
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createVNode(unref(SelectIcon), { "as-child": "" }, {
|
|
38
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "icon-[lucide--chevron-down] text-muted-foreground" }, null, -1)])]),
|
|
39
|
+
_: 1
|
|
40
|
+
})]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 16, ["aria-invalid", "class"]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { SelectTrigger_default as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectValue } from "reka-ui";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/select/SelectValue.vue
|
|
5
|
+
var SelectValue_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "SelectValue",
|
|
7
|
+
props: {
|
|
8
|
+
placeholder: {},
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(unref(SelectValue), normalizeProps(guardReactiveProps(props)), {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
}, 16);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SelectValue_default as t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, withCtx } from "vue";
|
|
3
|
+
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
4
|
+
//#region src/components/switch/Switch.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = { class: "pointer-events-none inline-flex h-5 w-9 items-center rounded-full border border-transparent bg-border px-0.5 transition-colors group-data-[state=checked]:bg-primary" };
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/switch/Switch.vue
|
|
8
|
+
var Switch_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "Switch",
|
|
10
|
+
props: /*@__PURE__*/ mergeModels({
|
|
11
|
+
class: {
|
|
12
|
+
type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
],
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
readonly: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
"modelValue": {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
"modelModifiers": {}
|
|
35
|
+
}),
|
|
36
|
+
emits: ["update:modelValue"],
|
|
37
|
+
setup(__props) {
|
|
38
|
+
const modelValue = useModel(__props, "modelValue");
|
|
39
|
+
function updateModelValue(value) {
|
|
40
|
+
if (__props.readonly) return;
|
|
41
|
+
modelValue.value = value;
|
|
42
|
+
}
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createBlock(unref(SwitchRoot), {
|
|
45
|
+
"model-value": modelValue.value,
|
|
46
|
+
disabled: __props.disabled,
|
|
47
|
+
"aria-readonly": __props.readonly || void 0,
|
|
48
|
+
class: normalizeClass(unref(cn)("group inline-flex h-6 w-10 shrink-0 cursor-pointer touch-manipulation items-center justify-center rounded-full border-0 bg-transparent p-0 transition-shadow outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-readonly:cursor-default", __props.class)),
|
|
49
|
+
"onUpdate:modelValue": updateModelValue
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1, [createVNode(unref(SwitchThumb), { class: "pointer-events-none block size-4 rounded-full bg-background shadow-sm transition-transform data-[state=checked]:translate-x-3.5 data-[state=unchecked]:translate-x-0" })])]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, [
|
|
54
|
+
"model-value",
|
|
55
|
+
"disabled",
|
|
56
|
+
"aria-readonly",
|
|
57
|
+
"class"
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { Switch_default as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/table/TableHead.vue
|
|
5
|
+
var TableHead_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "TableHead",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("th", {
|
|
17
|
+
scope: "col",
|
|
18
|
+
class: normalizeClass(unref(cn)("h-10 px-2 text-left align-middle font-normal whitespace-nowrap text-muted-foreground", __props.class))
|
|
19
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { TableHead_default as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { t as Button_default } from "./Button-CilmsOkY.js";
|
|
3
|
+
import { t as tagRemoveButtonVariants } from "./tag.variants-CCqCn8Jc.js";
|
|
4
|
+
import { createBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/chip/TagRemoveButton.vue
|
|
7
|
+
var TagRemoveButton_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "TagRemoveButton",
|
|
9
|
+
props: {
|
|
10
|
+
tooltip: {},
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Button_default), {
|
|
22
|
+
tooltip: __props.tooltip,
|
|
23
|
+
type: "button",
|
|
24
|
+
variant: "textonly",
|
|
25
|
+
size: "icon-sm",
|
|
26
|
+
class: normalizeClass(unref(cn)(unref(tagRemoveButtonVariants)(), "opacity-60", __props.class))
|
|
27
|
+
}, {
|
|
28
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", {
|
|
29
|
+
class: "icon-[lucide--x]",
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}, null, -1))])]),
|
|
32
|
+
_: 3
|
|
33
|
+
}, 8, ["tooltip", "class"]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { TagRemoveButton_default as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as Tooltip_default } from "./Tooltip-DbXyHv20.js";
|
|
2
|
+
import { t as TooltipContent_default } from "./TooltipContent-Bju-U7gc.js";
|
|
3
|
+
import { t as TooltipTrigger_default } from "./TooltipTrigger-CVwISmWo.js";
|
|
4
|
+
import { createBlock, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/tooltip/TextTooltip.vue
|
|
7
|
+
var TextTooltip_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "TextTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
side: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(Tooltip_default, { disabled: !__props.text }, {
|
|
16
|
+
default: withCtx(() => [createVNode(TooltipTrigger_default, { "as-child": "" }, {
|
|
17
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
18
|
+
_: 3
|
|
19
|
+
}), createVNode(TooltipContent_default, { side: __props.side }, {
|
|
20
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 8, ["side"])]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["disabled"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { TextTooltip_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as tooltipOpenOnClickKey } from "./tooltipContext-BL5JtM0i.js";
|
|
2
|
+
import { createBlock, createPropsRestProxy, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, provide, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { TooltipRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/tooltip/Tooltip.vue
|
|
6
|
+
var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "Tooltip",
|
|
8
|
+
props: {
|
|
9
|
+
defaultOpen: { type: Boolean },
|
|
10
|
+
open: { type: Boolean },
|
|
11
|
+
delayDuration: {},
|
|
12
|
+
disableClosingTrigger: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
15
|
+
openOnClick: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:open"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const props = createPropsRestProxy(__props, ["disableClosingTrigger", "openOnClick"]);
|
|
23
|
+
const forwarded = useForwardPropsEmits(props, __emit);
|
|
24
|
+
provide(tooltipOpenOnClickKey, () => __props.openOnClick);
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(TooltipRoot), mergeProps(unref(forwarded), { "disable-closing-trigger": __props.openOnClick || __props.disableClosingTrigger || void 0 }), {
|
|
27
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["disable-closing-trigger"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Tooltip_default as t };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as cn } from "./src-CnJ6AzLP.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createPropsRestProxy, createVNode, defineComponent, mergeProps, onUpdated, openBlock, ref, renderSlot, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
3
|
+
import { TooltipArrow, TooltipContent, TooltipPortal, injectTooltipRootContext, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
//#region src/components/tooltip/TooltipContent.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = { class: "pointer-events-none" };
|
|
6
|
+
var _hoisted_2 = {
|
|
7
|
+
ref: "text",
|
|
8
|
+
"data-testid": "tooltip-text"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/tooltip/TooltipContent.vue
|
|
12
|
+
var TooltipContent_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
__name: "TooltipContent",
|
|
15
|
+
props: {
|
|
16
|
+
forceMount: { type: Boolean },
|
|
17
|
+
ariaLabel: {},
|
|
18
|
+
asChild: { type: Boolean },
|
|
19
|
+
as: {},
|
|
20
|
+
side: {},
|
|
21
|
+
sideOffset: { default: 4 },
|
|
22
|
+
align: {},
|
|
23
|
+
alignOffset: {},
|
|
24
|
+
avoidCollisions: { type: Boolean },
|
|
25
|
+
collisionBoundary: {},
|
|
26
|
+
collisionPadding: { default: 8 },
|
|
27
|
+
arrowPadding: {},
|
|
28
|
+
sticky: {},
|
|
29
|
+
hideWhenDetached: { type: Boolean },
|
|
30
|
+
positionStrategy: {},
|
|
31
|
+
updatePositionStrategy: {},
|
|
32
|
+
class: { type: [
|
|
33
|
+
Boolean,
|
|
34
|
+
null,
|
|
35
|
+
String,
|
|
36
|
+
Object,
|
|
37
|
+
Array
|
|
38
|
+
] }
|
|
39
|
+
},
|
|
40
|
+
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
41
|
+
setup(__props, { emit: __emit }) {
|
|
42
|
+
const restProps = createPropsRestProxy(__props, [
|
|
43
|
+
"class",
|
|
44
|
+
"sideOffset",
|
|
45
|
+
"collisionPadding"
|
|
46
|
+
]);
|
|
47
|
+
const emits = __emit;
|
|
48
|
+
const rootContext = injectTooltipRootContext();
|
|
49
|
+
const textElement = useTemplateRef("text");
|
|
50
|
+
const repeatsTriggerName = ref(false);
|
|
51
|
+
function normalizedText(text) {
|
|
52
|
+
return text?.replace(/\s+/g, " ").trim() ?? "";
|
|
53
|
+
}
|
|
54
|
+
function syncRepeatsTriggerName() {
|
|
55
|
+
const trigger = rootContext.trigger.value;
|
|
56
|
+
const text = normalizedText(textElement.value?.textContent);
|
|
57
|
+
repeatsTriggerName.value = !!trigger && text !== "" && normalizedText(trigger.getAttribute("aria-label") ?? trigger.textContent) === text;
|
|
58
|
+
}
|
|
59
|
+
watch(textElement, syncRepeatsTriggerName, { flush: "post" });
|
|
60
|
+
onUpdated(syncRepeatsTriggerName);
|
|
61
|
+
const forwarded = useForwardPropsEmits(computed(() => ({
|
|
62
|
+
sideOffset: __props.sideOffset,
|
|
63
|
+
collisionPadding: __props.collisionPadding,
|
|
64
|
+
...restProps
|
|
65
|
+
})), emits);
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return unref(rootContext).open.value ? (openBlock(), createBlock(unref(TooltipPortal), { key: 0 }, {
|
|
68
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(TooltipContent), mergeProps({
|
|
69
|
+
...unref(forwarded),
|
|
70
|
+
..._ctx.$attrs
|
|
71
|
+
}, {
|
|
72
|
+
"aria-label": restProps.ariaLabel ?? (repeatsTriggerName.value ? " " : void 0),
|
|
73
|
+
"data-slot": "tooltip-content",
|
|
74
|
+
"data-testid": "tooltip-content",
|
|
75
|
+
class: unref(cn)("z-overlay max-w-96 rounded-md border bg-background px-3 py-2 text-xs/tight whitespace-pre-line text-foreground shadow-md", __props.class),
|
|
76
|
+
onEscapeKeyDown: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onClose())
|
|
77
|
+
}), {
|
|
78
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")], 512), createVNode(unref(TooltipArrow), {
|
|
79
|
+
width: 10,
|
|
80
|
+
height: 5,
|
|
81
|
+
class: "-mt-px fill-background stroke-border"
|
|
82
|
+
})]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 16, ["aria-label", "class"])])]),
|
|
85
|
+
_: 3
|
|
86
|
+
})) : createCommentVNode("", true);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
91
|
+
export { TooltipContent_default as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as tooltipOpenOnClickKey } from "./tooltipContext-BL5JtM0i.js";
|
|
2
|
+
import { createBlock, defineComponent, inject, mergeProps, onBeforeUnmount, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
3
|
+
import { TooltipTrigger, injectTooltipProviderContext, injectTooltipRootContext, useForwardProps } from "reka-ui";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/tooltip/TooltipTrigger.vue
|
|
6
|
+
var TooltipTrigger_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "TooltipTrigger",
|
|
8
|
+
props: {
|
|
9
|
+
reference: {},
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const forwarded = useForwardProps(__props);
|
|
15
|
+
const rootContext = injectTooltipRootContext();
|
|
16
|
+
const providerContext = injectTooltipProviderContext();
|
|
17
|
+
const openOnClick = inject(tooltipOpenOnClickKey, () => false);
|
|
18
|
+
const hovered = ref(false);
|
|
19
|
+
let buttonsHeld = false;
|
|
20
|
+
watch(rootContext.disabled, (disabled) => {
|
|
21
|
+
if (disabled) rootContext.onClose();
|
|
22
|
+
});
|
|
23
|
+
watch(rootContext.open, (open) => {
|
|
24
|
+
if (open && buttonsHeld) rootContext.onClose();
|
|
25
|
+
});
|
|
26
|
+
watch(() => hovered.value || rootContext.open.value, (active, _, onCleanup) => {
|
|
27
|
+
if (!active) return;
|
|
28
|
+
const close = () => rootContext.onClose();
|
|
29
|
+
window.addEventListener("wheel", close, {
|
|
30
|
+
capture: true,
|
|
31
|
+
passive: true
|
|
32
|
+
});
|
|
33
|
+
onCleanup(() => window.removeEventListener("wheel", close, { capture: true }));
|
|
34
|
+
});
|
|
35
|
+
onBeforeUnmount(() => {
|
|
36
|
+
if (rootContext.open.value) providerContext.onClose();
|
|
37
|
+
});
|
|
38
|
+
function trackButtons(event) {
|
|
39
|
+
buttonsHeld = event.buttons !== 0;
|
|
40
|
+
}
|
|
41
|
+
function openOnMouseEnter(event) {
|
|
42
|
+
hovered.value = true;
|
|
43
|
+
trackButtons(event);
|
|
44
|
+
if (buttonsHeld || rootContext.disabled.value) return;
|
|
45
|
+
rootContext.onTriggerEnter();
|
|
46
|
+
}
|
|
47
|
+
function openOnClickIfEnabled() {
|
|
48
|
+
if (openOnClick() && !rootContext.disabled.value) rootContext.onOpen();
|
|
49
|
+
}
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createBlock(unref(TooltipTrigger), mergeProps(unref(forwarded), {
|
|
52
|
+
onPointerenter: openOnMouseEnter,
|
|
53
|
+
onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = false),
|
|
54
|
+
onPointermove: trackButtons,
|
|
55
|
+
onPointerup: trackButtons,
|
|
56
|
+
onClick: openOnClickIfEnabled
|
|
57
|
+
}), {
|
|
58
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 16);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { TooltipTrigger_default as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region \0plugin-vue:export-helper
|
|
2
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) target[key] = val;
|
|
5
|
+
return target;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _plugin_vue_export_helper_default as t };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/components/search-input/searchInput.variants.ts
|
|
3
|
+
var searchInputVariants = cva({
|
|
4
|
+
base: "relative flex w-full cursor-text items-center rounded-lg bg-secondary text-foreground focus-within:ring-1 focus-within:ring-ring",
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
sm: "h-6 p-1",
|
|
8
|
+
md: "h-8 px-2 py-1.5",
|
|
9
|
+
lg: "h-10 p-2",
|
|
10
|
+
xl: "h-12 p-2"
|
|
11
|
+
},
|
|
12
|
+
invalid: { true: "ring-1 ring-destructive" }
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: { size: "md" }
|
|
15
|
+
});
|
|
16
|
+
var searchInputSizeConfig = {
|
|
17
|
+
sm: {
|
|
18
|
+
icon: "size-3",
|
|
19
|
+
iconPos: "left-2",
|
|
20
|
+
inputPl: "pl-6",
|
|
21
|
+
inputText: "text-xs",
|
|
22
|
+
clearPos: "left-1"
|
|
23
|
+
},
|
|
24
|
+
md: {
|
|
25
|
+
icon: "size-4",
|
|
26
|
+
iconPos: "left-3",
|
|
27
|
+
inputPl: "pl-7",
|
|
28
|
+
inputText: "text-xs",
|
|
29
|
+
clearPos: "left-2.5"
|
|
30
|
+
},
|
|
31
|
+
lg: {
|
|
32
|
+
icon: "size-4",
|
|
33
|
+
iconPos: "left-2.5",
|
|
34
|
+
inputPl: "pl-8",
|
|
35
|
+
inputText: "text-xs",
|
|
36
|
+
clearPos: "left-2.5"
|
|
37
|
+
},
|
|
38
|
+
xl: {
|
|
39
|
+
icon: "size-4",
|
|
40
|
+
iconPos: "left-2.5",
|
|
41
|
+
inputPl: "pl-8",
|
|
42
|
+
inputText: "text-xs",
|
|
43
|
+
clearPos: "left-2"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { searchInputVariants as n, searchInputSizeConfig as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/select.variants.ts
|
|
3
|
+
var selectTriggerVariants = cva({
|
|
4
|
+
base: "relative inline-flex cursor-pointer items-center rounded-lg border-[2.5px] border-solid bg-secondary text-foreground transition-all duration-200 ease-in-out outline-none select-none hover:bg-accent disabled:cursor-default disabled:opacity-30 disabled:hover:bg-secondary",
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
md: "h-8",
|
|
8
|
+
lg: "h-10"
|
|
9
|
+
},
|
|
10
|
+
border: {
|
|
11
|
+
none: "border-transparent focus-visible:border-border data-[state=open]:border-border",
|
|
12
|
+
active: "border-foreground",
|
|
13
|
+
invalid: "border-destructive"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: "lg",
|
|
18
|
+
border: "none"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
var selectItemVariants = cva({
|
|
22
|
+
base: "flex cursor-pointer items-center px-2 outline-none hover:bg-accent",
|
|
23
|
+
variants: { layout: {
|
|
24
|
+
multi: "h-10 shrink-0 gap-2 rounded-lg data-highlighted:bg-muted data-highlighted:hover:bg-muted",
|
|
25
|
+
single: "relative w-full justify-between gap-3 rounded-sm py-3 text-sm select-none focus:bg-accent data-[state=checked]:bg-muted data-[state=checked]:hover:bg-muted"
|
|
26
|
+
} },
|
|
27
|
+
defaultVariants: { layout: "multi" }
|
|
28
|
+
});
|
|
29
|
+
var selectContentClass = "z-overlay overflow-hidden rounded-lg p-2 bg-background text-foreground border border-solid shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2";
|
|
30
|
+
var selectDropdownClass = "flex shrink-0 cursor-pointer items-center justify-center pl-3 [&_i]:size-5";
|
|
31
|
+
var selectEmptyMessageClass = "px-3 pb-4 text-sm text-muted-foreground";
|
|
32
|
+
var selectCountBadgeClass = "flex size-3.5 items-center justify-center rounded-full bg-foreground text-[9px] font-semibold text-background";
|
|
33
|
+
function stopEscapeToDocument(event) {
|
|
34
|
+
if (event.key === "Escape") {
|
|
35
|
+
event.stopPropagation();
|
|
36
|
+
event.stopImmediatePropagation();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { selectItemVariants as a, selectEmptyMessageClass as i, selectCountBadgeClass as n, selectTriggerVariants as o, selectDropdownClass as r, stopEscapeToDocument as s, selectContentClass as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
|
+
//#region ../tailwind-utils/src/index.ts
|
|
4
|
+
var twMerge = extendTailwindMerge({ extend: { classGroups: {
|
|
5
|
+
"font-size": ["text-xxs", "text-xxxs"],
|
|
6
|
+
"max-h": [{ "max-h": ["none"] }]
|
|
7
|
+
} } });
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return twMerge(clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { cn as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/components/tabs/tabs.variants.ts
|
|
3
|
+
var tabsListVariants = cva({
|
|
4
|
+
base: "inline-flex items-center gap-2",
|
|
5
|
+
variants: { variant: {
|
|
6
|
+
default: "",
|
|
7
|
+
bordered: "gap-1 border-b",
|
|
8
|
+
panel: "border-b border-solid bg-transparent py-2",
|
|
9
|
+
flush: "gap-0"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { variant: "default" }
|
|
12
|
+
});
|
|
13
|
+
var tabsTriggerVariants = cva({
|
|
14
|
+
base: "inline-flex h-8 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg border-none bg-transparent px-2.5 text-sm whitespace-nowrap text-muted-foreground transition-all duration-200 outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-secondary data-[state=active]:text-foreground data-[state=inactive]:hover:bg-secondary/50",
|
|
15
|
+
variants: { variant: {
|
|
16
|
+
default: "",
|
|
17
|
+
panel: "m-1 mx-2 p-3",
|
|
18
|
+
flush: "h-auto rounded-none px-4 py-2 font-medium data-[state=active]:bg-transparent"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { variant: "default" }
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { tabsTriggerVariants as n, tabsListVariants as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/tag.variants.ts
|
|
3
|
+
var tagVariants = cva({
|
|
4
|
+
base: "inline-flex h-6 max-w-full shrink-0 items-center justify-center gap-1 text-xs ring-offset-background backdrop-blur-sm data-[selected=true]:ring-2 data-[selected=true]:ring-foreground data-[selected=true]:ring-offset-1 data-[state=active]:ring-2 data-[state=active]:ring-foreground data-[state=active]:ring-offset-1 [&.ProseMirror-selectednode]:ring-2 [&.ProseMirror-selectednode]:ring-foreground [&.ProseMirror-selectednode]:ring-offset-1",
|
|
5
|
+
variants: {
|
|
6
|
+
shape: {
|
|
7
|
+
square: "rounded-sm bg-muted",
|
|
8
|
+
rounded: "rounded-full bg-secondary",
|
|
9
|
+
overlay: "rounded-sm bg-zinc-500/40 text-white/90"
|
|
10
|
+
},
|
|
11
|
+
state: {
|
|
12
|
+
default: "text-foreground",
|
|
13
|
+
unselected: "text-muted-foreground opacity-70",
|
|
14
|
+
selected: "text-foreground"
|
|
15
|
+
},
|
|
16
|
+
removable: {
|
|
17
|
+
true: "py-1 pr-1 pl-2",
|
|
18
|
+
false: "px-2 py-1"
|
|
19
|
+
},
|
|
20
|
+
interactive: {
|
|
21
|
+
true: "cursor-pointer transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-1 hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
|
|
22
|
+
false: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
shape: "square",
|
|
27
|
+
state: "default",
|
|
28
|
+
removable: false,
|
|
29
|
+
interactive: false
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
var tagRemoveButtonVariants = cva({ base: "w-4 overflow-hidden transition-[opacity,width] duration-150 hover:bg-transparent hover:opacity-100 data-disabled:pointer-events-none data-disabled:w-0 data-disabled:opacity-0" });
|
|
33
|
+
//#endregion
|
|
34
|
+
export { tagVariants as n, tagRemoveButtonVariants as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
//#region src/components/toggle-group/toggleGroup.variants.ts
|
|
3
|
+
var toggleGroupVariantKey = Symbol("toggleGroupVariant");
|
|
4
|
+
var toggleGroupVariants = cva({
|
|
5
|
+
base: "flex items-center justify-center gap-1",
|
|
6
|
+
variants: { variant: {
|
|
7
|
+
default: "bg-transparent",
|
|
8
|
+
outline: "bg-transparent"
|
|
9
|
+
} },
|
|
10
|
+
defaultVariants: { variant: "default" }
|
|
11
|
+
});
|
|
12
|
+
var toggleGroupItemVariants = cva({
|
|
13
|
+
base: [
|
|
14
|
+
"inline-flex items-center justify-center rounded-sm",
|
|
15
|
+
"cursor-pointer appearance-none border-none",
|
|
16
|
+
"text-center font-normal",
|
|
17
|
+
"transition-all duration-150 ease-in-out",
|
|
18
|
+
"focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none",
|
|
19
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
20
|
+
"data-[state=on]:bg-secondary data-[state=on]:text-foreground"
|
|
21
|
+
],
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
default: "bg-transparent text-muted-foreground hover:bg-secondary/50",
|
|
25
|
+
outline: "border bg-transparent text-muted-foreground hover:bg-secondary"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-7 px-3 text-sm",
|
|
29
|
+
sm: "h-6 px-5 py-[5px] text-xs",
|
|
30
|
+
lg: "h-9 px-4 text-sm"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default",
|
|
35
|
+
size: "default"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { toggleGroupVariantKey as n, toggleGroupVariants as r, toggleGroupItemVariants as t };
|