@symbo.ls/preview 0.0.62 → 0.0.64
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/mask1.png +0 -0
- package/src/assets/mask2.png +0 -0
- package/src/components/Banner.js +1 -1
- package/src/components/DesignComponent.js +2 -1
- package/src/components/Page.js +44 -0
- package/src/components/SlidersWithResponsive.js +2 -2
- package/src/index.js +2 -2
- package/src/pages/DesignSystem/Dashboard/quickstart.js +4 -2
- package/src/pages/DesignSystem/Dashboard/state.js +118 -0
- package/src/pages/DesignSystem/Dashboard/summary.js +13 -131
- package/src/pages/DesignSystem/index.js +3 -1
- package/src/pages/Library/index.js +6 -14
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/components/Banner.js
CHANGED
package/src/components/Page.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { PageTemplate } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
|
+
import MASK1 from '../assets/mask1.png'
|
|
6
|
+
import MASK2 from '../assets/mask2.png' // eslint-disable-line
|
|
7
|
+
|
|
5
8
|
export const Page = {
|
|
6
9
|
tag: 'main',
|
|
7
10
|
extend: PageTemplate,
|
|
@@ -10,3 +13,44 @@ export const Page = {
|
|
|
10
13
|
maxWidth: 'K-default'
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
|
|
17
|
+
export const DisabledPage = {
|
|
18
|
+
props: {
|
|
19
|
+
maxHeight: 'calc(100vh - 7em)',
|
|
20
|
+
overflow: 'hidden'
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
Overlay: {
|
|
24
|
+
props: {
|
|
25
|
+
overflow: 'hidden',
|
|
26
|
+
background: 'shadow-overlay',
|
|
27
|
+
animation: 'fadeInUp',
|
|
28
|
+
animationDuration: 'G'
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
Overlay: {
|
|
32
|
+
props: {
|
|
33
|
+
background: 'gradient-colorful',
|
|
34
|
+
inset: '0 0 0 0',
|
|
35
|
+
opacity: '.9',
|
|
36
|
+
style: {
|
|
37
|
+
// filter: 'blur(110px)',
|
|
38
|
+
WebkitMaskImage: 'url(' + MASK1 + ')',
|
|
39
|
+
WebkitMaskSize: '100% 100%'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
H4: {
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
margin: '0',
|
|
47
|
+
color: 'black',
|
|
48
|
+
left: 'C',
|
|
49
|
+
bottom: 'B',
|
|
50
|
+
text: 'Custom library will come up soon…',
|
|
51
|
+
animation: 'fadeInUpLong',
|
|
52
|
+
animationDuration: 'G',
|
|
53
|
+
animationDelay: 'G'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/src/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import * as smbls from '@symbo.ls/components'
|
|
|
10
10
|
import * as components from './components'
|
|
11
11
|
|
|
12
12
|
import App from './app'
|
|
13
|
-
import { Library } from './pages'
|
|
13
|
+
import { DesignSystem, Library } from './pages' // eslint-disable-line
|
|
14
14
|
import { router, lastLevel } from '@domql/router'
|
|
15
15
|
|
|
16
16
|
import { context } from './state'
|
|
@@ -30,7 +30,7 @@ const app = DOM.create({
|
|
|
30
30
|
|
|
31
31
|
header: components.Header,
|
|
32
32
|
routes: {
|
|
33
|
-
'/':
|
|
33
|
+
// '/': DesignSystem
|
|
34
34
|
}
|
|
35
35
|
}, undefined, 'app', {
|
|
36
36
|
extend: [smbls.Box],
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const startElementProps = {
|
|
4
4
|
position: 'relative',
|
|
5
|
-
|
|
5
|
+
minWidth: 'G',
|
|
6
|
+
maxWidth: 'G2',
|
|
6
7
|
width: '100%',
|
|
7
8
|
note: {
|
|
8
9
|
fontSize: 'Z1',
|
|
@@ -29,7 +30,8 @@ export default {
|
|
|
29
30
|
|
|
30
31
|
Flex: {
|
|
31
32
|
props: {
|
|
32
|
-
|
|
33
|
+
// display: 'inline-flex',
|
|
34
|
+
gap: 'D1',
|
|
33
35
|
align: 'flex-start space-between',
|
|
34
36
|
childProps: {
|
|
35
37
|
flex: '1',
|
|
@@ -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,135 +1,19 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
import { ClickableItem, Grid } from '@symbo.ls/components'
|
|
3
2
|
|
|
3
|
+
import { ClickableItem } from '@symbo.ls/components'
|
|
4
4
|
import { DesignComponent } from '../../../components'
|
|
5
5
|
|
|
6
|
-
|
|
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
|
-
})
|
|
6
|
+
import state from './state'
|
|
122
7
|
|
|
123
|
-
export const
|
|
124
|
-
extend: Grid,
|
|
8
|
+
export const content = {
|
|
125
9
|
props: {
|
|
126
|
-
columns: `repeat(
|
|
127
|
-
rows: 'repeat(2, 1fr)',
|
|
128
|
-
autoFlow: 'dense',
|
|
129
|
-
justifyItems: 'flex-start',
|
|
130
|
-
autoColumns: 'auto',
|
|
131
|
-
autoRows: 'auto',
|
|
132
|
-
|
|
10
|
+
// columns: `repeat(6, 1fr)`,
|
|
11
|
+
// rows: 'repeat(2, 1fr)',
|
|
12
|
+
// autoFlow: 'dense',
|
|
13
|
+
// justifyItems: 'flex-start',
|
|
14
|
+
// autoColumns: 'auto',
|
|
15
|
+
// autoRows: 'auto',
|
|
16
|
+
columns: '15rem',
|
|
133
17
|
gap: 'B1'
|
|
134
18
|
},
|
|
135
19
|
|
|
@@ -137,10 +21,8 @@ export const designComponents = {
|
|
|
137
21
|
extend: [ClickableItem, DesignComponent],
|
|
138
22
|
props: {
|
|
139
23
|
maxWidth: 'none',
|
|
140
|
-
width: '100%'
|
|
141
|
-
|
|
142
|
-
// flex: '1 1 100%'
|
|
143
|
-
// widthRange: 'F2 G'
|
|
24
|
+
width: '100%',
|
|
25
|
+
margin: '- - B1'
|
|
144
26
|
}
|
|
145
27
|
},
|
|
146
28
|
|
|
@@ -156,5 +38,5 @@ export default {
|
|
|
156
38
|
p: 'Your tokens in the system at a glance'
|
|
157
39
|
},
|
|
158
40
|
|
|
159
|
-
|
|
41
|
+
content
|
|
160
42
|
}
|
|
@@ -152,6 +152,7 @@ export const DesignSystem = {
|
|
|
152
152
|
|
|
153
153
|
define: { routes: param => param },
|
|
154
154
|
routes: {
|
|
155
|
+
'/': DesignSystemDashboard,
|
|
155
156
|
'/design-system': DesignSystemDashboard,
|
|
156
157
|
'/colors': Color,
|
|
157
158
|
'/theme': Theme,
|
|
@@ -169,7 +170,6 @@ export const DesignSystem = {
|
|
|
169
170
|
extend: Flex,
|
|
170
171
|
|
|
171
172
|
DesignSystemNavbar: { extend: true, ...NAV },
|
|
172
|
-
|
|
173
173
|
Page: { extend: Page }
|
|
174
174
|
},
|
|
175
175
|
|
|
@@ -192,3 +192,5 @@ export const DesignSystem = {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
+
|
|
196
|
+
export * from './Dashboard'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { ComponentTemplate } from '@symbo.ls/components'
|
|
4
|
-
import { Page } from '../../components'
|
|
4
|
+
import { Page, DisabledPage } from '../../components'
|
|
5
5
|
|
|
6
|
-
import { COMPONENTS } from '../../../.symbols'
|
|
6
|
+
import { COMPONENTS } from '../../../.symbols' // eslint-disable-line
|
|
7
7
|
|
|
8
8
|
export const Library = {
|
|
9
|
-
extend: Page,
|
|
9
|
+
extend: [Page, DisabledPage],
|
|
10
10
|
|
|
11
11
|
SectionHeader: {
|
|
12
12
|
title: 'My Symbols',
|
|
@@ -27,17 +27,9 @@ export const Library = {
|
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
childExtend: ComponentTemplate,
|
|
30
|
-
$setStateCollection: () =>
|
|
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
|
-
|
|
30
|
+
$setStateCollection: () => {
|
|
31
|
+
return new Array(14)
|
|
32
|
+
// COMPONENTS
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
}
|