@symbo.ls/preview 0.0.24 → 0.0.25
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/pages/Account/index.js +2 -2
- package/src/pages/Account/setUpProject.js +2 -2
- package/src/pages/ColorEditor/friendTheme.js +2 -2
- package/src/pages/ColorEditor/interactivity.js +2 -2
- package/src/pages/ColorEditor/themingTools.js +2 -2
- package/src/pages/Spaces/__/preview.js +3 -3
- package/src/pages/Theme/friendTheme.js +2 -2
- package/src/pages/Theme/themingTools.js +2 -2
- package/src/pages/Typography/documentStyles.js +62 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Text, Block, Link, SquareButton, Img, ClickableItem,
|
|
3
|
+
import { Text, Block, Link, SquareButton, Img, ClickableItem, SelectFieldWithCaption, Grid, CheckButton } from '@symbo.ls/components'
|
|
4
4
|
// import { account } from '../SignUp'
|
|
5
5
|
|
|
6
6
|
import setUpProject from './setUpProject'
|
|
@@ -128,7 +128,7 @@ const fillFields = {
|
|
|
128
128
|
rowGap: 'C2'
|
|
129
129
|
},
|
|
130
130
|
childExtend: {
|
|
131
|
-
extend:
|
|
131
|
+
extend: SelectFieldWithCaption,
|
|
132
132
|
style: {
|
|
133
133
|
'> input': { width: '270x', minWidth: '270px', height: '42px' }
|
|
134
134
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Text, Block, Img, SquareButton,
|
|
3
|
+
import { Text, Block, Img, SquareButton, SelectField } from '@symbo.ls/components'
|
|
4
4
|
import { SetUp } from '..'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
126
126
|
{
|
|
127
127
|
caption: { props: { text: 'UI Framework' } },
|
|
128
128
|
element: {
|
|
129
|
-
extend:
|
|
129
|
+
extend: SelectField,
|
|
130
130
|
title: {
|
|
131
131
|
props: { text: 'React' },
|
|
132
132
|
style: { color: 'white' }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { CommonField,
|
|
3
|
+
import { CommonField, SelectField } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
export const friendTheme = {
|
|
6
6
|
extend: CommonField,
|
|
@@ -11,7 +11,7 @@ export const friendTheme = {
|
|
|
11
11
|
style: { opacity: 1, fontWeight: 'normal', margin: 0 }
|
|
12
12
|
},
|
|
13
13
|
element: {
|
|
14
|
-
extend:
|
|
14
|
+
extend: SelectField,
|
|
15
15
|
style: {
|
|
16
16
|
background: 'transparent',
|
|
17
17
|
paddingLeft: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Block, Grid, Text,
|
|
3
|
+
import { Block, Grid, Text, SelectField, CommonField } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
export const interactivity = {
|
|
6
6
|
h6: {
|
|
@@ -21,7 +21,7 @@ export const interactivity = {
|
|
|
21
21
|
extend: CommonField,
|
|
22
22
|
props: { padding: 0 },
|
|
23
23
|
element: {
|
|
24
|
-
extend:
|
|
24
|
+
extend: SelectField,
|
|
25
25
|
buttons: { ...[{ props: { icon: 'plus' } }] }
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Grid, ColorSwitcher, CommonField,
|
|
3
|
+
import { Grid, ColorSwitcher, CommonField, SelectField, ButtonSet, ClickableItem } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
ColorSwitcher.props = (el, s) => {
|
|
@@ -72,7 +72,7 @@ export const themingTools = {
|
|
|
72
72
|
props: { caption: 'Use as' },
|
|
73
73
|
caption: {},
|
|
74
74
|
element: {
|
|
75
|
-
extend:
|
|
75
|
+
extend: SelectField,
|
|
76
76
|
title: { props: { text: 'Background color' } },
|
|
77
77
|
buttons: { ...[{ props: { icon: 'arrowAngleMirroringVertical', theme: 'transparent' } }] }
|
|
78
78
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { stylePreview, styleScene } from './style'
|
|
4
4
|
|
|
5
|
-
import { Block, Button, Flex, Text, ResponsiveToolBar, Scene, SequenceGraph, StaticSpacing, CommonField,
|
|
5
|
+
import { Block, Button, Flex, Text, ResponsiveToolBar, Scene, SequenceGraph, StaticSpacing, CommonField, RangeFieldWithCaption, SelectFieldWithCaption } from '@symbo.ls/components'
|
|
6
6
|
|
|
7
7
|
const buttonDownload = {
|
|
8
8
|
extend: Button,
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
56
56
|
// },
|
|
57
57
|
|
|
58
58
|
{
|
|
59
|
-
extend:
|
|
59
|
+
extend: SelectFieldWithCaption,
|
|
60
60
|
style: { marginTop: `${26 / 16}em` },
|
|
61
61
|
caption: { props: { text: 'Used for' } },
|
|
62
62
|
element: {
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
childExtend: CommonField,
|
|
77
77
|
...[
|
|
78
78
|
{
|
|
79
|
-
extend:
|
|
79
|
+
extend: RangeFieldWithCaption,
|
|
80
80
|
caption: { text: 'Base size' },
|
|
81
81
|
element: {
|
|
82
82
|
button0: {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { CommonField,
|
|
3
|
+
import { CommonField, SelectField } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
export const friendTheme = {
|
|
6
6
|
extend: CommonField,
|
|
@@ -11,7 +11,7 @@ export const friendTheme = {
|
|
|
11
11
|
style: { opacity: 1, fontWeight: 'normal', margin: 0 }
|
|
12
12
|
},
|
|
13
13
|
element: {
|
|
14
|
-
extend:
|
|
14
|
+
extend: SelectField,
|
|
15
15
|
style: {
|
|
16
16
|
background: 'transparent',
|
|
17
17
|
paddingLeft: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Grid, ColorSwitcher, CommonField,
|
|
3
|
+
import { Grid, ColorSwitcher, CommonField, SelectField, ButtonSet, ClickableItem } from '@symbo.ls/components'
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
ColorSwitcher.props = (el, s) => {
|
|
@@ -72,7 +72,7 @@ export const themingTools = {
|
|
|
72
72
|
props: { caption: 'Use as' },
|
|
73
73
|
caption: {},
|
|
74
74
|
element: {
|
|
75
|
-
extend:
|
|
75
|
+
extend: SelectField,
|
|
76
76
|
title: { props: { text: 'Background color' } },
|
|
77
77
|
buttons: { ...[{ props: { icon: 'arrowAngleMirroringVertical', theme: 'transparent' } }] }
|
|
78
78
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DocumentStylesSequence,
|
|
5
|
+
Flex,
|
|
6
|
+
SectionHeader,
|
|
7
|
+
SelectField,
|
|
8
|
+
SequenceSliders,
|
|
9
|
+
TestText
|
|
10
|
+
} from '@symbo.ls/components'
|
|
11
|
+
// import { mapSequence, sortSequence } from '@symbo.ls/utils'
|
|
4
12
|
import stylesHelpers from './stylesHelpers'
|
|
5
13
|
|
|
6
14
|
export default {
|
|
@@ -12,15 +20,50 @@ export default {
|
|
|
12
20
|
}
|
|
13
21
|
},
|
|
14
22
|
|
|
23
|
+
styles: {
|
|
24
|
+
extend: Flex,
|
|
25
|
+
|
|
26
|
+
props: {
|
|
27
|
+
flow: 'column',
|
|
28
|
+
gap: 'C',
|
|
29
|
+
align: 'flex-start flex-start',
|
|
30
|
+
header: {
|
|
31
|
+
width: '100%',
|
|
32
|
+
align: 'center space-between'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
header: {
|
|
37
|
+
extend: Flex,
|
|
38
|
+
SequenceSliders,
|
|
39
|
+
TestText
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
sequence: {
|
|
43
|
+
extend: DocumentStylesSequence,
|
|
44
|
+
$setCollection: (el) => {
|
|
45
|
+
const { state, context } = el // eslint-disable-line no-unused-vars
|
|
46
|
+
const { TYPOGRAPHY } = context.SYSTEM
|
|
47
|
+
const { styles } = TYPOGRAPHY
|
|
48
|
+
console.log(styles)
|
|
49
|
+
// state.sequence = {}
|
|
50
|
+
return styles
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
footer: { }
|
|
55
|
+
},
|
|
56
|
+
|
|
15
57
|
fields: {
|
|
16
58
|
extend: Flex,
|
|
17
|
-
props: {
|
|
59
|
+
props: {
|
|
60
|
+
gap: 'A',
|
|
61
|
+
align: 'center flex-start'
|
|
62
|
+
},
|
|
18
63
|
|
|
19
64
|
interactivities: {
|
|
20
65
|
extend: Flex,
|
|
21
|
-
props: {
|
|
22
|
-
gap: 'A'
|
|
23
|
-
},
|
|
66
|
+
props: { gap: 'A' },
|
|
24
67
|
childExtend: {
|
|
25
68
|
extend: SelectField,
|
|
26
69
|
props: {
|
|
@@ -56,13 +99,15 @@ export default {
|
|
|
56
99
|
}]
|
|
57
100
|
},
|
|
58
101
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
102
|
+
VerticalLine: {
|
|
103
|
+
height: 'B',
|
|
104
|
+
margin: '0 Z1'
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
IconButton: {
|
|
108
|
+
theme: 'quinary',
|
|
109
|
+
position: 'relative',
|
|
110
|
+
icon: 'plus'
|
|
66
111
|
},
|
|
67
112
|
|
|
68
113
|
addsomething: {
|
|
@@ -74,13 +119,11 @@ export default {
|
|
|
74
119
|
}
|
|
75
120
|
},
|
|
76
121
|
title: {},
|
|
77
|
-
buttons: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}]
|
|
83
|
-
}
|
|
122
|
+
buttons: [{
|
|
123
|
+
props: { icon: 'plus' }
|
|
124
|
+
}, {
|
|
125
|
+
props: { icon: 'arrowAngleMirroringVertical' }
|
|
126
|
+
}]
|
|
84
127
|
}
|
|
85
128
|
},
|
|
86
129
|
|