From a897565575fb6abc32e500e9a798835312600ccd Mon Sep 17 00:00:00 2001 From: Daniel Sil Date: Tue, 30 Jul 2024 15:01:46 +0200 Subject: [PATCH] fixup! feat(Box): add new values for borderRadius prop and deprecate others --- .../src/Box/helpers/tailwindClasses.ts | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/packages/orbit-components/src/Box/helpers/tailwindClasses.ts b/packages/orbit-components/src/Box/helpers/tailwindClasses.ts index 2ebed943e7..d9cad00bcb 100644 --- a/packages/orbit-components/src/Box/helpers/tailwindClasses.ts +++ b/packages/orbit-components/src/Box/helpers/tailwindClasses.ts @@ -100,10 +100,10 @@ export const shadowClasses: { }; export enum BORDER_RADIUS { - SMALL = "small", - NORMAL = "normal", - LARGE = "large", - CIRCLE = "circle", + SMALL = "small", // deprecated + NORMAL = "normal", // deprecated + LARGE = "large", // deprecated + CIRCLE = "circle", // deprecated NONE = "none", FULL = "full", FIFTY = "50", @@ -116,10 +116,10 @@ export enum BORDER_RADIUS { export const borderRadiusClasses: { [K in QUERIES | BORDER_RADIUS]: K extends QUERIES ? Record : string; } = { - [BORDER_RADIUS.SMALL]: "rounded-small", - [BORDER_RADIUS.NORMAL]: "rounded-normal", - [BORDER_RADIUS.LARGE]: "rounded-large", - [BORDER_RADIUS.CIRCLE]: "rounded-full", + [BORDER_RADIUS.SMALL]: "rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "rounded-full", // deprecated [BORDER_RADIUS.NONE]: "rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "rounded-50", @@ -128,10 +128,10 @@ export const borderRadiusClasses: { [BORDER_RADIUS.THREE_HUNDRED]: "rounded-300", [BORDER_RADIUS.FOUR_HUNDRED]: "rounded-400", [QUERIES.LARGEDESKTOP]: { - [BORDER_RADIUS.SMALL]: "ld:rounded-small", - [BORDER_RADIUS.NORMAL]: "ld:rounded-normal", - [BORDER_RADIUS.LARGE]: "ld:rounded-large", - [BORDER_RADIUS.CIRCLE]: "ld:rounded-full", + [BORDER_RADIUS.SMALL]: "ld:rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "ld:rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "ld:rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "ld:rounded-full", // deprecated [BORDER_RADIUS.NONE]: "ld:rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "ld:rounded-50", @@ -141,10 +141,10 @@ export const borderRadiusClasses: { [BORDER_RADIUS.FOUR_HUNDRED]: "ld:rounded-400", }, [QUERIES.DESKTOP]: { - [BORDER_RADIUS.SMALL]: "de:rounded-small", - [BORDER_RADIUS.NORMAL]: "de:rounded-normal", - [BORDER_RADIUS.LARGE]: "de:rounded-large", - [BORDER_RADIUS.CIRCLE]: "de:rounded-full", + [BORDER_RADIUS.SMALL]: "de:rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "de:rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "de:rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "de:rounded-full", // deprecated [BORDER_RADIUS.NONE]: "de:rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "de:rounded-50", @@ -154,10 +154,10 @@ export const borderRadiusClasses: { [BORDER_RADIUS.FOUR_HUNDRED]: "de:rounded-400", }, [QUERIES.TABLET]: { - [BORDER_RADIUS.SMALL]: "tb:rounded-small", - [BORDER_RADIUS.NORMAL]: "tb:rounded-normal", - [BORDER_RADIUS.LARGE]: "tb:rounded-large", - [BORDER_RADIUS.CIRCLE]: "tb:rounded-full", + [BORDER_RADIUS.SMALL]: "tb:rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "tb:rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "tb:rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "tb:rounded-full", // deprecated [BORDER_RADIUS.NONE]: "tb:rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "tb:rounded-50", @@ -167,10 +167,10 @@ export const borderRadiusClasses: { [BORDER_RADIUS.FOUR_HUNDRED]: "tb:rounded-400", }, [QUERIES.LARGEMOBILE]: { - [BORDER_RADIUS.SMALL]: "lm:rounded-small", - [BORDER_RADIUS.NORMAL]: "lm:rounded-normal", - [BORDER_RADIUS.LARGE]: "lm:rounded-large", - [BORDER_RADIUS.CIRCLE]: "lm:rounded-full", + [BORDER_RADIUS.SMALL]: "lm:rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "lm:rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "lm:rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "lm:rounded-full", // deprecated [BORDER_RADIUS.NONE]: "lm:rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "lm:rounded-50", @@ -180,10 +180,10 @@ export const borderRadiusClasses: { [BORDER_RADIUS.FOUR_HUNDRED]: "lm:rounded-400", }, [QUERIES.MEDIUMMOBILE]: { - [BORDER_RADIUS.SMALL]: "mm:rounded-small", - [BORDER_RADIUS.NORMAL]: "mm:rounded-normal", - [BORDER_RADIUS.LARGE]: "mm:rounded-large", - [BORDER_RADIUS.CIRCLE]: "mm:rounded-full", + [BORDER_RADIUS.SMALL]: "mm:rounded-small", // deprecated + [BORDER_RADIUS.NORMAL]: "mm:rounded-normal", // deprecated + [BORDER_RADIUS.LARGE]: "mm:rounded-large", // deprecated + [BORDER_RADIUS.CIRCLE]: "mm:rounded-full", // deprecated [BORDER_RADIUS.NONE]: "mm:rounded-none", [BORDER_RADIUS.FULL]: "rounded-full", [BORDER_RADIUS.FIFTY]: "mm:rounded-50",