Skip to content

Commit b87def2

Browse files
feat(framework): chakra ui
1 parent 6432b4d commit b87def2

16 files changed

+1256
-112
lines changed

.cssrem

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rootFontSize": 16,
3+
"fixedDigits": 3
4+
}
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
module.exports = {
2-
stories: [
3-
'../src/**/*.stories.mdx',
4-
'../src/**/*.stories.@(js|jsx|ts|tsx)'
5-
],
2+
stories: ['../src/**/*.stories.@(ts|tsx|mdx)'],
63
addons: [
4+
'@storybook/addon-docs',
75
'@storybook/addon-links',
86
'@storybook/addon-essentials'
97
],
108
core: {
119
builder: 'storybook-builder-vite',
1210
},
11+
typescript: {
12+
check: true
13+
}
1314
}
File renamed without changes.

.storybook/preview.js

-9
This file was deleted.

.storybook/preview.tsx

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
import React from 'react'
3+
// import {addDecorator} from '@storybook/react'
4+
// import {ChakraProvider, CSSReset} from '@chakra-ui/react'
5+
6+
// import {theme} from '../src/theme'
7+
8+
// addDecorator(storyFn => (
9+
// <ChakraProvider theme={theme}>
10+
// <CSSReset />
11+
// {storyFn()}
12+
// </ChakraProvider>
13+
// ))
14+
15+
export const parameters = {
16+
actions: { argTypesRegex: '^on[A-Z].*' },
17+
controls: {
18+
matchers: {
19+
color: /(background|color)$/i,
20+
date: /Date$/,
21+
},
22+
},
23+
}

0 commit comments

Comments
 (0)