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
Remove effects and other sections (#1491)
Oleg Isonen8d1bd2322e50
diff --git a/apps/builder/app/builder/features/style-panel/sections/effects/effects.tsx b/apps/builder/app/builder/features/style-panel/sections/effects/effects.tsxdeleted file mode 100644index 7b36fbae70..0000000000--- a/apps/builder/app/builder/features/style-panel/sections/effects/effects.tsx+++ /dev/null@@ -1,51 +0,0 @@-import type { StyleProperty } from "@webstudio-is/css-data";-import type { RenderCategoryProps } from "../../style-sections";-import { ShowMore } from "../../shared/show-more";-import { renderProperty } from "../../style-sections";-import { CollapsibleSection } from "../../shared/collapsible-section";--const properties: StyleProperty[] = [- "mixBlendMode",- "opacity",- "outlineColor",- "outlineOffset",- "outlineStyle",- "outlineWidth",- "boxShadow",- "transform",- "filter",- "backdropFilter",- "cursor",-];--const moreProperties: StyleProperty[] = [- "animationDelay",- "animationDirection",- "animationDuration",- "animationFillMode",- "animationIterationCount",- "animationName",- "animationPlayState",- "animationTimingFunction",- "transitionDelay",- "transitionDuration",- "transitionProperty",- "transitionTimingFunction",-];--const allProperties = [...properties, ...moreProperties];--export const EffectsSection = (props: RenderCategoryProps) => (- <CollapsibleSection- label="Effects"- currentStyle={props.currentStyle}- properties={allProperties}- >- {properties.map((property) => renderProperty({ ...props, property }))}- <ShowMore- styleConfigs={moreProperties.map((property) =>- renderProperty({ ...props, property })- )}- />- </CollapsibleSection>-);diff --git a/apps/builder/app/builder/features/style-panel/sections/index.ts b/apps/builder/app/builder/features/style-panel/sections/index.tsindex 323f0f8357..4a7932febb 100644--- a/apps/builder/app/builder/features/style-panel/sections/index.ts+++ b/apps/builder/app/builder/features/style-panel/sections/index.ts@@ -7,5 +7,3 @@ export * from "./position/position";export * from "./typography/typography";export * from "./backgrounds/backgrounds";export * from "./borders/borders";-export * from "./effects/effects";-export * from "./other/other";diff --git a/apps/builder/app/builder/features/style-panel/sections/other/other.tsx b/apps/builder/app/builder/features/style-panel/sections/other/other.tsxdeleted file mode 100644index 6639781921..0000000000--- a/apps/builder/app/builder/features/style-panel/sections/other/other.tsx+++ /dev/null@@ -1,33 +0,0 @@-import type { StyleProperty } from "@webstudio-is/css-data";-import type { RenderCategoryProps } from "../../style-sections";-import { renderProperty } from "../../style-sections";-import { CollapsibleSection } from "../../shared/collapsible-section";--const properties: StyleProperty[] = [- "resize",- "clip",- "visibility",- "boxSizing",- "content",- "quotes",- "counterReset",- "counterIncrement",- "inlineSize",- "blockSize",- "minInlineSize",- "minBlockSize",- "maxInlineSize",- "maxBlockSize",- "userSelect",- "pointerEvents",-];--export const OtherSection = (props: RenderCategoryProps) => (- <CollapsibleSection- label="Other"- currentStyle={props.currentStyle}- properties={properties}- >- {properties.map((property) => renderProperty({ ...props, property }))}- </CollapsibleSection>-);diff --git a/apps/builder/app/builder/features/style-panel/style-sections.tsx b/apps/builder/app/builder/features/style-panel/style-sections.tsxindex a8609ca848..659114033d 100644--- a/apps/builder/app/builder/features/style-panel/style-sections.tsx+++ b/apps/builder/app/builder/features/style-panel/style-sections.tsx@@ -20,8 +20,6 @@ import {TypographySection,BackgroundsSection,BordersSection,- EffectsSection,- OtherSection,} from "./sections";export const categories = [@@ -34,8 +32,6 @@ export const categories = ["typography","backgrounds","borders",- "effects",- "other",];export type Category = (typeof categories)[number];@@ -141,6 +137,4 @@ export const sections: {typography: TypographySection,backgrounds: BackgroundsSection,borders: BordersSection,- effects: EffectsSection,- other: OtherSection,};