@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,177 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, toRaw, toRef, unref, useTemplateRef, watch } from "vue";
|
|
3
|
+
import { BarController, BarElement, CategoryScale, Chart, Colors, Filler, Legend, LineController, LineElement, LinearScale, PointElement, Tooltip } from "chart.js";
|
|
4
|
+
// src/components/chart/useChart.ts
|
|
5
|
+
Chart.register(BarController, BarElement, CategoryScale, Colors, Filler, Legend, LinearScale, LineController, LineElement, PointElement, Tooltip);
|
|
6
|
+
function getCssVar(name) {
|
|
7
|
+
return getComputedStyle(document.documentElement).getPropertyValue(name).trim();
|
|
8
|
+
}
|
|
9
|
+
function getDefaultOptions(type) {
|
|
10
|
+
const foreground = getCssVar("--color-foreground") || "#ffffff";
|
|
11
|
+
const muted = getCssVar("--color-muted-foreground") || "#8a8a8a";
|
|
12
|
+
return {
|
|
13
|
+
responsive: true,
|
|
14
|
+
maintainAspectRatio: false,
|
|
15
|
+
interaction: {
|
|
16
|
+
mode: "index",
|
|
17
|
+
intersect: false
|
|
18
|
+
},
|
|
19
|
+
plugins: {
|
|
20
|
+
legend: {
|
|
21
|
+
align: "start",
|
|
22
|
+
labels: {
|
|
23
|
+
color: foreground,
|
|
24
|
+
usePointStyle: true,
|
|
25
|
+
pointStyle: "circle",
|
|
26
|
+
boxWidth: 8,
|
|
27
|
+
boxHeight: 8,
|
|
28
|
+
padding: 16,
|
|
29
|
+
font: {
|
|
30
|
+
family: "Inter",
|
|
31
|
+
size: 11
|
|
32
|
+
},
|
|
33
|
+
generateLabels(chart) {
|
|
34
|
+
return chart.data.datasets.map((dataset, i) => {
|
|
35
|
+
const color = dataset.borderColor ?? dataset.backgroundColor ?? "#888";
|
|
36
|
+
return {
|
|
37
|
+
text: dataset.label ?? "",
|
|
38
|
+
fillStyle: color,
|
|
39
|
+
strokeStyle: color,
|
|
40
|
+
lineWidth: 0,
|
|
41
|
+
pointStyle: "circle",
|
|
42
|
+
hidden: !chart.isDatasetVisible(i),
|
|
43
|
+
datasetIndex: i
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
tooltip: { enabled: true }
|
|
50
|
+
},
|
|
51
|
+
elements: { point: {
|
|
52
|
+
radius: 0,
|
|
53
|
+
hoverRadius: 4
|
|
54
|
+
} },
|
|
55
|
+
scales: {
|
|
56
|
+
x: {
|
|
57
|
+
ticks: {
|
|
58
|
+
color: muted,
|
|
59
|
+
font: {
|
|
60
|
+
family: "Inter",
|
|
61
|
+
size: 11
|
|
62
|
+
},
|
|
63
|
+
padding: 8
|
|
64
|
+
},
|
|
65
|
+
grid: {
|
|
66
|
+
display: true,
|
|
67
|
+
color: muted + "33",
|
|
68
|
+
drawTicks: false
|
|
69
|
+
},
|
|
70
|
+
border: {
|
|
71
|
+
display: true,
|
|
72
|
+
color: muted
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
y: {
|
|
76
|
+
ticks: {
|
|
77
|
+
color: muted,
|
|
78
|
+
font: {
|
|
79
|
+
family: "Inter",
|
|
80
|
+
size: 11
|
|
81
|
+
},
|
|
82
|
+
padding: 4
|
|
83
|
+
},
|
|
84
|
+
grid: {
|
|
85
|
+
display: false,
|
|
86
|
+
drawTicks: false
|
|
87
|
+
},
|
|
88
|
+
border: {
|
|
89
|
+
display: true,
|
|
90
|
+
color: muted
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
...type === "bar" && { datasets: { bar: {
|
|
95
|
+
borderRadius: {
|
|
96
|
+
topLeft: 4,
|
|
97
|
+
topRight: 4
|
|
98
|
+
},
|
|
99
|
+
borderSkipped: false,
|
|
100
|
+
barPercentage: .6,
|
|
101
|
+
categoryPercentage: .8
|
|
102
|
+
} } }
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function useChart(canvasRef, type, data) {
|
|
106
|
+
let chart;
|
|
107
|
+
function copyData() {
|
|
108
|
+
const { datasets, labels, ...rest } = toRaw(data.value);
|
|
109
|
+
return {
|
|
110
|
+
...rest,
|
|
111
|
+
labels: labels && [...labels],
|
|
112
|
+
datasets: datasets.map((dataset) => ({
|
|
113
|
+
...dataset,
|
|
114
|
+
data: Array.isArray(dataset.data) ? [...dataset.data] : dataset.data
|
|
115
|
+
}))
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function createChart() {
|
|
119
|
+
if (!canvasRef.value) return;
|
|
120
|
+
chart?.destroy();
|
|
121
|
+
chart = new Chart(canvasRef.value, {
|
|
122
|
+
type: type.value,
|
|
123
|
+
data: copyData(),
|
|
124
|
+
options: getDefaultOptions(type.value)
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
onMounted(createChart);
|
|
128
|
+
watch(type, createChart);
|
|
129
|
+
watch(data, () => {
|
|
130
|
+
if (!chart) return;
|
|
131
|
+
const next = copyData();
|
|
132
|
+
const previousCount = chart.data.datasets.length;
|
|
133
|
+
for (const [index, dataset] of next.datasets.entries()) {
|
|
134
|
+
if (index >= previousCount) break;
|
|
135
|
+
const { hidden } = chart.getDatasetMeta(index);
|
|
136
|
+
if (typeof hidden === "boolean") dataset.hidden = hidden;
|
|
137
|
+
}
|
|
138
|
+
chart.data = next;
|
|
139
|
+
chart.update();
|
|
140
|
+
}, { deep: true });
|
|
141
|
+
onBeforeUnmount(() => {
|
|
142
|
+
chart?.destroy();
|
|
143
|
+
chart = void 0;
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
// src/components/chart/Chart.vue?vue&type=script&setup=true&lang.ts
|
|
147
|
+
var _hoisted_1 = { class: "relative" };
|
|
148
|
+
var _hoisted_2 = ["aria-label"];
|
|
149
|
+
// src/components/chart/Chart.vue
|
|
150
|
+
var Chart_default = /* @__PURE__ */ defineComponent({
|
|
151
|
+
__name: "Chart",
|
|
152
|
+
props: {
|
|
153
|
+
data: {},
|
|
154
|
+
label: {},
|
|
155
|
+
type: {},
|
|
156
|
+
class: { type: [
|
|
157
|
+
Boolean,
|
|
158
|
+
null,
|
|
159
|
+
String,
|
|
160
|
+
Object,
|
|
161
|
+
Array
|
|
162
|
+
] }
|
|
163
|
+
},
|
|
164
|
+
setup(__props) {
|
|
165
|
+
const canvasRef = useTemplateRef("canvasRef");
|
|
166
|
+
useChart(canvasRef, toRef(() => __props.type), toRef(() => __props.data));
|
|
167
|
+
return (_ctx, _cache) => {
|
|
168
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("rounded-lg bg-secondary p-6", __props.class)) }, [createElementVNode("div", _hoisted_1, [createElementVNode("canvas", {
|
|
169
|
+
ref_key: "canvasRef",
|
|
170
|
+
ref: canvasRef,
|
|
171
|
+
"aria-label": __props.label,
|
|
172
|
+
role: "img"
|
|
173
|
+
}, null, 8, _hoisted_2)])], 2);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export { Chart_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChartData } from 'chart.js';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export type SupportedChartType = 'bar' | 'line';
|
|
4
|
+
export declare function useChart(canvasRef: Readonly<Ref<HTMLCanvasElement | null>>, type: Readonly<Ref<SupportedChartType>>, data: Readonly<Ref<ChartData>>): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CheckboxRootProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = CheckboxRootProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_14: {
|
|
7
|
+
modelValue: boolean | "indeterminate";
|
|
8
|
+
state: import('reka-ui').CheckboxCheckedState;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_14) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
// src/components/checkbox/Checkbox.vue
|
|
6
|
+
var Checkbox_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "Checkbox",
|
|
8
|
+
props: {
|
|
9
|
+
defaultValue: {},
|
|
10
|
+
modelValue: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
value: {},
|
|
13
|
+
id: {},
|
|
14
|
+
trueValue: {},
|
|
15
|
+
falseValue: {},
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {},
|
|
18
|
+
name: {},
|
|
19
|
+
required: { type: Boolean },
|
|
20
|
+
class: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] }
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const emits = __emit;
|
|
32
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(unref(CheckboxRoot), mergeProps(unref(forwarded), {
|
|
35
|
+
"data-slot": "checkbox",
|
|
36
|
+
class: unref(cn)("inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border bg-transparent text-background transition-colors outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary", props.class)
|
|
37
|
+
}), {
|
|
38
|
+
default: withCtx((slotProps) => [createVNode(unref(CheckboxIndicator), { class: "flex items-center justify-center" }, {
|
|
39
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)), () => [createElementVNode("i", { class: normalizeClass(unref(cn)("size-3", slotProps.state === "indeterminate" ? "icon-[lucide--minus]" : "icon-[lucide--check]")) }, null, 2)])]),
|
|
40
|
+
_: 2
|
|
41
|
+
}, 1024)]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16, ["class"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export { Checkbox_default as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { TagVariants } from '@comfyorg/design-system/tag.variants';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_3) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<({
|
|
10
|
+
label: string;
|
|
11
|
+
shape?: TagVariants["shape"];
|
|
12
|
+
state?: TagVariants["state"];
|
|
13
|
+
removeTooltip?: string;
|
|
14
|
+
interactive?: boolean;
|
|
15
|
+
class?: HTMLAttributes["class"];
|
|
16
|
+
} & {
|
|
17
|
+
removable: true;
|
|
18
|
+
removeLabel: string;
|
|
19
|
+
}) | ({
|
|
20
|
+
label: string;
|
|
21
|
+
shape?: TagVariants["shape"];
|
|
22
|
+
state?: TagVariants["state"];
|
|
23
|
+
removeTooltip?: string;
|
|
24
|
+
interactive?: boolean;
|
|
25
|
+
class?: HTMLAttributes["class"];
|
|
26
|
+
} & {
|
|
27
|
+
removable?: false;
|
|
28
|
+
removeLabel?: string;
|
|
29
|
+
}), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
remove: (event: Event) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<({
|
|
32
|
+
label: string;
|
|
33
|
+
shape?: TagVariants["shape"];
|
|
34
|
+
state?: TagVariants["state"];
|
|
35
|
+
removeTooltip?: string;
|
|
36
|
+
interactive?: boolean;
|
|
37
|
+
class?: HTMLAttributes["class"];
|
|
38
|
+
} & {
|
|
39
|
+
removable: true;
|
|
40
|
+
removeLabel: string;
|
|
41
|
+
}) | ({
|
|
42
|
+
label: string;
|
|
43
|
+
shape?: TagVariants["shape"];
|
|
44
|
+
state?: TagVariants["state"];
|
|
45
|
+
removeTooltip?: string;
|
|
46
|
+
interactive?: boolean;
|
|
47
|
+
class?: HTMLAttributes["class"];
|
|
48
|
+
} & {
|
|
49
|
+
removable?: false;
|
|
50
|
+
removeLabel?: string;
|
|
51
|
+
})> & Readonly<{
|
|
52
|
+
onRemove?: ((event: Event) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { t as TagRemoveButton_default } from "../shared/TagRemoveButton-D919R-To.js";
|
|
3
|
+
import { n as tagVariants } from "../shared/tag.variants-BEXRRbPc.js";
|
|
4
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withModifiers } from "vue";
|
|
5
|
+
// src/components/chip/Tag.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = ["role", "tabindex"];
|
|
7
|
+
var _hoisted_2 = { class: "min-w-0 truncate" };
|
|
8
|
+
// src/components/chip/Tag.vue
|
|
9
|
+
var Tag_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "Tag",
|
|
11
|
+
props: {
|
|
12
|
+
label: {},
|
|
13
|
+
shape: { default: "square" },
|
|
14
|
+
state: { default: "default" },
|
|
15
|
+
removeTooltip: {},
|
|
16
|
+
interactive: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
class: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
removable: { type: Boolean },
|
|
28
|
+
removeLabel: {}
|
|
29
|
+
},
|
|
30
|
+
emits: ["remove"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const emit = __emit;
|
|
33
|
+
function handleKeydown(event) {
|
|
34
|
+
if (event.target !== event.currentTarget) return;
|
|
35
|
+
if (!__props.interactive) return;
|
|
36
|
+
if (event.key === "Enter" || event.key === " ") event.preventDefault();
|
|
37
|
+
if (event.key === "Enter" && event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
38
|
+
}
|
|
39
|
+
function handleKeyup(event) {
|
|
40
|
+
if (event.target !== event.currentTarget) return;
|
|
41
|
+
if (!__props.interactive || event.key !== " ") return;
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createElementBlock("span", {
|
|
47
|
+
role: __props.interactive ? "button" : void 0,
|
|
48
|
+
tabindex: __props.interactive ? 0 : void 0,
|
|
49
|
+
class: normalizeClass(unref(cn)(unref(tagVariants)({
|
|
50
|
+
shape: __props.shape,
|
|
51
|
+
state: __props.state,
|
|
52
|
+
removable: __props.removable,
|
|
53
|
+
interactive: __props.interactive
|
|
54
|
+
}), __props.class)),
|
|
55
|
+
onKeydown: handleKeydown,
|
|
56
|
+
onKeyup: handleKeyup
|
|
57
|
+
}, [
|
|
58
|
+
renderSlot(_ctx.$slots, "icon"),
|
|
59
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.label), 1),
|
|
60
|
+
renderSlot(_ctx.$slots, "default"),
|
|
61
|
+
__props.removable ? (openBlock(), createBlock(unref(TagRemoveButton_default), {
|
|
62
|
+
key: 0,
|
|
63
|
+
"aria-label": __props.removeLabel,
|
|
64
|
+
tooltip: __props.removeTooltip,
|
|
65
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emit("remove", $event), ["stop"]))
|
|
66
|
+
}, null, 8, ["aria-label", "tooltip"])) : createCommentVNode("", true)
|
|
67
|
+
], 42, _hoisted_1);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export { Tag_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tooltip?: string;
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/TagRemoveButton-D919R-To.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorPickerProps } from '@comfyorg/design-system/lib/color-picker/types';
|
|
2
|
+
type __VLS_Props = ColorPickerProps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare var __VLS_14: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
trigger?: (props: typeof __VLS_14) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { i as hsvaToHex, n as hexToHsva, o as rgbToHex, r as hsbToRgb } from "../shared/ColorPickerSlider--mnQyzWD.js";
|
|
2
|
+
import { t as PopoverContent_default } from "../shared/PopoverContent-DNqL6t-O.js";
|
|
3
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
4
|
+
import { t as ColorPickerPanel_default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
6
|
+
import { PopoverRoot, PopoverTrigger } from "reka-ui";
|
|
7
|
+
// src/components/color-picker/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = ["disabled", "aria-label"];
|
|
9
|
+
var _hoisted_2 = { class: "flex size-8 shrink-0 items-center justify-center" };
|
|
10
|
+
var _hoisted_3 = { class: "relative size-4 overflow-hidden rounded-sm" };
|
|
11
|
+
var _hoisted_4 = { class: "flex flex-1 items-center justify-between pl-1 text-xs text-foreground" };
|
|
12
|
+
var _hoisted_5 = { key: 0 };
|
|
13
|
+
var _hoisted_6 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "flex gap-2"
|
|
16
|
+
};
|
|
17
|
+
var _hoisted_7 = { key: 2 };
|
|
18
|
+
// src/components/color-picker/ColorPicker.vue
|
|
19
|
+
var ColorPicker_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "ColorPicker",
|
|
21
|
+
props: /*@__PURE__*/ mergeModels({
|
|
22
|
+
class: {},
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
alpha: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
accessibleLabel: {},
|
|
29
|
+
hexLabel: {},
|
|
30
|
+
rgbaLabel: {},
|
|
31
|
+
hueLabel: {},
|
|
32
|
+
alphaLabel: {},
|
|
33
|
+
redLabel: {},
|
|
34
|
+
greenLabel: {},
|
|
35
|
+
blueLabel: {},
|
|
36
|
+
saturationBrightnessLabel: {},
|
|
37
|
+
formatLabel: {}
|
|
38
|
+
}, {
|
|
39
|
+
"modelValue": { default: "#000000" },
|
|
40
|
+
"modelModifiers": {}
|
|
41
|
+
}),
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(__props) {
|
|
44
|
+
const modelValue = useModel(__props, "modelValue");
|
|
45
|
+
function readHsva(hex) {
|
|
46
|
+
const next = hexToHsva(hex || "#000000");
|
|
47
|
+
if (!__props.alpha) next.a = 100;
|
|
48
|
+
return next;
|
|
49
|
+
}
|
|
50
|
+
const hsva = ref(readHsva(modelValue.value));
|
|
51
|
+
const displayMode = ref("hex");
|
|
52
|
+
watch(modelValue, (newVal) => {
|
|
53
|
+
if (newVal !== hsvaToHex(hsva.value)) hsva.value = readHsva(newVal);
|
|
54
|
+
});
|
|
55
|
+
watch(hsva, (newHsva) => {
|
|
56
|
+
const hex = hsvaToHex(newHsva);
|
|
57
|
+
if (hex !== modelValue.value) modelValue.value = hex;
|
|
58
|
+
}, { deep: true });
|
|
59
|
+
const baseRgb = computed(() => hsbToRgb({
|
|
60
|
+
h: hsva.value.h,
|
|
61
|
+
s: hsva.value.s,
|
|
62
|
+
b: hsva.value.v
|
|
63
|
+
}));
|
|
64
|
+
const previewColor = computed(() => {
|
|
65
|
+
const hex = rgbToHex(baseRgb.value);
|
|
66
|
+
const a = hsva.value.a / 100;
|
|
67
|
+
if (a < 1) return `${hex}${Math.round(a * 255).toString(16).padStart(2, "0")}`;
|
|
68
|
+
return hex;
|
|
69
|
+
});
|
|
70
|
+
const displayHex = computed(() => rgbToHex(baseRgb.value).toLowerCase());
|
|
71
|
+
const isOpen = ref(false);
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createBlock(unref(PopoverRoot), {
|
|
74
|
+
open: isOpen.value,
|
|
75
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isOpen.value = $event)
|
|
76
|
+
}, {
|
|
77
|
+
default: withCtx(() => [createVNode(unref(PopoverTrigger), { "as-child": "" }, {
|
|
78
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {}, () => [createElementVNode("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
disabled: _ctx.$props.disabled,
|
|
81
|
+
"aria-label": __props.accessibleLabel,
|
|
82
|
+
class: normalizeClass(unref(cn)("flex h-8 w-full items-center overflow-clip rounded-lg border border-transparent bg-secondary pr-2 outline-none hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50", isOpen.value && "border-border", _ctx.$props.class))
|
|
83
|
+
}, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_cache[3] || (_cache[3] = createElementVNode("div", {
|
|
84
|
+
class: "absolute inset-0",
|
|
85
|
+
style: {
|
|
86
|
+
backgroundImage: "repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%)",
|
|
87
|
+
backgroundSize: "4px 4px"
|
|
88
|
+
}
|
|
89
|
+
}, null, -1)), createElementVNode("div", {
|
|
90
|
+
class: "absolute inset-0",
|
|
91
|
+
style: normalizeStyle({ backgroundColor: previewColor.value })
|
|
92
|
+
}, null, 4)])]), createElementVNode("div", _hoisted_4, [displayMode.value === "hex" ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(displayHex.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
93
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.r), 1),
|
|
94
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.g), 1),
|
|
95
|
+
createElementVNode("span", null, toDisplayString(baseRgb.value.b), 1)
|
|
96
|
+
])), __props.alpha ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(hsva.value.a) + "%", 1)) : createCommentVNode("", true)])], 10, _hoisted_1)])]),
|
|
97
|
+
_: 3
|
|
98
|
+
}), createVNode(unref(PopoverContent_default), {
|
|
99
|
+
align: "start",
|
|
100
|
+
"side-offset": 7,
|
|
101
|
+
class: "w-auto border-0 bg-transparent p-0 shadow-none"
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [createVNode(ColorPickerPanel_default, {
|
|
104
|
+
hsva: hsva.value,
|
|
105
|
+
"onUpdate:hsva": _cache[0] || (_cache[0] = ($event) => hsva.value = $event),
|
|
106
|
+
"display-mode": displayMode.value,
|
|
107
|
+
"onUpdate:displayMode": _cache[1] || (_cache[1] = ($event) => displayMode.value = $event),
|
|
108
|
+
alpha: __props.alpha,
|
|
109
|
+
"hex-label": _ctx.$props.hexLabel,
|
|
110
|
+
"rgba-label": _ctx.$props.rgbaLabel,
|
|
111
|
+
"hue-label": _ctx.$props.hueLabel,
|
|
112
|
+
"alpha-label": _ctx.$props.alphaLabel,
|
|
113
|
+
"red-label": _ctx.$props.redLabel,
|
|
114
|
+
"green-label": _ctx.$props.greenLabel,
|
|
115
|
+
"blue-label": _ctx.$props.blueLabel,
|
|
116
|
+
"saturation-brightness-label": _ctx.$props.saturationBrightnessLabel,
|
|
117
|
+
"format-label": _ctx.$props.formatLabel
|
|
118
|
+
}, null, 8, [
|
|
119
|
+
"hsva",
|
|
120
|
+
"display-mode",
|
|
121
|
+
"alpha",
|
|
122
|
+
"hex-label",
|
|
123
|
+
"rgba-label",
|
|
124
|
+
"hue-label",
|
|
125
|
+
"alpha-label",
|
|
126
|
+
"red-label",
|
|
127
|
+
"green-label",
|
|
128
|
+
"blue-label",
|
|
129
|
+
"saturation-brightness-label",
|
|
130
|
+
"format-label"
|
|
131
|
+
])]),
|
|
132
|
+
_: 1
|
|
133
|
+
})]),
|
|
134
|
+
_: 3
|
|
135
|
+
}, 8, ["open"]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export { ColorPicker_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HSVA } from '@comfyorg/design-system/lib/color-picker/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
alpha?: boolean;
|
|
4
|
+
hexLabel: string;
|
|
5
|
+
rgbaLabel: string;
|
|
6
|
+
hueLabel: string;
|
|
7
|
+
alphaLabel: string;
|
|
8
|
+
redLabel: string;
|
|
9
|
+
greenLabel: string;
|
|
10
|
+
blueLabel: string;
|
|
11
|
+
saturationBrightnessLabel: string;
|
|
12
|
+
formatLabel: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
'hsva': HSVA;
|
|
16
|
+
'displayMode': 'hex' | 'rgba';
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:hsva": (value: HSVA) => any;
|
|
21
|
+
"update:displayMode": (value: "hex" | "rgba") => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:hsva"?: ((value: HSVA) => any) | undefined;
|
|
24
|
+
"onUpdate:displayMode"?: ((value: "hex" | "rgba") => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerPanel-DQGHuvxk.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
hue: number;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
'saturation': number;
|
|
6
|
+
'value': number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:saturation": (value: number) => any;
|
|
11
|
+
"update:value": (value: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:saturation"?: ((value: number) => any) | undefined;
|
|
14
|
+
"onUpdate:value"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerSaturationValue-B5VDiMcl.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
type: 'hue' | 'alpha';
|
|
3
|
+
hue?: number;
|
|
4
|
+
saturation?: number;
|
|
5
|
+
brightness?: number;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue: number;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "../shared/ColorPickerSlider--mnQyzWD.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface HSVA {
|
|
2
|
+
h: number;
|
|
3
|
+
s: number;
|
|
4
|
+
v: number;
|
|
5
|
+
a: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ColorPickerProps {
|
|
8
|
+
class?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
alpha?: boolean;
|
|
11
|
+
/** Defaults to the trigger's visible color value. */
|
|
12
|
+
accessibleLabel?: string;
|
|
13
|
+
hexLabel: string;
|
|
14
|
+
rgbaLabel: string;
|
|
15
|
+
hueLabel: string;
|
|
16
|
+
alphaLabel: string;
|
|
17
|
+
redLabel: string;
|
|
18
|
+
greenLabel: string;
|
|
19
|
+
blueLabel: string;
|
|
20
|
+
saturationBrightnessLabel: string;
|
|
21
|
+
formatLabel: string;
|
|
22
|
+
}
|