@itcase/storybook-config 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/index.js +19 -5
- package/config/storySort.js +152 -0
- package/package.json +19 -19
package/config/index.js
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import { AUTHORIZATION } from './authorization'
|
|
2
|
-
import { ADDONS_NEXTJS } from './addonsNextJs'
|
|
3
1
|
import { ADDONS_REACT } from './addonReact'
|
|
2
|
+
import { ADDONS_NEXTJS } from './addonsNextJs'
|
|
3
|
+
import { AUTHORIZATION } from './authorization'
|
|
4
|
+
import { BACKGROUNDS } from './backgrounds'
|
|
4
5
|
import { FRAMEWORK_NEXTJS } from './frameworkNextJs'
|
|
5
6
|
import { FRAMEWORK_REACT } from './frameworkReact'
|
|
6
|
-
import { BACKGROUNDS } from './backgrounds'
|
|
7
7
|
import { MAIN_CONFIG } from './mainConfig'
|
|
8
8
|
import { REFS } from './refs'
|
|
9
|
-
import { STATIC_DIRS_REACT } from './staticDirsReact'
|
|
10
9
|
import { STATIC_DIRS_NEXTJS } from './staticDirsNextJs'
|
|
10
|
+
import { STATIC_DIRS_REACT } from './staticDirsReact'
|
|
11
|
+
import { STORYSORT } from './storySort'
|
|
11
12
|
import { VIEWPORTS } from './viewports'
|
|
12
13
|
|
|
13
|
-
export {
|
|
14
|
+
export {
|
|
15
|
+
AUTHORIZATION,
|
|
16
|
+
ADDONS_NEXTJS,
|
|
17
|
+
STATIC_DIRS_REACT,
|
|
18
|
+
STATIC_DIRS_NEXTJS,
|
|
19
|
+
FRAMEWORK_NEXTJS,
|
|
20
|
+
FRAMEWORK_REACT,
|
|
21
|
+
ADDONS_REACT,
|
|
22
|
+
BACKGROUNDS,
|
|
23
|
+
MAIN_CONFIG,
|
|
24
|
+
REFS,
|
|
25
|
+
VIEWPORTS,
|
|
26
|
+
STORYSORT,
|
|
27
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
const defaultDocSort = [
|
|
2
|
+
'Introduction',
|
|
3
|
+
'Overview',
|
|
4
|
+
'Designer',
|
|
5
|
+
'Developer',
|
|
6
|
+
'Properties',
|
|
7
|
+
'Accessibility',
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
const defaultSortFirst = [
|
|
11
|
+
'Regular',
|
|
12
|
+
'All or Nothing',
|
|
13
|
+
'Mix',
|
|
14
|
+
'Tile',
|
|
15
|
+
'List',
|
|
16
|
+
'Item',
|
|
17
|
+
'Detail',
|
|
18
|
+
'Desktop',
|
|
19
|
+
'Mobile',
|
|
20
|
+
'Before',
|
|
21
|
+
'Header',
|
|
22
|
+
'Content',
|
|
23
|
+
'Item',
|
|
24
|
+
'Image',
|
|
25
|
+
'Data',
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
const defaultStateSort = ['Data', 'Verify', 'Error', 'Success']
|
|
29
|
+
|
|
30
|
+
const defaultFormSort = [
|
|
31
|
+
'Default',
|
|
32
|
+
'Require',
|
|
33
|
+
'Validation',
|
|
34
|
+
'Error',
|
|
35
|
+
'Submit Error',
|
|
36
|
+
'Success',
|
|
37
|
+
'Loading',
|
|
38
|
+
'Response',
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
const defaultSortLast = ['Footer', 'After']
|
|
42
|
+
|
|
43
|
+
const STORYSORT = {
|
|
44
|
+
storySort: {
|
|
45
|
+
includeNames: true,
|
|
46
|
+
order: [
|
|
47
|
+
'*',
|
|
48
|
+
'Components',
|
|
49
|
+
[
|
|
50
|
+
...defaultDocSort,
|
|
51
|
+
...defaultSortFirst,
|
|
52
|
+
'*',
|
|
53
|
+
...defaultSortLast,
|
|
54
|
+
[
|
|
55
|
+
...defaultDocSort,
|
|
56
|
+
...defaultSortFirst,
|
|
57
|
+
'*',
|
|
58
|
+
...defaultSortLast,
|
|
59
|
+
[
|
|
60
|
+
...defaultDocSort,
|
|
61
|
+
...defaultSortFirst,
|
|
62
|
+
'*',
|
|
63
|
+
...defaultSortLast,
|
|
64
|
+
[
|
|
65
|
+
...defaultDocSort,
|
|
66
|
+
...defaultSortFirst,
|
|
67
|
+
'*',
|
|
68
|
+
...defaultSortLast,
|
|
69
|
+
[
|
|
70
|
+
...defaultDocSort,
|
|
71
|
+
...defaultSortFirst,
|
|
72
|
+
'*',
|
|
73
|
+
...defaultSortLast,
|
|
74
|
+
[...defaultDocSort, ...defaultSortFirst, '*', ...defaultSortLast],
|
|
75
|
+
[
|
|
76
|
+
'First',
|
|
77
|
+
'First Bet',
|
|
78
|
+
'Bet',
|
|
79
|
+
'New Offer',
|
|
80
|
+
'Wait',
|
|
81
|
+
'Finished',
|
|
82
|
+
'Stopped',
|
|
83
|
+
'Canceled',
|
|
84
|
+
'Need Confirm',
|
|
85
|
+
'Confirmed',
|
|
86
|
+
'Refused',
|
|
87
|
+
'*',
|
|
88
|
+
],
|
|
89
|
+
'*',
|
|
90
|
+
...defaultSortLast,
|
|
91
|
+
],
|
|
92
|
+
],
|
|
93
|
+
],
|
|
94
|
+
],
|
|
95
|
+
],
|
|
96
|
+
'Page Blocks',
|
|
97
|
+
[
|
|
98
|
+
...defaultDocSort,
|
|
99
|
+
...defaultSortFirst,
|
|
100
|
+
...defaultStateSort,
|
|
101
|
+
'*',
|
|
102
|
+
...defaultSortLast,
|
|
103
|
+
[
|
|
104
|
+
...defaultDocSort,
|
|
105
|
+
...defaultSortFirst,
|
|
106
|
+
...defaultStateSort,
|
|
107
|
+
'*',
|
|
108
|
+
...defaultSortLast,
|
|
109
|
+
[
|
|
110
|
+
...defaultDocSort,
|
|
111
|
+
...defaultSortFirst,
|
|
112
|
+
...defaultStateSort,
|
|
113
|
+
'*',
|
|
114
|
+
...defaultSortLast,
|
|
115
|
+
[...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
|
|
116
|
+
],
|
|
117
|
+
],
|
|
118
|
+
],
|
|
119
|
+
'Page Components',
|
|
120
|
+
[
|
|
121
|
+
...defaultDocSort,
|
|
122
|
+
...defaultSortFirst,
|
|
123
|
+
...defaultStateSort,
|
|
124
|
+
'*',
|
|
125
|
+
...defaultSortLast,
|
|
126
|
+
[
|
|
127
|
+
...defaultDocSort,
|
|
128
|
+
...defaultSortFirst,
|
|
129
|
+
...defaultStateSort,
|
|
130
|
+
'*',
|
|
131
|
+
...defaultSortLast,
|
|
132
|
+
[
|
|
133
|
+
...defaultDocSort,
|
|
134
|
+
...defaultSortFirst,
|
|
135
|
+
...defaultStateSort,
|
|
136
|
+
'*',
|
|
137
|
+
...defaultSortLast,
|
|
138
|
+
[...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
|
|
139
|
+
],
|
|
140
|
+
],
|
|
141
|
+
],
|
|
142
|
+
'Pages',
|
|
143
|
+
[...defaultDocSort, '*'],
|
|
144
|
+
'Forms',
|
|
145
|
+
[...defaultDocSort, ...defaultFormSort, '*'],
|
|
146
|
+
'Email',
|
|
147
|
+
[...defaultDocSort, '*'],
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { STORYSORT }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -32,23 +32,24 @@
|
|
|
32
32
|
"workerDirectory": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@itcase/config": "^1.0.3",
|
|
35
36
|
"@itcase/storybook-addon-auth": "^1.0.4",
|
|
36
|
-
"@storybook/addon-actions": "^8.5.
|
|
37
|
-
"@storybook/addon-controls": "^8.5.
|
|
38
|
-
"@storybook/addon-essentials": "^8.5.
|
|
39
|
-
"@storybook/addon-interactions": "^8.5.
|
|
40
|
-
"@storybook/addon-links": "^8.5.
|
|
37
|
+
"@storybook/addon-actions": "^8.5.3",
|
|
38
|
+
"@storybook/addon-controls": "^8.5.3",
|
|
39
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
40
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
41
|
+
"@storybook/addon-links": "^8.5.3",
|
|
41
42
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
42
|
-
"@storybook/addon-themes": "^8.5.
|
|
43
|
-
"@storybook/addon-viewport": "^8.5.
|
|
43
|
+
"@storybook/addon-themes": "^8.5.3",
|
|
44
|
+
"@storybook/addon-viewport": "^8.5.3",
|
|
44
45
|
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
45
|
-
"@storybook/blocks": "^8.5.
|
|
46
|
-
"@storybook/manager-api": "^8.5.
|
|
47
|
-
"@storybook/nextjs": "^8.5.
|
|
48
|
-
"@storybook/preview-api": "^8.5.
|
|
49
|
-
"@storybook/react": "^8.5.
|
|
50
|
-
"@storybook/react-webpack5": "^8.5.
|
|
51
|
-
"@storybook/theming": "^8.5.
|
|
46
|
+
"@storybook/blocks": "^8.5.3",
|
|
47
|
+
"@storybook/manager-api": "^8.5.3",
|
|
48
|
+
"@storybook/nextjs": "^8.5.3",
|
|
49
|
+
"@storybook/preview-api": "^8.5.3",
|
|
50
|
+
"@storybook/react": "^8.5.3",
|
|
51
|
+
"@storybook/react-webpack5": "^8.5.3",
|
|
52
|
+
"@storybook/theming": "^8.5.3",
|
|
52
53
|
"http-proxy-middleware": "^3.0.3",
|
|
53
54
|
"msw": "^2.7.0",
|
|
54
55
|
"msw-storybook-addon": "^2.0.4",
|
|
@@ -56,8 +57,8 @@
|
|
|
56
57
|
"react-docgen-typescript-plugin": "^1.0.8"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@commitlint/cli": "^19.
|
|
60
|
-
"@commitlint/config-conventional": "^19.
|
|
60
|
+
"@commitlint/cli": "^19.7.1",
|
|
61
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
61
62
|
"@itcase/common": "^1.2.17",
|
|
62
63
|
"@itcase/lint": "^1.0.38",
|
|
63
64
|
"@itcase/ui": "^1.3.24",
|
|
@@ -68,10 +69,9 @@
|
|
|
68
69
|
"eslint": "9.19.0",
|
|
69
70
|
"husky": "^9.1.7",
|
|
70
71
|
"lint-staged": "^15.4.3",
|
|
71
|
-
"msw-storybook-addon": "^2.0.4",
|
|
72
72
|
"prettier": "^3.4.2",
|
|
73
73
|
"semantic-release": "^24.2.1",
|
|
74
|
-
"storybook": "^8.5.
|
|
74
|
+
"storybook": "^8.5.3",
|
|
75
75
|
"stylelint": "^16.14.1",
|
|
76
76
|
"typescript": "^5.7.3"
|
|
77
77
|
}
|