import { spanLookup, spanMdLookup, spanLgLookup, alignSelfLookup, alignSelfMdLookup, alignSelfLgLookup, widthLookup, widthMdLookup, widthLgLookup, spanXlLookup, alignSelfXlLookup, widthXlLookup, } from '../theme'; import { getClassName, memo } from '../utils'; import { cn } from '../libs'; import { ComponentPropsWithRef, forwardRef, Ref } from 'react'; import { Responsive } from '../types/ui'; export type Span = keyof typeof spanLookup; export type AlignSelf = keyof typeof alignSelfLookup; export type Width = keyof typeof widthLookup; export interface GridItemProps extends ComponentPropsWithRef<'div'> { hide?: boolean | Responsive; span?: Span | Responsive; alignSelf?: AlignSelf | Responsive; width?: Width | Responsive; } const Component = ({ hide, span, alignSelf, width, className, ...rest }: GridItemProps, ref: Ref) => { const h = hide as any; const s = span as any; const as = alignSelf as any; const w = width as any; return (
); }; export const GridItem = memo(forwardRef(Component));