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.

lint nits

Sultan2a6f08bd9d69
diff --git a/apps/designer/app/auth/login.tsx b/apps/designer/app/auth/login.tsx
index 8172ed3d86..14bf2d305b 100644
--- a/apps/designer/app/auth/login.tsx
+++ b/apps/designer/app/auth/login.tsx
@@ -3,7 +3,6 @@ import { Form, useLoaderData } from "@remix-run/react";
import { useState } from "react";
import {
- Box,
Card,
Flex,
Heading,
diff --git a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx b/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
index 2f75919cc8..220d467bab 100644
--- a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
+++ b/apps/designer/app/designer/features/breakpoints/breakpoints.tsx
@@ -2,9 +2,8 @@ import { useEffect, useState } from "react";
import { type Breakpoint } from "@webstudio-is/react-sdk";
import { type Publish, useSubscribe } from "~/shared/pubsub";
import {
- __DEPRECATED__Text,
+ Text,
DropdownMenu,
- DropdownMenuArrow,
DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuItem,
@@ -44,17 +43,17 @@ const BreakpointSelectorItem = ({
}: BreakpointSelectorItemProps) => {
return (
<Flex align="center" justify="between" gap="3" css={{ flexGrow: 1 }}>
- <__DEPRECATED__Text size="1" css={{ flexGrow: 1, color: "inherit" }}>
+ <Text size="1" css={{ flexGrow: 1, color: "inherit" }}>
{breakpoint.label}
- </__DEPRECATED__Text>
- <__DEPRECATED__Text
+ </Text>
+ <Text
size="1"
css={{
color: "inherit",
}}
>
{breakpoint.minWidth}
- </__DEPRECATED__Text>
+ </Text>
</Flex>
);
};
diff --git a/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx b/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
index 1305d95a2d..503ed8f43f 100644
--- a/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
@@ -3,7 +3,6 @@ import { ColorResult, RGBColor, SketchPicker } from "react-color";
import {
Box,
Flex,
- Grid,
Popover,
PopoverTrigger,
PopoverContent,
diff --git a/apps/designer/app/designer/features/style-panel/controls/font-family/font-family-control.tsx b/apps/designer/app/designer/features/style-panel/controls/font-family/font-family-control.tsx
index 98e6ab319b..4fbc1c2ba7 100644
--- a/apps/designer/app/designer/features/style-panel/controls/font-family/font-family-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/font-family/font-family-control.tsx
@@ -1,5 +1,4 @@
import {
- Grid,
TextField,
Popover,
PopoverTrigger,
@@ -9,7 +8,6 @@ import {
} from "@webstudio-is/design-system";
import type { ControlProps } from "../../style-sections";
import { getFinalValue } from "../../shared/get-final-value";
-import { PropertyName } from "../../shared/property-name";
import { PANEL_WIDTH } from "~/designer/shared/constants";
import { MutableRefObject, useRef, useState } from "react";
import { FontsManager } from "~/designer/shared/fonts-manager";
diff --git a/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx b/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
index 15344e825f..acb6ece07c 100644
--- a/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/text/text-control.tsx
@@ -1,10 +1,4 @@
-import {
- FocusEvent,
- KeyboardEvent,
- PointerEvent,
- useRef,
- useCallback,
-} from "react";
+import { FocusEvent, KeyboardEvent, useRef, useCallback } from "react";
import {
Box,
Text,
@@ -15,7 +9,6 @@ import {
DropdownMenuContent,
DropdownMenuRadioItem,
DropdownMenuRadioGroup,
- Select,
TextField,
Combobox,
numericScrubControl,
@@ -155,7 +148,7 @@ export const TextControl = ({
property={styleConfig.property}
label={styleConfig.label}
{...(value.type === "unit" && {
- onPointerUp: (event: PointerEvent<HTMLInputElement>) => {
+ onPointerUp: () => {
setValue(String(inputRef.current?.value));
},
ref: numericScrubRefCallback,
diff --git a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx
index 5f578fe4a0..422fb8867d 100644
--- a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx
@@ -7,25 +7,6 @@ import { renderProperty } from "../../style-sections";
import { MenuControl, SelectControl, TextControl } from "../../controls";
import { PropertyName } from "../../shared/property-name";
-const layoutSectionStyle = {
- alignItems: "center",
- gap: "$space$styleSection",
-};
-
-const layoutSectionFlexStyle = {
- ...layoutSectionStyle,
- gridTemplateColumns: "repeat(12, 1fr)",
- gridTemplateRows: "auto 0px auto auto 0px auto",
- gridTemplateAreas: `
- "display display display display display display display display display display display display"
- "grid grid grid grid grid . . . . . . ."
- "grid grid grid grid grid flexDirection flexDirection flexWrap flexWrap justifyItems justifyItems ."
- "grid grid grid grid grid alignItems alignItems justifyContent justifyContent alignContent alignContent ."
- "grid grid grid grid grid . . . . . . ."
- "columnGap columnGap columnGap columnGap columnGap lock lock rowGap rowGap rowGap rowGap rowGap"
- `,
-};
-
const LayoutSectionFlex = ({
currentStyle,
sectionStyle,
diff --git a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
index d42bc8c4cf..4f8c38079b 100644
--- a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
@@ -1,10 +1,4 @@
-import {
- Flex,
- Label,
- Tooltip,
- IconButton,
- TextField,
-} from "@webstudio-is/design-system";
+import { Flex, Label, Tooltip, IconButton } from "@webstudio-is/design-system";
import { useIsFromCurrentBreakpoint } from "./use-is-from-current-breakpoint";
import { propertyNameColorForSelectedBreakpoint } from "./constants";
import type { PropertyProps } from "../style-sections";
diff --git a/apps/designer/app/designer/features/topbar/menu/menu.tsx b/apps/designer/app/designer/features/topbar/menu/menu.tsx
index 97c6788b04..7833f65652 100644
--- a/apps/designer/app/designer/features/topbar/menu/menu.tsx
+++ b/apps/designer/app/designer/features/topbar/menu/menu.tsx
@@ -9,7 +9,6 @@ import {
DropdownMenuTrigger,
DropdownMenuSubTrigger,
DropdownMenuCheckboxItem,
- DropdownMenuArrow,
DropdownMenuSeparator,
DropdownMenuPortal,
IconButton,
diff --git a/packages/design-system/src/components/menu.tsx b/packages/design-system/src/components/menu.tsx
index fc39a5616f..9de5d3b616 100644
--- a/packages/design-system/src/components/menu.tsx
+++ b/packages/design-system/src/components/menu.tsx
@@ -3,7 +3,6 @@ import * as MenuPrimitive from "@radix-ui/react-menu";
import { CheckIcon } from "@webstudio-is/icons";
import { styled, css, CSS } from "../stitches.config";
import { Box } from "./box";
-import { Flex } from "./flex";
import { panelStyles } from "./panel";
export const baseItemCss = css({