@comfyorg/design-system 1.1.0 → 1.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -10
- package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
- package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +1 -0
- package/dist/badge/CreditBadge.vue.d.ts +6 -0
- package/dist/badge/CreditBadge.vue.js +21 -0
- package/dist/badge/badge.variants.d.ts +12 -0
- package/dist/button/Button.vue.d.ts +31 -0
- package/dist/button/Button.vue.js +1 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +35 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +13 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +1 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +1 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +1 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +55 -0
- package/dist/card/card.variants.d.ts +11 -0
- package/dist/chart/Chart.vue.d.ts +12 -0
- package/dist/chart/Chart.vue.js +177 -0
- package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +47 -0
- package/dist/chip/Tag.vue.d.ts +61 -0
- package/dist/chip/Tag.vue.js +71 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +1 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
- package/dist/color-picker/ColorPicker.vue.js +139 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
- package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
- package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
- package/dist/color-picker/types.d.ts +22 -0
- package/dist/color-picker/types.js +0 -0
- package/dist/color-picker/useColorPicker.d.ts +33 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +21 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +20 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +26 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +32 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +71 -0
- package/dist/common/HighlightedText.vue.d.ts +8 -0
- package/dist/common/HighlightedText.vue.js +49 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +39 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +91 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +11 -0
- package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
- package/dist/common/NoResultsPlaceholder.vue.js +49 -0
- package/dist/common/NotificationPopup.vue.d.ts +28 -0
- package/dist/common/NotificationPopup.vue.js +63 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +1 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +58 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +34 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +51 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +51 -0
- package/dist/common/UserAvatar.vue.d.ts +9 -0
- package/dist/common/UserAvatar.vue.js +45 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +14 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +139 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +56 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +105 -0
- package/dist/common/highlightQuery.d.ts +6 -0
- package/dist/common/textTickerUtils.d.ts +1 -0
- package/dist/components.css +44 -0
- package/dist/composables/useAttrsClass.d.ts +12 -0
- package/dist/composables/useAttrsClass.js +17 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +17 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +25 -0
- package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
- package/dist/confirm/ConfirmFooter.vue.js +53 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +25 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +17 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +59 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +70 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +23 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +1 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +1 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +31 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +22 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +22 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +25 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +1 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +53 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +1 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +1 -0
- package/dist/dialog/Dialogue.vue.d.ts +22 -0
- package/dist/dialog/Dialogue.vue.js +56 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +38 -0
- package/dist/dialog/types.d.ts +6 -0
- package/dist/dialog/types.js +0 -0
- package/dist/field/Field.vue.d.ts +19 -0
- package/dist/field/Field.vue.js +39 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +22 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +37 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +22 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +26 -0
- package/dist/field/FieldSwitch.vue.d.ts +16 -0
- package/dist/field/FieldSwitch.vue.js +43 -0
- package/dist/field/LayoutField.vue.d.ts +18 -0
- package/dist/field/LayoutField.vue.js +1 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +16 -0
- package/dist/field/field.variants.d.ts +11 -0
- package/dist/hover-card/HoverCard.vue.d.ts +18 -0
- package/dist/hover-card/HoverCard.vue.js +24 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +66 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +21 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +31 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +38 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +29 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +30 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +1 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +66 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +1 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +1 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +1 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +1 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +21 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +122 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +1 -0
- package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
- package/dist/layout/BaseModalLayout.vue.js +198 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +26 -0
- package/dist/media/ImageLightbox.vue.d.ts +17 -0
- package/dist/media/ImageLightbox.vue.js +76 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +17 -0
- package/dist/media/Video.vue.d.ts +28 -0
- package/dist/media/Video.vue.js +100 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +26 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +30 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +60 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +50 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +1 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +77 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +1 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +1 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +33 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +1 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +1 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +1 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +1 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +1 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +1 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +1 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +1 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +1 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +14 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +6 -0
- package/dist/menu/mouseDownUtil.d.ts +3 -0
- package/dist/menu/types.d.ts +69 -0
- package/dist/menu/types.js +0 -0
- package/dist/menu/usePointMenu.d.ts +19 -0
- package/dist/menu/usePointMenu.js +55 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +73 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +14 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +135 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +1 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +1 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
- package/dist/navigation/LeftSidePanel.vue.js +82 -0
- package/dist/navigation/NavIcon.vue.d.ts +7 -0
- package/dist/navigation/NavIcon.vue.js +1 -0
- package/dist/navigation/NavItem.vue.d.ts +21 -0
- package/dist/navigation/NavItem.vue.js +1 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +1 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +15 -0
- package/dist/navigation/types.d.ts +13 -0
- package/dist/navigation/types.js +0 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +73 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +33 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +33 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +23 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +54 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +138 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +1 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +12 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +43 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +40 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +102 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +232 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +125 -0
- package/dist/search-input/searchInput.variants.d.ts +45 -0
- package/dist/select/DropdownControl.vue.d.ts +16 -0
- package/dist/select/DropdownControl.vue.js +46 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +1 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +1 -0
- package/dist/select/SelectItem.vue.d.ts +22 -0
- package/dist/select/SelectItem.vue.js +1 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +1 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +1 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +1 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +1 -0
- package/dist/select/types.d.ts +4 -0
- package/dist/select/types.js +0 -0
- package/dist/select/useSelectSearch.d.ts +3 -0
- package/dist/select/useSelectSearch.js +14 -0
- package/dist/shared/Badge-DFHO3AFi.js +90 -0
- package/dist/shared/Button-Dj_H5v3V.js +138 -0
- package/dist/shared/Card-BrvqUM49.js +32 -0
- package/dist/shared/CardFooter-BV_I0pM-.js +19 -0
- package/dist/shared/CardHeader-CMutruBx.js +19 -0
- package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
- package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
- package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
- package/dist/shared/ContextMenuContent-RNyBBJOX.js +62 -0
- package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
- package/dist/shared/DialogContent-v2s55FXs.js +71 -0
- package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
- package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
- package/dist/shared/DialogTitle-Chomvpgq.js +41 -0
- package/dist/shared/Input-DOeNoniw.js +36 -0
- package/dist/shared/InputGroup-BYt6BWpk.js +23 -0
- package/dist/shared/InputGroupAddon-B1cn7czs.js +36 -0
- package/dist/shared/InputGroupButton-tw5AYOoR.js +39 -0
- package/dist/shared/InputGroupInput-C_kkIxvY.js +30 -0
- package/dist/shared/Label-kwhWNR2P.js +34 -0
- package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
- package/dist/shared/MenuAction-0z8BSoX9.js +121 -0
- package/dist/shared/MenuContent--tKCqaIO.js +78 -0
- package/dist/shared/MenuItemContent-Be658c7e.js +67 -0
- package/dist/shared/MenuItems-BZTlERd6.js +67 -0
- package/dist/shared/MenuRadioGroup-B28YS1p1.js +63 -0
- package/dist/shared/MenuRadioItem-D8DFu-KU.js +34 -0
- package/dist/shared/MenuSeparator-DrAiObmE.js +26 -0
- package/dist/shared/MenuSub-DSizq_fV.js +21 -0
- package/dist/shared/MenuSubContent-ghzkX4hX.js +67 -0
- package/dist/shared/MenuSubTrigger-BGRIm_Bf.js +33 -0
- package/dist/shared/MenuSubmenu-CjPf8DXl.js +41 -0
- package/dist/shared/MultiSelectContent-9xyBQKz3.js +160 -0
- package/dist/shared/MultiSelectTrigger-DNySkpH9.js +50 -0
- package/dist/shared/NavIcon-FTJH75HH.js +12 -0
- package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
- package/dist/shared/NavTitle-BM22yfCR.js +40 -0
- package/dist/shared/OverlayIcon-C-din824.js +43 -0
- package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
- package/dist/shared/SearchableSingleSelect-DQauLQWW.js +182 -0
- package/dist/shared/Select-DtVgv7Po.js +31 -0
- package/dist/shared/SelectContent-Ba1mCDWM.js +89 -0
- package/dist/shared/SelectItem-DaOr3TFS.js +55 -0
- package/dist/shared/SelectScrollDownButton-DYmxtida.js +28 -0
- package/dist/shared/SelectScrollUpButton-DiyvSb9O.js +28 -0
- package/dist/shared/SelectTrigger-BBicbVsI.js +45 -0
- package/dist/shared/SelectValue-BjaQc-WU.js +21 -0
- package/dist/shared/Switch-qavkHWMz.js +61 -0
- package/dist/shared/TableHead-DpsXVMzk.js +22 -0
- package/dist/shared/TagRemoveButton-D919R-To.js +36 -0
- package/dist/shared/TextTooltip-BNlZI515.js +27 -0
- package/dist/shared/Tooltip-4rCebVao.js +32 -0
- package/dist/shared/TooltipContent-0GR7hBNu.js +89 -0
- package/dist/shared/TooltipTrigger-64EIE5f2.js +63 -0
- package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
- package/dist/shared/_plugin-vue_export-helper-DjkACiAr.js +7 -0
- package/dist/shared/searchInput.variants-BdYHNjce.js +46 -0
- package/dist/shared/select.variants-cRXaATWS.js +39 -0
- package/dist/shared/src-DTwuqov4.js +11 -0
- package/dist/shared/tabKeys-CP6c3wTY.js +3 -0
- package/dist/shared/tabs.variants-Cgk7bRhG.js +22 -0
- package/dist/shared/tag.variants-BEXRRbPc.js +33 -0
- package/dist/shared/tagsInputContext-C-X1-iNf.js +4 -0
- package/dist/shared/toggleGroup.variants-BuwGELw0.js +38 -0
- package/dist/shared/tooltipContext-arEyjGQC.js +3 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +1 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +185 -0
- package/dist/single-select/types.d.ts +25 -0
- package/dist/single-select/types.js +0 -0
- package/dist/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/skeleton/Skeleton.vue.js +22 -0
- package/dist/slider/GradientSlider.vue.d.ts +20 -0
- package/dist/slider/GradientSlider.vue.js +100 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +86 -0
- package/dist/slider/gradients.d.ts +6 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +39 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +38 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +43 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +35 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +1 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +73 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +29 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +26 -0
- package/dist/tab/tab.variants.d.ts +9 -0
- package/dist/tab/tabKeys.d.ts +7 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/Table.vue.js +21 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +19 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +19 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +1 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +19 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +19 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +45 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +18 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +41 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +35 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +36 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +37 -0
- package/dist/tabs/tabs.variants.d.ts +21 -0
- package/dist/tags-input/TagsInput.vue.d.ts +32 -0
- package/dist/tags-input/TagsInput.vue.js +96 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +54 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +32 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +33 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +26 -0
- package/dist/tags-input/tagsInputContext.d.ts +4 -0
- package/dist/textarea/Textarea.vue.d.ts +17 -0
- package/dist/textarea/Textarea.vue.js +31 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +40 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +29 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +27 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +45 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +53 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +29 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +31 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +59 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +43 -0
- package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
- package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
- package/dist/tooltip/TextTooltip.vue.js +1 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +1 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +1 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +37 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +1 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +7 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +1 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +53 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +80 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +6 -0
- package/dist-types/button.variants.d.ts +16 -0
- package/dist-types/select.variants.d.ts +24 -0
- package/dist-types/tag.variants.d.ts +21 -0
- package/dist-types/workspaceAvatar.d.ts +5 -0
- package/package.json +186 -8
- package/src/button.variants.ts +84 -0
- package/src/css/_deprecated-aliases.css +12 -0
- package/src/css/_legacy-palette.css +33 -0
- package/src/css/_legacy-ui.css +418 -0
- package/src/css/_markdown.css +227 -0
- package/src/css/_mask-editor.css +179 -0
- package/src/css/_palette.css +40 -4
- package/src/css/base.css +0 -6
- package/src/css/component-support.css +69 -0
- package/src/css/iconSizing.test.ts +80 -0
- package/src/css/iconifyDynamicPlugin.ts +15 -6
- package/src/css/icons.test.ts +17 -0
- package/src/css/lucideStrokePlugin.js +5 -6
- package/src/css/published.css +3 -0
- package/src/css/style.css +5 -1909
- package/src/css/theme.css +243 -0
- package/src/css/themes/void.css +102 -0
- package/src/icons/README.md +61 -97
- package/src/icons/astroid-filled.svg +3 -0
- package/src/icons/claude.svg +1 -1
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.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
|
+
// 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
|
+
// src/components/tooltip/TooltipContent.vue
|
|
11
|
+
var TooltipContent_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
inheritAttrs: false,
|
|
13
|
+
__name: "TooltipContent",
|
|
14
|
+
props: {
|
|
15
|
+
forceMount: { type: Boolean },
|
|
16
|
+
ariaLabel: {},
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {},
|
|
19
|
+
side: {},
|
|
20
|
+
sideOffset: { default: 4 },
|
|
21
|
+
align: {},
|
|
22
|
+
alignOffset: {},
|
|
23
|
+
avoidCollisions: { type: Boolean },
|
|
24
|
+
collisionBoundary: {},
|
|
25
|
+
collisionPadding: { default: 8 },
|
|
26
|
+
arrowPadding: {},
|
|
27
|
+
sticky: {},
|
|
28
|
+
hideWhenDetached: { type: Boolean },
|
|
29
|
+
positionStrategy: {},
|
|
30
|
+
updatePositionStrategy: {},
|
|
31
|
+
class: { type: [
|
|
32
|
+
Boolean,
|
|
33
|
+
null,
|
|
34
|
+
String,
|
|
35
|
+
Object,
|
|
36
|
+
Array
|
|
37
|
+
] }
|
|
38
|
+
},
|
|
39
|
+
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const restProps = createPropsRestProxy(__props, [
|
|
42
|
+
"class",
|
|
43
|
+
"sideOffset",
|
|
44
|
+
"collisionPadding"
|
|
45
|
+
]);
|
|
46
|
+
const emits = __emit;
|
|
47
|
+
const rootContext = injectTooltipRootContext();
|
|
48
|
+
const textElement = useTemplateRef("text");
|
|
49
|
+
const repeatsTriggerName = ref(false);
|
|
50
|
+
function normalizedText(text) {
|
|
51
|
+
return text?.replace(/\s+/g, " ").trim() ?? "";
|
|
52
|
+
}
|
|
53
|
+
function syncRepeatsTriggerName() {
|
|
54
|
+
const trigger = rootContext.trigger.value;
|
|
55
|
+
const text = normalizedText(textElement.value?.textContent);
|
|
56
|
+
repeatsTriggerName.value = !!trigger && text !== "" && normalizedText(trigger.getAttribute("aria-label") ?? trigger.textContent) === text;
|
|
57
|
+
}
|
|
58
|
+
watch(textElement, syncRepeatsTriggerName, { flush: "post" });
|
|
59
|
+
onUpdated(syncRepeatsTriggerName);
|
|
60
|
+
const forwarded = useForwardPropsEmits(computed(() => ({
|
|
61
|
+
sideOffset: __props.sideOffset,
|
|
62
|
+
collisionPadding: __props.collisionPadding,
|
|
63
|
+
...restProps
|
|
64
|
+
})), emits);
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return unref(rootContext).open.value ? (openBlock(), createBlock(unref(TooltipPortal), { key: 0 }, {
|
|
67
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(TooltipContent), mergeProps({
|
|
68
|
+
...unref(forwarded),
|
|
69
|
+
..._ctx.$attrs
|
|
70
|
+
}, {
|
|
71
|
+
"aria-label": restProps.ariaLabel ?? (repeatsTriggerName.value ? " " : void 0),
|
|
72
|
+
"data-slot": "tooltip-content",
|
|
73
|
+
"data-testid": "tooltip-content",
|
|
74
|
+
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),
|
|
75
|
+
onEscapeKeyDown: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onClose())
|
|
76
|
+
}), {
|
|
77
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")], 512), createVNode(unref(TooltipArrow), {
|
|
78
|
+
width: 10,
|
|
79
|
+
height: 5,
|
|
80
|
+
class: "-mt-px fill-background stroke-border"
|
|
81
|
+
})]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 16, ["aria-label", "class"])])]),
|
|
84
|
+
_: 3
|
|
85
|
+
})) : createCommentVNode("", true);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export { TooltipContent_default as t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as tooltipOpenOnClickKey } from "./tooltipContext-arEyjGQC.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
|
+
// src/components/tooltip/TooltipTrigger.vue
|
|
5
|
+
var TooltipTrigger_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "TooltipTrigger",
|
|
7
|
+
props: {
|
|
8
|
+
reference: {},
|
|
9
|
+
asChild: { type: Boolean },
|
|
10
|
+
as: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const forwarded = useForwardProps(__props);
|
|
14
|
+
const rootContext = injectTooltipRootContext();
|
|
15
|
+
const providerContext = injectTooltipProviderContext();
|
|
16
|
+
const openOnClick = inject(tooltipOpenOnClickKey, () => false);
|
|
17
|
+
const hovered = ref(false);
|
|
18
|
+
let buttonsHeld = false;
|
|
19
|
+
watch(rootContext.disabled, (disabled) => {
|
|
20
|
+
if (disabled) rootContext.onClose();
|
|
21
|
+
});
|
|
22
|
+
watch(rootContext.open, (open) => {
|
|
23
|
+
if (open && buttonsHeld) rootContext.onClose();
|
|
24
|
+
});
|
|
25
|
+
watch(() => hovered.value || rootContext.open.value, (active, _, onCleanup) => {
|
|
26
|
+
if (!active) return;
|
|
27
|
+
const close = () => rootContext.onClose();
|
|
28
|
+
window.addEventListener("wheel", close, {
|
|
29
|
+
capture: true,
|
|
30
|
+
passive: true
|
|
31
|
+
});
|
|
32
|
+
onCleanup(() => window.removeEventListener("wheel", close, { capture: true }));
|
|
33
|
+
});
|
|
34
|
+
onBeforeUnmount(() => {
|
|
35
|
+
if (rootContext.open.value) providerContext.onClose();
|
|
36
|
+
});
|
|
37
|
+
function trackButtons(event) {
|
|
38
|
+
buttonsHeld = event.buttons !== 0;
|
|
39
|
+
}
|
|
40
|
+
function openOnMouseEnter(event) {
|
|
41
|
+
hovered.value = true;
|
|
42
|
+
trackButtons(event);
|
|
43
|
+
if (buttonsHeld || rootContext.disabled.value) return;
|
|
44
|
+
rootContext.onTriggerEnter();
|
|
45
|
+
}
|
|
46
|
+
function openOnClickIfEnabled() {
|
|
47
|
+
if (openOnClick() && !rootContext.disabled.value) rootContext.onOpen();
|
|
48
|
+
}
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return openBlock(), createBlock(unref(TooltipTrigger), mergeProps(unref(forwarded), {
|
|
51
|
+
onPointerenter: openOnMouseEnter,
|
|
52
|
+
onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = false),
|
|
53
|
+
onPointermove: trackButtons,
|
|
54
|
+
onPointerup: trackButtons,
|
|
55
|
+
onClick: openOnClickIfEnabled
|
|
56
|
+
}), {
|
|
57
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 16);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { TooltipTrigger_default as t };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Transition, computed, createBlock, defineComponent, onMounted, openBlock, ref, renderSlot, withCtx } from "vue";
|
|
2
|
+
// src/components/transition/TransitionCollapse.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var closed = "0px";
|
|
4
|
+
// src/components/transition/TransitionCollapse.vue
|
|
5
|
+
var TransitionCollapse_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "TransitionCollapse",
|
|
7
|
+
props: {
|
|
8
|
+
duration: { default: 150 },
|
|
9
|
+
easingEnter: { default: "ease-in-out" },
|
|
10
|
+
easingLeave: { default: "ease-in-out" },
|
|
11
|
+
opacityClosed: { default: 0 },
|
|
12
|
+
opacityOpened: { default: 1 },
|
|
13
|
+
disable: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const isMounted = ref(false);
|
|
17
|
+
onMounted(() => isMounted.value = true);
|
|
18
|
+
const animationDuration = computed(() => isMounted.value && !__props.disable ? __props.duration : 0);
|
|
19
|
+
function getElementStyle(element) {
|
|
20
|
+
return {
|
|
21
|
+
height: element.style.height,
|
|
22
|
+
width: element.style.width,
|
|
23
|
+
position: element.style.position,
|
|
24
|
+
visibility: element.style.visibility,
|
|
25
|
+
overflow: element.style.overflow,
|
|
26
|
+
paddingTop: element.style.paddingTop,
|
|
27
|
+
paddingBottom: element.style.paddingBottom,
|
|
28
|
+
borderTopWidth: element.style.borderTopWidth,
|
|
29
|
+
borderBottomWidth: element.style.borderBottomWidth,
|
|
30
|
+
marginTop: element.style.marginTop,
|
|
31
|
+
marginBottom: element.style.marginBottom
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function prepareElement(element, initialStyle) {
|
|
35
|
+
const { width } = getComputedStyle(element);
|
|
36
|
+
element.style.width = width;
|
|
37
|
+
element.style.position = "absolute";
|
|
38
|
+
element.style.visibility = "hidden";
|
|
39
|
+
element.style.height = "";
|
|
40
|
+
const { height } = getComputedStyle(element);
|
|
41
|
+
element.style.width = initialStyle.width;
|
|
42
|
+
element.style.position = initialStyle.position;
|
|
43
|
+
element.style.visibility = initialStyle.visibility;
|
|
44
|
+
element.style.height = closed;
|
|
45
|
+
element.style.overflow = "hidden";
|
|
46
|
+
return initialStyle.height && initialStyle.height !== closed ? initialStyle.height : height;
|
|
47
|
+
}
|
|
48
|
+
function animateTransition(element, initialStyle, done, keyframes, options) {
|
|
49
|
+
const animation = element.animate(keyframes, options);
|
|
50
|
+
element.style.height = initialStyle.height;
|
|
51
|
+
animation.onfinish = () => {
|
|
52
|
+
element.style.overflow = initialStyle.overflow;
|
|
53
|
+
done();
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function getEnterKeyframes(height, initialStyle) {
|
|
57
|
+
return [{
|
|
58
|
+
height: closed,
|
|
59
|
+
opacity: __props.opacityClosed,
|
|
60
|
+
paddingTop: closed,
|
|
61
|
+
paddingBottom: closed,
|
|
62
|
+
borderTopWidth: closed,
|
|
63
|
+
borderBottomWidth: closed,
|
|
64
|
+
marginTop: closed,
|
|
65
|
+
marginBottom: closed
|
|
66
|
+
}, {
|
|
67
|
+
height,
|
|
68
|
+
opacity: __props.opacityOpened,
|
|
69
|
+
paddingTop: initialStyle.paddingTop,
|
|
70
|
+
paddingBottom: initialStyle.paddingBottom,
|
|
71
|
+
borderTopWidth: initialStyle.borderTopWidth,
|
|
72
|
+
borderBottomWidth: initialStyle.borderBottomWidth,
|
|
73
|
+
marginTop: initialStyle.marginTop,
|
|
74
|
+
marginBottom: initialStyle.marginBottom
|
|
75
|
+
}];
|
|
76
|
+
}
|
|
77
|
+
function enterTransition(element, done) {
|
|
78
|
+
const HTMLElement = element;
|
|
79
|
+
const initialStyle = getElementStyle(HTMLElement);
|
|
80
|
+
animateTransition(HTMLElement, initialStyle, done, getEnterKeyframes(prepareElement(HTMLElement, initialStyle), initialStyle), {
|
|
81
|
+
duration: animationDuration.value,
|
|
82
|
+
easing: __props.easingEnter
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function leaveTransition(element, done) {
|
|
86
|
+
const HTMLElement = element;
|
|
87
|
+
const initialStyle = getElementStyle(HTMLElement);
|
|
88
|
+
const { height } = getComputedStyle(HTMLElement);
|
|
89
|
+
HTMLElement.style.height = height;
|
|
90
|
+
HTMLElement.style.overflow = "hidden";
|
|
91
|
+
animateTransition(HTMLElement, initialStyle, done, getEnterKeyframes(height, initialStyle).reverse(), {
|
|
92
|
+
duration: animationDuration.value,
|
|
93
|
+
easing: __props.easingLeave
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
return openBlock(), createBlock(Transition, {
|
|
98
|
+
css: false,
|
|
99
|
+
onEnter: enterTransition,
|
|
100
|
+
onLeave: leaveTransition
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
103
|
+
_: 3
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export { TransitionCollapse_default as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// 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
|
+
export { searchInputVariants as n, searchInputSizeConfig as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// 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
|
+
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,11 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
|
+
// ../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
|
+
export { cn as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// 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
|
+
export { tabsTriggerVariants as n, tabsListVariants as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// 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
|
+
export { tagVariants as n, tagRemoveButtonVariants as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { cva } from "cva";
|
|
2
|
+
// 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
|
+
export { toggleGroupVariantKey as n, toggleGroupVariants as r, toggleGroupItemVariants as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { SelectOption } from '@comfyorg/design-system/lib/select/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
accessibleLabel: string;
|
|
6
|
+
searchLabel: string;
|
|
7
|
+
emptyText: string;
|
|
8
|
+
options?: SelectOption<string | number>[];
|
|
9
|
+
size?: 'lg' | 'md';
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
searchPlaceholder?: string;
|
|
14
|
+
listMaxHeight?: string;
|
|
15
|
+
popoverMinWidth?: string;
|
|
16
|
+
popoverMaxWidth?: string;
|
|
17
|
+
contentStyle?: StyleValue;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_ModelProps = {
|
|
20
|
+
modelValue: string | number | undefined;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare var __VLS_22: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
icon?: (props: typeof __VLS_22) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/SearchableSingleSelect-DQauLQWW.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue: string | number | undefined;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_9: {}, __VLS_24: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
icon?: (props: typeof __VLS_9) => any;
|
|
7
|
+
} & {
|
|
8
|
+
icon?: (props: typeof __VLS_24) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<(import('./types').SingleSelectBaseProps & {
|
|
11
|
+
searchable?: false;
|
|
12
|
+
searchLabel?: string;
|
|
13
|
+
emptyText?: string;
|
|
14
|
+
} & __VLS_ModelProps) | (import('./types').SingleSelectBaseProps & {
|
|
15
|
+
searchable: boolean;
|
|
16
|
+
searchLabel: string;
|
|
17
|
+
emptyText: string;
|
|
18
|
+
} & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<(import('./types').SingleSelectBaseProps & {
|
|
21
|
+
searchable?: false;
|
|
22
|
+
searchLabel?: string;
|
|
23
|
+
emptyText?: string;
|
|
24
|
+
} & __VLS_ModelProps) | (import('./types').SingleSelectBaseProps & {
|
|
25
|
+
searchable: boolean;
|
|
26
|
+
searchLabel: string;
|
|
27
|
+
emptyText: string;
|
|
28
|
+
} & __VLS_ModelProps)> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|