Skip to content

Commit

Permalink
yet another overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
South-Paw committed Nov 4, 2020
1 parent 3001bcf commit 34436a0
Show file tree
Hide file tree
Showing 142 changed files with 1,207 additions and 3,764 deletions.
32 changes: 13 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,22 @@
"project": "./tsconfig.json"
},
"rules": {
"import/named": "off",
"@typescript-eslint/no-empty-interface": "off",
// "@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
// "@typescript-eslint/indent": "off",
"@typescript-eslint/no-explicit-any": "off",
// "@typescript-eslint/quotes": "off",
// "import/named": "off",
"import/no-cycle": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "never"
}
],
"import/prefer-default-export": "off",
"jsx-a11y/accessible-emoji": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/quotes": "off"
// "no-console": "off",
// "no-underscore-dangle": "off",
// "react/jsx-curly-newline": "off",
// "react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off"
// "react/jsx-wrap-multilines": "off"
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
stories: ['../src/**/*.stories.@(tsx|mdx)'],
addons: ['@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-actions'],
addons: ['@storybook/addon-essentials'],
};
16 changes: 14 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import { addDecorator } from '@storybook/react';
import React from 'react';
import { SpicyProvider } from '../src';
import { Box, injectGlobalStyles, ThemeProvider } from '../src';

addDecorator((storyFn) => <SpicyProvider>{storyFn()}</SpicyProvider>);
const { GlobalStyle } = injectGlobalStyles();

addDecorator((storyFn) => (
<ThemeProvider>
<GlobalStyle />
<Box p={4}>{storyFn()}</Box>
</ThemeProvider>
));

export const parameters = {
controls: { expanded: true },
layout: 'fullscreen',
};
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spicy-ui/core",
"version": "0.0.1-alpha.8",
"version": "0.0.1-alpha.9",
"description": "A React component library to spice up your UI",
"keywords": [
"react",
Expand Down Expand Up @@ -68,10 +68,8 @@
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@storybook/addon-actions": "^6.0.27",
"@storybook/addon-docs": "^6.0.27",
"@storybook/addon-knobs": "^6.0.27",
"@storybook/react": "^6.0.27",
"@storybook/addon-essentials": "^6.0.28",
"@storybook/react": "^6.0.28",
"@types/jest": "^26.0.15",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'styled-components';
import { theme } from '../../theme';

import { System } from '../../src/system';

type ThemeInterface = System;
type ThemeInterface = typeof theme;

declare module 'styled-components' {
export interface DefaultTheme extends ThemeInterface {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-shadow, @typescript-eslint/naming-convention */

declare module '@styled-system/should-forward-prop' {
// Fix: didn't support number type prop arg
type genericShouldForwardProp = (prop: string | number) => boolean;

export const props: string[];
Expand Down
31 changes: 0 additions & 31 deletions src/Avatar/Avatar.stories.tsx

This file was deleted.

72 changes: 0 additions & 72 deletions src/Avatar/Avatar.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/Avatar/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/Box/Box.stories.tsx

This file was deleted.

58 changes: 0 additions & 58 deletions src/Box/Box.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/Box/__test__/Box.spec.tsx

This file was deleted.

99 changes: 0 additions & 99 deletions src/Button/Button.stories.tsx

This file was deleted.

Loading

0 comments on commit 34436a0

Please sign in to comment.