Revert "Feat(UI): Storybook is added (#456)" (#482)

This reverts commit b27e30db5811053e66509fc0d3323329bd8cf86a.
This commit is contained in:
Ankit Nayan 2021-12-10 13:28:01 +05:30 committed by GitHub
parent 0907ed280b
commit 95fb068bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 215 additions and 5244 deletions

View File

@ -1,11 +0,0 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
],
"framework": "@storybook/react"
}

View File

@ -1,11 +0,0 @@
import '../public/css/antd.min.css';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};

View File

@ -14,9 +14,7 @@
"jest": "jest",
"jest:coverage": "jest --coverage",
"jest:watch": "jest --watch",
"bundle:size": "bundlesize",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"bundle:size": "bundlesize"
},
"engines": {
"node": ">=12.13.0"
@ -90,11 +88,6 @@
"@babel/preset-env": "^7.12.17",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.12.17",
"@storybook/addon-actions": "^6.4.7",
"@storybook/addon-essentials": "^6.4.7",
"@storybook/addon-links": "^6.4.7",
"@storybook/cli": "^6.4.7",
"@storybook/react": "^6.4.7",
"@testing-library/cypress": "^8.0.0",
"@types/compression-webpack-plugin": "^9.0.0",
"@types/copy-webpack-plugin": "^8.0.1",

View File

@ -1,21 +0,0 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
import React from 'react';
import Spinner from '../components/Spinner';
export default {
title: 'Components/Common',
component: Spinner,
} as ComponentMeta<typeof Spinner>;
const Template: ComponentStory<typeof Spinner> = (args) => (
<Spinner {...args} />
);
export const DefaultSpinner = Template.bind({});
DefaultSpinner.args = {
tip: 'Loading...',
size: 'default',
height: '40vh',
};

File diff suppressed because it is too large Load Diff