Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freshstart #2

Merged
merged 24 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

97 changes: 0 additions & 97 deletions .eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
dist
storybook-static
11 changes: 0 additions & 11 deletions .prettierrc.js

This file was deleted.

Binary file added .storybook/.DS_Store
Binary file not shown.
32 changes: 10 additions & 22 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-a11y',
{
name: '@storybook/addon-docs',
options: {
configureJSX: true
}
},
'@storybook/addon-controls',
'./webpack.config.preset.js'
],
core: { builder: 'webpack5' },
typescript: {
check: true,
reactDocgen: 'react-docgen-typescript'
}
};


"stories": [
"../components/**/*.stories.@(js|mdx|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-a11y",
'storybook-addon-designs'
]
}
12 changes: 12 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

<style>

.css-21d5zu span:first-of-type * {
color: white;
}

.sidebar-container * {
font-size: 1rem!important;
}

</style>
12 changes: 12 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// .storybook/manager.js

import { addons } from '@storybook/addons';
import storybooktheme from './storybooktheme';

addons.setConfig({
theme: storybooktheme,
sidebar: {
showRoots: false,
collapsedRoots: ['other'],
},
});
34 changes: 14 additions & 20 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
import React from 'react';

import { MuiCustomThemeProvider } from '../src/mui-custom/ThemeProvider';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
}
actions: { argTypesRegex: "^on[A-Z].*" },
layout: 'centered',
previewTabs: {
'storybook/docs/panel': {
hidden: true
}
};
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}


export const decorators = [
(Story) => {
return (
<MuiCustomThemeProvider>
<Story />
</MuiCustomThemeProvider>
);
}
];
41 changes: 41 additions & 0 deletions .storybook/storybooktheme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// .storybook/YourTheme.js

import { create } from '@storybook/theming';

export default create({
base: 'light',

colorPrimary: 'black',
colorSecondary: 'black',

// UI
appBg: 'white',
appContentBg: 'white',
appBorderColor: 'grey',
appBorderRadius: 4,

// Typography
fontBase: '"system-ui", sans-serif',
fontCode: 'monospace',

// Text colors
textColor: 'black',
// textInverseColor: 'white',
// textMutedColor: 'black',

// Toolbar default and active colors
barTextColor: 'black',
barSelectedColor: 'black',
barBg: 'white',

// Form colors
inputBg: 'white',
inputBorder: 'black',
inputTextColor: 'black',
inputBorderRadius: 4,

brandTitle: 'UX Framework',
// brandUrl: 'put the git url here',
// brandImage: 'https://place-hold.it/350x150',

});
43 changes: 0 additions & 43 deletions .storybook/webpack.config.preset.js

This file was deleted.

13 changes: 0 additions & 13 deletions README.md

This file was deleted.

Loading