@symbo.ls/preview 3.0.1 → 3.1.1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/pages/Components.js +81 -95
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/preview",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "a4e7f586f7e4f60bd7b6a8388bdacc3ae1879433",
6
+ "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692",
7
7
  "source": "src/index.js"
8
8
  }
@@ -2,47 +2,40 @@
2
2
 
3
3
  export const ComponentsPage = {
4
4
  extends: 'Flex',
5
-
6
5
  state: {
7
6
  globalTheme: 'dark',
8
7
  value: ''
9
8
  },
10
9
 
11
- Flex: {
12
- props: {
13
- flow: 'column',
14
- padding: 'F E E D',
15
- gap: 'E+C',
16
- minWidth: 'calc(100% - 70px)',
17
- height: '100dvh',
18
- margin: '- - - auto',
19
- style: {
20
- overflowY: 'auto',
21
- scrollBehavior: 'smooth'
22
- }
10
+ FleX: {
11
+ flow: 'column',
12
+ padding: 'F E E D',
13
+ gap: 'E+C',
14
+ minWidth: 'calc(100% - 70px)',
15
+ height: '100dvh',
16
+ margin: '- - - auto',
17
+ style: {
18
+ overflowY: 'auto',
19
+ scrollBehavior: 'smooth'
23
20
  },
24
21
 
25
22
  childExtends: {
26
- props: ({ key, state }) => ({
27
- hide: !key.toLowerCase().includes(state.value),
28
- position: 'relative'
29
- }),
30
- __title: {
31
- props: {
32
- ignoreChildExtends: true,
33
- position: 'absolute',
34
- left: '0',
35
- top: '-C',
36
- fontSize: '14px',
37
- color: 'white .35'
38
- },
23
+ hide: ({ key, state }) => !key.toLowerCase().includes(state.value),
24
+ position: 'relative',
25
+ Title: {
26
+ ignoreChildExtends: true,
27
+ position: 'absolute',
28
+ left: '0',
29
+ top: '-C',
30
+ fontSize: '14px',
31
+ color: 'white .35',
39
32
  text: ({ parent }) => parent.key
40
33
  }
41
34
  },
42
35
 
43
36
  H1: {
44
- props: { hide: false },
45
- __title: { text: 'Searched value:' },
37
+ hide: false,
38
+ Title: { text: 'Searched value:' },
46
39
  text: ({ state }) => state.value
47
40
  },
48
41
 
@@ -54,11 +47,14 @@ export const ComponentsPage = {
54
47
  ...[{}, {}, {}]
55
48
  },
56
49
  AvatarChooser: {
57
- options: [{
58
- text: 'Kevin'
59
- }, {
60
- text: 'John'
61
- }]
50
+ options: [
51
+ {
52
+ text: 'Kevin'
53
+ },
54
+ {
55
+ text: 'John'
56
+ }
57
+ ]
62
58
  },
63
59
  Hgroup: {
64
60
  Title: { text: 'Title' },
@@ -114,13 +110,13 @@ export const ComponentsPage = {
114
110
  UploadingProcess3: {},
115
111
  UploadedProcess3: {},
116
112
  ProgressCircle: {},
117
- ProgressCircleWithIcon: {},
113
+ ProgresICircleWithIcon: {},
118
114
  ProgressCircleWithUnitValue: {},
119
115
  UploadingProcess4: {},
120
116
  UploadedProcess4: {},
121
117
  UploadModal4: {},
122
118
 
123
- Checkbox: {},
119
+ CheckboX: {},
124
120
  Radio: {},
125
121
  Toggle: {},
126
122
  NumberInput: {},
@@ -134,7 +130,7 @@ export const ComponentsPage = {
134
130
  ParagraphButton: {},
135
131
  VerificationCode: {},
136
132
  ResetPassword: {},
137
- ParagraphButtonWithCheckbox: {},
133
+ ParagraphButtonWithCheckboX: {},
138
134
  ContactForm: {},
139
135
  SignUp: {},
140
136
  DoubleHr: {},
@@ -176,82 +172,72 @@ export const ComponentsPage = {
176
172
  },
177
173
 
178
174
  Flex_footer: {
179
- props: {
180
- position: 'fixed',
181
- width: 'calc(100% - 70px)',
182
- zIndex: '100',
183
- bottom: '0',
184
- right: '0',
185
- align: 'center flex-end',
186
- padding: '- B B -',
187
- '@mobile': {
188
- justifyContent: 'center',
189
- padding: '- 20px 30px 20px'
175
+ position: 'fixed',
176
+ width: 'calc(100% - 70px)',
177
+ zIndex: '100',
178
+ bottom: '0',
179
+ right: '0',
180
+ align: 'center flex-end',
181
+ padding: '- B B -',
182
+ '@mobile': {
183
+ justifyContent: 'center',
184
+ padding: '- 20px 30px 20px'
185
+ },
186
+ Search: {
187
+ fontFamily: 'avenir',
188
+ fontWeight: '400',
189
+ round: 'D',
190
+ flow: 'row',
191
+ border: 'solid, #252527',
192
+ borderWidth: '1px',
193
+ width: 'G+D',
194
+ padding: 'Z A Z B',
195
+ position: 'relative',
196
+ Icon: {
197
+ boxSize: 'A+V A+V',
198
+ color: '#3F3F43'
190
199
  },
191
- search: {
200
+ Input: {
192
201
  fontFamily: 'avenir',
193
- fontWeight: '400',
194
- round: 'D',
195
- flow: 'row',
196
- border: 'solid, #252527',
197
- borderWidth: '1px',
198
- width: 'G+D',
199
- padding: 'Z A Z B',
200
- position: 'relative',
201
- Icon: {
202
- boxSize: 'A+V A+V',
203
- color: '#3F3F43'
204
- },
205
- input: {
206
- fontFamily: 'avenir',
207
- placeholder: 'find component . . .',
208
- fontSize: 'A',
209
- ':focus ~ svg': { opacity: '0' }
210
- },
211
- x: {
212
- color: 'white',
213
- position: 'absolute',
214
- right: 'A'
215
- }
202
+ placeholder: 'find component . . .',
203
+ fontSize: 'A',
204
+ ':focus ~ svg': { opacity: '0' }
205
+ },
206
+ X: {
207
+ color: 'white',
208
+ position: 'absolute',
209
+ right: 'A'
216
210
  }
217
211
  },
218
212
  Search: {
219
213
  extends: 'SearchWithButton',
220
- props: {
221
- minWidth: 'G+C',
222
- minHeight: 'C+X',
223
- maxHeight: 'C+Z',
224
- round: 'C',
225
- padding: '- A+W - A+Y',
226
- border: '1px solid #3F3F43',
227
- background: 'transparent'
228
- },
214
+ minWidth: 'G+C',
215
+ minHeight: 'C+X',
216
+ maxHeight: 'C+Z',
217
+ round: 'C',
218
+ padding: '- A+W - A+Y',
219
+ border: '1px solid #3F3F43',
220
+ background: 'transparent',
229
221
  Input: {
230
222
  props: {
231
223
  fontSize: 'Z1',
232
224
  placeholder: 'Find component ...',
233
225
  ':focus ~ svg': { opacity: '0' }
234
226
  },
235
- on: {
236
- keyup: (event, el, s) => {
237
- const value = el.node.value.toLowerCase()
238
- s.update({ value })
239
- }
227
+ onKeyup: (event, el, s) => {
228
+ const value = el.node.value.toLowerCase()
229
+ s.update({ value })
240
230
  }
241
231
  },
242
232
  Icon: {
243
- props: {
244
- fontSize: 'C',
245
- color: '#3F3F43'
246
- }
233
+ fontSize: 'C',
234
+ color: '#3F3F43'
247
235
  },
248
236
  Button: {
249
- props: {
250
- position: 'absolute',
251
- margin: 'auto',
252
- right: 'Z',
253
- color: '#3F3F43'
254
- }
237
+ position: 'absolute',
238
+ margin: 'auto',
239
+ right: 'Z',
240
+ color: '#3F3F43'
255
241
  }
256
242
  }
257
243
  }