@symbo.ls/preview 0.0.67 → 0.0.69

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,5 @@
1
+ {
2
+ "recommendations": [
3
+ "GitHub.copilot"
4
+ ]
5
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/preview",
3
3
  "description": "",
4
4
  "author": "",
5
- "version": "0.0.67",
5
+ "version": "0.0.69",
6
6
  "repository": "https://github.com/rackai/editor",
7
7
  "main": "src/index.js",
8
8
  "scripts": {
package/src/app.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  import './config'
4
4
 
5
- import 'domql/packages/emotion'
6
5
  import { router } from '@domql/router'
7
6
  import { openModal } from '@symbo.ls/components'
8
7
 
@@ -15,7 +14,7 @@ import {
15
14
  Library
16
15
  } from './pages'
17
16
 
18
- import { Sync } from './sync'
17
+ import { Sync } from './sync' // eslint-disable-line no-unused-vars
19
18
 
20
19
  const SUB_ROUTES = {}
21
20
  Object.keys(DesignSystem.routes).map(route => {
@@ -21,7 +21,7 @@ export const NavbarButton = {
21
21
  }),
22
22
 
23
23
  Tooltip: ({ state }) => ({
24
- background: 'black .95',
24
+ background: 'gray0 .95',
25
25
  position: 'absolute',
26
26
  pointerEvents: 'none',
27
27
  top: '50%',
@@ -70,24 +70,29 @@ const fontStyle = {
70
70
  padding: '0'
71
71
  }
72
72
  },
73
- ...[
74
- { props: { text: 'a' } },
75
- { props: { text: 'b', style: { fontStyle: 'italic' } } },
76
- {
77
- props: {
78
- text: 'c',
79
- position: 'relative',
80
- ':before': {
81
- content: '""',
82
- width: '100%',
83
- height: '2px',
84
- background: 'black .75',
85
- position: 'absolute',
86
- bottom: '10px'
87
- }
73
+ ...[{
74
+ props: { text: 'a' }
75
+ }, {
76
+ props: {
77
+ text: 'b',
78
+ style: {
79
+ fontStyle: 'italic'
88
80
  }
89
81
  }
90
- ]
82
+ }, {
83
+ props: {
84
+ text: 'c',
85
+ position: 'relative',
86
+ ':before': {
87
+ content: '""',
88
+ width: '100%',
89
+ height: '2px',
90
+ background: 'black .75',
91
+ position: 'absolute',
92
+ bottom: '10px'
93
+ }
94
+ }
95
+ }]
91
96
  }
92
97
 
93
98
  const paragraph = {
@@ -1,51 +1,42 @@
1
1
  'use strict'
2
2
 
3
- import { Flex } from '@symbo.ls/components'
3
+ import { ColorPicker } from '@symbo.ls/components'
4
4
 
5
- import { ColorText } from './ColorText'
6
-
7
- const props = {
8
- background: 'gray6',
9
- width: 'fit-content',
10
- round: 'B2',
11
- position: 'relative',
12
- maxHeight: '36px',
13
- zIndex: '2',
14
- ':after': {
15
- content: '""',
16
- width: '1px',
17
- height: '95%',
18
- background: 'black',
19
- position: 'absolute',
20
- top: '50%',
21
- left: '50%',
22
- transform: 'translate(-50%, -50%)'
23
- },
24
- childProps: {
25
- // color: 'red'
26
- // padding: 'Z E Z B'
27
- }
28
-
29
- }
30
5
  export const ThemeButtons = {
31
- extend: Flex,
32
-
33
- props,
6
+ props: {
7
+ position: 'relative',
8
+ zIndex: '2',
9
+ round: 'X2',
10
+ style: {
11
+ columnCount: 2,
12
+ columnGap: '0'
13
+ }
14
+ },
34
15
 
35
16
  attr: { buttons: true },
36
17
 
37
- childExtend: ColorText,
38
- ...[{
18
+ childExtend: {
19
+ extend: ColorPicker,
39
20
  props: {
40
- padding: 'Z E Z Z1',
41
- color: { background: 'white' }
21
+ width: '100%',
22
+ theme: null,
23
+ background: 'black 0'
24
+ },
25
+ on: {
26
+ stateUpdated: (el, s) => {
27
+ s.parent.update({ [s.key]: s.value })
28
+ return false
29
+ }
42
30
  }
31
+ },
43
32
 
44
- }, {
45
- props: {
46
- padding: 'Z E Z B',
47
- color: { background: 'black' },
48
- caption: { text: 'Text color' }
49
- }
50
- }]
33
+ $setStateCollection: (el, s) => {
34
+ return [{
35
+ key: 'color',
36
+ value: s.color
37
+ }, {
38
+ key: 'background',
39
+ value: s.background
40
+ }]
41
+ }
51
42
  }
@@ -13,7 +13,6 @@ export * from './ThemeButtons'
13
13
  export * from './ContinueButton'
14
14
  export * from './SlidersWithResponsive'
15
15
  export * from './HeaderHeading'
16
- export * from './UploadImage'
17
16
  export * from './ColorsPalette'
18
17
  export * from './ShapePreview'
19
18
  export * from './SpacingPreview'
@@ -27,7 +27,7 @@ export default ({ parent: { state: { __system } } }) => ({
27
27
  value: __system.TYPOGRAPHY.ratio
28
28
  }, {
29
29
  property: 'Styles',
30
- value: Object.keys(__system.TYPOGRAPHY?.styles).length
30
+ value: __system.TYPOGRAPHY.styles && Object.keys(__system.TYPOGRAPHY.styles).length
31
31
  }, {
32
32
  property: 'Fonts',
33
33
  value: Object.keys(__system.FONT).length
@@ -53,6 +53,13 @@ export default {
53
53
  spacingRatio: s.ratio,
54
54
  direction: s.direction
55
55
  }, { preventUpdate: true })
56
+
57
+ // const componentNode = el.comp.node
58
+ // const SVG = elementToSVG(componentNode)
59
+ // const svgString = new window.XMLSerializer().serializeToString(SVG)
60
+ // console.log(SVG)
61
+ // console.log(svgString)
62
+
56
63
  updateReset()
57
64
  }
58
65
  }
@@ -1,34 +1,24 @@
1
1
  'use strict'
2
2
 
3
- import { Flex, CommonField, WiderButton } from '@symbo.ls/components'
3
+ import { Flex, CommonField, WiderButton, ClickableItem } from '@symbo.ls/components'
4
4
 
5
5
  import { InitPage } from '../../components'
6
6
 
7
7
  const header = {
8
8
  props: {
9
- margin: '- - D -',
10
- Caption: { text: 'And finally' },
11
- H1: {
12
- text: 'Choose your environment',
13
- flow: 'row-reverse',
14
- align: 'center flex-end',
15
- ':after': {
16
- content: '", if any"',
17
- fontWeight: '200',
18
- color: 'gray9'
19
- }
20
- }
9
+ margin: '- - D -'
21
10
  },
22
11
 
23
- Caption: {},
12
+ Caption: { text: 'And finally,' },
24
13
  H1: {
25
- span: {},
26
- span2: {}
14
+ text: 'Your environment'
27
15
  }
28
16
  }
29
17
 
30
18
  const commonField = {
19
+ tag: 'section',
31
20
  extend: CommonField,
21
+
32
22
  props: {
33
23
  gap: 'Z2',
34
24
  element: {
@@ -36,7 +26,7 @@ const commonField = {
36
26
  maxWidth: 'I',
37
27
  alignItems: 'center',
38
28
  childProps: {
39
- background: 'gray2',
29
+ theme: 'quaternary',
40
30
  color: 'white .8',
41
31
  round: 'Z1',
42
32
  fontSize: 'A2'
@@ -48,7 +38,12 @@ const commonField = {
48
38
  element: {
49
39
  extend: Flex,
50
40
  childExtend: {
51
- extend: WiderButton
41
+ extend: [WiderButton, ClickableItem],
42
+ on: {
43
+ click: (ev, el, s) => {
44
+ s.parent.update({ })
45
+ }
46
+ }
52
47
  }
53
48
  }
54
49
  }
@@ -57,10 +52,7 @@ const yourEnvironment = {
57
52
  extend: commonField,
58
53
  props: {
59
54
  margin: '- - C2 -',
60
- title: { text: 'Your environment' },
61
- element: {
62
- childProps: {}
63
- }
55
+ title: { text: 'Your environment' }
64
56
  },
65
57
 
66
58
  title: {},
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { Flex, GlobalThemeTemplate, Hoverable } from '@symbo.ls/components'
3
+ import { Clickable, Flex, GlobalThemeTemplate } from '@symbo.ls/components'
4
4
  import { InitPage } from '../../components'
5
5
 
6
6
  const paragraphs = {
@@ -16,8 +16,10 @@ const modes = {
16
16
  gap: 'C',
17
17
  margin: '- -Z E2'
18
18
  },
19
+
19
20
  childExtend: {
20
- extend: [Hoverable, GlobalThemeTemplate],
21
+ extend: [Clickable, GlobalThemeTemplate],
22
+
21
23
  props: ({ state }) => ({
22
24
  minWidth: 'G3',
23
25
  maxWidth: '406px',
@@ -25,16 +27,18 @@ const modes = {
25
27
  maxHeight: 'E2',
26
28
  boxSizing: 'content-box',
27
29
  align: 'flex-start flex-start',
28
- padding: 'A2 A X X1',
30
+ padding: 'A A Z',
29
31
  overflow: 'hidden',
30
32
  round: 'A1',
33
+ color: state.color,
31
34
  background: state.background,
32
35
  wrap: 'wrap',
36
+ transitionProperty: 'transform, opacity, border-radius',
33
37
 
34
38
  icon: {
35
39
  boxSize: 'C C',
36
- margin: '- - - Z2',
37
- background: 'yellow .3',
40
+ color: 'yellow 1 +5',
41
+ background: 'yellow .2',
38
42
  pointerEvents: 'none',
39
43
  fontSize: `B`
40
44
  },
@@ -44,8 +48,9 @@ const modes = {
44
48
  title: { fontSize: 'D2', fontWeight: 'bold' }
45
49
  },
46
50
 
47
- ':hover': {
51
+ '.active': {
48
52
  opacity: '1',
53
+ round: 'A1 A1 Y2 Y2',
49
54
 
50
55
  style: {
51
56
  '[buttons]': {
@@ -60,36 +65,45 @@ const modes = {
60
65
  article: {},
61
66
 
62
67
  ThemeButtons: {
63
- transform: 'translate3d(0, 150%, 0)',
68
+ position: 'absolute',
69
+ left: 'X2',
70
+ right: 'X2',
71
+ bottom: 'X2',
72
+ opacity: '0',
64
73
  transition: 'B default-bezier',
65
74
  transitionProperty: 'transform, opacity',
66
- opacity: '0',
67
- margin: 'B2 0 0 0',
68
- alignSelf: 'flex-end'
75
+ transform: 'translate3d(0, 100%, 0)'
69
76
  },
70
77
 
71
78
  Span: {
72
- position: 'absolute',
73
- bottom: 'A2',
74
- left: 'B',
79
+ width: '100%',
75
80
  fontSize: 'Z',
76
81
  color: 'gray7',
77
82
  fontStyle: 'italic',
78
- text: 'hover to change'
83
+ margin: 'C 0 0 X2',
84
+ text: 'click to change'
85
+ },
86
+
87
+ on: {
88
+ click: (ev, el, s) => {
89
+ if (ev.target === el.node) {
90
+ el.setProps({ active: !el.props.active })
91
+ }
92
+ },
93
+ stateUpdated: (el, s, changes) => {
94
+ const { color, background } = s
95
+ s.systemUpdate({
96
+ THEME: {
97
+ document: {
98
+ ['@' + s.key]: { color, background }
99
+ }
100
+ }
101
+ }, { preventUpdate: true })
102
+ }
79
103
  }
80
104
  },
81
105
 
82
- $setStateCollection: () => [{
83
- title: 'Day',
84
- key: 'light',
85
- icon: 'sun',
86
- background: 'white'
87
- }, {
88
- title: 'Night',
89
- key: 'dark',
90
- icon: 'moon',
91
- background: 'gray3'
92
- }]
106
+ $setStateCollection: ({ state }) => state.values
93
107
  }
94
108
 
95
109
  export const CreateDocumentTheme = {
@@ -114,5 +128,35 @@ export const CreateDocumentTheme = {
114
128
 
115
129
  ContinueButton: {
116
130
  href: '/init/pallete'
131
+ },
132
+
133
+ on: {
134
+ init: ({ state }) => {
135
+ const { THEME, COLOR } = state.__system
136
+ const { document } = THEME
137
+ const dark = document['@dark']
138
+ const light = document['@light']
139
+
140
+ const colorRef = {
141
+ light: {
142
+ key: 'light',
143
+ title: 'Day',
144
+ icon: 'sun',
145
+ color: COLOR[light.color] || light.color || '#000000',
146
+ background: COLOR[light.background] || light.background || '#FFFFFF'
147
+ },
148
+ dark: {
149
+ key: 'dark',
150
+ title: 'Night',
151
+ icon: 'moon',
152
+ color: COLOR[dark.color] || dark.color || '#FFFFFF',
153
+ background: COLOR[dark.background] || dark.background || '#000000'
154
+ }
155
+ }
156
+
157
+ state.update({
158
+ values: colorRef
159
+ }, { preventUpdate: true, ignoreInitUpdate: true })
160
+ }
117
161
  }
118
162
  }
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { Flex, ColorSelectWithTitle, Input } from '@symbo.ls/components'
3
+ import { Flex, ColorPickerWithTitle } from '@symbo.ls/components'
4
4
  import { InitPage } from '../../components'
5
5
 
6
6
  const colors = {
@@ -11,82 +11,12 @@ const colors = {
11
11
  gap: 'B1',
12
12
  opacity: '.75'
13
13
  },
14
+
14
15
  childExtend: {
15
- extend: ColorSelectWithTitle,
16
+ extend: ColorPickerWithTitle,
16
17
  props: ({ state }) => ({
17
- width: '100%',
18
- title: { text: state.title },
19
- element: {
20
- padding: 'Z',
21
- title: {
22
- box: {
23
- boxSize: 'B B',
24
- position: 'relative',
25
- zIndex: 2,
26
- background: 'white .05',
27
- '::-webkit-color-swatch-wrapper': {
28
- padding: '0'
29
- },
30
- '::-webkit-color-swatch': {
31
- border: 'none',
32
- round: 'Y'
33
- }
34
- },
35
- value: {
36
- round: 'Z',
37
- position: 'absolute',
38
- inset: '0 0 0 0',
39
- padding: '- - - B2+W1',
40
- textAlign: 'start',
41
- lineHeight: '100%',
42
- placeholder: 'Color value',
43
- ':focus': {
44
- outline: 'solid, X, blue .3'
45
- }
46
- }
47
- }
48
- }
49
- }),
50
- title: {},
51
- element: {
52
- title: {
53
- box: {
54
- extend: 'Focusable',
55
- tag: 'input',
56
- attr: {
57
- type: 'color',
58
- value: ({ state }) => state.value
59
- },
60
- props: {
61
- border: '0',
62
- padding: '0',
63
- style: {
64
- appearance: 'none'
65
- }
66
- },
67
- on: {
68
- update: (el, s) => {
69
- el.node.value = s.value || ''
70
- },
71
- input: (ev, el, s) => {
72
- s.update({ value: el.node.value || '' })
73
- }
74
- }
75
- },
76
- value: {
77
- extend: Input,
78
- on: {
79
- update: (el, s) => {
80
- el.node.value = s.value || ''
81
- },
82
- input: (ev, el, s) => {
83
- s.update({ value: el.node.value || '' })
84
- }
85
- }
86
- }
87
- },
88
- buttons: null
89
- }
18
+ title: { text: state.title }
19
+ })
90
20
  },
91
21
 
92
22
  $setStateCollection: ({ state }) => [{
@@ -114,9 +44,12 @@ const content = {
114
44
 
115
45
  colors,
116
46
 
117
- UploadImage: {},
47
+ ImageColorPicker: {},
118
48
  ColorsPalette: {
119
- margin: '- - auto'
49
+ props: ({ state }) => ({
50
+ hide: state.imageUrl,
51
+ margin: '- - auto'
52
+ })
120
53
  }
121
54
  }
122
55
 
@@ -142,8 +142,8 @@ export const Table = {
142
142
  '@dark': {
143
143
  color: 'gray8',
144
144
  '::after': {
145
- background: 'black',
146
- boxShadow: 'black, 0 0px 50px 50px'
145
+ background: 'gray0',
146
+ boxShadow: 'gray0, 0 0px 50px 50px'
147
147
  }
148
148
  },
149
149
  '@light': {
package/src/state.js CHANGED
@@ -3,11 +3,14 @@
3
3
  import SYSTEM from './config'
4
4
  import { LIBRARY, COMPONENTS } from '../.symbols'
5
5
  import BYLD from '../user_data/byld' // eslint-disable-line no-unused-vars
6
+ import FIT from '../user_data/4it' // eslint-disable-line no-unused-vars
6
7
 
7
8
  export const state = {
8
9
  globalTheme: 'dark',
9
- SYSTEM
10
10
  // SYSTEM: {}
11
+ SYSTEM: FIT
12
+ // SYSTEM
13
+ // SYSTEM: BYLD
11
14
  }
12
15
 
13
16
  export const context = {
package/src/sync.js CHANGED
@@ -3,16 +3,9 @@
3
3
  // import { init } from '@symbo.ls/init'
4
4
  import { connect, send } from '@symbo.ls/socket/client'
5
5
 
6
- import CONFIG_DEFAULT from '@symbo.ls/config-default'
7
-
8
6
  const receive = (element, state) => {
9
7
  return (event, data) => {
10
8
  state.update({ SYSTEM: data })
11
- if (!state.SYSTEM.TYPOGRAPHY) {
12
- state.update({
13
- SYSTEM: CONFIG_DEFAULT
14
- }, { preventUpdate: true })
15
- }
16
9
  }
17
10
  }
18
11
 
@@ -0,0 +1,160 @@
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
+ }
123
+
124
+ export const FONT_FAMILY = {
125
+ Default: {
126
+ isDefault: true,
127
+ value: ['"Avenir"'],
128
+ type: 'serif'
129
+ }
130
+ }
131
+
132
+ export const TYPOGRAPHY = {
133
+ base: 16,
134
+ default: 16,
135
+ ratio: 1.125,
136
+ subSequence: true,
137
+ range: [-5, +18]
138
+ }
139
+
140
+ export const SPACING = {
141
+ range: [-5, +12]
142
+ }
143
+
144
+ export const ICONS = {
145
+ arrow: ARROW_SVG
146
+ }
147
+
148
+ export default {
149
+ COLOR,
150
+ GRADIENT,
151
+ THEME,
152
+ FONT,
153
+ FONT_FAMILY,
154
+ TYPOGRAPHY,
155
+ SPACING,
156
+ ICONS,
157
+ TIMING: {},
158
+ MEDIA: {},
159
+ DEVICES: {}
160
+ }
@@ -0,0 +1 @@
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>
@@ -1,28 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, CommonField, Upload, ClickableItem } from '@symbo.ls/components'
4
-
5
- export const UploadImage = {
6
- extend: [CommonField, Flex],
7
-
8
- props: {
9
- title: { text: 'Pick from the picture' },
10
- element: {
11
- border: 'none',
12
- background: 'gray1',
13
- padding: 'Z2 A2 Z2 Z2',
14
- gap: 'Z',
15
- flow: 'row',
16
- icon: { style: { fontSize: '52px' } },
17
- p: {
18
- text: 'Upload or drop the image'
19
- }
20
- }
21
- },
22
- title: {},
23
- element: {
24
- extend: [Upload, Flex, ClickableItem],
25
- icon: { style: { fontSize: '52px' } },
26
- p: { span: null }
27
- }
28
- }