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
some amendments to types
Sultanea0e2e3c7b3e
diff --git a/apps/designer/app/designer/features/props-panel/props-panel.tsx b/apps/designer/app/designer/features/props-panel/props-panel.tsxindex 74a599f36b..c16157cf18 100644--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx@@ -62,7 +62,7 @@ const Property = ({value={prop}itemToString={(item) => item ?? ""}onItemSelect={(value) => {- onChange(id, "prop", value);+ onChange(id, "prop", value as string);}}renderTextField={({ inputProps, toggleProps }) => (<ComboboxTextFielddiff --git a/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx b/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsxindex d804f2b549..41399f4df6 100644--- a/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx+++ b/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx@@ -62,7 +62,6 @@ const styles = {display: "block",background: "transparent",color: "$hiContrast",- zIndex: 99,margin: "auto",// @todo need to fit more charswidth: 40,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.tsxindex 4f8c38079b..b60de2eaf7 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@@ -56,7 +56,6 @@ export const PropertyIcon = forwardRef<<IconButton{...props}ref={forwardRef}- variant="ghost"size="1"css={{marginLeft: "calc(-$space$1 + 1px)",diff --git a/apps/designer/app/designer/features/style-panel/style-sections.tsx b/apps/designer/app/designer/features/style-panel/style-sections.tsxindex 8b7947ba4a..d2ea47e381 100644--- a/apps/designer/app/designer/features/style-panel/style-sections.tsx+++ b/apps/designer/app/designer/features/style-panel/style-sections.tsx@@ -37,7 +37,9 @@ export type RenderCategoryProps = {setProperty: SetProperty;createBatchUpdate: CreateBatchUpdate;currentStyle: Style;- sectionStyle: Style;+ sectionStyle: {+ [Property in keyof Style]-?: RenderPropertyProps;+ };inheritedStyle: InheritedStyle;category: Category;styleConfigsByCategory: Array<RenderPropertyProps>;diff --git a/apps/designer/app/designer/features/style-panel/style-settings.tsx b/apps/designer/app/designer/features/style-panel/style-settings.tsxindex 83cba01833..10889df162 100644--- a/apps/designer/app/designer/features/style-panel/style-settings.tsx+++ b/apps/designer/app/designer/features/style-panel/style-settings.tsx@@ -8,7 +8,11 @@ import {import { type StyleConfig, styleConfigs } from "./shared/configs";import { CollapsibleSection } from "~/designer/shared/inspector";-import { renderCategory, shouldRenderCategory } from "./style-sections";+import {+ renderCategory,+ RenderCategoryProps,+ shouldRenderCategory,+} from "./style-sections";import { dependencies } from "./shared/dependencies";import { type InheritedStyle } from "./shared/get-inherited-style";import {@@ -68,7 +72,7 @@ const didRender = (category: Category, { property }: StyleConfig): boolean => {return false;};-type StyleSettingsProps = {+export type StyleSettingsProps = {currentStyle: Style;inheritedStyle: InheritedStyle;cssRule?: CssRule;@@ -95,7 +99,7 @@ export const StyleSettings = ({search);const { moreFrom } = categories[category];- const sectionStyle: Style = {};+ const sectionStyle = {} as RenderCategoryProps["sectionStyle"];const styleConfigsByCategory: Array<RenderPropertyProps> = [];const moreStyleConfigsByCategory: Array<RenderPropertyProps> = [];