@symbo.ls/preview 0.0.60 → 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 +1 -1
- package/src/assets/shapes.png +0 -0
- package/src/components/Banner.js +1 -1
- package/src/components/DesignComponent.js +79 -0
- package/src/components/FontText.js +11 -9
- package/src/components/index.js +1 -0
- package/src/pages/Color/FontText.js +4 -2
- package/src/pages/Color/chooseEnvironment.js +132 -0
- package/src/pages/Color/index.js +6 -5
- package/src/pages/DesignSystem/Dashboard/banners.js +8 -7
- package/src/pages/DesignSystem/Dashboard/index.js +2 -2
- package/src/pages/DesignSystem/Dashboard/quickstart.js +43 -17
- package/src/pages/DesignSystem/Dashboard/summary.js +152 -1
- package/src/pages/Library/index.js +13 -2
- package/src/state.js +2 -1
- package/user_data/byld.js +2 -0
package/package.json
CHANGED
|
Binary file
|
package/src/components/Banner.js
CHANGED
|
@@ -8,7 +8,6 @@ export const TutorialBanner = {
|
|
|
8
8
|
props: ({ state }) => ({
|
|
9
9
|
flow: 'column',
|
|
10
10
|
round: 'A',
|
|
11
|
-
flex: '1',
|
|
12
11
|
height: 'F',
|
|
13
12
|
padding: 'A2 B',
|
|
14
13
|
background: 'gray2',
|
|
@@ -17,6 +16,7 @@ export const TutorialBanner = {
|
|
|
17
16
|
overflow: 'hidden',
|
|
18
17
|
position: 'relative',
|
|
19
18
|
color: 'white',
|
|
19
|
+
flex: 1,
|
|
20
20
|
|
|
21
21
|
title: { margin: 'auto 0 0', text: state.title },
|
|
22
22
|
p: { text: state.p },
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { DesignElement, Flex, Grid } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
const componentHeader = {
|
|
6
|
+
tag: 'header',
|
|
7
|
+
extend: [DesignElement, Flex],
|
|
8
|
+
|
|
9
|
+
props: ({ state }) => ({
|
|
10
|
+
minWidth: '100%',
|
|
11
|
+
padding: 'Z1 - Z1 Z2',
|
|
12
|
+
flow: 'row',
|
|
13
|
+
round: '0',
|
|
14
|
+
alignItems: 'flex-start',
|
|
15
|
+
pointerEvents: 'none',
|
|
16
|
+
background: 'gray2',
|
|
17
|
+
|
|
18
|
+
button: {
|
|
19
|
+
padding: 'Y2',
|
|
20
|
+
icon: state.icon,
|
|
21
|
+
theme: state.iconTheme
|
|
22
|
+
},
|
|
23
|
+
heading: {
|
|
24
|
+
gap: '0',
|
|
25
|
+
title: {
|
|
26
|
+
text: state.title,
|
|
27
|
+
textTransform: 'capitalize'
|
|
28
|
+
},
|
|
29
|
+
p: {
|
|
30
|
+
text: state.paragraph,
|
|
31
|
+
maxWidth: 'F1'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const propertyNumber = {
|
|
38
|
+
extend: Grid,
|
|
39
|
+
props: ({ state }) => ({
|
|
40
|
+
columns: 'repeat(2, 1fr)',
|
|
41
|
+
property: {
|
|
42
|
+
text: state.property,
|
|
43
|
+
color: 'gray6'
|
|
44
|
+
},
|
|
45
|
+
value: {
|
|
46
|
+
text: state.value,
|
|
47
|
+
fontWeight: '500'
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
property: {},
|
|
51
|
+
value: {}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const componentProperties = {
|
|
55
|
+
extend: Flex,
|
|
56
|
+
props: {
|
|
57
|
+
padding: 'Z2 A',
|
|
58
|
+
flow: 'column',
|
|
59
|
+
gap: 'Z2',
|
|
60
|
+
background: 'gray1'
|
|
61
|
+
},
|
|
62
|
+
childExtend: propertyNumber,
|
|
63
|
+
$setStateCollection: ({ state }) => state.properties
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const DesignComponent = {
|
|
67
|
+
extend: Flex,
|
|
68
|
+
props: {
|
|
69
|
+
flow: 'column',
|
|
70
|
+
minWidth: 'F1',
|
|
71
|
+
maxWidth: 'F2',
|
|
72
|
+
round: 'A',
|
|
73
|
+
height: 'fit-content',
|
|
74
|
+
overflow: 'hidden'
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
componentHeader,
|
|
78
|
+
componentProperties
|
|
79
|
+
}
|
|
@@ -23,7 +23,7 @@ const fontWeights = {
|
|
|
23
23
|
top: '0',
|
|
24
24
|
fontSize: '20px'
|
|
25
25
|
},
|
|
26
|
-
childProps: { fontSize: '
|
|
26
|
+
childProps: { fontSize: 'F2' }
|
|
27
27
|
},
|
|
28
28
|
childExtend: {
|
|
29
29
|
extend: { text: 'A' }
|
|
@@ -39,20 +39,19 @@ const letterTransform = {
|
|
|
39
39
|
extend: Flex,
|
|
40
40
|
props: {
|
|
41
41
|
alignItems: 'center',
|
|
42
|
-
|
|
42
|
+
height: 'fit-content',
|
|
43
43
|
gap: 'X2',
|
|
44
44
|
childProps: {
|
|
45
45
|
minHeight: 'fit-content'
|
|
46
|
-
// border: '2px solid black'
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
48
|
childExtend: {},
|
|
50
49
|
...[
|
|
51
|
-
{ props: { text: 'a', textTransform: 'uppercase', fontSize: '
|
|
52
|
-
{ props: { text: 'b', fontWeight: '700', fontSize: '
|
|
53
|
-
{ props: { text: 'c', fontWeight: '500', fontSize: '
|
|
54
|
-
{ props: { text: 'd', fontSize: '
|
|
55
|
-
{ props: { text: 'e',
|
|
50
|
+
{ props: { text: 'a', textTransform: 'uppercase', fontSize: 'F2', fontWeight: '700' } },
|
|
51
|
+
{ props: { text: 'b', fontWeight: '700', fontSize: 'F' } },
|
|
52
|
+
{ props: { text: 'c', fontWeight: '500', fontSize: 'D2' } },
|
|
53
|
+
{ props: { text: 'd', fontSize: 'C2' } },
|
|
54
|
+
{ props: { text: 'e', fontSize: 'C' } },
|
|
56
55
|
{ props: { text: 'f', fontSize: 'B' } }
|
|
57
56
|
]
|
|
58
57
|
}
|
|
@@ -64,7 +63,7 @@ const fontStyle = {
|
|
|
64
63
|
},
|
|
65
64
|
childExtend: {
|
|
66
65
|
props: {
|
|
67
|
-
fontSize: '
|
|
66
|
+
fontSize: 'F2',
|
|
68
67
|
textTransform: 'uppercase',
|
|
69
68
|
fontWeight: '300',
|
|
70
69
|
margin: '0',
|
|
@@ -167,14 +166,17 @@ export const FontText = {
|
|
|
167
166
|
props,
|
|
168
167
|
|
|
169
168
|
fontName,
|
|
169
|
+
|
|
170
170
|
content: {
|
|
171
171
|
extend: Flex,
|
|
172
172
|
fonts: {
|
|
173
173
|
extend: Flex,
|
|
174
|
+
|
|
174
175
|
fontWeights,
|
|
175
176
|
letterTransform,
|
|
176
177
|
fontStyle
|
|
177
178
|
},
|
|
179
|
+
|
|
178
180
|
paragraph
|
|
179
181
|
},
|
|
180
182
|
|
package/src/components/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
export const fontText = {
|
|
4
|
+
|
|
4
5
|
HeaderHeading: {
|
|
5
|
-
|
|
6
|
+
props: { margin: '- - D2 -' },
|
|
7
|
+
caption: { text: `Let's make sure` },
|
|
6
8
|
h1: { text: 'Texts look good?' }
|
|
7
9
|
},
|
|
8
10
|
|
|
9
11
|
FontText: {},
|
|
10
|
-
ContinueButton: {}
|
|
12
|
+
ContinueButton: { props: { margin: 'F - - -' } }
|
|
11
13
|
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { Flex, CommonField, WiderButton, Button } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
import { HeaderHeading } from '../../components'
|
|
6
|
+
|
|
7
|
+
const header = {
|
|
8
|
+
extend: HeaderHeading,
|
|
9
|
+
props: {
|
|
10
|
+
margin: '- - D -',
|
|
11
|
+
caption: { text: 'And finally' },
|
|
12
|
+
h1: {
|
|
13
|
+
text: 'Choose your environment',
|
|
14
|
+
flow: 'row-reverse',
|
|
15
|
+
align: 'center flex-end',
|
|
16
|
+
span: {
|
|
17
|
+
text: 'if any',
|
|
18
|
+
fontWeight: '300',
|
|
19
|
+
opacity: '.85',
|
|
20
|
+
padding: '- - - X'
|
|
21
|
+
},
|
|
22
|
+
span2: {
|
|
23
|
+
text: ',',
|
|
24
|
+
fontWeight: '300',
|
|
25
|
+
opacity: '.85'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
caption: {},
|
|
31
|
+
h1: {
|
|
32
|
+
extend: Flex,
|
|
33
|
+
span: {},
|
|
34
|
+
span2: { }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const commonField = {
|
|
39
|
+
extend: CommonField,
|
|
40
|
+
props: {
|
|
41
|
+
gap: 'Z2',
|
|
42
|
+
element: {
|
|
43
|
+
gap: 'A',
|
|
44
|
+
maxWidth: 'I',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
childProps: {
|
|
47
|
+
// boxSize: 'B2 C',
|
|
48
|
+
// padding: '0',
|
|
49
|
+
background: 'gray2',
|
|
50
|
+
color: 'white .8',
|
|
51
|
+
round: 'Z1'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
title: {},
|
|
57
|
+
element: {
|
|
58
|
+
extend: Flex,
|
|
59
|
+
childExtend: {
|
|
60
|
+
extend: WiderButton
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const yourEnvironment = {
|
|
65
|
+
extend: commonField,
|
|
66
|
+
props: {
|
|
67
|
+
margin: '- - C2 -',
|
|
68
|
+
title: { text: 'Your environment' },
|
|
69
|
+
element: {
|
|
70
|
+
childProps: {}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
title: {},
|
|
75
|
+
element: {
|
|
76
|
+
...[
|
|
77
|
+
{ props: { icon: 'inputOutline' } },
|
|
78
|
+
{ props: { icon: 'accessibilityOutline' } },
|
|
79
|
+
{
|
|
80
|
+
props: {
|
|
81
|
+
boxSizing: 'content-box',
|
|
82
|
+
padding: 'Z C3',
|
|
83
|
+
border: '2px solid red',
|
|
84
|
+
style: { borderRadius: '50px' },
|
|
85
|
+
span: {
|
|
86
|
+
text: `I'm just playing`,
|
|
87
|
+
fontSize: 'Z'
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
icon: null,
|
|
91
|
+
span: {}
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
{
|
|
95
|
+
props: {
|
|
96
|
+
icon: 'inputOutline',
|
|
97
|
+
margin: '- - - auto'
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const yourFramework = {
|
|
105
|
+
extend: commonField,
|
|
106
|
+
props: {
|
|
107
|
+
margin: '- - F -',
|
|
108
|
+
title: { text: 'Your framework' },
|
|
109
|
+
element: { childProps: { icon: 'info' } }
|
|
110
|
+
},
|
|
111
|
+
title: {},
|
|
112
|
+
element: { ...[{}, {}, {}, {}, {}, {}] }
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const createSymbolsButton = {
|
|
116
|
+
extend: Button,
|
|
117
|
+
props: {
|
|
118
|
+
text: 'create symbols',
|
|
119
|
+
fontSize: 'Z2',
|
|
120
|
+
padding: 'Z1 C',
|
|
121
|
+
textTransform: 'capitalize',
|
|
122
|
+
round: 'C',
|
|
123
|
+
theme: 'primary'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const chooseEnvironment = {
|
|
128
|
+
header,
|
|
129
|
+
yourEnvironment,
|
|
130
|
+
yourFramework,
|
|
131
|
+
createSymbolsButton
|
|
132
|
+
}
|
package/src/pages/Color/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import globalThemes from './globalThemes'
|
|
|
6
6
|
import palette from './palette'
|
|
7
7
|
import themes from './themes'
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import { themeLightDark } from './themeLightDark'
|
|
10
|
+
import { CreatePallete } from './CreatePalette'
|
|
11
|
+
import { fontText } from './FontText'
|
|
12
|
+
import { chooseEnvironment } from './chooseEnvironment'
|
|
13
13
|
|
|
14
14
|
export const Color = {
|
|
15
15
|
key: 'colors',
|
|
@@ -21,7 +21,8 @@ export const Color = {
|
|
|
21
21
|
|
|
22
22
|
// createPallete: CreatePallete,
|
|
23
23
|
// themeLightDark,
|
|
24
|
-
// fontText
|
|
24
|
+
// fontText,
|
|
25
|
+
// chooseEnvironment,
|
|
25
26
|
|
|
26
27
|
globalThemes,
|
|
27
28
|
line: { extend: Line },
|
|
@@ -5,7 +5,8 @@ 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
|
+
import SHAPES_PNG from '../../../assets/shapes.png'
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
extend: Flex,
|
|
@@ -20,18 +21,18 @@ export default {
|
|
|
20
21
|
|
|
21
22
|
$setStateCollection: ({ state }) => [{
|
|
22
23
|
title: 'Setting up a dark theme',
|
|
23
|
-
p: '
|
|
24
|
+
p: '15 sec tutorial',
|
|
24
25
|
background: DARK_PNG,
|
|
25
26
|
href: ''
|
|
26
27
|
}, {
|
|
27
|
-
title: '
|
|
28
|
-
p: '
|
|
28
|
+
title: 'How to composite',
|
|
29
|
+
p: '3 mins tutorial',
|
|
29
30
|
background: TYPE_PNG,
|
|
30
31
|
href: ''
|
|
31
32
|
}, {
|
|
32
|
-
title: '
|
|
33
|
-
p: '
|
|
34
|
-
background:
|
|
33
|
+
title: 'Master Shapes',
|
|
34
|
+
p: '45 sec tutorial',
|
|
35
|
+
background: SHAPES_PNG,
|
|
35
36
|
href: ''
|
|
36
37
|
}]
|
|
37
38
|
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const startElementProps = {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
maxWidth: 'G',
|
|
6
|
+
width: '100%',
|
|
7
|
+
note: {
|
|
8
|
+
fontSize: 'Z1',
|
|
9
|
+
color: 'gray6',
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
whiteSpace: 'initial',
|
|
13
|
+
top: '115%',
|
|
14
|
+
left: 'Z',
|
|
15
|
+
fontFamily: 'smbls'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
export default {
|
|
4
20
|
props: {
|
|
5
21
|
margin: 'C1 - E1'
|
|
@@ -17,8 +33,9 @@ export default {
|
|
|
17
33
|
align: 'flex-start space-between',
|
|
18
34
|
childProps: {
|
|
19
35
|
flex: '1',
|
|
20
|
-
|
|
21
|
-
|
|
36
|
+
|
|
37
|
+
Terminal: startElementProps,
|
|
38
|
+
Code: startElementProps
|
|
22
39
|
}
|
|
23
40
|
},
|
|
24
41
|
|
|
@@ -26,21 +43,20 @@ export default {
|
|
|
26
43
|
extend: 'QuickStartTerminal',
|
|
27
44
|
QuickStartNumber: { width: '.87ch', text: '1' },
|
|
28
45
|
Terminal: {
|
|
29
|
-
|
|
46
|
+
note: { text: 'Install Symbols to your project' },
|
|
47
|
+
props: {
|
|
48
|
+
command: { text: 'npm i smbls -g' }
|
|
49
|
+
}
|
|
30
50
|
}
|
|
31
51
|
},
|
|
32
52
|
|
|
33
53
|
step2: {
|
|
34
|
-
extend: '
|
|
54
|
+
extend: 'QuickStartTerminal',
|
|
35
55
|
QuickStartNumber: { text: '2' },
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<SymbolsProvider config={{ color… }} />`,
|
|
41
|
-
domql: `import { init } from 'smbls'
|
|
42
|
-
init({ color, theme, typography… })`
|
|
43
|
-
}
|
|
56
|
+
Terminal: {
|
|
57
|
+
note: { text: 'Login to Symbols from command line' },
|
|
58
|
+
props: {
|
|
59
|
+
command: { text: 'smbls login' }
|
|
44
60
|
}
|
|
45
61
|
}
|
|
46
62
|
},
|
|
@@ -49,14 +65,24 @@ init({ color, theme, typography… })`
|
|
|
49
65
|
extend: 'QuickStartCode',
|
|
50
66
|
QuickStartNumber: { text: '3' },
|
|
51
67
|
Code: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
domql: `{ props: { color: 'primary' } }`
|
|
68
|
+
note: { text: 'Create .symbolsrc.js file in your project and insert your Symbols key' },
|
|
69
|
+
props: {
|
|
70
|
+
code: {
|
|
71
|
+
text: '{ "key": "key.symbo.ls" }'
|
|
57
72
|
}
|
|
58
73
|
}
|
|
59
74
|
}
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
step4: {
|
|
78
|
+
extend: 'QuickStartTerminal',
|
|
79
|
+
QuickStartNumber: { text: '4' },
|
|
80
|
+
Terminal: {
|
|
81
|
+
note: { text: 'Sync live changes' },
|
|
82
|
+
props: {
|
|
83
|
+
command: { text: 'smbls sync' }
|
|
84
|
+
}
|
|
85
|
+
}
|
|
60
86
|
}
|
|
61
87
|
}
|
|
62
88
|
}
|
|
@@ -1,9 +1,160 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
+
import { ClickableItem, Grid } from '@symbo.ls/components'
|
|
3
|
+
|
|
4
|
+
import { DesignComponent } from '../../../components'
|
|
5
|
+
|
|
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
|
+
}]
|
|
20
|
+
}, {
|
|
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
|
+
}]
|
|
41
|
+
}, {
|
|
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
|
+
}]
|
|
53
|
+
}, {
|
|
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
|
+
}]
|
|
65
|
+
}, {
|
|
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
|
+
}]
|
|
80
|
+
}, {
|
|
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
|
+
}]
|
|
98
|
+
}, {
|
|
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
|
+
}]
|
|
109
|
+
}, {
|
|
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
|
+
}]
|
|
120
|
+
}]
|
|
121
|
+
})
|
|
122
|
+
|
|
123
|
+
export const designComponents = {
|
|
124
|
+
extend: Grid,
|
|
125
|
+
props: {
|
|
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'
|
|
134
|
+
},
|
|
135
|
+
|
|
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
|
+
},
|
|
146
|
+
|
|
147
|
+
$setStateCollection: ({ state }) => state.data
|
|
148
|
+
}
|
|
2
149
|
|
|
3
150
|
export default {
|
|
151
|
+
state,
|
|
152
|
+
|
|
4
153
|
SectionHeader: {
|
|
5
154
|
margin: '- - C1',
|
|
6
155
|
title: 'Design System takeaways',
|
|
7
156
|
p: 'Your tokens in the system at a glance'
|
|
8
|
-
}
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
designComponents
|
|
9
160
|
}
|
|
@@ -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
|
}
|
package/src/state.js
CHANGED