@symbo.ls/preview 0.0.47 → 0.0.49
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/.symbols/library.js +3 -1
- package/package.json +1 -1
- package/src/components/ResponsivePreview.js +48 -0
- package/src/components/ShapePreview.js +63 -0
- package/src/components/ShapeSet.js +57 -18
- package/src/{pages/Spaces/Preview.js → components/SpacingPreview.js} +41 -4
- package/src/components/index.js +3 -0
- package/src/pages/DesignSystem/Main.js +51 -18
- package/src/pages/DesignSystem/index.js +67 -27
- package/src/pages/{Typography → Fonts}/fontFaces.js +3 -3
- package/src/pages/{Typography → Fonts}/fontFamilies.js +4 -3
- package/src/pages/Fonts/index.js +6 -95
- package/src/pages/MediaQuery/index.js +21 -20
- package/src/pages/MediaQuery/lists.js +43 -65
- package/src/pages/Shapes/index.js +47 -30
- package/src/pages/Shapes/shapeSet.js +95 -38
- package/src/pages/Spaces/SpacingScale.js +4 -42
- package/src/pages/Spaces/Table.js +2 -1
- package/src/pages/Spaces/buttons.js +47 -18
- package/src/pages/Typography/index.js +0 -8
- package/src/pages/Typography/stylesHelpers.js +0 -1
package/.symbols/library.js
CHANGED
|
@@ -78,7 +78,9 @@ const define = {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export const LIBRARY =
|
|
81
|
+
export const LIBRARY = []
|
|
82
|
+
|
|
83
|
+
export const SYMBOLS_LIBRARY = Object.keys(lib).map(key => {
|
|
82
84
|
const component = lib[key]
|
|
83
85
|
const base = define[key] || define.default
|
|
84
86
|
return deepMerge({
|
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { Flex, ResponsiveToolBar, ResponsiveSreensPreview } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
const footer = {
|
|
6
|
+
extend: Flex,
|
|
7
|
+
props: {
|
|
8
|
+
gap: 'A1',
|
|
9
|
+
align: 'center space-between',
|
|
10
|
+
|
|
11
|
+
title: {
|
|
12
|
+
text: 'For the best experience, check it out from screens larger than 1980px',
|
|
13
|
+
color: 'gray6'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
title: {
|
|
18
|
+
extend: 'Paragraph',
|
|
19
|
+
props: { margin: '0' }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
screenButtons: {
|
|
23
|
+
extend: ResponsiveToolBar,
|
|
24
|
+
devices: {
|
|
25
|
+
childExtend: {
|
|
26
|
+
on: {
|
|
27
|
+
click: (ev, el, s) => {
|
|
28
|
+
const previewSize = s.parent.previewSize !== s.key ? s.key : 'mobileS'
|
|
29
|
+
s.parent.update({ previewSize })
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const ResponsivePreview = {
|
|
38
|
+
extend: ResponsiveSreensPreview,
|
|
39
|
+
|
|
40
|
+
props: {
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
left: 'B',
|
|
43
|
+
right: 'B',
|
|
44
|
+
padding: '0 0 B'
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
footer
|
|
48
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { Scene, Flex, Code } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
const scene = {
|
|
6
|
+
extend: Scene,
|
|
7
|
+
|
|
8
|
+
scene: {
|
|
9
|
+
props: {
|
|
10
|
+
content: {
|
|
11
|
+
background: 'shape 1',
|
|
12
|
+
color: 'gray11',
|
|
13
|
+
padding: 'Z A1',
|
|
14
|
+
text: 'Shape Preview'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
on: {
|
|
19
|
+
update: (el, s) => {
|
|
20
|
+
el.set({
|
|
21
|
+
props: s.props
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const ShapePreview = {
|
|
29
|
+
extend: Flex,
|
|
30
|
+
props: {
|
|
31
|
+
height: 'E3',
|
|
32
|
+
zIndex: '9999',
|
|
33
|
+
gap: 'A',
|
|
34
|
+
alignItems: 'stretch ',
|
|
35
|
+
|
|
36
|
+
scene: { flex: 1 },
|
|
37
|
+
|
|
38
|
+
style: {
|
|
39
|
+
backdropFilter: 'blur(15px)'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
scene,
|
|
44
|
+
code: {
|
|
45
|
+
extend: Code,
|
|
46
|
+
props: ({ state }) => ({
|
|
47
|
+
hide: Object.keys(state.props).length === 0,
|
|
48
|
+
flex: '0 0 360px',
|
|
49
|
+
margin: '0',
|
|
50
|
+
code: {
|
|
51
|
+
height: '100%',
|
|
52
|
+
margin: '0'
|
|
53
|
+
},
|
|
54
|
+
buttons: { marginInline: 'X2' }
|
|
55
|
+
}),
|
|
56
|
+
title: null,
|
|
57
|
+
code: {
|
|
58
|
+
props: {
|
|
59
|
+
text: ({ state }) => 'const props = ' + JSON.stringify(state.props, null, 2)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,46 +1,85 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { ClickableItem, Flex } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
const isActive = (el, s) => s.parent.active === `${el.parent.parent.parent.key}-${el.key}`
|
|
4
6
|
|
|
5
7
|
const ShapeItem = {
|
|
6
|
-
extend: [ClickableItem,
|
|
8
|
+
extend: [ClickableItem, Flex],
|
|
7
9
|
|
|
8
|
-
props: el => ({
|
|
9
|
-
href: `/shapes/${el.parent.parent.key}-${el.key}`,
|
|
10
|
+
props: (el, s) => ({
|
|
10
11
|
padding: 'B',
|
|
11
12
|
round: 'Z',
|
|
12
|
-
background: 'white .05',
|
|
13
13
|
alignItems: 'center',
|
|
14
14
|
justifyContent: 'center',
|
|
15
|
-
|
|
15
|
+
outline: '0, shape, solid',
|
|
16
|
+
background: 'gray1',
|
|
17
|
+
theme: null,
|
|
18
|
+
cursor: 'pointer',
|
|
19
|
+
|
|
20
|
+
active: isActive(el, s),
|
|
21
|
+
|
|
22
|
+
'.active': {
|
|
23
|
+
outline: 'X, shape, solid',
|
|
24
|
+
opacity: '1',
|
|
25
|
+
background: 'gray2'
|
|
26
|
+
},
|
|
16
27
|
|
|
17
28
|
_shape: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
transition: 'A default-bezier',
|
|
30
|
+
transitionProperty: 'background',
|
|
31
|
+
width: 'C1',
|
|
32
|
+
height: 'C1',
|
|
33
|
+
background: 'gray3'
|
|
21
34
|
}
|
|
22
35
|
}),
|
|
23
36
|
|
|
24
|
-
_shape: {}
|
|
37
|
+
_shape: {},
|
|
38
|
+
|
|
39
|
+
on: {
|
|
40
|
+
click: (ev, el, s) => {
|
|
41
|
+
const active = `${el.parent.parent.parent.key}-${el.key}`
|
|
42
|
+
s.parent.props = s.parse()
|
|
43
|
+
s.parent.update({ active })
|
|
44
|
+
},
|
|
45
|
+
mouseover: (ev, el, s) => {
|
|
46
|
+
el._shape.setProps({ background: 'gray5' })
|
|
47
|
+
},
|
|
48
|
+
mouseleave: (ev, el, s) => {
|
|
49
|
+
const active = isActive(el, s)
|
|
50
|
+
if (!active) el._shape.setProps({ background: 'gray3' })
|
|
51
|
+
},
|
|
52
|
+
update: (el, s) => {
|
|
53
|
+
const active = isActive(el, s)
|
|
54
|
+
el._shape.setProps({ background: active ? 'gray5' : 'gray3' })
|
|
55
|
+
}
|
|
56
|
+
}
|
|
25
57
|
}
|
|
26
58
|
|
|
27
59
|
export const ShapeSet = {
|
|
28
60
|
props: {
|
|
29
61
|
label: {
|
|
30
62
|
display: 'block',
|
|
31
|
-
size: 'Y',
|
|
32
63
|
opacity: '.65',
|
|
33
|
-
padding: '0 0 Z 0'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
flexWrap: 'wrap'
|
|
64
|
+
padding: '0 0 Z 0',
|
|
65
|
+
span: {
|
|
66
|
+
opacity: '.65'
|
|
67
|
+
}
|
|
38
68
|
}
|
|
39
69
|
},
|
|
40
70
|
|
|
41
71
|
label: {},
|
|
42
|
-
|
|
72
|
+
list: {
|
|
43
73
|
extend: Flex,
|
|
44
|
-
|
|
74
|
+
props: {
|
|
75
|
+
gap: 'A2',
|
|
76
|
+
wrap: 'wrap'
|
|
77
|
+
},
|
|
78
|
+
childExtend: {
|
|
79
|
+
extend: ShapeItem,
|
|
80
|
+
_shape: {
|
|
81
|
+
props: ({ state }) => state
|
|
82
|
+
}
|
|
83
|
+
}
|
|
45
84
|
}
|
|
46
85
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Grid, Scene, Flex } from '@symbo.ls/components'
|
|
3
|
+
import { Grid, Scene, Flex, Code } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
const returnScale = (state, key, fallback) => {
|
|
6
6
|
const { scales } = state
|
|
7
7
|
return (scales[state.props[key] || state.props[fallback]] || 0) + 'em'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const scene = {
|
|
11
11
|
extend: Scene,
|
|
12
12
|
|
|
13
13
|
scene: {
|
|
14
14
|
boxModel: {
|
|
15
15
|
extend: Grid,
|
|
16
|
-
props: {
|
|
16
|
+
props: ({ state }) => ({
|
|
17
17
|
color: 'gray5',
|
|
18
18
|
fontSize: 'Z',
|
|
19
19
|
columns: '30px auto 30px',
|
|
@@ -23,7 +23,7 @@ export const Preview = {
|
|
|
23
23
|
"x3 b x4"`,
|
|
24
24
|
alignItems: 'center',
|
|
25
25
|
textAlign: 'center'
|
|
26
|
-
},
|
|
26
|
+
}),
|
|
27
27
|
|
|
28
28
|
...[
|
|
29
29
|
...['', { text: (el, s) => s.props.paddingTop || '', style: { gridArea: 't' } }, ''],
|
|
@@ -112,3 +112,40 @@ export const Preview = {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
export const SpacingPreview = {
|
|
117
|
+
extend: Flex,
|
|
118
|
+
|
|
119
|
+
props: {
|
|
120
|
+
maxHeight: '25vh',
|
|
121
|
+
zIndex: '9999',
|
|
122
|
+
gap: 'A',
|
|
123
|
+
lazyLoad: true,
|
|
124
|
+
|
|
125
|
+
scene: { flex: 1 },
|
|
126
|
+
|
|
127
|
+
style: {
|
|
128
|
+
backdropFilter: 'blur(15px)'
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
scene,
|
|
133
|
+
code: {
|
|
134
|
+
extend: Code,
|
|
135
|
+
props: ({ state }) => ({
|
|
136
|
+
hide: Object.keys(state.props).length === 0,
|
|
137
|
+
flex: '0 0 360px',
|
|
138
|
+
margin: '0',
|
|
139
|
+
code: {
|
|
140
|
+
margin: '0'
|
|
141
|
+
},
|
|
142
|
+
buttons: { marginInline: 'X2' }
|
|
143
|
+
}),
|
|
144
|
+
title: null,
|
|
145
|
+
code: {
|
|
146
|
+
props: {
|
|
147
|
+
text: ({ state }) => 'const props = ' + JSON.stringify(state.props, null, 2)
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
package/src/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Flex, Link, ArticleMedium } from '@symbo.ls/components'
|
|
3
|
+
import { Flex, Link, ArticleMedium, QuickStart } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
const Banner = {
|
|
6
6
|
extend: [Link, Flex, ArticleMedium],
|
|
@@ -43,27 +43,59 @@ const banners = {
|
|
|
43
43
|
}]
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const
|
|
47
|
-
extend:
|
|
46
|
+
const header = {
|
|
47
|
+
extend: ArticleMedium,
|
|
48
48
|
props: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
'@mobileS': { padding: '- - - A' },
|
|
50
|
+
title: {
|
|
51
|
+
fontWeight: '600',
|
|
52
|
+
text: 'Design System takeaways'
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
p: { text: `Your tokens in the system`
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
p2: {
|
|
59
|
+
display: 'none',
|
|
60
|
+
color: 'gray6',
|
|
61
|
+
margin: '0'
|
|
62
|
+
}
|
|
52
63
|
},
|
|
53
64
|
|
|
54
|
-
|
|
65
|
+
title: {},
|
|
66
|
+
p: {},
|
|
67
|
+
p2: {
|
|
68
|
+
tag: 'p',
|
|
69
|
+
...[
|
|
70
|
+
'Welcome to the Symbols documentation page.',
|
|
71
|
+
{ text: `Here you'll learn everything…` }
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
55
75
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
const summary = {
|
|
77
|
+
header,
|
|
78
|
+
|
|
79
|
+
grid: {
|
|
80
|
+
extend: Flex,
|
|
81
|
+
props: {
|
|
82
|
+
align: 'stretch space-between',
|
|
83
|
+
margin: 'C1 -Z2',
|
|
84
|
+
gap: 'B1'
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
$setStateCollection: ({ state }) => [{
|
|
88
|
+
title: 'Setting up a dark theme',
|
|
89
|
+
p: '5 mins tutorial',
|
|
90
|
+
background: 'https://p194.p3.n0.cdn.getcloudapp.com/items/eDu7le4P/ef9249a0-c522-49a7-8a0e-d7152b2e73a1.png?v=c4c8cd49408f26a6046b11f35d7b0656',
|
|
91
|
+
href: ''
|
|
92
|
+
}, {
|
|
93
|
+
title: 'Learn typography scaling',
|
|
94
|
+
p: '5 mins tutorial',
|
|
95
|
+
background: '',
|
|
96
|
+
href: ''
|
|
97
|
+
}]
|
|
98
|
+
}
|
|
67
99
|
}
|
|
68
100
|
|
|
69
101
|
export const Main = {
|
|
@@ -73,5 +105,6 @@ export const Main = {
|
|
|
73
105
|
},
|
|
74
106
|
|
|
75
107
|
banners,
|
|
108
|
+
quickStart: { extend: QuickStart },
|
|
76
109
|
summary
|
|
77
110
|
}
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { router } from '@domql/router'
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { Main } from './Main'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ClickableItem,
|
|
8
|
+
Flex,
|
|
9
|
+
Link,
|
|
10
|
+
SquareButton,
|
|
11
|
+
TooltipParent
|
|
12
|
+
} from '@symbo.ls/components'
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
ShapePreview,
|
|
16
|
+
ResponsivePreview,
|
|
17
|
+
SpacingPreview
|
|
18
|
+
} from '../../components'
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
PageExtend,
|
|
7
22
|
Color,
|
|
8
23
|
Theme,
|
|
9
24
|
Shapes,
|
|
10
25
|
Spaces,
|
|
11
26
|
Icons,
|
|
12
27
|
Typography,
|
|
13
|
-
Fonts,
|
|
28
|
+
Fonts,
|
|
14
29
|
MediaQuery
|
|
15
30
|
} from '..'
|
|
16
31
|
|
|
@@ -70,28 +85,41 @@ const NAV = [{
|
|
|
70
85
|
}
|
|
71
86
|
}, {
|
|
72
87
|
state: {
|
|
73
|
-
href: '/
|
|
74
|
-
tooltip: '
|
|
88
|
+
href: '/fonts',
|
|
89
|
+
tooltip: 'Fonts'
|
|
75
90
|
},
|
|
76
91
|
props: {
|
|
77
|
-
icon: { name: '
|
|
78
|
-
|
|
79
|
-
}, {
|
|
80
|
-
state: {
|
|
81
|
-
href: '/sequence',
|
|
82
|
-
tooltip: 'Sequence'
|
|
83
|
-
},
|
|
84
|
-
props: {
|
|
85
|
-
icon: { name: 'sequence colored' }
|
|
92
|
+
icon: { name: 'fontFace colored' },
|
|
93
|
+
opacity: '.7'
|
|
86
94
|
}
|
|
95
|
+
// }, {
|
|
96
|
+
// state: {
|
|
97
|
+
// href: '/timing',
|
|
98
|
+
// tooltip: 'Timing'
|
|
99
|
+
// },
|
|
100
|
+
// props: {
|
|
101
|
+
// icon: { name: 'clock colored' }
|
|
102
|
+
// }
|
|
103
|
+
// }, {
|
|
104
|
+
// state: {
|
|
105
|
+
// href: '/sequence',
|
|
106
|
+
// tooltip: 'Sequence'
|
|
107
|
+
// },
|
|
108
|
+
// props: {
|
|
109
|
+
// icon: { name: 'sequence colored' }
|
|
110
|
+
// }
|
|
87
111
|
}]
|
|
88
112
|
|
|
89
113
|
export const DesignSystem = {
|
|
114
|
+
extend: Flex,
|
|
115
|
+
|
|
90
116
|
props: {
|
|
117
|
+
margin: '-C2+X2 - -',
|
|
118
|
+
padding: 'C2+X2 - -',
|
|
119
|
+
minHeight: '100%',
|
|
91
120
|
maxWidth: '100%',
|
|
92
121
|
width: '100%',
|
|
93
122
|
flow: 'column',
|
|
94
|
-
padding: '- - C1',
|
|
95
123
|
gap: 'B1'
|
|
96
124
|
},
|
|
97
125
|
|
|
@@ -103,6 +131,7 @@ export const DesignSystem = {
|
|
|
103
131
|
'/typography': Typography,
|
|
104
132
|
'/space': Spaces,
|
|
105
133
|
'/shape': Shapes,
|
|
134
|
+
'/fonts': Fonts,
|
|
106
135
|
'/icons': Icons,
|
|
107
136
|
'/media-query': MediaQuery
|
|
108
137
|
// '/sequence': Sequence,
|
|
@@ -116,16 +145,12 @@ export const DesignSystem = {
|
|
|
116
145
|
maxWidth: '100%',
|
|
117
146
|
width: '100%',
|
|
118
147
|
flow: 'row',
|
|
148
|
+
flex: 1,
|
|
119
149
|
align: 'flex-start flex-start',
|
|
120
150
|
gap: 'B1',
|
|
121
|
-
padding: 'D2 A
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
sidebar: {
|
|
125
|
-
tag: 'nav',
|
|
126
|
-
extend: Flex,
|
|
151
|
+
padding: 'D2 A C1',
|
|
127
152
|
|
|
128
|
-
|
|
153
|
+
sidebar: {
|
|
129
154
|
gap: 'B1',
|
|
130
155
|
flow: 'column',
|
|
131
156
|
background: 'transparent',
|
|
@@ -135,6 +160,15 @@ export const DesignSystem = {
|
|
|
135
160
|
top: 'E'
|
|
136
161
|
},
|
|
137
162
|
|
|
163
|
+
main: {
|
|
164
|
+
flex: 1
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
sidebar: {
|
|
169
|
+
tag: 'nav',
|
|
170
|
+
extend: Flex,
|
|
171
|
+
|
|
138
172
|
childExtend: {
|
|
139
173
|
extend: [ClickableItem, Link, SquareButton, TooltipParent],
|
|
140
174
|
props: ({ state }) => ({
|
|
@@ -181,22 +215,28 @@ export const DesignSystem = {
|
|
|
181
215
|
main: {
|
|
182
216
|
tag: 'section',
|
|
183
217
|
extend: PageExtend,
|
|
184
|
-
|
|
185
218
|
props: {
|
|
186
|
-
|
|
187
|
-
padding: '0 C1 B1'
|
|
219
|
+
padding: 'X2 C1 B1'
|
|
188
220
|
}
|
|
189
221
|
}
|
|
190
222
|
},
|
|
191
223
|
|
|
192
224
|
widget: {
|
|
193
225
|
props: {
|
|
194
|
-
padding: '
|
|
226
|
+
padding: 'A',
|
|
227
|
+
position: 'sticky',
|
|
228
|
+
width: '100%',
|
|
229
|
+
zIndex: 9999,
|
|
230
|
+
bottom: '0'
|
|
195
231
|
},
|
|
196
232
|
|
|
233
|
+
state: ({ parent }) => ({ __ref: parent.page.main.state }),
|
|
234
|
+
|
|
197
235
|
define: { routes: param => param },
|
|
198
236
|
routes: {
|
|
199
|
-
'/media-query': ResponsivePreview
|
|
237
|
+
'/media-query': ResponsivePreview,
|
|
238
|
+
'/space': SpacingPreview,
|
|
239
|
+
'/shape': ShapePreview
|
|
200
240
|
},
|
|
201
241
|
|
|
202
242
|
on: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Grid, Hoverable, FontObject } from '@symbo.ls/components'
|
|
4
|
-
import { TypeSection } from '
|
|
4
|
+
import { TypeSection } from '../Typography/shared'
|
|
5
5
|
|
|
6
6
|
const mapFonts = (el, s) => {
|
|
7
7
|
if (!el.context.SYSTEM) return
|
|
@@ -16,7 +16,7 @@ const mapFonts = (el, s) => {
|
|
|
16
16
|
|
|
17
17
|
return {
|
|
18
18
|
title: v,
|
|
19
|
-
href: `/
|
|
19
|
+
href: `/fonts/font-settings/${v}`,
|
|
20
20
|
labels: [
|
|
21
21
|
{ icon: 'fontVariable', text: fontWeightCaption }
|
|
22
22
|
]
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
p: 'Document @font-face, default and backup fonts',
|
|
33
33
|
nav: [{
|
|
34
34
|
icon: 'plus',
|
|
35
|
-
href: '/
|
|
35
|
+
href: '/fonts/upload-font'
|
|
36
36
|
}]
|
|
37
37
|
}
|
|
38
38
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Grid, Hoverable, FontFamilyObject } from '@symbo.ls/components'
|
|
4
|
-
import { TypeSection } from '
|
|
4
|
+
import { TypeSection } from '../Typography/shared'
|
|
5
5
|
|
|
6
6
|
const mapFontFamilies = (el, s) => {
|
|
7
7
|
if (!el.context.SYSTEM) return
|
|
@@ -13,7 +13,7 @@ const mapFontFamilies = (el, s) => {
|
|
|
13
13
|
if (v === 'default') return
|
|
14
14
|
return {
|
|
15
15
|
title: v,
|
|
16
|
-
href: `/
|
|
16
|
+
href: `/fonts/font-family/${v}`,
|
|
17
17
|
val
|
|
18
18
|
}
|
|
19
19
|
}).filter(v => v)
|
|
@@ -27,11 +27,12 @@ export default {
|
|
|
27
27
|
p: 'Setup a set and fallback fonts as font families',
|
|
28
28
|
nav: [{
|
|
29
29
|
icon: 'plus',
|
|
30
|
-
href: '/
|
|
30
|
+
href: '/fonts/add-font-family',
|
|
31
31
|
scrollToTop: false
|
|
32
32
|
}]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
+
|
|
35
36
|
content: {
|
|
36
37
|
extend: Grid,
|
|
37
38
|
props: {
|