-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Benjamin Perez <[email protected]>
- Loading branch information
Showing
21 changed files
with
471 additions
and
1,284 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { FC } from "react"; | ||
import { ButtonProps } from "./Button.types"; | ||
declare const Button: FC<ButtonProps>; | ||
export default Button; |
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,13 @@ | ||
import { MouseEventHandler, ReactNode } from "react"; | ||
export interface ButtonProps { | ||
id: string; | ||
name?: string; | ||
label?: string; | ||
variant?: "regular" | "callAction" | "secondary"; | ||
icon?: ReactNode; | ||
iconLocation?: "start" | "end"; | ||
fullWidth?: boolean; | ||
disabled?: boolean; | ||
collapseOnSmall?: boolean; | ||
onClick?: MouseEventHandler<HTMLButtonElement>; | ||
} |
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,4 @@ | ||
import { FC } from "react"; | ||
import { ThemeHandlerProps } from "./ThemeHandler.types"; | ||
declare const ThemeHandler: FC<ThemeHandlerProps>; | ||
export default ThemeHandler; |
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,5 @@ | ||
import { ReactNode } from "react"; | ||
export interface ThemeHandlerProps { | ||
darkMode?: boolean; | ||
children: ReactNode; | ||
} |
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,2 @@ | ||
export { default as Button } from "./Button/Button"; | ||
export { default as ThemeHandler } from "./ThemeHandler/ThemeHandler"; |
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,196 @@ | ||
export declare const lightColors: { | ||
white: string; | ||
mainGrey: string; | ||
disabledGrey: string; | ||
hoverGrey: string; | ||
pressedGrey: string; | ||
actionDisabledGrey: string; | ||
mainBlue: string; | ||
hoverBlue: string; | ||
pressedBlue: string; | ||
mainRed: string; | ||
hoverRed: string; | ||
lightRed: string; | ||
divisorColor: string; | ||
}; | ||
export declare const darkColors: { | ||
dark: string; | ||
mainGrey: string; | ||
disabledGrey: string; | ||
hoverGrey: string; | ||
borderPressedGrey: string; | ||
pressedGrey: string; | ||
mainWhite: string; | ||
disabledWhite: string; | ||
hoverWhite: string; | ||
pressedWhite: string; | ||
mainRed: string; | ||
hoverRed: string; | ||
divisorColor: string; | ||
}; | ||
export declare const lightTheme: { | ||
bgColor: string; | ||
buttons: { | ||
regular: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
callAction: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
secondary: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
export declare const darkTheme: { | ||
bgColor: string; | ||
buttons: { | ||
regular: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
callAction: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
secondary: { | ||
enabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
disabled: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
hover: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
pressed: { | ||
border: string; | ||
text: string; | ||
background: string; | ||
iconColor: string; | ||
}; | ||
}; | ||
}; | ||
}; |
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 @@ | ||
export * from "./components"; |
Oops, something went wrong.