Skip to content

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

address review comments

Sultan23f1cd40571b
diff --git a/apps/designer/app/designer/features/style-panel/controls/toggle/toggle-control.tsx b/apps/designer/app/designer/features/style-panel/controls/toggle/toggle-control.tsx
index 2ccc5251f1..6005155e93 100644
--- a/apps/designer/app/designer/features/style-panel/controls/toggle/toggle-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/toggle/toggle-control.tsx
@@ -1,4 +1,10 @@
-import { Flex, ToggleGroup, Tooltip } from "@webstudio-is/design-system";
+import {
+ styled,
+ Flex,
+ Tooltip,
+ ToggleGroupRoot,
+ ToggleGroupItem,
+} from "@webstudio-is/design-system";
import { StyleProperty } from "@webstudio-is/react-sdk";
import { useIsFromCurrentBreakpoint } from "../../shared/use-is-from-current-breakpoint";
@@ -17,7 +23,7 @@ export const ToggleGroupControl = ({
}: ToggleGroupControlProps) => {
const isCurrentBreakpoint = useIsFromCurrentBreakpoint(property);
return (
- <ToggleGroup.Root
+ <ToggleGroupRoot
type="single"
value={value}
onValueChange={onValueChange}
@@ -25,17 +31,36 @@ export const ToggleGroupControl = ({
>
{items.map(({ child, label, value }, index) => {
return (
- <ToggleGroup.Item
+ <ToggleGroupControlItem
key={index}
value={value}
- data-breakpoint={isCurrentBreakpoint}
+ state={isCurrentBreakpoint ? "set" : undefined}
>
<Tooltip content={label} delayDuration={0}>
<Flex>{child}</Flex>
</Tooltip>
- </ToggleGroup.Item>
+ </ToggleGroupControlItem>
);
})}
- </ToggleGroup.Root>
+ </ToggleGroupRoot>
);
};
+
+const ToggleGroupControlItem = styled(ToggleGroupItem, {
+ variants: {
+ state: {
+ set: {
+ "&[data-state=on]": {
+ color: "$colors$blue11",
+ backgroundColor: "$colors$blue4",
+ },
+ },
+ inherited: {
+ "&[data-state=on]": {
+ color: "$colors$orange4",
+ backgroundColor: "$colors$orange4",
+ },
+ },
+ },
+ },
+});
diff --git a/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx b/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
index b950e30bc7..1674ae2135 100644
--- a/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/flex-child/flex-child.tsx
@@ -18,250 +18,260 @@ import {
} from "@webstudio-is/icons";
import { ValuePickerPopover } from "../../shared/value-picker-popover";
-export const FlexChildSection = ({
- setProperty,
- createBatchUpdate,
- currentStyle,
- sectionStyle,
-}: RenderCategoryProps) => {
+export const FlexChildSection = (props: RenderCategoryProps) => {
+ return (
+ <Flex css={{ flexDirection: "column", gap: "$spacing$5" }}>
+ <FlexChildSectionAlign {...props} />
+ <FlexChildSectionSizing {...props} />
+ <FlexChildSectionOrder {...props} />
+ </Flex>
+ );
+};
+
+const FlexChildSectionAlign = (props: RenderCategoryProps) => {
+ const { setProperty, currentStyle, sectionStyle } = props;
const setAlignSelf = setProperty("alignSelf");
- const setOrder = setProperty("order");
+
+ return (
+ <Grid css={{ gridTemplateColumns: "4fr auto" }}>
+ <PropertyName
+ property={sectionStyle.alignSelf?.styleConfig.property}
+ label="Align"
+ />
+ <ToggleGroupControl
+ property={sectionStyle.alignSelf?.styleConfig.property}
+ onValueChange={(value) => setAlignSelf(value)}
+ value={String(currentStyle.alignSelf?.value)}
+ items={[
+ {
+ child: <CrossSmallIcon />,
+ label: "Do not align items",
+ value: "auto",
+ },
+ {
+ child: <AlignSelfStartIcon />,
+ label: "align-items: flex-start",
+ value: "start",
+ },
+ {
+ child: <AlignSelfEndIcon />,
+ label: "align-items: flex-end",
+ value: "end",
+ },
+ {
+ child: <AlignSelfCenterIcon />,
+ label: "align-items: center",
+ value: "center",
+ },
+ {
+ child: <AlignSelfStretchIcon />,
+ label: "align-items: stretch",
+ value: "stretch",
+ },
+ {
+ child: <AlignSelfBaselineIcon />,
+ label: "align-items: baseline",
+ value: "baseline",
+ },
+ ]}
+ />
+ </Grid>
+ );
+};
+
+const FlexChildSectionSizing = (props: RenderCategoryProps) => {
+ const { createBatchUpdate, currentStyle, sectionStyle } = props;
const setSizing = createBatchUpdate();
- const getSizingValue = () => {
- switch (
- String(currentStyle.flexGrow?.value) +
- String(currentStyle.flexShrink?.value)
- ) {
- case "00": {
- return "none";
- }
- case "10": {
- return "grow";
- }
- case "01": {
- return "shrink";
- }
- default: {
- return "";
- }
- }
- };
return (
- <Flex css={{ flexDirection: "column", gap: "$spacing$5" }}>
- <Grid css={{ gridTemplateColumns: "4fr auto" }}>
- <PropertyName
- property={sectionStyle.alignSelf?.styleConfig.property}
- label="Align"
- />
- <ToggleGroupControl
- property={sectionStyle.alignSelf?.styleConfig.property}
- onValueChange={(value) => setAlignSelf(value)}
- value={String(currentStyle.alignSelf?.value)}
- items={[
- {
- child: <CrossSmallIcon />,
- label: "Do not align items",
- value: "auto",
- },
- {
- child: <AlignSelfStartIcon />,
- label: "align-items: flex-start",
- value: "start",
- },
- {
- child: <AlignSelfEndIcon />,
- label: "align-items: flex-end",
- value: "end",
- },
- {
- child: <AlignSelfCenterIcon />,
- label: "align-items: center",
- value: "center",
- },
- {
- child: <AlignSelfStretchIcon />,
- label: "align-items: stretch",
- value: "stretch",
- },
- {
- child: <AlignSelfBaselineIcon />,
- label: "align-items: baseline",
- value: "baseline",
- },
- ]}
- />
- </Grid>
- <Grid css={{ gridTemplateColumns: "4fr auto" }}>
- <PropertyName
- property={[
- sectionStyle.flexGrow?.styleConfig.property,
- sectionStyle.flexShrink?.styleConfig.property,
- ]}
- label="Sizing"
- />
- <ToggleGroupControl
- property={[
- sectionStyle.flexGrow?.styleConfig.property,
- sectionStyle.flexShrink?.styleConfig.property,
- ]}
- onValueChange={(value) => {
- switch (value) {
- case "none": {
- setSizing.setProperty("flexGrow")("0");
- setSizing.setProperty("flexShrink")("0");
- setSizing.publish();
- break;
- }
- case "grow": {
- setSizing.setProperty("flexGrow")("1");
- setSizing.setProperty("flexShrink")("0");
- setSizing.publish();
- break;
- }
- case "shrink": {
- setSizing.setProperty("flexGrow")("0");
- setSizing.setProperty("flexShrink")("1");
- setSizing.publish();
- break;
- }
+ <Grid css={{ gridTemplateColumns: "4fr auto" }}>
+ <PropertyName
+ property={[
+ sectionStyle.flexGrow?.styleConfig.property,
+ sectionStyle.flexShrink?.styleConfig.property,
+ ]}
+ label="Sizing"
+ />
+ <ToggleGroupControl
+ property={[
+ sectionStyle.flexGrow?.styleConfig.property,
+ sectionStyle.flexShrink?.styleConfig.property,
+ ]}
+ onValueChange={(value) => {
+ switch (value) {
+ case "none": {
+ setSizing.setProperty("flexGrow")("0");
+ setSizing.setProperty("flexShrink")("0");
+ setSizing.publish();
+ break;
}
- }}
- value={getSizingValue()}
- items={[
- {
- child: <CrossSmallIcon />,
- label: "Don't grow or shrink",
- value: "none",
- },
- {
- child: <FlexSizingGrowIcon />,
- label: "Grow if possible",
- value: "grow",
- },
- {
- child: <FlexSizingShrinkIcon />,
- label: "Shrink if needed",
- value: "shrink",
- },
- {
- child: (
- <ValuePickerPopover
- title="Sizing"
- content={
- <Grid
- css={{
- gridTemplateColumns: "1.5fr 1fr 1fr",
- gap: "$spacing$9",
- padding: "$spacing$9",
- }}
- >
- <Grid
- css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}
- >
- <PropertyName
- property={
- sectionStyle.flexBasis?.styleConfig.property
- }
- label="Basis"
- />
- <TextControl {...sectionStyle.flexBasis} />
- </Grid>
- <Grid
- css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}
- >
- <PropertyName
- property={sectionStyle.flexGrow?.styleConfig.property}
- label="Grow"
- />
- <TextControl {...sectionStyle.flexGrow} />
- </Grid>
- <Grid
- css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}
- >
- <PropertyName
- property={
- sectionStyle.flexShrink?.styleConfig.property
- }
- label="Shrink"
- />
- <TextControl {...sectionStyle.flexShrink} />
- </Grid>
- </Grid>
- }
- >
- <Flex>
- <EllipsesIcon />
- </Flex>
- </ValuePickerPopover>
- ),
- label: "More sizing options",
- value: "",
- },
- ]}
- />
- </Grid>
- <Grid css={{ gridTemplateColumns: "4fr auto" }}>
- <PropertyName
- property={sectionStyle.order?.styleConfig.property}
- label="Order"
- />
- <ToggleGroupControl
- property={sectionStyle.order?.styleConfig.property}
- onValueChange={(value) => {
- switch (value) {
- case "0":
- case "1":
- case "-1": {
- setOrder(value);
- break;
- }
+ case "grow": {
+ setSizing.setProperty("flexGrow")("1");
+ setSizing.setProperty("flexShrink")("0");
+ setSizing.publish();
+ break;
}
+ case "shrink": {
+ setSizing.setProperty("flexGrow")("0");
+ setSizing.setProperty("flexShrink")("1");
+ setSizing.publish();
+ break;
+ }
+ }
+ }}
+ value={getSizingValue(
+ String(currentStyle.flexGrow?.value),
+ String(currentStyle.flexShrink?.value)
+ )}
+ items={[
+ {
+ child: <CrossSmallIcon />,
+ label: "Don't grow or shrink",
+ value: "none",
+ },
+ {
+ child: <FlexSizingGrowIcon />,
+ label: "Grow if possible",
+ value: "grow",
+ },
+ {
+ child: <FlexSizingShrinkIcon />,
+ label: "Shrink if needed",
+ value: "shrink",
+ },
+ {
+ child: <FlexChildSectionSizingPopover {...props} />,
+ label: "More sizing options",
+ value: "",
+ },
+ ]}
+ />
+ </Grid>
+ );
+};
+
+const FlexChildSectionSizingPopover = ({
+ sectionStyle,
+}: RenderCategoryProps) => {
+ return (
+ <ValuePickerPopover
+ title="Sizing"
+ content={
+ <Grid
+ css={{
+ gridTemplateColumns: "1.5fr 1fr 1fr",
+ gap: "$spacing$9",
+ padding: "$spacing$9",
}}
- value={String(currentStyle.order?.value)}
- items={[
- {
- child: <CrossSmallIcon />,
- label: "Dont't change",
- value: "0",
- },
- {
- child: <OrderFirstIcon />,
- label: "Make first",
- value: "1",
- },
- {
- child: <OrderLastIcon />,
- label: "Make last",
- value: "-1",
- },
- {
- child: (
- <ValuePickerPopover
- title="Order"
- content={
- <Grid css={{ padding: "$spacing$9" }}>
- <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>
- <PropertyName
- property={sectionStyle.order?.styleConfig.property}
- label="Order"
- />
- <TextControl {...sectionStyle.order} />
- </Grid>
- </Grid>
- }
- >
- <Flex>
- <EllipsesIcon />
- </Flex>
- </ValuePickerPopover>
- ),
- label: "Customize order",
- value: "",
- },
- ]}
- />
- </Grid>
- </Flex>
+ >
+ <Grid css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}>
+ <PropertyName
+ property={sectionStyle.flexBasis?.styleConfig.property}
+ label="Basis"
+ />
+ <TextControl {...sectionStyle.flexBasis} />
+ </Grid>
+ <Grid css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}>
+ <PropertyName
+ property={sectionStyle.flexGrow?.styleConfig.property}
+ label="Grow"
+ />
+ <TextControl {...sectionStyle.flexGrow} />
+ </Grid>
+ <Grid css={{ gridTemplateColumns: "auto", gap: "$spacing$3" }}>
+ <PropertyName
+ property={sectionStyle.flexShrink?.styleConfig.property}
+ label="Shrink"
+ />
+ <TextControl {...sectionStyle.flexShrink} />
+ </Grid>
+ </Grid>
+ }
+ >
+ <Flex>
+ <EllipsesIcon />
+ </Flex>
+ </ValuePickerPopover>
);
};
+
+const FlexChildSectionOrder = (props: RenderCategoryProps) => {
+ const { setProperty, currentStyle, sectionStyle } = props;
+ const setOrder = setProperty("order");
+
+ return (
+ <Grid css={{ gridTemplateColumns: "4fr auto" }}>
+ <PropertyName
+ property={sectionStyle.order?.styleConfig.property}
+ label="Order"
+ />
+ <ToggleGroupControl
+ property={sectionStyle.order?.styleConfig.property}
+ onValueChange={(value) => {
+ switch (value) {
+ case "0":
+ case "1":
+ case "-1": {
+ setOrder(value);
+ break;
+ }
+ }
+ }}
+ value={String(currentStyle.order?.value)}
+ items={[
+ {
+ child: <CrossSmallIcon />,
+ label: "Dont't change",
+ value: "0",
+ },
+ {
+ child: <OrderFirstIcon />,
+ label: "Make first",
+ value: "1",
+ },
+ {
+ child: <OrderLastIcon />,
+ label: "Make last",
+ value: "-1",
+ },
+ {
+ child: <FlexChildSectionOrderPopover {...props} />,
+ label: "Customize order",
+ value: "",
+ },
+ ]}
+ />
+ </Grid>
+ );
+};
+
+const FlexChildSectionOrderPopover = (props: RenderCategoryProps) => {
+ const { sectionStyle } = props;
+ return (
+ <ValuePickerPopover
+ title="Order"
+ content={
+ <Grid css={{ padding: "$spacing$9" }}>
+ <Grid css={{ gridTemplateColumns: "4fr 6fr" }}>
+ <PropertyName
+ property={sectionStyle.order?.styleConfig.property}
+ label="Order"
+ />
+ <TextControl {...sectionStyle.order} />
+ </Grid>
+ </Grid>
+ }
+ >
+ <Flex>
+ <EllipsesIcon />
+ </Flex>
+ </ValuePickerPopover>
+ );
+};
+
+const getSizingValue = (flexGrow: string, flexShrink: string) => {
+ if (flexGrow === "0" && flexShrink === "0") return "none";
+ if (flexGrow === "1" && flexShrink === "0") return "grow";
+ if (flexGrow === "0" && flexShrink === "1") return "shrink";
+ return "";
+};
diff --git a/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx b/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
index 149dc43b91..85d80606f1 100644
--- a/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
+++ b/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
@@ -5,7 +5,11 @@ import {
type TextToolbarState,
useTextToolbarState,
} from "~/designer/shared/nano-states";
-import { ToggleGroup, type CSS } from "@webstudio-is/design-system";
+import {
+ type CSS,
+ ToggleGroupRoot,
+ ToggleGroupItem,
+} from "@webstudio-is/design-system";
import {
FontBoldIcon,
FontItalicIcon,
@@ -105,7 +109,7 @@ const Toolbar = ({ css, rootRef, state, onToggle }: ToolbarProps) => {
value.push("span");
}
return (
- <ToggleGroup.Root
+ <ToggleGroupRoot
ref={rootRef}
type="multiple"
value={value}
@@ -142,28 +146,28 @@ const Toolbar = ({ css, rootRef, state, onToggle }: ToolbarProps) => {
...css,
}}
>
- <ToggleGroup.Item value="bold">
+ <ToggleGroupItem value="bold">
<FontBoldIcon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="italic">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="italic">
<FontItalicIcon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="superscript">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="superscript">
<SuperscriptIcon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="subscript">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="subscript">
<SubscriptIcon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="link">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="link">
<Link2Icon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="span">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="span">
<BrushIcon />
- </ToggleGroup.Item>
- <ToggleGroup.Item value="clear">
+ </ToggleGroupItem>
+ <ToggleGroupItem value="clear">
<FormatClearIcon />
- </ToggleGroup.Item>
- </ToggleGroup.Root>
+ </ToggleGroupItem>
+ </ToggleGroupRoot>
);
};
diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsx
index 421cfc312a..25806f1486 100644
--- a/packages/design-system/src/components/toggle-group.tsx
+++ b/packages/design-system/src/components/toggle-group.tsx
@@ -1,14 +1,14 @@
import { styled } from "../stitches.config";
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
-export const Root = styled(ToggleGroupPrimitive.Root, {
+export const ToggleGroupRoot = styled(ToggleGroupPrimitive.Root, {
display: "inline-flex",
borderRadius: "$spacing$3",
boxShadow: `0 0 0 $spacing$1 $colors$slate7`,
padding: 2,
});
-export const Item = styled(ToggleGroupPrimitive.Item, {
+export const ToggleGroupItem = styled(ToggleGroupPrimitive.Item, {
all: "unset",
backgroundColor: "$loContrast",
color: "$hiContrast",
@@ -32,11 +32,5 @@ export const Item = styled(ToggleGroupPrimitive.Item, {
"&:last-child": { borderTopRightRadius: 4, borderBottomRightRadius: 4 },
"&:hover": { backgroundColor: "$slateA3" },
"&:focus": { boxShadow: "0 0 0 $spacing$2 $colors$blue10", zIndex: 1 },
- "&[data-state=on]": {
- backgroundColor: "$slate5",
- "&[data-breakpoint=true]": {
- color: "$colors$blue11",
- backgroundColor: "$colors$blue4",
- },
- },
+ "&[data-state=on]": { backgroundColor: "$slate5" },
});
diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.ts
index a158012adc..a8646bfce6 100644
--- a/packages/design-system/src/index.ts
+++ b/packages/design-system/src/index.ts
@@ -7,7 +7,7 @@ export * as Portal from "@radix-ui/react-portal";
export * from "@radix-ui/react-id";
export { Container } from "./components/container";
export { Label } from "./components/label";
-export * as ToggleGroup from "./components/toggle-group";
+export * from "./components/toggle-group";
export * from "./components/progress-radial";
export * from "./components/select";
export * from "./components/text-field";
diff --git a/packages/icons/src/order-first.tsx b/packages/icons/src/order-first.tsx
index d001f8eb38..319d43a83b 100644
--- a/packages/icons/src/order-first.tsx
+++ b/packages/icons/src/order-first.tsx
@@ -5,41 +5,30 @@ export const OrderFirstIcon = React.forwardRef<SVGSVGElement, IconProps>(
({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 16 16"
width="16"
height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
{...props}
ref={forwardedRef}
>
- <mask id="a" fill="#fff">
- <rect width="4" height="8" x="10.9" y="4" rx="1" />
- </mask>
- <rect
- width="4"
- height="8"
- x="10.9"
- y="4"
- stroke={color}
- strokeWidth="2.2"
- mask="url(#a)"
- rx="1"
+ <path
+ d="M2.10022 2.5C1.54794 2.5 1.10022 2.94771 1.10022 3.5L1.10022 12.5C1.10022 13.0523 1.54793 13.5 2.10022 13.5H3.90022C4.4525 13.5 4.90022 13.0523 4.90022 12.5L4.90022 3.5C4.90022 2.94772 4.45251 2.5 3.90022 2.5L2.10022 2.5Z"
+ fill={color}
+ />
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M11.9 4C11.3477 4 10.9 4.44771 10.9 5L10.9 11C10.9 11.5523 11.3477 12 11.9 12H13.9C14.4523 12 14.9 11.5523 14.9 11L14.9 5C14.9 4.44772 14.4523 4 13.9 4L11.9 4ZM12 5.1L12 10.9H13.8L13.8 5.1H12Z"
+ fill={color}
/>
- <mask id="b" fill="#fff">
- <rect width="4" height="8" x="6.10022" y="4" rx="1" />
- </mask>
- <rect
- width="4"
- height="8"
- x="6.10022"
- y="4"
- stroke={color}
- strokeWidth="2.2"
- mask="url(#b)"
- rx="1"
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M7.10022 4C6.54794 4 6.10022 4.44771 6.10022 5L6.10022 11C6.10022 11.5523 6.54794 12 7.10022 12H9.10022C9.65251 12 10.1002 11.5523 10.1002 11L10.1002 5C10.1002 4.44771 9.65251 4 9.10022 4L7.10022 4ZM7.20022 5.1L7.20022 10.9H9.00022L9.00022 5.1L7.20022 5.1Z"
+ fill={color}
/>
- <rect width="3.8" height="11" x="1.10022" y="2.5" fill={color} rx="1" />
</svg>
);
}
diff --git a/packages/icons/src/order-last.tsx b/packages/icons/src/order-last.tsx
index 2d90e443a3..d5a0ea57f8 100644
--- a/packages/icons/src/order-last.tsx
+++ b/packages/icons/src/order-last.tsx
@@ -5,44 +5,32 @@ export const OrderLastIcon = React.forwardRef<SVGSVGElement, IconProps>(
({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 16 16"
width="16"
height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
{...props}
ref={forwardedRef}
- style={{ transform: "scale(-1)" }}
>
- <mask id="a" fill="#fff">
- <rect width="4" height="8" x="10.9" y="4" rx="1" />
- </mask>
- <rect
- width="4"
- height="8"
- x="10.9"
- y="4"
- stroke={color}
- strokeWidth="2.2"
- mask="url(#a)"
- rx="1"
+ <path
+ d="M13.8998 13.5C14.4521 13.5 14.8998 13.0523 14.8998 12.5L14.8998 3.5C14.8998 2.94772 14.4521 2.5 13.8998 2.5H12.0998C11.5475 2.5 11.0998 2.94771 11.0998 3.5L11.0998 12.5C11.0998 13.0523 11.5475 13.5 12.0998 13.5H13.8998Z"
+ fill={color}
+ />
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M6.89978 12C6.57826 12 6.29219 11.8483 6.10925 11.6125C5.97795 11.4433 5.89978 11.2308 5.89978 11L5.89978 5C5.89978 4.76923 5.97795 4.55672 6.10925 4.3875C6.29219 4.15173 6.57826 4 6.89978 4H8.89978C9.45207 4 9.89978 4.44772 9.89978 5V11C9.89978 11.5523 9.45206 12 8.89978 12H6.89978ZM8.79978 5.1V10.9H6.99978L6.99978 5.1L8.79978 5.1Z"
+ fill={color}
/>
- <mask id="b" fill="#fff">
- <rect width="4" height="8" x="6.10022" y="4" rx="1" />
- </mask>
- <rect
- width="4"
- height="8"
- x="6.10022"
- y="4"
- stroke={color}
- strokeWidth="2.2"
- mask="url(#b)"
- rx="1"
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M4.89051 4.3875C5.02181 4.55672 5.09998 4.76923 5.09998 5L5.09998 11C5.09998 11.2308 5.02181 11.4433 4.89051 11.6125C4.70757 11.8483 4.42149 12 4.09998 12H2.09998C1.54769 12 1.09998 11.5523 1.09998 11V5C1.09998 4.44771 1.54769 4 2.09998 4H4.09998C4.42149 4 4.70757 4.15173 4.89051 4.3875ZM3.99998 5.1L3.99998 10.9H2.19998L2.19998 5.1L3.99998 5.1Z"
+ fill={color}
/>
- <rect width="3.8" height="11" x="1.10022" y="2.5" fill={color} rx="1" />
</svg>
);
}
);
-OrderLastIcon.displayName = "OrderFirstIcon";
+OrderLastIcon.displayName = "OrderLastIcon";