/
preview.js
44 lines (42 loc) · 934 Bytes
/
preview.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
import './index.css';
import { SearchCoreDecorator } from '../tests/__fixtures__/core/SearchCore';
import { runOnly } from './wcagConfig';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
},
expanded: true
},
a11y: {
options: {
runOnly
}
},
options: {
storySort: {
order: [
'SearchBar',
'UniversalResults',
'VerticalResults',
'DirectAnswer',
'FilterSearch',
'StaticFilters',
'StandardFacets',
'NumericalFacets',
'HierarchicalFacets',
'RangeInput',
'AppliedFilters',
'Pagination',
'AlternativeVerticals',
'SpellCheck',
'ResultsCount',
'LocationBias'
]
}
}
};
// Add the decorator to all stories
export const decorators = [SearchCoreDecorator];