@symbo.ls/preview 0.0.19 → 0.0.21
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/.symbols/button-archived/index.js +0 -5
- package/.symbols/button-circle/index.js +3 -3
- package/.symbols/button-download/index.js +1 -6
- package/.symbols/button-pro/index.js +19 -44
- package/.symbols/label/index.js +9 -2
- package/package.json +3 -3
- package/src/app.js +1 -2
- package/src/pages/Color/index.js +1 -1
- package/src/pages/Components/index.js +0 -3
- package/src/pages/Fonts/index.js +3 -3
- package/src/pages/Spaces/SpacingScale.js +2 -2
- package/.symbols/button-pro/style.js +0 -4
|
@@ -13,6 +13,9 @@ const component = {
|
|
|
13
13
|
extend: CircleButton,
|
|
14
14
|
props: {
|
|
15
15
|
theme: 'secondary',
|
|
16
|
+
background: 'blue .2',
|
|
17
|
+
color: 'white',
|
|
18
|
+
padding: 'Y2',
|
|
16
19
|
icon: null,
|
|
17
20
|
text: '3'
|
|
18
21
|
}
|
|
@@ -37,9 +40,6 @@ const code = {
|
|
|
37
40
|
|
|
38
41
|
const defaultState = {}
|
|
39
42
|
const props = {
|
|
40
|
-
theme: 'secondary',
|
|
41
|
-
padding: 'Y2',
|
|
42
|
-
spacingRatio: '1.618',
|
|
43
43
|
text: '3'
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -16,9 +16,8 @@ const component = {
|
|
|
16
16
|
gap: 'X2',
|
|
17
17
|
theme: 'quinary',
|
|
18
18
|
text: 'Download',
|
|
19
|
-
|
|
19
|
+
padding: 'Z2 B2',
|
|
20
20
|
border: '.2em, solid, blue .2',
|
|
21
|
-
padding: 'A1 B2',
|
|
22
21
|
round: 'C'
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -35,10 +34,6 @@ const code = `{
|
|
|
35
34
|
|
|
36
35
|
const defaultState = {}
|
|
37
36
|
const props = {
|
|
38
|
-
icon: 'arrowDown',
|
|
39
|
-
theme: 'quaternary',
|
|
40
|
-
text: 'Download',
|
|
41
|
-
round: 'C'
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
const settings = {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { CATEGORIES } from '../categories'
|
|
4
4
|
|
|
5
|
-
import style from './style'
|
|
6
5
|
import { KangorooButton } from '@symbo.ls/components'
|
|
7
6
|
|
|
8
7
|
const key = 'button-pro'
|
|
@@ -11,64 +10,40 @@ const description = ''
|
|
|
11
10
|
const category = CATEGORIES[1]
|
|
12
11
|
|
|
13
12
|
const component = {
|
|
14
|
-
style,
|
|
15
13
|
extend: KangorooButton,
|
|
14
|
+
}
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
padding: ['X1', 'X1', 'X1', 'A'],
|
|
21
|
-
size: 'A',
|
|
22
|
-
gap: 'Z',
|
|
23
|
-
fontWeight: 'bold',
|
|
24
|
-
|
|
25
|
-
iconText: {
|
|
26
|
-
gap: 'X1',
|
|
27
|
-
icon: 'star',
|
|
28
|
-
text: 'Become PRO',
|
|
29
|
-
alignItems: 'center'
|
|
30
|
-
},
|
|
16
|
+
const code = {
|
|
17
|
+
react: `<KangorooButton ...{
|
|
18
|
+
// ...
|
|
31
19
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size: 'Z',
|
|
35
|
-
padding: 'Z A2',
|
|
36
|
-
text: '1 month free'
|
|
37
|
-
}
|
|
20
|
+
label: {
|
|
21
|
+
// ...
|
|
38
22
|
},
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
24
|
+
child: {
|
|
25
|
+
// ...
|
|
26
|
+
}
|
|
27
|
+
} />`,
|
|
28
|
+
domql: `{
|
|
29
|
+
extend: KangorooButton,
|
|
43
30
|
|
|
44
|
-
const code = `{
|
|
45
|
-
extend: Button,
|
|
46
31
|
props: {
|
|
47
|
-
|
|
48
|
-
round: 12,
|
|
49
|
-
padding: ['X1', 'X1', 'X1', 'A'],
|
|
50
|
-
size: 'A',
|
|
51
|
-
icon: 'info',
|
|
52
|
-
text: 'Become PRO',
|
|
32
|
+
// ...
|
|
53
33
|
|
|
54
34
|
label: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
35
|
+
// ...
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
child: {
|
|
39
|
+
// ...
|
|
60
40
|
}
|
|
61
41
|
}
|
|
62
42
|
}`
|
|
43
|
+
}
|
|
63
44
|
|
|
64
45
|
const defaultState = {}
|
|
65
46
|
const props = {
|
|
66
|
-
|
|
67
|
-
round: 12,
|
|
68
|
-
padding: ['X1', 'X1', 'X1', 'A'],
|
|
69
|
-
size: 'A',
|
|
70
|
-
icon: 'info',
|
|
71
|
-
text: 'Become PRO'
|
|
72
47
|
}
|
|
73
48
|
|
|
74
49
|
const settings = {
|
package/.symbols/label/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { CATEGORIES } from '../categories'
|
|
4
4
|
|
|
5
|
-
import { Label } from '@symbo.ls/components'
|
|
5
|
+
import { Label, HoverEffect } from '@symbo.ls/components'
|
|
6
6
|
|
|
7
7
|
const key = 'label'
|
|
8
8
|
const title = 'Label'
|
|
@@ -11,7 +11,14 @@ const category = CATEGORIES[0]
|
|
|
11
11
|
|
|
12
12
|
const component = {
|
|
13
13
|
extend: Label,
|
|
14
|
-
|
|
14
|
+
state: { value: 2 },
|
|
15
|
+
props: ({ state }) => ({
|
|
16
|
+
text: state.value
|
|
17
|
+
}),
|
|
18
|
+
on: {
|
|
19
|
+
click: (ev, { state }) => {
|
|
20
|
+
state.update({ value: state.value + 1 })
|
|
21
|
+
}
|
|
15
22
|
}
|
|
16
23
|
}
|
|
17
24
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/preview",
|
|
3
3
|
"description": "",
|
|
4
4
|
"author": "",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.21",
|
|
6
6
|
"repository": "https://github.com/rackai/editor",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prestart": "rm -rf .cache dist",
|
|
11
11
|
"start": "parcel src/dev.html --port 1200 --no-cache",
|
|
12
12
|
"prebuild": "rm -rf .cache dist",
|
|
13
|
-
"build": "parcel build
|
|
13
|
+
"build": "parcel build src/dev.html",
|
|
14
14
|
"reinstall": "rm -rf node_modules/@symbo.ls node_modules/@domql node_modules/domql node_modules/smbls dist yarn.lock .cache && yarn"
|
|
15
15
|
},
|
|
16
16
|
"targets": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@symbo.ls/init": "latest",
|
|
29
29
|
"@symbo.ls/scratch": "latest",
|
|
30
30
|
"@symbo.ls/utils": "latest",
|
|
31
|
-
"domql": "^1.5.
|
|
31
|
+
"domql": "^1.5.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "^7.11.5",
|
package/src/app.js
CHANGED
|
@@ -7,7 +7,6 @@ import { router, lastLevel } from '@domql/router'
|
|
|
7
7
|
|
|
8
8
|
import { state } from './state'
|
|
9
9
|
import {
|
|
10
|
-
PageExtend,
|
|
11
10
|
Components,
|
|
12
11
|
DesignSystem,
|
|
13
12
|
Export,
|
|
@@ -21,7 +20,7 @@ Object.keys(DesignSystem.routes).map(route => {
|
|
|
21
20
|
extend: DesignSystem,
|
|
22
21
|
sidebar: {},
|
|
23
22
|
main: {
|
|
24
|
-
extend:
|
|
23
|
+
extend: DesignSystem.routes[route]
|
|
25
24
|
},
|
|
26
25
|
__filepath: 'pages/index.js'
|
|
27
26
|
}
|
package/src/pages/Color/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import PageExtend from '../PageExtend'
|
|
4
3
|
import { splitRoute } from 'domql/packages/router'
|
|
5
4
|
|
|
6
5
|
import sidebar from './sidebar'
|
|
@@ -11,8 +10,6 @@ import { CATEGORIES } from '../../../.symbols/categories'
|
|
|
11
10
|
// import COMPONENTS from '../../data/components'
|
|
12
11
|
|
|
13
12
|
export const Components = {
|
|
14
|
-
extend: PageExtend,
|
|
15
|
-
|
|
16
13
|
props: {
|
|
17
14
|
maxWidth: '100%',
|
|
18
15
|
width: '100%',
|
package/src/pages/Fonts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Grid, FontObject, FontFamilyObject, Line } from '@symbo.ls/components'
|
|
3
|
+
import { Grid, Hoverable, FontObject, FontFamilyObject, Line } from '@symbo.ls/components'
|
|
4
4
|
import { TypeSection } from '../Typography/shared'
|
|
5
5
|
|
|
6
6
|
import { state } from './state'
|
|
@@ -62,7 +62,7 @@ const FontFaces = {
|
|
|
62
62
|
gap: 'A',
|
|
63
63
|
margin: '0 -Z'
|
|
64
64
|
},
|
|
65
|
-
childExtend: FontObject,
|
|
65
|
+
childExtend: [FontObject, Hoverable],
|
|
66
66
|
$setCollection: mapFonts
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -88,7 +88,7 @@ const FontFamilies = {
|
|
|
88
88
|
margin: '0 -Z'
|
|
89
89
|
},
|
|
90
90
|
|
|
91
|
-
childExtend: FontFamilyObject,
|
|
91
|
+
childExtend: [FontFamilyObject, Hoverable],
|
|
92
92
|
$setCollection: mapFontFamilies
|
|
93
93
|
}
|
|
94
94
|
}
|