Skip to content

Commit e3c0338

Browse files
WesSouzaarturbien
authored andcommitted
refactor(frame): update variants to align with guideline
1 parent 746e9c0 commit e3c0338

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Frame/Frame.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,26 @@ import { CommonStyledProps } from '../types';
66
type 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

1321
const 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' })}

0 commit comments

Comments
 (0)