@symbo.ls/preview 2.7.24 → 2.11.265

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.
@@ -0,0 +1,34 @@
1
+ 'use strict'
2
+
3
+ import { shadow } from './shadow'
4
+
5
+ export const shape = {
6
+ extend: shadow,
7
+ Title: null,
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
+ }
29
+ },
30
+ ...[
31
+ {}, {}, {}, {}, {}, {}, {}, {}
32
+ ]
33
+ }
34
+ }
package/state/color.js ADDED
@@ -0,0 +1,3 @@
1
+ export default {
2
+
3
+ }
package/state/icon.js ADDED
@@ -0,0 +1,3 @@
1
+ export default {
2
+
3
+ }
package/state/index.js ADDED
@@ -0,0 +1,13 @@
1
+ 'use strict'
2
+
3
+ import color from './color'
4
+ import icon from './icon'
5
+ import shadow from './shadow'
6
+ import typography from './typography'
7
+
8
+ export default {
9
+ color,
10
+ icon,
11
+ shadow,
12
+ typography
13
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+
3
+ }
@@ -0,0 +1,15 @@
1
+ export default {
2
+ title: 'Colors',
3
+ paragraph: 'Our color palette is led by a bold, distinct primary color and rounded out by a select set of secondary colors that give depth and diversity to our designs.',
4
+
5
+ list: {
6
+ title: 'What you’ll find',
7
+ data: [
8
+ 'Primary colors',
9
+ 'Secondary colors',
10
+ 'Greyscale',
11
+ 'System colors',
12
+ 'Background colors'
13
+ ]
14
+ }
15
+ }
package/.eslintrc.js DELETED
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "extend": "standard",
3
- "env": {
4
- "es6": true,
5
- "browser": true,
6
- "node": true,
7
- "jest": true
8
- }
9
- }
@@ -1,6 +0,0 @@
1
- {
2
- "search.exclude": {
3
- "**/*.code-search": false,
4
- "**/node_modules": false
5
- }
6
- }
package/README.md DELETED
@@ -1 +0,0 @@
1
- # Editor
package/config.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
-
3
- import { init } from '@symbo.ls/components'
4
- import SYMBOLS_CONF from '@symbo.ls/config'
5
-
6
- export default init({ verbose: false, ...SYMBOLS_CONF })
package/define.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict'
2
-
3
- import DOM from 'domql'
4
- import * as smbls from '@symbo.ls/components'
5
-
6
- DOM.define({
7
- __filepath: param => param,
8
- $setCollection: smbls.Collection.define.$setCollection,
9
- $setStateCollection: smbls.Collection.define.$setStateCollection
10
- })
package/index.html DELETED
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html background="#000">
3
- <title>Editor - Symbols</title>
4
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
5
- <meta name="apple-mobile-web-app-capable" content="yes">
6
-
7
- <meta charset="UTF-8">
8
- </head>
9
- <body>
10
- </body>
11
- <script src="./index.js"></script>
12
- </html>
package/src/app.js DELETED
@@ -1,43 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex } from '@symbo.ls/components'
4
-
5
- const Preview = {
6
- key: 'app',
7
-
8
- props: {
9
- boxSize: '100% 100%',
10
- position: 'absolute',
11
- top: '0',
12
- left: '0',
13
- theme: 'document',
14
- flexFlow: 'column',
15
- flexAlign: 'center flex-start'
16
- },
17
-
18
- routes: {
19
- '/preview': {
20
- extend: Flex,
21
- props: {
22
- padding: 'D+Z Z Z Z',
23
- boxSize: '100% 100%',
24
- position: 'absolute',
25
- top: '0',
26
- left: '0',
27
- theme: 'document',
28
- flexFlow: 'column',
29
- flexAlign: 'center flex-start'
30
- },
31
- Iframe: {
32
- props: (el, s) => ({
33
- boxSize: '100% 100%',
34
- round: 'Z',
35
- border: '0',
36
- src: `https://${s.appKey}/`
37
- })
38
- }
39
- }
40
- }
41
- }
42
-
43
- export default Preview
package/state.js DELETED
@@ -1,14 +0,0 @@
1
- 'use strict'
2
-
3
- import PROJECT_SYSTEM from './config'
4
- import { CASES } from '@symbo.ls/scratch' // eslint-disable-line no-unused-vars
5
- import { getCookie } from 'domql/packages/cookie'
6
-
7
- export const state = {
8
- globalTheme: getCookie('globalTheme') || 'dark',
9
- framework: getCookie('framework') || 'react',
10
- language: getCookie('language') || 'javascript',
11
- PROJECT_SYSTEM,
12
- appKey: '4it.symbo.ls'
13
- // globalTheme: CASES.isDark ? 'dark' : 'light'
14
- }
@@ -1,8 +0,0 @@
1
- const path = require('path')
2
-
3
- module.exports = {
4
- getSymbolId: (filePath, fileContent, fileHash) => {
5
- return path.basename(filePath, '.svg')
6
- }
7
- // exclude: ['**/assets/**']
8
- }