@symbo.ls/preview 0.0.85 → 0.0.86
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/Aside.js +25 -8
- package/src/components/SlidersWithResponsive.js +1 -1
- package/src/components/SpacingPropButton/dropdown.js +1 -1
- package/src/components/SpacingPropButton/index.js +2 -2
- package/src/{pages/Spaces/Table.js → components/SpacingTable.js} +3 -2
- package/src/components/index.js +1 -0
- package/src/pages/DesignSystem/Dashboard/designElements.js +1 -0
- package/src/pages/DesignSystem/Dashboard/index.js +8 -2
- package/src/pages/DesignSystem/Dashboard/quickstart.js +0 -4
- package/src/pages/DesignSystem/Dashboard/summary.js +5 -7
- package/src/pages/DesignSystem/index.js +21 -30
- package/src/pages/Spaces/index.js +2 -3
- package/src/pages/Spaces/sequence.js +2 -4
- package/src/pages/Typography/typeScale.js +3 -2
package/package.json
CHANGED
package/src/components/Aside.js
CHANGED
|
@@ -9,6 +9,7 @@ export const NavbarButton = {
|
|
|
9
9
|
props: ({ state }) => ({
|
|
10
10
|
href: state.href,
|
|
11
11
|
active: window.location.pathname.includes(state.href),
|
|
12
|
+
isActive: window.location.pathname.includes(state.href),
|
|
12
13
|
theme: null,
|
|
13
14
|
position: 'relative',
|
|
14
15
|
style: {
|
|
@@ -18,7 +19,30 @@ export const NavbarButton = {
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
})
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const DesignSystemNavbar = {
|
|
27
|
+
tag: 'aside',
|
|
28
|
+
|
|
29
|
+
props: {
|
|
30
|
+
position: 'sticky',
|
|
31
|
+
top: 'E',
|
|
32
|
+
|
|
33
|
+
nav: {
|
|
34
|
+
gap: 'B1',
|
|
35
|
+
flow: 'column',
|
|
36
|
+
background: 'transparent',
|
|
37
|
+
color: 'gray7',
|
|
38
|
+
fontSize: 'A2'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
nav: {
|
|
43
|
+
extend: Flex,
|
|
44
|
+
childExtend: NavbarButton
|
|
45
|
+
},
|
|
22
46
|
|
|
23
47
|
Tooltip: ({ state }) => ({
|
|
24
48
|
background: 'gray0 .95',
|
|
@@ -44,10 +68,3 @@ export const NavbarButton = {
|
|
|
44
68
|
p: { text: null }
|
|
45
69
|
})
|
|
46
70
|
}
|
|
47
|
-
|
|
48
|
-
export const DesignSystemNavbar = {
|
|
49
|
-
tag: 'nav',
|
|
50
|
-
extend: Flex,
|
|
51
|
-
|
|
52
|
-
childExtend: NavbarButton
|
|
53
|
-
}
|
|
@@ -28,7 +28,7 @@ const ButtonInDropdown = {
|
|
|
28
28
|
const keyLength = Object.keys(activeProperty).length
|
|
29
29
|
const iconKey = diffIconTypes(propValue, directionValue)
|
|
30
30
|
|
|
31
|
-
const active = table.props[propValue] === row && row.key
|
|
31
|
+
const active = table.props[propValue] === (row && row.key)
|
|
32
32
|
|
|
33
33
|
const gridArea = keyLength > 3 && diffPropPosition(propValue, directionValue)
|
|
34
34
|
|
|
@@ -79,7 +79,7 @@ const DotForPropButton = {
|
|
|
79
79
|
const property = direction.parent
|
|
80
80
|
|
|
81
81
|
const propKey = diffPropValue(property.value, direction.value)
|
|
82
|
-
const active = table.props[propKey] === row && row.key
|
|
82
|
+
const active = table.props[propKey] === (row && row.key)
|
|
83
83
|
|
|
84
84
|
const isRadius = property.value === 'borderRadius'
|
|
85
85
|
|
|
@@ -116,7 +116,7 @@ export const SpacingPropButton = {
|
|
|
116
116
|
props: (element) => {
|
|
117
117
|
const { table, row, property } = getStateTree(element)
|
|
118
118
|
const propValue = property.value
|
|
119
|
-
const active = table.props[propValue] === row && row.key
|
|
119
|
+
const active = table.props[propValue] === (row && row.key)
|
|
120
120
|
return {
|
|
121
121
|
active,
|
|
122
122
|
lazyLoad: true,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sortSequence
|
|
8
8
|
} from '@symbo.ls/components'
|
|
9
9
|
|
|
10
|
-
import buttons from '
|
|
10
|
+
import buttons from '../pages/Spaces/buttons'
|
|
11
11
|
|
|
12
12
|
const Cell = {
|
|
13
13
|
tag: 'div',
|
|
@@ -72,6 +72,7 @@ const Row = {
|
|
|
72
72
|
},
|
|
73
73
|
graph: {
|
|
74
74
|
margin: '0 0 0 -B2',
|
|
75
|
+
maxWidth: '1px',
|
|
75
76
|
line: {
|
|
76
77
|
isBase: state.index === 0,
|
|
77
78
|
widthRange: `${state.val}px` || 0,
|
|
@@ -152,7 +153,7 @@ const HeaderRow = {
|
|
|
152
153
|
overlay: null
|
|
153
154
|
}
|
|
154
155
|
|
|
155
|
-
export const
|
|
156
|
+
export const SpacingTable = {
|
|
156
157
|
extend: Pseudo,
|
|
157
158
|
tag: 'section',
|
|
158
159
|
|
package/src/components/index.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Flex } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
import banners from './banners' // eslint-disable-line no-unused-vars
|
|
4
6
|
import summary from './summary'
|
|
5
7
|
import quickstart from './quickstart'
|
|
6
8
|
|
|
7
9
|
export const DesignSystemDashboard = {
|
|
10
|
+
extend: Flex,
|
|
11
|
+
|
|
12
|
+
props: { flow: 'column', gap: 'C1' },
|
|
13
|
+
|
|
8
14
|
ArticleBig: {
|
|
9
15
|
title: { text: 'Design System' },
|
|
10
16
|
p: { text: 'Create your Design System guidelines' }
|
|
11
17
|
},
|
|
12
18
|
|
|
13
|
-
banners,
|
|
19
|
+
// banners,
|
|
14
20
|
summary,
|
|
15
21
|
quickstart
|
|
16
22
|
}
|
|
@@ -7,12 +7,7 @@ import state from './state'
|
|
|
7
7
|
|
|
8
8
|
export const content = {
|
|
9
9
|
props: {
|
|
10
|
-
|
|
11
|
-
// rows: 'repeat(2, 1fr)',
|
|
12
|
-
// autoFlow: 'dense',
|
|
13
|
-
// justifyItems: 'flex-start',
|
|
14
|
-
// autoColumns: 'auto',
|
|
15
|
-
// autoRows: 'auto',
|
|
10
|
+
margin: '- -Z',
|
|
16
11
|
columns: '15rem',
|
|
17
12
|
gap: 'B1'
|
|
18
13
|
},
|
|
@@ -30,10 +25,13 @@ export const content = {
|
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
export default {
|
|
28
|
+
props: {
|
|
29
|
+
margin: '- - C1'
|
|
30
|
+
},
|
|
31
|
+
|
|
33
32
|
state,
|
|
34
33
|
|
|
35
34
|
SectionHeader: {
|
|
36
|
-
margin: '- - C1',
|
|
37
35
|
title: 'Design System takeaways',
|
|
38
36
|
p: 'Your tokens in the system at a glance'
|
|
39
37
|
},
|
|
@@ -64,7 +64,7 @@ const NAV = [{
|
|
|
64
64
|
},
|
|
65
65
|
props: {
|
|
66
66
|
icon: { name: 'icons outline colored' },
|
|
67
|
-
'.
|
|
67
|
+
'.isActive': {
|
|
68
68
|
icon: { name: 'icons colored' }
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -86,22 +86,22 @@ const NAV = [{
|
|
|
86
86
|
icon: { name: 'fontFace colored' },
|
|
87
87
|
opacity: '.7'
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
89
|
+
}, {
|
|
90
|
+
state: {
|
|
91
|
+
href: '/timing',
|
|
92
|
+
tooltip: 'Timing'
|
|
93
|
+
},
|
|
94
|
+
props: {
|
|
95
|
+
icon: { name: 'clock colored' }
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
state: {
|
|
99
|
+
href: '/sequence',
|
|
100
|
+
tooltip: 'Sequence'
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
icon: { name: 'sequence colored' }
|
|
104
|
+
}
|
|
105
105
|
}]
|
|
106
106
|
|
|
107
107
|
export const DesignSystem = {
|
|
@@ -124,18 +124,7 @@ export const DesignSystem = {
|
|
|
124
124
|
gap: 'B1',
|
|
125
125
|
padding: 'D2 A C1',
|
|
126
126
|
|
|
127
|
-
DesignSystemNavbar: {
|
|
128
|
-
gap: 'B1',
|
|
129
|
-
flow: 'column',
|
|
130
|
-
background: 'transparent',
|
|
131
|
-
color: 'gray7',
|
|
132
|
-
fontSize: 'A2',
|
|
133
|
-
position: 'sticky',
|
|
134
|
-
top: 'E'
|
|
135
|
-
},
|
|
136
|
-
|
|
137
127
|
Page: {
|
|
138
|
-
// transform: 'translate3d(-3.235%, 0, 0)',
|
|
139
128
|
padding: 'X2 C1 B1',
|
|
140
129
|
flex: 1
|
|
141
130
|
}
|
|
@@ -152,7 +141,6 @@ export const DesignSystem = {
|
|
|
152
141
|
|
|
153
142
|
define: { routes: param => param },
|
|
154
143
|
routes: {
|
|
155
|
-
// '/': DesignSystemDashboard,
|
|
156
144
|
'/design-system': DesignSystemDashboard,
|
|
157
145
|
'/colors': Color,
|
|
158
146
|
'/theme': Theme,
|
|
@@ -169,7 +157,10 @@ export const DesignSystem = {
|
|
|
169
157
|
page: {
|
|
170
158
|
extend: Flex,
|
|
171
159
|
|
|
172
|
-
DesignSystemNavbar: {
|
|
160
|
+
DesignSystemNavbar: {
|
|
161
|
+
extend: true,
|
|
162
|
+
nav: { ...NAV }
|
|
163
|
+
},
|
|
173
164
|
Page: { extend: Page }
|
|
174
165
|
},
|
|
175
166
|
|
|
@@ -27,12 +27,11 @@ export const Spaces = {
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
stateUpdated: (el, s, changes) => {
|
|
30
|
-
s.systemUpdate({
|
|
31
|
-
SPACING: { base: s.base, ratio: s.ratio }
|
|
30
|
+
s.systemUpdate({
|
|
31
|
+
SPACING: { base: s.base, ratio: s.ratio }
|
|
32
32
|
}, {
|
|
33
33
|
preventUpdate: true
|
|
34
34
|
})
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Flex } from '@symbo.ls/components'
|
|
4
|
-
import { Table } from './Table'
|
|
5
4
|
|
|
6
5
|
export default {
|
|
7
6
|
extend: [Flex],
|
|
@@ -18,8 +17,7 @@ export default {
|
|
|
18
17
|
margin: '0'
|
|
19
18
|
},
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
extend: Flex,
|
|
20
|
+
Flex: {
|
|
23
21
|
props: {
|
|
24
22
|
lazyLoad: true,
|
|
25
23
|
flow: 'column',
|
|
@@ -29,6 +27,6 @@ export default {
|
|
|
29
27
|
preview: { flex: 1 }
|
|
30
28
|
},
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
SpacingTable: {}
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
TypeScaleSequence,
|
|
5
5
|
TestText,
|
|
6
6
|
Flex,
|
|
7
|
+
Grid,
|
|
7
8
|
mapSequence,
|
|
8
9
|
sortSequence
|
|
9
10
|
} from '@symbo.ls/components'
|
|
@@ -11,11 +12,11 @@ import {
|
|
|
11
12
|
import { range0Buttons, range1Buttons } from './rangeButtons'
|
|
12
13
|
|
|
13
14
|
export default {
|
|
14
|
-
extend:
|
|
15
|
+
extend: Grid,
|
|
15
16
|
|
|
16
17
|
props: {
|
|
17
18
|
gap: 'D',
|
|
18
|
-
|
|
19
|
+
templateColumns: 'var(--spacing-F2) 1fr',
|
|
19
20
|
|
|
20
21
|
sidebar: {
|
|
21
22
|
padding: 'B 0 0',
|