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.

Merge branch 'main' into feature-style-panel

Sultan8e676870a1c3
diff --cc apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index d42f7164f0,66b042b0b0..9a311eff0c
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@@ -53,16 -58,13 +58,19 @@@ export const CollapsibleSection = (
cursor: "default",
}}
>
- <Text size="1" css={{ fontWeight: "500", flexGrow: 1 }}>
- {isOpenFinal ? <ChevronDownIcon /> : <ChevronRightIcon />}
+ <__DEPRECATED__Text
+ size="1"
+ css={{ fontWeight: "500", flexGrow: 1 }}
+ >
{label}
- </Text>
+ </__DEPRECATED__Text>
+ <Flex
+ align="center"
+ justify="center"
+ css={{ marginRight: -5, opacity: ".4" }}
+ >
+ {isOpenFinal ? <ChevronLeftIcon /> : <ChevronRightIcon />}
+ </Flex>
{rightSlot}
</Flex>
</Collapsible.Trigger>
diff --cc apps/designer/docs/test-cases.md
index b3b30d8289,8904eeca3c..477b264dd3
--- a/apps/designer/docs/test-cases.md
+++ b/apps/designer/docs/test-cases.md
@@@ -99,13 -111,30 +111,41 @@@
- Navigator is now not shown
- New tab was added that lets you open navigator
+ 1. Navigator keyboard interactions
+
+ - Move focus to the navigator by clicking on a tree item
+ - Check that pressing `arrow up` and `arrow down` changes the selected item
+ - Check that you can expand and collapse the selected item using `arrow right`, `arrow left`, and `spacebar`
+ - Check that pressing `delete` or `backspace` deletes the selected item
+
+ 1. Navigator drag&drop
+
+ - Drag a tree item and put the cursor between some tree items
+ - check that a line appeared between the tree items
+ - check that after you drop, the dragged item moves between the tree items
+ - Drag a tree item over an empty `Box` item,
+ - check that an outline appears around the `Box` item,
+ - check that when you drop, the dragged item moves inside the `Box` item
+ - Drag a tree item over a non-empty but collapsed `Box` item
+ - check that the `Box` item expands automatically when you hold over it
+ - check that if you drop before it expands, the dragged item moves inside the `Box`, and becomes the last child
+ - Drag a tree item over a `Heading` item, check that it doesn't allow you to drop inside a `Heading`
+ - Make some text inside a `Heading` "bold" so that the `Heading` item in the tree gets a child item `Bold Text`
+ - check that you cannot drag the `Bold Text` item
+ - Start dragging a tree item but do not move the cursor vertically
+ - check that by moving horizontally you're able to change how deeply the item is nested inside the tree
+ - Drag an item between some tree items
+ - check that moving the cursor horizontally allows you to change the depth of the placement indicator line
+ - check that after you drop, the dragged item moves to the correct depth
+ - Check that after a drag&drop the dragged item is the selected item
++
+1. Flex panel
+
+ - Select an instance
+ - Select "flexbox" as the selected display option.
+ - Check if clicking a flex property icon opens a dropdown.
+ - Check if all flexbox states are computable through the icons seletables.
+ - Check if all flexbox states are computable through the grid.
+ - Check if gap inputs work.
+ - Check if tooltips are present on all icons(including gap input icons).
+ - Check that tooltips have a first time interaction delay.
diff --cc packages/design-system/src/components/tabs.tsx
index 29be80aad5,8d44f9b796..fc37963a28
--- a/packages/design-system/src/components/tabs.tsx
+++ b/packages/design-system/src/components/tabs.tsx
@@@ -28,10 -28,10 +28,10 @@@ export const TabsTrigger = styled(TabsP
["&:first-child"]: {
paddingLeft: "$3",
},
- [`& > ${Text}`]: {
+ [`& > ${__DEPRECATED__Text}`]: {
color: "$gray9",
- fontSize: "11px",
- fontWeight: "600",
+ fontSize: "$fontSizes$1",
+ fontWeight: "500",
},
"@hover": {
"&:hover": {
diff --cc packages/design-system/src/index.ts
index 08604c978b,ca6450bef9..e52918b6e1
--- a/packages/design-system/src/index.ts
+++ b/packages/design-system/src/index.ts
@@@ -62,6 -61,7 +61,9 @@@ export * from "./components/combobox"
export * from "./components/checkbox";
export * from "./components/avatar";
export * from "./components/primitives/dnd";
+export * from "./components/icon-button-with-menu";
+export * from "./components/primitives/numeric-gesture-control";
export * from "./components/separator";
+ export * from "./components/tree";
+ export * from "./components/__DEPRECATED__/text";
+ export * from "./components/text";
diff --cc packages/design-system/src/stitches.config.ts
index 1434eae082,dabe8501c4..f019f40877
--- a/packages/design-system/src/stitches.config.ts
+++ b/packages/design-system/src/stitches.config.ts
@@@ -476,7 -472,9 +477,8 @@@ export const darkTheme = createTheme(
transparentPanel: "hsl(0 100% 100% / 97%)",
shadowLight: "hsl(206 22% 7% / 35%)",
shadowDark: "hsl(206 22% 7% / 20%)",
-
background: "$slate12",
text: "$slate1",
+ dropPlacement: "$blue9",
},
});
diff --cc packages/react-sdk/src/components/index.test.ts
index 0000000000,a2e3fd8cb3..a3b863d31f
mode 000000,100644..100644
--- a/packages/react-sdk/src/components/index.test.ts
+++ b/packages/react-sdk/src/components/index.test.ts
@@@ -1,0 -1,9 +1,12 @@@
+ import * as components from "./index";
+ import { WsComponentMetaSchema } from "./component-type";
+
-test.each(Object.entries(components))("validating meta definition of %s", (name, component) => {
- if (name === "default") {
- return;
++test.each(Object.entries(components))(
++ "validating meta definition of %s",
++ (name, component) => {
++ if (name === "default") {
++ return;
++ }
++ WsComponentMetaSchema.parse(component);
+ }
- WsComponentMetaSchema.parse(component);
-});
++);