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.

touch-up... render icons in dropdown menu

Sultan60c483a03d64
diff --git a/apps/designer/app/designer/features/style-panel/style-section.tsx b/apps/designer/app/designer/features/style-panel/style-section.tsx
index 0b195770b2..9a71552d6a 100644
--- a/apps/designer/app/designer/features/style-panel/style-section.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-section.tsx
@@ -1,4 +1,4 @@
-import { ChangeEvent, ChangeEventHandler, useState, useEffect } from "react";
+import { ChangeEvent, useState } from "react";
import {
Box,
Flex,
@@ -11,12 +11,9 @@ import {
Comboicon,
Select,
IconButton,
+ TextField,
} from "~/shared/design-system";
-import {
- TriangleRightIcon,
- TriangleDownIcon,
- LockClosedIcon,
-} from "~/shared/icons";
+import { TriangleRightIcon, TriangleDownIcon } from "~/shared/icons";
import * as icons from "~/shared/icons";
import type { StyleConfig } from "./lib/configs";
import {
@@ -37,7 +34,6 @@ import {
} from "./lib/spacing-widget";
import { useIsFromCurrentBreakpoint } from "./lib/use-is-from-current-breakpoint";
import { propertyNameColorForSelectedBreakpoint } from "./lib/constants";
-import { isCatchResponse } from "@remix-run/react/dist/data";
const getFinalValue = ({
currentStyle,
@@ -70,9 +66,16 @@ const PropertyName = ({ property, label, css }: PropertyProps) => {
<Label
css={{
gridColumn: "1",
- color: isCurrentBreakpoint
- ? propertyNameColorForSelectedBreakpoint
- : "$hiContrast",
+ ...(isCurrentBreakpoint
+ ? {
+ color: propertyNameColorForSelectedBreakpoint,
+ backgroundColor: "$colors$blue4",
+ padding: "2px 4px",
+ borderRadius: "3px",
+ }
+ : {
+ color: "$hiContrast",
+ }),
...css,
}}
variant="contrast"
@@ -199,20 +202,13 @@ const ComboboxControl = ({
case "rowGap":
case "columnGap": {
return (
- <input
+ <TextField
type="number"
- value={value.value}
+ value={parseFloat(String(value.value)) || 0}
onChange={(event: ChangeEvent<HTMLInputElement>) =>
setValue(event.target.value)
}
- style={{
- width: "100%",
- boxSizing: "border-box",
- outline: "none",
- borderRadius: "4px",
- height: "28px",
- border: "1px solid var(--colors-slate8)",
- }}
+ css={{ cursor: "default" }}
/>
);
}
@@ -268,18 +264,29 @@ const SelectControl = ({
const setValue = setProperty(styleConfig.property);
return (
- <>
+ <Flex align="center">
<PropertyName
property={styleConfig.property}
label={styleConfig.label}
- css={{ fontWeight: "500", marginRight: "8px" }}
+ css={{
+ fontWeight: "500",
+ // marginRight: "2px",
+ }}
/>
<Select
options={styleConfig.items.map(({ label }) => label)}
value={String(value.value)}
onChange={setValue}
+ ghost
+ css={{
+ gap: "3px",
+ px: "6px",
+ fontWeight: "500",
+ textTransform: "capitalize",
+ "&:hover": { background: "none" },
+ }}
/>
- </>
+ </Flex>
);
};
@@ -294,41 +301,35 @@ const ComboiconControl = ({
inheritedStyle,
property: styleConfig.property,
});
+ const isCurrentBreakpoint = useIsFromCurrentBreakpoint(styleConfig.property);
if (value === undefined) return null;
const setValue = setProperty(styleConfig.property);
const currentValue = value.value as string;
- const Icon = (icons as any)[styleConfig.property]?.[currentValue];
- const isCurrentBreakpoint = useIsFromCurrentBreakpoint(styleConfig.property);
return (
<Comboicon
id={styleConfig.property}
items={styleConfig.items}
value={String(currentValue)}
onChange={setValue}
+ icons={(icons as any)[styleConfig.property]}
css={
isCurrentBreakpoint
? {
color: "$colors$blue11",
backgroundColor: "$colors$blue4",
- "&:hover": {
- color: "$colors$blue11",
+ "&:not([data-state=open]):hover": {
backgroundColor: "$colors$blue4",
},
- "& path": {
- fill: "$colors$blue11",
- },
}
: {}
}
- >
- {Icon && <Icon />}
- </Comboicon>
+ ></Comboicon>
);
};
-const GridControl = ({ css, currentStyle, ...rest }: any) => {
+const GridControl = ({ css }: any) => {
return (
<Box
css={{
@@ -428,7 +429,6 @@ export const renderCategory = ({
}: RenderCategoryProps) => {
switch (category) {
case "layout": {
- const display = currentStyle.display?.value;
switch (currentStyle.display?.value) {
case "flex": {
return (
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index beb9a2193b..ed0a3e2165 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -51,6 +51,7 @@ export const CollapsibleSection = ({
px: "$3",
color: "$hiContrast",
cursor: "default",
+ ...(isOpenFinal && { paddingBottom: "0px" }),
}}
>
<Text size="1" css={{ fontWeight: "500", flexGrow: 1 }}>
diff --git a/apps/designer/app/shared/design-system/components/comboicon.tsx b/apps/designer/app/shared/design-system/components/comboicon.tsx
index 39ff391a98..c7fc6b2e07 100644
--- a/apps/designer/app/shared/design-system/components/comboicon.tsx
+++ b/apps/designer/app/shared/design-system/components/comboicon.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { styled } from "@stitches/react";
-import { HamburgerMenuIcon, CheckIcon } from "@radix-ui/react-icons";
+import { CheckIcon } from "@radix-ui/react-icons";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
const StyledContent = styled(DropdownMenuPrimitive.Content, {
@@ -9,8 +9,7 @@ const StyledContent = styled(DropdownMenuPrimitive.Content, {
borderRadius: "4px",
padding: "8px",
boxShadow:
- "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 0 1px $colors$gray1",
- border: "1px solid $colors$gray8",
+ "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 0 1px $colors$gray1, 0 0 0 1px $colors$gray8",
});
const itemStyles = {
@@ -26,6 +25,7 @@ const itemStyles = {
position: "relative",
paddingLeft: 25,
userSelect: "none",
+ gap: "8px",
};
const StyledRadioItem = styled(DropdownMenuPrimitive.RadioItem, {
@@ -42,7 +42,10 @@ const StyledItemIndicator = styled(DropdownMenuPrimitive.ItemIndicator, {
const StyledArrow = styled(DropdownMenuPrimitive.Arrow, {
fill: "$colors$gray4",
- // filter: 'drop-shadow(0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15))',
+ // @todo convert to clip-path of it's parent so that the shadow applies
+ "& *": {
+ fill: "transparent",
+ },
});
const IconButton = styled("button", {
@@ -63,7 +66,7 @@ const IconButton = styled("button", {
width: "24px",
height: "24px",
},
- "&:not(:hover) path": {
+ "& path": {
fill: "currentColor",
},
"&[data-state=open]": {
@@ -74,20 +77,12 @@ const IconButton = styled("button", {
},
});
-export const Comboicon = ({
- id,
- value,
- items,
- onChange,
- children,
- css,
-}: any) => {
+export const Comboicon = ({ value, items, onChange, icons, css }: any) => {
+ const TriggerIcon = icons?.[value];
return (
- <DropdownMenuPrimitive.Root>
+ <DropdownMenuPrimitive.Root modal={false}>
<DropdownMenuPrimitive.Trigger asChild>
- <IconButton aria-label={id} css={css}>
- {children}
- </IconButton>
+ <IconButton css={css}>{TriggerIcon && <TriggerIcon />}</IconButton>
</DropdownMenuPrimitive.Trigger>
<StyledContent>
@@ -95,16 +90,24 @@ export const Comboicon = ({
value={value}
onValueChange={onChange}
>
- {items.map(({ name, label }: any) => {
- return (
- <StyledRadioItem key={name} value={label}>
- <StyledItemIndicator>
- <CheckIcon />
- </StyledItemIndicator>
- {label}
- </StyledRadioItem>
- );
- })}
+ {items
+ .map(({ name, label }: any) => ({
+ icon: icons?.[name],
+ name,
+ label,
+ }))
+ .filter(({ icon }: any) => Boolean(icon))
+ .map(({ name, label, icon: ItemIcon }: any) => {
+ return (
+ <StyledRadioItem key={name} value={label}>
+ <StyledItemIndicator>
+ <CheckIcon />
+ </StyledItemIndicator>
+ <ItemIcon />
+ {label}
+ </StyledRadioItem>
+ );
+ })}
</DropdownMenuPrimitive.RadioGroup>
<StyledArrow offset={12} />
</StyledContent>
diff --git a/apps/designer/app/shared/design-system/components/select.tsx b/apps/designer/app/shared/design-system/components/select.tsx
index df440747f4..cd74f4efaf 100644
--- a/apps/designer/app/shared/design-system/components/select.tsx
+++ b/apps/designer/app/shared/design-system/components/select.tsx
@@ -2,10 +2,10 @@ import * as SelectPrimitive from "@radix-ui/react-select";
import noop from "lodash.noop";
import React, { ReactNode, Ref } from "react";
import {
- CaretSortIcon,
CheckIcon,
ChevronDownIcon,
ChevronUpIcon,
+ CaretDownIcon,
} from "~/shared/icons";
import { styled } from "../stitches.config";
@@ -177,7 +177,7 @@ const SelectBase = (
{value ? getLabel(value) : placeholder}
</SelectPrimitive.Value>
<StyledIcon>
- <CaretSortIcon />
+ <CaretDownIcon />
</StyledIcon>
</StyledTrigger>
diff --git a/apps/designer/app/shared/icons/align-content.tsx b/apps/designer/app/shared/icons/align-content.tsx
index 93fd7d4471..cd5e068514 100644
--- a/apps/designer/app/shared/icons/align-content.tsx
+++ b/apps/designer/app/shared/icons/align-content.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const AlignContentStart = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -20,11 +22,14 @@ export const AlignContentStart = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignContentStart.displayName = "AlignContentStart";
export const AlignContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -41,11 +46,14 @@ export const AlignContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignContentCenter.displayName = "AlignContentCenter";
export const AlignContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -62,11 +70,14 @@ export const AlignContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignContentEnd.displayName = "AlignContentEnd";
export const AlignContentStretch = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -83,13 +94,16 @@ export const AlignContentStretch = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignContentStretch.displayName = "AlignContentStretch";
export const AlignContentSpaceAround = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -105,13 +119,16 @@ export const AlignContentSpaceAround = React.forwardRef<
</svg>
);
});
+AlignContentSpaceAround.displayName = "AlignContentSpaceAround";
export const AlignContentSpaceBetween = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -127,6 +144,7 @@ export const AlignContentSpaceBetween = React.forwardRef<
</svg>
);
});
+AlignContentSpaceBetween.displayName = "AlignContentSpaceBetween";
export const alignContent = {
normal: AlignContentStart,
diff --git a/apps/designer/app/shared/icons/align-items.tsx b/apps/designer/app/shared/icons/align-items.tsx
index 1ae3919c1e..1866d1476d 100644
--- a/apps/designer/app/shared/icons/align-items.tsx
+++ b/apps/designer/app/shared/icons/align-items.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const AlignItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -21,11 +23,14 @@ export const AlignItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignItemsStart.displayName = "AlignItemsStart";
export const AlignItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -42,11 +47,14 @@ export const AlignItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignItemsEnd.displayName = "AlignItemsEnd";
export const AlignItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -63,11 +71,14 @@ export const AlignItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignItemsCenter.displayName = "AlignItemsCenter";
export const AlignItemsBaseline = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -110,11 +121,14 @@ export const AlignItemsBaseline = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+AlignItemsBaseline.displayName = "AlignItemsBaseline";
export const AlignItemsStretch = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -131,15 +145,12 @@ export const AlignItemsStretch = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
-
-export const AlignItemsNormal = AlignItemsStart;
+AlignItemsStretch.displayName = "AlignItemsStretch";
export const alignItems = {
normal: AlignItemsStart,
start: AlignItemsStart,
end: AlignItemsEnd,
- "flex-start": AlignItemsStart,
- "flex-end": AlignItemsEnd,
center: AlignItemsCenter,
baseline: AlignItemsBaseline,
stretch: AlignItemsStretch,
diff --git a/apps/designer/app/shared/icons/flex-direction.tsx b/apps/designer/app/shared/icons/flex-direction.tsx
index 25a691d1af..0bd991e294 100644
--- a/apps/designer/app/shared/icons/flex-direction.tsx
+++ b/apps/designer/app/shared/icons/flex-direction.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const FlexDirectionRow = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -19,11 +21,14 @@ export const FlexDirectionRow = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+FlexDirectionRow.displayName = "FlexDirectionRow";
export const FlexDirectionColumn = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -38,13 +43,16 @@ export const FlexDirectionColumn = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+FlexDirectionColumn.displayName = "FlexDirectionColumn";
export const FlexDirectionRowReverse = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -59,13 +67,16 @@ export const FlexDirectionRowReverse = React.forwardRef<
</svg>
);
});
+FlexDirectionRowReverse.displayName = "FlexDirectionRowReverse";
export const FlexDirectionColumnReverse = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -80,6 +91,7 @@ export const FlexDirectionColumnReverse = React.forwardRef<
</svg>
);
});
+FlexDirectionColumnReverse.displayName = "FlexDirectionColumnReverse";
export const flexDirection = {
normal: FlexDirectionRow,
diff --git a/apps/designer/app/shared/icons/flex-wrap.tsx b/apps/designer/app/shared/icons/flex-wrap.tsx
index e6e43c5ae4..635a8b44f7 100644
--- a/apps/designer/app/shared/icons/flex-wrap.tsx
+++ b/apps/designer/app/shared/icons/flex-wrap.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const FlexWrapWrap = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -24,11 +26,14 @@ export const FlexWrapWrap = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+FlexWrapWrap.displayName = "FlexWrapWrap";
export const FlexWrapNowrap = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -45,11 +50,14 @@ export const FlexWrapNowrap = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+FlexWrapNowrap.displayName = "FlexWrapNowrap";
export const FlexWrapWrapReverse = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -70,6 +78,7 @@ export const FlexWrapWrapReverse = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+FlexWrapWrapReverse.displayName = "FlexWrapWrapReverse";
export const flexWrap = {
normal: FlexWrapNowrap,
diff --git a/apps/designer/app/shared/icons/gap.tsx b/apps/designer/app/shared/icons/gap.tsx
index 1c2b05fd18..a08339b9ba 100644
--- a/apps/designer/app/shared/icons/gap.tsx
+++ b/apps/designer/app/shared/icons/gap.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const RowGap = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -14,11 +16,14 @@ export const RowGap = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+RowGap.displayName = "RowGap";
export const ColumnGap = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -28,6 +33,7 @@ export const ColumnGap = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+ColumnGap.displayName = "ColumnGap";
export const gap = {
"row-gap": RowGap,
diff --git a/apps/designer/app/shared/icons/justify-content.tsx b/apps/designer/app/shared/icons/justify-content.tsx
index 4994f86700..c183b99bfc 100644
--- a/apps/designer/app/shared/icons/justify-content.tsx
+++ b/apps/designer/app/shared/icons/justify-content.tsx
@@ -2,9 +2,11 @@ import * as React from "react";
import { IconProps } from "./types";
export const JustifyContentStart = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -20,11 +22,14 @@ export const JustifyContentStart = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+JustifyContentStart.displayName = "JustifyContentStart";
export const JustifyContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -41,11 +46,14 @@ export const JustifyContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+JustifyContentCenter.displayName = "JustifyContentCenter";
export const JustifyContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -61,13 +69,16 @@ export const JustifyContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+JustifyContentEnd.displayName = "JustifyContentEnd";
export const JustifyContentSpaceBetween = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -83,13 +94,16 @@ export const JustifyContentSpaceBetween = React.forwardRef<
</svg>
);
});
+JustifyContentSpaceBetween.displayName = "JustifyContentSpaceBetween";
export const JustifyContentSpaceAround = React.forwardRef<
SVGSVGElement,
IconProps
->(({ color = "currentColor", ...props }, forwardedRef) => {
+>((props, forwardedRef) => {
return (
<svg
+ width="24"
+ height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
@@ -103,14 +117,13 @@ export const JustifyContentSpaceAround = React.forwardRef<
</svg>
);
});
+JustifyContentSpaceAround.displayName = "JustifyContentSpaceAround";
export const justifyContent = {
normal: JustifyContentStart,
start: JustifyContentStart,
end: JustifyContentEnd,
center: JustifyContentCenter,
- "flex-start": JustifyContentStart,
- "flex-end": JustifyContentEnd,
"space-between": JustifyContentSpaceBetween,
"space-around": JustifyContentSpaceAround,
};
diff --git a/apps/designer/app/shared/icons/lock.tsx b/apps/designer/app/shared/icons/lock.tsx
index 59e24aebf4..fafb84a1cc 100644
--- a/apps/designer/app/shared/icons/lock.tsx
+++ b/apps/designer/app/shared/icons/lock.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
width="8"
@@ -39,9 +39,10 @@ export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+LockOpened.displayName = "LockOpened";
export const LockClosed = React.forwardRef<SVGSVGElement, IconProps>(
- ({ color = "currentColor", ...props }, forwardedRef) => {
+ (props, forwardedRef) => {
return (
<svg
width="8"
@@ -80,6 +81,7 @@ export const LockClosed = React.forwardRef<SVGSVGElement, IconProps>(
);
}
);
+LockClosed.displayName = "LockClosed";
export const lock = {
normal: LockOpened,