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
fix: rename single-story exports, add sidebarWidth wrapping, improve variant coverage\n\nRename 22 single-story exports to match their title (e.g. Basic/Story/Default\n→ ComponentName) to eliminate unnecessary Storybook sidebar nesting.\n\nWrap all settings-panel and style-panel stories in theme.sizes.sidebarWidth\nfor realistic rendering width.\n\nImprove variant coverage in kbd, style-source-badge, and other stories."
Oleg Isonen8cab7763d542
diff --git a/apps/builder/app/auth/login.stories.tsx b/apps/builder/app/auth/login.stories.tsxindex 50f7b55137..c4499d81a6 100644--- a/apps/builder/app/auth/login.stories.tsx+++ b/apps/builder/app/auth/login.stories.tsx@@ -1,11 +1,11 @@import type { JSX } from "react";import type { StoryFn } from "@storybook/react";import { createBrowserRouter, RouterProvider } from "react-router-dom";-import { Login } from "./login";+import { Login as LoginComponent } from "./login";export default {title: "Auth/Login",- component: Login,+ component: LoginComponent,};const createRouter = (element: JSX.Element) =>@@ -17,9 +17,9 @@ const createRouter = (element: JSX.Element) =>},]);-export const Basic: StoryFn<typeof Login> = () => {+export const Login: StoryFn<typeof LoginComponent> = () => {const router = createRouter(- <Login isGoogleEnabled={false} isSecretLoginEnabled />+ <LoginComponent isGoogleEnabled={false} isSecretLoginEnabled />);return <RouterProvider router={router} />;};diff --git a/apps/builder/app/builder/features/blocking-alerts/alert.stories.tsx b/apps/builder/app/builder/features/blocking-alerts/alert.stories.tsxindex 9866e8a10d..a06154aa1b 100644--- a/apps/builder/app/builder/features/blocking-alerts/alert.stories.tsx+++ b/apps/builder/app/builder/features/blocking-alerts/alert.stories.tsx@@ -2,7 +2,7 @@ import { Alert } from "./alert";export default { title: "Blocking Alerts", component: Alert };-export const Basic = () => (+export const BlockingAlerts = () => (<Alertmessage={"Your browser window is too small. Resize your browser to at least 900px wide to continue building with Webstudio."diff --git a/apps/builder/app/builder/features/breakpoints/breakpoints-selector.stories.tsx b/apps/builder/app/builder/features/breakpoints/breakpoints-selector.stories.tsxindex 7c117d45c4..75bc9f740b 100644--- a/apps/builder/app/builder/features/breakpoints/breakpoints-selector.stories.tsx+++ b/apps/builder/app/builder/features/breakpoints/breakpoints-selector.stories.tsx@@ -1,10 +1,10 @@-import { BreakpointsSelector } from "./breakpoints-selector";+import { BreakpointsSelector as BreakpointsSelectorComponent } from "./breakpoints-selector";-export const Basic = () => {- return <BreakpointsSelector />;+export const BreakpointsSelector = () => {+ return <BreakpointsSelectorComponent />;};export default {title: "Breakpoints Selector",- component: Basic,+ component: BreakpointsSelector,};diff --git a/apps/builder/app/builder/features/pages/custom-metadata.stories.tsx b/apps/builder/app/builder/features/pages/custom-metadata.stories.tsxindex 81df4ca1be..85b4567932 100644--- a/apps/builder/app/builder/features/pages/custom-metadata.stories.tsx+++ b/apps/builder/app/builder/features/pages/custom-metadata.stories.tsx@@ -1,13 +1,13 @@import { Box } from "@webstudio-is/design-system";-import { CustomMetadata } from "./custom-metadata";+import { CustomMetadata as CustomMetadataComponent } from "./custom-metadata";import { useState } from "react";export default {- component: CustomMetadata,+ component: CustomMetadataComponent,title: "Pages/Custom Metadata",};-export const Basic = () => {+export const CustomMetadata = () => {const [customMetas, setCustomMetas] = useState([{property: "og:title",@@ -17,7 +17,10 @@ export const Basic = () => {return (<Box css={{ width: 448, margin: 20 }}>- <CustomMetadata customMetas={customMetas} onChange={setCustomMetas} />+ <CustomMetadataComponent+ customMetas={customMetas}+ onChange={setCustomMetas}+ /></Box>);};diff --git a/apps/builder/app/builder/features/pages/page-settings.stories.tsx b/apps/builder/app/builder/features/pages/page-settings.stories.tsxindex 99c538c291..83367c5093 100644--- a/apps/builder/app/builder/features/pages/page-settings.stories.tsx+++ b/apps/builder/app/builder/features/pages/page-settings.stories.tsx@@ -1,5 +1,5 @@import { $pages } from "~/shared/nano-states/pages";-import { PageSettings } from "./page-settings";+import { PageSettings as PageSettingsComponent } from "./page-settings";import {Grid,theme,@@ -12,7 +12,7 @@ import { isRootFolder } from "@webstudio-is/sdk";export default {title: "Pages/Page Settings",- component: PageSettings,+ component: PageSettingsComponent,parameters: {lostpixel: {// this is to fix cutting off the after scroll area in the screenshot@@ -86,7 +86,7 @@ $project.set({domainsVirtual: [],});-export const PageSettingsEdit = () => {+export const PageSettings = () => {return (<Dialog open><DialogContent>@@ -100,7 +100,7 @@ export const PageSettingsEdit = () => {borderRadius: theme.borderRadius[4],}}>- <PageSettings+ <PageSettingsComponentonClose={() => {}}onDuplicate={() => {}}onDelete={() => {}}diff --git a/apps/builder/app/builder/features/pages/search-preview.stories.tsx b/apps/builder/app/builder/features/pages/search-preview.stories.tsxindex 4fd77b600b..239d963568 100644--- a/apps/builder/app/builder/features/pages/search-preview.stories.tsx+++ b/apps/builder/app/builder/features/pages/search-preview.stories.tsx@@ -1,9 +1,9 @@import { Box } from "@webstudio-is/design-system";-import { SearchPreview } from "./search-preview";+import { SearchPreview as SearchPreviewComponent } from "./search-preview";export default {title: "Pages/Search Preview",- component: SearchPreview,+ component: SearchPreviewComponent,};const faviconDataUrl = `data:image/svg+xml,${encodeURIComponent(@@ -14,9 +14,9 @@ const faviconDataUrl = `data:image/svg+xml,${encodeURIComponent(</svg>`)}`;-export const Basic = () => (+export const SearchPreview = () => (<Box css={{ width: 600, margin: 20 }}>- <SearchPreview+ <SearchPreviewComponentpageUrl="https://webstudio.is/blog-webstudios-architecture-an-overview"titleLink="Blog: Webstudio's Architecture - an overview"siteName="Webstudio"diff --git a/apps/builder/app/builder/features/settings-panel/controls/controls.stories.tsx b/apps/builder/app/builder/features/settings-panel/controls/controls.stories.tsxindex c17af090a4..e154b6c208 100644--- a/apps/builder/app/builder/features/settings-panel/controls/controls.stories.tsx+++ b/apps/builder/app/builder/features/settings-panel/controls/controls.stories.tsx@@ -37,7 +37,7 @@ export const Controls = () => (<Flexdirection="column"gap="5"- css={{ width: 280, padding: theme.spacing[5] }}+ css={{ width: theme.sizes.sidebarWidth, padding: theme.spacing[5] }}><Section label="Boolean"><BooleanControldiff --git a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.stories.tsx b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.stories.tsxindex c0aa0c67de..0102ee2b86 100644--- a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.stories.tsx+++ b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.stories.tsx@@ -12,7 +12,13 @@ const meta = {},decorators: [(Story) => (- <div style={{ background: theme.colors.backgroundPanel, padding: 16 }}>+ <div+ style={{+ background: theme.colors.backgroundPanel,+ padding: 16,+ maxWidth: theme.sizes.sidebarWidth,+ }}+ ><Story /></div>),diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsxindex 8f0485e57b..4494e70fc0 100644--- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx+++ b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx@@ -1,7 +1,7 @@import { useState } from "react";import type { PropMeta, Instance, Prop, Asset, Page } from "@webstudio-is/sdk";-import { textVariants } from "@webstudio-is/design-system";-import { PropsSection } from "./props-section";+import { Box, Flex, textVariants, theme } from "@webstudio-is/design-system";+import { PropsSection as PropsSectionComponent } from "./props-section";import { usePropsLogic } from "./use-props-logic";import {$assets,@@ -365,7 +365,7 @@ const startingProps: Prop[] = [},];-export const Story = () => {+export const PropsSection = () => {const [props, setProps] = useState(startingProps);const handleUpdate = (prop: Prop) => {@@ -384,16 +384,18 @@ export const Story = () => {});return (- <div style={{ display: "flex", gap: 12 }}>- <div style={{ width: 240, border: "dashed 3px #e3e3e3" }}>- <PropsSection+ <Flex gap="3">+ <Box+ css={{ width: theme.sizes.sidebarWidth, border: "dashed 3px #e3e3e3" }}+ >+ <PropsSectionComponentinstanceId={instanceId}propsLogic={logic}propValues={new Map()}component="Button"selectedInstanceKey={instanceId}/>- </div>+ </Box><pre style={textVariants.mono}>{props.map(@@ -402,14 +404,13 @@ export const Story = () => {).join("\n")}</pre>- </div>+ </Flex>);};-Story.storyName = "props-panel";export default {title: "Settings Panel/Props Section",- component: Story,+ component: PropsSection,parameters: {lostpixel: {// this is to fix cutting off the after scroll area in the screenshotdiff --git a/apps/builder/app/builder/features/settings-panel/variables-section.stories.tsx b/apps/builder/app/builder/features/settings-panel/variables-section.stories.tsxindex 6f955140ee..3aef174ae5 100644--- a/apps/builder/app/builder/features/settings-panel/variables-section.stories.tsx+++ b/apps/builder/app/builder/features/settings-panel/variables-section.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react";-import { Box } from "@webstudio-is/design-system";+import { Box, theme } from "@webstudio-is/design-system";import { createDefaultPages } from "@webstudio-is/project-build";import { $pages, $instances } from "~/shared/sync/data-stores";import { $userPlanFeatures } from "~/shared/nano-states";@@ -28,7 +28,7 @@ $awareness.set({ pageId: "home", instanceSelector: ["box"] });export const VariablesSection: StoryObj = {render: () => (- <Box css={{ paddingLeft: 280 }}>+ <Box css={{ width: theme.sizes.sidebarWidth }}><VariablesSectionComponent /></Box>),diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.stories.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.stories.tsxindex ef898eb06b..991c6e3f5d 100644--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.stories.tsx@@ -8,7 +8,7 @@ import {$styles,$styleSourceSelections,} from "~/shared/nano-states";-import { Section } from "./backgrounds";+import { Section as SectionComponent } from "./backgrounds";import { $awareness } from "~/shared/awareness";const backgroundImage: StyleDecl = {@@ -51,13 +51,13 @@ $awareness.set({instanceSelector: ["box"],});-export const Backgrounds = () => (+export const Section = () => (<Box css={{ width: theme.sizes.sidebarWidth }}>- <Section />+ <SectionComponent /></Box>);export default {title: "Style Panel/Backgrounds/Section",- component: Section,+ component: SectionComponent,};diff --git a/apps/builder/app/builder/features/style-panel/sections/position/inset-control.stories.tsx b/apps/builder/app/builder/features/style-panel/sections/position/inset-control.stories.tsxindex a89313989a..db1346ee28 100644--- a/apps/builder/app/builder/features/style-panel/sections/position/inset-control.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/position/inset-control.stories.tsx@@ -1,5 +1,5 @@import type { Meta } from "@storybook/react";-import { Box } from "@webstudio-is/design-system";+import { Box, theme } from "@webstudio-is/design-system";import { getStyleDeclKey, StyleDecl } from "@webstudio-is/sdk";import { createDefaultPages } from "@webstudio-is/project-build";import { InsetControl } from "./inset-control";@@ -14,6 +14,17 @@ import {} from "~/shared/nano-states";import { $awareness } from "~/shared/awareness";+const top: StyleDecl = {+ breakpointId: "base",+ styleSourceId: "local",+ property: "top",+ value: {+ type: "unit",+ value: 0,+ unit: "px",+ },+};+const right: StyleDecl = {breakpointId: "base",styleSourceId: "local",@@ -25,6 +36,27 @@ const right: StyleDecl = {},};+const bottom: StyleDecl = {+ breakpointId: "base",+ styleSourceId: "local",+ property: "bottom",+ value: {+ type: "keyword",+ value: "auto",+ },+};++const left: StyleDecl = {+ breakpointId: "base",+ styleSourceId: "local",+ property: "left",+ value: {+ type: "unit",+ value: -20,+ unit: "%",+ },+};+registerContainers();$breakpoints.set(new Map([["base", { id: "base", label: "" }]]));$selectedBreakpointId.set("base");@@ -39,7 +71,14 @@ $styleSources.set(],]));-$styles.set(new Map([[getStyleDeclKey(right), right]]));+$styles.set(+ new Map([+ [getStyleDeclKey(top), top],+ [getStyleDeclKey(right), right],+ [getStyleDeclKey(bottom), bottom],+ [getStyleDeclKey(left), left],+ ])+);$styleSourceSelections.set(new Map([["box", { instanceId: "box", values: ["local"] }]]));@@ -54,9 +93,9 @@ $awareness.set({instanceSelector: ["box"],});-export const InsetControlComponent = () => {+export const Inset = () => {return (- <Box css={{ marginLeft: 100 }}>+ <Box css={{ width: theme.sizes.sidebarWidth }}><InsetControl /></Box>);@@ -64,5 +103,5 @@ export const InsetControlComponent = () => {export default {title: "Style Panel/Inset",- component: InsetControlComponent,-} as Meta<typeof InsetControlComponent>;+ component: Inset,+} as Meta<typeof Inset>;diff --git a/apps/builder/app/builder/features/style-panel/sections/shared/value-text.stories.tsx b/apps/builder/app/builder/features/style-panel/sections/shared/value-text.stories.tsxindex 66d2ba8ff4..07070c6a82 100644--- a/apps/builder/app/builder/features/style-panel/sections/shared/value-text.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/shared/value-text.stories.tsx@@ -1,6 +1,7 @@import type { Meta } from "@storybook/react";import { type ComponentProps, useState } from "react";import { parseCssValue } from "@webstudio-is/css-data";+import { Box, theme } from "@webstudio-is/design-system";import { SpaceLayout } from "../space/layout";import { ValueText as ValueTextComponent } from "./value-text";@@ -9,11 +10,13 @@ export const ValueText = () => {const [_hovered, setHovered] = useState<{ property: string }>();return (- <SpaceLayout- onHover={setHovered}- onClick={() => null}- renderCell={() => <ValueTextComponent {...args} />}- />+ <Box css={{ width: theme.sizes.sidebarWidth }}>+ <SpaceLayout+ onHover={setHovered}+ onClick={() => null}+ renderCell={() => <ValueTextComponent {...args} />}+ />+ </Box>);};diff --git a/apps/builder/app/builder/features/style-panel/sections/space/layout.stories.tsx b/apps/builder/app/builder/features/style-panel/sections/space/layout.stories.tsxindex 9e02a7f333..82b9f5fc90 100644--- a/apps/builder/app/builder/features/style-panel/sections/space/layout.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/space/layout.stories.tsx@@ -1,14 +1,17 @@import type { Meta } from "@storybook/react";import type * as React from "react";+import { Box, theme } from "@webstudio-is/design-system";import { SpaceLayout } from "./layout";export const Layout = (args: Omit<React.ComponentProps<typeof SpaceLayout>, "renderCell">) => (- <SpaceLayout- renderCell={() => <div style={{ color: "red" }}>·</div>}- {...args}- />+ <Box css={{ width: theme.sizes.sidebarWidth }}>+ <SpaceLayout+ renderCell={() => <div style={{ color: "red" }}>·</div>}+ {...args}+ />+ </Box>);export default {diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.stories.tsx b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.stories.tsxindex ebceda31c0..18155250de 100644--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.stories.tsx@@ -1,5 +1,5 @@import * as React from "react";-import { Flex, InputField, Text } from "@webstudio-is/design-system";+import { Flex, InputField, Text, theme } from "@webstudio-is/design-system";import type { StyleValue, CssProperty } from "@webstudio-is/css-engine";import { CssValueInput, type IntermediateStyleValue } from "./css-value-input";import { action } from "@storybook/addon-actions";@@ -76,7 +76,7 @@ const CssValueInputVariant = ({};export const CSSValueInput = () => (- <Flex direction="column" gap="5" css={{ maxWidth: 300 }}>+ <Flex direction="column" gap="5" css={{ maxWidth: theme.sizes.sidebarWidth }}><CssValueInputVariantlabel="Keywords (width)"initialValue={{ type: "keyword", value: "auto" }}diff --git a/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx b/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsxindex 3f08069023..608eecc491 100644--- a/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/show-more.stories.tsx@@ -1,17 +1,19 @@-import { Text } from "@webstudio-is/design-system";-import { ShowMore } from "./show-more";+import { Box, Text, theme } from "@webstudio-is/design-system";+import { ShowMore as ShowMoreComponent } from "./show-more";export default {title: "Style Panel/Show More",- component: ShowMore,+ component: ShowMoreComponent,};-export const WithItems = () => (- <ShowMore- styleConfigs={[- <Text key="1">First config item</Text>,- <Text key="2">Second config item</Text>,- <Text key="3">Third config item</Text>,- ]}- />+export const ShowMore = () => (+ <Box css={{ width: theme.sizes.sidebarWidth }}>+ <ShowMoreComponent+ styleConfigs={[+ <Text key="1">First config item</Text>,+ <Text key="2">Second config item</Text>,+ <Text key="3">Third config item</Text>,+ ]}+ />+ </Box>);diff --git a/apps/builder/app/builder/features/style-panel/style-source/style-source-input.stories.tsx b/apps/builder/app/builder/features/style-panel/style-source/style-source-input.stories.tsxindex feec646ac4..dca641f248 100644--- a/apps/builder/app/builder/features/style-panel/style-source/style-source-input.stories.tsx+++ b/apps/builder/app/builder/features/style-panel/style-source/style-source-input.stories.tsx@@ -1,6 +1,6 @@import { nanoid } from "nanoid";import { useState } from "react";-import { Flex, Text } from "@webstudio-is/design-system";+import { Flex, Text, theme } from "@webstudio-is/design-system";import {type ItemSelector,type ItemSource,@@ -98,12 +98,16 @@ export const StyleSourceInput = () => {]);return (- <Flex direction="column" gap="5" css={{ maxWidth: 400 }}>+ <Flex+ direction="column"+ gap="5"+ css={{ maxWidth: theme.sizes.sidebarWidth }}+ ><Flex direction="column" gap="1"><Text variant="labels">Complete (with editing & disabling)</Text><StyleSourceInputComponentinputRef={() => {}}- css={{ width: 300 }}+ css={{ width: theme.sizes.sidebarWidth }}items={getItems()}value={value}selectedItemSelector={selectedItemSelector}@@ -147,7 +151,7 @@ export const StyleSourceInput = () => {<Text variant="labels">Truncated item</Text><StyleSourceInputComponentinputRef={() => {}}- css={{ width: 300 }}+ css={{ width: theme.sizes.sidebarWidth }}items={getItems()}value={truncated}selectedItemSelector={{ styleSourceId: truncatedId }}diff --git a/apps/builder/app/builder/features/workspace/canvas-tools/outline/outline.stories.tsx b/apps/builder/app/builder/features/workspace/canvas-tools/outline/outline.stories.tsxindex 565b825b8b..8219a60a68 100644--- a/apps/builder/app/builder/features/workspace/canvas-tools/outline/outline.stories.tsx+++ b/apps/builder/app/builder/features/workspace/canvas-tools/outline/outline.stories.tsx@@ -1,12 +1,12 @@import { Box, Flex, Grid } from "@webstudio-is/design-system";-import { Outline } from "./outline";+import { Outline as OutlineComponent } from "./outline";export default {title: "Canvas Tools/Outline",- component: Outline,+ component: OutlineComponent,};-export const Basic = () => (+export const Outline = () => (<Grid gap={3} columns={2} css={{ margin: 16 }}><Gridalign="center"@@ -16,7 +16,7 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Selected outline</Box>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>@@ -30,7 +30,7 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Collaboration outline</Box>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}variant="collaboration"@@ -45,11 +45,11 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Collaboration outline over Selected</Box>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}variant="collaboration"@@ -64,12 +64,12 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Selected outline over Collaboration</Box>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}variant="collaboration"/>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>@@ -83,7 +83,7 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Clamped left</Box>- <Outline+ <OutlineComponentrect={new DOMRect(-10, 0, 150, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>@@ -97,7 +97,7 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Clamped right</Box>- <Outline+ <OutlineComponentrect={new DOMRect(0, 0, 160, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>@@ -111,7 +111,7 @@ export const Basic = () => (<Box css={{ width: "min-content", textAlign: "center" }}>Clamped left-right</Box>- <Outline+ <OutlineComponentrect={new DOMRect(-10, 0, 170, 150)}clampingRect={new DOMRect(0, 0, 150, 150)}/>diff --git a/apps/builder/app/builder/shared/css-editor/css-editor.stories.tsx b/apps/builder/app/builder/shared/css-editor/css-editor.stories.tsxindex ef58fda39c..9c4c63386a 100644--- a/apps/builder/app/builder/shared/css-editor/css-editor.stories.tsx+++ b/apps/builder/app/builder/shared/css-editor/css-editor.stories.tsx@@ -1,7 +1,7 @@import { CssEditor as CssEditorComponent } from "./css-editor";import type { ComputedStyleDecl } from "~/shared/style-object-model";-export const CssEditor = () => {+export const CSSEditor = () => {const declarations = [["background-image",@@ -36,5 +36,5 @@ export const CssEditor = () => {export default {title: "Style Panel/CSS Editor",- component: CssEditor,+ component: CSSEditor,};diff --git a/packages/css-engine/src/core/css-engine.stories.tsx b/packages/css-engine/src/core/css-engine.stories.tsxindex e889cc5c50..b1ad80a1e8 100644--- a/packages/css-engine/src/core/css-engine.stories.tsx+++ b/packages/css-engine/src/core/css-engine.stories.tsx@@ -8,7 +8,7 @@ export default {const mediaRuleOptions0 = { minWidth: 0 } as const;const mediaId = "0";-export const Basic = () => {+export const CSSEngine = () => {const sheet = createRegularStyleSheet();sheet.addMediaRule(mediaId, mediaRuleOptions0);const rule = sheet.addNestingRule(".test");diff --git a/packages/design-system/src/components/css-value-list-item.stories.tsx b/packages/design-system/src/components/css-value-list-item.stories.tsxindex d3dc14b4ae..f1a94c8ca2 100644--- a/packages/design-system/src/components/css-value-list-item.stories.tsx+++ b/packages/design-system/src/components/css-value-list-item.stories.tsx@@ -84,7 +84,7 @@ const ListItem = (props: {);};-export const Declarative = (props: {+export const CSSValueListItem = (props: {hidden: boolean;focused: boolean;labelColor: "default";@@ -237,4 +237,3 @@ export const Declarative = (props: {</Panel>);};-Declarative.storyName = "CSS Value List Item";diff --git a/packages/design-system/src/components/icon-button.stories.tsx b/packages/design-system/src/components/icon-button.stories.tsxindex df8ab588c9..c7b6957906 100644--- a/packages/design-system/src/components/icon-button.stories.tsx+++ b/packages/design-system/src/components/icon-button.stories.tsx@@ -1,83 +1,83 @@import type { StoryFn } from "@storybook/react";import { XIcon } from "@webstudio-is/icons";import { Flex } from "./flex";-import { IconButton } from "./icon-button";+import { IconButton as IconButtonComponent } from "./icon-button";export default {title: "Icon Button",- component: IconButton,+ component: IconButtonComponent,};-export const Default: StoryFn<typeof IconButton> = () => {+export const IconButton: StoryFn<typeof IconButtonComponent> = () => {return (<Flex direction="column" gap={2}><Flex gap={2}>- <IconButton>+ <IconButtonComponent><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="preset">+ </IconButtonComponent>+ <IconButtonComponent variant="preset"><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="local">+ </IconButtonComponent>+ <IconButtonComponent variant="local"><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="overwritten">+ </IconButtonComponent>+ <IconButtonComponent variant="overwritten"><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="remote">+ </IconButtonComponent>+ <IconButtonComponent variant="remote"><XIcon fill="currentColor" />- </IconButton>+ </IconButtonComponent></Flex><Flex gap={2}>- <IconButton disabled={true}>+ <IconButtonComponent disabled={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="preset" disabled={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="preset" disabled={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="local" disabled={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="local" disabled={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="overwritten" disabled={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="overwritten" disabled={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="remote" disabled={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="remote" disabled={true}><XIcon fill="currentColor" />- </IconButton>+ </IconButtonComponent></Flex><Flex gap={2}>- <IconButton data-state={"open"}>+ <IconButtonComponent data-state={"open"}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="preset" data-state={"open"}>+ </IconButtonComponent>+ <IconButtonComponent variant="preset" data-state={"open"}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="local" data-state={"open"}>+ </IconButtonComponent>+ <IconButtonComponent variant="local" data-state={"open"}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="overwritten" data-state={"open"}>+ </IconButtonComponent>+ <IconButtonComponent variant="overwritten" data-state={"open"}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="remote" data-state={"open"}>+ </IconButtonComponent>+ <IconButtonComponent variant="remote" data-state={"open"}><XIcon fill="currentColor" />- </IconButton>+ </IconButtonComponent></Flex><Flex gap={2}>- <IconButton data-focused={true}>+ <IconButtonComponent data-focused={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="preset" data-focused={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="preset" data-focused={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="local" data-focused={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="local" data-focused={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="overwritten" data-focused={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="overwritten" data-focused={true}><XIcon fill="currentColor" />- </IconButton>- <IconButton variant="remote" data-focused={true}>+ </IconButtonComponent>+ <IconButtonComponent variant="remote" data-focused={true}><XIcon fill="currentColor" />- </IconButton>+ </IconButtonComponent></Flex></Flex>);diff --git a/packages/design-system/src/components/primitives/create-content-controller.stories.tsx b/packages/design-system/src/components/primitives/create-content-controller.stories.tsxindex 6998f25889..55c1869419 100644--- a/packages/design-system/src/components/primitives/create-content-controller.stories.tsx+++ b/packages/design-system/src/components/primitives/create-content-controller.stories.tsx@@ -64,7 +64,9 @@ const ExampleContentController = () => {);};-export const DetectInput = Object.assign(ExampleContentController.bind({}));+export const CreateContentController = Object.assign(+ ExampleContentController.bind({})+);export default {title: "Primitives/Create Content Controller",diff --git a/packages/design-system/src/components/primitives/numeric-gesture-control.stories.tsx b/packages/design-system/src/components/primitives/numeric-gesture-control.stories.tsxindex 1e8e62d022..283d03d6de 100644--- a/packages/design-system/src/components/primitives/numeric-gesture-control.stories.tsx+++ b/packages/design-system/src/components/primitives/numeric-gesture-control.stories.tsx@@ -53,7 +53,7 @@ const Input = ({return <input defaultValue={value} ref={ref} />;};-export const NumericInput = Object.assign(Input.bind({}), {+export const NumericGestureControl = Object.assign(Input.bind({}), {args: { value: 0, direction: "horizontal", acceleration: 1 },});diff --git a/packages/design-system/src/components/scroll-area.stories.tsx b/packages/design-system/src/components/scroll-area.stories.tsxindex 2d64eb583d..f6ee240530 100644--- a/packages/design-system/src/components/scroll-area.stories.tsx+++ b/packages/design-system/src/components/scroll-area.stories.tsx@@ -1,12 +1,12 @@import { StorySection } from "./storybook";-import { ScrollArea } from "./scroll-area";+import { ScrollArea as ScrollAreaComponent } from "./scroll-area";import { theme } from "..";export default {title: "Scroll Area",};-export const Story = () => {+export const ScrollArea = () => {const content = (<div style={{ height: 1000, width: 1000 }}>{Array.from(new Array(100))@@ -24,19 +24,18 @@ export const Story = () => {return (<><StorySection title="Vertical">- <ScrollArea css={css}>{content}</ScrollArea>+ <ScrollAreaComponent css={css}>{content}</ScrollAreaComponent></StorySection><StorySection title="Horizontal">- <ScrollArea css={css} direction="horizontal">+ <ScrollAreaComponent css={css} direction="horizontal">{content}- </ScrollArea>+ </ScrollAreaComponent></StorySection><StorySection title="Both">- <ScrollArea css={css} direction="both">+ <ScrollAreaComponent css={css} direction="both">{content}- </ScrollArea>+ </ScrollAreaComponent></StorySection></>);};-Story.storyName = "Scroll Area";diff --git a/packages/design-system/src/components/toast.stories.tsx b/packages/design-system/src/components/toast.stories.tsxindex 1d2433c3a6..aca884568f 100644--- a/packages/design-system/src/components/toast.stories.tsx+++ b/packages/design-system/src/components/toast.stories.tsx@@ -1,4 +1,4 @@-import { Toast } from "./toast";+import { Toast as ToastComponent } from "./toast";import { StorySection, StoryGrid } from "./storybook";import { Image } from "@webstudio-is/image";import { Box } from "./box";@@ -34,97 +34,104 @@ const ImageIcon = () => (</Box>);-export const Design = () => {+export const Toast = () => {return (<><StorySection title="Toast Design"><StoryGrid>- <Toast>1. We are what repeatedly do.</Toast>+ <ToastComponent>1. We are what repeatedly do.</ToastComponent>- <Toast>+ <ToastComponent>2. We are what repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast>+ <ToastComponent>3. We are what repeatedly do. We are what repeatedly do. Excellenceis not an act but a habit.- </Toast>+ </ToastComponent>- <Toast>+ <ToastComponent>3. We are what repeatedly do. We are what repeatedly do. Excellenceis not an act but a habit. We are what- </Toast>+ </ToastComponent>- <Toast>+ <ToastComponent>4. We are what repeatedly do. We are what repeatedly do. We are whatrepeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast>+ <ToastComponent>5. We are what repeatedly do. We are what repeatedly do. We are whatrepeatedly do. We are what repeatedly do. Excellence is not an actbut a habit.- </Toast>+ </ToastComponent>- <Toast>+ <ToastComponent>6. We are what repeatedly do. We are what repeatedly do. We are whatrepeatedly do. We are what repeatedly do. We are what repeatedly do.Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast variant="warning">+ <ToastComponent variant="warning">We are what repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast variant="error">+ <ToastComponent variant="error">We are what repeatedly do. Excellence is not an act but a habit. Weare what repeatedly do. Excellence is not an act but a habit. We arewhat repeatedly do. Excellence is not an act but a habit.- </Toast>- <Toast variant="success">+ </ToastComponent>+ <ToastComponent variant="success">We are what repeatedly do. Excellence is not an act but a habit. Weare what repeatedly do. Excellence is not an act but a habit. We arewhat repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent></StoryGrid></StorySection><StorySection title="Toast With Icon Design"><StoryGrid>- <Toast icon={<AlertCircleIcon size={24} />}>+ <ToastComponent icon={<AlertCircleIcon size={24} />}>We are what repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast icon={<AlertCircleIcon size={24} />} variant="warning">+ <ToastComponent+ icon={<AlertCircleIcon size={24} />}+ variant="warning"+ >We are what repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast icon={<AlertCircleIcon size={24} />} variant="error">+ <ToastComponent icon={<AlertCircleIcon size={24} />} variant="error">We are what repeatedly do. Excellence is not an act but a habit. Weare what repeatedly do. Excellence is not an act but a habit. We arewhat repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast variant="success" icon={<AlertCircleIcon size={24} />}>+ <ToastComponent+ variant="success"+ icon={<AlertCircleIcon size={24} />}+ >We are what repeatedly do. Excellence is not an act but a habit. Weare what repeatedly do. Excellence is not an act but a habit. We arewhat repeatedly do. Excellence is not an act but a habit.- </Toast>+ </ToastComponent>- <Toast icon={<ImageIcon />}>Asset already exists</Toast>+ <ToastComponent icon={<ImageIcon />}>+ Asset already exists+ </ToastComponent></StoryGrid></StorySection><StorySection title="Very long Toast"><StoryGrid>- <Toast icon={<AlertCircleIcon size={24} />}>+ <ToastComponent icon={<AlertCircleIcon size={24} />}>{"We are what repeatedly do. Excellence is not an act but a habit.".repeat(100)}- </Toast>+ </ToastComponent></StoryGrid></StorySection></>);};-Design.storyName = "Toast Design";