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: Add box-shadow ui panel for editing values individually for layers (#2706)
Jaya Krishna Namburu662f64988ac9
diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-content.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-content.tsxindex fefedbd08c..2123195e76 100644--- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-content.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-content.tsx@@ -1,33 +1,111 @@-import type {- InvalidValue,- LayersValue,- TupleValue,+import {+ toValue,+ type InvalidValue,+ type LayersValue,+ type RgbValue,+ type StyleValue,+ type TupleValue,+ type UnitValue,} from "@webstudio-is/css-engine";-import { parseBoxShadow } from "@webstudio-is/css-data";+import {+ extractBoxShadowProperties,+ parseBoxShadow,+ type ExtractedBoxShadowProperties,+} from "@webstudio-is/css-data";import {Flex,+ Grid,Label,+ Separator,Text,TextArea,textVariants,theme,+ ToggleGroup,+ ToggleGroupButton,Tooltip,} from "@webstudio-is/design-system";-import { InformationIcon } from "@webstudio-is/icons";-import { useState } from "react";+import {+ InformationIcon,+ ShadowInsetIcon,+ ShadowNormalIcon,+} from "@webstudio-is/icons";+import { useMemo, useState } from "react";import type { IntermediateStyleValue } from "../../shared/css-value-input";+import { CssValueInputContainer } from "../../controls/position/css-value-input-container";+import { toPascalCase } from "../../shared/keyword-utils";+import { ColorControl } from "../../controls";+import type { SetProperty } from "../../shared/use-style-data";++/*+ When it comes to checking and validating individual CSS properties for the box-shadow,+ splitting them fails the validation. As it needs a minimum of 2 values to validate.+ Instead, a workaround is to use a fallback CSS property+ that can handle the same values as the input being validated.++ Here's the box-shadow property with its components:++ box-shadow: color, inset, offsetX, offsetY, blur, spread;+ You can check more details from the spec+ https://www.w3.org/TR/css-backgrounds-3/#box-shadow++ offsetX: length, takes positive and negative values.+ offsetY: length, takes positive and negative values.+ blur: length, takes only positive values.+ spread: length, takes both positive and negative values.++ outline-offset: length, takes positive and negative values.+ https://www.w3.org/TR/css-ui-4/#outline-offset++ border-top-width: length, takes only positive values.+ https://www.w3.org/TR/css-backgrounds-3/#propdef-border-top-width+*/type BoxShadowContentProps = {index: number;layer: TupleValue;- value: string;+ shadow: string;onEditLayer: (index: number, layers: LayersValue) => void;};-export const BoxShadowContent = (props: BoxShadowContentProps) => {+const convertValuesToTupple = (+ values: Record<keyof ExtractedBoxShadowProperties, StyleValue | null>+): TupleValue => {+ return {+ type: "tuple",+ value: (Object.values(values) as Array<StyleValue>).filter(+ (item: StyleValue): item is UnitValue | RgbValue =>+ item !== null && item !== undefined+ ),+ };+};++const boxShadowInsetValues = [+ { value: "normal", Icon: ShadowNormalIcon },+ { value: "inset", Icon: ShadowInsetIcon },+] as const;++export const BoxShadowContent = ({+ layer,+ index,+ shadow,+ onEditLayer,+}: BoxShadowContentProps) => {const [intermediateValue, setIntermediateValue] = useState<IntermediateStyleValue | InvalidValue | undefined>();+ const layerValues = useMemo<ExtractedBoxShadowProperties>(() => {+ setIntermediateValue({ type: "intermediate", value: shadow });+ return extractBoxShadowProperties(layer);+ }, [layer, shadow]);+ const { offsetX, offsetY, blur, spread, color, inset } = layerValues;+ const colorControlProp = color ?? {+ type: "rgb",+ r: 0,+ g: 0,+ b: 0,+ alpha: 1,+ };const handleChange = (value: string) => {setIntermediateValue({@@ -49,51 +127,318 @@ export const BoxShadowContent = (props: BoxShadowContentProps) => {return;}- props.onEditLayer(props.index, layers);+ onEditLayer(index, layers);+ };++ const handlePropertyChange = (+ params: Partial<Record<keyof ExtractedBoxShadowProperties, StyleValue>>+ ) => {+ const newLayer = convertValuesToTupple(Object.assign(layerValues, params));+ setIntermediateValue({+ type: "intermediate",+ value: toValue(newLayer),+ });+ onEditLayer(index, { type: "layers", value: [newLayer] });+ };++ const colorControlCallback: SetProperty = () => {+ return (value) => {+ handlePropertyChange({ color: value });+ };};return (- <Flex- direction="column"- css={{- px: theme.spacing[5],- py: theme.spacing[5],- gap: theme.spacing[3],- minWidth: theme.spacing[30],- }}- >- <Label>- <Flex align={"center"} gap={1}>- Code+ <Flex direction="column">+ <Grid+ columns={2}+ gap="2"+ css={{+ paddingTop: theme.spacing[5],+ px: theme.spacing[9],+ }}+ >+ <Flex direction="column">+ <Tooltip+ content={+ <Flex gap="2" direction="column">+ <Text variant="regularBold">X Offset</Text>+ <Text variant="monoBold">offset-x</Text>+ <Text>+ Sets the horizontal offset of the+ <br />+ shadow. Negative values place+ <br />+ the shadow to the left.+ </Text>+ </Flex>+ }+ >+ <Label css={{ width: "fit-content" }}>X</Label>+ </Tooltip>+ <CssValueInputContainer+ key="boxShadowOffsetX"+ /*+ outline-offset is a fake property for validating box-shadow's offsetX.+ */+ property="outlineOffset"+ label="Offset X"+ styleSource="local"+ keywords={[]}+ value={offsetX ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ offsetX: value })}+ deleteProperty={() =>+ handlePropertyChange({+ offsetX: offsetX ?? undefined,+ })+ }+ />+ </Flex>++ <Flex direction="column">+ <Tooltip+ content={+ <Flex gap="2" direction="column">+ <Text variant="regularBold">Blur Radius</Text>+ <Text variant="monoBold">blur-radius</Text>+ <Text>+ The larger this value, the bigger+ <br />+ the blur, so the shadow becomes+ <br />+ bigger and lighter.+ </Text>+ </Flex>+ }+ >+ <Label css={{ width: "fit-content" }}>Blur</Label>+ </Tooltip>+ <CssValueInputContainer+ key="boxShadowBlur"+ /*+ border-top-width is a fake property for validating box-shadow's blur.+ */+ property="borderTopWidth"+ label="BoxShadow Blur"+ styleSource="local"+ keywords={[]}+ value={blur ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ blur: value })}+ deleteProperty={() =>+ handlePropertyChange({+ blur: blur ?? undefined,+ })+ }+ />+ </Flex>++ <Flex direction="column"><Tooltip- variant="wrapped"content={- <Text>- Paste a box-shadow value, for example:- <br />- <br />- 0px 2px 5px 0px rgba(0, 0, 0, 0.2)- </Text>+ <Flex gap="2" direction="column">+ <Text variant="regularBold">Y Offset</Text>+ <Text variant="monoBold">offset-y</Text>+ <Text>+ Sets the vertical offset of the+ <br />+ shadow. Negative values place+ <br />+ the shadow above.+ </Text>+ </Flex>}>- <InformationIcon />+ <Label css={{ width: "fit-content" }}>Y</Label></Tooltip>+ <CssValueInputContainer+ key="boxShadowOffsetY"+ /*+ outline-offset is a fake property for validating box-shadow's offsetY.+ */+ property="outlineOffset"+ label="Offset Y"+ styleSource="local"+ keywords={[]}+ value={offsetY ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ offsetY: value })}+ deleteProperty={() =>+ handlePropertyChange({+ offsetY: offsetY ?? undefined,+ })+ }+ /></Flex>- </Label>- <TextArea- rows={3}- name="description"- value={intermediateValue?.value ?? props.value ?? ""}- css={{ minHeight: theme.spacing[14], ...textVariants.mono }}- state={intermediateValue?.type === "invalid" ? "invalid" : undefined}- onChange={handleChange}- onKeyDown={(event) => {- if (event.key === "Enter") {- handleComplete();- event.preventDefault();- }++ <Flex direction="column">+ <Tooltip+ content={+ <Flex gap="2" direction="column">+ <Text variant="regularBold">Spread Radius</Text>+ <Text variant="monoBold">spread-radius</Text>+ <Text>+ Positive values will cause the+ <br />+ shadow to expand and grow+ <br />+ bigger, negative values will cause+ <br />+ the shadow to shrink.+ </Text>+ </Flex>+ }+ >+ <Label css={{ width: "fit-content" }}>Spread</Label>+ </Tooltip>+ <CssValueInputContainer+ key="boxShadowSpread"+ /*+ outline-offset is a fake property for validating box-shadow's spread.+ */+ property="outlineOffset"+ label="BoxShadow Spread"+ styleSource="local"+ keywords={[]}+ value={spread ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ spread: value })}+ deleteProperty={() =>+ handlePropertyChange({+ spread: spread ?? undefined,+ })+ }+ />+ </Flex>+ </Grid>++ <Grid+ gap="2"+ css={{+ px: theme.spacing[9],+ marginTop: theme.spacing[5],+ paddingBottom: theme.spacing[5],+ gridTemplateColumns: "3fr 1fr",}}- />+ >+ <Flex direction="column">+ <Tooltip+ content={+ <Flex gap="2" direction="column">+ <Text variant="regularBold">Color</Text>+ <Text variant="monoBold">color</Text>+ <Text>+ Sets the shadow color and+ <br />+ opacity.+ </Text>+ </Flex>+ }+ >+ <Label css={{ width: "fit-content" }}>Color</Label>+ </Tooltip>+ <ColorControl+ property="color"+ currentStyle={{+ color: {+ value: colorControlProp,+ currentColor: colorControlProp,+ },+ }}+ setProperty={colorControlCallback}+ deleteProperty={() =>+ handlePropertyChange({ color: colorControlProp })+ }+ />+ </Flex>++ <Flex direction="column">+ <Tooltip+ content={+ <Flex gap="2" direction="column">+ <Text variant="regularBold">Inset</Text>+ <Text variant="monoBold">inset</Text>+ <Text>+ Changes the shadow from+ <br />+ an outer shadow (outset) to an+ <br />+ inner shadow (inset).+ </Text>+ </Flex>+ }+ >+ <Label css={{ display: "inline" }}>Inset</Label>+ </Tooltip>+ <ToggleGroup+ type="single"+ value={inset?.value ?? "normal"}+ defaultValue="inset"+ onValueChange={(value) => {+ if (value === "inset") {+ handlePropertyChange({+ inset: { type: "keyword", value: "inset" },+ });+ } else {+ handlePropertyChange({ inset: undefined });+ }+ }}+ >+ {boxShadowInsetValues.map(({ value, Icon }) => (+ <Tooltip key={value} content={toPascalCase(value)}>+ <ToggleGroupButton value={value}>+ <Icon />+ </ToggleGroupButton>+ </Tooltip>+ ))}+ </ToggleGroup>+ </Flex>+ </Grid>++ <Separator css={{ gridColumn: "span 2" }} />+ <Flex+ direction="column"+ css={{+ px: theme.spacing[9],+ paddingTop: theme.spacing[5],+ paddingBottom: theme.spacing[9],+ gap: theme.spacing[3],+ minWidth: theme.spacing[30],+ }}+ >+ <Label>+ <Flex align={"center"} gap={1}>+ Code+ <Tooltip+ variant="wrapped"+ content={+ <Text>+ Paste a box-shadow CSS code+ <br />+ without the property name, for+ <br />+ example:+ <br />+ <br />+ 0px 2px 5px 0px rgba(0, 0, 0, 0.2)+ </Text>+ }+ >+ <InformationIcon />+ </Tooltip>+ </Flex>+ </Label>+ <TextArea+ rows={3}+ name="description"+ value={intermediateValue?.value ?? shadow ?? ""}+ css={{ minHeight: theme.spacing[14], ...textVariants.mono }}+ state={intermediateValue?.type === "invalid" ? "invalid" : undefined}+ onChange={handleChange}+ onKeyDown={(event) => {+ if (event.key === "Enter") {+ handleComplete();+ event.preventDefault();+ }+ }}+ />+ </Flex></Flex>);};diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsxindex d4bd4a5d0f..9d324fea26 100644--- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx@@ -59,7 +59,7 @@ export const Layer = (props: LayerProps) => {content={<BoxShadowContentindex={index}- value={shadow}+ shadow={shadow}layer={layer}onEditLayer={props.onEditLayer}/>diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsxindex 6b3632f0ee..677789fb81 100644--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx@@ -6,7 +6,6 @@ import {type TupleValue,KeywordValue,UnitValue,- StyleValue,} from "@webstudio-is/css-engine";import {Flex,@@ -22,6 +21,7 @@ import {import {extractTransitionProperties,parseTransition,+ type ExtractedTransitionProperties,} from "@webstudio-is/css-data";import { InformationIcon } from "@webstudio-is/icons";import type { DeleteProperty } from "../../shared/use-style-data";@@ -39,13 +39,6 @@ type TransitionContentProps = {deleteProperty: DeleteProperty;};-type ExtractedTransitionProperties = {- property?: KeywordValue | null;- timing?: KeywordValue | null;- delay?: StyleValue | null;- duration?: StyleValue | null;-};-export const TransitionContent = ({layer,transition,diff --git a/packages/css-data/src/property-parsers/box-shadow-property-extractor.ts b/packages/css-data/src/property-parsers/box-shadow-property-extractor.tsindex 51ff024501..d54fd7050b 100644--- a/packages/css-data/src/property-parsers/box-shadow-property-extractor.ts+++ b/packages/css-data/src/property-parsers/box-shadow-property-extractor.ts@@ -17,16 +17,17 @@ import type {extractBoxShadowProperties(parseBoxShadow("5em 5em 5em 5em #ffff"))*/-export const extractBoxShadowProperties = (- shadow: TupleValue-): {+export type ExtractedBoxShadowProperties = {inset: KeywordValue | null;color: RgbValue | KeywordValue | null;offsetX: UnitValue | null;offsetY: UnitValue | null;blur: UnitValue | null;spread: UnitValue | null;-} => {+};+export const extractBoxShadowProperties = (+ shadow: TupleValue+): ExtractedBoxShadowProperties => {let properties = [...shadow.value];let inset: KeywordValue | null = null;let color: KeywordValue | RgbValue | null = null;diff --git a/packages/css-data/src/property-parsers/transition-property-extractor.ts b/packages/css-data/src/property-parsers/transition-property-extractor.tsindex 7299f712e5..309a422265 100644--- a/packages/css-data/src/property-parsers/transition-property-extractor.ts+++ b/packages/css-data/src/property-parsers/transition-property-extractor.ts@@ -1,5 +1,6 @@import type {KeywordValue,+ StyleValue,TupleValue,UnitValue,} from "@webstudio-is/css-engine";@@ -10,14 +11,16 @@ export const isTimingFunction = (timing: string) => {return regex.test(timing);};+export type ExtractedTransitionProperties = {+ property?: KeywordValue | null;+ timing?: KeywordValue | null;+ delay?: StyleValue | null;+ duration?: StyleValue | null;+};+export const extractTransitionProperties = (transition: TupleValue-): {- property: KeywordValue | null;- timing: KeywordValue | null;- duration: UnitValue | null;- delay: UnitValue | null;-} => {+): ExtractedTransitionProperties => {let property: KeywordValue | null = null;let timing: KeywordValue | null = null;let duration: UnitValue | null = null;diff --git a/packages/icons/icons/shadow-inset.svg b/packages/icons/icons/shadow-inset.svgnew file mode 100644index 0000000000..8876a65c66--- /dev/null+++ b/packages/icons/icons/shadow-inset.svg@@ -0,0 +1,3 @@+<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M1.64998 6.99998C1.64998 4.04525 4.04525 1.64998 6.99998 1.64998C9.9547 1.64998 12.35 4.04525 12.35 6.99998C12.35 9.9547 9.9547 12.35 6.99998 12.35C4.04525 12.35 1.64998 9.9547 1.64998 6.99998ZM6.99998 0.349976C3.32728 0.349976 0.349976 3.32728 0.349976 6.99998C0.349976 10.6727 3.32728 13.65 6.99998 13.65C10.6727 13.65 13.65 10.6727 13.65 6.99998C13.65 3.32728 10.6727 0.349976 6.99998 0.349976ZM4.31501 7.00001C4.31501 5.51713 5.51713 4.31501 7.00001 4.31501C8.4829 4.31501 9.68501 5.51713 9.68501 7.00001C9.68501 7.359 9.97603 7.65001 10.335 7.65001C10.694 7.65001 10.985 7.359 10.985 7.00001C10.985 4.79916 9.20087 3.01501 7.00001 3.01501C4.79916 3.01501 3.01501 4.79916 3.01501 7.00001C3.01501 7.359 3.30603 7.65001 3.66501 7.65001C4.024 7.65001 4.31501 7.359 4.31501 7.00001Z" fill="currentColor"/>+</svg>diff --git a/packages/icons/icons/shadow-normal.svg b/packages/icons/icons/shadow-normal.svgnew file mode 100644index 0000000000..e7b98392c0--- /dev/null+++ b/packages/icons/icons/shadow-normal.svg@@ -0,0 +1,3 @@+<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M1.98502 5.66498C1.98502 3.44755 3.78259 1.64998 6.00002 1.64998C8.21744 1.64998 10.015 3.44755 10.015 5.66498C10.015 7.8824 8.21744 9.67997 6.00002 9.67997C3.78259 9.67997 1.98502 7.8824 1.98502 5.66498ZM6.00002 0.349976C3.06462 0.349976 0.685017 2.72958 0.685017 5.66498C0.685017 8.60037 3.06462 10.98 6.00002 10.98C8.93541 10.98 11.315 8.60037 11.315 5.66498C11.315 2.72958 8.93541 0.349976 6.00002 0.349976ZM11.6406 11.3074C11.8944 11.0536 11.8944 10.642 11.6406 10.3882C11.3867 10.1343 10.9752 10.1343 10.7213 10.3882C8.1102 12.9993 3.87997 13.0008 1.27283 10.3937C1.01899 10.1398 0.607429 10.1398 0.353589 10.3937C0.0997479 10.6475 0.0997477 11.0591 0.353589 11.3129C3.46934 14.4287 8.52269 14.4253 11.6406 11.3074Z" fill="currentColor"/>+</svg>diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.tsindex 98687c9b5e..de1b5995ae 100644--- a/packages/icons/src/__generated__/index.ts+++ b/packages/icons/src/__generated__/index.ts@@ -143,6 +143,8 @@ export * from "./reset";export * from "./scroll";export * from "./section-link";export * from "./select";+export * from "./shadow-inset";+export * from "./shadow-normal";export * from "./shrink";export * from "./slider";export * from "./slot-component";diff --git a/packages/icons/src/__generated__/shadow-inset.tsx b/packages/icons/src/__generated__/shadow-inset.tsxnew file mode 100644index 0000000000..b8d4cafd04--- /dev/null+++ b/packages/icons/src/__generated__/shadow-inset.tsx@@ -0,0 +1,15 @@+// Generated from icons/shadow-inset.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const ShadowInsetIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fill="currentColor" fillRule="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" clipRule="evenodd" /></svg>+ );+ }+);++ShadowInsetIcon.displayName = "ShadowInsetIcon";diff --git a/packages/icons/src/__generated__/shadow-normal.tsx b/packages/icons/src/__generated__/shadow-normal.tsxnew file mode 100644index 0000000000..422bdf5aaf--- /dev/null+++ b/packages/icons/src/__generated__/shadow-normal.tsx@@ -0,0 +1,15 @@+// Generated from icons/shadow-normal.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const ShadowNormalIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 14" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fill="currentColor" fillRule="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" clipRule="evenodd" /></svg>+ );+ }+);++ShadowNormalIcon.displayName = "ShadowNormalIcon";diff --git a/packages/icons/src/__generated__/svg/index.ts b/packages/icons/src/__generated__/svg/index.tsindex 72a64615cb..63a120b5fb 100644--- a/packages/icons/src/__generated__/svg/index.ts+++ b/packages/icons/src/__generated__/svg/index.ts@@ -143,6 +143,8 @@ export { ResetIcon } from "./reset";export { ScrollIcon } from "./scroll";export { SectionLinkIcon } from "./section-link";export { SelectIcon } from "./select";+export { ShadowInsetIcon } from "./shadow-inset";+export { ShadowNormalIcon } from "./shadow-normal";export { ShrinkIcon } from "./shrink";export { SliderIcon } from "./slider";export { SlotComponentIcon } from "./slot-component";diff --git a/packages/icons/src/__generated__/svg/shadow-inset.ts b/packages/icons/src/__generated__/svg/shadow-inset.tsnew file mode 100644index 0000000000..18f082ddff--- /dev/null+++ b/packages/icons/src/__generated__/svg/shadow-inset.ts@@ -0,0 +1 @@+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>`;diff --git a/packages/icons/src/__generated__/svg/shadow-normal.ts b/packages/icons/src/__generated__/svg/shadow-normal.tsnew file mode 100644index 0000000000..bfabb60f1f--- /dev/null+++ b/packages/icons/src/__generated__/svg/shadow-normal.ts@@ -0,0 +1 @@+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>`;