@symbo.ls/preview 0.0.73 → 0.0.75
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/package.json +3 -1
- package/src/index.js +1 -4
- package/src/pages/DesignSystem/Dashboard/designElements.js +5 -3
- package/src/state.js +5 -9
- package/src/style.js +2 -2
- package/user_data/4it.js +0 -164
- package/user_data/assets/arrow.svg +0 -1
- package/user_data/byld.js +0 -117
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/preview",
|
|
3
3
|
"description": "",
|
|
4
4
|
"author": "",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.75",
|
|
6
6
|
"repository": "https://github.com/rackai/editor",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"scripts": {
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"@symbo.ls/config-default": "^1.0.1",
|
|
32
32
|
"@symbo.ls/icons": "latest",
|
|
33
33
|
"@symbo.ls/init": "^1.1.3",
|
|
34
|
+
"@symbo.ls/preview": "^0.0.73",
|
|
34
35
|
"@symbo.ls/scratch": "latest",
|
|
36
|
+
"@symbo.ls/temp-db": "^0.0.2",
|
|
35
37
|
"@symbo.ls/utils": "latest",
|
|
36
38
|
"domql": "^1.5.7",
|
|
37
39
|
"showdown": "^2.1.0"
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { DesignElement } from '@symbo.ls/components'
|
|
2
|
+
import { Flex, DesignElement } from '@symbo.ls/components'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
+
extend: Flex,
|
|
6
|
+
|
|
5
7
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
flow: 'row wrap',
|
|
9
|
+
align: 'flex-start flex-start',
|
|
8
10
|
gap: 'C B2',
|
|
9
11
|
padding: 'B1 0 B2',
|
|
10
12
|
margin: '0 -Z2'
|
package/src/state.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import SYSTEM from './config'
|
|
4
|
-
import { LIBRARY, COMPONENTS } from '
|
|
5
|
-
import
|
|
6
|
-
import FIT from '../user_data/4it' // eslint-disable-line no-unused-vars
|
|
4
|
+
import { LIBRARY, COMPONENTS } from '@symbo.ls/preview/.symbols'
|
|
5
|
+
import USR_DATA from '@symbo.ls/temp-db'
|
|
7
6
|
|
|
8
7
|
export const state = {
|
|
9
8
|
globalTheme: 'dark',
|
|
10
|
-
appKey: '4it.symbo.ls'
|
|
11
|
-
SYSTEM: FIT
|
|
12
|
-
// SYSTEM: {}
|
|
13
|
-
// SYSTEM
|
|
14
|
-
// SYSTEM: BYLD
|
|
9
|
+
appKey: '4it.symbo.ls'
|
|
15
10
|
}
|
|
16
11
|
|
|
12
|
+
state.SYSTEM = USR_DATA[state.appKey]
|
|
13
|
+
|
|
17
14
|
export const context = {
|
|
18
|
-
CONFIG: SYSTEM,
|
|
19
15
|
LIBRARY,
|
|
20
16
|
SYSTEM,
|
|
21
17
|
COMPONENTS
|
package/src/style.js
CHANGED
package/user_data/4it.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import ARROW_SVG from './assets/arrow.svg'
|
|
4
|
-
|
|
5
|
-
const S3_BUCKET = 'https://symbols-fonts.s3.us-west-1.amazonaws.com'
|
|
6
|
-
|
|
7
|
-
const AvenirLight = '/avenir/49c5f3e1-5867-4b1d-a843-2d07fa60d85d.woff2'
|
|
8
|
-
const AvenirRegular = '/avenir/2cd55546-ec00-4af9-aeca-4a3cd186da53.woff2'
|
|
9
|
-
const AvenirMedium = '/avenir/627fbb5a-3bae-4cd9-b617-2f923e29d55e.woff2'
|
|
10
|
-
const AvenirDemiBold = '/avenir/6afe4676-059a-4aa8-b891-29856bbcba22.woff2'
|
|
11
|
-
const AvenirBold = '/avenir/14c73713-e4df-4dba-933b-057feeac8dd1.woff2'
|
|
12
|
-
const AvenirHeavy = '/avenir/5c57b2e2-f641-421e-a95f-65fcb47e409a.woff2'
|
|
13
|
-
|
|
14
|
-
// const CDN_URL = 'https://fonts.gstatic.com/s/sourcecodepro/v21'
|
|
15
|
-
|
|
16
|
-
export const COLOR = {
|
|
17
|
-
black: '#000000',
|
|
18
|
-
white: '#ffffff',
|
|
19
|
-
indigo: '#039E8D',
|
|
20
|
-
purple: '#506EFF',
|
|
21
|
-
pink: '#E51364',
|
|
22
|
-
text: '#47464E',
|
|
23
|
-
blue: '#3686F7',
|
|
24
|
-
|
|
25
|
-
grey25: '#473838',
|
|
26
|
-
blue27: '#088177',
|
|
27
|
-
blue94: '#ecf5f5',
|
|
28
|
-
blue92: '#e6efee',
|
|
29
|
-
|
|
30
|
-
gray75: '#c0c0c0',
|
|
31
|
-
gray8: '#141414'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const GRADIENT = {
|
|
35
|
-
logoGradient: 'linear-gradient(56deg, rgba(0,191,255,1) 0%, rgba(127,58,236,1) 100%)',
|
|
36
|
-
|
|
37
|
-
brandedGradient: {
|
|
38
|
-
'@light': '--logoGradient',
|
|
39
|
-
'@dark': '--logoGradient'
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
mapGradient: {
|
|
43
|
-
'@light': 'radial-gradient(rgba(255,255,255,0) 35%, white 75%)',
|
|
44
|
-
'@dark': 'radial-gradient(rgba(255,255,255,0) 35%, #141414 75%)'
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
packageGradientHover: {
|
|
48
|
-
'@light': 'linear-gradient(135deg, #d6e9e9 46%, #d8ecec 87%, #dceeee 135%, #e0f0f0 100%)',
|
|
49
|
-
'@dark': 'linear-gradient(115deg, rgba(236,245,245,0.05) 0%, rgba(239,247,247,0.05) 50%, rgba(243,249,249,0.05) 100%)'
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
packageGradient: {
|
|
53
|
-
'@light': 'linear-gradient(115deg, #ECF5F5 51%, #EFF7F7 87%, #F3F9F9 125%, #F7FBFB 100%)',
|
|
54
|
-
'@dark': 'linear-gradient(115deg, rgba(236,245,245,0.02) 0%, rgba(239,247,247,0.02) 50%, rgba(243,249,249,0.02) 100%)'
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
bottomFadingShadow: {
|
|
58
|
-
'@dark': 'linear-gradient(rgba(255, 255, 255, 0) 25%, #141414 85%)',
|
|
59
|
-
'@light': 'linear-gradient(rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 1)) 85%'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const THEME = {
|
|
64
|
-
document: {
|
|
65
|
-
'@dark': {
|
|
66
|
-
background: 'gray8',
|
|
67
|
-
color: 'white'
|
|
68
|
-
},
|
|
69
|
-
'@light': {
|
|
70
|
-
background: 'white',
|
|
71
|
-
color: 'black'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
branded: {
|
|
76
|
-
color: 'white',
|
|
77
|
-
'@dark': {
|
|
78
|
-
background: 'brandedGradient'
|
|
79
|
-
},
|
|
80
|
-
'@light': {
|
|
81
|
-
background: 'brandedGradient'
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
primary: {
|
|
86
|
-
color: 'white',
|
|
87
|
-
'@dark': {
|
|
88
|
-
background: 'blue .35',
|
|
89
|
-
':hover': {
|
|
90
|
-
background: 'blue .45'
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
'@light': {
|
|
94
|
-
background: 'blue',
|
|
95
|
-
':hover': {
|
|
96
|
-
background: 'blue 1 -15'
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export const FONT = {
|
|
103
|
-
Avenir: [{
|
|
104
|
-
url: S3_BUCKET + AvenirLight,
|
|
105
|
-
fontWeight: 300
|
|
106
|
-
}, {
|
|
107
|
-
url: S3_BUCKET + AvenirRegular,
|
|
108
|
-
fontWeight: 400
|
|
109
|
-
}, {
|
|
110
|
-
url: S3_BUCKET + AvenirMedium,
|
|
111
|
-
fontWeight: 500
|
|
112
|
-
}, {
|
|
113
|
-
url: S3_BUCKET + AvenirDemiBold,
|
|
114
|
-
fontWeight: 600
|
|
115
|
-
}, {
|
|
116
|
-
url: S3_BUCKET + AvenirBold,
|
|
117
|
-
fontWeight: 700
|
|
118
|
-
}, {
|
|
119
|
-
url: S3_BUCKET + AvenirHeavy,
|
|
120
|
-
fontWeight: 900
|
|
121
|
-
}],
|
|
122
|
-
AvenirVariable: {
|
|
123
|
-
url: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/2729/AvenirNext_Variable.ttf',
|
|
124
|
-
isVariable: true
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export const FONT_FAMILY = {
|
|
129
|
-
Default: {
|
|
130
|
-
isDefault: true,
|
|
131
|
-
value: ['"AvenirVariable"', '"Avenir"'],
|
|
132
|
-
type: 'serif'
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export const TYPOGRAPHY = {
|
|
137
|
-
base: 16,
|
|
138
|
-
default: 16,
|
|
139
|
-
ratio: 1.125,
|
|
140
|
-
subSequence: true,
|
|
141
|
-
range: [-5, +18]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export const SPACING = {
|
|
145
|
-
range: [-5, +12]
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export const ICONS = {
|
|
149
|
-
arrow: ARROW_SVG
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export default {
|
|
153
|
-
COLOR,
|
|
154
|
-
GRADIENT,
|
|
155
|
-
THEME,
|
|
156
|
-
FONT,
|
|
157
|
-
FONT_FAMILY,
|
|
158
|
-
TYPOGRAPHY,
|
|
159
|
-
SPACING,
|
|
160
|
-
ICONS,
|
|
161
|
-
TIMING: {},
|
|
162
|
-
MEDIA: {},
|
|
163
|
-
DEVICES: {}
|
|
164
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M21.4009822,3.43046745 C21.4009822,3.22337399 21.233133,3.05539228 21.0260396,3.05539228 L8.17775079,3.05539228 C7.97065732,3.05539228 7.80267562,3.22337399 7.8028082,3.43033487 L7.8028082,4.18022005 C7.8028082,4.38731352 7.97065732,4.55516264 8.17788337,4.55529522 L18.8400235,4.55529522 L2.81469096,20.49958 C2.66818758,20.6460834 2.66818758,20.8834056 2.81469096,21.029909 L3.34501994,21.5602379 C3.49139074,21.7066087 3.72884554,21.7067413 3.87534892,21.5602379 L19.9013444,5.61529027 L19.9012118,15.6683854 C19.9012118,15.8754789 20.0690609,16.043328 20.2761544,16.043328 L21.0260396,16.043328 C21.2330005,16.0434606 21.4009822,15.8754789 21.4009822,15.6683854 L21.4009822,3.43046745 Z"/></svg>
|
package/user_data/byld.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const CDN_URL = 'https://byld-symbols.s3.us-east-2.amazonaws.com/fonts/'
|
|
4
|
-
|
|
5
|
-
const COLOR = {
|
|
6
|
-
darkgray: '#161715',
|
|
7
|
-
orange: '#F45825',
|
|
8
|
-
green: '#006547',
|
|
9
|
-
gray: '#756E6A',
|
|
10
|
-
grayContrastful: '#A9A09A',
|
|
11
|
-
white: '#FAF9F8',
|
|
12
|
-
violet: '#4A4ADD',
|
|
13
|
-
lightgray: '#D8CFC5'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const THEME = {
|
|
17
|
-
document: {
|
|
18
|
-
background: 'black',
|
|
19
|
-
color: 'white'
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
philosophy: {
|
|
23
|
-
background: 'orange',
|
|
24
|
-
color: 'black',
|
|
25
|
-
'.onlyColor': {
|
|
26
|
-
color: 'orange'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
team: {
|
|
31
|
-
background: 'green',
|
|
32
|
-
color: 'white',
|
|
33
|
-
'.onlyColor': {
|
|
34
|
-
color: 'green'
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
portfolio: {
|
|
39
|
-
background: 'violet',
|
|
40
|
-
color: 'white',
|
|
41
|
-
'.onlyColor': {
|
|
42
|
-
color: 'violet'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
meta: {
|
|
47
|
-
background: 'lightgray',
|
|
48
|
-
color: 'black',
|
|
49
|
-
borderColor: 'black'
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
link: {
|
|
53
|
-
color: 'white'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const FONT = {
|
|
58
|
-
SourceCodePro: [{
|
|
59
|
-
url: CDN_URL + 'SourceCodePro-Regular.woff2',
|
|
60
|
-
fontWeight: 400
|
|
61
|
-
}, {
|
|
62
|
-
url: CDN_URL + 'SourceCodePro-SemiBold.woff2',
|
|
63
|
-
fontWeight: 600
|
|
64
|
-
}]
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const FONT_FAMILY = {
|
|
68
|
-
Default: {
|
|
69
|
-
isDefault: true,
|
|
70
|
-
value: ['"SourceCodePro"'],
|
|
71
|
-
type: 'serif'
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const TYPOGRAPHY = {
|
|
76
|
-
base: 16,
|
|
77
|
-
ratio: 1.125,
|
|
78
|
-
subSequence: true,
|
|
79
|
-
|
|
80
|
-
styles: {},
|
|
81
|
-
|
|
82
|
-
'@mobileL': {
|
|
83
|
-
base: 15,
|
|
84
|
-
ratio: 1.125
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
'@mobileS': {
|
|
88
|
-
base: 14,
|
|
89
|
-
ratio: 1.067
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const SPACING = {
|
|
94
|
-
range: [-5, +12],
|
|
95
|
-
|
|
96
|
-
'@mobileL': {
|
|
97
|
-
ratio: 1.2
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const RESET = {
|
|
102
|
-
body: {
|
|
103
|
-
position: 'relative',
|
|
104
|
-
width: '100%',
|
|
105
|
-
height: '100%'
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export default {
|
|
110
|
-
COLOR,
|
|
111
|
-
THEME,
|
|
112
|
-
FONT,
|
|
113
|
-
FONT_FAMILY,
|
|
114
|
-
TYPOGRAPHY,
|
|
115
|
-
SPACING,
|
|
116
|
-
RESET
|
|
117
|
-
}
|