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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
feat: a new global root icon (#4298)
Oleg Isonen0f39f7ed4cdf
diff --git a/packages/icons/icons/settings.svg b/packages/icons/icons/settings.svgnew file mode 100644index 0000000000..6822e0ef9c--- /dev/null+++ b/packages/icons/icons/settings.svg@@ -0,0 +1,15 @@+<svg+ width="16"+ height="16"+ viewBox="0 0 16 16"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+>+ <path+ d="M2 5.33333L10 5.33333M10 5.33333C10 6.4379 10.8954 7.33333 12 7.33333C13.1046 7.33333 14 6.4379 14 5.33333C14 4.22876 13.1046 3.33333 12 3.33333C10.8954 3.33333 10 4.22876 10 5.33333ZM6 10.6667L14 10.6667M6 10.6667C6 11.7712 5.10457 12.6667 4 12.6667C2.89543 12.6667 2 11.7712 2 10.6667C2 9.56209 2.89543 8.66666 4 8.66666C5.10457 8.66666 6 9.56209 6 10.6667Z"+ stroke="currentColor"+ stroke-width="1.3"+ stroke-linecap="round"+ stroke-linejoin="round"+ />+</svg>diff --git a/packages/icons/src/__generated__/components.tsx b/packages/icons/src/__generated__/components.tsxindex a42152f4f1..c36e0cecde 100644--- a/packages/icons/src/__generated__/components.tsx+++ b/packages/icons/src/__generated__/components.tsx@@ -3959,6 +3959,31 @@ export const SelectIcon: IconComponent = forwardRef();SelectIcon.displayName = "SelectIcon";+export const SettingsIcon: IconComponent = forwardRef(+ ({ 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+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.3"+ d="M2 5.333h8m0 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm-4 5.334h8m-8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"+ />+ </svg>+ );+ }+);+SettingsIcon.displayName = "SettingsIcon";+export const ShadowInsetIcon: IconComponent = forwardRef(({ color = "currentColor", size = 16, ...props }, forwardedRef) => {return (diff --git a/packages/icons/src/__generated__/svg.ts b/packages/icons/src/__generated__/svg.tsindex 6b33d55e67..02a4956cc7 100644--- a/packages/icons/src/__generated__/svg.ts+++ b/packages/icons/src/__generated__/svg.ts@@ -322,6 +322,8 @@ export const SectionLinkIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox=export const SelectIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><path d="M9.13 6.708a.65.65 0 0 0-.92.92l1.665 1.664a.65.65 0 0 0 .92 0l1.665-1.665a.65.65 0 0 0-.92-.92l-1.205 1.207-1.206-1.206Z"/><path fill-rule="evenodd" d="M4.862 3.346c-.6 0-1.088 0-1.486.033-.41.033-.78.105-1.124.28-.54.276-.98.715-1.256 1.255-.175.345-.247.714-.28 1.125-.033.397-.033.886-.033 1.485v.948c0 .599 0 1.088.033 1.485.033.41.105.78.28 1.125.276.54.715.98 1.256 1.255.344.175.714.247 1.124.28.398.033.887.033 1.486.033h6.277c.599 0 1.087 0 1.485-.032.41-.034.78-.106 1.124-.281.54-.275.98-.715 1.256-1.255.175-.345.247-.714.28-1.125.033-.397.033-.886.033-1.485v-.948c0-.599 0-1.088-.033-1.485-.033-.41-.105-.78-.28-1.125a2.873 2.873 0 0 0-1.256-1.255c-.344-.175-.714-.247-1.124-.28-.398-.033-.886-.033-1.486-.033H4.862Zm-2.02 1.471c.13-.066.31-.116.64-.143.338-.027.774-.028 1.407-.028h6.222c.633 0 1.069 0 1.407.028.33.027.51.077.64.143.296.151.537.392.687.688.067.13.116.31.143.64.028.338.029.774.029 1.407v.892c0 .633 0 1.07-.028 1.407-.028.33-.077.51-.144.64-.15.296-.391.537-.687.688-.13.066-.31.116-.64.143-.338.028-.774.028-1.407.028H4.89c-.633 0-1.069 0-1.407-.028-.33-.027-.51-.077-.64-.143a1.572 1.572 0 0 1-.687-.687c-.067-.131-.117-.31-.143-.64-.028-.339-.029-.775-.029-1.408v-.892c0-.633 0-1.069.028-1.407.027-.33.077-.51.144-.64.15-.296.391-.537.687-.688Z" clip-rule="evenodd"/></svg>`;+export const SettingsIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3" d="M2 5.333h8m0 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm-4 5.334h8m-8 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/></svg>`;+export const ShadowInsetIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M1.65 7a5.35 5.35 0 1 1 10.7 0 5.35 5.35 0 0 1-10.7 0ZM7 .35a6.65 6.65 0 1 0 0 13.3A6.65 6.65 0 0 0 7 .35ZM4.315 7a2.685 2.685 0 0 1 5.37 0 .65.65 0 1 0 1.3 0 3.985 3.985 0 1 0-7.97 0 .65.65 0 0 0 1.3 0Z" clip-rule="evenodd"/></svg>`;export const ShadowNormalIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 14" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M1.985 5.665a4.015 4.015 0 1 1 8.03 0 4.015 4.015 0 0 1-8.03 0ZM6 .35a5.315 5.315 0 1 0 0 10.63A5.315 5.315 0 0 0 6 .35Zm5.64 10.957a.65.65 0 0 0-.919-.919 6.681 6.681 0 0 1-9.448.006.65.65 0 1 0-.92.919c3.116 3.116 8.17 3.112 11.288-.006Z" clip-rule="evenodd"/></svg>`;diff --git a/packages/react-sdk/src/core-components.ts b/packages/react-sdk/src/core-components.tsindex d969807589..0ca2ff8a9a 100644--- a/packages/react-sdk/src/core-components.ts+++ b/packages/react-sdk/src/core-components.ts@@ -1,7 +1,7 @@import {ListViewIcon,PaintBrushIcon,- EmbedIcon,+ SettingsIcon,} from "@webstudio-is/icons/svg";import { html } from "@webstudio-is/sdk/normalize.css";import type {@@ -15,7 +15,7 @@ const rootMeta: WsComponentMeta = {category: "hidden",type: "container",label: "Global Root",- icon: EmbedIcon,+ icon: SettingsIcon,presetStyle: {html,},