From d31d82ba3cac73e3445634ba97be8b1f010b111c Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Fri, 1 Dec 2023 14:09:32 +0300 Subject: [PATCH] packages/ui: fix Grid props types --- packages/ui/grid.ts | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/packages/ui/grid.ts b/packages/ui/grid.ts index 9c00fbb..748b147 100644 --- a/packages/ui/grid.ts +++ b/packages/ui/grid.ts @@ -10,33 +10,8 @@ type WithArrayType = { [K in keyof T]: Array | T[K]; }; -type GridSelectedProps = Pick< - HTMLDivElement['style'], - | 'alignItems' - | 'columnGap' - | 'gap' - | 'grid' - | 'gridArea' - | 'gridAutoColumns' - | 'gridAutoFlow' - | 'gridAutoRows' - | 'gridColumn' - | 'gridColumnEnd' - | 'gridColumnStart' - | 'gridRow' - | 'gridRowEnd' - | 'gridRowStart' - | 'gridTemplate' - | 'gridTemplateAreas' - | 'gridTemplateColumns' - | 'gridTemplateRows' - | 'justifyContent' - | 'justifyItems' - | 'placeContent' - | 'placeItems' - | 'rowGap' ->; -export type GridProps = Partial> & PropsWithChildren; +type AllowedProps = Omit; +export type GridProps = Partial> & PropsWithChildren; export const Grid = styled.div` display: grid;