@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.
@@ -37,11 +37,6 @@ const code = `{
37
37
 
38
38
  const defaultState = {}
39
39
  const props = {
40
- icon: 'star',
41
- text: 'Archived',
42
- theme: 'label',
43
- spacingRatio: '1.618',
44
- round: 'A'
45
40
  }
46
41
 
47
42
  const settings = {
@@ -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
- // padding: 'Z2 B2',
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
- props: {
18
-
19
- round: 'Z2',
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
- child: {
33
- round: 12,
34
- size: 'Z',
35
- padding: 'Z A2',
36
- text: '1 month free'
37
- }
20
+ label: {
21
+ // ...
38
22
  },
39
23
 
40
- iconText: {},
41
- child: {}
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
- round: 12,
56
- size: 'Z',
57
- gap: 'A',
58
- padding: 'Z A2',
59
- text: '1 month free'
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 = {
@@ -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
- props: {
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.19",
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 index.html",
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.0"
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: [DesignSystem.routes[route], PageExtend]
23
+ extend: DesignSystem.routes[route]
25
24
  },
26
25
  __filepath: 'pages/index.js'
27
26
  }
@@ -9,7 +9,7 @@ import themes from './themes'
9
9
  export const Color = {
10
10
  key: 'colors',
11
11
  props: {
12
- gap: '68px'
12
+ gap: 'A'
13
13
  },
14
14
 
15
15
  globalThemes,
@@ -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%',
@@ -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
  }
@@ -19,8 +19,8 @@ export const SpacingScale = {
19
19
  top: 'D',
20
20
  background: 'black .5',
21
21
  zIndex: '2',
22
- margin: '-C -B -B',
23
- padding: 'C B B',
22
+ margin: '-B2 -B -B',
23
+ padding: 'B2 B B',
24
24
  style: {
25
25
  backdropFilter: 'blur(15px)'
26
26
  }
@@ -1,4 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- }