-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathstyleguide.config.js
54 lines (53 loc) · 1.46 KB
/
styleguide.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const path = require('path')
const glob = require('glob')
module.exports = {
require: [
...glob.sync(path.resolve(__dirname, 'build/app.*.css')),
path.resolve(__dirname, 'docs/styleguide/style.css'),
path.resolve(__dirname, 'docs/styleguide/setup.js'),
'cozy-ui/transpiled/react/stylesheet.css'
],
serverPort: 6061,
styleguideDir: 'docs/build/styleguide',
styleguideComponents: {
Wrapper: path.resolve(__dirname, 'docs/styleguide/Wrapper')
},
sections: [
{
name: 'General',
components: () => [
// 'src/components/Table/index.jsx',
'src/components/SharingIcon/SharingIcon.jsx',
'src/components/SelectDates/SelectDates.jsx',
'src/components/Select/index.jsx',
'src/components/Switch.jsx',
'src/components/PageModal/PageModal.jsx',
'src/components/KonnectorChip/index.js'
]
},
{
name: 'Banks',
components: () => [
'src/components/Figure/Figure.jsx',
'src/components/Figure/FigureBlock.jsx',
'src/ducks/balance/components/AccountRow.jsx'
]
},
{
name: 'Chart',
components: () => ['src/components/Chart/LineChart.jsx']
},
{
name: 'Balance',
components: () => ['src/ducks/balance/History.jsx']
},
{
name: 'Loading',
components: () => ['src/components/Loading/Loading.jsx']
},
{
name: 'Misc',
components: () => ['src/components/DisplayError.js']
}
]
}