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
Update text toolbar icons (#1347)
Bogdan Chadkin56a071dde3bc
diff --git a/apps/builder/app/builder/features/props-panel/controls/url.tsx b/apps/builder/app/builder/features/props-panel/controls/url.tsxindex 4100eb8b5d..6c81fde0f1 100644--- a/apps/builder/app/builder/features/props-panel/controls/url.tsx+++ b/apps/builder/app/builder/features/props-panel/controls/url.tsx@@ -10,7 +10,7 @@ import {Select,Tooltip,} from "@webstudio-is/design-system";-import { Link2Icon, PageIcon } from "@webstudio-is/icons";+import { LinkIcon, PageIcon } from "@webstudio-is/icons";import { useState } from "react";import {type ControlProps,@@ -128,7 +128,7 @@ export const UrlControl = ({><ToggleGroupItem value={"url" satisfies Mode}><Tooltip content="URL">- <Link2Icon />+ <LinkIcon /></Tooltip></ToggleGroupItem><ToggleGroupItem value={"page" satisfies Mode}>diff --git a/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx b/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsxindex 2da16d3bd9..98604e3970 100644--- a/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx+++ b/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx@@ -3,13 +3,13 @@ import { useStore } from "@nanostores/react";import { computePosition, flip, offset, shift } from "@floating-ui/dom";import { theme, Flex, IconButton, Tooltip } from "@webstudio-is/design-system";import {- FontBoldIcon,- FontItalicIcon,SuperscriptIcon,SubscriptIcon,- Link2Icon,- BrushIcon,CrossSmallIcon,+ BoldIcon,+ TextItalicIcon,+ LinkIcon,+ PaintBrushIcon,} from "@webstudio-is/icons";import { selectedInstanceSelectorStore } from "~/shared/nano-states";import {@@ -121,7 +121,7 @@ const Toolbar = ({ state, onToggle }: ToolbarProps) => {variant={state.isBold ? "local" : "default"}onClick={() => onToggle("bold")}>- <FontBoldIcon />+ <BoldIcon /></IconButton></Tooltip>@@ -131,7 +131,7 @@ const Toolbar = ({ state, onToggle }: ToolbarProps) => {variant={state.isItalic ? "local" : "default"}onClick={() => onToggle("italic")}>- <FontItalicIcon />+ <TextItalicIcon /></IconButton></Tooltip>@@ -161,7 +161,7 @@ const Toolbar = ({ state, onToggle }: ToolbarProps) => {variant={state.isLink ? "local" : "default"}onClick={() => onToggle("link")}>- <Link2Icon />+ <LinkIcon /></IconButton></Tooltip>@@ -171,7 +171,7 @@ const Toolbar = ({ state, onToggle }: ToolbarProps) => {variant={state.isSpan ? "local" : "default"}onClick={() => onToggle("span")}>- <BrushIcon />+ <PaintBrushIcon /></IconButton></Tooltip></Flex>diff --git a/packages/icons/icons/bold.svg b/packages/icons/icons/bold.svgnew file mode 100644index 0000000000..6046954baf--- /dev/null+++ b/packages/icons/icons/bold.svg@@ -0,0 +1,3 @@+<svg width="15" height="16" viewBox="0 0 15 16" xmlns="http://www.w3.org/2000/svg">+<path clip-rule="evenodd" d="M3.20001 2.6667C3.20001 2.22487 3.55818 1.8667 4.00001 1.8667H9.33335C11.2479 1.8667 12.8 3.41878 12.8 5.33337C12.8 6.26219 12.4347 7.1057 11.84 7.72808C12.8171 8.34116 13.4667 9.42807 13.4667 10.6667C13.4667 12.5813 11.9146 14.1334 10 14.1334H4.00001C3.55818 14.1334 3.20001 13.7752 3.20001 13.3334V2.6667ZM4.80001 8.80003V12.5334H10C11.0309 12.5334 11.8667 11.6976 11.8667 10.6667C11.8667 9.63577 11.0309 8.80003 10 8.80003H4.80001ZM4.80001 7.20003H9.33335C10.3643 7.20003 11.2 6.3643 11.2 5.33337C11.2 4.30243 10.3643 3.4667 9.33335 3.4667H4.80001V7.20003Z" />+</svg>diff --git a/packages/icons/icons/link.svg b/packages/icons/icons/link.svgnew file mode 100644index 0000000000..ef99bab02d--- /dev/null+++ b/packages/icons/icons/link.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+<path clip-rule="evenodd" d="M11.9408 4.05884C11.228 3.346 9.86428 3.34937 8.88611 4.32754L8.07868 5.13497C7.82484 5.38881 7.41328 5.38881 7.15944 5.13497C6.9056 4.88113 6.9056 4.46957 7.15944 4.21573L7.96687 3.4083C9.33184 2.04333 11.5265 1.8061 12.8601 3.1396C14.1936 4.47311 13.9563 6.66781 12.5914 8.03278L11.7839 8.84021C11.5301 9.09405 11.1185 9.09405 10.8647 8.84021C10.6108 8.58637 10.6108 8.17481 10.8647 7.92097L11.6721 7.11355C12.6503 6.13537 12.6537 4.77168 11.9408 4.05884ZM9.92064 6.07918C10.1745 6.33302 10.1745 6.74458 9.92064 6.99842L6.99782 9.92124C6.74398 10.1751 6.33242 10.1751 6.07858 9.92124C5.82474 9.6674 5.82474 9.25584 6.07858 9.002L9.0014 6.07918C9.25525 5.82534 9.6668 5.82534 9.92064 6.07918ZM5.13451 7.16023C5.38835 7.41407 5.38835 7.82563 5.13451 8.07947L4.32708 8.8869C3.34891 9.86507 3.34554 11.2288 4.05838 11.9416C4.77123 12.6544 6.13492 12.6511 7.11309 11.6729L7.92052 10.8655C8.17436 10.6116 8.58592 10.6116 8.83976 10.8655C9.0936 11.1193 9.0936 11.5309 8.83976 11.7847L8.03233 12.5921C6.66735 13.9571 4.47265 14.1943 3.13914 12.8608C1.80564 11.5273 2.04287 9.33263 3.40784 7.96766L4.21527 7.16023C4.46911 6.90639 4.88067 6.90639 5.13451 7.16023Z" />+</svg>diff --git a/packages/icons/icons/paint-brush.svg b/packages/icons/icons/paint-brush.svgnew file mode 100644index 0000000000..a24b7be673--- /dev/null+++ b/packages/icons/icons/paint-brush.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+<path clip-rule="evenodd" d="M11.391 1.87287C12.1463 1.17351 13.3249 1.16288 14.0814 1.91941C14.8336 2.67154 14.8399 3.85201 14.1333 4.61517C13.8033 4.9715 13.2935 5.53127 12.7019 6.18077C12.0328 6.91541 11.2591 7.76485 10.5229 8.56454C9.83527 9.31154 9.18473 10.0103 8.69961 10.5125C8.45845 10.7622 8.25081 10.971 8.09729 11.1142C8.0238 11.1828 7.9463 11.2519 7.87659 11.3039C7.84911 11.3244 7.78313 11.3729 7.69853 11.4094C7.66398 11.4243 7.55417 11.4702 7.40765 11.4659C7.32543 11.4634 7.21007 11.4443 7.09216 11.3747C6.96812 11.3015 6.881 11.1956 6.82955 11.0839C6.46693 10.2969 5.70295 9.53629 4.9223 9.17658C4.81066 9.12513 4.70473 9.038 4.63149 8.91397C4.56187 8.79606 4.54282 8.6807 4.54036 8.59848C4.53597 8.45196 4.58193 8.34215 4.59684 8.30759C4.63335 8.223 4.68184 8.15702 4.70233 8.12954C4.75434 8.05982 4.82342 7.98233 4.892 7.90884C5.03526 7.75532 5.24404 7.54768 5.4937 7.30652C5.99594 6.8214 6.69467 6.17086 7.44167 5.4832C8.24136 4.74704 9.0908 3.97335 9.82544 3.30423C10.4749 2.71265 11.0347 2.2028 11.391 1.87287ZM13.1622 2.83865C12.915 2.59142 12.5331 2.58708 12.2743 2.82676C11.922 3.15292 11.3542 3.67011 10.6977 4.26815C9.95808 4.94188 9.1058 5.71823 8.32213 6.43964C7.57614 7.12638 6.88714 7.76799 6.39687 8.24156C6.32956 8.30657 6.26656 8.36788 6.20812 8.42525C6.73355 8.79333 7.21164 9.27075 7.58095 9.79802C7.6383 9.7396 7.69958 9.67663 7.76457 9.60934C8.23814 9.11907 8.87975 8.43007 9.56648 7.68407C10.2879 6.90041 11.0642 6.04815 11.738 5.30852C12.336 4.65198 12.8532 4.0842 13.1794 3.73194C13.4177 3.47452 13.4138 3.0903 13.1622 2.83865Z" />+<path clip-rule="evenodd" d="M3.99764 10.0018C2.89138 10.0018 1.99837 10.8948 1.99837 12.001C1.99837 12.6846 1.52447 13.1148 1.05008 13.2694C0.896977 13.3193 0.808209 13.5153 0.920612 13.6306C1.5452 14.2712 2.45342 14.6667 3.33122 14.6667C4.80402 14.6667 5.99692 13.4738 5.99692 12.001C5.99692 10.8948 5.10391 10.0018 3.99764 10.0018Z" />+</svg>diff --git a/packages/icons/icons/subscript.svg b/packages/icons/icons/subscript.svgindex 08aecf1d5e..0266b7c27b 100644--- a/packages/icons/icons/subscript.svg+++ b/packages/icons/icons/subscript.svg@@ -1 +1,4 @@-<svg xmlns="http://www.w3.org/2000/svg" height="48" width="48"><path d="M38.5 40v-4.25q0-.7.4-1.1.4-.4 1.1-.4h4.5V31.5h-6V30h6q.7 0 1.1.4.4.4.4 1.1v2.75q0 .7-.4 1.1-.4.4-1.1.4H40v2.75h6V40Zm-26.75-4L21 21.45 12.4 8h4.3l6.75 10.65L30.2 8h4.3l-8.6 13.45L35.15 36H30.9l-7.45-11.7L16 36Z"/></svg>\ No newline at end of file+<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="M8.39303 12.3694L7.30888 9.51702H3.87958L2.79544 12.3694C2.65808 12.7307 2.25378 12.9123 1.8924 12.775C1.53103 12.6376 1.34942 12.2333 1.48678 11.8719L4.44585 4.08677C4.51798 3.89696 4.58649 3.71665 4.65255 3.57756C4.70854 3.45965 4.83144 3.21018 5.08638 3.06001C5.40183 2.8742 5.78664 2.8742 6.10208 3.06001C6.35703 3.21018 6.47992 3.45965 6.53592 3.57756C6.60198 3.71665 6.67049 3.89697 6.74262 4.08679L9.70169 11.8719C9.83904 12.2333 9.65744 12.6376 9.29606 12.775C8.93469 12.9123 8.53038 12.7307 8.39303 12.3694ZM4.41171 8.11702L5.59423 5.00587L6.77675 8.11702H4.41171Z" />+<path d="M10.24 10.2607C10.2216 10.6192 10.4973 10.9247 10.8559 10.9431C11.2144 10.9615 11.5199 10.6858 11.5383 10.3272C11.5446 10.2047 11.6182 10.077 11.7511 9.97122C11.8159 9.91968 12.0431 9.83181 12.3486 9.84552C12.6508 9.85907 12.8201 9.96102 12.8792 10.0404C12.9962 10.1976 13.0195 10.3493 13.016 10.4675C13.0141 10.5287 13.0048 10.579 12.9969 10.611C12.9941 10.6224 12.9917 10.6308 12.9901 10.6359L12.9832 10.6508C12.9727 10.6731 12.9536 10.7112 12.9245 10.7619C12.8663 10.8633 12.7684 11.0144 12.6187 11.1893C12.4535 11.3823 11.9125 11.9589 11.3949 12.5053C11.14 12.7744 10.8961 13.0306 10.7159 13.2196L10.4196 13.5299C10.2964 13.6586 10.2365 13.8248 10.2393 13.99C10.2437 14.3439 10.5313 14.6301 10.8865 14.6315L13.8567 14.6436C14.2157 14.6451 14.5079 14.3553 14.5093 13.9963C14.5108 13.6373 14.221 13.3451 13.862 13.3437L12.397 13.3377C12.8867 12.8204 13.4215 12.2506 13.6064 12.0345C13.8143 11.7916 13.958 11.5728 14.0521 11.4088C14.0992 11.3268 14.1339 11.2583 14.1582 11.2071C14.1703 11.1815 14.1798 11.1602 14.1869 11.1436L14.1958 11.1224L14.1989 11.1149L14.1994 11.1137L14.2004 11.1111L14.2028 11.1051L14.2085 11.09C14.2126 11.0787 14.2176 11.0648 14.223 11.0484C14.2338 11.0156 14.2467 10.9726 14.2595 10.9208C14.2847 10.8178 14.3102 10.6757 14.3154 10.5069C14.3257 10.1653 14.2515 9.70713 13.9223 9.26454C13.5352 8.74412 12.9061 8.56922 12.4069 8.54682C11.9111 8.52458 11.3343 8.64164 10.9418 8.95385C10.6198 9.21003 10.2712 9.65214 10.24 10.2607Z" />+</svg>diff --git a/packages/icons/icons/superscript.svg b/packages/icons/icons/superscript.svgindex 5522813fe3..8bfdf90aa0 100644--- a/packages/icons/icons/superscript.svg+++ b/packages/icons/icons/superscript.svg@@ -1 +1,4 @@-<svg xmlns="http://www.w3.org/2000/svg" height="48" width="48"><path d="M38.5 18v-4.25q0-.7.4-1.1.4-.4 1.1-.4h4.5V9.5h-6V8h6q.7 0 1.1.4.4.4.4 1.1v2.75q0 .7-.4 1.1-.4.4-1.1.4H40v2.75h6V18ZM11.75 40 21 25.45 12.4 12h4.3l6.75 10.65L30.2 12h4.3l-8.6 13.45L35.15 40H30.9l-7.45-11.7L16 40Z"/></svg>\ No newline at end of file+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+<path d="M9.48366 3.0463C9.46527 3.40481 9.74099 3.71035 10.0995 3.72874C10.458 3.74713 10.7636 3.47141 10.782 3.11289C10.7882 2.99038 10.8618 2.86264 10.9948 2.75687C11.0596 2.70533 11.2868 2.61746 11.5923 2.63116C11.8944 2.64472 12.0638 2.74667 12.1229 2.82607C12.2398 2.9833 12.2632 3.13497 12.2596 3.25318C12.2578 3.3143 12.2484 3.36465 12.2406 3.39665C12.2378 3.408 12.2353 3.41644 12.2337 3.42155L12.2269 3.43646C12.2163 3.4587 12.1973 3.49682 12.1682 3.54751C12.11 3.64896 12.012 3.80005 11.8624 3.97492C11.6972 4.168 11.1561 4.74453 10.6386 5.2909C10.3836 5.56003 10.1397 5.81624 9.95953 6.00522L9.66323 6.3155C9.53996 6.4443 9.48013 6.61064 9.48291 6.77586C9.48754 7.12961 9.77502 7.41566 10.1302 7.41711L13.1003 7.42922C13.4593 7.43068 13.7515 7.14085 13.753 6.78187C13.7544 6.42289 13.4646 6.13069 13.1056 6.12923L11.6407 6.12325C12.1304 5.60599 12.6652 5.03625 12.8501 4.82016C13.058 4.57724 13.2017 4.35844 13.2958 4.19445C13.3428 4.11242 13.3776 4.04393 13.4018 3.99274C13.4139 3.96714 13.4235 3.94583 13.4306 3.92929L13.4395 3.90808L13.4425 3.90056L13.443 3.89934L13.4441 3.89671L13.4464 3.8907L13.4521 3.87568C13.4563 3.86437 13.4612 3.85042 13.4666 3.83401C13.4775 3.80126 13.4904 3.75827 13.5031 3.70644C13.5284 3.60348 13.5539 3.46139 13.559 3.29258C13.5694 2.95093 13.4951 2.49278 13.1659 2.05019C12.7788 1.52977 12.1497 1.35487 11.6506 1.33247C11.1548 1.31022 10.578 1.42729 10.1855 1.7395C9.86345 1.99568 9.51487 2.43779 9.48366 3.0463Z" />+<path fill-rule="evenodd" clip-rule="evenodd" d="M8.39303 12.3691L7.30888 9.51679H3.87958L2.79544 12.3691C2.65808 12.7305 2.25378 12.9121 1.8924 12.7747C1.53103 12.6374 1.34942 12.2331 1.48678 11.8717L4.44585 4.08654C4.51798 3.89673 4.58649 3.71642 4.65255 3.57733C4.70854 3.45942 4.83144 3.20995 5.08638 3.05977C5.40183 2.87397 5.78664 2.87397 6.10208 3.05978C6.35703 3.20995 6.47992 3.45942 6.53592 3.57733C6.60198 3.71642 6.67049 3.89674 6.74262 4.08656L9.70169 11.8717C9.83904 12.2331 9.65744 12.6374 9.29606 12.7747C8.93469 12.9121 8.53038 12.7305 8.39303 12.3691ZM4.41171 8.11679L5.59423 5.00563L6.77675 8.11679H4.41171Z" />+</svg>diff --git a/packages/icons/icons/text-italic.svg b/packages/icons/icons/text-italic.svgnew file mode 100644index 0000000000..a706b76bf1--- /dev/null+++ b/packages/icons/icons/text-italic.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+<path clip-rule="evenodd" d="M9.98504 2.01678H6.66668C6.3077 2.01678 6.01668 2.30779 6.01668 2.66678C6.01668 3.02576 6.3077 3.31678 6.66668 3.31678H9.06207L5.54957 12.6834H3.33335C2.97436 12.6834 2.68335 12.9745 2.68335 13.3334C2.68335 13.6924 2.97436 13.9834 3.33335 13.9834H5.98482C5.99491 13.9837 6.00498 13.9837 6.01502 13.9834H9.33335C9.69234 13.9834 9.98335 13.6924 9.98335 13.3334C9.98335 12.9745 9.69234 12.6834 9.33335 12.6834H6.93797L10.4505 3.31678H12.6667C13.0257 3.31678 13.3167 3.02576 13.3167 2.66678C13.3167 2.30779 13.0257 2.01678 12.6667 2.01678H10.0152C10.0051 2.01654 9.99506 2.01654 9.98504 2.01678Z" />+</svg>diff --git a/packages/icons/src/__generated__/bold.tsx b/packages/icons/src/__generated__/bold.tsxnew file mode 100644index 0000000000..a8928fd836--- /dev/null+++ b/packages/icons/src/__generated__/bold.tsx@@ -0,0 +1,15 @@+// Generated from icons/bold.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const BoldIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path d="M3.2 2.667a.8.8 0 0 1 .8-.8h5.333a3.467 3.467 0 0 1 2.507 5.861A3.467 3.467 0 0 1 10 14.133H4a.8.8 0 0 1-.8-.8V2.667ZM4.8 8.8v3.733H10A1.867 1.867 0 0 0 10 8.8H4.8Zm0-1.6h4.533a1.867 1.867 0 1 0 0-3.733H4.8V7.2Z" clipRule="evenodd" /></svg>+ );+ }+);++BoldIcon.displayName = "BoldIcon";diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.tsindex 621859fd7b..8b389406ce 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 "./bold";export * from "./border-radius-bottom-left";export * from "./border-radius-bottom-right";export * from "./border-radius-individual";@@ -41,10 +42,12 @@ export * from "./google";export * from "./hamburger-menu";export * from "./info";export * from "./information";+export * from "./link";export * from "./linked";export * from "./list-item";export * from "./list";export * from "./offline";+export * from "./paint-brush";export * from "./play";export * from "./plus";export * from "./radio-checked";@@ -58,5 +61,6 @@ export * from "./small-x";export * from "./subscript";export * from "./subtract";export * from "./superscript";+export * from "./text-italic";export * from "./unlinked";export * from "./webstudio";diff --git a/packages/icons/src/__generated__/link.tsx b/packages/icons/src/__generated__/link.tsxnew file mode 100644index 0000000000..4aa56282ce--- /dev/null+++ b/packages/icons/src/__generated__/link.tsx@@ -0,0 +1,15 @@+// Generated from icons/link.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const LinkIcon = 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 d="M11.94 4.059c-.712-.713-2.076-.71-3.054.269l-.807.807a.65.65 0 0 1-.92-.92l.808-.807c1.365-1.365 3.56-1.602 4.893-.268 1.334 1.333 1.096 3.528-.269 4.893l-.807.807a.65.65 0 1 1-.92-.919l.808-.807c.978-.979.982-2.342.269-3.055Zm-2.02 2.02a.65.65 0 0 1 0 .92L6.999 9.92a.65.65 0 1 1-.92-.919l2.923-2.923a.65.65 0 0 1 .92 0ZM5.136 7.16a.65.65 0 0 1 0 .92l-.808.807c-.978.978-.981 2.342-.269 3.055.713.712 2.077.71 3.055-.27l.808-.806a.65.65 0 1 1 .919.919l-.808.807c-1.365 1.365-3.56 1.602-4.893.269-1.333-1.334-1.096-3.528.269-4.893l.807-.808a.65.65 0 0 1 .92 0Z" clipRule="evenodd" /></svg>+ );+ }+);++LinkIcon.displayName = "LinkIcon";diff --git a/packages/icons/src/__generated__/paint-brush.tsx b/packages/icons/src/__generated__/paint-brush.tsxnew file mode 100644index 0000000000..eb2a8e6e59--- /dev/null+++ b/packages/icons/src/__generated__/paint-brush.tsx@@ -0,0 +1,15 @@+// Generated from icons/paint-brush.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const PaintBrushIcon = 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 d="M11.391 1.873a1.93 1.93 0 0 1 2.69.046c.753.753.759 1.933.052 2.696-.33.356-.84.916-1.431 1.566-.67.734-1.443 1.584-2.18 2.384A121.12 121.12 0 0 1 8.7 10.512c-.242.25-.45.459-.603.602a2.787 2.787 0 0 1-.22.19.893.893 0 0 1-.178.105.66.66 0 0 1-.869-.325c-.363-.787-1.127-1.548-1.908-1.907a.657.657 0 0 1-.325-.87.894.894 0 0 1 .105-.177 2.79 2.79 0 0 1 .19-.221c.143-.154.352-.361.602-.602a121.42 121.42 0 0 1 1.948-1.824c.8-.736 1.649-1.51 2.383-2.179.65-.591 1.21-1.101 1.566-1.431Zm1.771.966a.631.631 0 0 0-.888-.012c-.352.326-.92.843-1.576 1.441-.74.674-1.592 1.45-2.376 2.172a120.24 120.24 0 0 0-2.114 1.985 5.677 5.677 0 0 1 1.373 1.373l.184-.189c.473-.49 1.115-1.179 1.801-1.925.722-.784 1.498-1.636 2.172-2.375.598-.657 1.115-1.225 1.441-1.577a.635.635 0 0 0-.017-.893ZM3.998 10.002c-1.107 0-2 .893-2 1.999 0 .684-.474 1.114-.948 1.268-.153.05-.242.246-.13.362.625.64 1.533 1.036 2.411 1.036A2.665 2.665 0 0 0 5.997 12c0-1.106-.893-2-2-2Z" clipRule="evenodd" /></svg>+ );+ }+);++PaintBrushIcon.displayName = "PaintBrushIcon";diff --git a/packages/icons/src/__generated__/subscript.tsx b/packages/icons/src/__generated__/subscript.tsxindex 61f8ab7106..be9d99384a 100644--- a/packages/icons/src/__generated__/subscript.tsx+++ b/packages/icons/src/__generated__/subscript.tsx@@ -7,7 +7,7 @@ import type { IconProps } from "../types";export const SubscriptIcon = forwardRef<SVGSVGElement, IconProps>(({ color = "currentColor", size = 16, ...props }, forwardedRef) => {return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path d="M38.5 40v-4.25q0-.7.4-1.1.4-.4 1.1-.4h4.5V31.5h-6V30h6q.7 0 1.1.4.4.4.4 1.1v2.75q0 .7-.4 1.1-.4.4-1.1.4H40v2.75h6V40Zm-26.75-4L21 21.45 12.4 8h4.3l6.75 10.65L30.2 8h4.3l-8.6 13.45L35.15 36H30.9l-7.45-11.7L16 36Z" /></svg>+ <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="M8.393 12.37 7.309 9.516h-3.43l-1.084 2.852a.7.7 0 0 1-1.308-.497l2.959-7.785c.072-.19.14-.37.207-.51.056-.117.178-.367.433-.517a.995.995 0 0 1 1.016 0c.255.15.378.4.434.518.066.139.134.319.207.509l2.959 7.785a.7.7 0 0 1-1.309.497ZM4.412 8.116l1.182-3.111 1.183 3.111H4.412Z" clipRule="evenodd" /><path d="M10.24 10.26a.65.65 0 1 0 1.298.067c.007-.122.08-.25.213-.356.065-.051.292-.14.598-.125.302.013.471.115.53.194a.662.662 0 0 1 .111.596l-.007.015a2.84 2.84 0 0 1-.364.538c-.165.193-.707.77-1.224 1.316-.255.27-.499.526-.68.715l-.295.31a.65.65 0 0 0 .467 1.102l2.97.012a.65.65 0 1 0 .005-1.3l-1.465-.006a55.013 55.013 0 0 0 1.21-1.303c.207-.243.351-.462.445-.626a2.92 2.92 0 0 0 .135-.265l.009-.022.003-.007v-.001l.001-.003.003-.006.006-.015a1.423 1.423 0 0 0 .05-.17 1.961 1.961 0 0 0-.337-1.656c-.387-.52-1.016-.695-1.515-.717-.496-.022-1.073.095-1.465.407-.322.256-.67.698-.702 1.307Z" /></svg>);});diff --git a/packages/icons/src/__generated__/superscript.tsx b/packages/icons/src/__generated__/superscript.tsxindex eed63e97e9..72061b2205 100644--- a/packages/icons/src/__generated__/superscript.tsx+++ b/packages/icons/src/__generated__/superscript.tsx@@ -7,7 +7,7 @@ import type { IconProps } from "../types";export const SuperscriptIcon = forwardRef<SVGSVGElement, IconProps>(({ color = "currentColor", size = 16, ...props }, forwardedRef) => {return (- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path d="M38.5 18v-4.25q0-.7.4-1.1.4-.4 1.1-.4h4.5V9.5h-6V8h6q.7 0 1.1.4.4.4.4 1.1v2.75q0 .7-.4 1.1-.4.4-1.1.4H40v2.75h6V18ZM11.75 40 21 25.45 12.4 12h4.3l6.75 10.65L30.2 12h4.3l-8.6 13.45L35.15 40H30.9l-7.45-11.7L16 40Z" /></svg>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path d="M9.484 3.046a.65.65 0 1 0 1.298.067c.006-.123.08-.25.213-.356.065-.052.292-.14.597-.126.302.014.472.116.53.195a.662.662 0 0 1 .112.596l-.007.014c-.01.023-.03.06-.059.112a2.843 2.843 0 0 1-.306.427c-.165.193-.706.77-1.223 1.316l-.68.714-.296.31a.65.65 0 0 0 .467 1.102l2.97.012a.65.65 0 0 0 .006-1.3l-1.465-.006a55 55 0 0 0 1.21-1.303c.207-.243.35-.462.445-.626a2.92 2.92 0 0 0 .135-.265l.009-.02.003-.008v-.002l.001-.002.002-.006.006-.015a1.186 1.186 0 0 0 .051-.17 1.96 1.96 0 0 0-.337-1.656c-.387-.52-1.016-.695-1.515-.718-.496-.022-1.073.095-1.466.407-.322.257-.67.699-.701 1.307Z" /><path fillRule="evenodd" d="M8.393 12.37 7.309 9.516h-3.43l-1.084 2.852a.7.7 0 1 1-1.308-.497l2.959-7.785c.072-.19.14-.37.207-.51.056-.118.178-.367.433-.517a.995.995 0 0 1 1.016 0c.255.15.378.4.434.517.066.14.134.32.207.51l2.959 7.785a.7.7 0 1 1-1.309.497ZM4.412 8.116l1.182-3.111 1.183 3.11H4.412Z" clipRule="evenodd" /></svg>);});diff --git a/packages/icons/src/__generated__/text-italic.tsx b/packages/icons/src/__generated__/text-italic.tsxnew file mode 100644index 0000000000..ce5692c0f7--- /dev/null+++ b/packages/icons/src/__generated__/text-italic.tsx@@ -0,0 +1,15 @@+// Generated from icons/text-italic.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const TextItalicIcon = 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 d="M9.985 2.017H6.667a.65.65 0 0 0 0 1.3h2.395L5.55 12.683H3.333a.65.65 0 0 0 0 1.3h6a.65.65 0 1 0 0-1.3H6.938l3.513-9.366h2.216a.65.65 0 1 0 0-1.3H9.985Z" clipRule="evenodd" /></svg>+ );+ }+);++TextItalicIcon.displayName = "TextItalicIcon";diff --git a/packages/icons/src/brush.tsx b/packages/icons/src/brush.tsxdeleted file mode 100644index a67e445a91..0000000000--- a/packages/icons/src/brush.tsx+++ /dev/null@@ -1,27 +0,0 @@-import * as React from "react";-import type { IconProps } from "./types";--export const BrushIcon = 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="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37-1.34-1.34a.9959.9959 0 0 0-1.41 0L9 12.25 11.75 15l8.96-8.96c.39-.39.39-1.02 0-1.41z"- />- </svg>- );- }-);--BrushIcon.displayName = "BrushIcon";diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.tsindex fb68661db5..050676aab6 100644--- a/packages/icons/src/index.ts+++ b/packages/icons/src/index.ts@@ -1,7 +1,6 @@export * from "./legacy";export * from "./__generated__";export * from "./list-nested";-export * from "./brush";export * from "./form";export * from "./undo";export * from "./redo";@@ -78,7 +77,6 @@ export * from "./text-align-left";export * from "./text-align-right";export * from "./text-capitalize";export * from "./text-hyphen";-export * from "./text-italic";export * from "./text-lowercase";export * from "./text-strikethrough";export * from "./text-truncate";diff --git a/packages/icons/src/legacy.ts b/packages/icons/src/legacy.tsindex b17c55048a..8fb9b2dcd6 100644--- a/packages/icons/src/legacy.ts+++ b/packages/icons/src/legacy.ts@@ -1,8 +1,5 @@export {ImageIcon,- FontBoldIcon,- FontItalicIcon,- Link2Icon,DotsHorizontalIcon,CheckIcon,RocketIcon,diff --git a/packages/icons/src/text-italic.tsx b/packages/icons/src/text-italic.tsxdeleted file mode 100644index bf65a79a97..0000000000--- a/packages/icons/src/text-italic.tsx+++ /dev/null@@ -1,27 +0,0 @@-import * as React from "react";-import type { IconProps } from "./types";--export const TextItalicIcon = React.forwardRef<SVGSVGElement, IconProps>(- ({ color = "currentColor", ...props }, forwardedRef) => {- return (- <svg- width="16"- height="16"- viewBox="0 0 16 16"- fill="none"- xmlns="http://www.w3.org/2000/svg"- {...props}- ref={forwardedRef}- >- <path- d="M12.75 3H7.125M9.625 13H4M10.25 3L6.5 13"- stroke={color}- strokeWidth="1.45"- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- );- }-);-TextItalicIcon.displayName = "TextItalicIcon";diff --git a/packages/react-sdk/src/components/bold.ws.tsx b/packages/react-sdk/src/components/bold.ws.tsxindex a8c2db9429..b571cb7bf1 100644--- a/packages/react-sdk/src/components/bold.ws.tsx+++ b/packages/react-sdk/src/components/bold.ws.tsx@@ -1,4 +1,4 @@-import { FontBoldIcon } from "@webstudio-is/icons";+import { BoldIcon } from "@webstudio-is/icons";import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";import { props } from "./__generated__/bold.props";import { b } from "../css/normalize";@@ -12,7 +12,7 @@ const presetStyle = {export const meta: WsComponentMeta = {type: "rich-text-child",label: "Bold Text",- Icon: FontBoldIcon,+ Icon: BoldIcon,presetStyle,};diff --git a/packages/react-sdk/src/components/italic.ws.tsx b/packages/react-sdk/src/components/italic.ws.tsxindex e469e3e447..a6b6dee682 100644--- a/packages/react-sdk/src/components/italic.ws.tsx+++ b/packages/react-sdk/src/components/italic.ws.tsx@@ -1,5 +1,5 @@import type { Style } from "@webstudio-is/css-data";-import { FontItalicIcon } from "@webstudio-is/icons";+import { TextItalicIcon } from "@webstudio-is/icons";import type { defaultTag } from "./italic";import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";import { props } from "./__generated__/italic.props";@@ -18,7 +18,7 @@ const presetStyle = {export const meta: WsComponentMeta = {type: "rich-text-child",label: "Italic Text",- Icon: FontItalicIcon,+ Icon: TextItalicIcon,presetStyle,};diff --git a/packages/react-sdk/src/components/link.ws.tsx b/packages/react-sdk/src/components/link.ws.tsxindex a58e5ce5fe..115d8d6fb4 100644--- a/packages/react-sdk/src/components/link.ws.tsx+++ b/packages/react-sdk/src/components/link.ws.tsx@@ -1,5 +1,5 @@import type { Style } from "@webstudio-is/css-data";-import { Link2Icon } from "@webstudio-is/icons";+import { LinkIcon } from "@webstudio-is/icons";import { a } from "../css/normalize";import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";import type { defaultTag } from "./link";@@ -24,7 +24,7 @@ export const meta: WsComponentMeta = {category: "general",type: "rich-text",label: "Link Text",- Icon: Link2Icon,+ Icon: LinkIcon,presetStyle,children: ["Link text you can edit"],};diff --git a/packages/react-sdk/src/components/span.ws.tsx b/packages/react-sdk/src/components/span.ws.tsxindex 8ae238ae2e..0dfcf192d1 100644--- a/packages/react-sdk/src/components/span.ws.tsx+++ b/packages/react-sdk/src/components/span.ws.tsx@@ -1,5 +1,5 @@import type { Style } from "@webstudio-is/css-data";-import { BrushIcon } from "@webstudio-is/icons";+import { PaintBrushIcon } from "@webstudio-is/icons";import { span } from "../css/normalize";import type { WsComponentMeta, WsComponentPropsMeta } from "./component-meta";import type { defaultTag } from "./span";@@ -12,7 +12,7 @@ const presetStyle = {export const meta: WsComponentMeta = {type: "rich-text-child",label: "Styled Text",- Icon: BrushIcon,+ Icon: PaintBrushIcon,presetStyle,};