Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Update components icons (#1348)

Bogdan Chadkin98b92c1b3459
diff --git a/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx b/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx
index 36eec48eaa..ce846dafdf 100644
--- a/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx
+++ b/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx
@@ -1,5 +1,5 @@
import { useState } from "react";
-import { ButtonIcon } from "@webstudio-is/icons";
+import { ButtonElementIcon } from "@webstudio-is/icons";
import { PropsPanel } from "./props-panel";
import { usePropsLogic } from "./use-props-logic";
import { pagesStore } from "~/shared/nano-states";
@@ -104,7 +104,7 @@ const componentMeta: WsComponentMeta = {
category: "general",
type: "rich-text",
label: "Button",
- Icon: ButtonIcon,
+ Icon: ButtonElementIcon,
};
const componentPropsMeta: WsComponentPropsMeta = {
diff --git a/packages/icons/icons/body.svg b/packages/icons/icons/body.svg
new file mode 100644
index 0000000000..289d86f6f5
--- /dev/null
+++ b/packages/icons/icons/body.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.17304 1.3501H10.8269C11.3641 1.35009 11.8064 1.35008 12.1665 1.37951C12.5402 1.41004 12.8822 1.47547 13.2031 1.63893C13.7017 1.893 14.1071 2.29839 14.3611 2.79702C14.5246 3.11784 14.59 3.45987 14.6206 3.83357C14.65 4.19368 14.65 4.63601 14.65 5.17316V10.827C14.65 11.3642 14.65 11.8065 14.6206 12.1666C14.59 12.5403 14.5246 12.8824 14.3611 13.2032C14.1071 13.7018 13.7017 14.1072 13.2031 14.3613C12.8822 14.5247 12.5402 14.5902 12.1665 14.6207C11.8064 14.6501 11.3641 14.6501 10.8269 14.6501H5.17304C4.63588 14.6501 4.19356 14.6501 3.83345 14.6207C3.45975 14.5902 3.11772 14.5247 2.7969 14.3613C2.29827 14.1072 1.89287 13.7018 1.63881 13.2032C1.47534 12.8824 1.40992 12.5403 1.37938 12.1666C1.34996 11.8065 1.34997 11.3642 1.34998 10.827V5.17316C1.34997 4.636 1.34996 4.19368 1.37938 3.83357C1.40992 3.45987 1.47534 3.11784 1.63881 2.79702C1.89287 2.29839 2.29827 1.893 2.7969 1.63893C3.11772 1.47547 3.45975 1.41004 3.83345 1.37951C4.19356 1.35008 4.63588 1.35009 5.17304 1.3501ZM2.64998 6.6501V10.8001C2.64998 11.3709 2.65048 11.7599 2.67507 12.0608C2.69903 12.3541 2.74259 12.506 2.79712 12.613C2.92655 12.867 3.13307 13.0735 3.38709 13.203C3.4941 13.2575 3.646 13.301 3.93931 13.325C4.24021 13.3496 4.6292 13.3501 5.19998 13.3501H10.8C11.3708 13.3501 11.7597 13.3496 12.0606 13.325C12.3539 13.301 12.5059 13.2575 12.6129 13.203C12.8669 13.0735 13.0734 12.867 13.2028 12.613C13.2574 12.506 13.3009 12.3541 13.3249 12.0608C13.3495 11.7599 13.35 11.3709 13.35 10.8001V6.6501H2.64998ZM13.35 5.3501H2.64998V5.2001C2.64998 4.62932 2.65048 4.24033 2.67507 3.93943C2.69903 3.64613 2.74259 3.49422 2.79712 3.38721C2.92655 3.13319 3.13307 2.92667 3.38709 2.79724C3.4941 2.74272 3.646 2.69915 3.93931 2.67519C4.24021 2.6506 4.6292 2.6501 5.19998 2.6501H10.8C11.3708 2.6501 11.7597 2.6506 12.0606 2.67519C12.3539 2.69915 12.5059 2.74272 12.6129 2.79724C12.8669 2.92667 13.0734 3.13319 13.2028 3.38721C13.2574 3.49422 13.3009 3.64613 13.3249 3.93943C13.3495 4.24033 13.35 4.62932 13.35 5.2001V5.3501Z" />
+</svg>
diff --git a/packages/icons/icons/button-element.svg b/packages/icons/icons/button-element.svg
new file mode 100644
index 0000000000..a77cde3545
--- /dev/null
+++ b/packages/icons/icons/button-element.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M0.68335 7.47402C0.68335 5.62387 2.1832 4.12402 4.03335 4.12402H11.9667C13.8168 4.12402 15.3167 5.62387 15.3167 7.47402V8.77402C15.3167 10.6242 13.8168 12.124 11.9667 12.124H4.03335C2.18319 12.124 0.68335 10.6242 0.68335 8.77402V7.47402ZM4.03335 5.42402C2.90117 5.42402 1.98335 6.34184 1.98335 7.47402V8.77402C1.98335 9.90621 2.90117 10.824 4.03335 10.824H11.9667C13.0989 10.824 14.0167 9.90621 14.0167 8.77402V7.47402C14.0167 6.34184 13.0989 5.42402 11.9667 5.42402H4.03335ZM3.85001 8.124C3.85001 7.67297 4.21564 7.30733 4.66667 7.30733C5.11771 7.30733 5.48334 7.67297 5.48334 8.124C5.48334 8.57503 5.11771 8.94067 4.66667 8.94067C4.21564 8.94067 3.85001 8.57503 3.85001 8.124ZM7.18334 8.124C7.18334 7.67296 7.54898 7.30733 8.00001 7.30733C8.45104 7.30733 8.81667 7.67296 8.81667 8.124C8.81667 8.57503 8.45104 8.94067 8.00001 8.94067C7.54897 8.94067 7.18334 8.57503 7.18334 8.124ZM10.5167 8.124C10.5167 7.67297 10.8823 7.30733 11.3333 7.30733C11.7844 7.30733 12.15 7.67296 12.15 8.124C12.15 8.57503 11.7844 8.94067 11.3333 8.94067C10.8823 8.94067 10.5167 8.57503 10.5167 8.124Z" />
+</svg>
diff --git a/packages/icons/icons/form-text-field.svg b/packages/icons/icons/form-text-field.svg
new file mode 100644
index 0000000000..7d6fbcea2d
--- /dev/null
+++ b/packages/icons/icons/form-text-field.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M1.34998 4.6601C1.34998 3.9366 1.93648 3.3501 2.65998 3.3501H13.3399C14.0634 3.3501 14.6499 3.9366 14.6499 4.6601V11.34C14.6499 12.0635 14.0634 12.65 13.3399 12.65H2.65998C1.93648 12.65 1.34998 12.0635 1.34998 11.34V4.6601ZM2.65048 4.65644C2.65034 4.65676 2.64998 4.65762 2.64998 4.6601V11.34C2.64998 11.3425 2.65034 11.3434 2.65048 11.3437L2.65049 11.3437C2.6508 11.3444 2.65153 11.3457 2.6529 11.3471C2.65428 11.3485 2.65556 11.3492 2.65628 11.3495C2.65658 11.3496 2.6574 11.35 2.65998 11.35H13.3399C13.3425 11.35 13.3433 11.3496 13.3436 11.3495C13.3444 11.3492 13.3456 11.3485 13.347 11.3471C13.3484 11.3457 13.3491 11.3444 13.3494 11.3437L13.3494 11.3437C13.3496 11.3434 13.3499 11.3425 13.3499 11.34V4.6601C13.3499 4.65752 13.3495 4.6567 13.3494 4.6564C13.3491 4.65568 13.3484 4.6544 13.347 4.65303C13.3456 4.65165 13.3444 4.65092 13.3436 4.65062L13.3436 4.6506C13.3433 4.65046 13.3424 4.6501 13.3399 4.6501H2.65998C2.65749 4.6501 2.65664 4.65046 2.65632 4.6506L2.65628 4.65062C2.65556 4.65092 2.65428 4.65165 2.6529 4.65303C2.65153 4.6544 2.6508 4.65568 2.65049 4.6564L2.65048 4.65644ZM4.66743 6.01518C5.02641 6.01518 5.31743 6.30619 5.31743 6.66518V9.33518C5.31743 9.69416 5.02641 9.98518 4.66743 9.98518C4.30844 9.98518 4.01743 9.69416 4.01743 9.33518V6.66518C4.01743 6.30619 4.30844 6.01518 4.66743 6.01518Z" />
+</svg>
diff --git a/packages/icons/icons/form.svg b/packages/icons/icons/form.svg
new file mode 100644
index 0000000000..c490ce3fe2
--- /dev/null
+++ b/packages/icons/icons/form.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M3.3 3.3V4.7H12.7V3.3H3.3ZM13.6201 5.78456C13.8515 5.60141 14 5.31804 14 5V3C14 2.44772 13.5523 2 13 2H3C2.44772 2 2 2.44772 2 3V5C2 5.31804 2.14847 5.60141 2.37989 5.78456C2.55033 5.91946 2.76576 6 3 6H13C13.2342 6 13.4497 5.91946 13.6201 5.78456ZM13.6201 7.21544C13.4497 7.08054 13.2342 7 13 7H3C2.76576 7 2.55033 7.08054 2.37989 7.21544C2.14847 7.39859 2 7.68196 2 8V10C2 10.318 2.14848 10.6014 2.37989 10.7846C2.55033 10.9195 2.76576 11 3 11H13C13.5523 11 14 10.5523 14 10V8C14 7.68196 13.8515 7.39859 13.6201 7.21544ZM8.71414 12.3C8.53265 12.1149 8.27974 12 8 12H3C2.76576 12 2.55033 12.0805 2.37989 12.2154C2.14848 12.3986 2 12.682 2 13C2 13.5523 2.44772 14 3 14H8C8.55228 14 9 13.5523 9 13C9 12.7275 8.89097 12.4804 8.71414 12.3ZM3.3 8.3V9.7H12.7V8.3H3.3Z" />
+</svg>
diff --git a/packages/icons/icons/heading.svg b/packages/icons/icons/heading.svg
new file mode 100644
index 0000000000..f208a3d70b
--- /dev/null
+++ b/packages/icons/icons/heading.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M2.01666 2.6666C2.01666 2.30762 2.30768 2.0166 2.66666 2.0166H5.33333C5.69231 2.0166 5.98333 2.30762 5.98333 2.6666C5.98333 3.02559 5.69231 3.3166 5.33333 3.3166H4.65V7.34993L11.35 7.34994V3.3166H10.6667C10.3077 3.3166 10.0167 3.02559 10.0167 2.6666C10.0167 2.30762 10.3077 2.0166 10.6667 2.0166H13.3333C13.6923 2.0166 13.9833 2.30762 13.9833 2.6666C13.9833 3.02559 13.6923 3.3166 13.3333 3.3166H12.65V12.6833H13.3333C13.6923 12.6833 13.9833 12.9743 13.9833 13.3333C13.9833 13.6923 13.6923 13.9833 13.3333 13.9833H10.6667C10.3077 13.9833 10.0167 13.6923 10.0167 13.3333C10.0167 12.9743 10.3077 12.6833 10.6667 12.6833H11.35V8.64994L4.65 8.64993V12.6833H5.33333C5.69231 12.6833 5.98333 12.9743 5.98333 13.3333C5.98333 13.6923 5.69231 13.9833 5.33333 13.9833H2.66666C2.30768 13.9833 2.01666 13.6923 2.01666 13.3333C2.01666 12.9743 2.30768 12.6833 2.66666 12.6833H3.35V3.3166H2.66666C2.30768 3.3166 2.01666 3.02559 2.01666 2.6666Z" />
+</svg>
diff --git a/packages/icons/icons/image.svg b/packages/icons/icons/image.svg
new file mode 100644
index 0000000000..9a6f0d2e6d
--- /dev/null
+++ b/packages/icons/icons/image.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.827 1.3501H5.17308C4.63593 1.35009 4.19361 1.35008 3.8335 1.37951C3.4598 1.41004 3.11777 1.47547 2.79695 1.63893C2.29832 1.893 1.89292 2.29839 1.63886 2.79702C1.47539 3.11784 1.40996 3.45987 1.37943 3.83357C1.35001 4.19368 1.35002 4.636 1.35002 5.17316V10.827C1.35002 11.3642 1.35001 11.8065 1.37943 12.1666C1.40996 12.5403 1.47539 12.8824 1.63886 13.2032C1.89292 13.7018 2.29832 14.1072 2.79695 14.3613C3.11776 14.5247 3.4598 14.5902 3.8335 14.6207C4.19361 14.6501 4.63593 14.6501 5.17309 14.6501H10.827C10.8428 14.6501 10.8586 14.6501 10.8742 14.6501L11.4036 14.6501C11.5842 14.6501 11.7607 14.6502 11.9025 14.6376C11.908 14.6371 11.9136 14.6366 11.9195 14.636C12.0058 14.6321 12.0881 14.6271 12.1666 14.6207C12.5403 14.5902 12.8823 14.5247 13.2031 14.3613C13.7017 14.1072 14.1071 13.7018 14.3612 13.2032C14.5247 12.8824 14.5901 12.5403 14.6206 12.1666C14.65 11.8065 14.65 11.3642 14.65 10.827V5.17316C14.65 4.636 14.65 4.19368 14.6206 3.83357C14.5901 3.45987 14.5247 3.11784 14.3612 2.79702C14.1071 2.29839 13.7017 1.893 13.2031 1.63893C12.8823 1.47547 12.5403 1.41004 12.1666 1.37951C11.8064 1.35008 11.3641 1.35009 10.827 1.3501ZM11.0973 13.3499C11.0039 13.3501 10.9051 13.3501 10.8 13.3501H5.20002C4.62925 13.3501 4.24025 13.3496 3.93936 13.325C3.64605 13.301 3.49414 13.2575 3.38714 13.203C3.13312 13.0735 2.92659 12.867 2.79716 12.613C2.74264 12.506 2.69908 12.3541 2.67511 12.0608C2.65053 11.7599 2.65002 11.3709 2.65002 10.8001V10.2693L5.03873 7.88063C5.17832 7.74104 5.25573 7.66435 5.31581 7.61334C5.32254 7.60763 5.32838 7.60285 5.33336 7.59887C5.33834 7.60285 5.34418 7.60763 5.3509 7.61334C5.41099 7.66435 5.4884 7.74104 5.62798 7.88063L11.0973 13.3499ZM2.65002 8.43086L4.13428 6.9466C4.25346 6.82739 4.36887 6.71195 4.47448 6.6223C4.59026 6.52401 4.73627 6.41916 4.92648 6.35735C5.19093 6.27143 5.47579 6.27143 5.74023 6.35735C5.93045 6.41916 6.07646 6.52401 6.19223 6.6223C6.29784 6.71195 6.41325 6.82739 6.53243 6.94659L12.2332 12.6473C12.3609 12.775 12.4857 12.8998 12.5771 13.009C12.6076 13.0454 12.649 13.0963 12.6902 13.1603C12.9088 13.0303 13.0868 12.8407 13.2029 12.613C13.2574 12.506 13.301 12.3541 13.3249 12.0608C13.3495 11.7599 13.35 11.3709 13.35 10.8001V5.2001C13.35 4.62932 13.3495 4.24033 13.3249 3.93943C13.301 3.64613 13.2574 3.49422 13.2029 3.38721C13.0735 3.13319 12.8669 2.92667 12.6129 2.79724C12.5059 2.74272 12.354 2.69915 12.0607 2.67519C11.7598 2.6506 11.3708 2.6501 10.8 2.6501H5.20002C4.62925 2.6501 4.24025 2.6506 3.93936 2.67519C3.64605 2.69915 3.49414 2.74272 3.38714 2.79724C3.13312 2.92667 2.92659 3.13319 2.79716 3.38721C2.74264 3.49422 2.69908 3.64613 2.67511 3.93943C2.65053 4.24033 2.65002 4.62932 2.65002 5.2001V8.43086ZM10.3334 4.98343C10.7108 4.98343 11.0167 5.28937 11.0167 5.66676C11.0167 6.04416 10.7108 6.3501 10.3334 6.3501C9.95596 6.3501 9.65002 6.04416 9.65002 5.66676C9.65002 5.28937 9.95596 4.98343 10.3334 4.98343ZM12.3167 5.66676C12.3167 4.5714 11.4287 3.68343 10.3334 3.68343C9.23799 3.68343 8.35002 4.5714 8.35002 5.66676C8.35002 6.76213 9.23799 7.6501 10.3334 7.6501C11.4287 7.6501 12.3167 6.76213 12.3167 5.66676Z" />
+</svg>
diff --git a/packages/icons/icons/text-block.svg b/packages/icons/icons/text-block.svg
new file mode 100644
index 0000000000..fd3b446236
--- /dev/null
+++ b/packages/icons/icons/text-block.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.17304 1.3501H10.8269C11.3641 1.35009 11.8064 1.35008 12.1665 1.37951C12.5402 1.41004 12.8822 1.47547 13.2031 1.63893C13.7017 1.893 14.1071 2.29839 14.3611 2.79702C14.5246 3.11784 14.59 3.45987 14.6206 3.83357C14.65 4.19368 14.65 4.636 14.65 5.17316V10.827C14.65 11.3642 14.65 11.8065 14.6206 12.1666C14.59 12.5403 14.5246 12.8824 14.3611 13.2032C14.1071 13.7018 13.7017 14.1072 13.2031 14.3613C12.8822 14.5247 12.5402 14.5902 12.1665 14.6207C11.8064 14.6501 11.3641 14.6501 10.8269 14.6501H5.17304C4.63588 14.6501 4.19356 14.6501 3.83345 14.6207C3.45975 14.5902 3.11772 14.5247 2.7969 14.3613C2.29827 14.1072 1.89287 13.7018 1.63881 13.2032C1.47534 12.8824 1.40992 12.5403 1.37938 12.1666C1.34996 11.8065 1.34997 11.3642 1.34998 10.827V5.17316C1.34997 4.636 1.34996 4.19368 1.37938 3.83357C1.40992 3.45987 1.47534 3.11784 1.63881 2.79702C1.89287 2.29839 2.29827 1.893 2.7969 1.63893C3.11772 1.47547 3.45975 1.41004 3.83345 1.37951C4.19356 1.35008 4.63588 1.35009 5.17304 1.3501ZM3.93931 2.67519C3.646 2.69915 3.4941 2.74272 3.38709 2.79724C3.13307 2.92667 2.92655 3.13319 2.79712 3.38721C2.74259 3.49422 2.69903 3.64613 2.67507 3.93943C2.65048 4.24033 2.64998 4.62932 2.64998 5.2001V10.8001C2.64998 11.3709 2.65048 11.7599 2.67507 12.0608C2.69903 12.3541 2.74259 12.506 2.79712 12.613C2.92655 12.867 3.13307 13.0735 3.38709 13.203C3.4941 13.2575 3.646 13.301 3.93931 13.325C4.24021 13.3496 4.6292 13.3501 5.19998 13.3501H10.8C11.3708 13.3501 11.7597 13.3496 12.0606 13.325C12.3539 13.301 12.5059 13.2575 12.6129 13.203C12.8669 13.0735 13.0734 12.867 13.2028 12.613C13.2574 12.506 13.3009 12.3541 13.3249 12.0608C13.3495 11.7599 13.35 11.3709 13.35 10.8001V5.2001C13.35 4.62932 13.3495 4.24033 13.3249 3.93943C13.3009 3.64613 13.2574 3.49422 13.2028 3.38721C13.0734 3.13319 12.8669 2.92667 12.6129 2.79724C12.5059 2.74272 12.3539 2.69915 12.0606 2.67519C11.7597 2.6506 11.3708 2.6501 10.8 2.6501H5.19998C4.6292 2.6501 4.24021 2.6506 3.93931 2.67519ZM5.19854 4.01676C5.20374 4.01676 5.20889 4.01677 5.21398 4.01677H10.786C10.7911 4.01677 10.7962 4.01676 10.8014 4.01676C10.8827 4.01673 10.9783 4.0167 11.0622 4.02356C11.1591 4.03147 11.2962 4.05167 11.4394 4.12467C11.6257 4.21958 11.7772 4.37103 11.8721 4.55731C11.9451 4.70058 11.9653 4.83763 11.9732 4.93452C11.98 5.01845 11.98 5.114 11.98 5.19533C11.98 5.20053 11.98 5.20568 11.98 5.21077V6.0001C11.98 6.35908 11.689 6.6501 11.33 6.6501C10.971 6.6501 10.68 6.35908 10.68 6.0001V5.31676H8.64998V10.6834H9.99998C10.359 10.6834 10.65 10.9744 10.65 11.3334C10.65 11.6924 10.359 11.9834 9.99998 11.9834H5.99998C5.64099 11.9834 5.34998 11.6924 5.34998 11.3334C5.34998 10.9744 5.64099 10.6834 5.99998 10.6834H7.34998V5.31676H5.31998V6.0001C5.31998 6.35908 5.02896 6.6501 4.66998 6.6501C4.31099 6.6501 4.01998 6.35908 4.01998 6.0001V5.21077C4.01998 5.20568 4.01997 5.20054 4.01997 5.19533C4.01994 5.114 4.01991 5.01846 4.02677 4.93452C4.03468 4.83763 4.05488 4.70058 4.12788 4.55731C4.22279 4.37103 4.37425 4.21958 4.56053 4.12467C4.70379 4.05167 4.84084 4.03147 4.93773 4.02356C5.02166 4.0167 5.11721 4.01673 5.19854 4.01676Z" />
+</svg>
diff --git a/packages/icons/src/__generated__/body.tsx b/packages/icons/src/__generated__/body.tsx
new file mode 100644
index 0000000000..7b996f39a4
--- /dev/null
+++ b/packages/icons/src/__generated__/body.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/body.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const BodyIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M5.173 1.35h5.654c.537 0 .98 0 1.34.03.373.03.715.095 1.036.259.499.254.904.66 1.158 1.158.164.32.229.663.26 1.037.029.36.029.802.029 1.34v5.653c0 .537 0 .98-.03 1.34-.03.373-.095.715-.259 1.036a2.65 2.65 0 0 1-1.158 1.158c-.32.164-.663.23-1.037.26-.36.03-.802.03-1.34.03H5.174c-.537 0-.98 0-1.34-.03-.373-.03-.715-.096-1.036-.26a2.65 2.65 0 0 1-1.158-1.158c-.164-.32-.23-.663-.26-1.036-.029-.36-.029-.803-.029-1.34V5.173c0-.537 0-.98.03-1.34.03-.373.095-.715.259-1.036a2.65 2.65 0 0 1 1.158-1.158c.32-.164.663-.229 1.036-.26.36-.029.803-.029 1.34-.029ZM2.65 6.65v4.15c0 .57 0 .96.025 1.26.024.294.068.446.122.553.13.254.336.46.59.59.107.055.259.098.552.122.301.025.69.025 1.261.025h5.6c.57 0 .96 0 1.26-.025.294-.024.446-.067.553-.122.254-.13.46-.336.59-.59.054-.107.098-.259.122-.552.025-.301.025-.69.025-1.26V6.65H2.65Zm10.7-1.3H2.65V5.2c0-.57 0-.96.025-1.26.024-.294.068-.446.122-.553.13-.254.336-.46.59-.59.107-.054.259-.098.552-.122.301-.024.69-.025 1.261-.025h5.6c.57 0 .96 0 1.26.025.294.024.446.068.553.122.254.13.46.336.59.59.054.107.098.26.122.552.025.301.025.69.025 1.261v.15Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+BodyIcon.displayName = "BodyIcon";
diff --git a/packages/icons/src/__generated__/button-element.tsx b/packages/icons/src/__generated__/button-element.tsx
new file mode 100644
index 0000000000..267b7f1971
--- /dev/null
+++ b/packages/icons/src/__generated__/button-element.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/button-element.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const ButtonElementIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M.683 7.474c0-1.85 1.5-3.35 3.35-3.35h7.934c1.85 0 3.35 1.5 3.35 3.35v1.3c0 1.85-1.5 3.35-3.35 3.35H4.033a3.35 3.35 0 0 1-3.35-3.35v-1.3Zm3.35-2.05a2.05 2.05 0 0 0-2.05 2.05v1.3a2.05 2.05 0 0 0 2.05 2.05h7.934a2.05 2.05 0 0 0 2.05-2.05v-1.3a2.05 2.05 0 0 0-2.05-2.05H4.033Zm-.183 2.7a.817.817 0 1 1 1.633 0 .817.817 0 0 1-1.633 0Zm3.333 0a.817.817 0 1 1 1.634 0 .817.817 0 0 1-1.634 0Zm3.334 0a.817.817 0 1 1 1.633 0 .817.817 0 0 1-1.633 0Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+ButtonElementIcon.displayName = "ButtonElementIcon";
diff --git a/packages/icons/src/__generated__/form-text-field.tsx b/packages/icons/src/__generated__/form-text-field.tsx
new file mode 100644
index 0000000000..7fac8d52ea
--- /dev/null
+++ b/packages/icons/src/__generated__/form-text-field.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/form-text-field.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const FormTextFieldIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M1.35 4.66c0-.723.586-1.31 1.31-1.31h10.68c.723 0 1.31.587 1.31 1.31v6.68a1.31 1.31 0 0 1-1.31 1.31H2.66a1.31 1.31 0 0 1-1.31-1.31V4.66Zm1.3-.004V11.344a.012.012 0 0 0 .006.006H13.344l.003-.003a.011.011 0 0 0 .002-.003V4.656a.01.01 0 0 0-.002-.003.01.01 0 0 0-.003-.002H2.656s-.002 0-.003.002a.011.011 0 0 0-.003.003Zm2.017 1.36a.65.65 0 0 1 .65.65v2.67a.65.65 0 0 1-1.3 0v-2.67a.65.65 0 0 1 .65-.65Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+FormTextFieldIcon.displayName = "FormTextFieldIcon";
diff --git a/packages/icons/src/__generated__/form.tsx b/packages/icons/src/__generated__/form.tsx
new file mode 100644
index 0000000000..64ab2deb66
--- /dev/null
+++ b/packages/icons/src/__generated__/form.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/form.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const FormIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M3.3 3.3v1.4h9.4V3.3H3.3Zm10.32 2.485A.998.998 0 0 0 14 5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v2a.998.998 0 0 0 1 1h10c.234 0 .45-.08.62-.215Zm0 1.43A.996.996 0 0 0 13 7H3a.998.998 0 0 0-1 1v2a.998.998 0 0 0 1 1h10a1 1 0 0 0 1-1V8a.998.998 0 0 0-.38-.785ZM8.714 12.3A.997.997 0 0 0 8 12H3a.998.998 0 1 0 0 2h5a1 1 0 0 0 .714-1.7ZM3.3 8.3v1.4h9.4V8.3H3.3Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+FormIcon.displayName = "FormIcon";
diff --git a/packages/icons/src/__generated__/heading.tsx b/packages/icons/src/__generated__/heading.tsx
new file mode 100644
index 0000000000..781ff390c2
--- /dev/null
+++ b/packages/icons/src/__generated__/heading.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/heading.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const HeadingIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M2.017 2.667a.65.65 0 0 1 .65-.65h2.666a.65.65 0 0 1 0 1.3H4.65V7.35h6.7V3.317h-.683a.65.65 0 1 1 0-1.3h2.666a.65.65 0 1 1 0 1.3h-.683v9.366h.683a.65.65 0 1 1 0 1.3h-2.666a.65.65 0 1 1 0-1.3h.683V8.65h-6.7v4.033h.683a.65.65 0 1 1 0 1.3H2.667a.65.65 0 1 1 0-1.3h.683V3.317h-.683a.65.65 0 0 1-.65-.65Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+HeadingIcon.displayName = "HeadingIcon";
diff --git a/packages/icons/src/__generated__/image.tsx b/packages/icons/src/__generated__/image.tsx
new file mode 100644
index 0000000000..285f72fdc2
--- /dev/null
+++ b/packages/icons/src/__generated__/image.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/image.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const ImageIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M10.827 1.35H5.173c-.537 0-.98 0-1.34.03-.373.03-.715.095-1.036.259a2.65 2.65 0 0 0-1.158 1.158c-.164.32-.229.663-.26 1.037-.029.36-.029.802-.029 1.34v5.653c0 .537 0 .98.03 1.34.03.373.095.715.259 1.036.254.499.66.904 1.158 1.158.32.164.663.23 1.036.26.36.03.803.03 1.34.03h6.231c.18 0 .357 0 .498-.013l.018-.002a6.86 6.86 0 0 0 .247-.015c.373-.03.715-.096 1.036-.26a2.65 2.65 0 0 0 1.158-1.158c.164-.32.23-.663.26-1.036.029-.36.029-.803.029-1.34V5.173c0-.537 0-.98-.03-1.34-.03-.373-.095-.715-.259-1.036a2.65 2.65 0 0 0-1.158-1.158c-.32-.164-.663-.229-1.036-.26-.36-.029-.803-.029-1.34-.029Zm.27 12H5.2c-.57 0-.96 0-1.26-.025-.294-.024-.446-.067-.553-.122a1.35 1.35 0 0 1-.59-.59c-.054-.107-.098-.259-.122-.552-.024-.301-.025-.69-.025-1.26v-.532l2.389-2.388a5.471 5.471 0 0 1 .294-.282l.018.014c.06.051.137.128.277.268l5.47 5.469ZM2.65 8.43l1.484-1.483c.12-.12.235-.235.34-.325.116-.098.262-.203.452-.265.265-.086.55-.086.814 0 .19.062.336.167.452.265.106.09.221.205.34.325l5.701 5.7c.128.128.253.253.344.362.03.036.072.087.113.151.219-.13.397-.32.513-.547.054-.107.098-.259.122-.552.025-.301.025-.69.025-1.26V5.2c0-.572 0-.96-.025-1.262-.024-.293-.068-.445-.122-.552a1.35 1.35 0 0 0-.59-.59c-.107-.054-.259-.098-.552-.122-.301-.024-.69-.025-1.261-.025H5.2c-.57 0-.96 0-1.26.025-.294.024-.446.068-.553.122a1.35 1.35 0 0 0-.59.59c-.054.107-.098.26-.122.552-.024.301-.025.69-.025 1.261v3.23Zm7.683-3.447a.683.683 0 1 1 0 1.367.683.683 0 0 1 0-1.367Zm1.984.684a1.983 1.983 0 1 0-3.967 0 1.983 1.983 0 0 0 3.967 0Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+ImageIcon.displayName = "ImageIcon";
diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.ts
index 8b389406ce..6572705afc 100644
--- a/packages/icons/src/__generated__/index.ts
+++ b/packages/icons/src/__generated__/index.ts
@@ -1,6 +1,7 @@
export * from "./alert";
export * from "./auto-scroll";
export * from "./blockquote";
+export * from "./body";
export * from "./bold";
export * from "./border-radius-bottom-left";
export * from "./border-radius-bottom-right";
@@ -15,6 +16,7 @@ export * from "./border-width-right";
export * from "./border-width-top";
export * from "./box-link";
export * from "./box";
+export * from "./button-element";
export * from "./checkbox-checked-filled";
export * from "./checkbox-empty";
export * from "./checkbox-mixed-filled";
@@ -37,9 +39,13 @@ export * from "./dotted-border";
export * from "./drag-handle";
export * from "./eyecon-closed";
export * from "./eyecon-open";
+export * from "./form-text-field";
+export * from "./form";
export * from "./github";
export * from "./google";
export * from "./hamburger-menu";
+export * from "./heading";
+export * from "./image";
export * from "./info";
export * from "./information";
export * from "./link";
@@ -61,6 +67,7 @@ export * from "./small-x";
export * from "./subscript";
export * from "./subtract";
export * from "./superscript";
+export * from "./text-block";
export * from "./text-italic";
export * from "./unlinked";
export * from "./webstudio";
diff --git a/packages/icons/src/__generated__/text-block.tsx b/packages/icons/src/__generated__/text-block.tsx
new file mode 100644
index 0000000000..ed6205af2c
--- /dev/null
+++ b/packages/icons/src/__generated__/text-block.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/text-block.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const TextBlockIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M5.173 1.35h5.654c.537 0 .98 0 1.34.03.373.03.715.095 1.036.259.499.254.904.66 1.158 1.158.164.32.229.663.26 1.037.029.36.029.802.029 1.34v5.653c0 .537 0 .98-.03 1.34-.03.373-.095.715-.259 1.036a2.65 2.65 0 0 1-1.158 1.158c-.32.164-.663.23-1.037.26-.36.03-.802.03-1.34.03H5.174c-.537 0-.98 0-1.34-.03-.373-.03-.715-.096-1.036-.26a2.65 2.65 0 0 1-1.158-1.158c-.164-.32-.23-.663-.26-1.036-.029-.36-.029-.803-.029-1.34V5.173c0-.537 0-.98.03-1.34.03-.373.095-.715.259-1.036a2.65 2.65 0 0 1 1.158-1.158c.32-.164.663-.229 1.036-.26.36-.029.803-.029 1.34-.029ZM3.939 2.675c-.293.024-.445.068-.552.122a1.35 1.35 0 0 0-.59.59c-.054.107-.098.26-.122.552-.025.301-.025.69-.025 1.261v5.6c0 .57 0 .96.025 1.26.024.294.068.446.122.553.13.254.336.46.59.59.107.055.259.098.552.122.301.025.69.025 1.261.025h5.6c.57 0 .96 0 1.26-.025.294-.024.446-.067.553-.122.254-.13.46-.336.59-.59.054-.107.098-.259.122-.552.025-.301.025-.69.025-1.26V5.2c0-.572 0-.96-.025-1.262-.024-.293-.068-.445-.122-.552a1.35 1.35 0 0 0-.59-.59c-.107-.054-.26-.098-.552-.122-.301-.024-.69-.025-1.261-.025H5.2c-.57 0-.96 0-1.26.025ZM5.2 4.017H10.8c.082 0 .177 0 .261.007a.995.995 0 0 1 .377.1.99.99 0 0 1 .433.433c.073.144.093.28.101.378.007.083.007.179.007.26v.806a.65.65 0 1 1-1.3 0v-.684H8.65v5.366H10a.65.65 0 1 1 0 1.3H6a.65.65 0 1 1 0-1.3h1.35V5.317H5.32V6a.65.65 0 0 1-1.3 0v-.805c0-.081 0-.177.007-.26a.995.995 0 0 1 .1-.378.99.99 0 0 1 .434-.432.995.995 0 0 1 .377-.101c.084-.007.18-.007.26-.007Z" clipRule="evenodd" /></svg>
+ );
+ }
+);
+
+TextBlockIcon.displayName = "TextBlockIcon";
diff --git a/packages/icons/src/body.tsx b/packages/icons/src/body.tsx
deleted file mode 100644
index ffcfce0da3..0000000000
--- a/packages/icons/src/body.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import * as React from "react";
-import type { IconProps } from "./types";
-
-export const BodyIcon = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
- return (
- <svg
- width="15"
- height="15"
- viewBox="0 0 15 15"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- {...props}
- ref={forwardedRef}
- >
- <path
- d="M1 3.96833H14M2.51667 14H12.4833C13.321 14 14 13.321 14 12.4833V2.51667C14 1.67903 13.321 1 12.4833 1H2.51667C1.67903 1 1 1.67903 1 2.51667V12.4833C1 13.321 1.67903 14 2.51667 14Z"
- stroke={color}
- strokeWidth="1.15"
- />
- </svg>
- );
- }
-);
-
-BodyIcon.displayName = "BodyIcon";
diff --git a/packages/icons/src/form.tsx b/packages/icons/src/form.tsx
deleted file mode 100644
index c48779e04d..0000000000
--- a/packages/icons/src/form.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import * as React from "react";
-import type { IconProps } from "./types";
-
-export const FormIcon = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
- return (
- <svg
- width="15"
- height="15"
- viewBox="0 0 24 24"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- {...props}
- ref={forwardedRef}
- >
- <path
- fill={color}
- fillRule="evenodd"
- clipRule="evenodd"
- d="M13 11H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h9v7zM4 9h7V6H4v3zm11 11H4c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h11v7zM4 18h9v-3H4v3zm18-9h-2l2-5h-7v7h2v9l5-11zM4.75 17.25h1.5v-1.5h-1.5v1.5zm0-9h1.5v-1.5h-1.5v1.5z"
- />
- </svg>
- );
- }
-);
-
-FormIcon.displayName = "FormIcon";
diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.ts
index 050676aab6..78eceba51f 100644
--- a/packages/icons/src/index.ts
+++ b/packages/icons/src/index.ts
@@ -1,11 +1,9 @@
export * from "./legacy";
export * from "./__generated__";
export * from "./list-nested";
-export * from "./form";
export * from "./undo";
export * from "./redo";
export * from "./devices";
-export * from "./body";
export * from "./types";
export * from "./align-content-center";
export * from "./align-content-end";
diff --git a/packages/icons/src/legacy.ts b/packages/icons/src/legacy.ts
index 8fb9b2dcd6..dbde2c900c 100644
--- a/packages/icons/src/legacy.ts
+++ b/packages/icons/src/legacy.ts
@@ -1,5 +1,4 @@
export {
- ImageIcon,
DotsHorizontalIcon,
CheckIcon,
RocketIcon,
@@ -9,10 +8,6 @@ export {
DotFilledIcon,
TriangleRightIcon,
TriangleDownIcon,
- InputIcon,
- ButtonIcon,
- HeadingIcon,
- TextIcon,
CrossCircledIcon,
CheckCircledIcon,
} from "@radix-ui/react-icons";
diff --git a/packages/react-sdk/src/components/button.ws.tsx b/packages/react-sdk/src/components/button.ws.tsx
index 61b8802dcc..8812db5230 100644
--- a/packages/react-sdk/src/components/button.ws.tsx
+++ b/packages/react-sdk/src/components/button.ws.tsx
@@ -1,4 +1,4 @@
-import { ButtonIcon } from "@webstudio-is/icons";
+import { ButtonElementIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";
import { props } from "./__generated__/button.props";
import { button } from "../css/normalize";
@@ -13,7 +13,7 @@ export const meta: WsComponentMeta = {
category: "forms",
type: "container",
label: "Button",
- Icon: ButtonIcon,
+ Icon: ButtonElementIcon,
presetStyle,
};
diff --git a/packages/react-sdk/src/components/input.ws.tsx b/packages/react-sdk/src/components/input.ws.tsx
index e1fa7d4284..ec0d344eab 100644
--- a/packages/react-sdk/src/components/input.ws.tsx
+++ b/packages/react-sdk/src/components/input.ws.tsx
@@ -1,5 +1,5 @@
import type { Style } from "@webstudio-is/css-data";
-import { InputIcon } from "@webstudio-is/icons";
+import { FormTextFieldIcon } from "@webstudio-is/icons";
import { input } from "../css/normalize";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";
import type { defaultTag } from "./input";
@@ -13,7 +13,7 @@ export const meta: WsComponentMeta = {
category: "forms",
type: "control",
label: "Input",
- Icon: InputIcon,
+ Icon: FormTextFieldIcon,
presetStyle,
};
diff --git a/packages/react-sdk/src/components/text-block.ws.tsx b/packages/react-sdk/src/components/text-block.ws.tsx
index 894196b2ab..d4a1780764 100644
--- a/packages/react-sdk/src/components/text-block.ws.tsx
+++ b/packages/react-sdk/src/components/text-block.ws.tsx
@@ -1,4 +1,4 @@
-import { TextIcon } from "@webstudio-is/icons";
+import { TextBlockIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";
import { props } from "./__generated__/text-block.props";
import type { defaultTag } from "./text-block";
@@ -21,7 +21,7 @@ export const meta: WsComponentMeta = {
category: "typography",
type: "rich-text",
label: "Text Block",
- Icon: TextIcon,
+ Icon: TextBlockIcon,
presetStyle,
children: ["Block of text you can edit"],
};