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 unused variants from Button
Roman Pominov8664c3180335
diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsxindex 32171f8d8c..6850f28d17 100644--- a/packages/design-system/src/components/button.tsx+++ b/packages/design-system/src/components/button.tsx@@ -101,27 +101,6 @@ export const Button = styled("button", {boxShadow: "inset 0 0 0 1.5px $colors$blue8",},},- green: {- backgroundColor: "$green2",- boxShadow: "inset 0 0 0 1px $colors$green7",- color: "$green11",- "@hover": {- "&:hover": {- boxShadow: "inset 0 0 0 1px $colors$green8",- },- },- "&:active": {- backgroundColor: "$green3",- boxShadow: "inset 0 0 0 1px $colors$green8",- },- "&:focus": {- boxShadow: "inset 0 0 0 1px $colors$green8, 0 0 0 1px $colors$green8",- },- '&[data-state="open"]': {- backgroundColor: "$green4",- boxShadow: "inset 0 0 0 1px $colors$green8",- },- },red: {backgroundColor: "$loContrast",boxShadow: "inset 0 0 0 1px $colors$red10",@@ -144,22 +123,6 @@ export const Button = styled("button", {boxShadow: "inset 0 0 0 1px $colors$red8",},},- transparentWhite: {- backgroundColor: "hsla(0,100%,100%,.2)",- color: "white",- "@hover": {- "&:hover": {- backgroundColor: "hsla(0,100%,100%,.25)",- },- },- "&:active": {- backgroundColor: "hsla(0,100%,100%,.3)",- },- "&:focus": {- boxShadow:- "inset 0 0 0 1px hsla(0,100%,100%,.35), 0 0 0 1px hsla(0,100%,100%,.35)",- },- },raw: {background: "transparent",color: "inherit",@@ -167,59 +130,6 @@ export const Button = styled("button", {borderRadius: 0,height: "auto",},- transparentBlack: {- backgroundColor: "hsla(0,0%,0%,.2)",- color: "black",- "@hover": {- "&:hover": {- backgroundColor: "hsla(0,0%,0%,.25)",- },- },- "&:active": {- backgroundColor: "hsla(0,0%,0%,.3)",- },- "&:focus": {- boxShadow:- "inset 0 0 0 1px hsla(0,0%,0%,.35), 0 0 0 1px hsla(0,0%,0%,.35)",- },- },- },- state: {- active: {- backgroundColor: "$slate4",- boxShadow: "inset 0 0 0 1px $colors$slate8",- color: "$slate11",- "@hover": {- "&:hover": {- backgroundColor: "$slate6",- boxShadow: "inset 0 0 0 1px $colors$slate8",- },- },- "&:active": {- backgroundColor: "$slate6",- },- "&:focus": {- boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",- },- },- waiting: {- backgroundColor: "$slate4",- boxShadow: "inset 0 0 0 1px $colors$slate8",- color: "transparent",- pointerEvents: "none",- "@hover": {- "&:hover": {- backgroundColor: "$slate6",- boxShadow: "inset 0 0 0 1px $colors$slate8",- },- },- "&:active": {- backgroundColor: "$slate6",- },- "&:focus": {- boxShadow: "inset 0 0 0 1px $colors$slate8",- },- },},ghost: {true: {@@ -278,30 +188,6 @@ export const Button = styled("button", {},},},- {- variant: "green",- ghost: "true",- css: {- backgroundColor: "transparent",- "@hover": {- "&:hover": {- backgroundColor: "$greenA3",- boxShadow: "none",- },- },- "&:active": {- backgroundColor: "$greenA4",- },- "&:focus": {- boxShadow:- "inset 0 0 0 1px $colors$greenA8, 0 0 0 1px $colors$greenA8",- },- '&[data-state="open"]': {- backgroundColor: "$greenA4",- boxShadow: "none",- },- },- },{variant: "red",ghost: "true",