@symbo.ls/preview 0.0.9
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/.babelrc.js +5 -0
- package/.coveralls.yml +1 -0
- package/.eslintignore +1 -0
- package/.eslintrc.js +15 -0
- package/.prettierrc +4 -0
- package/.symbols/button-archived/index.js +63 -0
- package/.symbols/button-archived/style.js +5 -0
- package/.symbols/button-circle/index.js +62 -0
- package/.symbols/button-contacts/index.js +48 -0
- package/.symbols/button-contacts/style.js +13 -0
- package/.symbols/button-download/index.js +59 -0
- package/.symbols/button-pro/index.js +98 -0
- package/.symbols/button-pro/style.js +19 -0
- package/.symbols/button-theme-switcher/index.js +104 -0
- package/.symbols/button-theme-switcher/style.js +16 -0
- package/.symbols/button-user/index.js +82 -0
- package/.symbols/button-user/style.js +25 -0
- package/.symbols/categories.js +44 -0
- package/.symbols/datepicker/index.js +40 -0
- package/.symbols/datepicker/style.js +4 -0
- package/.symbols/dropdown-list/index.js +56 -0
- package/.symbols/field/index.js +40 -0
- package/.symbols/index.js +33 -0
- package/.symbols/label/index.js +40 -0
- package/.symbols/notification/index.js +49 -0
- package/.symbols/notification/style.js +5 -0
- package/.symbols/pills/index.js +37 -0
- package/.symbols/tooltip/index.js +38 -0
- package/.vscode/settings.json +3 -0
- package/README.md +19 -0
- package/app.webmanifest +4 -0
- package/index.html +22 -0
- package/package.json +48 -0
- package/protect-pwd.js +65 -0
- package/src/animations.js +71 -0
- package/src/app.js +79 -0
- package/src/assets/dots.png +0 -0
- package/src/assets/dotsDark.png +0 -0
- package/src/assets/fonts/FiraGO/FiraGO-Bold.woff2 +0 -0
- package/src/assets/fonts/FiraGO/FiraGO-Light.woff2 +0 -0
- package/src/assets/fonts/FiraGO/FiraGO-Medium.woff2 +0 -0
- package/src/assets/fonts/FiraGO/FiraGO-Regular.woff2 +0 -0
- package/src/assets/fonts/europa-bold-webfont.woff2 +0 -0
- package/src/assets/fonts/europa-bolditalic-webfont.woff2 +0 -0
- package/src/assets/fonts/europa-light-webfont.woff2 +0 -0
- package/src/assets/fonts/europa-lightitalic-webfont.woff2 +0 -0
- package/src/assets/fonts/europa-regular-webfont.woff2 +0 -0
- package/src/assets/fonts/europa-regularitalic-webfont.woff2 +0 -0
- package/src/assets/ovalCircle.svg +9 -0
- package/src/components/Header.js +21 -0
- package/src/components/index.js +3 -0
- package/src/config/color.js +8 -0
- package/src/config/font.js +0 -0
- package/src/config/index.js +19 -0
- package/src/config/theme.js +85 -0
- package/src/dev.html +19 -0
- package/src/index.js +33 -0
- package/src/pages/Account/index.js +241 -0
- package/src/pages/Account/setUpProject.js +142 -0
- package/src/pages/Color/colors.js +58 -0
- package/src/pages/Color/documentThemes.js +101 -0
- package/src/pages/Color/index.js +20 -0
- package/src/pages/Color/style.js +7 -0
- package/src/pages/Color/themes.js +131 -0
- package/src/pages/ColorEditor/colorTone.js +163 -0
- package/src/pages/ColorEditor/friendTheme.js +30 -0
- package/src/pages/ColorEditor/index.js +178 -0
- package/src/pages/ColorEditor/interactivity.js +116 -0
- package/src/pages/ColorEditor/ntc.js +1689 -0
- package/src/pages/ColorEditor/style.js +49 -0
- package/src/pages/ColorEditor/themingTools.js +107 -0
- package/src/pages/Components/grid.js +94 -0
- package/src/pages/Components/index.js +40 -0
- package/src/pages/Components/sidebar.js +23 -0
- package/src/pages/Components/style.js +16 -0
- package/src/pages/DesignSystem/index.js +106 -0
- package/src/pages/DesignSystem/style.js +1 -0
- package/src/pages/Editor/index.js +46 -0
- package/src/pages/Editor/layers.js +126 -0
- package/src/pages/Editor/scene.js +97 -0
- package/src/pages/Editor/style.js +13 -0
- package/src/pages/Editor/tools.js +360 -0
- package/src/pages/Export/_tools_old.js +49 -0
- package/src/pages/Export/const.js +18 -0
- package/src/pages/Export/description.js +56 -0
- package/src/pages/Export/index.js +74 -0
- package/src/pages/Export/scene.js +62 -0
- package/src/pages/Export/state.js +21 -0
- package/src/pages/Export/style.js +21 -0
- package/src/pages/Export/tools.js +14 -0
- package/src/pages/Icons/index.js +72 -0
- package/src/pages/Icons/style.js +1 -0
- package/src/pages/Library/index.js +32 -0
- package/src/pages/Library/style.js +36 -0
- package/src/pages/PageExtend.js +12 -0
- package/src/pages/Shapes/index.js +161 -0
- package/src/pages/Shapes/style.js +28 -0
- package/src/pages/Spaces/boxModel.js +3 -0
- package/src/pages/Spaces/index.js +58 -0
- package/src/pages/Spaces/preview.js +133 -0
- package/src/pages/Spaces/sequence.js +3 -0
- package/src/pages/Spaces/state.js +18 -0
- package/src/pages/Spaces/style.js +30 -0
- package/src/pages/Typography/docFonts.js +128 -0
- package/src/pages/Typography/docStyles.js +97 -0
- package/src/pages/Typography/index.js +52 -0
- package/src/pages/Typography/shared.js +10 -0
- package/src/pages/Typography/state.js +15 -0
- package/src/pages/Typography/style.js +11 -0
- package/src/pages/Typography/typeScale.js +104 -0
- package/src/pages/index.js +13 -0
- package/src/protect.js +114 -0
- package/src/state.js +7 -0
- package/src/style.js +7 -0
- package/src/test.js +30 -0
- package/svgSprite.config.js +7 -0
- package/test/index.test.js +5 -0
package/.babelrc.js
ADDED
package/.coveralls.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
repo_token: jmDeY99lLJ2iGLoz74cFs3X0Z2h5bYo1j
|
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dist/**/*.js
|
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"extends": "standard",
|
|
3
|
+
"plugins": ["jest"],
|
|
4
|
+
"env": {
|
|
5
|
+
"es6": true,
|
|
6
|
+
"browser": true,
|
|
7
|
+
"node": true,
|
|
8
|
+
"jest": true
|
|
9
|
+
},
|
|
10
|
+
overrides: [{
|
|
11
|
+
files: [ 'test/**/*.test.js' ],
|
|
12
|
+
env: { jest: true },
|
|
13
|
+
plugins: [ 'jest' ]
|
|
14
|
+
}]
|
|
15
|
+
}
|
package/.prettierrc
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import style from './style'
|
|
6
|
+
import { Button } from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
const key = 'all-star'
|
|
9
|
+
const title = 'All Star'
|
|
10
|
+
const description = ''
|
|
11
|
+
const category = CATEGORIES[1]
|
|
12
|
+
|
|
13
|
+
const component = {
|
|
14
|
+
extend: Button,
|
|
15
|
+
style,
|
|
16
|
+
|
|
17
|
+
props: {
|
|
18
|
+
icon: 'star',
|
|
19
|
+
text: 'All Star',
|
|
20
|
+
theme: 'label',
|
|
21
|
+
padding: 'X1 Z2',
|
|
22
|
+
gap: 'X',
|
|
23
|
+
round: 'A'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const code = `{
|
|
28
|
+
extend: Button,
|
|
29
|
+
props: {
|
|
30
|
+
round: 'A',
|
|
31
|
+
padding: 'Z A',
|
|
32
|
+
icon: 'star',
|
|
33
|
+
text: 'Archived',
|
|
34
|
+
theme: 'label'
|
|
35
|
+
}
|
|
36
|
+
}`
|
|
37
|
+
|
|
38
|
+
const defaultState = {}
|
|
39
|
+
const props = {
|
|
40
|
+
icon: 'star',
|
|
41
|
+
text: 'Archived',
|
|
42
|
+
theme: 'label',
|
|
43
|
+
spacingRatio: '1.618',
|
|
44
|
+
round: 'A'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const settings = {
|
|
48
|
+
gridOptions: { colspan: 3, rowspan: 2 }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
key,
|
|
53
|
+
title,
|
|
54
|
+
description,
|
|
55
|
+
category,
|
|
56
|
+
component,
|
|
57
|
+
code,
|
|
58
|
+
defaultState,
|
|
59
|
+
props,
|
|
60
|
+
settings,
|
|
61
|
+
interactivity: [],
|
|
62
|
+
dataTypes: []
|
|
63
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import { CircleButton } from '@symbo.ls/components'
|
|
6
|
+
|
|
7
|
+
const key = 'button-circle'
|
|
8
|
+
const title = 'Circle Button'
|
|
9
|
+
const description = ''
|
|
10
|
+
const category = CATEGORIES[1]
|
|
11
|
+
|
|
12
|
+
const component = {
|
|
13
|
+
extend: CircleButton,
|
|
14
|
+
props: {
|
|
15
|
+
theme: 'secondary',
|
|
16
|
+
icon: null,
|
|
17
|
+
text: '3'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const code = {
|
|
22
|
+
react: `<CircleButton
|
|
23
|
+
...{
|
|
24
|
+
theme: 'secondary',
|
|
25
|
+
padding: 'Y2',
|
|
26
|
+
text: '3'
|
|
27
|
+
} />`,
|
|
28
|
+
domql: `{
|
|
29
|
+
extend: CircleButton,
|
|
30
|
+
props: {
|
|
31
|
+
theme: 'secondary',
|
|
32
|
+
padding: 'Y2',
|
|
33
|
+
text: '3'
|
|
34
|
+
}
|
|
35
|
+
}`
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const defaultState = {}
|
|
39
|
+
const props = {
|
|
40
|
+
theme: 'secondary',
|
|
41
|
+
padding: 'Y2',
|
|
42
|
+
spacingRatio: '1.618',
|
|
43
|
+
text: '3'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const settings = {
|
|
47
|
+
gridOptions: { colspan: 2, rowspan: 2 }
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
key,
|
|
52
|
+
title,
|
|
53
|
+
description,
|
|
54
|
+
category,
|
|
55
|
+
component,
|
|
56
|
+
code,
|
|
57
|
+
defaultState,
|
|
58
|
+
props,
|
|
59
|
+
settings,
|
|
60
|
+
interactivity: ['click'],
|
|
61
|
+
dataTypes: ['object']
|
|
62
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
import style from './style'
|
|
5
|
+
|
|
6
|
+
import { Button, UserBundle } from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
const key = 'button-contacts'
|
|
9
|
+
const title = 'Contacts Button'
|
|
10
|
+
const description = ''
|
|
11
|
+
const category = CATEGORIES[1]
|
|
12
|
+
|
|
13
|
+
const component = {
|
|
14
|
+
extend: [UserBundle],
|
|
15
|
+
...[{}, {}, {}]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const code = `{
|
|
19
|
+
round: 42,
|
|
20
|
+
users: [{}, {}, {}],
|
|
21
|
+
caption: 'View all Contacts'
|
|
22
|
+
}`
|
|
23
|
+
|
|
24
|
+
const defaultState = {}
|
|
25
|
+
const props = {
|
|
26
|
+
round: 42,
|
|
27
|
+
users: [{}, {}, {}],
|
|
28
|
+
caption: 'View all Contacts'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const settings = {
|
|
32
|
+
gridOptions: { colspan: 5, rowspan: 2 }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
key,
|
|
37
|
+
title,
|
|
38
|
+
description,
|
|
39
|
+
category,
|
|
40
|
+
component,
|
|
41
|
+
code,
|
|
42
|
+
defaultState,
|
|
43
|
+
|
|
44
|
+
props,
|
|
45
|
+
settings,
|
|
46
|
+
interactivity: [],
|
|
47
|
+
dataTypes: []
|
|
48
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import { Button } from '@symbo.ls/components'
|
|
6
|
+
|
|
7
|
+
const key = 'button-download'
|
|
8
|
+
const title = 'Download Button'
|
|
9
|
+
const description = ''
|
|
10
|
+
const category = CATEGORIES[1]
|
|
11
|
+
|
|
12
|
+
const component = {
|
|
13
|
+
extend: Button,
|
|
14
|
+
props: {
|
|
15
|
+
icon: 'arrowDown',
|
|
16
|
+
gap: 'X2',
|
|
17
|
+
theme: 'quaternary',
|
|
18
|
+
text: 'Download',
|
|
19
|
+
padding: 'Z2 B2',
|
|
20
|
+
round: 'C'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const code = `{
|
|
25
|
+
extend: Button,
|
|
26
|
+
props: {
|
|
27
|
+
icon: 'arrowDown',
|
|
28
|
+
theme: 'quaternary',
|
|
29
|
+
text: 'Download',
|
|
30
|
+
round: 'C'
|
|
31
|
+
}
|
|
32
|
+
}`
|
|
33
|
+
|
|
34
|
+
const defaultState = {}
|
|
35
|
+
const props = {
|
|
36
|
+
icon: 'arrowDown',
|
|
37
|
+
theme: 'quaternary',
|
|
38
|
+
text: 'Download',
|
|
39
|
+
round: 'C'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const settings = {
|
|
43
|
+
gridOptions: { colspan: 4, rowspan: 2 }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
key,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
category,
|
|
51
|
+
component,
|
|
52
|
+
code,
|
|
53
|
+
defaultState,
|
|
54
|
+
|
|
55
|
+
props,
|
|
56
|
+
settings,
|
|
57
|
+
interactivity: ['click'],
|
|
58
|
+
dataTypes: ['object']
|
|
59
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import style from './style'
|
|
6
|
+
import { KangorooButton } from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
const key = 'button-pro'
|
|
9
|
+
const title = 'Pro Button'
|
|
10
|
+
const description = ''
|
|
11
|
+
const category = CATEGORIES[1]
|
|
12
|
+
|
|
13
|
+
const component = {
|
|
14
|
+
style,
|
|
15
|
+
extend: KangorooButton,
|
|
16
|
+
|
|
17
|
+
props: {
|
|
18
|
+
theme: 'lightDark',
|
|
19
|
+
round: 'Z2',
|
|
20
|
+
padding: ['X1', 'X1', 'X1', 'A'],
|
|
21
|
+
size: 'A',
|
|
22
|
+
gap: 'Z',
|
|
23
|
+
|
|
24
|
+
iconText: {
|
|
25
|
+
gap: 'X1',
|
|
26
|
+
icon: 'star',
|
|
27
|
+
text: 'Become PRO',
|
|
28
|
+
alignItems: 'center'
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
label: {
|
|
32
|
+
round: 12,
|
|
33
|
+
theme: ['lightDark', 'inverse'],
|
|
34
|
+
size: 'Z',
|
|
35
|
+
padding: 'Z A2',
|
|
36
|
+
text: '1 month free'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
iconText: {
|
|
41
|
+
|
|
42
|
+
props: el => el.parent.props.iconText
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
child: {
|
|
46
|
+
props: el => el.parent.props.label
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const code = `{
|
|
51
|
+
extend: Button,
|
|
52
|
+
props: {
|
|
53
|
+
theme: 'lightDark',
|
|
54
|
+
round: 12,
|
|
55
|
+
padding: ['X1', 'X1', 'X1', 'A'],
|
|
56
|
+
size: 'A',
|
|
57
|
+
icon: 'info',
|
|
58
|
+
text: 'Become PRO',
|
|
59
|
+
|
|
60
|
+
label: {
|
|
61
|
+
round: 12,
|
|
62
|
+
theme: ['lightDark', 'inverse'],
|
|
63
|
+
size: 'Z',
|
|
64
|
+
gap: 'A',
|
|
65
|
+
padding: 'Z A2',
|
|
66
|
+
text: '1 month free'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}`
|
|
70
|
+
|
|
71
|
+
const defaultState = {}
|
|
72
|
+
const props = {
|
|
73
|
+
theme: 'lightDark',
|
|
74
|
+
round: 12,
|
|
75
|
+
padding: ['X1', 'X1', 'X1', 'A'],
|
|
76
|
+
size: 'A',
|
|
77
|
+
icon: 'info',
|
|
78
|
+
text: 'Become PRO'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const settings = {
|
|
82
|
+
gridOptions: { colspan: 6, rowspan: 2 }
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default {
|
|
86
|
+
key,
|
|
87
|
+
title,
|
|
88
|
+
description,
|
|
89
|
+
category,
|
|
90
|
+
component,
|
|
91
|
+
code,
|
|
92
|
+
defaultState,
|
|
93
|
+
|
|
94
|
+
props,
|
|
95
|
+
settings,
|
|
96
|
+
interactivity: ['click'],
|
|
97
|
+
dataTypes: ['object']
|
|
98
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
color: '#241C39',
|
|
5
|
+
fontWeight: 'bold',
|
|
6
|
+
|
|
7
|
+
'> svg': {
|
|
8
|
+
borderRadius: '100%',
|
|
9
|
+
padding: '.2em',
|
|
10
|
+
background: '#241C39',
|
|
11
|
+
color: 'white',
|
|
12
|
+
marginRight: `${6 / 16}em`
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
span: {
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
marginLeft: '8px'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import style from './style'
|
|
6
|
+
import { KangorooButton } from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
const key = 'button-theme-switcher'
|
|
9
|
+
const title = 'Theme Switcher'
|
|
10
|
+
const description = ''
|
|
11
|
+
const category = CATEGORIES[1]
|
|
12
|
+
|
|
13
|
+
const component = {
|
|
14
|
+
style: style,
|
|
15
|
+
extend: KangorooButton,
|
|
16
|
+
|
|
17
|
+
props: {
|
|
18
|
+
round: 'C',
|
|
19
|
+
theme: 'lightDark',
|
|
20
|
+
size: 'A',
|
|
21
|
+
padding: 'X1 Y X1 A1',
|
|
22
|
+
gap: 'Z1',
|
|
23
|
+
depth: 16,
|
|
24
|
+
|
|
25
|
+
light: {
|
|
26
|
+
icon: 'sun',
|
|
27
|
+
text: 'Light Mode'
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
dark: {
|
|
31
|
+
theme: ['lightDark', 'inverse'],
|
|
32
|
+
round: 'C',
|
|
33
|
+
icon: 'moon',
|
|
34
|
+
padding: 'Z Z1',
|
|
35
|
+
text: 'Dark Mode'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
iconText: {
|
|
40
|
+
props: el => el.parent.props.light
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
child: {
|
|
44
|
+
props: el => el.parent.props.dark
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const code = `{
|
|
49
|
+
extend: KangorooButton,
|
|
50
|
+
props: {
|
|
51
|
+
round: 'C',
|
|
52
|
+
theme: 'lightDark',
|
|
53
|
+
size: 'Z',
|
|
54
|
+
|
|
55
|
+
light: {
|
|
56
|
+
icon: 'sun',
|
|
57
|
+
text: 'Light Mode'
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
dark: {
|
|
61
|
+
theme: ['lightDark', 'inverse'],
|
|
62
|
+
round: 'C',
|
|
63
|
+
icon: 'moon',
|
|
64
|
+
text: 'Dark Mode'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}`
|
|
68
|
+
|
|
69
|
+
const defaultState = {}
|
|
70
|
+
const props = {
|
|
71
|
+
round: 'C',
|
|
72
|
+
theme: 'lightDark',
|
|
73
|
+
size: 'Z',
|
|
74
|
+
|
|
75
|
+
light: {
|
|
76
|
+
icon: 'sun',
|
|
77
|
+
text: 'Light Mode'
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
dark: {
|
|
81
|
+
theme: ['lightDark', 'inverse'],
|
|
82
|
+
round: 'C',
|
|
83
|
+
icon: 'moon',
|
|
84
|
+
text: 'Dark Mode'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const settings = {
|
|
89
|
+
gridOptions: { colspan: 5, rowspan: 2 }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default {
|
|
93
|
+
key,
|
|
94
|
+
title,
|
|
95
|
+
description,
|
|
96
|
+
category,
|
|
97
|
+
component,
|
|
98
|
+
code,
|
|
99
|
+
defaultState,
|
|
100
|
+
props,
|
|
101
|
+
settings,
|
|
102
|
+
interactivity: [],
|
|
103
|
+
dataTypes: []
|
|
104
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { CATEGORIES } from '../categories'
|
|
4
|
+
|
|
5
|
+
import style from './style'
|
|
6
|
+
import { Button, User } from '@symbo.ls/components'
|
|
7
|
+
|
|
8
|
+
const key = 'button-user'
|
|
9
|
+
const title = 'User Button'
|
|
10
|
+
const description = ''
|
|
11
|
+
const category = CATEGORIES[1]
|
|
12
|
+
|
|
13
|
+
const component = {
|
|
14
|
+
extend: Button,
|
|
15
|
+
tag: 'label',
|
|
16
|
+
style,
|
|
17
|
+
|
|
18
|
+
props: (el, s) => ({
|
|
19
|
+
size: 'A',
|
|
20
|
+
round: 'C',
|
|
21
|
+
depth: 16,
|
|
22
|
+
gap: 'Y2',
|
|
23
|
+
padding: 'W2 A W2 W2',
|
|
24
|
+
icon: 'arrowAngleDown',
|
|
25
|
+
theme: s.sceneTheme === 'light' ? 'lightDark' : 'quaternary'
|
|
26
|
+
}),
|
|
27
|
+
|
|
28
|
+
user: {
|
|
29
|
+
extend: User,
|
|
30
|
+
props: { boxSize: 'B1 B1' },
|
|
31
|
+
class: { dis: { pointerEvents: 'none' } }
|
|
32
|
+
},
|
|
33
|
+
select: {
|
|
34
|
+
attr: {
|
|
35
|
+
name: 'user',
|
|
36
|
+
id: 'user'
|
|
37
|
+
},
|
|
38
|
+
childExtend: { tag: 'option' },
|
|
39
|
+
...[
|
|
40
|
+
{ text: 'Kevin' },
|
|
41
|
+
{ text: 'Jay' }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const code = `{
|
|
47
|
+
round: 'C',
|
|
48
|
+
icon: 'arrowAngleDown',
|
|
49
|
+
name: 'user',
|
|
50
|
+
id: 'user',
|
|
51
|
+
options: [
|
|
52
|
+
{ text: 'adam' },
|
|
53
|
+
{ text: 'jora' }
|
|
54
|
+
]
|
|
55
|
+
}`
|
|
56
|
+
|
|
57
|
+
const defaultState = {}
|
|
58
|
+
const props = {
|
|
59
|
+
size: 'A',
|
|
60
|
+
round: 'C',
|
|
61
|
+
depth: 16,
|
|
62
|
+
icon: 'arrowAngleDown',
|
|
63
|
+
theme: 'quaternary'
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const settings = {
|
|
67
|
+
gridOptions: { colspan: 4, rowspan: 2 }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default {
|
|
71
|
+
key,
|
|
72
|
+
title,
|
|
73
|
+
description,
|
|
74
|
+
category,
|
|
75
|
+
component,
|
|
76
|
+
code,
|
|
77
|
+
defaultState,
|
|
78
|
+
props,
|
|
79
|
+
settings,
|
|
80
|
+
interactivity: [],
|
|
81
|
+
dataTypes: []
|
|
82
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
cursor: 'pointer',
|
|
6
|
+
svg: {
|
|
7
|
+
pointerEvents: 'none',
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
right: `${13 / 16}em`
|
|
10
|
+
},
|
|
11
|
+
select: {
|
|
12
|
+
outline: 'none',
|
|
13
|
+
appearance: 'none',
|
|
14
|
+
border: 'none',
|
|
15
|
+
width: '100%',
|
|
16
|
+
height: '100%',
|
|
17
|
+
background: 'none',
|
|
18
|
+
boxSizing: 'border-box',
|
|
19
|
+
color: 'currentColor',
|
|
20
|
+
fontSize: '1em',
|
|
21
|
+
lineHeight: 1,
|
|
22
|
+
paddingRight: '1.618em'
|
|
23
|
+
// paddingRight: `${16 / 16}em`
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
export const CATEGORIES = [
|
|
4
|
+
{
|
|
5
|
+
key: 'basic',
|
|
6
|
+
text: 'Basic'
|
|
7
|
+
}, {
|
|
8
|
+
key: 'button',
|
|
9
|
+
text: 'Button'
|
|
10
|
+
}, {
|
|
11
|
+
key: 'form',
|
|
12
|
+
text: 'Form'
|
|
13
|
+
}, {
|
|
14
|
+
key: 'navigation',
|
|
15
|
+
text: 'Navigation'
|
|
16
|
+
}, {
|
|
17
|
+
key: 'notification',
|
|
18
|
+
text: 'Notification'
|
|
19
|
+
}, {
|
|
20
|
+
key: 'dropdown',
|
|
21
|
+
text: 'Dropdown'
|
|
22
|
+
}, {
|
|
23
|
+
key: 'badge',
|
|
24
|
+
text: 'Badge'
|
|
25
|
+
}, {
|
|
26
|
+
key: 'datepicker',
|
|
27
|
+
text: 'Datepicker'
|
|
28
|
+
}, {
|
|
29
|
+
key: 'tooltip',
|
|
30
|
+
text: 'Tooltip'
|
|
31
|
+
}, {
|
|
32
|
+
key: 'table',
|
|
33
|
+
text: 'Table'
|
|
34
|
+
}, {
|
|
35
|
+
key: 'toggle',
|
|
36
|
+
text: 'Toggle'
|
|
37
|
+
}, {
|
|
38
|
+
key: 'user',
|
|
39
|
+
text: 'User'
|
|
40
|
+
}, {
|
|
41
|
+
key: 'misc',
|
|
42
|
+
text: 'Miscellaneous'
|
|
43
|
+
}
|
|
44
|
+
]
|