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
Deprecate label component (#810)
Bogdan Chadkinca6bdb34a90a
diff --git a/apps/designer/app/designer/features/props-panel/control.tsx b/apps/designer/app/designer/features/props-panel/control.tsxindex ae077f93f1..ea47191d69 100644--- a/apps/designer/app/designer/features/props-panel/control.tsx+++ b/apps/designer/app/designer/features/props-panel/control.tsx@@ -6,7 +6,7 @@ import {import warnOnce from "warn-once";import {Flex,- Label,+ DeprecatedLabel,Radio,RadioGroup,Select,@@ -71,7 +71,7 @@ const CheckboxControl = ({{options.map((option) => (<Flex align="center" gap="1" key={option}><Checkbox value={option} />- <Label>{option}</Label>+ <DeprecatedLabel>{option}</DeprecatedLabel></Flex>))}</RadioGroup>@@ -102,7 +102,7 @@ const RadioControl = ({{options.map((value) => (<Flex align="center" gap="1" key={value}><Radio value={value} id={value} />- <Label htmlFor={value}>{value}</Label>+ <DeprecatedLabel htmlFor={value}>{value}</DeprecatedLabel></Flex>))}</RadioGroup>diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsxindex c26ed46cff..7ee6e64531 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx@@ -2,7 +2,7 @@ import {DeprecatedIconButton,Button,Box,- Label,+ DeprecatedLabel,TextArea,TextField,styled,@@ -83,7 +83,7 @@ const FormFields = ({return (<><Group>- <Label htmlFor={fieldIds.name}>Page Name</Label>+ <DeprecatedLabel htmlFor={fieldIds.name}>Page Name</DeprecatedLabel><InputErrorsTooltip errors={fieldErrors.name}><TextFieldtabIndex={1}@@ -103,7 +103,7 @@ const FormFields = ({</Group>{isHomePage !== true && (<Group>- <Label htmlFor={fieldIds.path}>Path</Label>+ <DeprecatedLabel htmlFor={fieldIds.path}>Path</DeprecatedLabel><InputErrorsTooltip errors={fieldErrors.path}><TextFieldtabIndex={1}@@ -121,7 +121,7 @@ const FormFields = ({</Group>)}<Group>- <Label htmlFor={fieldIds.title}>Title</Label>+ <DeprecatedLabel htmlFor={fieldIds.title}>Title</DeprecatedLabel><InputErrorsTooltip errors={fieldErrors.title}><TextFieldtabIndex={1}@@ -138,7 +138,9 @@ const FormFields = ({</InputErrorsTooltip></Group><Group>- <Label htmlFor={fieldIds.description}>Description</Label>+ <DeprecatedLabel htmlFor={fieldIds.description}>+ Description+ </DeprecatedLabel><InputErrorsTooltip errors={fieldErrors.description}><TextAreatabIndex={1}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 d52bca4a54..2e696f5b0b 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@@ -7,7 +7,7 @@ import {Flex,Box,Text,- Label,+ DeprecatedLabel,Tooltip,Popover,PopoverContent,@@ -146,7 +146,7 @@ export const PropertyName = ({(styleSource === "local" || styleSource === "remote");const labelElement = (- <Label+ <DeprecatedLabelcss={{fontWeight: "inherit",padding: `calc(${theme.spacing[3]} / 2) ${theme.spacing[3]}`,@@ -166,7 +166,7 @@ export const PropertyName = ({htmlFor={property.toString()}>{label}- </Label>+ </DeprecatedLabel>);if (isPopoverEnabled) {diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsxindex a2efa2eb9e..7612420d61 100644--- a/apps/designer/app/designer/features/topbar/publish.tsx+++ b/apps/designer/app/designer/features/topbar/publish.tsx@@ -6,7 +6,7 @@ import {Button,DeprecatedButton,Flex,- Label,+ DeprecatedLabel,Link,Popover,PopoverContent,@@ -69,7 +69,7 @@ const Content = ({ project }: PublishButtonProps) => {)}<Flex gap="2" align="center"><input type="hidden" name="projectId" value={project.id} />- <Label htmlFor={id}>Domain:</Label>+ <DeprecatedLabel htmlFor={id}>Domain:</DeprecatedLabel><TextField id={id} name="domain" defaultValue={domain} /></Flex>{fetcher.data?.errors !== undefined && (diff --git a/apps/designer/app/designer/shared/design-tokens-manager/token-editor.tsx b/apps/designer/app/designer/shared/design-tokens-manager/token-editor.tsxindex 19f9b89a42..79a39afd72 100644--- a/apps/designer/app/designer/shared/design-tokens-manager/token-editor.tsx+++ b/apps/designer/app/designer/shared/design-tokens-manager/token-editor.tsx@@ -4,7 +4,7 @@ import {Button,Flex,InputErrorsTooltip,- Label,+ DeprecatedLabel,Popover,PopoverContent,PopoverHeader,@@ -166,14 +166,14 @@ export const TokenEditor = ({gap="2"css={{ padding: theme.spacing[7] }}>- <Label htmlFor="name">Name</Label>+ <DeprecatedLabel htmlFor="name">Name</DeprecatedLabel><InputErrorsTooltiperrors={getErrors("name", validationResult)}css={{ zIndex: theme.zIndices[2] }}><TextField id="name" name="name" defaultValue={token?.name} /></InputErrorsTooltip>- <Label htmlFor="value">Value</Label>+ <DeprecatedLabel htmlFor="value">Value</DeprecatedLabel><InputErrorsTooltiperrors={getErrors("value", validationResult)}css={{ zIndex: theme.zIndices[2] }}@@ -184,7 +184,9 @@ export const TokenEditor = ({defaultValue={token?.value}/></InputErrorsTooltip>- <Label htmlFor="description">Description</Label>+ <DeprecatedLabel htmlFor="description">+ Description+ </DeprecatedLabel><TextAreaid="description"name="description"diff --git a/packages/design-system/src/components/label.tsx b/packages/design-system/src/components/__DEPRECATED__/label.tsxsimilarity index 51%rename from packages/design-system/src/components/label.tsxrename to packages/design-system/src/components/__DEPRECATED__/label.tsxindex 37cca25602..fb0d264fe9 100644--- a/packages/design-system/src/components/label.tsx+++ b/packages/design-system/src/components/__DEPRECATED__/label.tsx@@ -1,8 +1,8 @@-import { styled } from "../stitches.config";+import { styled } from "../../stitches.config";import * as LabelPrimitive from "@radix-ui/react-label";-import { Text } from "./text";+import { Text } from "../text";-export const Label = styled(LabelPrimitive.Root, Text, {+export const DeprecatedLabel = styled(LabelPrimitive.Root, Text, {display: "inline-block",verticalAlign: "middle",cursor: "default",diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.tsindex e5a8d5c7e6..69a46f8368 100644--- a/packages/design-system/src/index.ts+++ b/packages/design-system/src/index.ts@@ -5,7 +5,7 @@ export * as Collapsible from "@radix-ui/react-collapsible";export { AccessibleIcon } from "@radix-ui/react-accessible-icon";export * as Portal from "@radix-ui/react-portal";export * from "@radix-ui/react-id";-export { Label } from "./components/label";+export { DeprecatedLabel } from "./components/__DEPRECATED__/label";export * from "./components/toggle-group";export * from "./components/progress-radial";export * from "./components/select";