@symbo.ls/preview 3.1.1 → 3.2.3

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.
@@ -4,44 +4,41 @@ import { ColorBlock } from '../blocks'
4
4
 
5
5
  export const Colors = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
- props: {
10
- margin: 'auto',
11
- minWidth: '100%'
12
- },
9
+ margin: 'auto',
10
+ minWidth: '100%',
13
11
 
14
12
  Banner: {
15
13
  tag: 'header',
16
- props: {},
17
14
 
18
15
  Title: { text: 'Colors' },
19
16
 
20
17
  Paragraph: {
21
- props: {},
22
18
  P: {},
23
19
  Flex: {
24
- props: {},
25
20
  Title: {},
26
- Paragraph: [{
27
- props: { text: 'Brand color pallete' }
28
- }, {
29
- props: { text: 'Semantic colors' }
30
- }, {
31
- props: { text: 'Theming' }
32
- }]
21
+ Paragraph: [
22
+ {
23
+ text: 'Brand color pallete'
24
+ },
25
+ {
26
+ text: 'Semantic colors'
27
+ },
28
+ {
29
+ text: 'Theming'
30
+ }
31
+ ]
33
32
  }
34
33
  }
35
34
  },
36
35
 
37
36
  Flex: {
38
- props: {
39
- flow: 'column',
40
- overflow: 'auto',
41
- padding: '- D E D',
42
- '@mobileM': { padding: '- C' },
43
- '@mobileS': { padding: '- B' }
44
- },
37
+ flow: 'column',
38
+ overflow: 'auto',
39
+ padding: '- D E D',
40
+ '@mobileM': { padding: '- C' },
41
+ '@mobileS': { padding: '- B' },
45
42
 
46
43
  childExtends: ColorBlock,
47
44
 
@@ -50,7 +47,8 @@ export const Colors = {
50
47
  Paragraph: {
51
48
  children: ({ context }) => {
52
49
  const { COLOR } = context.designSystem
53
- return Object.keys(COLOR).filter(v => COLOR[v].value)
50
+ return Object.keys(COLOR)
51
+ .filter(v => COLOR[v].value)
54
52
  .map(v => ({
55
53
  Color: { background: v },
56
54
  Description: {
@@ -64,14 +62,10 @@ export const Colors = {
64
62
  },
65
63
 
66
64
  semantics: {
67
- Title: { props: { text: 'Themes' } },
65
+ Title: { text: 'Themes' },
68
66
  Paragraph: {
69
- props: {
70
- childProps: { theme: 'dialog' }
71
- },
72
- ...[
73
- {}, {}, {}, {}, {}, {}, {}, {}
74
- ]
67
+ childProps: { theme: 'dialog' },
68
+ ...[{}, {}, {}, {}, {}, {}, {}, {}]
75
69
  }
76
70
  }
77
71
  }
package/articles/Icons.js CHANGED
@@ -4,7 +4,7 @@ import { icon } from '../blocks'
4
4
 
5
5
  export const Icons = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
9
  Header: {
10
10
  tag: 'header',
@@ -15,11 +15,14 @@ export const Icons = {
15
15
  Flex: {
16
16
  Title: {},
17
17
  Paragraph: {
18
- ...[{
19
- props: { text: 'Brand font' }
20
- }, {
21
- props: { text: 'Functional font' }
22
- }]
18
+ ...[
19
+ {
20
+ text: 'Brand font'
21
+ },
22
+ {
23
+ text: 'Functional font'
24
+ }
25
+ ]
23
26
  }
24
27
  }
25
28
  }
@@ -4,7 +4,7 @@ import { shadow } from '../blocks'
4
4
 
5
5
  export const Shadows = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
9
  Header: {
10
10
  tag: 'header',
@@ -16,11 +16,14 @@ export const Shadows = {
16
16
  Flex: {
17
17
  Title: {},
18
18
  Paragraph: {
19
- ...[{
20
- props: { text: 'Brand font' }
21
- }, {
22
- props: { text: 'Functional font' }
23
- }]
19
+ ...[
20
+ {
21
+ text: 'Brand font'
22
+ },
23
+ {
24
+ text: 'Functional font'
25
+ }
26
+ ]
24
27
  }
25
28
  }
26
29
  }
@@ -4,28 +4,29 @@ import { shape } from '../blocks'
4
4
 
5
5
  export const Shapes = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
9
  Header: {
10
10
  tag: 'header',
11
11
  extends: 'Banner',
12
12
 
13
13
  Title: {
14
- props: {
15
- text: 'Shapes',
16
- lineHeight: '1.15em'
17
- }
14
+ text: 'Shapes',
15
+ lineHeight: '1.15em'
18
16
  },
19
17
  Paragraph: {
20
18
  P: {},
21
19
  Flex: {
22
20
  Title: {},
23
21
  Paragraph: {
24
- ...[{
25
- props: { text: 'Brand font' }
26
- }, {
27
- props: { text: 'Functional font' }
28
- }]
22
+ ...[
23
+ {
24
+ text: 'Brand font'
25
+ },
26
+ {
27
+ text: 'Functional font'
28
+ }
29
+ ]
29
30
  }
30
31
  }
31
32
  }
@@ -2,28 +2,29 @@
2
2
 
3
3
  export const Spacing = {
4
4
  tag: 'article',
5
- extends: 'Flex',
5
+ display: 'flex',
6
6
 
7
7
  Header: {
8
8
  tag: 'header',
9
9
  extends: 'Banner',
10
10
 
11
11
  Title: {
12
- props: {
13
- text: 'Spacing',
14
- lineHeight: '1.15em'
15
- }
12
+ text: 'Spacing',
13
+ lineHeight: '1.15em'
16
14
  },
17
15
  Paragraph: {
18
16
  P: {},
19
17
  Flex: {
20
18
  Title: {},
21
19
  Paragraph: {
22
- ...[{
23
- props: { text: 'Brand font' }
24
- }, {
25
- props: { text: 'Functional font' }
26
- }]
20
+ ...[
21
+ {
22
+ text: 'Brand font'
23
+ },
24
+ {
25
+ text: 'Functional font'
26
+ }
27
+ ]
27
28
  }
28
29
  }
29
30
  }
@@ -4,21 +4,16 @@ import { ColorBlock } from '../blocks'
4
4
 
5
5
  export const Themes = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
9
  Banner: {
10
- Title: { props: { text: 'Themes' } },
10
+ Title: { text: 'Themes' },
11
11
  Paragraph: {
12
- props: {
13
- alignItems: 'flex-end'
14
- },
15
- list: {
12
+ alignItems: 'flex-end',
13
+ List: {
16
14
  Title: { text: 'What you’ll find' },
17
15
  Paragraph: {
18
- ...[
19
- { text: 'Dark theme' },
20
- { text: 'Light theme' }
21
- ]
16
+ ...[{ text: 'Dark theme' }, { text: 'Light theme' }]
22
17
  }
23
18
  },
24
19
  P: {
@@ -28,62 +23,47 @@ export const Themes = {
28
23
  },
29
24
 
30
25
  Flex: {
31
- props: {
32
- flow: 'column',
33
- padding: 'E C1 - C1',
34
- gap: 'E'
35
- },
26
+ flow: 'column',
27
+ padding: 'E C1 - C1',
28
+ gap: 'E',
36
29
  childExtends: {
37
30
  extends: ColorBlock,
38
31
  Hgroup: {},
39
32
  Grid: {
40
- props: {
41
- columns: 'repeat(5, 1fr)',
42
- childProps: {
43
- theme: 'primary',
44
- border: 'none !important'
45
- }
33
+ columns: 'repeat(5, 1fr)',
34
+ childProps: {
35
+ theme: 'primary',
36
+ border: 'none !important'
46
37
  },
47
38
  childExtends: {
48
- extends: 'Flex',
49
- props: {
50
- flow: 'column',
51
- align: 'flex-start space-between',
52
- padding: 'Z1 Z2'
53
- },
54
- icons: {
55
- extends: 'Flex',
56
- props: {
57
- gap: 'B',
58
- align: 'center space-between',
59
- minWidth: '100%'
60
- },
39
+ display: 'flex',
40
+ flow: 'column',
41
+ align: 'flex-start space-between',
42
+ padding: 'Z1 Z2',
43
+ Icons: {
44
+ display: 'flex',
45
+ gap: 'B',
46
+ align: 'center space-between',
47
+ minWidth: '100%',
61
48
  childExtends: 'Icon',
62
- children: [
63
- { name: 'sun' },
64
- { name: 'moon' }
65
- ]
49
+ children: [{ name: 'sun' }, { name: 'moon' }]
66
50
  },
67
- title: {
51
+ Title: {
68
52
  tag: 'h6',
69
- props: {
70
- text: 'primary',
71
- textTransform: 'capitalize',
72
- fontWeight: '500'
73
- }
53
+ text: 'primary',
54
+ textTransform: 'capitalize',
55
+ fontWeight: '500'
74
56
  }
75
57
  },
76
58
  ...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
77
59
  }
78
-
79
60
  },
80
61
  ...[
81
62
  {
82
63
  Hgroup: {
83
- Title: { props: { text: 'Dark Theme' } }
64
+ Title: { text: 'Dark Theme' }
84
65
  },
85
- Grid: {
86
- }
66
+ Grid: {}
87
67
  }
88
68
  ]
89
69
  }
@@ -4,41 +4,40 @@ import { FontsBlock } from '../blocks'
4
4
 
5
5
  export const Typography = {
6
6
  tag: 'article',
7
- extends: 'Flex',
7
+ display: 'flex',
8
8
 
9
9
  Header: {
10
10
  tag: 'header',
11
11
  extends: 'Banner',
12
12
  Title: {
13
- props: {
14
- text: 'type',
15
- lineHeight: '1.15em'
16
- }
13
+ text: 'type',
14
+ lineHeight: '1.15em'
17
15
  },
18
16
  Paragraph: {
19
17
  P: {},
20
18
  Flex: {
21
19
  Title: {},
22
20
  Paragraph: {
23
- ...[{
24
- props: { text: 'Brand font' }
25
- }, {
26
- props: { text: 'Functional font' }
27
- }]
21
+ ...[
22
+ {
23
+ text: 'Brand font'
24
+ },
25
+ {
26
+ text: 'Functional font'
27
+ }
28
+ ]
28
29
  }
29
30
  }
30
31
  }
31
32
  },
32
33
 
33
34
  Flex: {
34
- props: {
35
- flow: 'column',
36
- padding: 'B - C -',
37
- childProps: {
38
- ':not(:last-child)': {
39
- border: 'solid, white .15',
40
- borderWidth: '0 0 1px 0'
41
- }
35
+ flow: 'column',
36
+ padding: 'B - C -',
37
+ childProps: {
38
+ ':not(:last-child)': {
39
+ border: 'solid, white .15',
40
+ borderWidth: '0 0 1px 0'
42
41
  }
43
42
  },
44
43
  childExtends: FontsBlock,
@@ -69,7 +68,7 @@ export const Typography = {
69
68
  // Section: {
70
69
  // extends: font,
71
70
  // Title: {
72
- // props: { text: 'Sans Serif' }
71
+ // text: 'Sans Serif'
73
72
  // },
74
73
  // Paragraph: {
75
74
  // letters: {
package/blocks/Default.js CHANGED
@@ -3,37 +3,29 @@
3
3
  export const DefaultBlock = {
4
4
  tag: 'section',
5
5
  extends: 'Hgroup',
6
- props: {
7
- flow: 'row',
8
- boxSizing: 'border-box',
9
- // padding: 'E D2 F1 D1',
10
- gap: 'B'
11
- // border: '2px solid red'
12
- // minWidth: '100%'
13
- },
14
-
6
+ flow: 'row',
7
+ boxSizing: 'border-box',
8
+ // padding: 'E D2 F1 D1',
9
+ gap: 'B',
10
+ // border: '2px solid red'
11
+ // minWidth: '100%'
15
12
  Title: {
16
13
  tag: 'h5',
17
- props: {
18
- fontSize: 'B2',
19
- margin: '- - - B',
20
- padding: 'X - - -',
21
- // padding: '- - - X',
22
- // letterSpacing: '-0.02em',
23
- // padding: 'Z2 C X -',
24
- // padding: 'A - A C1+X',
25
- fontWeight: '900',
26
- '@tabletS<': { alignItems: 'flex-end' },
27
- letterSpacing: '0.07em',
28
- style: {
29
- writingMode: 'vertical-rl',
30
- textOrientation: 'mixed',
31
- transform: 'rotate(180deg)'
32
- }
33
- }
34
-
14
+ fontSize: 'B2',
15
+ margin: '- - - B',
16
+ padding: 'X - - -',
17
+ // padding: '- - - X',
18
+ // letterSpacing: '-0.02em',
19
+ // padding: 'Z2 C X -',
20
+ // padding: 'A - A C1+X',
21
+ fontWeight: '900',
22
+ '@tabletS<': { alignItems: 'flex-end' },
23
+ letterSpacing: '0.07em',
24
+ writingMode: 'vertical-rl',
25
+ textOrientation: 'mixed',
26
+ transform: 'rotate(180deg)'
35
27
  },
36
28
  Paragraph: {
37
- props: { flex: '1' }
29
+ flex: '1'
38
30
  }
39
31
  }
package/blocks/color.js CHANGED
@@ -3,11 +3,8 @@
3
3
  import { DefaultBlock } from './section'
4
4
 
5
5
  const ColorTemplate = {
6
- extends: 'Flex',
7
- props: {
8
- gap: 'A'
9
- },
10
-
6
+ display: 'flex',
7
+ gap: 'A',
11
8
  Color: {
12
9
  boxSize: 'D1',
13
10
  aspectRatio: '1 / 1',
@@ -16,8 +13,9 @@ const ColorTemplate = {
16
13
  },
17
14
 
18
15
  Description: {
19
- extends: 'Flex',
20
- props: { gap: 'X', flow: 'column' },
16
+ display: 'flex',
17
+ gap: 'X',
18
+ flow: 'column',
21
19
  Title: { color: 'title' },
22
20
  Value: { margin: 'X - -', color: 'paragraph' },
23
21
  Var: { color: 'paragraph' }
@@ -28,24 +26,19 @@ export const ColorBlock = {
28
26
  extends: DefaultBlock,
29
27
 
30
28
  Title: {
31
- props: {
32
- text: 'Primary color',
33
- padding: 'C1 - B1 -'
34
- }
29
+ text: 'Primary color',
30
+ padding: 'C1 - B1 -'
35
31
  },
36
32
 
37
33
  Paragraph: {
38
- extends: 'Grid',
39
-
40
- props: {
41
- columns: 'repeat(4, 1fr)',
42
- gap: 'D',
43
- '@tabletS': { columns: 'repeat(3, 1fr)' },
44
- '@mobileL': { columns: 'repeat(2, 1fr)' },
45
- '@mobileS': { columns: 'repeat(1, 1fr)' },
46
- '@mobileXS': { gap: 'A2' }
47
- },
48
-
34
+ display: 'grid',
35
+
36
+ columns: 'repeat(4, 1fr)',
37
+ gap: 'D',
38
+ '@tabletS': { columns: 'repeat(3, 1fr)' },
39
+ '@mobileL': { columns: 'repeat(2, 1fr)' },
40
+ '@mobileS': { columns: 'repeat(1, 1fr)' },
41
+ '@mobileXS': { gap: 'A2' },
49
42
  childExtends: ColorTemplate
50
43
  }
51
44
  }
package/blocks/font.js CHANGED
@@ -4,57 +4,47 @@ import { DefaultBlock } from './section'
4
4
 
5
5
  export const FontsBlock = {
6
6
  extends: DefaultBlock,
7
- props: {
8
- flex: '1',
9
- padding: 'D D D1 D',
10
- '@mobileL': { padding: 'C C' },
11
- '@mobileS': { padding: 'C B' }
12
- },
7
+ flex: '1',
8
+ padding: 'D D D1 D',
9
+ '@mobileL': { padding: 'C C' },
10
+ '@mobileS': { padding: 'C B' },
13
11
 
14
12
  Title: {
15
- props: { text: 'Sans-Serif' }
13
+ text: 'Sans-Serif'
16
14
  },
17
15
  Paragraph: {
18
16
  tag: 'p',
19
- props: {
20
- theme: 'dialog',
21
- fontSize: 'G2',
22
- maxWidth: '100%',
23
- boxSizing: 'border-box',
24
- padding: 'A',
25
- flow: 'column',
26
- gap: '0',
27
- round: 'V2',
28
- lineHeight: '1.1em',
29
- '@mobileL': {
30
- fontSize: 'G',
31
- padding: 'Z1 Z1'
32
- },
33
- '@mobileS': {
34
- fontSize: 'F2',
35
- padding: 'Z1 Z'
36
- },
17
+ theme: 'dialog',
18
+ fontSize: 'G2',
19
+ maxWidth: '100%',
20
+ boxSizing: 'border-box',
21
+ padding: 'A',
22
+ flow: 'column',
23
+ gap: '0',
24
+ round: 'V2',
25
+ lineHeight: '1.1em',
26
+ '@mobileL': {
27
+ fontSize: 'G',
28
+ padding: 'Z1 Z1'
29
+ },
30
+ '@mobileS': {
31
+ fontSize: 'F2',
32
+ padding: 'Z1 Z'
33
+ },
37
34
 
38
- childProps: {
39
- textOverflow: 'ellipsis',
40
- overflow: 'hidden',
41
- maxWidth: '100%',
42
- whiteSpace: 'nowrap',
43
- minWidth: '0',
44
- text: 'Today is a big day for our tribe. The year ends.',
45
- ':first-child': { fontWeight: '900' },
46
- ':nth-child(2)': { fontWeight: '700' },
47
- ':nth-child(3)': { fontWeight: '500' },
48
- ':nth-child(4)': { fontWeight: '400' },
49
- ':last-child': { fontWeight: '100' }
50
- }
35
+ childProps: {
36
+ textOverflow: 'ellipsis',
37
+ overflow: 'hidden',
38
+ maxWidth: '100%',
39
+ whiteSpace: 'nowrap',
40
+ minWidth: '0',
41
+ text: 'Today is a big day for our tribe. The year ends.',
42
+ ':first-child': { fontWeight: '900' },
43
+ ':nth-child(2)': { fontWeight: '700' },
44
+ ':nth-child(3)': { fontWeight: '500' },
45
+ ':nth-child(4)': { fontWeight: '400' },
46
+ ':last-child': { fontWeight: '100' }
51
47
  },
52
- ...[
53
- { },
54
- {},
55
- {},
56
- {},
57
- {}
58
- ]
48
+ ...[{}, {}, {}, {}, {}]
59
49
  }
60
50
  }
package/blocks/icon.js CHANGED
@@ -4,33 +4,27 @@ import { DefaultBlock } from './section'
4
4
 
5
5
  export const icon = {
6
6
  extends: DefaultBlock,
7
- props: {
8
- padding: 'E D E1 D',
9
- '@mobileL': { padding: 'D C' },
10
- '@mobileS': { padding: 'D B' }
11
- },
12
-
7
+ padding: 'E D E1 D',
8
+ '@mobileL': { padding: 'D C' },
9
+ '@mobileS': { padding: 'D B' },
13
10
  Title: null,
14
11
  Paragraph: {
15
- extends: 'Grid',
16
- props: {
17
- columns: 'repeat(7, 1fr)',
18
- gap: 'C',
19
- '@tabletS': { gap: 'B1' },
20
- '@mobileL': { gap: 'A2' },
21
- '@mobileM': { gap: 'A' },
22
- '@mobileS': { gap: 'Z' }
23
- // padding: 'E D E2 D'
24
- },
12
+ display: 'grid',
13
+ columns: 'repeat(7, 1fr)',
14
+ gap: 'C',
15
+ '@tabletS': { gap: 'B1' },
16
+ '@mobileL': { gap: 'A2' },
17
+ '@mobileM': { gap: 'A' },
18
+ '@mobileS': { gap: 'Z' },
19
+ // padding: 'E D E2 D'
20
+
25
21
  childExtends: {
26
- extends: 'Flex',
27
- props: {
28
- align: 'center',
29
- aspectRatio: '1/1',
30
- theme: 'dialog',
31
- round: 'Z'
32
- // padding: 'D B'
33
- },
22
+ display: 'flex',
23
+ align: 'center',
24
+ aspectRatio: '1/1',
25
+ theme: 'dialog',
26
+ round: 'Z',
27
+ // padding: 'D B'
34
28
  Icon: {
35
29
  margin: 'auto',
36
30
  fontSize: 'D',
@@ -48,6 +42,5 @@ export const icon = {
48
42
  Icon: { name }
49
43
  }))
50
44
  }
51
-
52
45
  }
53
46
  }
package/blocks/section.js CHANGED
@@ -3,18 +3,15 @@
3
3
  export const DefaultBlock = {
4
4
  tag: 'section',
5
5
  extends: 'Hgroup',
6
-
7
- props: { gap: 'A' },
6
+ gap: 'A',
8
7
 
9
8
  Title: {
10
9
  tag: 'h5',
11
- props: {
12
- fontSize: 'A',
13
- fontWeight: '500',
14
- '@tabletS<': { alignItems: 'flex-end' },
15
- letterSpacing: '.2em',
16
- padding: '- Z1',
17
- textTransform: 'uppercase'
18
- }
10
+ fontSize: 'A',
11
+ fontWeight: '500',
12
+ '@tabletS<': { alignItems: 'flex-end' },
13
+ letterSpacing: '.2em',
14
+ padding: '- Z1',
15
+ textTransform: 'uppercase'
19
16
  }
20
17
  }
package/blocks/shadow.js CHANGED
@@ -4,86 +4,55 @@ import { DefaultBlock } from './section'
4
4
 
5
5
  export const shadow = {
6
6
  extends: DefaultBlock,
7
- props: {
8
- padding: 'D2 D',
9
- '@mobileL': { padding: 'E C' },
10
- '@mobileS': { padding: 'E B' }
11
- },
7
+ padding: 'D2 D',
8
+ '@mobileL': { padding: 'E C' },
9
+ '@mobileS': { padding: 'E B' },
12
10
 
13
11
  Title: null,
14
12
 
15
13
  Paragraph: {
16
- extends: 'Grid',
17
- props: {
18
- columns: 'repeat(8, 1fr)',
19
- gap: 'C2',
20
- '@tabletM': { gap: 'B2' },
21
- '@tabletS': { columns: 'repeat(4, 1fr)' },
22
- '@mobileL': { gap: 'B1' },
23
- '@mobileS': { gap: 'B' },
24
- '@mobileXS': { gap: 'A1' },
25
- childProps: {
26
- theme: 'dialog',
27
- aspectRatio: '1 / 1',
28
- round: 'Z'
29
- }
14
+ display: 'grid',
15
+ columns: 'repeat(8, 1fr)',
16
+ gap: 'C2',
17
+ '@tabletM': { gap: 'B2' },
18
+ '@tabletS': { columns: 'repeat(4, 1fr)' },
19
+ '@mobileL': { gap: 'B1' },
20
+ '@mobileS': { gap: 'B' },
21
+ '@mobileXS': { gap: 'A1' },
22
+ childProps: {
23
+ theme: 'dialog',
24
+ aspectRatio: '1 / 1',
25
+ round: 'Z'
30
26
  },
31
27
  ...[
32
28
  {
33
- props: {
34
- style: {
35
- boxShadow: 'rgb(38, 57, 77) 0px 20px 30px -10px'
36
- }
37
- }
29
+ boxShadow: 'rgb(38, 57, 77) 0px 20px 30px -10px'
38
30
  },
39
31
  {
40
- props: {
41
- style: {
42
- boxShadow: 'rgba(38, 57, 77, 0.56) 0px 22px 70px 4px'
43
- }
44
- }
32
+ boxShadow: 'rgba(38, 57, 77, 0.56) 0px 22px 70px 4px'
45
33
  },
46
34
  {
47
- props: {
48
- style: {
49
- boxShadow: 'rgba(38, 57, 77, 0.19) 0px 10px 20px, rgba(38, 57, 77, 0.23) 0px 6px 6px'
50
- }
51
- }
35
+ boxShadow:
36
+ 'rgba(38, 57, 77, 0.19) 0px 10px 20px, rgba(38, 57, 77, 0.23) 0px 6px 6px'
52
37
  },
53
38
  {
54
- props: {
55
- style: {
56
- boxShadow: 'rgba(38, 57, 77, 0.12) 0px 2px 4px 0px, rgba(38, 57, 77, 0.32) 0px 2px 16px 0px'
57
- }
58
- }
39
+ boxShadow:
40
+ 'rgba(38, 57, 77, 0.12) 0px 2px 4px 0px, rgba(38, 57, 77, 0.32) 0px 2px 16px 0px'
59
41
  },
60
42
  {
61
- props: {
62
- style: {
63
- boxShadow: 'rgba(38, 57, 77, 0.3) 0px 19px 38px, rgba(38, 57, 77, 0.22) 0px 15px 12px'
64
- }
65
- }
43
+ boxShadow:
44
+ 'rgba(38, 57, 77, 0.3) 0px 19px 38px, rgba(38, 57, 77, 0.22) 0px 15px 12px'
66
45
  },
67
46
  {
68
- props: {
69
- style: {
70
- boxShadow: 'rgba(38, 57, 77, 0.35) 0px 5px 15px'
71
- }
72
- }
47
+ boxShadow: 'rgba(38, 57, 77, 0.35) 0px 5px 15px'
73
48
  },
74
49
  {
75
- props: {
76
- style: {
77
- boxShadow: 'rgba(38, 57, 77, 0.25) 0px 13px 27px -5px, rgba(38, 57, 77, 0.35) 0px 8px 16px -8px'
78
- }
79
- }
50
+ boxShadow:
51
+ 'rgba(38, 57, 77, 0.25) 0px 13px 27px -5px, rgba(38, 57, 77, 0.35) 0px 8px 16px -8px'
80
52
  },
81
53
  {
82
- props: {
83
- style: {
84
- boxShadow: 'rgba(38, 57, 77, 0.25) 0px 30px 60px -12px, rgba(38, 57, 77, 0.25) 0px 18px 36px -18px'
85
- }
86
- }
54
+ boxShadow:
55
+ 'rgba(38, 57, 77, 0.25) 0px 30px 60px -12px, rgba(38, 57, 77, 0.25) 0px 18px 36px -18px'
87
56
  }
88
57
  ]
89
58
  }
package/blocks/shape.js CHANGED
@@ -6,29 +6,26 @@ export const shape = {
6
6
  extends: shadow,
7
7
  Title: null,
8
8
  Paragraph: {
9
- props: {
10
- // gap: 'E',
11
- columns: 'repeat(8, 1fr)',
12
- childProps: {
13
- border: 'solid, white .05',
14
- borderWidth: '2px',
15
- style: {
16
- boxShadow: 'rgba(38, 57, 77, 0.12) 0px 2px 4px 0px, rgba(38, 57, 77, 0.32) 0px 2px 16px 0px'
17
- },
18
- ':first-child': { round: 'A 0 0 0' },
19
- ':nth-child(2)': { round: 'E A 0 0' },
20
- ':nth-child(3)': {
21
- round: '100%',
22
- aspectRatio: '1/1'
23
- },
24
- ':nth-child(4)': { round: '0 D 0 A' },
25
- ':nth-child(5)': { round: '0 0 G 0' },
26
- ':nth-child(7)': { round: '0 0 E1 E1' },
27
- ':nth-child(8)': { round: 'G 0 0 0' }
28
- }
9
+ // gap: 'E',
10
+ columns: 'repeat(8, 1fr)',
11
+ childProps: {
12
+ border: 'solid, white .05',
13
+ borderWidth: '2px',
14
+ style: {
15
+ boxShadow:
16
+ 'rgba(38, 57, 77, 0.12) 0px 2px 4px 0px, rgba(38, 57, 77, 0.32) 0px 2px 16px 0px'
17
+ },
18
+ ':first-child': { round: 'A 0 0 0' },
19
+ ':nth-child(2)': { round: 'E A 0 0' },
20
+ ':nth-child(3)': {
21
+ round: '100%',
22
+ aspectRatio: '1/1'
23
+ },
24
+ ':nth-child(4)': { round: '0 D 0 A' },
25
+ ':nth-child(5)': { round: '0 0 G 0' },
26
+ ':nth-child(7)': { round: '0 0 E1 E1' },
27
+ ':nth-child(8)': { round: 'G 0 0 0' }
29
28
  },
30
- ...[
31
- {}, {}, {}, {}, {}, {}, {}, {}
32
- ]
29
+ ...[{}, {}, {}, {}, {}, {}, {}, {}]
33
30
  }
34
31
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/preview",
3
- "version": "3.1.1",
3
+ "version": "3.2.3",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692",
6
+ "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
7
7
  "source": "src/index.js"
8
8
  }
@@ -1,26 +1,24 @@
1
1
  'use strict'
2
2
 
3
3
  export const Component = {
4
- extends: 'Flex',
5
- props: {
6
- align: 'center center',
7
- minHeight: '100vh'
8
- },
9
-
4
+ display: 'flex',
5
+ align: 'center center',
6
+ minHeight: '100vh',
10
7
  smblsHeader: {
11
8
  if: () => {
12
9
  const urlParams = new URLSearchParams(window.location.search)
13
10
  return !urlParams.get('hideUi') || !urlParams.get('fullsize')
14
11
  },
15
- extends: 'Flex',
16
- props: {
17
- align: 'center space-between',
18
- position: 'absolute',
19
- inset: '0 0 auto 0',
20
- background: 'black 0.15',
21
- padding: 'Z A'
12
+ display: 'flex',
13
+ align: 'center space-between',
14
+ position: 'absolute',
15
+ inset: '0 0 auto 0',
16
+ background: 'black 0.15',
17
+ padding: 'Z A',
18
+ 'Link+SquareButton': {
19
+ Icon: { name: 'symbols', fontSize: 'B' },
20
+ href: '/'
22
21
  },
23
- 'Link+SquareButton': { Icon: { name: 'symbols', fontSize: 'B' }, href: '/' },
24
22
  OpenInSymbols: () => {
25
23
  const urlParams = new URLSearchParams(window.location.search)
26
24
  const key = urlParams.get('key') || 'Logo'
@@ -49,13 +47,11 @@ export const Component = {
49
47
  const schema = ctx.schema[factory][key]
50
48
  return {
51
49
  key,
52
- extends: 'Flex',
50
+ display: 'flex',
53
51
  state: schema.state,
54
- props: () => ({
55
- class: 'component',
56
- align: 'center center',
57
- boxSize: fullsize ? '100dvh 100dvw' : `${height} ${width}`
58
- }),
52
+ class: 'component',
53
+ align: 'center center',
54
+ boxSize: fullsize ? '100dvh 100dvw' : `${height} ${width}`,
59
55
  [key]: fullsize
60
56
  ? {
61
57
  ...schema.props?.demoComponent,
@@ -1,13 +1,13 @@
1
1
  'use strict'
2
2
 
3
3
  export const ComponentsPage = {
4
- extends: 'Flex',
4
+ display: 'flex',
5
5
  state: {
6
6
  globalTheme: 'dark',
7
7
  value: ''
8
8
  },
9
9
 
10
- FleX: {
10
+ Flex: {
11
11
  flow: 'column',
12
12
  padding: 'F E E D',
13
13
  gap: 'E+C',
@@ -219,11 +219,9 @@ export const ComponentsPage = {
219
219
  border: '1px solid #3F3F43',
220
220
  background: 'transparent',
221
221
  Input: {
222
- props: {
223
- fontSize: 'Z1',
224
- placeholder: 'Find component ...',
225
- ':focus ~ svg': { opacity: '0' }
226
- },
222
+ fontSize: 'Z1',
223
+ placeholder: 'Find component ...',
224
+ ':focus ~ svg': { opacity: '0' },
227
225
  onKeyup: (event, el, s) => {
228
226
  const value = el.node.value.toLowerCase()
229
227
  s.update({ value })
@@ -1,32 +1,34 @@
1
1
  'use strict'
2
2
 
3
- import { Colors, Typography, Shadows, Icons, Spacing, Shapes } from '../articles'
3
+ import {
4
+ Colors,
5
+ Typography,
6
+ Shadows,
7
+ Icons,
8
+ Spacing,
9
+ Shapes
10
+ } from '../articles'
4
11
 
5
12
  export const Styleguide = {
6
- extends: 'Flex',
7
13
  tag: 'main',
8
-
9
- props: {
10
- theme: 'document',
11
- position: 'relative',
12
- flow: 'column',
13
- overflow: 'hidden auto',
14
- height: '100%',
15
- width: '100%',
16
- '@tabletM': {
17
- fontSize: 'Z1'
18
- }
14
+ display: 'flex',
15
+ theme: 'document',
16
+ position: 'relative',
17
+ flow: 'column',
18
+ overflow: 'hidden auto',
19
+ height: '100%',
20
+ width: '100%',
21
+ '@tabletM': {
22
+ fontSize: 'Z1'
19
23
  },
20
24
 
21
25
  childExtends: {
22
- props: {
23
- flow: 'column',
24
- '> header': {
25
- border: 'solid, white .15',
26
- borderWidth: '.5px 0 .5px 0'
27
- },
28
- theme: null
29
- }
26
+ flow: 'column',
27
+ '> header': {
28
+ border: 'solid, white .15',
29
+ borderWidth: '.5px 0 .5px 0'
30
+ },
31
+ theme: null
30
32
  },
31
33
 
32
34
  Colors,