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
Add phone and email links support in URL control (#1375)
Roman Pominov729754419836
diff --git a/apps/builder/app/builder/features/props-panel/controls/color.tsx b/apps/builder/app/builder/features/props-panel/controls/color.tsxindex ba657eea91..b705de5ae6 100644--- a/apps/builder/app/builder/features/props-panel/controls/color.tsx+++ b/apps/builder/app/builder/features/props-panel/controls/color.tsx@@ -1,9 +1,4 @@-import {- Flex,- DeprecatedTextField,- theme,- useId,-} from "@webstudio-is/design-system";+import { InputField, theme, useId } from "@webstudio-is/design-system";import {type ControlProps,getLabel,@@ -34,24 +29,18 @@ export const ColorControl = ({id={id}onDelete={onDelete}>- <Flex- css={{- // can't set width on TextField because it adds padding- width: theme.spacing[22],+ <InputField+ id={id}+ value={localValue.value}+ onChange={(event) => localValue.set(event.target.value)}+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();+ }}}- >- <DeprecatedTextField- id={id}- value={localValue.value}- onChange={(event) => localValue.set(event.target.value)}- onBlur={localValue.save}- onKeyDown={(event) => {- if (event.key === "Enter") {- localValue.save();- }- }}- />- </Flex>+ css={{ width: theme.spacing[22] }}+ /></HorizontalLayout>);};diff --git a/apps/builder/app/builder/features/props-panel/controls/number.tsx b/apps/builder/app/builder/features/props-panel/controls/number.tsxindex 9acf65d401..98cd3dff75 100644--- a/apps/builder/app/builder/features/props-panel/controls/number.tsx+++ b/apps/builder/app/builder/features/props-panel/controls/number.tsx@@ -1,9 +1,4 @@-import {- Flex,- DeprecatedTextField,- theme,- useId,-} from "@webstudio-is/design-system";+import { InputField, theme, useId } from "@webstudio-is/design-system";import {type ControlProps,getLabel,@@ -36,27 +31,21 @@ export const NumberControl = ({label={getLabel(meta, propName)}onDelete={onDelete}>- <Flex- css={{- // can't set width on TextField because it adds padding- width: theme.spacing[21],- }}- >- <DeprecatedTextField- id={id}- type="number"- value={localValue.value}- onChange={({ target: { valueAsNumber, value } }) =>- localValue.set(Number.isNaN(valueAsNumber) ? value : valueAsNumber)+ <InputField+ id={id}+ type="number"+ value={localValue.value}+ onChange={({ target: { valueAsNumber, value } }) =>+ localValue.set(Number.isNaN(valueAsNumber) ? value : valueAsNumber)+ }+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();}- onBlur={localValue.save}- onKeyDown={(event) => {- if (event.key === "Enter") {- localValue.save();- }- }}- />- </Flex>+ }}+ css={{ width: theme.spacing[21] }}+ /></HorizontalLayout>);};diff --git a/apps/builder/app/builder/features/props-panel/controls/text.tsx b/apps/builder/app/builder/features/props-panel/controls/text.tsxindex f58e3f6126..2b38fb81f1 100644--- a/apps/builder/app/builder/features/props-panel/controls/text.tsx+++ b/apps/builder/app/builder/features/props-panel/controls/text.tsx@@ -1,5 +1,5 @@import {- DeprecatedTextField,+ InputField,Flex,theme,useId,@@ -32,24 +32,18 @@ const AsInput = ({return (<HorizontalLayout label={label} id={id} onDelete={onDelete}>- <Flex- css={{- // can't set width on TextField because it adds padding- width: theme.spacing[22],+ <InputField+ id={id}+ value={localValue.value}+ onChange={(event) => localValue.set(event.target.value)}+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();+ }}}- >- <DeprecatedTextField- id={id}- value={localValue.value}- onChange={(event) => localValue.set(event.target.value)}- onBlur={localValue.save}- onKeyDown={(event) => {- if (event.key === "Enter") {- localValue.save();- }- }}- />- </Flex>+ css={{ width: theme.spacing[22] }}+ /></HorizontalLayout>);};diff --git a/apps/builder/app/builder/features/props-panel/controls/url.tsx b/apps/builder/app/builder/features/props-panel/controls/url.tsxindex 5591ed3c2b..6895ef1a33 100644--- a/apps/builder/app/builder/features/props-panel/controls/url.tsx+++ b/apps/builder/app/builder/features/props-panel/controls/url.tsx@@ -1,7 +1,7 @@import { useStore } from "@nanostores/react";import { pagesStore } from "~/shared/nano-states";import {- DeprecatedTextField,+ InputField,Flex,theme,useId,@@ -9,9 +9,10 @@ import {ToggleGroupItem,Select,Tooltip,+ Label,} from "@webstudio-is/design-system";-import { LinkIcon, PageIcon } from "@webstudio-is/icons";-import { useState } from "react";+import { EmailIcon, LinkIcon, PageIcon, PhoneIcon } from "@webstudio-is/icons";+import { type ReactNode, useState } from "react";import {type ControlProps,getLabel,@@ -28,6 +29,12 @@ type BaseControlProps = {onChange: UrlControlProps["onChange"];};+const Row = ({ children }: { children: ReactNode }) => (+ <Flex css={{ height: theme.spacing[13] }} align="center" justify="between">+ {children}+ </Flex>+);+const BaseUrl = ({ prop, onChange, id }: BaseControlProps) => {const localValue = useLocalValue(prop?.type === "string" ? prop.value : "",@@ -35,8 +42,8 @@ const BaseUrl = ({ prop, onChange, id }: BaseControlProps) => {);return (- <Flex css={{ py: theme.spacing[2] }} direction="column" align="stretch">- <DeprecatedTextField+ <Row>+ <InputFieldid={id}value={localValue.value}placeholder="https://example.com/"@@ -47,8 +54,116 @@ const BaseUrl = ({ prop, onChange, id }: BaseControlProps) => {localValue.save();}}}+ css={{ width: "100%" }}+ />+ </Row>+ );+};++const BasePhone = ({ prop, onChange, id }: BaseControlProps) => {+ const localValue = useLocalValue(+ prop?.type === "string" && prop.value.startsWith("tel:")+ ? prop.value.slice(4)+ : "",+ (value) => onChange({ type: "string", value: `tel:${value}` })+ );++ return (+ <Row>+ <InputField+ id={id}+ value={localValue.value}+ type="tel"+ placeholder="+15555555555"+ onChange={(event) => localValue.set(event.target.value)}+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();+ }+ }}+ css={{ width: "100%" }}/>- </Flex>+ </Row>+ );+};++const propToEmail = (prop?: UrlControlProps["prop"]) => {+ if (prop?.type !== "string") {+ return { email: "", subject: "" };+ }++ let url;+ try {+ url = new URL(prop.value);+ // eslint-disable-next-line no-empty+ } catch {}++ if (url === undefined || url.protocol !== "mailto:") {+ return { email: "", subject: "" };+ }++ return {+ email: url.pathname,+ subject: url.searchParams.get("subject") ?? "",+ };+};++const BaseEmail = ({ prop, onChange, id }: BaseControlProps) => {+ const localValue = useLocalValue(propToEmail(prop), ({ email, subject }) => {+ if (email === "") {+ onChange({ type: "string", value: "" });+ return;+ }+ const url = new URL(`mailto:${email}`);+ if (subject !== "") {+ url.searchParams.set("subject", subject);+ }+ onChange({ type: "string", value: url.toString() });+ });++ return (+ <>+ <Row>+ <InputField+ id={id}+ value={localValue.value.email}+ type="email"+ placeholder="[email protected]"+ onChange={(event) =>+ localValue.set((value) => ({ ...value, email: event.target.value }))+ }+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();+ }+ }}+ css={{ width: "100%" }}+ />+ </Row>+ <Row>+ <Label htmlFor={`${id}-subject`}>Subject</Label>+ <InputField+ id={`${id}-subject`}+ value={localValue.value.subject}+ placeholder="You've got mail!"+ onChange={(event) =>+ localValue.set((value) => ({+ ...value,+ subject: event.target.value,+ }))+ }+ onBlur={localValue.save}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ localValue.save();+ }+ }}+ css={{ width: theme.spacing[24] }}+ />+ </Row>+ </>);};@@ -64,7 +179,7 @@ const BasePage = ({ prop, onChange, id }: BaseControlProps) => {: undefined;return (- <Flex css={{ py: theme.spacing[2] }}>+ <Row><Selectid={id}value={value}@@ -74,17 +189,38 @@ const BasePage = ({ prop, onChange, id }: BaseControlProps) => {onChange={(page) => onChange({ type: "page", value: page.id })}fullWidth/>- </Flex>+ </Row>);};-// @todo: Section, Email, Phone, Attachment-const modes = ["url", "page"] as const;-type Mode = (typeof modes)[number];-const baseControls = {- url: BaseUrl,- page: BasePage,-} satisfies Record<Mode, unknown>;+const modes = {+ url: { icon: <LinkIcon />, control: BaseUrl, label: "URL" },+ page: { icon: <PageIcon />, control: BasePage, label: "Page" },+ email: { icon: <EmailIcon />, control: BaseEmail, label: "Email" },+ phone: { icon: <PhoneIcon />, control: BasePhone, label: "Phone" },+} as const;++type Mode = keyof typeof modes;++const propToMode = (prop?: UrlControlProps["prop"]): Mode => {+ if (prop === undefined) {+ return "url";+ }++ if (prop.type === "page") {+ return "page";+ }++ if (prop.value.startsWith("tel:")) {+ return "phone";+ }++ if (prop.value.startsWith("mailto:")) {+ return "email";+ }++ return "url";+};export const UrlControl = ({meta,@@ -93,13 +229,11 @@ export const UrlControl = ({onChange,onDelete,}: UrlControlProps) => {- const initialMode = prop?.type === "page" ? "page" : "url";-- const [mode, setMode] = useState<Mode>(initialMode);+ const [mode, setMode] = useState<Mode>(propToMode(prop));const id = useId();- const BaseControl = baseControls[mode];+ const BaseControl = modes[mode].control;return (<VerticalLayout@@ -120,22 +254,16 @@ export const UrlControl = ({type="single"value={mode}onValueChange={(value) => {- const asMode = modes.find((mode) => mode === value);- if (asMode) {- setMode(asMode);- }+ // too tricky to prove to TS that value is a Mode+ // doesn't worth it given we map over modes below+ setMode(value as Mode);}}>- <ToggleGroupItem value={"url" satisfies Mode}>- <Tooltip content="URL">- <LinkIcon />- </Tooltip>- </ToggleGroupItem>- <ToggleGroupItem value={"page" satisfies Mode}>- <Tooltip content="Page">- <PageIcon />- </Tooltip>- </ToggleGroupItem>+ {Object.entries(modes).map(([key, { icon, label }]) => (+ <ToggleGroupItem value={key} key={key}>+ <Tooltip content={label}>{icon}</Tooltip>+ </ToggleGroupItem>+ ))}</ToggleGroup></Flex>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.tsxindex ce846dafdf..c8a5a66acc 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@@ -8,14 +8,18 @@ import type {WsComponentMeta,WsComponentPropsMeta,} from "@webstudio-is/react-sdk";+import { textVariants } from "@webstudio-is/design-system";++let id = 0;+const unique = () => `${++id}`;const page = (name: string, path: string) => ({- id: Math.random().toString(),+ id: unique(),name,title: name,path,meta: {},- rootInstanceId: "1",+ rootInstanceId: unique(),});pagesStore.set({@@ -98,7 +102,7 @@ const checkProp = (options = defaultOptions, label?: string): PropMeta => ({label,});-const instanceId = "0";+const instanceId = unique();const componentMeta: WsComponentMeta = {category: "general",@@ -128,6 +132,8 @@ const componentPropsMeta: WsComponentPropsMeta = {addedCheck: checkProp(),addedUrlUrl: urlProp("Added URL (URL)"),addedUrlPage: urlProp("Added URL (Page)"),+ addedUrlEmail: urlProp("Added URL (Email)"),+ addedUrlPhone: urlProp("Added URL (Phone)"),availableText: textProp(),availableShortText: shortTextProp(),availableNumber: numberProp(),@@ -153,75 +159,89 @@ const componentPropsMeta: WsComponentPropsMeta = {const startingProps: Prop[] = [{- id: "0",+ id: unique(),instanceId,name: "addedText",type: "string",value: "some text",},{- id: "1",+ id: unique(),instanceId,name: "addedShortText",type: "string",value: "some short text",},{- id: "2",+ id: unique(),instanceId,name: "addedNumber",type: "number",value: 10,},{- id: "3",+ id: unique(),instanceId,name: "addedBoolean",type: "boolean",value: true,},{- id: "4",+ id: unique(),instanceId,name: "addedColor",type: "string",value: "#ff0000",},{- id: "5",+ id: unique(),instanceId,name: "addedRadio",type: "string",value: "two",},{- id: "7",+ id: unique(),instanceId,name: "addedSelect",type: "string",value: "two",},{- id: "8",+ id: unique(),instanceId,name: "addedCheck",type: "string[]",value: ["one", "two"],},{- id: "9",+ id: unique(),instanceId,name: "addedUrlUrl",type: "string",value: "https://example.com",},{- id: "10",+ id: unique(),instanceId,name: "addedUrlPage",type: "page",value: pagesStore.get()?.pages[0].id ?? "",},+ {+ id: unique(),+ instanceId,+ name: "addedUrlEmail",+ type: "string",+ value: "mailto:[email protected]?subject=Hello",+ },+ {+ id: unique(),+ instanceId,+ name: "addedUrlPhone",+ type: "string",+ value: "tel:+1234567890",+ },];export const Story = () => {@@ -249,14 +269,24 @@ export const Story = () => {});return (- <div style={{ width: 240, border: "dashed 3px #e3e3e3" }}>- <PropsPanel- propsLogic={logic}- component="Button"- instanceLabel="My Button"- componentMeta={componentMeta}- setCssProperty={() => () => undefined}- />+ <div style={{ display: "flex", gap: 12 }}>+ <div style={{ width: 240, border: "dashed 3px #e3e3e3" }}>+ <PropsPanel+ propsLogic={logic}+ component="Button"+ instanceLabel="My Button"+ componentMeta={componentMeta}+ setCssProperty={() => () => undefined}+ />+ </div>+ <pre style={textVariants.mono}>+ {props+ .map(+ ({ name, value, type }) =>+ `${name}: ${type} = ${JSON.stringify(value)}`+ )+ .join("\n")}+ </pre></div>);};diff --git a/apps/builder/app/builder/features/props-panel/shared.tsx b/apps/builder/app/builder/features/props-panel/shared.tsxindex 698a7cd71e..d2a859c9c6 100644--- a/apps/builder/app/builder/features/props-panel/shared.tsx+++ b/apps/builder/app/builder/features/props-panel/shared.tsx@@ -5,6 +5,7 @@ import {useState,useEffect,} from "react";+import equal from "fast-deep-equal";import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk";import type { Prop } from "@webstudio-is/project-build";import type { Asset } from "@webstudio-is/asset-uploader";@@ -84,13 +85,13 @@ export const useLocalValue = <Type,>(// Not using an effect to avoid re-rendering// https://beta.reactjs.org/reference/react/useState#storing-information-from-previous-rendersconst [previousSavedValue, setPreviousSavedValue] = useState(savedValue);- if (previousSavedValue !== savedValue) {+ if (equal(previousSavedValue, savedValue) === false) {setLocalValue(savedValue);setPreviousSavedValue(savedValue);}const save = () => {- if (localValue !== savedValue) {+ if (equal(localValue, savedValue) === false) {onSave(localValue);}};diff --git a/packages/design-system/src/components/input-field.tsx b/packages/design-system/src/components/input-field.tsxindex 624bc808da..703a365973 100644--- a/packages/design-system/src/components/input-field.tsx+++ b/packages/design-system/src/components/input-field.tsx@@ -21,6 +21,7 @@ export const inputFieldTypes = ["tel","text","url",+ "number",] as const;export const inputFieldColors = ["placeholder", "set", "error"] as const;@@ -42,6 +43,13 @@ const inputStyle = css({"&:disabled, &:disabled::placeholder": {color: theme.colors.foregroundDisabled,},+ '&[type="number"]': {+ MozAppearance: "textfield",+ "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {+ WebkitAppearance: "none",+ margin: 0,+ },+ },});const containerStyle = css({diff --git a/packages/design-system/src/components/nested-select-button.tsx b/packages/design-system/src/components/nested-select-button.tsxindex a76615627b..bdd1fde7ee 100644--- a/packages/design-system/src/components/nested-select-button.tsx+++ b/packages/design-system/src/components/nested-select-button.tsx@@ -25,10 +25,11 @@ const style = css({paddingLeft: theme.spacing[2],paddingRight: theme.spacing[2],},- "&[data-state=hover], &:not([data-state=open], :disabled):hover": {- color: theme.colors.foregroundMain,- backgroundColor: theme.colors.backgroundHover,- },+ "&[data-state=hover], &:not([data-state=open], :disabled, :focus-visible):hover":+ {+ color: theme.colors.foregroundMain,+ backgroundColor: theme.colors.backgroundHover,+ },"&[data-state=open], &:focus-visible": {color: theme.colors.foregroundContrastMain,backgroundColor: theme.colors.backgroundActive,diff --git a/packages/icons/icons/attachment.svg b/packages/icons/icons/attachment.svgnew file mode 100644index 0000000000..139ad9126c--- /dev/null+++ b/packages/icons/icons/attachment.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="M9.12985 1.84184C10.0729 0.898832 11.6018 0.898832 12.5448 1.84183C13.4878 2.78484 13.4878 4.31375 12.5448 5.25675L6.65619 11.1453C6.40235 11.3992 5.99079 11.3992 5.73695 11.1453C5.48311 10.8915 5.48311 10.4799 5.73695 10.2261L11.6255 4.33751C12.0609 3.90219 12.0609 3.19639 11.6255 2.76107C11.1902 2.32575 10.4844 2.32575 10.0491 2.76107L4.16051 8.64965C3.03603 9.77414 3.03603 11.5973 4.16051 12.7218C5.285 13.8463 7.10815 13.8463 8.23263 12.7218L12.8734 8.08103C13.1272 7.82719 13.5388 7.82719 13.7926 8.08103C14.0464 8.33487 14.0464 8.74643 13.7926 9.00027L9.15187 13.641C7.5197 15.2732 4.87344 15.2732 3.24128 13.641C1.60911 12.0088 1.60911 9.36258 3.24127 7.73041L9.12985 1.84184Z" />+</svg>diff --git a/packages/icons/icons/email.svg b/packages/icons/icons/email.svgnew file mode 100644index 0000000000..8b362d29f6--- /dev/null+++ b/packages/icons/icons/email.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="M4.85345 2.54995H11.1465C11.628 2.54994 12.0284 2.54993 12.3551 2.57663C12.6955 2.60444 13.0128 2.66442 13.3123 2.81698C13.7733 3.05187 14.1481 3.42668 14.3829 3.88767C14.5537 4.22277 14.6092 4.58248 14.6323 4.97325C14.65 5.27327 14.65 5.63462 14.65 6.06176V9.94652C14.65 10.428 14.65 10.8283 14.6233 11.1551C14.5955 11.4955 14.5355 11.8128 14.3829 12.1122C14.1481 12.5732 13.7733 12.948 13.3123 13.1829C13.0128 13.3355 12.6955 13.3955 12.3551 13.4233C12.0284 13.45 11.628 13.45 11.1466 13.4499H4.8534C4.37194 13.45 3.97158 13.45 3.64481 13.4233C3.30446 13.3955 2.98712 13.3355 2.6877 13.1829C2.2267 12.948 1.8519 12.5732 1.61701 12.1122C1.46445 11.8128 1.40447 11.4955 1.37666 11.1551C1.34996 10.8283 1.34997 10.428 1.34998 9.94648L1.34998 6.06177C1.34997 5.63463 1.34997 5.27327 1.36768 4.97325C1.39075 4.58248 1.44627 4.22277 1.61701 3.88767C1.8519 3.42668 2.2267 3.05187 2.6877 2.81698C2.98712 2.66442 3.30446 2.60444 3.64481 2.57663C3.97159 2.54993 4.37197 2.54994 4.85345 2.54995ZM3.75067 3.87232C3.49071 3.89355 3.3635 3.93167 3.27789 3.97529C3.0615 4.08555 2.88557 4.26147 2.77532 4.47786C2.74859 4.53031 2.72431 4.59746 2.70458 4.69975L7.27168 7.89671C7.71243 8.20524 7.79628 8.25122 7.86695 8.26883C7.9543 8.29061 8.04566 8.29061 8.133 8.26883C8.20367 8.25122 8.28752 8.20524 8.72827 7.89672L13.2954 4.69975C13.2756 4.59746 13.2514 4.53031 13.2246 4.47786C13.1144 4.26147 12.9385 4.08555 12.7221 3.97529C12.6364 3.93167 12.5092 3.89355 12.2493 3.87232C11.9817 3.85046 11.6347 3.84995 11.12 3.84995H4.87998C4.3652 3.84995 4.01822 3.85046 3.75067 3.87232ZM13.35 6.24838L9.47377 8.96172C9.44977 8.97852 9.42594 8.99526 9.40228 9.01188C9.0783 9.23947 8.78371 9.44641 8.44743 9.53024C8.15362 9.60347 7.84633 9.60347 7.55252 9.53024C7.21624 9.44641 6.92165 9.23947 6.59767 9.01188C6.57401 8.99526 6.55018 8.97852 6.52618 8.96172L2.64998 6.24838V9.91995C2.64998 10.4347 2.65048 10.7817 2.67234 11.0493C2.69358 11.3092 2.7317 11.4364 2.77532 11.522C2.88557 11.7384 3.0615 11.9144 3.27789 12.0246C3.3635 12.0682 3.49071 12.1063 3.75067 12.1276C4.01822 12.1494 4.3652 12.15 4.87998 12.15H11.12C11.6347 12.15 11.9817 12.1494 12.2493 12.1276C12.5092 12.1063 12.6364 12.0682 12.7221 12.0246C12.9385 11.9144 13.1144 11.7384 13.2246 11.522C13.2683 11.4364 13.3064 11.3092 13.3276 11.0493C13.3495 10.7817 13.35 10.4347 13.35 9.91995V6.24838Z" />+</svg>diff --git a/packages/icons/icons/link.svg b/packages/icons/icons/link.svgindex ef99bab02d..a54fa82b7f 100644--- a/packages/icons/icons/link.svg+++ b/packages/icons/icons/link.svg@@ -1,3 +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" />+<path fill-rule="evenodd" 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/page.svg b/packages/icons/icons/page.svgnew file mode 100644index 0000000000..9f5ad3e5a9--- /dev/null+++ b/packages/icons/icons/page.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="M8.54999 2.65822C8.44266 2.65145 8.28373 2.65001 8.00705 2.65001H6.07999C5.56522 2.65001 5.21823 2.65051 4.95068 2.67237C4.69073 2.69361 4.56352 2.73172 4.4779 2.77535C4.26151 2.8856 4.08559 3.06153 3.97533 3.27792C3.93171 3.36353 3.89359 3.49074 3.87235 3.7507C3.85049 4.01825 3.84999 4.36523 3.84999 4.88001V11.12C3.84999 11.6348 3.85049 11.9818 3.87235 12.2493C3.89359 12.5093 3.93171 12.6365 3.97533 12.7221C4.08559 12.9385 4.26151 13.1144 4.4779 13.2247C4.56352 13.2683 4.69073 13.3064 4.95068 13.3276C5.21823 13.3495 5.56522 13.35 6.07999 13.35H9.91999C10.4348 13.35 10.7817 13.3495 11.0493 13.3276C11.3093 13.3064 11.4365 13.2683 11.5221 13.2247C11.7385 13.1144 11.9144 12.9385 12.0246 12.7221C12.0683 12.6365 12.1064 12.5093 12.1276 12.2493C12.1495 11.9818 12.15 11.6348 12.15 11.12V6.79294C12.15 6.51626 12.1485 6.35734 12.1418 6.25001L10.1399 6.25001C9.98934 6.25003 9.83998 6.25005 9.71298 6.23967C9.57273 6.22821 9.40358 6.20093 9.2325 6.11376C8.9973 5.99392 8.80607 5.8027 8.68623 5.56749C8.59906 5.39642 8.57178 5.22726 8.56032 5.08702C8.54995 4.96002 8.54997 4.81066 8.54999 4.66014L8.54999 2.65822ZM9.4535 1.56297C9.31609 1.50161 9.17311 1.45294 9.02635 1.4177C8.74276 1.34962 8.44909 1.34978 8.07097 1.34998C8.04993 1.34999 8.02863 1.35001 8.00705 1.35001L6.05346 1.35001C5.57198 1.35 5.1716 1.34999 4.84482 1.37669C4.50447 1.4045 4.18714 1.46448 3.88771 1.61704C3.42671 1.85193 3.05191 2.22673 2.81702 2.68773C2.66446 2.98715 2.60448 3.30449 2.57667 3.64484C2.54997 3.97162 2.54998 4.372 2.54999 4.85347V11.1465C2.54998 11.628 2.54997 12.0284 2.57667 12.3552C2.60448 12.6955 2.66446 13.0129 2.81702 13.3123C3.05191 13.7733 3.42671 14.1481 3.88771 14.383C4.18714 14.5355 4.50447 14.5955 4.84482 14.6233C5.1716 14.65 5.57198 14.65 6.05346 14.65H9.94652C10.428 14.65 10.8284 14.65 11.1552 14.6233C11.4955 14.5955 11.8128 14.5355 12.1123 14.383C12.5733 14.1481 12.9481 13.7733 13.183 13.3123C13.3355 13.0129 13.3955 12.6955 13.4233 12.3552C13.45 12.0284 13.45 11.628 13.45 11.1465V6.79294C13.45 6.77136 13.45 6.75006 13.45 6.72902C13.4502 6.3509 13.4504 6.05723 13.3823 5.77365C13.3471 5.62687 13.2984 5.48388 13.237 5.34646C13.2327 5.3362 13.228 5.32607 13.2232 5.31608C13.1834 5.23014 13.1386 5.14645 13.089 5.06547C12.9366 4.8168 12.7288 4.60925 12.4613 4.34202C12.4464 4.32716 12.4313 4.31211 12.4161 4.29685L10.5031 2.38392C10.4879 2.36866 10.4728 2.35359 10.458 2.33871C10.1907 2.07119 9.98319 1.86342 9.73453 1.71104C9.65355 1.66142 9.56988 1.61662 9.48395 1.57682C9.47394 1.57195 9.46379 1.56734 9.4535 1.56297ZM9.84999 3.56924V4.64001C9.84999 4.79002 9.85034 4.88103 9.85372 4.94627C9.91896 4.94965 10.01 4.95001 10.16 4.95001H11.2308L9.84999 3.56924Z"/>+</svg>diff --git a/packages/icons/icons/phone.svg b/packages/icons/icons/phone.svgnew file mode 100644index 0000000000..3185b8220f--- /dev/null+++ b/packages/icons/icons/phone.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="M4.56168 2.71897C4.38008 2.62711 4.16561 2.62711 3.98401 2.71897C3.91607 2.75333 3.83094 2.82691 3.45204 3.2058L3.35037 3.30747C2.98889 3.66895 2.89207 3.77294 2.81463 3.9108C2.72481 4.07068 2.64943 4.36055 2.64998 4.54393C2.65046 4.70709 2.67445 4.80518 2.78107 5.1808C3.30688 7.03337 4.2988 8.78164 5.75861 10.2414C7.21841 11.7012 8.96668 12.6932 10.8192 13.219C11.1949 13.3256 11.293 13.3496 11.4561 13.3501C11.6395 13.3506 11.9294 13.2752 12.0892 13.1854C12.2271 13.108 12.3311 13.0112 12.6926 12.6497L12.7942 12.548C13.1731 12.1691 13.2467 12.084 13.2811 12.016C13.3729 11.8344 13.3729 11.62 13.2811 11.4384C13.2467 11.3704 13.1731 11.2853 12.7942 10.9064L12.6686 10.7807C12.4196 10.5318 12.3641 10.4813 12.3223 10.4541C12.1102 10.3162 11.8367 10.3162 11.6246 10.4541C11.5828 10.4813 11.5273 10.5318 11.2783 10.7807C11.2734 10.7856 11.2684 10.7907 11.2632 10.7959C11.2054 10.8539 11.1318 10.9278 11.0434 10.991C10.7281 11.2168 10.2995 11.2899 9.92712 11.1814C9.82326 11.1511 9.73777 11.1099 9.67156 11.078C9.66631 11.0754 9.66118 11.073 9.65618 11.0706C8.65599 10.5903 7.71923 9.93596 6.89166 9.10839C6.06409 8.28082 5.4097 7.34406 4.92949 6.34387C4.92709 6.33886 4.92461 6.33373 4.92208 6.32848C4.89017 6.26228 4.84895 6.17678 4.81868 6.07293C4.71013 5.70057 4.78322 5.27196 5.00902 4.95661C5.07229 4.86825 5.14613 4.79468 5.20417 4.73685C5.20936 4.73168 5.21442 4.72664 5.21933 4.72173C5.46829 4.47277 5.51874 4.41728 5.54595 4.37544C5.68385 4.16333 5.68386 3.88989 5.54595 3.67778C5.51874 3.63594 5.46829 3.58044 5.21933 3.33149L5.09365 3.2058C4.71476 2.82691 4.62962 2.75333 4.56168 2.71897ZM3.39726 1.55891C3.94778 1.28046 4.59792 1.28046 5.14843 1.55891C5.4282 1.70042 5.671 1.94384 5.95096 2.22453C6.02702 2.30079 6.1032 2.37696 6.17943 2.45306C6.36416 2.63747 6.5238 2.79684 6.63584 2.96916C7.05389 3.61215 7.05389 4.44107 6.63584 5.08405C6.5238 5.25637 6.36416 5.41574 6.17943 5.60015C6.14349 5.63603 6.106 5.67246 6.07032 5.71003L6.06997 5.7119L6.06963 5.71412C6.07985 5.73666 6.09075 5.75888 6.10141 5.7812C6.519 6.65095 7.0885 7.46675 7.8109 8.18915C8.5333 8.91155 9.3491 9.48105 10.2188 9.89863C10.2412 9.9093 10.2634 9.9202 10.2859 9.93042L10.2881 9.93008L10.29 9.92973C10.3276 9.89406 10.364 9.85656 10.3999 9.82062C10.5843 9.63589 10.7437 9.47625 10.916 9.36421C11.559 8.94616 12.3879 8.94616 13.0309 9.36421C13.2032 9.47625 13.3626 9.63589 13.547 9.82062C13.6231 9.89685 13.6993 9.97302 13.7755 10.0491C14.0562 10.329 14.2996 10.5718 14.4411 10.8516C14.7196 11.4021 14.7196 12.0523 14.4411 12.6028C14.2996 12.8826 14.0562 13.1254 13.7755 13.4053C13.7063 13.4744 13.6371 13.5436 13.568 13.6128C13.2681 13.913 13.0375 14.1438 12.7259 14.3188C12.3705 14.5185 11.86 14.6513 11.4523 14.6501C11.0956 14.649 10.8354 14.5751 10.5008 14.48C10.4887 14.4765 10.4766 14.4731 10.4643 14.4696C8.40395 13.8848 6.45993 12.7812 4.83937 11.1607C3.21881 9.54012 2.11525 7.5961 1.53047 5.53576C1.52698 5.52349 1.52353 5.51132 1.5201 5.49925C1.42499 5.16464 1.35104 4.90445 1.34998 4.5478C1.34877 4.1401 1.48154 3.62957 1.68121 3.27411C1.85622 2.96257 2.08705 2.73198 2.38724 2.4321C2.45665 2.36276 2.52677 2.29267 2.59474 2.22453C2.87469 1.94385 3.11749 1.70042 3.39726 1.55891Z" />+</svg>diff --git a/packages/icons/icons/section-link.svg b/packages/icons/icons/section-link.svgnew file mode 100644index 0000000000..7ab491c54f--- /dev/null+++ b/packages/icons/icons/section-link.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="M8.55003 2.65821C8.4427 2.65144 8.28378 2.65 8.0071 2.65H6.08003C5.56526 2.65 5.21827 2.6505 4.95073 2.67236C4.69077 2.6936 4.56356 2.73172 4.47794 2.77534C4.26156 2.88559 4.08563 3.06152 3.97537 3.27791C3.93175 3.36353 3.89364 3.49074 3.8724 3.75069C3.85054 4.01824 3.85003 4.36522 3.85003 4.88V6C3.85003 6.35898 3.55902 6.65 3.20003 6.65C2.84105 6.65 2.55003 6.35898 2.55003 6L2.55003 4.85347C2.55002 4.37199 2.55002 3.97161 2.57671 3.64483C2.60452 3.30448 2.6645 2.98715 2.81707 2.68772C3.05196 2.22672 3.42676 1.85192 3.88776 1.61703C4.18718 1.46447 4.50451 1.40449 4.84486 1.37668C5.17164 1.34998 5.57202 1.34999 6.0535 1.35C6.726 1.35 7.39851 1.35034 8.07101 1.34997C8.44913 1.34977 8.7428 1.34961 9.02639 1.41769C9.17877 1.45427 9.32706 1.50534 9.46927 1.57006C9.56037 1.61152 9.64898 1.65858 9.73457 1.71103C9.98323 1.86341 10.1908 2.07118 10.458 2.3387C11.1254 3.00684 11.7932 3.67461 12.4613 4.34203C12.7289 4.60925 12.9366 4.8168 13.089 5.06546C13.1386 5.14645 13.1834 5.23013 13.2232 5.31608C13.2281 5.32606 13.2327 5.33619 13.237 5.34645C13.2984 5.48387 13.3471 5.62686 13.3823 5.77364C13.4504 6.05722 13.4503 6.35089 13.4501 6.72901C13.4493 8.20151 13.4499 9.67402 13.4498 11.1465C13.4498 11.628 13.4498 12.0284 13.4231 12.3552C13.3953 12.6955 13.3354 13.0128 13.1828 13.3123C12.9479 13.7733 12.5731 14.1481 12.1121 14.383C11.8127 14.5355 11.4953 14.5955 11.155 14.6233C10.8282 14.65 10.4278 14.65 9.94635 14.65H6.0533C5.57182 14.65 5.17144 14.65 4.84466 14.6233C4.50431 14.5955 4.18697 14.5355 3.88755 14.383C3.42655 14.1481 3.05175 13.7733 2.81686 13.3123C2.74444 13.1701 2.69255 13.0235 2.65508 12.8706C2.56961 12.522 2.78296 12.17 3.13162 12.0846C3.48028 11.9991 3.83222 12.2124 3.91769 12.5611C3.93451 12.6297 3.95392 12.6804 3.97517 12.7221C4.08542 12.9385 4.26135 13.1144 4.47774 13.2247C4.56335 13.2683 4.69056 13.3064 4.95052 13.3276C5.21807 13.3495 5.56505 13.35 6.07983 13.35H9.91982C10.4346 13.35 10.7816 13.3495 11.0491 13.3276C11.3091 13.3064 11.4363 13.2683 11.5219 13.2247C11.7383 13.1144 11.9142 12.9385 12.0245 12.7221C12.0681 12.6365 12.1062 12.5093 12.1275 12.2493C12.1493 11.9818 12.1498 11.6348 12.1498 11.12L12.15 6.79293C12.15 6.51627 12.1486 6.35733 12.1418 6.25L10.1399 6.25C9.98938 6.25002 9.84002 6.25004 9.71302 6.23966C9.57277 6.22821 9.40362 6.20092 9.23254 6.11376C8.99734 5.99391 8.80612 5.80269 8.68627 5.56749C8.59911 5.39641 8.57182 5.22726 8.56037 5.08701C8.54999 4.96001 8.55001 4.81065 8.55003 4.66013L8.55003 2.65821ZM9.85003 3.56924V4.64C9.85003 4.79002 9.85039 4.88102 9.85376 4.94627C9.91901 4.94964 10.01 4.95 10.16 4.95H11.2308L9.85003 3.56924ZM2.02002 9.33325C2.02002 8.97427 2.31103 8.68325 2.67002 8.68325H8.67002C9.029 8.68325 9.32002 8.97427 9.32002 9.33325C9.32002 9.69223 9.029 9.98325 8.67002 9.98325H2.67002C2.31103 9.98325 2.02002 9.69223 2.02002 9.33325Z" />+</svg>diff --git a/packages/icons/src/__generated__/attachment.tsx b/packages/icons/src/__generated__/attachment.tsxnew file mode 100644index 0000000000..c7181db374--- /dev/null+++ b/packages/icons/src/__generated__/attachment.tsx@@ -0,0 +1,15 @@+// Generated from icons/attachment.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const AttachmentIcon = 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="M9.13 1.842a2.415 2.415 0 0 1 3.415 3.415l-5.889 5.888a.65.65 0 1 1-.919-.919l5.889-5.888a1.115 1.115 0 1 0-1.577-1.577L4.161 8.65a2.88 2.88 0 0 0 4.072 4.072l4.64-4.641a.65.65 0 1 1 .92.92l-4.641 4.64a4.18 4.18 0 1 1-5.91-5.91L9.13 1.84Z" clipRule="evenodd" /></svg>+ );+ }+);++AttachmentIcon.displayName = "AttachmentIcon";diff --git a/packages/icons/src/__generated__/email.tsx b/packages/icons/src/__generated__/email.tsxnew file mode 100644index 0000000000..0699c541ca--- /dev/null+++ b/packages/icons/src/__generated__/email.tsx@@ -0,0 +1,15 @@+// Generated from icons/email.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const EmailIcon = 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="M4.853 2.55h6.293c.482 0 .882 0 1.21.027.34.027.657.087.956.24.461.235.836.61 1.07 1.07.172.336.227.695.25 1.086.018.3.018.662.018 1.089v3.885c0 .481 0 .881-.027 1.208-.027.34-.087.658-.24.957a2.45 2.45 0 0 1-1.07 1.07c-.3.153-.618.213-.958.241-.327.027-.727.027-1.208.027H4.853c-.481 0-.881 0-1.208-.027-.34-.027-.658-.088-.957-.24a2.45 2.45 0 0 1-1.071-1.07c-.153-.3-.213-.617-.24-.958-.027-.327-.027-.727-.027-1.209V6.062c0-.427 0-.789.018-1.089.023-.39.078-.75.249-1.085a2.45 2.45 0 0 1 1.07-1.071c.3-.153.617-.213.958-.24.327-.027.727-.027 1.208-.027ZM3.751 3.872c-.26.022-.387.06-.473.103a1.15 1.15 0 0 0-.503.503.816.816 0 0 0-.07.222l4.567 3.197c.44.308.524.354.595.372a.55.55 0 0 0 .266 0c.07-.018.155-.064.595-.372L13.295 4.7a.815.815 0 0 0-.07-.222 1.15 1.15 0 0 0-.503-.503c-.086-.043-.213-.081-.473-.103a15.477 15.477 0 0 0-1.129-.022H4.88c-.515 0-.862 0-1.13.022Zm9.599 2.376L9.474 8.962l-.072.05c-.324.227-.618.434-.955.518a1.85 1.85 0 0 1-.894 0c-.337-.084-.631-.29-.955-.518l-.072-.05L2.65 6.248V9.92c0 .515 0 .862.022 1.13.022.26.06.386.103.472.11.216.287.392.503.503.086.043.213.081.473.103.267.021.614.022 1.129.022h6.24c.515 0 .862 0 1.13-.022.26-.022.386-.06.472-.103a1.15 1.15 0 0 0 .503-.503c.043-.086.081-.213.103-.473.022-.267.022-.614.022-1.129V6.248Z" clipRule="evenodd" /></svg>+ );+ }+);++EmailIcon.displayName = "EmailIcon";diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.tsindex 804f23f502..a74672e032 100644--- a/packages/icons/src/__generated__/index.ts+++ b/packages/icons/src/__generated__/index.ts@@ -1,4 +1,5 @@export * from "./alert";+export * from "./attachment";export * from "./auto-scroll";export * from "./blockquote";export * from "./body";@@ -37,6 +38,7 @@ export * from "./div";export * from "./dot";export * from "./dotted-border";export * from "./drag-handle";+export * from "./email";export * from "./external-link";export * from "./eyecon-closed";export * from "./eyecon-open";@@ -54,7 +56,9 @@ export * from "./linked";export * from "./list-item";export * from "./list";export * from "./offline";+export * from "./page";export * from "./paint-brush";+export * from "./phone";export * from "./play";export * from "./plus";export * from "./radio-checked";@@ -63,6 +67,7 @@ export * from "./repeat-column";export * from "./repeat-grid";export * from "./repeat-row";export * from "./scroll";+export * from "./section-link";export * from "./slot-component";export * from "./small-x";export * from "./subscript";diff --git a/packages/icons/src/__generated__/link.tsx b/packages/icons/src/__generated__/link.tsxindex 4aa56282ce..5f8489365d 100644--- a/packages/icons/src/__generated__/link.tsx+++ b/packages/icons/src/__generated__/link.tsx@@ -7,7 +7,7 @@ import type { IconProps } from "../types";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>+ <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="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>);});diff --git a/packages/icons/src/__generated__/page.tsx b/packages/icons/src/__generated__/page.tsxnew file mode 100644index 0000000000..b6bd0f65b9--- /dev/null+++ b/packages/icons/src/__generated__/page.tsx@@ -0,0 +1,15 @@+// Generated from icons/page.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const PageIcon = 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="M8.55 2.658a9.96 9.96 0 0 0-.543-.008H6.08c-.515 0-.862 0-1.13.022-.26.022-.386.06-.472.103a1.15 1.15 0 0 0-.503.503c-.043.086-.081.213-.103.473-.022.267-.022.614-.022 1.129v6.24c0 .515 0 .862.022 1.13.022.26.06.386.103.472.11.216.287.392.503.503.086.043.213.081.473.103.267.022.614.022 1.129.022h3.84c.515 0 .862 0 1.13-.022.26-.022.386-.06.472-.103a1.15 1.15 0 0 0 .503-.503c.043-.085.081-.213.103-.473.021-.267.022-.614.022-1.129V6.793c0-.277-.002-.436-.008-.543H10.14c-.15 0-.3 0-.427-.01a1.263 1.263 0 0 1-.48-.126 1.25 1.25 0 0 1-.547-.547 1.263 1.263 0 0 1-.126-.48c-.01-.127-.01-.276-.01-.427V2.658Zm.903-1.095a2.451 2.451 0 0 0-.427-.145c-.283-.068-.577-.068-.955-.068H6.053c-.481 0-.881 0-1.208.027-.34.028-.658.087-.957.24a2.45 2.45 0 0 0-1.071 1.07c-.153.3-.213.617-.24.958-.027.327-.027.727-.027 1.208v6.293c0 .482 0 .882.027 1.21.027.34.087.657.24.956.235.461.61.836 1.07 1.071.3.153.617.213.958.24.327.027.727.027 1.208.027h3.894c.481 0 .881 0 1.208-.027.34-.027.658-.087.957-.24a2.45 2.45 0 0 0 1.071-1.07c.152-.3.213-.618.24-.958.027-.327.027-.727.027-1.209V6.73c0-.378 0-.672-.068-.955a2.445 2.445 0 0 0-.293-.709c-.152-.248-.36-.456-.628-.723l-.045-.045-1.913-1.913-.045-.045c-.267-.268-.475-.476-.723-.628a2.452 2.452 0 0 0-.281-.148Zm.397 2.006V4.64c0 .15 0 .241.004.306.065.004.156.004.306.004h1.07L9.85 3.57Z" clipRule="evenodd" /></svg>+ );+ }+);++PageIcon.displayName = "PageIcon";diff --git a/packages/icons/src/__generated__/phone.tsx b/packages/icons/src/__generated__/phone.tsxnew file mode 100644index 0000000000..ba4d70f557--- /dev/null+++ b/packages/icons/src/__generated__/phone.tsx@@ -0,0 +1,15 @@+// Generated from icons/phone.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const PhoneIcon = 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="M4.562 2.719a.64.64 0 0 0-.578 0c-.068.034-.153.108-.532.487l-.102.101c-.361.362-.458.466-.535.604-.09.16-.166.45-.165.633 0 .163.024.261.131.637a11.629 11.629 0 0 0 2.978 5.06 11.63 11.63 0 0 0 5.06 2.978c.376.107.474.13.637.131.184 0 .473-.075.633-.165.138-.077.242-.174.604-.535l.101-.102c.38-.379.453-.464.487-.532a.64.64 0 0 0 0-.578c-.034-.068-.108-.153-.487-.532l-.125-.125c-.25-.25-.305-.3-.347-.327a.64.64 0 0 0-.697 0c-.042.027-.098.078-.347.327l-.015.015c-.058.058-.131.132-.22.195a1.324 1.324 0 0 1-1.116.19c-.104-.03-.19-.071-.255-.103l-.016-.007a10.07 10.07 0 0 1-2.764-1.963 10.068 10.068 0 0 1-1.963-2.764l-.007-.016c-.032-.066-.073-.151-.103-.255a1.324 1.324 0 0 1 .19-1.116c.063-.089.137-.162.195-.22l.015-.015c.25-.25.3-.305.327-.347a.64.64 0 0 0 0-.697c-.027-.042-.078-.098-.327-.347l-.125-.125c-.38-.38-.464-.453-.532-.487Zm-1.165-1.16a1.94 1.94 0 0 1 1.751 0c.28.141.523.385.803.666l.228.228c.185.184.345.344.457.516a1.94 1.94 0 0 1 0 2.115c-.112.172-.272.332-.457.516-.036.036-.073.072-.109.11v.004l.031.067c.418.87.987 1.686 1.71 2.408a8.768 8.768 0 0 0 2.408 1.71l.067.031h.004c.038-.036.074-.073.11-.11.184-.184.344-.344.516-.456a1.94 1.94 0 0 1 2.115 0c.172.112.332.272.516.457l.228.228c.281.28.525.523.666.803.279.55.279 1.2 0 1.75-.141.28-.385.523-.666.803l-.207.208c-.3.3-.53.53-.842.706a2.82 2.82 0 0 1-1.274.331c-.356-.001-.617-.075-.951-.17l-.037-.01a12.93 12.93 0 0 1-5.625-3.31A12.93 12.93 0 0 1 1.53 5.537l-.01-.037c-.095-.334-.169-.595-.17-.951a2.82 2.82 0 0 1 .331-1.274c.175-.311.406-.542.706-.842l.208-.207c.28-.281.522-.525.802-.666Z" clipRule="evenodd" /></svg>+ );+ }+);++PhoneIcon.displayName = "PhoneIcon";diff --git a/packages/icons/src/__generated__/section-link.tsx b/packages/icons/src/__generated__/section-link.tsxnew file mode 100644index 0000000000..011a54b757--- /dev/null+++ b/packages/icons/src/__generated__/section-link.tsx@@ -0,0 +1,15 @@+// Generated from icons/section-link.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const SectionLinkIcon = 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="M8.55 2.658a9.96 9.96 0 0 0-.543-.008H6.08c-.515 0-.862 0-1.13.022-.26.022-.386.06-.472.103a1.15 1.15 0 0 0-.503.503c-.043.086-.081.213-.103.473-.021.267-.022.614-.022 1.129V6a.65.65 0 0 1-1.3 0V4.853c0-.481 0-.881.027-1.208.028-.34.087-.658.24-.957a2.45 2.45 0 0 1 1.07-1.071c.3-.153.618-.213.958-.24.327-.027.727-.027 1.208-.027h2.018c.378 0 .672 0 .955.068a2.45 2.45 0 0 1 .709.293c.248.152.456.36.723.628l2.003 2.003c.268.267.476.475.628.723a2.455 2.455 0 0 1 .293.709c.068.283.068.577.068.955v4.417c0 .482 0 .882-.027 1.21-.028.34-.088.657-.24.956a2.45 2.45 0 0 1-1.07 1.071c-.3.153-.618.213-.958.24-.327.027-.727.027-1.209.027H6.053c-.481 0-.882 0-1.208-.027-.34-.027-.658-.087-.957-.24a2.45 2.45 0 0 1-1.071-1.07 2.028 2.028 0 0 1-.162-.442.65.65 0 1 1 1.263-.31c.017.069.036.12.057.161.11.216.286.392.503.503.085.043.213.081.473.103.267.022.614.022 1.129.022h3.84c.515 0 .862 0 1.13-.022.26-.022.386-.06.472-.103a1.15 1.15 0 0 0 .502-.503c.044-.085.082-.213.104-.473.021-.267.022-.614.022-1.129V6.793c0-.277-.001-.436-.008-.543H10.14c-.15 0-.3 0-.427-.01a1.263 1.263 0 0 1-.48-.126 1.25 1.25 0 0 1-.547-.547 1.263 1.263 0 0 1-.126-.48c-.01-.127-.01-.276-.01-.427V2.658Zm1.3.911V4.64c0 .15 0 .241.004.306.065.004.156.004.306.004h1.07L9.85 3.57ZM2.02 9.333a.65.65 0 0 1 .65-.65h6a.65.65 0 0 1 0 1.3h-6a.65.65 0 0 1-.65-.65Z" clipRule="evenodd" /></svg>+ );+ }+);++SectionLinkIcon.displayName = "SectionLinkIcon";diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.tsindex d37b29532b..69931515c7 100644--- a/packages/icons/src/index.ts+++ b/packages/icons/src/index.ts@@ -40,7 +40,6 @@ export * from "./trash";export * from "./size";export * from "./upload";export * from "./gear";-export * from "./page";export * from "./copy";export * from "./new-page";export * from "./new-folder";diff --git a/packages/icons/src/page.tsx b/packages/icons/src/page.tsxdeleted file mode 100644index 9b4e3b9f0f..0000000000--- a/packages/icons/src/page.tsx+++ /dev/null@@ -1,28 +0,0 @@-import * as React from "react";-import type { IconProps } from "./types";--export const PageIcon = 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="M9.19995 2.16168V4.64C9.19995 4.97603 9.19995 5.14405 9.26535 5.27239C9.32287 5.38529 9.41466 5.47708 9.52756 5.5346C9.6559 5.6 9.82392 5.6 10.16 5.6H11.3991H12.6383M12.8 6.79293V11.12C12.8 12.1281 12.8 12.6321 12.6038 13.0172C12.4312 13.3559 12.1558 13.6312 11.8171 13.8038C11.4321 14 10.928 14 9.91995 14H6.07995C5.07186 14 4.56781 14 4.18277 13.8038C3.84408 13.6312 3.56871 13.3559 3.39614 13.0172C3.19995 12.6321 3.19995 12.1281 3.19995 11.12V4.88C3.19995 3.87191 3.19995 3.36786 3.39614 2.98282C3.56871 2.64413 3.84408 2.36876 4.18277 2.19619C4.56781 2 5.07186 2 6.07995 2H8.00702C8.44728 2 8.66741 2 8.87457 2.04973C9.05823 2.09383 9.23381 2.16656 9.39486 2.26525C9.57651 2.37656 9.73217 2.53222 10.0435 2.84353L11.9564 4.75647C12.2677 5.06778 12.4234 5.22344 12.5347 5.40509C12.6334 5.56614 12.7061 5.74172 12.7502 5.92538C12.8 6.13254 12.8 6.35267 12.8 6.79293Z"- stroke={color}- strokeWidth="1.3"- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- );- }-);--PageIcon.displayName = "PageIcon";