@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,179 @@
|
|
|
1
|
+
#maskEditor_brush {
|
|
2
|
+
position: absolute;
|
|
3
|
+
pointer-events: none;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
overflow: visible;
|
|
6
|
+
outline: 1px dashed black;
|
|
7
|
+
box-shadow: 0 0 0 1px white;
|
|
8
|
+
}
|
|
9
|
+
#maskEditor_brushPreviewGradient {
|
|
10
|
+
position: absolute;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.maskEditor_sidePanelBrushRange {
|
|
18
|
+
width: 180px;
|
|
19
|
+
appearance: none;
|
|
20
|
+
background: transparent;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.maskEditor_sidePanelBrushRange::-webkit-slider-thumb {
|
|
24
|
+
height: 20px;
|
|
25
|
+
width: 20px;
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
cursor: grab;
|
|
28
|
+
margin-top: -8px;
|
|
29
|
+
background: var(--muted);
|
|
30
|
+
border: 1px solid var(--border);
|
|
31
|
+
}
|
|
32
|
+
.maskEditor_sidePanelBrushRange::-moz-range-thumb {
|
|
33
|
+
height: 20px;
|
|
34
|
+
width: 20px;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
cursor: grab;
|
|
37
|
+
background: var(--muted);
|
|
38
|
+
border: 1px solid var(--border);
|
|
39
|
+
}
|
|
40
|
+
.maskEditor_sidePanelBrushRange::-webkit-slider-runnable-track {
|
|
41
|
+
background: var(--border);
|
|
42
|
+
height: 3px;
|
|
43
|
+
}
|
|
44
|
+
.maskEditor_sidePanelBrushRange::-moz-range-track {
|
|
45
|
+
background: var(--border);
|
|
46
|
+
height: 3px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.maskEditor_toolPanelContainer {
|
|
50
|
+
width: 4rem;
|
|
51
|
+
height: 4rem;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
position: relative;
|
|
56
|
+
transition: background-color 0.2s;
|
|
57
|
+
}
|
|
58
|
+
.maskEditor_toolPanelContainerSelected .maskEditor_toolPanelIndicator {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
.maskEditor_toolPanelContainer svg {
|
|
62
|
+
width: 75%;
|
|
63
|
+
aspect-ratio: 1/1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.maskEditor_toolPanelIndicator {
|
|
67
|
+
display: none;
|
|
68
|
+
height: 100%;
|
|
69
|
+
width: 4px;
|
|
70
|
+
position: absolute;
|
|
71
|
+
left: 0;
|
|
72
|
+
background: currentColor;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#maskEditorCanvasContainer {
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 1000px;
|
|
78
|
+
height: 667px;
|
|
79
|
+
left: 359px;
|
|
80
|
+
top: 280px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.maskEditor_sidePanelToggleContainer {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
display: inline-block;
|
|
86
|
+
position: absolute;
|
|
87
|
+
right: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.maskEditor_sidePanelToggleSwitch {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
border-radius: 16px;
|
|
93
|
+
width: 40px;
|
|
94
|
+
height: 24px;
|
|
95
|
+
position: relative;
|
|
96
|
+
vertical-align: middle;
|
|
97
|
+
transition: background 0.25s;
|
|
98
|
+
background: var(--muted);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.maskEditor_sidePanelToggleSwitch::before,
|
|
102
|
+
.maskEditor_sidePanelToggleSwitch::after {
|
|
103
|
+
content: '';
|
|
104
|
+
}
|
|
105
|
+
.maskEditor_sidePanelToggleSwitch::before {
|
|
106
|
+
display: block;
|
|
107
|
+
background: linear-gradient(to bottom, #fff 0%, #eee 100%);
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
width: 16px;
|
|
110
|
+
height: 16px;
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 4px;
|
|
113
|
+
left: 4px;
|
|
114
|
+
transition: ease 0.2s;
|
|
115
|
+
}
|
|
116
|
+
.maskEditor_sidePanelToggleContainer:hover
|
|
117
|
+
.maskEditor_sidePanelToggleSwitch::before {
|
|
118
|
+
background: linear-gradient(to bottom, #fff 0%, #fff 100%);
|
|
119
|
+
}
|
|
120
|
+
.maskEditor_sidePanelToggleCheckbox:checked
|
|
121
|
+
+ .maskEditor_sidePanelToggleSwitch {
|
|
122
|
+
background: var(--primary);
|
|
123
|
+
}
|
|
124
|
+
.maskEditor_sidePanelToggleCheckbox:checked
|
|
125
|
+
+ .maskEditor_sidePanelToggleSwitch::before {
|
|
126
|
+
background: var(--background);
|
|
127
|
+
left: 20px;
|
|
128
|
+
}
|
|
129
|
+
.maskEditor_sidePanelToggleCheckbox {
|
|
130
|
+
position: absolute;
|
|
131
|
+
visibility: hidden;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.maskEditor_sidePanelDropdown {
|
|
135
|
+
border: 1px solid var(--border);
|
|
136
|
+
background: var(--background);
|
|
137
|
+
height: 24px;
|
|
138
|
+
padding-left: 5px;
|
|
139
|
+
padding-right: 5px;
|
|
140
|
+
border-radius: 6px;
|
|
141
|
+
transition: background 0.1s;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.maskEditor_sidePanelDropdown option {
|
|
145
|
+
background: var(--background);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.maskEditor_sidePanelDropdown:focus {
|
|
149
|
+
outline: 1px solid var(--primary);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.maskEditor_sidePanelDropdown option:hover {
|
|
153
|
+
background: white;
|
|
154
|
+
}
|
|
155
|
+
.maskEditor_sidePanelDropdown option:active {
|
|
156
|
+
background: var(--muted);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.maskEditor_sidePanelLayerPreviewContainer {
|
|
160
|
+
width: 40px;
|
|
161
|
+
height: 30px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.maskEditor_sidePanelLayerPreviewContainer > svg {
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
object-fit: contain;
|
|
168
|
+
fill: var(--foreground);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.maskEditor_sidePanelImageLayerImage {
|
|
172
|
+
width: 100%;
|
|
173
|
+
height: 100%;
|
|
174
|
+
object-fit: contain;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.maskEditor_sidePanelLayerCheckbox {
|
|
178
|
+
margin-left: 15px;
|
|
179
|
+
}
|
package/src/css/_palette.css
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
--font-formula: 'PP Formula', 'Inter', sans-serif;
|
|
5
5
|
|
|
6
6
|
/* Palette Colors */
|
|
7
|
-
--color-transparency-white-t8: rgb(255 255 255 / 0.08);
|
|
8
|
-
--color-transparency-white-t20: rgb(255 255 255 / 0.2);
|
|
9
|
-
--color-transparency-white-t40: rgb(255 255 255 / 0.4);
|
|
10
|
-
|
|
11
7
|
--color-charcoal-100: #55565e;
|
|
12
8
|
--color-charcoal-200: #494a50;
|
|
13
9
|
--color-charcoal-300: #3c3d42;
|
|
@@ -34,6 +30,37 @@
|
|
|
34
30
|
--color-smoke-700: #a0a0a0;
|
|
35
31
|
--color-smoke-800: #8a8a8a;
|
|
36
32
|
|
|
33
|
+
--color-ivory-100: #fdfbfa;
|
|
34
|
+
--color-ivory-200: #faf9f5;
|
|
35
|
+
--color-ivory-300: #f0eee6;
|
|
36
|
+
|
|
37
|
+
--color-sand-100: #e1ded5;
|
|
38
|
+
--color-sand-200: #fff7d5;
|
|
39
|
+
--color-sand-300: #888682;
|
|
40
|
+
--color-sand-400: #eed7ac;
|
|
41
|
+
|
|
42
|
+
--color-azure-300: #78bae9;
|
|
43
|
+
--color-azure-400: #31b9f4;
|
|
44
|
+
--color-azure-600: #0b8ce9;
|
|
45
|
+
|
|
46
|
+
--color-cobalt-800: #185a8b;
|
|
47
|
+
|
|
48
|
+
--color-jade-400: #47e469;
|
|
49
|
+
--color-jade-600: #00cd72;
|
|
50
|
+
|
|
51
|
+
--color-gold-400: #fcbf64;
|
|
52
|
+
--color-gold-500: #fdab34;
|
|
53
|
+
--color-gold-600: #fd9903;
|
|
54
|
+
--color-gold-700: #c77700;
|
|
55
|
+
--color-gold-800: #8c6a38;
|
|
56
|
+
|
|
57
|
+
--color-coral-500: #f75951;
|
|
58
|
+
--color-coral-600: #e04e48;
|
|
59
|
+
--color-coral-700: #b33a3a;
|
|
60
|
+
|
|
61
|
+
--color-magenta-300: #ceaac9;
|
|
62
|
+
--color-magenta-700: #6a246a;
|
|
63
|
+
|
|
37
64
|
/* Plum */
|
|
38
65
|
--color-plum-300: #afa3db;
|
|
39
66
|
--color-plum-400: #8d7fc5;
|
|
@@ -59,4 +86,13 @@
|
|
|
59
86
|
--color-sapphire-700: #172dd7;
|
|
60
87
|
--color-brand-yellow: var(--color-electric-400);
|
|
61
88
|
--color-brand-blue: var(--color-sapphire-700);
|
|
89
|
+
|
|
90
|
+
--color-primary-comfy-ink: #211927;
|
|
91
|
+
--color-primary-comfy-canvas: #c2bfb9;
|
|
92
|
+
--color-primary-warm-white: #f0efed;
|
|
93
|
+
--color-primary-warm-gray: #7e7c78;
|
|
94
|
+
|
|
95
|
+
--color-ocean-300: #badde8;
|
|
96
|
+
--color-ocean-600: #2f687a;
|
|
97
|
+
--color-ocean-900: #253236;
|
|
62
98
|
}
|
package/src/css/base.css
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@import './_palette.css';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
|
|
4
|
+
@plugin "./iconifyDynamicPlugin.ts";
|
|
5
|
+
|
|
6
|
+
@plugin "./lucideStrokePlugin.js";
|
|
7
|
+
|
|
8
|
+
@custom-variant touch (@media (hover: none));
|
|
9
|
+
|
|
10
|
+
@theme {
|
|
11
|
+
--z-index-panel: 1100;
|
|
12
|
+
--z-index-education: 1500;
|
|
13
|
+
--z-index-onboarding: 1600;
|
|
14
|
+
--z-index-overlay: 1700;
|
|
15
|
+
--z-index-tour: 1800;
|
|
16
|
+
--z-index-toast: 9999;
|
|
17
|
+
--z-index-blocking: 10000;
|
|
18
|
+
|
|
19
|
+
--text-2xs: 0.625rem;
|
|
20
|
+
--text-2xs--line-height: calc(1 / 0.625);
|
|
21
|
+
|
|
22
|
+
--text-3xs: 0.5625rem;
|
|
23
|
+
--text-3xs--line-height: calc(1 / 0.5625);
|
|
24
|
+
|
|
25
|
+
--color-credit: #ddbd31;
|
|
26
|
+
--color-warning-foreground: var(--color-charcoal-800);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@utility highlight {
|
|
30
|
+
background-color: color-mix(in srgb, currentColor 20%, transparent);
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
border-radius: 0.25rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@utility scrollbar-hide {
|
|
36
|
+
scrollbar-width: none;
|
|
37
|
+
&::-webkit-scrollbar {
|
|
38
|
+
width: 1px;
|
|
39
|
+
}
|
|
40
|
+
&::-webkit-scrollbar-thumb {
|
|
41
|
+
background-color: transparent;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@utility scrollbar-custom {
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
scrollbar-width: thin;
|
|
48
|
+
scrollbar-color: var(--muted) transparent;
|
|
49
|
+
|
|
50
|
+
&::-webkit-scrollbar {
|
|
51
|
+
width: 10px;
|
|
52
|
+
height: 10px;
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
&::-webkit-scrollbar-track {
|
|
56
|
+
background: transparent;
|
|
57
|
+
}
|
|
58
|
+
&::-webkit-scrollbar-thumb {
|
|
59
|
+
background: var(--muted);
|
|
60
|
+
border-radius: 9999px;
|
|
61
|
+
border: 2px solid transparent;
|
|
62
|
+
}
|
|
63
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
64
|
+
background: var(--muted);
|
|
65
|
+
}
|
|
66
|
+
&::-webkit-scrollbar-corner {
|
|
67
|
+
background: transparent;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
2
|
+
import { resolve } from 'node:path'
|
|
3
|
+
import { build } from 'vite'
|
|
4
|
+
import { assert, expect, it } from 'vitest'
|
|
5
|
+
|
|
6
|
+
it('compiles non-shrinking size-4 icons with explicit overrides', async () => {
|
|
7
|
+
const entry = resolve(import.meta.dirname, 'icon-sizing.css')
|
|
8
|
+
const result = await build({
|
|
9
|
+
configFile: false,
|
|
10
|
+
logLevel: 'silent',
|
|
11
|
+
plugins: [
|
|
12
|
+
{
|
|
13
|
+
name: 'icon-sizing-fixture',
|
|
14
|
+
resolveId: (id) => (id === entry ? entry : undefined),
|
|
15
|
+
load: (id) =>
|
|
16
|
+
id === entry
|
|
17
|
+
? `
|
|
18
|
+
@layer theme, components, utilities;
|
|
19
|
+
@import 'tailwindcss/theme' layer(theme);
|
|
20
|
+
@import 'tailwindcss/utilities' layer(utilities) source(none);
|
|
21
|
+
@plugin './iconifyDynamicPlugin.ts';
|
|
22
|
+
@plugin './lucideStrokePlugin.js';
|
|
23
|
+
@source inline('icon-[lucide--check] icon-img-[comfy--comfy-logo] icon-mask-[comfy--comfy-logo] icon-s1.5-[lucide--check] size-3 size-6 w-8 h-5 shrink');
|
|
24
|
+
`
|
|
25
|
+
: undefined
|
|
26
|
+
},
|
|
27
|
+
tailwindcss()
|
|
28
|
+
],
|
|
29
|
+
build: {
|
|
30
|
+
write: false,
|
|
31
|
+
cssMinify: false,
|
|
32
|
+
rollupOptions: { input: entry }
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
assert(!Array.isArray(result) && 'output' in result)
|
|
37
|
+
const asset = result.output.find(
|
|
38
|
+
(entry) => entry.type === 'asset' && entry.fileName.endsWith('.css')
|
|
39
|
+
)
|
|
40
|
+
assert(asset?.type === 'asset')
|
|
41
|
+
const rules = new Map(
|
|
42
|
+
Array.from(
|
|
43
|
+
asset.source.toString().matchAll(/([^{}]+)\{([^{}]*)\}/g),
|
|
44
|
+
([, selector, body]) => [
|
|
45
|
+
selector.trim().replaceAll('\\', ''),
|
|
46
|
+
Object.fromEntries(
|
|
47
|
+
Array.from(
|
|
48
|
+
body.matchAll(/([\w-]+):\s*([^;]+);/g),
|
|
49
|
+
([, property, value]) => [property, value]
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
expect(
|
|
57
|
+
[
|
|
58
|
+
'.icon-[lucide--check]',
|
|
59
|
+
'.icon-img-[comfy--comfy-logo]',
|
|
60
|
+
'.icon-mask-[comfy--comfy-logo]',
|
|
61
|
+
'.icon-s1.5-[lucide--check]'
|
|
62
|
+
].map((selector) => {
|
|
63
|
+
const rule = rules.get(selector)
|
|
64
|
+
return [rule?.width, rule?.height, rule?.['flex-shrink']]
|
|
65
|
+
})
|
|
66
|
+
).toEqual(
|
|
67
|
+
Array(4).fill(['calc(var(--spacing) * 4)', 'calc(var(--spacing) * 4)', '0'])
|
|
68
|
+
)
|
|
69
|
+
expect(rules.get('.size-3')).toEqual({
|
|
70
|
+
width: 'calc(var(--spacing) * 3)',
|
|
71
|
+
height: 'calc(var(--spacing) * 3)'
|
|
72
|
+
})
|
|
73
|
+
expect(rules.get('.size-6')).toEqual({
|
|
74
|
+
width: 'calc(var(--spacing) * 6)',
|
|
75
|
+
height: 'calc(var(--spacing) * 6)'
|
|
76
|
+
})
|
|
77
|
+
expect(rules.get('.w-8')?.width).toBe('calc(var(--spacing) * 8)')
|
|
78
|
+
expect(rules.get('.h-5')?.height).toBe('calc(var(--spacing) * 5)')
|
|
79
|
+
expect(rules.get('.shrink')?.['flex-shrink']).toBe('1')
|
|
80
|
+
}, 30_000)
|
|
@@ -6,11 +6,10 @@ import plugin from 'tailwindcss/plugin'
|
|
|
6
6
|
|
|
7
7
|
import { COMFY_ICON_PREFIX, loadComfyIconSet } from './comfyIconSet.js'
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const SIZE = 'calc(var(--spacing) * 4)'
|
|
10
10
|
|
|
11
11
|
const options = {
|
|
12
|
-
iconSets: { [COMFY_ICON_PREFIX]: loadComfyIconSet() }
|
|
13
|
-
scale: SCALE
|
|
12
|
+
iconSets: { [COMFY_ICON_PREFIX]: loadComfyIconSet() }
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
function getModeCSSRules(icon: string, mode: 'mask' | 'background') {
|
|
@@ -30,15 +29,25 @@ function getModeCSSRules(icon: string, mode: 'mask' | 'background') {
|
|
|
30
29
|
})
|
|
31
30
|
if (generated.css.length !== 1) return {}
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
return {
|
|
33
|
+
...generated.common?.rules,
|
|
34
|
+
...generated.css[0].rules,
|
|
35
|
+
width: SIZE,
|
|
36
|
+
height: SIZE,
|
|
37
|
+
'flex-shrink': '0'
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
export default plugin(({ matchComponents }) => {
|
|
38
42
|
matchComponents({
|
|
39
43
|
icon: (icon) => {
|
|
40
44
|
try {
|
|
41
|
-
return
|
|
45
|
+
return {
|
|
46
|
+
...getDynamicCSSRules(icon, options),
|
|
47
|
+
width: SIZE,
|
|
48
|
+
height: SIZE,
|
|
49
|
+
'flex-shrink': '0'
|
|
50
|
+
}
|
|
42
51
|
} catch {
|
|
43
52
|
return {}
|
|
44
53
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SVG, cleanupSVG } from '@iconify/tools'
|
|
2
|
+
import { readFileSync, readdirSync } from 'node:fs'
|
|
3
|
+
import { resolve } from 'node:path'
|
|
4
|
+
import { expect, it } from 'vitest'
|
|
5
|
+
|
|
6
|
+
const iconsDirectory = resolve(import.meta.dirname, '../icons')
|
|
7
|
+
const icons = readdirSync(iconsDirectory).filter((name) =>
|
|
8
|
+
name.endsWith('.svg')
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
it.for(icons)('%s sanitizes without warnings', (name) => {
|
|
12
|
+
const svg = new SVG(readFileSync(resolve(iconsDirectory, name), 'utf8'))
|
|
13
|
+
|
|
14
|
+
cleanupSVG(svg)
|
|
15
|
+
|
|
16
|
+
expect(console.warn).not.toHaveBeenCalled()
|
|
17
|
+
})
|
|
@@ -25,7 +25,7 @@ const STROKE_WIDTHS = ['1', '1.3', '1.5', '2', '2.5']
|
|
|
25
25
|
const LUCIDE_PREFIX = 'lucide'
|
|
26
26
|
const SUPPORTED_PREFIXES = new Set([LUCIDE_PREFIX, COMFY_ICON_PREFIX])
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const SIZE = 'calc(var(--spacing) * 4)'
|
|
29
29
|
|
|
30
30
|
const STROKE_WIDTH_ATTR_RE = /stroke-width="[^"]*"/g
|
|
31
31
|
|
|
@@ -62,13 +62,12 @@ function getDynamicCSSRulesWithStroke(icon, strokeWidth) {
|
|
|
62
62
|
if (generated.css.length !== 1) {
|
|
63
63
|
throw new Error(`Cannot find "${icon}". Bad icon name?`)
|
|
64
64
|
}
|
|
65
|
-
if (SCALE && generated.common?.rules) {
|
|
66
|
-
generated.common.rules.height = SCALE + 'em'
|
|
67
|
-
generated.common.rules.width = SCALE + 'em'
|
|
68
|
-
}
|
|
69
65
|
return {
|
|
70
66
|
...generated.common?.rules,
|
|
71
|
-
...generated.css[0].rules
|
|
67
|
+
...generated.css[0].rules,
|
|
68
|
+
width: SIZE,
|
|
69
|
+
height: SIZE,
|
|
70
|
+
'flex-shrink': '0'
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|