@@ -5,7 +5,7 @@ import { Cell, type CellProps } from '../Cell';
55
66export type { CellProps } from '../Cell' ;
77
8- export type CellGroupVariant = 'primary' | 'secondary' | 'tertiary' ;
8+ export type CellGroupVariant = 'primary' | 'secondary' ;
99
1010export interface CellGroupProps {
1111 cells : CellProps [ ] ;
@@ -21,13 +21,10 @@ export const CellGroup: React.FC<CellGroupProps> = ({
2121} ) => (
2222 < Card
2323 className = { cn (
24- 'min-w-0 border-0' ,
24+ 'min-w-0 border-0 p-0 gap-4 md:gap-x-6 ' ,
2525 variant === 'primary' &&
26- 'p-4 grid grid-cols-2 rounded-xl gap-4 sm:flex sm:flex-wrap sm:gap-0 sm:px-6 sm:py-4' ,
27- variant === 'secondary' &&
28- 'p-0 flex overflow-x-auto overflow-y-hidden scrollbar-hidden bg-transparent sm:p-0 md:p-0 xl:p-0' ,
29- variant === 'tertiary' &&
30- 'gap-2 bg-transparent p-0 grid grid-cols-2 sm:p-0 xl:bg-cards xl:flex xl:p-6 xl:flex-wrap xl:rounded-xl xl:gap-x-0' ,
26+ 'flex overflow-x-auto overflow-y-hidden scrollbar-hidden bg-transparent' ,
27+ variant === 'secondary' && 'grid grid-cols-2 xl:flex xl:flex-wrap xl:rounded-xl' ,
3128 className ,
3229 ) }
3330 { ...containerProps }
@@ -36,14 +33,7 @@ export const CellGroup: React.FC<CellGroupProps> = ({
3633 < Cell
3734 key = { `cell-group-item-${ cell . label } ` }
3835 { ...cell }
39- className = { cn (
40- 'shrink-0 xl:bg-transparent' ,
41- variant === 'primary' && 'sm:px-6 sm:first-of-type:pl-0 sm:last-of-type:pr-0' ,
42- variant === 'secondary' && 'px-4 md:px-6 first-of-type:pl-0 last-of-type:pr-0' ,
43- variant === 'tertiary' &&
44- 'bg-cards rounded-xl p-4 xl:py-0 xl:px-6 xl:rounded-none xl:first-of-type:pl-0 xl:last-of-type:pr-0' ,
45- cell . className ,
46- ) }
36+ className = { cn ( 'shrink-0 xl:bg-transparent' , cell . className ) }
4737 />
4838 ) ) }
4939 </ Card >
0 commit comments