Skip to content

Commit

Permalink
Release v0.0.1-alpha (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perez <[email protected]>
  • Loading branch information
bexsoft authored Sep 2, 2022
1 parent a74d63a commit 18528ba
Show file tree
Hide file tree
Showing 21 changed files with 471 additions and 1,284 deletions.
4 changes: 4 additions & 0 deletions dist/cjs/components/Button/Button.d.ts
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;
13 changes: 13 additions & 0 deletions dist/cjs/components/Button/Button.types.d.ts
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>;
}
4 changes: 4 additions & 0 deletions dist/cjs/components/ThemeHandler/ThemeHandler.d.ts
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;
5 changes: 5 additions & 0 deletions dist/cjs/components/ThemeHandler/ThemeHandler.types.d.ts
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;
}
2 changes: 2 additions & 0 deletions dist/cjs/components/index.d.ts
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";
196 changes: 196 additions & 0 deletions dist/cjs/global/themes.d.ts
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;
};
};
};
};
1 change: 1 addition & 0 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./components";
Loading

0 comments on commit 18528ba

Please sign in to comment.