-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy pathpreview.tsx
More file actions
95 lines (89 loc) · 2.19 KB
/
Copy pathpreview.tsx
File metadata and controls
95 lines (89 loc) · 2.19 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import { I18nextProvider } from 'react-i18next'
import '../components/src/styles/global.css'
// ToDo (kk: 08/20/2025) once we migrate global style, remove the following import
import { GlobalStyle } from '../app/src/atoms/GlobalStyle'
import { i18n } from '../app/src/i18n'
global.APP_SHELL_REMOTE = {
ipcRenderer: {
on: (topic, cb) => {},
invoke: (callname, args) => {},
send: (message, payload) => {},
},
}
global._PKG_VERSION_ = '0.0.0-storybook'
export const customViewports = {
onDeviceDisplay: {
name: 'Touchscreen',
type: 'tablet',
styles: {
width: '1024px',
height: '600px',
},
},
desktopMinWidth: {
// retains a 4:3 aspect ratio... minHeight is not set so the user
// could drag the app up to a thin strip, but that's not terribly
// useful for viewing designs
name: 'Desktop Minimum Width',
type: 'desktop',
styles: {
width: '600px',
height: '450px',
},
},
desktopSmall: {
// A size typically used in figma app backgrounds, useful for viewing
// larger components in context
name: 'Desktop Typical Small',
type: 'desktop',
styles: {
width: '1024px',
height: '700px',
},
},
protocolDesignerBase: {
// The base size for Protocol Designer. This might be the base size for web
name: 'Protocol Designer Base',
type: 'desktop',
styles: {
width: '1440px',
height: '1024px',
},
},
protocolDesignerSmallHeight: {
// The small height for Protocol Designer. This might be the base size for web
name: 'Protocol Designer Small Height',
type: 'desktop',
styles: {
width: '1440px',
height: '664px',
},
},
}
export const parameters = {
viewport: { viewports: customViewports },
options: {
storySort: {
method: 'alphabetical',
order: [
'Design Tokens',
'Helix',
'Library',
'App',
'ODD',
'Protocol-Designer',
'AI',
],
},
},
}
// Global decorator to apply the styles to all stories
export const decorators = [
Story => (
<I18nextProvider i18n={i18n}>
<GlobalStyle />
<Story />
</I18nextProvider>
),
]
export const tags = ['autodocs']