Skip to content

Commit 65546aa

Browse files
authored
Merge pull request #2 from danielvianna/freshstart
Freshstart
2 parents 8cef509 + 823b270 commit 65546aa

File tree

380 files changed

+40484
-31648
lines changed

Some content is hidden

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

380 files changed

+40484
-31648
lines changed

.DS_Store

6 KB
Binary file not shown.

.eslintignore

-5
This file was deleted.

.eslintrc.js

-97
This file was deleted.

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
node_modules
2-
dist
3-
storybook-static

.prettierrc.js

-11
This file was deleted.

.storybook/.DS_Store

6 KB
Binary file not shown.

.storybook/main.js

+10-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
module.exports = {
2-
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3-
addons: [
4-
'@storybook/addon-links',
5-
'@storybook/addon-essentials',
6-
'@storybook/addon-a11y',
7-
{
8-
name: '@storybook/addon-docs',
9-
options: {
10-
configureJSX: true
11-
}
12-
},
13-
'@storybook/addon-controls',
14-
'./webpack.config.preset.js'
15-
],
16-
core: { builder: 'webpack5' },
17-
typescript: {
18-
check: true,
19-
reactDocgen: 'react-docgen-typescript'
20-
}
21-
};
22-
23-
2+
"stories": [
3+
"../components/**/*.stories.@(js|mdx|jsx|ts|tsx)"
4+
],
5+
"addons": [
6+
"@storybook/addon-links",
7+
"@storybook/addon-essentials",
8+
"@storybook/addon-a11y",
9+
'storybook-addon-designs'
10+
]
11+
}

.storybook/manager-head.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
<style>
3+
4+
.css-21d5zu span:first-of-type * {
5+
color: white;
6+
}
7+
8+
.sidebar-container * {
9+
font-size: 1rem!important;
10+
}
11+
12+
</style>

.storybook/manager.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// .storybook/manager.js
2+
3+
import { addons } from '@storybook/addons';
4+
import storybooktheme from './storybooktheme';
5+
6+
addons.setConfig({
7+
theme: storybooktheme,
8+
sidebar: {
9+
showRoots: false,
10+
collapsedRoots: ['other'],
11+
},
12+
});

.storybook/preview.js

+14-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
import React from 'react';
2-
3-
import { MuiCustomThemeProvider } from '../src/mui-custom/ThemeProvider';
4-
51
export const parameters = {
6-
actions: { argTypesRegex: '^on[A-Z].*' },
7-
controls: {
8-
matchers: {
9-
color: /(background|color)$/i,
10-
date: /Date$/
11-
}
2+
actions: { argTypesRegex: "^on[A-Z].*" },
3+
layout: 'centered',
4+
previewTabs: {
5+
'storybook/docs/panel': {
6+
hidden: true
127
}
13-
};
8+
},
9+
controls: {
10+
matchers: {
11+
color: /(background|color)$/i,
12+
date: /Date$/,
13+
},
14+
},
15+
}
16+
1417

15-
export const decorators = [
16-
(Story) => {
17-
return (
18-
<MuiCustomThemeProvider>
19-
<Story />
20-
</MuiCustomThemeProvider>
21-
);
22-
}
23-
];

.storybook/storybooktheme.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// .storybook/YourTheme.js
2+
3+
import { create } from '@storybook/theming';
4+
5+
export default create({
6+
base: 'light',
7+
8+
colorPrimary: 'black',
9+
colorSecondary: 'black',
10+
11+
// UI
12+
appBg: 'white',
13+
appContentBg: 'white',
14+
appBorderColor: 'grey',
15+
appBorderRadius: 4,
16+
17+
// Typography
18+
fontBase: '"system-ui", sans-serif',
19+
fontCode: 'monospace',
20+
21+
// Text colors
22+
textColor: 'black',
23+
// textInverseColor: 'white',
24+
// textMutedColor: 'black',
25+
26+
// Toolbar default and active colors
27+
barTextColor: 'black',
28+
barSelectedColor: 'black',
29+
barBg: 'white',
30+
31+
// Form colors
32+
inputBg: 'white',
33+
inputBorder: 'black',
34+
inputTextColor: 'black',
35+
inputBorderRadius: 4,
36+
37+
brandTitle: 'UX Framework',
38+
// brandUrl: 'put the git url here',
39+
// brandImage: 'https://place-hold.it/350x150',
40+
41+
});

.storybook/webpack.config.preset.js

-43
This file was deleted.

README.md

-13
This file was deleted.

0 commit comments

Comments
 (0)