-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81e6afc
commit efa0621
Showing
26 changed files
with
401 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,14 @@ | ||
import { FontSize, Rounded } from '../core'; | ||
import { StyledObject } from 'styled-components'; | ||
|
||
type InputSizes = 's' | 'md' | 'lg'; | ||
|
||
type InputSizeParams = { | ||
text: FontSize; | ||
}; | ||
|
||
// TODO: missing paddings | ||
type InputTheme = { | ||
color: string; | ||
bg: string; | ||
rounded: Rounded; | ||
placeholder: string; | ||
hover: { | ||
border: string; | ||
}; | ||
focus: { | ||
border: string; | ||
boxShadow: string; | ||
}; | ||
error: { | ||
color: string; | ||
border: string; | ||
}; | ||
disabled: { | ||
color: string; | ||
bg: string; | ||
border: string; | ||
}; | ||
size: Record<InputSizes, InputSizeParams>; | ||
base: StyledObject<object>; | ||
hover: StyledObject<object>; | ||
focus: StyledObject<object>; | ||
error: StyledObject<object>; | ||
disabled: StyledObject<object>; | ||
size: Record<InputSizes, StyledObject<object>>; | ||
}; | ||
|
||
export type { InputTheme, InputSizes }; | ||
export type { InputSizes, InputTheme }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { StyledObject } from 'styled-components/dist/types'; | ||
|
||
type SpinnerSizes = 'xs' | 's' | 'md' | 'lg' | 'xl' | '2xl' | '3xl'; | ||
|
||
type SpinnerColors = 'default' | 'primary'; | ||
|
||
type SpinnerColorsParams = StyledObject<object>; | ||
|
||
type SpinnerTheme = { | ||
size: Record<SpinnerSizes, StyledObject<object>>; | ||
color: Record<SpinnerColors, SpinnerColorsParams>; | ||
}; | ||
|
||
export type { SpinnerColors, SpinnerSizes, SpinnerTheme }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.