Skip to content

Commit ae4a98a

Browse files
committed
Initial commit
0 parents  commit ae4a98a

32 files changed

+45268
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.storybook/main.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
"stories": [
3+
"../src/**/**/*.stories.mdx",
4+
"../src/**/**/*.stories.@(js|jsx|ts|tsx)"
5+
],
6+
"addons": [
7+
"@storybook/addon-links",
8+
"@storybook/addon-essentials",
9+
"@storybook/addon-interactions"
10+
],
11+
"framework": "@storybook/react"
12+
}

.storybook/preview.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
}

babel.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
presets: [
3+
'@babel/preset-env',
4+
'@babel/preset-typescript',
5+
'@babel/react',
6+
],
7+
};

dist/cjs/index.js

+57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FC } from 'react';
2+
import { ButtonProps } from "./Button.types";
3+
declare const Button: FC<ButtonProps>;
4+
export default Button;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { MouseEventHandler } from "react";
2+
export interface ButtonProps {
3+
text?: string;
4+
primary?: boolean;
5+
disabled?: boolean;
6+
size?: "small" | "medium" | "large";
7+
onClick?: MouseEventHandler<HTMLButtonElement>;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FC } from 'react';
2+
import { InputProps } from "./Input.types";
3+
declare const Input: FC<InputProps>;
4+
export default Input;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ChangeEventHandler } from "react";
2+
export interface InputProps {
3+
id?: string;
4+
label?: string;
5+
error?: boolean;
6+
message?: string;
7+
success?: boolean;
8+
disabled?: boolean;
9+
placeholder?: string;
10+
onChange?: ChangeEventHandler<HTMLInputElement>;
11+
}

dist/cjs/types/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Button from './components/Button/Button';
2+
import Input from './components/Input/Input';
3+
export { Button, Input };

0 commit comments

Comments
 (0)