Skip to content

Commit 183f563

Browse files
committed
feat: initial commit
0 parents  commit 183f563

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+8476
-0
lines changed

.eslintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": ["airbnb", "airbnb-typescript", "prettier"],
3+
"plugins": ["prettier", "storybook"],
4+
"parserOptions": {
5+
"project": "./tsconfig.json"
6+
},
7+
"rules": {
8+
"react/no-children-prop": 0,
9+
"react/react-in-jsx-scope": 0,
10+
"react/require-default-props": 0,
11+
"import/prefer-default-export": 0,
12+
"react/jsx-props-no-spreading": 0,
13+
"import/no-extraneous-dependencies": 0,
14+
"jsx-a11y/label-has-associated-control": 0
15+
}
16+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected]
12+
13+
- name: Install and build docs 🔧
14+
run: |
15+
yarn
16+
yarn run lint
17+
yarn run docs
18+
19+
- name: Deploy 🚀
20+
uses: JamesIves/[email protected]
21+
with:
22+
branch: gh-pages
23+
folder: docs

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to Npm
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected]
12+
13+
- name: Install 🔧
14+
run: yarn
15+
16+
- name: Publish 🚀
17+
uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
dist
2+
docs
3+
*storybook.log
4+
5+
# Yarn #
6+
#################
7+
.yarn/*
8+
!.yarn/releases
9+
!.yarn/plugins
10+
!.yarn/sdks
11+
!.yarn/versions
12+
13+
# Node specific #
14+
#################
15+
*.tgz
16+
.node_repl_history
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
logs
22+
*.log
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.yarn-integrity
27+
node_modules
28+
29+
# IDE generated files #
30+
#######################
31+
.idea
32+
.settings
33+
.vscode
34+
*.sublime-*
35+
36+
# OS generated files #
37+
######################
38+
.DS_Store
39+
.DS_Store?
40+
._*
41+
.Spotlight-V100
42+
.Trashes
43+
Icon?
44+
ehthumbs.db
45+
Thumbs.db
46+
Desktop.ini

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit "$1"

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 110,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"arrowParens": "avoid",
6+
"endOfLine": "auto",
7+
"semi": true,
8+
"parser": "typescript"
9+
}

.storybook/main.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import type { StorybookConfig } from '@storybook/react-vite';
2+
import tsconfigPaths from 'vite-tsconfig-paths';
3+
4+
const config: StorybookConfig = {
5+
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
6+
addons: ['@storybook/addon-controls', '@storybook/addon-actions', '@storybook/addon-docs'],
7+
framework: {
8+
name: '@storybook/react-vite',
9+
options: {},
10+
},
11+
core: {
12+
disableTelemetry: true,
13+
enableCrashReports: false,
14+
disableWhatsNewNotifications: true,
15+
},
16+
typescript: {
17+
reactDocgen: 'react-docgen-typescript',
18+
},
19+
viteFinal: async config => {
20+
const { mergeConfig } = await import('vite');
21+
return mergeConfig(config, {
22+
plugins: [tsconfigPaths()],
23+
});
24+
},
25+
};
26+
27+
export default config;

.storybook/manager.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { addons } from '@storybook/manager-api';
2+
import theme from './theme';
3+
4+
addons.setConfig({
5+
theme: theme,
6+
showToolbar: false,
7+
});

.storybook/preview.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#storybook-root, .sb-story {
2+
color: #C9CDCF;
3+
}
4+
button {
5+
color: #1B1C1D;
6+
background-color: #C9CDCF;
7+
}

.storybook/preview.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import type { Preview } from '@storybook/react';
2+
import theme from './theme';
3+
import './preview.css';
4+
5+
const preview: Preview = {
6+
parameters: {
7+
docs: {
8+
theme: theme,
9+
},
10+
darkMode: {
11+
current: 'dark',
12+
},
13+
options: {
14+
storySort: {
15+
order: [
16+
'Intro',
17+
'Examples',
18+
['Basic Transition', 'Fade Transition', ['Inline Styles']],
19+
'Components',
20+
['Transition', 'StyleTransition', 'CSSTransition'],
21+
],
22+
},
23+
},
24+
},
25+
};
26+
27+
export default preview;

0 commit comments

Comments
 (0)