@symbo.ls/preview 0.0.61 → 0.0.62
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/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { TutorialBanner } from '../../../components'
|
|
|
5
5
|
|
|
6
6
|
import DARK_PNG from '../../../assets/dark.png'
|
|
7
7
|
import TYPE_PNG from '../../../assets/type.png'
|
|
8
|
-
import SPACE_PNG from '../../../assets/space.png'
|
|
8
|
+
import SPACE_PNG from '../../../assets/space.png' // eslint-disable-line
|
|
9
9
|
import SHAPES_PNG from '../../../assets/shapes.png'
|
|
10
10
|
|
|
11
11
|
export default {
|
|
@@ -1,136 +1,155 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
import { Grid } from '@symbo.ls/components'
|
|
2
|
+
import { ClickableItem, Grid } from '@symbo.ls/components'
|
|
3
3
|
|
|
4
4
|
import { DesignComponent } from '../../../components'
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
const state = ({ parent: { state: { __system } } }) => ({
|
|
7
|
+
data: [{
|
|
8
|
+
icon: 'colorOutline',
|
|
9
|
+
iconTheme: 'theme',
|
|
10
|
+
title: 'colors',
|
|
11
|
+
paragraph: 'Colorize styles manually',
|
|
12
|
+
iconBackground: 'red',
|
|
13
|
+
properties: [{
|
|
14
|
+
property: 'Colors',
|
|
15
|
+
value: Object.keys(__system.COLOR).length
|
|
16
|
+
}, {
|
|
17
|
+
property: 'Themes',
|
|
18
|
+
value: Object.keys(__system.THEME).length
|
|
19
|
+
}]
|
|
15
20
|
}, {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, {
|
|
37
|
-
property: 'Breakpoints',
|
|
38
|
-
value: '3'
|
|
39
|
-
}]
|
|
40
|
-
}, {
|
|
41
|
-
icon: 'spaceOutline',
|
|
42
|
-
iconTheme: 'space',
|
|
43
|
-
title: 'Spacing',
|
|
44
|
-
paragraph: 'Manage properties of a size',
|
|
45
|
-
properties: [{
|
|
46
|
-
property: 'Ratio',
|
|
47
|
-
value: '1.618'
|
|
48
|
-
}, {
|
|
49
|
-
property: 'Style',
|
|
50
|
-
value: '8'
|
|
51
|
-
}, {
|
|
52
|
-
property: 'Breakpoints',
|
|
53
|
-
value: '3'
|
|
54
|
-
}]
|
|
55
|
-
}, {
|
|
56
|
-
icon: 'shape',
|
|
57
|
-
iconTheme: 'shape',
|
|
58
|
-
title: 'shapes',
|
|
59
|
-
paragraph: 'Design an outline to a chosen component',
|
|
60
|
-
properties: [{
|
|
61
|
-
property: 'HTML',
|
|
62
|
-
value: '32'
|
|
21
|
+
icon: 'typographyOutline',
|
|
22
|
+
iconTheme: 'typography',
|
|
23
|
+
title: 'typography',
|
|
24
|
+
paragraph: 'style a typed material',
|
|
25
|
+
properties: [{
|
|
26
|
+
property: 'Base size',
|
|
27
|
+
value: __system.TYPOGRAPHY.base + 'px'
|
|
28
|
+
}, {
|
|
29
|
+
property: 'Ratio',
|
|
30
|
+
value: __system.TYPOGRAPHY.ratio
|
|
31
|
+
}, {
|
|
32
|
+
property: 'Styles',
|
|
33
|
+
value: Object.keys(__system.TYPOGRAPHY?.styles).length
|
|
34
|
+
}, {
|
|
35
|
+
property: 'Fonts',
|
|
36
|
+
value: Object.keys(__system.FONT).length
|
|
37
|
+
}, {
|
|
38
|
+
property: 'Families',
|
|
39
|
+
value: Object.keys(__system.FONT_FAMILY).length - 1
|
|
40
|
+
}]
|
|
63
41
|
}, {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
42
|
+
icon: 'spaceOutline',
|
|
43
|
+
iconTheme: 'space',
|
|
44
|
+
title: 'Spacing',
|
|
45
|
+
paragraph: 'Manage properties of a size',
|
|
46
|
+
properties: [{
|
|
47
|
+
property: 'Ratio',
|
|
48
|
+
value: __system.SPACING.ratio
|
|
49
|
+
}, {
|
|
50
|
+
property: 'Templates',
|
|
51
|
+
value: 'TBA'
|
|
52
|
+
}]
|
|
75
53
|
}, {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
icon: 'shape',
|
|
55
|
+
iconTheme: 'shape',
|
|
56
|
+
title: 'shapes',
|
|
57
|
+
paragraph: 'Design an outline to a chosen component',
|
|
58
|
+
properties: [{
|
|
59
|
+
property: 'HTML',
|
|
60
|
+
value: '32'
|
|
61
|
+
}, {
|
|
62
|
+
property: 'SVG',
|
|
63
|
+
value: 'TBA'
|
|
64
|
+
}]
|
|
87
65
|
}, {
|
|
88
|
-
|
|
89
|
-
|
|
66
|
+
icon: 'iconsOutline',
|
|
67
|
+
iconTheme: 'color',
|
|
68
|
+
title: 'Icons',
|
|
69
|
+
paragraph: 'Label a role of subject with glyphs',
|
|
70
|
+
properties: [{
|
|
71
|
+
property: 'All',
|
|
72
|
+
value: console.log(__system) || Object.keys(__system.ICONS).length
|
|
73
|
+
}, {
|
|
74
|
+
property: 'Linear',
|
|
75
|
+
value: Object.keys(__system.ICONS).filter(v => v.includes('Outline')).length
|
|
76
|
+
}, {
|
|
77
|
+
property: 'Colored',
|
|
78
|
+
value: Object.keys(__system.ICONS).filter(v => v.includes('Colored')).length
|
|
79
|
+
}]
|
|
90
80
|
}, {
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
icon: 'clock',
|
|
82
|
+
iconTheme: 'icons',
|
|
83
|
+
title: 'Timing',
|
|
84
|
+
paragraph: 'Tokens for transitions and animations',
|
|
85
|
+
properties: [{
|
|
86
|
+
property: 'Timing base',
|
|
87
|
+
value: __system.TIMING.base + 'ms'
|
|
88
|
+
}, {
|
|
89
|
+
property: 'Ratio',
|
|
90
|
+
value: __system.TIMING.ratio
|
|
91
|
+
}, {
|
|
92
|
+
property: 'Transitions',
|
|
93
|
+
value: 'TBA'
|
|
94
|
+
}, {
|
|
95
|
+
property: 'Animations',
|
|
96
|
+
value: 'TBA'
|
|
97
|
+
}]
|
|
93
98
|
}, {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, {
|
|
105
|
-
property: 'Screens',
|
|
106
|
-
value: '3'
|
|
107
|
-
}]
|
|
108
|
-
}, {
|
|
109
|
-
icon: 'threeDots',
|
|
110
|
-
title: 'Sequence',
|
|
111
|
-
paragraph: 'The mapping system of generative sizing units',
|
|
112
|
-
properties: [{
|
|
113
|
-
property: 'Breakpoints',
|
|
114
|
-
value: '8'
|
|
99
|
+
icon: 'deviceMobileOutline',
|
|
100
|
+
title: 'Breakpoints',
|
|
101
|
+
paragraph: 'Label a role of subject with glyphs',
|
|
102
|
+
properties: [{
|
|
103
|
+
property: 'Breakpoints',
|
|
104
|
+
value: Object.keys(__system.MEDIA).length
|
|
105
|
+
}, {
|
|
106
|
+
property: 'Screens',
|
|
107
|
+
value: Object.keys(__system.DEVICES).length
|
|
108
|
+
}]
|
|
115
109
|
}, {
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
icon: 'threeDots',
|
|
111
|
+
title: 'Sequence',
|
|
112
|
+
paragraph: 'The mapping system of generative sizing units',
|
|
113
|
+
properties: [{
|
|
114
|
+
property: 'Breakpoints',
|
|
115
|
+
value: '8'
|
|
116
|
+
}, {
|
|
117
|
+
property: 'Screens',
|
|
118
|
+
value: '3'
|
|
119
|
+
}]
|
|
118
120
|
}]
|
|
119
|
-
}
|
|
121
|
+
})
|
|
120
122
|
|
|
121
123
|
export const designComponents = {
|
|
122
124
|
extend: Grid,
|
|
123
125
|
props: {
|
|
124
|
-
columns:
|
|
125
|
-
rows: 'repeat(
|
|
126
|
+
columns: `repeat(auto-fill, 15.235%)`,
|
|
127
|
+
rows: 'repeat(2, 1fr)',
|
|
128
|
+
autoFlow: 'dense',
|
|
129
|
+
justifyItems: 'flex-start',
|
|
130
|
+
autoColumns: 'auto',
|
|
131
|
+
autoRows: 'auto',
|
|
132
|
+
|
|
133
|
+
gap: 'B1'
|
|
126
134
|
},
|
|
127
135
|
|
|
128
|
-
childExtend: {
|
|
136
|
+
childExtend: {
|
|
137
|
+
extend: [ClickableItem, DesignComponent],
|
|
138
|
+
props: {
|
|
139
|
+
maxWidth: 'none',
|
|
140
|
+
width: '100%'
|
|
141
|
+
|
|
142
|
+
// flex: '1 1 100%'
|
|
143
|
+
// widthRange: 'F2 G'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
129
146
|
|
|
130
|
-
$setStateCollection: () =>
|
|
147
|
+
$setStateCollection: ({ state }) => state.data
|
|
131
148
|
}
|
|
132
149
|
|
|
133
150
|
export default {
|
|
151
|
+
state,
|
|
152
|
+
|
|
134
153
|
SectionHeader: {
|
|
135
154
|
margin: '- - C1',
|
|
136
155
|
title: 'Design System takeaways',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { ComponentTemplate } from '@symbo.ls/components'
|
|
4
4
|
import { Page } from '../../components'
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { COMPONENTS } from '../../../.symbols'
|
|
7
7
|
|
|
8
8
|
export const Library = {
|
|
9
9
|
extend: Page,
|
|
@@ -27,6 +27,17 @@ export const Library = {
|
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
childExtend: ComponentTemplate,
|
|
30
|
-
$setStateCollection: () =>
|
|
30
|
+
$setStateCollection: () => COMPONENTS
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
Overlay: {
|
|
34
|
+
inset: '50% 0 0',
|
|
35
|
+
style: {
|
|
36
|
+
WebkitMaskImage: '-webkit-gradient(linear, left 90%, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)))'
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
H1: {
|
|
40
|
+
|
|
41
|
+
}
|
|
31
42
|
}
|
|
32
43
|
}
|