@symbo.ls/preview 2.11.265 → 2.11.269
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/LICENSE +21 -0
- package/articles/Colors.js +2 -2
- package/articles/Icons.js +4 -70
- package/articles/Shadows.js +1 -1
- package/articles/Shapes.js +1 -1
- package/articles/Themes.js +2 -2
- package/articles/Typography.js +5 -10
- package/{Section.js → blocks/Default.js} +1 -1
- package/{sections → blocks}/color.js +3 -3
- package/{sections → blocks}/font.js +3 -3
- package/{sections → blocks}/icon.js +2 -2
- package/{sections → blocks}/section.js +3 -4
- package/{sections → blocks}/shadow.js +2 -2
- package/index.js +2 -33
- package/package.json +2 -2
- package/{components.js → pages/Components.js} +3 -4
- package/pages/Styleguide.js +35 -0
- /package/{sections → blocks}/index.js +0 -0
- /package/{sections → blocks}/shape.js +0 -0
- /package/{state → content}/color.js +0 -0
- /package/{state → content}/icon.js +0 -0
- /package/{state → content}/index.js +0 -0
- /package/{state → content}/shadow.js +0 -0
- /package/{state → content}/typography.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 symbo.ls
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/articles/Colors.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Flex } from '@symbo.ls/atoms'
|
|
4
4
|
import { Banner } from '@symbo.ls/banner'
|
|
5
|
-
import {
|
|
5
|
+
import { ColorBlock } from '../blocks'
|
|
6
6
|
|
|
7
7
|
export const Colors = {
|
|
8
8
|
tag: 'article',
|
|
@@ -40,7 +40,7 @@ export const Colors = {
|
|
|
40
40
|
'@mobileS': { padding: '- B' }
|
|
41
41
|
},
|
|
42
42
|
|
|
43
|
-
childExtend:
|
|
43
|
+
childExtend: ColorBlock,
|
|
44
44
|
|
|
45
45
|
pallete: {
|
|
46
46
|
Title: { text: 'Color pallete' },
|
package/articles/Icons.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Banner } from '@symbo.ls/banner'
|
|
6
|
-
|
|
7
|
-
import { icon } from '../_Sections'
|
|
3
|
+
import { icon } from '../blocks'
|
|
8
4
|
|
|
9
5
|
export const Icons = {
|
|
10
6
|
tag: 'article',
|
|
11
|
-
extend: Flex,
|
|
7
|
+
extend: 'Flex',
|
|
12
8
|
|
|
13
9
|
Header: {
|
|
14
10
|
tag: 'header',
|
|
15
|
-
extend: Banner,
|
|
11
|
+
extend: 'Banner',
|
|
16
12
|
Title: { text: 'Icons' },
|
|
17
13
|
Paragraph: {
|
|
18
14
|
P: {},
|
|
@@ -29,67 +25,5 @@ export const Icons = {
|
|
|
29
25
|
}
|
|
30
26
|
},
|
|
31
27
|
|
|
32
|
-
Section: {
|
|
33
|
-
extend: icon
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Flex: {
|
|
37
|
-
// props: {
|
|
38
|
-
// flow: 'column',
|
|
39
|
-
// padding: 'E C1 - C1',
|
|
40
|
-
// gap: 'A1'
|
|
41
|
-
// },
|
|
42
|
-
|
|
43
|
-
// Hgroup: {
|
|
44
|
-
// props: {
|
|
45
|
-
// flow: 'row'
|
|
46
|
-
// },
|
|
47
|
-
// Title: {
|
|
48
|
-
// props: {
|
|
49
|
-
// text: 'Library',
|
|
50
|
-
// fontSize: 'C',
|
|
51
|
-
// gap: 'Z2',
|
|
52
|
-
// padding: '- C - Y',
|
|
53
|
-
// fontWeight: '900',
|
|
54
|
-
// ':after': {
|
|
55
|
-
// content: '""',
|
|
56
|
-
// height: '1px',
|
|
57
|
-
// flex: '1',
|
|
58
|
-
// display: 'block',
|
|
59
|
-
// background: 'white .2',
|
|
60
|
-
// round: 'C'
|
|
61
|
-
// }
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
// }
|
|
65
|
-
// },
|
|
66
|
-
|
|
67
|
-
// Grid: {
|
|
68
|
-
// props: {
|
|
69
|
-
// columns: 'repeat(12, 1fr)',
|
|
70
|
-
// gap: 'Z'
|
|
71
|
-
// },
|
|
72
|
-
|
|
73
|
-
// childExtend: {
|
|
74
|
-
// extend: 'Flex',
|
|
75
|
-
// props: {
|
|
76
|
-
// align: 'center',
|
|
77
|
-
// aspectRatio: '1/1',
|
|
78
|
-
// theme: 'dialog',
|
|
79
|
-
// round: 'Z'
|
|
80
|
-
// },
|
|
81
|
-
// Icon: {
|
|
82
|
-
// margin: 'auto',
|
|
83
|
-
// fontSize: 'D'
|
|
84
|
-
// }
|
|
85
|
-
// },
|
|
86
|
-
|
|
87
|
-
// $collection: ({ context }) => {
|
|
88
|
-
// const { ICONS } = context.designSystem
|
|
89
|
-
// return Object.keys(ICONS).map(name => ({
|
|
90
|
-
// Icon: { name }
|
|
91
|
-
// }))
|
|
92
|
-
// }
|
|
93
|
-
// }
|
|
94
|
-
// }
|
|
28
|
+
Section: { extend: icon }
|
|
95
29
|
}
|
package/articles/Shadows.js
CHANGED
package/articles/Shapes.js
CHANGED
package/articles/Themes.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Flex } from '@symbo.ls/atoms'
|
|
4
4
|
import { Icon } from '@symbo.ls/icon'
|
|
5
|
-
import {
|
|
5
|
+
import { ColorBlock } from '../blocks'
|
|
6
6
|
|
|
7
7
|
export const Themes = {
|
|
8
8
|
tag: 'article',
|
|
@@ -36,7 +36,7 @@ export const Themes = {
|
|
|
36
36
|
gap: 'E'
|
|
37
37
|
},
|
|
38
38
|
childExtend: {
|
|
39
|
-
extend:
|
|
39
|
+
extend: ColorBlock,
|
|
40
40
|
Hgroup: {},
|
|
41
41
|
Grid: {
|
|
42
42
|
props: {
|
package/articles/Typography.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Flex } from '@symbo.ls/atoms'
|
|
4
3
|
// import { font } from '../Sections'
|
|
5
|
-
import {
|
|
6
|
-
import { font } from '../_Sections'
|
|
4
|
+
import { FontsBlock } from '../blocks'
|
|
7
5
|
|
|
8
6
|
export const Typography = {
|
|
9
7
|
tag: 'article',
|
|
10
|
-
extend: Flex,
|
|
8
|
+
extend: 'Flex',
|
|
11
9
|
|
|
12
10
|
Header: {
|
|
13
11
|
tag: 'header',
|
|
14
|
-
extend: Banner,
|
|
12
|
+
extend: 'Banner',
|
|
15
13
|
Title: {
|
|
16
14
|
props: {
|
|
17
15
|
text: 'type',
|
|
@@ -44,11 +42,8 @@ export const Typography = {
|
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
},
|
|
47
|
-
childExtend:
|
|
48
|
-
...[
|
|
49
|
-
{},
|
|
50
|
-
{}
|
|
51
|
-
]
|
|
45
|
+
childExtend: FontsBlock,
|
|
46
|
+
...[{}, {}]
|
|
52
47
|
}
|
|
53
48
|
// Section: {
|
|
54
49
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Grid } from '@symbo.ls/atoms'
|
|
4
|
-
import {
|
|
4
|
+
import { DefaultBlock } from './section'
|
|
5
5
|
|
|
6
6
|
const ColorTemplate = {
|
|
7
7
|
extend: 'Flex',
|
|
@@ -25,8 +25,8 @@ const ColorTemplate = {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export const
|
|
29
|
-
extend:
|
|
28
|
+
export const ColorBlock = {
|
|
29
|
+
extend: DefaultBlock,
|
|
30
30
|
|
|
31
31
|
Title: {
|
|
32
32
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Grid } from '@symbo.ls/atoms'
|
|
4
|
-
import {
|
|
4
|
+
import { DefaultBlock } from './section'
|
|
5
5
|
|
|
6
6
|
export const icon = {
|
|
7
|
-
extend:
|
|
7
|
+
extend: DefaultBlock,
|
|
8
8
|
props: {
|
|
9
9
|
padding: 'E D E1 D',
|
|
10
10
|
'@mobileL': { padding: 'D C' },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Grid } from '@symbo.ls/atoms'
|
|
4
|
-
import {
|
|
4
|
+
import { DefaultBlock } from './section'
|
|
5
5
|
|
|
6
6
|
export const shadow = {
|
|
7
|
-
extend:
|
|
7
|
+
extend: DefaultBlock,
|
|
8
8
|
props: {
|
|
9
9
|
padding: 'D2 D',
|
|
10
10
|
'@mobileL': { padding: 'E C' },
|
package/index.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Colors, Typography, Shadows, Icons, Spacing, Shapes } from './articles'
|
|
6
|
-
|
|
7
|
-
export const StyleguidePage = {
|
|
8
|
-
extend: Flex,
|
|
9
|
-
tag: 'main',
|
|
10
|
-
props: {
|
|
11
|
-
theme: 'document',
|
|
12
|
-
position: 'relative',
|
|
13
|
-
flow: 'column',
|
|
14
|
-
overflow: 'hidden auto',
|
|
15
|
-
height: '100%',
|
|
16
|
-
width: '100%',
|
|
17
|
-
'@tabletM': {
|
|
18
|
-
fontSize: 'Z1'
|
|
19
|
-
},
|
|
20
|
-
'> article': {
|
|
21
|
-
flow: 'column',
|
|
22
|
-
'> header': {
|
|
23
|
-
border: 'solid, white .15',
|
|
24
|
-
borderWidth: '.5px 0 .5px 0'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
Colors,
|
|
30
|
-
Typography,
|
|
31
|
-
Shadows,
|
|
32
|
-
Shapes,
|
|
33
|
-
Icons,
|
|
34
|
-
Spacing
|
|
35
|
-
}
|
|
3
|
+
export * from './pages/Components'
|
|
4
|
+
export * from './pages/Styleguide'
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/preview",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.269",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "9539c62d29cc279dbe7e149aa96bb8ee019c7119",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@symbo.ls/atoms": "latest",
|
|
9
9
|
"@symbo.ls/button": "latest"
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { Flex } from '@symbo.ls/atoms'
|
|
4
3
|
import { Avatar, SearchWithButton } from '@symbo.ls/uikit'
|
|
5
4
|
|
|
6
5
|
export const ComponentsPage = {
|
|
7
|
-
extend: Flex,
|
|
6
|
+
extend: 'Flex',
|
|
8
7
|
|
|
9
8
|
state: {
|
|
10
9
|
globalTheme: 'dark',
|
|
@@ -76,7 +75,7 @@ export const ComponentsPage = {
|
|
|
76
75
|
},
|
|
77
76
|
|
|
78
77
|
cnt: {
|
|
79
|
-
extend: Flex,
|
|
78
|
+
extend: 'Flex',
|
|
80
79
|
|
|
81
80
|
props: {
|
|
82
81
|
flow: 'column',
|
|
@@ -245,7 +244,7 @@ export const ComponentsPage = {
|
|
|
245
244
|
},
|
|
246
245
|
|
|
247
246
|
footer: {
|
|
248
|
-
extend: Flex,
|
|
247
|
+
extend: 'Flex',
|
|
249
248
|
Search: {
|
|
250
249
|
extend: SearchWithButton,
|
|
251
250
|
props: {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { Flex } from '@symbo.ls/atoms'
|
|
4
|
+
|
|
5
|
+
import { Colors, Typography, Shadows, Icons, Spacing, Shapes } from '../articles'
|
|
6
|
+
|
|
7
|
+
export const StyleguidePage = {
|
|
8
|
+
extend: Flex,
|
|
9
|
+
tag: 'main',
|
|
10
|
+
props: {
|
|
11
|
+
theme: 'document',
|
|
12
|
+
position: 'relative',
|
|
13
|
+
flow: 'column',
|
|
14
|
+
overflow: 'hidden auto',
|
|
15
|
+
height: '100%',
|
|
16
|
+
width: '100%',
|
|
17
|
+
'@tabletM': {
|
|
18
|
+
fontSize: 'Z1'
|
|
19
|
+
},
|
|
20
|
+
'> article': {
|
|
21
|
+
flow: 'column',
|
|
22
|
+
'> header': {
|
|
23
|
+
border: 'solid, white .15',
|
|
24
|
+
borderWidth: '.5px 0 .5px 0'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
Colors,
|
|
30
|
+
Typography,
|
|
31
|
+
Shadows,
|
|
32
|
+
Shapes,
|
|
33
|
+
Icons,
|
|
34
|
+
Spacing
|
|
35
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|