From ee0e2eae83ef0bd97510c2441ee8ae2cad72e8d6 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 12:53:40 +0530 Subject: [PATCH 1/2] fix: sizes scale should not have negative tokens --- packages/react/src/types.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts index 5b80e98f..daf8e4b9 100644 --- a/packages/react/src/types.ts +++ b/packages/react/src/types.ts @@ -888,14 +888,12 @@ export type ExtendRNStyle = GenericComponentStyles[key]; type WithSizeNegativeValue = keyof Tokens extends 'sizes' - ? WithNegativeValue< - //@ts-expect-error - | StringifyToken + ? //@ts-expect-error + | StringifyToken //@ts-expect-error | StringifyToken - > : //@ts-expect-error - WithNegativeValue>; + StringifyToken; export type TokenizedRNStyleProps< GenericComponentStyles, From 6d35eba774acd927787a70a0e5865b14a0378069 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 13:04:28 +0530 Subject: [PATCH 2/2] fix: _experimentalNestedProvider optional --- packages/react/src/StyledProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/StyledProvider.tsx b/packages/react/src/StyledProvider.tsx index e65697ac..3006403c 100644 --- a/packages/react/src/StyledProvider.tsx +++ b/packages/react/src/StyledProvider.tsx @@ -43,7 +43,7 @@ export const StyledProvider: React.FC<{ colorMode?: COLORMODES; children?: React.ReactNode; globalStyles?: any; - _experimentalNestedProvider: boolean; + _experimentalNestedProvider?: boolean; }> = ({ config, colorMode,