@symbo.ls/preview 0.0.23 → 0.0.24
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 +4 -2
- package/src/app.js +1 -7
- package/src/index.js +11 -1
- package/src/pages/Components/grid.js +4 -4
- package/src/pages/DesignSystem/index.js +4 -5
- package/src/pages/Fonts/index.js +2 -2
- package/src/pages/Icons/index.js +1 -0
- package/src/pages/Shapes/index.js +7 -13
- package/src/pages/Spaces/SpacingScale.js +17 -14
- package/src/pages/Spaces/Table.js +5 -1
- package/src/pages/Spaces/index.js +5 -3
- package/src/pages/Theme/colorTone.js +163 -0
- package/src/pages/Theme/friendTheme.js +30 -0
- package/src/pages/Theme/index.js +185 -0
- package/src/pages/Theme/interactivity.js +115 -0
- package/src/pages/Theme/ntc.js +1689 -0
- package/src/pages/Theme/style.js +49 -0
- package/src/pages/Theme/themingTools.js +107 -0
- package/src/pages/Typography/documentStyles.js +90 -0
- package/src/pages/Typography/index.js +8 -16
- package/src/pages/Typography/rangeButtons.js +3 -4
- package/src/pages/Typography/state.js +0 -3
- package/src/pages/Typography/stylesHelpers.js +54 -0
- package/src/pages/Typography/typeScale.js +56 -71
- package/src/pages/index.js +1 -1
- package/src/pages/Typography/docStyles.js +0 -100
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { Block, Grid, Text, SelectField, CommonField } from '@symbo.ls/components'
|
|
4
|
+
|
|
5
|
+
export const interactivity = {
|
|
6
|
+
h6: {
|
|
7
|
+
extend: [Text, Block],
|
|
8
|
+
props: { text: 'Interactivity', padding: '0 0 Z2 0', size: 'B' },
|
|
9
|
+
style: { fontWeight: 'normal', margin: 0 }
|
|
10
|
+
},
|
|
11
|
+
interactivitySet: {
|
|
12
|
+
extend: Grid,
|
|
13
|
+
props: {
|
|
14
|
+
columns: 'repeat(4, 1fr)',
|
|
15
|
+
rows: 'repear(2, 1fr)',
|
|
16
|
+
columnGap: 'C',
|
|
17
|
+
rowGap: 'A2'
|
|
18
|
+
},
|
|
19
|
+
style: { width: 'fit-content' },
|
|
20
|
+
childExtend: {
|
|
21
|
+
extend: CommonField,
|
|
22
|
+
props: { padding: 0 },
|
|
23
|
+
element: {
|
|
24
|
+
extend: SelectField,
|
|
25
|
+
buttons: { ...[{ props: { icon: 'plus' } }] }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
...[
|
|
29
|
+
{
|
|
30
|
+
caption: { props: { text: ':hover' } },
|
|
31
|
+
element: {
|
|
32
|
+
title: {
|
|
33
|
+
props: { icon: 'hoverOutline', text: 'none' }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
caption: { props: { text: ':focus' } },
|
|
39
|
+
element: {
|
|
40
|
+
title: {
|
|
41
|
+
props: { icon: 'focusOutline', text: 'none' }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
caption: { props: { text: ':active' } },
|
|
47
|
+
element: {
|
|
48
|
+
title: {
|
|
49
|
+
props: { icon: 'clickOutline', text: 'none' }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
caption: { props: { text: ':selection' } },
|
|
55
|
+
element: {
|
|
56
|
+
title: {
|
|
57
|
+
props: { icon: 'selection', text: 'none' }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
caption: { props: { text: ':link' } },
|
|
63
|
+
element: {
|
|
64
|
+
title: {
|
|
65
|
+
props: { icon: 'clickOutline', text: 'none' }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
caption: { props: { text: ':visited' } },
|
|
71
|
+
element: {
|
|
72
|
+
title: {
|
|
73
|
+
props: { icon: 'focusOutline', text: 'none' }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
caption: { props: { text: ':disabled' } },
|
|
79
|
+
element: {
|
|
80
|
+
title: {
|
|
81
|
+
props: { icon: 'disabled', text: 'none' }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
{
|
|
87
|
+
caption: null,
|
|
88
|
+
style: {
|
|
89
|
+
display: 'flex',
|
|
90
|
+
alignItems: 'flex-end'
|
|
91
|
+
},
|
|
92
|
+
element: {
|
|
93
|
+
title: {
|
|
94
|
+
props: { text: 'Add :pseudo' }
|
|
95
|
+
},
|
|
96
|
+
buttons: {
|
|
97
|
+
style: {
|
|
98
|
+
button: {
|
|
99
|
+
background: 'transparent',
|
|
100
|
+
borderRadius: 0,
|
|
101
|
+
'&:first-child': { borderRight: '.1px solid rgba(255, 255, 255, .1)' },
|
|
102
|
+
'&:hover': { background: 'transparent' }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
...[
|
|
106
|
+
{ props: { icon: 'arrowAngleDown' } },
|
|
107
|
+
{ props: { icon: 'plus' } }
|
|
108
|
+
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|