-
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.
- Loading branch information
Showing
17 changed files
with
2,032 additions
and
473 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import React, { FC } from "react"; | ||
import { ButtonProps } from "./Button.types"; | ||
declare const Button: FC<ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>>; | ||
declare const Button: FC< | ||
ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> | ||
>; | ||
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
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>; | ||
children?: ReactNode | string; | ||
id: string; | ||
name?: string; | ||
label?: string; | ||
variant?: "regular" | "callAction" | "secondary"; | ||
icon?: ReactNode; | ||
iconLocation?: "start" | "end"; | ||
fullWidth?: boolean; | ||
disabled?: boolean; | ||
collapseOnSmall?: boolean; | ||
onClick?: MouseEventHandler<HTMLButtonElement>; | ||
children?: ReactNode | string; | ||
} | ||
export interface ConstructProps { | ||
parentChildren: ReactNode | string | undefined; | ||
parentChildren: ReactNode | string | undefined; | ||
} |
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,2 +1,5 @@ | ||
declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>; | ||
declare const GlobalStyles: import("styled-components").GlobalStyleComponent< | ||
{}, | ||
import("styled-components").DefaultTheme | ||
>; | ||
export default GlobalStyles; |
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,5 +1,5 @@ | ||
import { ReactNode } from "react"; | ||
export interface ThemeHandlerProps { | ||
darkMode?: boolean; | ||
children: ReactNode; | ||
darkMode?: boolean; | ||
children: ReactNode; | ||
} |
Oops, something went wrong.