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.

alter useIsFromCurrentBreakpoint to support checking multiple properties

Sultanbe43b12e729d
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsx
index f914f39085..62a810eb8a 100644
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@ -104,11 +104,9 @@ const SidePanel = ({
height: "100%",
...css,
"&:first-of-type": {
- boxShadow: "inset -1px 0 0 0 $colors$gray7",
- },
- "&:last-of-type": {
- boxShadow: "inset 1px 0 0 0 $colors$gray7",
+ boxShadow: "inset -1px 0 0 0 $colors$panelOutline",
},
+ "&:last-of-type": { boxShadow: "inset 1px 0 0 0 $colors$panelOutline" },
}}
>
{children}
diff --git a/apps/designer/app/designer/features/style-panel/lib/use-is-from-current-breakpoint.ts b/apps/designer/app/designer/features/style-panel/lib/use-is-from-current-breakpoint.ts
index 3a51a48642..9379224360 100644
--- a/apps/designer/app/designer/features/style-panel/lib/use-is-from-current-breakpoint.ts
+++ b/apps/designer/app/designer/features/style-panel/lib/use-is-from-current-breakpoint.ts
@@ -9,7 +9,9 @@ import { getCssRuleForBreakpoint } from "./get-css-rule-for-breakpoint";
/**
* Identify if the provided property is defined in the instance css rule matching the selected breakpoint.
*/
-export const useIsFromCurrentBreakpoint = (property: StyleProperty) => {
+export const useIsFromCurrentBreakpoint = (
+ property: StyleProperty | StyleProperty[]
+) => {
const [selectedBreakpoint] = useSelectedBreakpoint();
const [selectedInstanceData] = useSelectedInstanceData();
const cssRule = useMemo(
@@ -21,5 +23,7 @@ export const useIsFromCurrentBreakpoint = (property: StyleProperty) => {
[selectedInstanceData, selectedBreakpoint]
);
if (cssRule === undefined) return false;
+ if (Array.isArray(property))
+ return property.some((property) => property in cssRule.style);
return property in cssRule.style;
};
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 fb92684d06..8106f0c7c1 100644
--- a/apps/designer/app/designer/features/style-panel/style-section.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-section.tsx
@@ -398,6 +398,16 @@ const GridControl = ({
setProperty: SetProperty;
createBatchUpdate: CreateBatchUpdate;
}) => {
+ const isCurrentBreakpoint = useIsFromCurrentBreakpoint([
+ "flexDirection",
+ "flexWrap",
+ "justifyContent",
+ "justifyItems",
+ "alignContent",
+ "alignItems",
+ "rowGap",
+ "columnGap",
+ ]);
const flexDirection = currentStyle.flexDirection?.value as string;
const justifyContent = currentStyle.justifyContent?.value as string;
const alignItems = currentStyle.alignItems?.value as string;
@@ -441,8 +451,8 @@ const GridControl = ({
aspectRatio: "1 / 1",
padding: "6px",
borderRadius: "4px",
- color: "$colors$blue9", // $colors$slate8
- background: "#FFF",
+ color: isCurrentBreakpoint ? "$colors$blue9" : "$colors$slate8",
+ background: "$loContrast",
border: "2px solid currentColor",
transform: direction
? "rotate(-90deg) scaleX(-1)"
diff --git a/apps/designer/app/designer/features/topbar/topbar.tsx b/apps/designer/app/designer/features/topbar/topbar.tsx
index 123b7cbba0..841f9cebcd 100644
--- a/apps/designer/app/designer/features/topbar/topbar.tsx
+++ b/apps/designer/app/designer/features/topbar/topbar.tsx
@@ -26,7 +26,7 @@ export const Topbar = ({ config, css, project, publish }: TopbarProps) => {
bc: "$loContrast",
height: "$sizes$7",
"[data-theme=dark] &": {
- boxShadow: "inset 0 -1px 0 0 $colors$gray7",
+ boxShadow: "inset 0 -1px 0 0 $colors$panelOutline",
},
// @todo: uhh, setting this on any focused child element? lets see what's the use case and why its necessary to override vs. not having it in the first place
"& :focus": {
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index 3d95b6138a..318992608e 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -57,9 +57,13 @@ export const CollapsibleSection = ({
<Text size="1" css={{ fontWeight: "500", flexGrow: 1 }}>
{label}
</Text>
- <Box css={{ marginRight: -5 }}>
+ <Flex
+ align="center"
+ justify="center"
+ css={{ marginRight: -5, opacity: ".4" }}
+ >
{isOpenFinal ? <ChevronLeftIcon /> : <ChevronRightIcon />}
- </Box>
+ </Flex>
{/* @todo: props panel shows double plus icon when rightSlot is set */}
{rightSlot}
</Flex>
diff --git a/packages/design-system/src/components/tabs.tsx b/packages/design-system/src/components/tabs.tsx
index f8e92e2047..8d5d263ba3 100644
--- a/packages/design-system/src/components/tabs.tsx
+++ b/packages/design-system/src/components/tabs.tsx
@@ -12,7 +12,7 @@ export const Tabs = styled(TabsPrimitive.Root, {
export const TabsTrigger = styled(TabsPrimitive.Trigger, {
flexShrink: 0,
- height: "$6",
+ height: "$7",
display: "inline-flex",
lineHeight: 1,
fontFamily: "inherit",
diff --git a/packages/design-system/src/stitches.config.ts b/packages/design-system/src/stitches.config.ts
index 7a681476d0..799caa4d04 100644
--- a/packages/design-system/src/stitches.config.ts
+++ b/packages/design-system/src/stitches.config.ts
@@ -199,6 +199,7 @@ export const {
primary: "$blue12",
canvas: "hsl(0 0% 93%)",
panel: "white",
+ panelOutline: "hsl(0deg 0% 0% / 10%)",
transparentPanel: "hsl(0 0% 0% / 97%)",
shadowLight: "hsl(206 22% 7% / 35%)",
shadowDark: "hsl(206 22% 7% / 20%)",
@@ -501,10 +502,10 @@ export const darkTheme = createTheme({
loContrast: "hsl(0 0% 17%)",
canvas: "hsl(0 0% 15%)",
panel: "$slate3",
+ panelOutline: "hsl(0deg 0% 100% / 10%)",
transparentPanel: "hsl(0 100% 100% / 97%)",
shadowLight: "hsl(206 22% 7% / 35%)",
shadowDark: "hsl(206 22% 7% / 20%)",
-
background: "$slate12",
text: "$slate1",
},
diff --git a/packages/icons/src/align-content.tsx b/packages/icons/src/align-content.tsx
index cd5e068514..8208b58b57 100644
--- a/packages/icons/src/align-content.tsx
+++ b/packages/icons/src/align-content.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const AlignContentStart = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -13,11 +13,11 @@ export const AlignContentStart = React.forwardRef<SVGSVGElement, IconProps>(
{...props}
ref={forwardedRef}
>
- <path d="M4 6H20V7H4V6Z" fill="#11181C" />
- <path d="M8 9H11V12H8V9Z" fill="#11181C" />
- <path d="M16 9H13V12H16V9Z" fill="#11181C" />
- <path d="M13 14H16V17H13V14Z" fill="#11181C" />
- <path d="M11 14H8V17H11V14Z" fill="#11181C" />
+ <path d="M4 6H20V7H4V6Z" fill={color} />
+ <path d="M8 9H11V12H8V9Z" fill={color} />
+ <path d="M16 9H13V12H16V9Z" fill={color} />
+ <path d="M13 14H16V17H13V14Z" fill={color} />
+ <path d="M11 14H8V17H11V14Z" fill={color} />
</svg>
);
}
@@ -25,7 +25,7 @@ export const AlignContentStart = React.forwardRef<SVGSVGElement, IconProps>(
AlignContentStart.displayName = "AlignContentStart";
export const AlignContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -40,7 +40,7 @@ export const AlignContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M8 6H11V9H8V6ZM4 11.5H20V12.5H4V11.5ZM16 6H13V9H16V6ZM13 15H16V18H13V15ZM11 15H8V18H11V15Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -49,7 +49,7 @@ export const AlignContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
AlignContentCenter.displayName = "AlignContentCenter";
export const AlignContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -64,7 +64,7 @@ export const AlignContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M8 8H11V11H8V8ZM4 18H20V19H4V18ZM16 8H13V11H16V8ZM13 13H16V16H13V13ZM11 13H8V16H11V13Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -73,7 +73,7 @@ export const AlignContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
AlignContentEnd.displayName = "AlignContentEnd";
export const AlignContentStretch = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -88,7 +88,7 @@ export const AlignContentStretch = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M19 5H5V6H19V5ZM19 18H5V19H19V18ZM8 8H11V11H8V8ZM16 8H13V11H16V8ZM13 13H16V16H13V13ZM11 13H8V16H11V13Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -99,7 +99,7 @@ AlignContentStretch.displayName = "AlignContentStretch";
export const AlignContentSpaceAround = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -114,7 +114,7 @@ export const AlignContentSpaceAround = React.forwardRef<
fillRule="evenodd"
clipRule="evenodd"
d="M19 5H5V6H19V5ZM19 18H5V19H19V18ZM8 8H11V11H8V8ZM16 8H13V11H16V8ZM13 13H16V16H13V13ZM11 13H8V16H11V13Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -124,7 +124,7 @@ AlignContentSpaceAround.displayName = "AlignContentSpaceAround";
export const AlignContentSpaceBetween = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -139,7 +139,7 @@ export const AlignContentSpaceBetween = React.forwardRef<
fillRule="evenodd"
clipRule="evenodd"
d="M19 5H5V6H19V5ZM19 18H5V19H19V18ZM8 8H11V11H8V8ZM16 8H13V11H16V8ZM13 13H16V16H13V13ZM11 13H8V16H11V13Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
diff --git a/packages/icons/src/align-items.tsx b/packages/icons/src/align-items.tsx
index 1866d1476d..705e3f0f15 100644
--- a/packages/icons/src/align-items.tsx
+++ b/packages/icons/src/align-items.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const AlignItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -17,7 +17,7 @@ export const AlignItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M12.8 7.99999H11.2V14.4H8.00005V7.99999H4.80005V6.39999H19.2V7.99999H16V17.6H12.8V7.99999Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -26,7 +26,7 @@ export const AlignItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
AlignItemsStart.displayName = "AlignItemsStart";
export const AlignItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -41,7 +41,7 @@ export const AlignItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M16 16H19.2V17.6H4.80005V16H8.00005V9.59999H11.2V16H12.8V6.39999H16V16Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -50,7 +50,7 @@ export const AlignItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
AlignItemsEnd.displayName = "AlignItemsEnd";
export const AlignItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -65,7 +65,7 @@ export const AlignItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M10.4 11H12.8V5L15 5V11H20V12.6H15V19H12.8V12.6H10.4V17H8.2V12.6H4V11H8.2V7H10.4V11Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -74,7 +74,7 @@ export const AlignItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
AlignItemsCenter.displayName = "AlignItemsCenter";
export const AlignItemsBaseline = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -89,33 +89,33 @@ export const AlignItemsBaseline = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M10 6H8V15H10V6ZM7 5V16H11V5H7Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M7 12H11V18H7V12Z" fill="#11181C" />
+ <path d="M7 12H11V18H7V12Z" fill={color} />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M10 13H8V17H10V13ZM7 12V18H11V12H7Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M13 12H16V15H13V12Z" fill="#11181C" />
+ <path d="M13 12H16V15H13V12Z" fill={color} />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M15 13H14V14H15V13ZM13 12V15H16V12H13Z"
- fill="#11181C"
+ fill={color}
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M16 8H14V15H16V8ZM13 7V16H17V7H13Z"
- fill="#11181C"
+ fill={color}
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M20 13H4V11.5H20V13Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -124,7 +124,7 @@ export const AlignItemsBaseline = React.forwardRef<SVGSVGElement, IconProps>(
AlignItemsBaseline.displayName = "AlignItemsBaseline";
export const AlignItemsStretch = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -139,7 +139,7 @@ export const AlignItemsStretch = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M16 16H19.2V17.6H4.80005V16H8.00005V7.99999H4.80005V6.39999H19.2V7.99999H16V16ZM12.8 16V7.99999H11.2V16H12.8Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
diff --git a/packages/icons/src/flex-direction.tsx b/packages/icons/src/flex-direction.tsx
index 0bd991e294..92f03df27a 100644
--- a/packages/icons/src/flex-direction.tsx
+++ b/packages/icons/src/flex-direction.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const FlexDirectionRow = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -15,7 +15,7 @@ export const FlexDirectionRow = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M5 12.8334L14.8881 12.8334L11.9794 15.825L13.125 17L18 12L13.125 7.00003L11.9794 8.17503L14.8881 11.1667L5 11.1667V12.8334Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -24,7 +24,7 @@ export const FlexDirectionRow = React.forwardRef<SVGSVGElement, IconProps>(
FlexDirectionRow.displayName = "FlexDirectionRow";
export const FlexDirectionColumn = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -37,7 +37,7 @@ export const FlexDirectionColumn = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M11.1667 6L11.1667 15.8881L8.175 12.9794L7 14.125L12 19L17 14.125L15.825 12.9794L12.8333 15.8881L12.8333 6L11.1667 6Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -48,7 +48,7 @@ FlexDirectionColumn.displayName = "FlexDirectionColumn";
export const FlexDirectionRowReverse = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -62,7 +62,7 @@ export const FlexDirectionRowReverse = React.forwardRef<
>
<path
d="M5 12.8334L14.8881 12.8334L11.9794 15.825L13.125 17L18 12L13.125 7.00003L11.9794 8.17503L14.8881 11.1667L5 11.1667V12.8334Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -72,7 +72,7 @@ FlexDirectionRowReverse.displayName = "FlexDirectionRowReverse";
export const FlexDirectionColumnReverse = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -86,7 +86,7 @@ export const FlexDirectionColumnReverse = React.forwardRef<
>
<path
d="M11.1667 6L11.1667 15.8881L8.175 12.9794L7 14.125L12 19L17 14.125L15.825 12.9794L12.8333 15.8881L12.8333 6L11.1667 6Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
diff --git a/packages/icons/src/flex-wrap.tsx b/packages/icons/src/flex-wrap.tsx
index 635a8b44f7..cd1a670f67 100644
--- a/packages/icons/src/flex-wrap.tsx
+++ b/packages/icons/src/flex-wrap.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const FlexWrapWrap = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -13,14 +13,14 @@ export const FlexWrapWrap = React.forwardRef<SVGSVGElement, IconProps>(
{...props}
ref={forwardedRef}
>
- <path d="M16 13H20V20H16V13Z" fill="#11181C" />
- <path d="M4 13H8V20H4V13Z" fill="#11181C" />
- <path d="M10 13H14V20H10V13Z" fill="#11181C" />
+ <path d="M16 13H20V20H16V13Z" fill={color} />
+ <path d="M4 13H8V20H4V13Z" fill={color} />
+ <path d="M10 13H14V20H10V13Z" fill={color} />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M13 5H11V10H13V5ZM19 5H17V10H19V5ZM7 5H5V10H7V5ZM19 14H17V19H19V14ZM7 14H5V19H7V14ZM13 14H11V19H13V14ZM8 4V11H4V4H8ZM10 4V11H14V4H10ZM16 4V11H20V4H16ZM16 13V20H20V13H16ZM8 13V20H4V13H8ZM10 13V20H14V13H10Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -29,7 +29,7 @@ export const FlexWrapWrap = React.forwardRef<SVGSVGElement, IconProps>(
FlexWrapWrap.displayName = "FlexWrapWrap";
export const FlexWrapNowrap = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -44,7 +44,7 @@ export const FlexWrapNowrap = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M13 9H11V15H13V9ZM19 9H17V15H19V9ZM7 9H5V15H7V9ZM4 8V16H8V8H4ZM14 8V16H10V8H14ZM20 8V16H16V8H20Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -53,7 +53,7 @@ export const FlexWrapNowrap = React.forwardRef<SVGSVGElement, IconProps>(
FlexWrapNowrap.displayName = "FlexWrapNowrap";
export const FlexWrapWrapReverse = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -65,14 +65,14 @@ export const FlexWrapWrapReverse = React.forwardRef<SVGSVGElement, IconProps>(
ref={forwardedRef}
style={{ transform: "rotate(180deg)" }}
>
- <path d="M16 13H20V20H16V13Z" fill="#11181C" />
- <path d="M4 13H8V20H4V13Z" fill="#11181C" />
- <path d="M10 13H14V20H10V13Z" fill="#11181C" />
+ <path d="M16 13H20V20H16V13Z" fill={color} />
+ <path d="M4 13H8V20H4V13Z" fill={color} />
+ <path d="M10 13H14V20H10V13Z" fill={color} />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M13 5H11V10H13V5ZM19 5H17V10H19V5ZM7 5H5V10H7V5ZM19 14H17V19H19V14ZM7 14H5V19H7V14ZM13 14H11V19H13V14ZM8 4V11H4V4H8ZM10 4V11H14V4H10ZM16 4V11H20V4H16ZM16 13V20H20V13H16ZM8 13V20H4V13H8ZM10 13V20H14V13H10Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
diff --git a/packages/icons/src/gap.tsx b/packages/icons/src/gap.tsx
index fc20ca2306..53162097a0 100644
--- a/packages/icons/src/gap.tsx
+++ b/packages/icons/src/gap.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const RowGap = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -16,16 +16,16 @@ export const RowGap = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M14.4704 6H13.4407L13.4407 18L14.4704 18L14.4704 6Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M14.4704 6H17.5593V7H14.4704L14.4704 6Z" fill="#11181C" />
+ <path d="M14.4704 6H17.5593V7H14.4704L14.4704 6Z" fill={color} />
<path
d="M14.4704 17L17.5593 17V18L14.4704 18L14.4704 17Z"
- fill="#11181C"
+ fill={color}
/>
<path
d="M6.44074 6L10.5296 6L10.5296 18L6.44073 18L6.44073 17L9.5 17L9.5 7L6.44074 7L6.44074 6Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -34,7 +34,7 @@ export const RowGap = React.forwardRef<SVGSVGElement, IconProps>(
RowGap.displayName = "RowGap";
export const ColumnGap = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -47,16 +47,16 @@ export const ColumnGap = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M14.4704 6H13.4407L13.4407 18L14.4704 18L14.4704 6Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M14.4704 6H17.5593V7H14.4704L14.4704 6Z" fill="#11181C" />
+ <path d="M14.4704 6H17.5593V7H14.4704L14.4704 6Z" fill={color} />
<path
d="M14.4704 17L17.5593 17V18L14.4704 18L14.4704 17Z"
- fill="#11181C"
+ fill={color}
/>
<path
d="M6.44074 6L10.5296 6L10.5296 18L6.44073 18L6.44073 17L9.5 17L9.5 7L6.44074 7L6.44074 6Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
diff --git a/packages/icons/src/justify-content.tsx b/packages/icons/src/justify-content.tsx
index c183b99bfc..ed4f705d08 100644
--- a/packages/icons/src/justify-content.tsx
+++ b/packages/icons/src/justify-content.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const JustifyContentStart = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -15,9 +15,9 @@ export const JustifyContentStart = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M10.9999 7.19999H8.79995V4.79999H7.19995V19.2H8.79995V16.8H10.9999V7.19999Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M16.8 7.19999H13.6V16.8H16.8V7.19999Z" fill="#11181C" />
+ <path d="M16.8 7.19999H13.6V16.8H16.8V7.19999Z" fill={color} />
</svg>
);
}
@@ -25,7 +25,7 @@ export const JustifyContentStart = React.forwardRef<SVGSVGElement, IconProps>(
JustifyContentStart.displayName = "JustifyContentStart";
export const JustifyContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -40,7 +40,7 @@ export const JustifyContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M12.7999 4.79999V19.2H11.1999V4.79999H12.7999ZM16.5999 15.8H14.3999V8.19999H16.5999V15.8ZM7.3999 15.8H9.5999V8.19999H7.3999V15.8Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -49,7 +49,7 @@ export const JustifyContentCenter = React.forwardRef<SVGSVGElement, IconProps>(
JustifyContentCenter.displayName = "JustifyContentCenter";
export const JustifyContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -62,9 +62,9 @@ export const JustifyContentEnd = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M12 16.8H15.2V19.2H16.8V4.79999H15.2V7.19999H12V16.8Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M7.19995 16.8H10.4V7.19999H7.19995V16.8Z" fill="#11181C" />
+ <path d="M7.19995 16.8H10.4V7.19999H7.19995V16.8Z" fill={color} />
</svg>
);
}
@@ -74,7 +74,7 @@ JustifyContentEnd.displayName = "JustifyContentEnd";
export const JustifyContentSpaceBetween = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -89,7 +89,7 @@ export const JustifyContentSpaceBetween = React.forwardRef<
fillRule="evenodd"
clipRule="evenodd"
d="M11.1999 7.19999H7.9999V4.79999H6.3999V19.2H7.9999V16.8H11.1999V7.19999ZM12.7999 16.8H15.9999V19.2H17.5999V4.79999H15.9999V7.19999H12.7999V16.8Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -99,7 +99,7 @@ JustifyContentSpaceBetween.displayName = "JustifyContentSpaceBetween";
export const JustifyContentSpaceAround = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -110,10 +110,10 @@ export const JustifyContentSpaceAround = React.forwardRef<
{...props}
ref={forwardedRef}
>
- <path d="M7.9999 19.2V4.79999H6.3999V19.2H7.9999Z" fill="#11181C" />
- <path d="M17.5999 19.2V4.79999H15.9999V19.2H17.5999Z" fill="#11181C" />
- <path d="M15.1999 16.8H12.7999V7.19999H15.1999V16.8Z" fill="#11181C" />
- <path d="M8.7999 16.8H11.1999V7.19999H8.7999V16.8Z" fill="#11181C" />
+ <path d="M7.9999 19.2V4.79999H6.3999V19.2H7.9999Z" fill={color} />
+ <path d="M17.5999 19.2V4.79999H15.9999V19.2H17.5999Z" fill={color} />
+ <path d="M15.1999 16.8H12.7999V7.19999H15.1999V16.8Z" fill={color} />
+ <path d="M8.7999 16.8H11.1999V7.19999H8.7999V16.8Z" fill={color} />
</svg>
);
});
diff --git a/packages/icons/src/justify-items.tsx b/packages/icons/src/justify-items.tsx
index cf12ea357a..280f1fd05a 100644
--- a/packages/icons/src/justify-items.tsx
+++ b/packages/icons/src/justify-items.tsx
@@ -3,7 +3,7 @@ import { IconProps } from "./types";
// @todo this is just a copy of justifyContent icons for now
export const JustifyItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -16,9 +16,9 @@ export const JustifyItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M10.9999 7.19999H8.79995V4.79999H7.19995V19.2H8.79995V16.8H10.9999V7.19999Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M16.8 7.19999H13.6V16.8H16.8V7.19999Z" fill="#11181C" />
+ <path d="M16.8 7.19999H13.6V16.8H16.8V7.19999Z" fill={color} />
</svg>
);
}
@@ -26,7 +26,7 @@ export const JustifyItemsStart = React.forwardRef<SVGSVGElement, IconProps>(
JustifyItemsStart.displayName = "JustifyItemsStart";
export const JustifyItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -41,7 +41,7 @@ export const JustifyItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
fillRule="evenodd"
clipRule="evenodd"
d="M12.7999 4.79999V19.2H11.1999V4.79999H12.7999ZM16.5999 15.8H14.3999V8.19999H16.5999V15.8ZM7.3999 15.8H9.5999V8.19999H7.3999V15.8Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -50,7 +50,7 @@ export const JustifyItemsCenter = React.forwardRef<SVGSVGElement, IconProps>(
JustifyItemsCenter.displayName = "JustifyItemsCenter";
export const JustifyItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -63,9 +63,9 @@ export const JustifyItemsEnd = React.forwardRef<SVGSVGElement, IconProps>(
>
<path
d="M12 16.8H15.2V19.2H16.8V4.79999H15.2V7.19999H12V16.8Z"
- fill="#11181C"
+ fill={color}
/>
- <path d="M7.19995 16.8H10.4V7.19999H7.19995V16.8Z" fill="#11181C" />
+ <path d="M7.19995 16.8H10.4V7.19999H7.19995V16.8Z" fill={color} />
</svg>
);
}
@@ -75,7 +75,7 @@ JustifyItemsEnd.displayName = "JustifyItemsEnd";
export const JustifyItemsSpaceBetween = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -90,7 +90,7 @@ export const JustifyItemsSpaceBetween = React.forwardRef<
fillRule="evenodd"
clipRule="evenodd"
d="M11.1999 7.19999H7.9999V4.79999H6.3999V19.2H7.9999V16.8H11.1999V7.19999ZM12.7999 16.8H15.9999V19.2H17.5999V4.79999H15.9999V7.19999H12.7999V16.8Z"
- fill="#11181C"
+ fill={color}
/>
</svg>
);
@@ -100,7 +100,7 @@ JustifyItemsSpaceBetween.displayName = "JustifyItemsSpaceBetween";
export const JustifyItemsSpaceAround = React.forwardRef<
SVGSVGElement,
IconProps
->((props, forwardedRef) => {
+>(({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="24"
@@ -111,10 +111,10 @@ export const JustifyItemsSpaceAround = React.forwardRef<
{...props}
ref={forwardedRef}
>
- <path d="M7.9999 19.2V4.79999H6.3999V19.2H7.9999Z" fill="#11181C" />
- <path d="M17.5999 19.2V4.79999H15.9999V19.2H17.5999Z" fill="#11181C" />
- <path d="M15.1999 16.8H12.7999V7.19999H15.1999V16.8Z" fill="#11181C" />
- <path d="M8.7999 16.8H11.1999V7.19999H8.7999V16.8Z" fill="#11181C" />
+ <path d="M7.9999 19.2V4.79999H6.3999V19.2H7.9999Z" fill={color} />
+ <path d="M17.5999 19.2V4.79999H15.9999V19.2H17.5999Z" fill={color} />
+ <path d="M15.1999 16.8H12.7999V7.19999H15.1999V16.8Z" fill={color} />
+ <path d="M8.7999 16.8H11.1999V7.19999H8.7999V16.8Z" fill={color} />
</svg>
);
});
diff --git a/packages/icons/src/lock.tsx b/packages/icons/src/lock.tsx
index fafb84a1cc..b9b7fe7eb1 100644
--- a/packages/icons/src/lock.tsx
+++ b/packages/icons/src/lock.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import { IconProps } from "./types";
export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="8"
@@ -14,15 +14,10 @@ export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
ref={forwardedRef}
>
<g clipPath="url(#clip0_561_9202)">
- <rect
- width="8"
- height="9"
- transform="translate(0 0.5)"
- fill="white"
- />
+ <rect width="8" height="9" transform="translate(0 0.5)" fill="none" />
<path
d="M4 0.5C3.24224 0.5 2.51551 0.80102 1.97969 1.33684C1.44388 1.87266 1.14286 2.59938 1.14286 3.35714V4.5C0.839753 4.5 0.549062 4.62041 0.334735 4.83474C0.120408 5.04906 0 5.33975 0 5.64286V8.5C0 8.8031 0.120408 9.09379 0.334735 9.30812C0.549062 9.52245 0.839753 9.64286 1.14286 9.64286H6.85714C7.16025 9.64286 7.45094 9.52245 7.66527 9.30812C7.87959 9.09379 8 8.8031 8 8.5V5.64286C8 5.33975 7.87959 5.04906 7.66527 4.83474C7.45094 4.62041 7.16025 4.5 6.85714 4.5H2.28571V3.35714C2.28557 2.9398 2.43768 2.53673 2.71352 2.22353C2.98936 1.91034 3.36998 1.70852 3.784 1.65594C4.19802 1.60335 4.61701 1.70361 4.96239 1.9379C5.30776 2.1722 5.5558 2.52444 5.66 2.92857C5.69789 3.07535 5.79253 3.20107 5.92311 3.27806C5.98777 3.31619 6.0593 3.3412 6.13362 3.35168C6.20795 3.36216 6.28361 3.3579 6.35629 3.33914C6.42896 3.32038 6.49723 3.28749 6.5572 3.24235C6.61717 3.1972 6.66765 3.14069 6.70578 3.07603C6.7439 3.01138 6.76892 2.93984 6.7794 2.86552C6.78988 2.7912 6.78562 2.71553 6.76686 2.64286C6.60831 2.02958 6.25053 1.48634 5.74972 1.09848C5.24891 0.710614 4.63344 0.500099 4 0.5V0.5Z"
- fill="#11181C"
+ fill={color}
/>
</g>
<defs>
@@ -30,7 +25,7 @@ export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
<rect
width="8"
height="9"
- fill="white"
+ fill="none"
transform="translate(0 0.5)"
/>
</clipPath>
@@ -42,7 +37,7 @@ export const LockOpened = React.forwardRef<SVGSVGElement, IconProps>(
LockOpened.displayName = "LockOpened";
export const LockClosed = React.forwardRef<SVGSVGElement, IconProps>(
- (props, forwardedRef) => {
+ ({ color = "currentColor", ...props }, forwardedRef) => {
return (
<svg
width="8"
@@ -54,17 +49,12 @@ export const LockClosed = React.forwardRef<SVGSVGElement, IconProps>(
ref={forwardedRef}
>
<g clipPath="url(#clip0_561_9202)">
- <rect
- width="8"
- height="9"
- transform="translate(0 0.5)"
- fill="white"
- />
+ <rect width="8" height="9" transform="translate(0 0.5)" fill="none" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M1.14286 4.4375V3.3125C1.14286 2.56658 1.44388 1.85121 1.97969 1.32376C2.51551 0.796316 3.24224 0.5 4 0.5C4.75776 0.5 5.48449 0.796316 6.02031 1.32376C6.55612 1.85121 6.85714 2.56658 6.85714 3.3125V4.4375C7.16025 4.4375 7.45094 4.55603 7.66527 4.767C7.87959 4.97798 8 5.26413 8 5.5625V8.375C8 8.67337 7.87959 8.95952 7.66527 9.1705C7.45094 9.38147 7.16025 9.5 6.85714 9.5H1.14286C0.839753 9.5 0.549062 9.38147 0.334735 9.1705C0.120408 8.95952 0 8.67337 0 8.375V5.5625C0 5.26413 0.120408 4.97798 0.334735 4.767C0.549062 4.55603 0.839753 4.4375 1.14286 4.4375ZM5.71429 3.3125V4.4375H2.28571V3.3125C2.28571 2.86495 2.46633 2.43572 2.78782 2.11926C3.10931 1.80279 3.54534 1.625 4 1.625C4.45466 1.625 4.89069 1.80279 5.21218 2.11926C5.53367 2.43572 5.71429 2.86495 5.71429 3.3125Z"
- fill="#11181C"
+ fill={color}
/>
</g>
<defs>
@@ -72,7 +62,7 @@ export const LockClosed = React.forwardRef<SVGSVGElement, IconProps>(
<rect
width="8"
height="9"
- fill="white"
+ fill="none"
transform="translate(0 0.5)"
/>
</clipPath>