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