File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,26 @@ import { CommonStyledProps } from '../types';
66type FrameProps = {
77 children ?: React . ReactNode ;
88 shadow ?: boolean ;
9- variant ?: 'outside' | 'field' | 'inside' | 'well' ;
10- } & React . HTMLAttributes < HTMLDivElement > &
9+ } & (
10+ | {
11+ variant ?: 'window' | 'button' | 'field' | 'status' ;
12+ }
13+ | {
14+ /** @deprecated Use 'window', 'button' or 'status' */
15+ variant ?: 'outside' | 'inside' | 'well' ;
16+ }
17+ ) &
18+ React . HTMLAttributes < HTMLDivElement > &
1119 CommonStyledProps ;
1220
1321const createFrameStyles = ( variant : FrameProps [ 'variant' ] ) => {
1422 switch ( variant ) {
23+ case 'status' :
1524 case 'well' :
1625 return css `
1726 ${ createBorderStyles ( { style : 'status' } ) }
1827 ` ;
28+ case 'window' :
1929 case 'outside' :
2030 return css `
2131 ${ createBorderStyles ( { style : 'window' } ) }
You can’t perform that action at this time.
0 commit comments