@symbo.ls/preview 3.1.2 → 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.
@@ -6,32 +6,27 @@ export const Colors = {
6
6
  tag: 'article',
7
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
21
  Paragraph: [
27
22
  {
28
- props: { text: 'Brand color pallete' }
23
+ text: 'Brand color pallete'
29
24
  },
30
25
  {
31
- props: { text: 'Semantic colors' }
26
+ text: 'Semantic colors'
32
27
  },
33
28
  {
34
- props: { text: 'Theming' }
29
+ text: 'Theming'
35
30
  }
36
31
  ]
37
32
  }
@@ -39,13 +34,11 @@ export const Colors = {
39
34
  },
40
35
 
41
36
  Flex: {
42
- props: {
43
- flow: 'column',
44
- overflow: 'auto',
45
- padding: '- D E D',
46
- '@mobileM': { padding: '- C' },
47
- '@mobileS': { padding: '- B' }
48
- },
37
+ flow: 'column',
38
+ overflow: 'auto',
39
+ padding: '- D E D',
40
+ '@mobileM': { padding: '- C' },
41
+ '@mobileS': { padding: '- B' },
49
42
 
50
43
  childExtends: ColorBlock,
51
44
 
@@ -69,11 +62,9 @@ export const Colors = {
69
62
  },
70
63
 
71
64
  semantics: {
72
- Title: { props: { text: 'Themes' } },
65
+ Title: { text: 'Themes' },
73
66
  Paragraph: {
74
- props: {
75
- childProps: { theme: 'dialog' }
76
- },
67
+ childProps: { theme: 'dialog' },
77
68
  ...[{}, {}, {}, {}, {}, {}, {}, {}]
78
69
  }
79
70
  }
package/articles/Icons.js CHANGED
@@ -17,10 +17,10 @@ export const Icons = {
17
17
  Paragraph: {
18
18
  ...[
19
19
  {
20
- props: { text: 'Brand font' }
20
+ text: 'Brand font'
21
21
  },
22
22
  {
23
- props: { text: 'Functional font' }
23
+ text: 'Functional font'
24
24
  }
25
25
  ]
26
26
  }
@@ -18,10 +18,10 @@ export const Shadows = {
18
18
  Paragraph: {
19
19
  ...[
20
20
  {
21
- props: { text: 'Brand font' }
21
+ text: 'Brand font'
22
22
  },
23
23
  {
24
- props: { text: 'Functional font' }
24
+ text: 'Functional font'
25
25
  }
26
26
  ]
27
27
  }
@@ -11,10 +11,8 @@ export const Shapes = {
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: {},
@@ -23,10 +21,10 @@ export const Shapes = {
23
21
  Paragraph: {
24
22
  ...[
25
23
  {
26
- props: { text: 'Brand font' }
24
+ text: 'Brand font'
27
25
  },
28
26
  {
29
- props: { text: 'Functional font' }
27
+ text: 'Functional font'
30
28
  }
31
29
  ]
32
30
  }
@@ -9,10 +9,8 @@ export const Spacing = {
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: {},
@@ -21,10 +19,10 @@ export const Spacing = {
21
19
  Paragraph: {
22
20
  ...[
23
21
  {
24
- props: { text: 'Brand font' }
22
+ text: 'Brand font'
25
23
  },
26
24
  {
27
- props: { text: 'Functional font' }
25
+ text: 'Functional font'
28
26
  }
29
27
  ]
30
28
  }
@@ -7,12 +7,10 @@ export const Themes = {
7
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
16
  ...[{ text: 'Dark theme' }, { text: 'Light theme' }]
@@ -25,46 +23,36 @@ export const Themes = {
25
23
  },
26
24
 
27
25
  Flex: {
28
- props: {
29
- flow: 'column',
30
- padding: 'E C1 - C1',
31
- gap: 'E'
32
- },
26
+ flow: 'column',
27
+ padding: 'E C1 - C1',
28
+ gap: 'E',
33
29
  childExtends: {
34
30
  extends: ColorBlock,
35
31
  Hgroup: {},
36
32
  Grid: {
37
- props: {
38
- columns: 'repeat(5, 1fr)',
39
- childProps: {
40
- theme: 'primary',
41
- border: 'none !important'
42
- }
33
+ columns: 'repeat(5, 1fr)',
34
+ childProps: {
35
+ theme: 'primary',
36
+ border: 'none !important'
43
37
  },
44
38
  childExtends: {
45
39
  display: 'flex',
46
- props: {
47
- flow: 'column',
48
- align: 'flex-start space-between',
49
- padding: 'Z1 Z2'
50
- },
51
- icons: {
40
+ flow: 'column',
41
+ align: 'flex-start space-between',
42
+ padding: 'Z1 Z2',
43
+ Icons: {
52
44
  display: 'flex',
53
- props: {
54
- gap: 'B',
55
- align: 'center space-between',
56
- minWidth: '100%'
57
- },
45
+ gap: 'B',
46
+ align: 'center space-between',
47
+ minWidth: '100%',
58
48
  childExtends: 'Icon',
59
49
  children: [{ name: 'sun' }, { name: 'moon' }]
60
50
  },
61
- title: {
51
+ Title: {
62
52
  tag: 'h6',
63
- props: {
64
- text: 'primary',
65
- textTransform: 'capitalize',
66
- fontWeight: '500'
67
- }
53
+ text: 'primary',
54
+ textTransform: 'capitalize',
55
+ fontWeight: '500'
68
56
  }
69
57
  },
70
58
  ...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
@@ -73,7 +61,7 @@ export const Themes = {
73
61
  ...[
74
62
  {
75
63
  Hgroup: {
76
- Title: { props: { text: 'Dark Theme' } }
64
+ Title: { text: 'Dark Theme' }
77
65
  },
78
66
  Grid: {}
79
67
  }
@@ -10,10 +10,8 @@ export const Typography = {
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: {},
@@ -22,10 +20,10 @@ export const Typography = {
22
20
  Paragraph: {
23
21
  ...[
24
22
  {
25
- props: { text: 'Brand font' }
23
+ text: 'Brand font'
26
24
  },
27
25
  {
28
- props: { text: 'Functional font' }
26
+ text: 'Functional font'
29
27
  }
30
28
  ]
31
29
  }
@@ -34,14 +32,12 @@ export const Typography = {
34
32
  },
35
33
 
36
34
  Flex: {
37
- props: {
38
- flow: 'column',
39
- padding: 'B - C -',
40
- childProps: {
41
- ':not(:last-child)': {
42
- border: 'solid, white .15',
43
- borderWidth: '0 0 1px 0'
44
- }
35
+ flow: 'column',
36
+ padding: 'B - C -',
37
+ childProps: {
38
+ ':not(:last-child)': {
39
+ border: 'solid, white .15',
40
+ borderWidth: '0 0 1px 0'
45
41
  }
46
42
  },
47
43
  childExtends: FontsBlock,
@@ -72,7 +68,7 @@ export const Typography = {
72
68
  // Section: {
73
69
  // extends: font,
74
70
  // Title: {
75
- // props: { text: 'Sans Serif' }
71
+ // text: 'Sans Serif'
76
72
  // },
77
73
  // Paragraph: {
78
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
@@ -4,10 +4,7 @@ import { DefaultBlock } from './section'
4
4
 
5
5
  const ColorTemplate = {
6
6
  display: 'flex',
7
- props: {
8
- gap: 'A'
9
- },
10
-
7
+ gap: 'A',
11
8
  Color: {
12
9
  boxSize: 'D1',
13
10
  aspectRatio: '1 / 1',
@@ -17,7 +14,8 @@ const ColorTemplate = {
17
14
 
18
15
  Description: {
19
16
  display: 'flex',
20
- props: { gap: 'X', flow: 'column' },
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
22
  display: 'flex',
27
- props: {
28
- align: 'center',
29
- aspectRatio: '1/1',
30
- theme: 'dialog',
31
- round: 'Z'
32
- // padding: 'D B'
33
- },
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',
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.2",
3
+ "version": "3.2.3",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "429b36616aa04c8587a26ce3c129815115e35897",
6
+ "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
7
7
  "source": "src/index.js"
8
8
  }
@@ -2,24 +2,19 @@
2
2
 
3
3
  export const Component = {
4
4
  display: 'flex',
5
- props: {
6
- align: 'center center',
7
- minHeight: '100vh'
8
- },
9
-
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
12
  display: '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'
22
- },
13
+ align: 'center space-between',
14
+ position: 'absolute',
15
+ inset: '0 0 auto 0',
16
+ background: 'black 0.15',
17
+ padding: 'Z A',
23
18
  'Link+SquareButton': {
24
19
  Icon: { name: 'symbols', fontSize: 'B' },
25
20
  href: '/'
@@ -54,11 +49,9 @@ export const Component = {
54
49
  key,
55
50
  display: 'flex',
56
51
  state: schema.state,
57
- props: () => ({
58
- class: 'component',
59
- align: 'center center',
60
- boxSize: fullsize ? '100dvh 100dvw' : `${height} ${width}`
61
- }),
52
+ class: 'component',
53
+ align: 'center center',
54
+ boxSize: fullsize ? '100dvh 100dvw' : `${height} ${width}`,
62
55
  [key]: fullsize
63
56
  ? {
64
57
  ...schema.props?.demoComponent,
@@ -7,7 +7,7 @@ export const ComponentsPage = {
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 })
@@ -10,30 +10,25 @@ import {
10
10
  } from '../articles'
11
11
 
12
12
  export const Styleguide = {
13
- display: 'flex',
14
13
  tag: 'main',
15
-
16
- props: {
17
- theme: 'document',
18
- position: 'relative',
19
- flow: 'column',
20
- overflow: 'hidden auto',
21
- height: '100%',
22
- width: '100%',
23
- '@tabletM': {
24
- fontSize: 'Z1'
25
- }
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'
26
23
  },
27
24
 
28
25
  childExtends: {
29
- props: {
30
- flow: 'column',
31
- '> header': {
32
- border: 'solid, white .15',
33
- borderWidth: '.5px 0 .5px 0'
34
- },
35
- theme: null
36
- }
26
+ flow: 'column',
27
+ '> header': {
28
+ border: 'solid, white .15',
29
+ borderWidth: '.5px 0 .5px 0'
30
+ },
31
+ theme: null
37
32
  },
38
33
 
39
34
  Colors,