@comfyorg/design-system 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -9
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +2 -0
- package/dist/badge/CreditBadge.vue.d.ts +7 -0
- package/dist/badge/CreditBadge.vue.js +35 -0
- package/dist/badge/badge.variants.d.ts +12 -0
- package/dist/button/Button.vue.d.ts +31 -0
- package/dist/button/Button.vue.js +2 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +37 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +15 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +2 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +2 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +2 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +57 -0
- package/dist/card/card.variants.d.ts +11 -0
- package/dist/chart/Chart.vue.d.ts +12 -0
- package/dist/chart/Chart.vue.js +180 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +49 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +2 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +23 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +22 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +28 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +34 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +73 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +41 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +93 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +12 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +2 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +60 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +36 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +53 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +54 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +15 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +141 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +58 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +107 -0
- package/dist/common/textTickerUtils.d.ts +1 -0
- package/dist/components.css +44 -0
- package/dist/composables/useAttrsClass.d.ts +12 -0
- package/dist/composables/useAttrsClass.js +18 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +18 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +27 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +27 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +19 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +61 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +72 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +25 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +24 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +73 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +33 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +24 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +24 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +27 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +35 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +55 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +38 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +2 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +39 -0
- package/dist/dialog/types.d.ts +6 -0
- package/dist/dialog/types.js +0 -0
- package/dist/field/Field.vue.d.ts +19 -0
- package/dist/field/Field.vue.js +42 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +24 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +39 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +24 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +28 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +18 -0
- package/dist/field/field.variants.d.ts +11 -0
- package/dist/hover-card/HoverCard.vue.d.ts +18 -0
- package/dist/hover-card/HoverCard.vue.js +26 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +68 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +23 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +33 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +40 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +31 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +32 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +2 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +68 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +2 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +2 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +2 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +2 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +22 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +124 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +2 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +28 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +19 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +28 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +32 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +62 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +52 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +2 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +79 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +2 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +2 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +35 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +2 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +2 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +2 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +2 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +2 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +2 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +2 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +2 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +2 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +15 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +7 -0
- package/dist/menu/mouseDownUtil.d.ts +3 -0
- package/dist/menu/types.d.ts +69 -0
- package/dist/menu/types.js +0 -0
- package/dist/menu/usePointMenu.d.ts +19 -0
- package/dist/menu/usePointMenu.js +56 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +75 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +15 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +137 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +2 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +2 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +42 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +16 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +75 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +35 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +35 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +25 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +56 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +140 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +91 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +13 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +45 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +42 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +104 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +234 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +127 -0
- package/dist/search-input/searchInput.variants.d.ts +45 -0
- package/dist/select/DropdownControl.vue.d.ts +16 -0
- package/dist/select/DropdownControl.vue.js +48 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +2 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +2 -0
- package/dist/select/SelectItem.vue.d.ts +18 -0
- package/dist/select/SelectItem.vue.js +2 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +2 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +2 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +2 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +2 -0
- package/dist/select/types.d.ts +4 -0
- package/dist/select/types.js +0 -0
- package/dist/select/useSelectSearch.d.ts +3 -0
- package/dist/select/useSelectSearch.js +15 -0
- package/dist/shared/Badge-D3uWa3yk.js +92 -0
- package/dist/shared/Button-CilmsOkY.js +141 -0
- package/dist/shared/Card-l7baUdn0.js +34 -0
- package/dist/shared/CardFooter-BM6EmVi7.js +21 -0
- package/dist/shared/CardHeader-B5To28Jp.js +21 -0
- package/dist/shared/ContextMenuContent-CNQHJQ81.js +64 -0
- package/dist/shared/DialogTitle-CfkkTGuU.js +43 -0
- package/dist/shared/Input-39RLwDr2.js +38 -0
- package/dist/shared/InputGroup-kjQKkhyB.js +25 -0
- package/dist/shared/InputGroupAddon-DLDRT0CQ.js +38 -0
- package/dist/shared/InputGroupButton-BoEp2apg.js +41 -0
- package/dist/shared/InputGroupInput-E2MlEVUU.js +32 -0
- package/dist/shared/Label-Cx_lFofI.js +36 -0
- package/dist/shared/MenuAction-BdghJ23k.js +124 -0
- package/dist/shared/MenuContent-ChqlM3xA.js +80 -0
- package/dist/shared/MenuItemContent--dPNoBmU.js +69 -0
- package/dist/shared/MenuItems-BJKetPV-.js +69 -0
- package/dist/shared/MenuRadioGroup-Bpjt9sHI.js +65 -0
- package/dist/shared/MenuRadioItem-h7hh_RGU.js +36 -0
- package/dist/shared/MenuSeparator-Dm6CkPqB.js +28 -0
- package/dist/shared/MenuSub-Dbnj2w-X.js +23 -0
- package/dist/shared/MenuSubContent-M-g3fllh.js +69 -0
- package/dist/shared/MenuSubTrigger-D6-3s2NL.js +35 -0
- package/dist/shared/MenuSubmenu-QHWMyfKF.js +43 -0
- package/dist/shared/MultiSelectContent-c1D5avjh.js +162 -0
- package/dist/shared/MultiSelectTrigger-lmuXqETa.js +52 -0
- package/dist/shared/OverlayIcon-DntJI-mm.js +45 -0
- package/dist/shared/SearchableSingleSelect-Dnti1kqJ.js +184 -0
- package/dist/shared/Select-CP3OZjtL.js +33 -0
- package/dist/shared/SelectContent-C8aNlcFf.js +91 -0
- package/dist/shared/SelectItem-tU4CIa5J.js +42 -0
- package/dist/shared/SelectScrollDownButton-Dvig5MVc.js +30 -0
- package/dist/shared/SelectScrollUpButton-lv-npT6v.js +30 -0
- package/dist/shared/SelectTrigger-CCDiZW91.js +47 -0
- package/dist/shared/SelectValue-DFZFSiQp.js +23 -0
- package/dist/shared/Switch-DsCzHpDU.js +63 -0
- package/dist/shared/TableHead-OxGist4m.js +24 -0
- package/dist/shared/TagRemoveButton-BiCdscIC.js +38 -0
- package/dist/shared/TextTooltip-ClHQl84h.js +29 -0
- package/dist/shared/Tooltip-DbXyHv20.js +34 -0
- package/dist/shared/TooltipContent-Bju-U7gc.js +91 -0
- package/dist/shared/TooltipTrigger-CVwISmWo.js +65 -0
- package/dist/shared/_plugin-vue_export-helper-BOaGB7Aw.js +8 -0
- package/dist/shared/searchInput.variants-NOge_52E.js +47 -0
- package/dist/shared/select.variants-BPn5Z7N1.js +40 -0
- package/dist/shared/src-CnJ6AzLP.js +12 -0
- package/dist/shared/tabKeys-BISOrxWu.js +4 -0
- package/dist/shared/tabs.variants-XUREdHry.js +23 -0
- package/dist/shared/tag.variants-CCqCn8Jc.js +34 -0
- package/dist/shared/tagsInputContext-QXu7RrG5.js +5 -0
- package/dist/shared/toggleGroup.variants-CvjZDHMw.js +39 -0
- package/dist/shared/tooltipContext-BL5JtM0i.js +4 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +2 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +187 -0
- package/dist/single-select/types.d.ts +25 -0
- package/dist/single-select/types.js +0 -0
- package/dist/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/skeleton/Skeleton.vue.js +24 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +88 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +41 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +40 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +45 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +37 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +2 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +76 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +31 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +28 -0
- package/dist/tab/tab.variants.d.ts +9 -0
- package/dist/tab/tabKeys.d.ts +7 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/Table.vue.js +23 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +21 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +21 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +2 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +21 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +21 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +47 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +19 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +43 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +37 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +38 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +39 -0
- package/dist/tabs/tabs.variants.d.ts +21 -0
- package/dist/tags-input/TagsInput.vue.d.ts +32 -0
- package/dist/tags-input/TagsInput.vue.js +98 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +56 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +34 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +35 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +28 -0
- package/dist/tags-input/tagsInputContext.d.ts +4 -0
- package/dist/textarea/Textarea.vue.d.ts +17 -0
- package/dist/textarea/Textarea.vue.js +33 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +42 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +31 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +29 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +47 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +55 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +31 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +33 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +61 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +45 -0
- package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
- package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
- package/dist/tooltip/TextTooltip.vue.js +2 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +2 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +2 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +39 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +2 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +8 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +110 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +55 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +82 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +7 -0
- package/dist-types/button.variants.d.ts +16 -0
- package/dist-types/select.variants.d.ts +24 -0
- package/dist-types/tag.variants.d.ts +21 -0
- package/dist-types/workspaceAvatar.d.ts +5 -0
- package/package.json +167 -7
- package/src/button.variants.ts +84 -0
- package/src/css/_deprecated-aliases.css +12 -0
- package/src/css/_legacy-palette.css +33 -0
- package/src/css/_legacy-ui.css +418 -0
- package/src/css/_markdown.css +227 -0
- package/src/css/_mask-editor.css +180 -0
- package/src/css/_palette.css +43 -0
- package/src/css/base.css +0 -6
- package/src/css/iconSizing.test.ts +80 -0
- package/src/css/iconifyDynamicPlugin.ts +15 -6
- package/src/css/icons.test.ts +17 -0
- package/src/css/lucideStrokePlugin.js +5 -6
- package/src/css/style.css +109 -1698
- package/src/icons/README.md +33 -26
- package/src/icons/astroid-filled.svg +3 -0
- package/src/icons/claude.svg +1 -1
- package/src/icons/comfy-cloud.svg +4 -0
- package/src/icons/comfy-logo.svg +2 -2
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
- package/src/workspaceAvatar.ts +54 -0
- package/src/icons/credits.svg +0 -3
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
#maskEditor_brush {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 8889;
|
|
4
|
+
pointer-events: none;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
outline: 1px dashed black;
|
|
8
|
+
box-shadow: 0 0 0 1px white;
|
|
9
|
+
}
|
|
10
|
+
#maskEditor_brushPreviewGradient {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.maskEditor_sidePanelBrushRange {
|
|
19
|
+
width: 180px;
|
|
20
|
+
appearance: none;
|
|
21
|
+
background: transparent;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
.maskEditor_sidePanelBrushRange::-webkit-slider-thumb {
|
|
25
|
+
height: 20px;
|
|
26
|
+
width: 20px;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
cursor: grab;
|
|
29
|
+
margin-top: -8px;
|
|
30
|
+
background: var(--muted);
|
|
31
|
+
border: 1px solid var(--border);
|
|
32
|
+
}
|
|
33
|
+
.maskEditor_sidePanelBrushRange::-moz-range-thumb {
|
|
34
|
+
height: 20px;
|
|
35
|
+
width: 20px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
cursor: grab;
|
|
38
|
+
background: var(--muted);
|
|
39
|
+
border: 1px solid var(--border);
|
|
40
|
+
}
|
|
41
|
+
.maskEditor_sidePanelBrushRange::-webkit-slider-runnable-track {
|
|
42
|
+
background: var(--border);
|
|
43
|
+
height: 3px;
|
|
44
|
+
}
|
|
45
|
+
.maskEditor_sidePanelBrushRange::-moz-range-track {
|
|
46
|
+
background: var(--border);
|
|
47
|
+
height: 3px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.maskEditor_toolPanelContainer {
|
|
51
|
+
width: 4rem;
|
|
52
|
+
height: 4rem;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
position: relative;
|
|
57
|
+
transition: background-color 0.2s;
|
|
58
|
+
}
|
|
59
|
+
.maskEditor_toolPanelContainerSelected .maskEditor_toolPanelIndicator {
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
.maskEditor_toolPanelContainer svg {
|
|
63
|
+
width: 75%;
|
|
64
|
+
aspect-ratio: 1/1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.maskEditor_toolPanelIndicator {
|
|
68
|
+
display: none;
|
|
69
|
+
height: 100%;
|
|
70
|
+
width: 4px;
|
|
71
|
+
position: absolute;
|
|
72
|
+
left: 0;
|
|
73
|
+
background: currentColor;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#maskEditorCanvasContainer {
|
|
77
|
+
position: absolute;
|
|
78
|
+
width: 1000px;
|
|
79
|
+
height: 667px;
|
|
80
|
+
left: 359px;
|
|
81
|
+
top: 280px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.maskEditor_sidePanelToggleContainer {
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
display: inline-block;
|
|
87
|
+
position: absolute;
|
|
88
|
+
right: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.maskEditor_sidePanelToggleSwitch {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
border-radius: 16px;
|
|
94
|
+
width: 40px;
|
|
95
|
+
height: 24px;
|
|
96
|
+
position: relative;
|
|
97
|
+
vertical-align: middle;
|
|
98
|
+
transition: background 0.25s;
|
|
99
|
+
background: var(--muted);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.maskEditor_sidePanelToggleSwitch::before,
|
|
103
|
+
.maskEditor_sidePanelToggleSwitch::after {
|
|
104
|
+
content: '';
|
|
105
|
+
}
|
|
106
|
+
.maskEditor_sidePanelToggleSwitch::before {
|
|
107
|
+
display: block;
|
|
108
|
+
background: linear-gradient(to bottom, #fff 0%, #eee 100%);
|
|
109
|
+
border-radius: 50%;
|
|
110
|
+
width: 16px;
|
|
111
|
+
height: 16px;
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 4px;
|
|
114
|
+
left: 4px;
|
|
115
|
+
transition: ease 0.2s;
|
|
116
|
+
}
|
|
117
|
+
.maskEditor_sidePanelToggleContainer:hover
|
|
118
|
+
.maskEditor_sidePanelToggleSwitch::before {
|
|
119
|
+
background: linear-gradient(to bottom, #fff 0%, #fff 100%);
|
|
120
|
+
}
|
|
121
|
+
.maskEditor_sidePanelToggleCheckbox:checked
|
|
122
|
+
+ .maskEditor_sidePanelToggleSwitch {
|
|
123
|
+
background: var(--primary);
|
|
124
|
+
}
|
|
125
|
+
.maskEditor_sidePanelToggleCheckbox:checked
|
|
126
|
+
+ .maskEditor_sidePanelToggleSwitch::before {
|
|
127
|
+
background: var(--background);
|
|
128
|
+
left: 20px;
|
|
129
|
+
}
|
|
130
|
+
.maskEditor_sidePanelToggleCheckbox {
|
|
131
|
+
position: absolute;
|
|
132
|
+
visibility: hidden;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.maskEditor_sidePanelDropdown {
|
|
136
|
+
border: 1px solid var(--border);
|
|
137
|
+
background: var(--background);
|
|
138
|
+
height: 24px;
|
|
139
|
+
padding-left: 5px;
|
|
140
|
+
padding-right: 5px;
|
|
141
|
+
border-radius: 6px;
|
|
142
|
+
transition: background 0.1s;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.maskEditor_sidePanelDropdown option {
|
|
146
|
+
background: var(--background);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.maskEditor_sidePanelDropdown:focus {
|
|
150
|
+
outline: 1px solid var(--primary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.maskEditor_sidePanelDropdown option:hover {
|
|
154
|
+
background: white;
|
|
155
|
+
}
|
|
156
|
+
.maskEditor_sidePanelDropdown option:active {
|
|
157
|
+
background: var(--muted);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.maskEditor_sidePanelLayerPreviewContainer {
|
|
161
|
+
width: 40px;
|
|
162
|
+
height: 30px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.maskEditor_sidePanelLayerPreviewContainer > svg {
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: 100%;
|
|
168
|
+
object-fit: contain;
|
|
169
|
+
fill: var(--foreground);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.maskEditor_sidePanelImageLayerImage {
|
|
173
|
+
width: 100%;
|
|
174
|
+
height: 100%;
|
|
175
|
+
object-fit: contain;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.maskEditor_sidePanelLayerCheckbox {
|
|
179
|
+
margin-left: 15px;
|
|
180
|
+
}
|
package/src/css/_palette.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@theme {
|
|
2
2
|
/* Font Families */
|
|
3
3
|
--font-inter: 'Inter', sans-serif;
|
|
4
|
+
--font-formula: 'PP Formula', 'Inter', sans-serif;
|
|
4
5
|
|
|
5
6
|
/* Palette Colors */
|
|
6
7
|
--color-charcoal-100: #55565e;
|
|
@@ -11,6 +12,8 @@
|
|
|
11
12
|
--color-charcoal-600: #262729;
|
|
12
13
|
--color-charcoal-700: #202121;
|
|
13
14
|
--color-charcoal-800: #171718;
|
|
15
|
+
--color-charcoal-900: #111111;
|
|
16
|
+
--color-charcoal-950: #09090a;
|
|
14
17
|
|
|
15
18
|
--color-neutral-550: #636363;
|
|
16
19
|
|
|
@@ -27,6 +30,37 @@
|
|
|
27
30
|
--color-smoke-700: #a0a0a0;
|
|
28
31
|
--color-smoke-800: #8a8a8a;
|
|
29
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
|
+
|
|
30
64
|
/* Plum */
|
|
31
65
|
--color-plum-300: #afa3db;
|
|
32
66
|
--color-plum-400: #8d7fc5;
|
|
@@ -52,4 +86,13 @@
|
|
|
52
86
|
--color-sapphire-700: #172dd7;
|
|
53
87
|
--color-brand-yellow: var(--color-electric-400);
|
|
54
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;
|
|
55
98
|
}
|
package/src/css/base.css
CHANGED
|
@@ -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
|
+
})
|
|
@@ -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
|
|