@itcase/storybook-config 1.0.35 → 1.0.36

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.
@@ -43,14 +43,26 @@ const defaultFormSort = [
43
43
 
44
44
  const defaultSortLast = ['Footer', 'After']
45
45
 
46
- const STORYSORT = {
47
- storySort: {
48
- order: [
46
+ const STORYSORT = [
47
+ '*',
48
+ 'Tokens',
49
+ 'API',
50
+ 'Components',
51
+ [
52
+ ...defaultDocSort,
53
+ ...defaultSortFirst,
54
+ '*',
55
+ ...defaultSortLast,
56
+ [
57
+ ...defaultDocSort,
58
+ ...defaultSortFirst,
49
59
  '*',
60
+ ...defaultSortLast,
50
61
  [
51
- 'Tokens',
52
- 'API',
53
- 'Components',
62
+ ...defaultDocSort,
63
+ ...defaultSortFirst,
64
+ '*',
65
+ ...defaultSortLast,
54
66
  [
55
67
  ...defaultDocSort,
56
68
  ...defaultSortFirst,
@@ -61,143 +73,105 @@ const STORYSORT = {
61
73
  ...defaultSortFirst,
62
74
  '*',
63
75
  ...defaultSortLast,
76
+ [...defaultDocSort, ...defaultSortFirst, '*', ...defaultSortLast],
64
77
  [
65
- ...defaultDocSort,
66
- ...defaultSortFirst,
78
+ 'First',
79
+ 'First Bet',
80
+ 'Bet',
81
+ 'New Offer',
82
+ 'Wait',
83
+ 'Finished',
84
+ 'Stopped',
85
+ 'Canceled',
86
+ 'Need Confirm',
87
+ 'Confirmed',
88
+ 'Refused',
67
89
  '*',
68
- ...defaultSortLast,
69
- [
70
- ...defaultDocSort,
71
- ...defaultSortFirst,
72
- '*',
73
- ...defaultSortLast,
74
- [
75
- ...defaultDocSort,
76
- ...defaultSortFirst,
77
- '*',
78
- ...defaultSortLast,
79
- [...defaultDocSort, ...defaultSortFirst, '*', ...defaultSortLast],
80
- [
81
- 'First',
82
- 'First Bet',
83
- 'Bet',
84
- 'New Offer',
85
- 'Wait',
86
- 'Finished',
87
- 'Stopped',
88
- 'Canceled',
89
- 'Need Confirm',
90
- 'Confirmed',
91
- 'Refused',
92
- '*',
93
- ],
94
- '*',
95
- ...defaultSortLast,
96
- ],
97
- ],
98
90
  ],
99
- ],
100
- ],
101
- 'Pages',
102
- 'Page Blocks',
103
- [
104
- ...defaultDocSort,
105
- ...defaultSortFirst,
106
- ...defaultStateSort,
107
- '*',
108
- ...defaultSortLast,
109
- [
110
- ...defaultDocSort,
111
- ...defaultSortFirst,
112
- ...defaultStateSort,
113
91
  '*',
114
92
  ...defaultSortLast,
115
- [
116
- ...defaultDocSort,
117
- ...defaultSortFirst,
118
- ...defaultStateSort,
119
- '*',
120
- ...defaultSortLast,
121
- [
122
- ...defaultDocSort,
123
- ...defaultSortFirst,
124
- ...defaultStateSort,
125
- '*',
126
- ...defaultSortLast,
127
- ],
128
- ],
129
93
  ],
130
94
  ],
131
- 'Page Components',
132
- [
133
- ...defaultDocSort,
134
- ...defaultSortFirst,
135
- ...defaultStateSort,
136
- '*',
137
- ...defaultSortLast,
138
- [
139
- ...defaultDocSort,
140
- ...defaultSortFirst,
141
- ...defaultStateSort,
142
- '*',
143
- ...defaultSortLast,
144
- [
145
- ...defaultDocSort,
146
- ...defaultSortFirst,
147
- ...defaultStateSort,
148
- '*',
149
- ...defaultSortLast,
150
- [
151
- ...defaultDocSort,
152
- ...defaultSortFirst,
153
- ...defaultStateSort,
154
- '*',
155
- ...defaultSortLast,
156
- ],
157
- ],
158
- ],
159
- ],
160
- 'Forms',
161
- [...defaultDocSort, ...defaultFormSort, '*'],
162
- 'Email',
163
- [...defaultDocSort, '*'],
164
95
  ],
165
96
  ],
166
- },
167
- }
168
-
169
- const STORYSORT_DOCUMENTATION = {
170
- storySort: {
171
- order: [
97
+ ],
98
+ 'Pages',
99
+ 'Page Blocks',
100
+ [
101
+ ...defaultDocSort,
102
+ ...defaultSortFirst,
103
+ ...defaultStateSort,
104
+ '*',
105
+ ...defaultSortLast,
106
+ [
107
+ ...defaultDocSort,
108
+ ...defaultSortFirst,
109
+ ...defaultStateSort,
172
110
  '*',
111
+ ...defaultSortLast,
173
112
  [
174
- 'Introduction',
175
- 'Frontend',
176
- [
177
- 'Overview',
178
- 'Structure',
179
- 'Packages',
180
- 'Pages',
181
- 'PageBlocks',
182
- 'PageComponents',
183
- 'Forms',
184
- 'Icons',
185
- ],
186
- 'Backend',
187
- 'Design',
188
- 'Email',
189
- 'Storybook',
113
+ ...defaultDocSort,
114
+ ...defaultSortFirst,
115
+ ...defaultStateSort,
116
+ '*',
117
+ ...defaultSortLast,
118
+ [...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
119
+ ],
120
+ ],
121
+ ],
122
+ 'Page Components',
123
+ [
124
+ ...defaultDocSort,
125
+ ...defaultSortFirst,
126
+ ...defaultStateSort,
127
+ '*',
128
+ ...defaultSortLast,
129
+ [
130
+ ...defaultDocSort,
131
+ ...defaultSortFirst,
132
+ ...defaultStateSort,
133
+ '*',
134
+ ...defaultSortLast,
135
+ [
136
+ ...defaultDocSort,
137
+ ...defaultSortFirst,
138
+ ...defaultStateSort,
190
139
  '*',
191
- 'FAQ',
140
+ ...defaultSortLast,
141
+ [...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
192
142
  ],
193
143
  ],
194
- },
195
- }
144
+ ],
145
+ 'Forms',
146
+ [...defaultDocSort, ...defaultFormSort, '*'],
147
+ 'Email',
148
+ [...defaultDocSort, '*'],
149
+ ]
150
+
151
+ const STORYSORT_DOCUMENTATION = [
152
+ '*',
153
+ [
154
+ 'Introduction',
155
+ 'Frontend',
156
+ [
157
+ 'Overview',
158
+ 'Structure',
159
+ 'Packages',
160
+ 'Pages',
161
+ 'PageBlocks',
162
+ 'PageComponents',
163
+ 'Forms',
164
+ 'Icons',
165
+ ],
166
+ 'Backend',
167
+ 'Design',
168
+ 'Email',
169
+ 'Storybook',
170
+ '*',
171
+ 'FAQ',
172
+ ],
173
+ ]
196
174
 
197
- const STORYSORT_ICONS = {
198
- storySort: {
199
- order: ['Overview', 'Usage', 'Default Icons', '*'],
200
- },
201
- }
175
+ const STORYSORT_ICONS = ['Overview', 'Usage', 'Default Icons', '*']
202
176
 
203
177
  export { STORYSORT, STORYSORT_DOCUMENTATION, STORYSORT_ICONS }
@@ -43,14 +43,26 @@ const defaultFormSort = [
43
43
 
44
44
  const defaultSortLast = ['Footer', 'After']
45
45
 
46
- const STORYSORT = {
47
- storySort: {
48
- order: [
46
+ const STORYSORT = [
47
+ '*',
48
+ 'Tokens',
49
+ 'API',
50
+ 'Components',
51
+ [
52
+ ...defaultDocSort,
53
+ ...defaultSortFirst,
54
+ '*',
55
+ ...defaultSortLast,
56
+ [
57
+ ...defaultDocSort,
58
+ ...defaultSortFirst,
49
59
  '*',
60
+ ...defaultSortLast,
50
61
  [
51
- 'Tokens',
52
- 'API',
53
- 'Components',
62
+ ...defaultDocSort,
63
+ ...defaultSortFirst,
64
+ '*',
65
+ ...defaultSortLast,
54
66
  [
55
67
  ...defaultDocSort,
56
68
  ...defaultSortFirst,
@@ -61,143 +73,105 @@ const STORYSORT = {
61
73
  ...defaultSortFirst,
62
74
  '*',
63
75
  ...defaultSortLast,
76
+ [...defaultDocSort, ...defaultSortFirst, '*', ...defaultSortLast],
64
77
  [
65
- ...defaultDocSort,
66
- ...defaultSortFirst,
78
+ 'First',
79
+ 'First Bet',
80
+ 'Bet',
81
+ 'New Offer',
82
+ 'Wait',
83
+ 'Finished',
84
+ 'Stopped',
85
+ 'Canceled',
86
+ 'Need Confirm',
87
+ 'Confirmed',
88
+ 'Refused',
67
89
  '*',
68
- ...defaultSortLast,
69
- [
70
- ...defaultDocSort,
71
- ...defaultSortFirst,
72
- '*',
73
- ...defaultSortLast,
74
- [
75
- ...defaultDocSort,
76
- ...defaultSortFirst,
77
- '*',
78
- ...defaultSortLast,
79
- [...defaultDocSort, ...defaultSortFirst, '*', ...defaultSortLast],
80
- [
81
- 'First',
82
- 'First Bet',
83
- 'Bet',
84
- 'New Offer',
85
- 'Wait',
86
- 'Finished',
87
- 'Stopped',
88
- 'Canceled',
89
- 'Need Confirm',
90
- 'Confirmed',
91
- 'Refused',
92
- '*',
93
- ],
94
- '*',
95
- ...defaultSortLast,
96
- ],
97
- ],
98
90
  ],
99
- ],
100
- ],
101
- 'Pages',
102
- 'Page Blocks',
103
- [
104
- ...defaultDocSort,
105
- ...defaultSortFirst,
106
- ...defaultStateSort,
107
- '*',
108
- ...defaultSortLast,
109
- [
110
- ...defaultDocSort,
111
- ...defaultSortFirst,
112
- ...defaultStateSort,
113
91
  '*',
114
92
  ...defaultSortLast,
115
- [
116
- ...defaultDocSort,
117
- ...defaultSortFirst,
118
- ...defaultStateSort,
119
- '*',
120
- ...defaultSortLast,
121
- [
122
- ...defaultDocSort,
123
- ...defaultSortFirst,
124
- ...defaultStateSort,
125
- '*',
126
- ...defaultSortLast,
127
- ],
128
- ],
129
93
  ],
130
94
  ],
131
- 'Page Components',
132
- [
133
- ...defaultDocSort,
134
- ...defaultSortFirst,
135
- ...defaultStateSort,
136
- '*',
137
- ...defaultSortLast,
138
- [
139
- ...defaultDocSort,
140
- ...defaultSortFirst,
141
- ...defaultStateSort,
142
- '*',
143
- ...defaultSortLast,
144
- [
145
- ...defaultDocSort,
146
- ...defaultSortFirst,
147
- ...defaultStateSort,
148
- '*',
149
- ...defaultSortLast,
150
- [
151
- ...defaultDocSort,
152
- ...defaultSortFirst,
153
- ...defaultStateSort,
154
- '*',
155
- ...defaultSortLast,
156
- ],
157
- ],
158
- ],
159
- ],
160
- 'Forms',
161
- [...defaultDocSort, ...defaultFormSort, '*'],
162
- 'Email',
163
- [...defaultDocSort, '*'],
164
95
  ],
165
96
  ],
166
- },
167
- }
168
-
169
- const STORYSORT_DOCUMENTATION = {
170
- storySort: {
171
- order: [
97
+ ],
98
+ 'Pages',
99
+ 'Page Blocks',
100
+ [
101
+ ...defaultDocSort,
102
+ ...defaultSortFirst,
103
+ ...defaultStateSort,
104
+ '*',
105
+ ...defaultSortLast,
106
+ [
107
+ ...defaultDocSort,
108
+ ...defaultSortFirst,
109
+ ...defaultStateSort,
172
110
  '*',
111
+ ...defaultSortLast,
173
112
  [
174
- 'Introduction',
175
- 'Frontend',
176
- [
177
- 'Overview',
178
- 'Structure',
179
- 'Packages',
180
- 'Pages',
181
- 'PageBlocks',
182
- 'PageComponents',
183
- 'Forms',
184
- 'Icons',
185
- ],
186
- 'Backend',
187
- 'Design',
188
- 'Email',
189
- 'Storybook',
113
+ ...defaultDocSort,
114
+ ...defaultSortFirst,
115
+ ...defaultStateSort,
116
+ '*',
117
+ ...defaultSortLast,
118
+ [...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
119
+ ],
120
+ ],
121
+ ],
122
+ 'Page Components',
123
+ [
124
+ ...defaultDocSort,
125
+ ...defaultSortFirst,
126
+ ...defaultStateSort,
127
+ '*',
128
+ ...defaultSortLast,
129
+ [
130
+ ...defaultDocSort,
131
+ ...defaultSortFirst,
132
+ ...defaultStateSort,
133
+ '*',
134
+ ...defaultSortLast,
135
+ [
136
+ ...defaultDocSort,
137
+ ...defaultSortFirst,
138
+ ...defaultStateSort,
190
139
  '*',
191
- 'FAQ',
140
+ ...defaultSortLast,
141
+ [...defaultDocSort, ...defaultSortFirst, ...defaultStateSort, '*', ...defaultSortLast],
192
142
  ],
193
143
  ],
194
- },
195
- }
144
+ ],
145
+ 'Forms',
146
+ [...defaultDocSort, ...defaultFormSort, '*'],
147
+ 'Email',
148
+ [...defaultDocSort, '*'],
149
+ ]
150
+
151
+ const STORYSORT_DOCUMENTATION = [
152
+ '*',
153
+ [
154
+ 'Introduction',
155
+ 'Frontend',
156
+ [
157
+ 'Overview',
158
+ 'Structure',
159
+ 'Packages',
160
+ 'Pages',
161
+ 'PageBlocks',
162
+ 'PageComponents',
163
+ 'Forms',
164
+ 'Icons',
165
+ ],
166
+ 'Backend',
167
+ 'Design',
168
+ 'Email',
169
+ 'Storybook',
170
+ '*',
171
+ 'FAQ',
172
+ ],
173
+ ]
196
174
 
197
- const STORYSORT_ICONS = {
198
- storySort: {
199
- order: ['Overview', 'Usage', 'Default Icons', '*'],
200
- },
201
- }
175
+ const STORYSORT_ICONS = ['Overview', 'Usage', 'Default Icons', '*']
202
176
 
203
177
  export { STORYSORT, STORYSORT_DOCUMENTATION, STORYSORT_ICONS }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {