@symbo.ls/avatar 2.11.158 → 2.11.162
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/index.js +67 -72
- package/package.json +4 -3
- package/symbols.js +42 -0
package/index.js
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Img, Flex } from '@symbo.ls/atoms'
|
|
4
4
|
import { Button } from '@symbo.ls/button'
|
|
5
|
-
import {
|
|
6
|
-
import { InfoSet } from '@symbo.ls/infoset'
|
|
7
|
-
import { CardLabel } from '@symbo.ls/label'
|
|
5
|
+
import { StatusIndicator } from '@symbo.ls/indicator'
|
|
8
6
|
|
|
9
7
|
export const Avatar = {
|
|
10
8
|
extend: Img,
|
|
@@ -57,7 +55,7 @@ export const DropDownWithAvatar = {
|
|
|
57
55
|
|
|
58
56
|
export const AvatarWithIndicator = {
|
|
59
57
|
avatar: { extend: Avatar },
|
|
60
|
-
indicator: { extend:
|
|
58
|
+
indicator: { extend: StatusIndicator },
|
|
61
59
|
|
|
62
60
|
props: {
|
|
63
61
|
boxSize: 'fit-content fit-content',
|
|
@@ -135,38 +133,46 @@ export const AvatarChooser = {
|
|
|
135
133
|
|
|
136
134
|
export const AvatarWithInfoSet = {
|
|
137
135
|
extend: Flex,
|
|
138
|
-
avatar: { extend: AvatarWithIndicator },
|
|
139
|
-
infos: {
|
|
140
|
-
extend: InfoSet,
|
|
141
|
-
...[
|
|
142
|
-
{
|
|
143
|
-
title: { props: { text: 'Erin Schleifer' } },
|
|
144
|
-
subTitle: { caption: { props: { text: 'email@symbols.com' } } }
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
136
|
|
|
149
137
|
props: {
|
|
150
138
|
boxSize: 'fit-content',
|
|
151
139
|
align: 'center flex-start',
|
|
152
|
-
gap: 'A'
|
|
153
|
-
|
|
140
|
+
gap: 'A'
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
AvatarWithIndicator: {},
|
|
144
|
+
|
|
145
|
+
InfoSet: {
|
|
146
|
+
props: {
|
|
154
147
|
childProps: {
|
|
155
148
|
flow: 'column',
|
|
156
149
|
subTitle: { caption: { whiteSpace: 'nowrap' } }
|
|
157
150
|
}
|
|
158
|
-
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
...[{
|
|
154
|
+
title: { props: { text: 'Erin Schleifer' } },
|
|
155
|
+
subTitle: { caption: { props: { text: 'email@symbols.com' } } }
|
|
156
|
+
}]
|
|
159
157
|
}
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
export const AvatarInfoSetWithLabel = {
|
|
163
161
|
extend: AvatarWithInfoSet,
|
|
164
|
-
|
|
162
|
+
|
|
163
|
+
AvatarWithIndicator: { boxSize: 'B' },
|
|
164
|
+
|
|
165
165
|
infos: {
|
|
166
|
+
props: {
|
|
167
|
+
gap: 'X',
|
|
168
|
+
childProps: {
|
|
169
|
+
flow: 'row'
|
|
170
|
+
}
|
|
171
|
+
},
|
|
166
172
|
...[
|
|
167
173
|
{
|
|
168
174
|
title: { props: { text: 'ETHDOWN' } },
|
|
169
|
-
|
|
175
|
+
Label: {},
|
|
170
176
|
subTitle: null,
|
|
171
177
|
props: { gap: 'Z' }
|
|
172
178
|
},
|
|
@@ -174,45 +180,26 @@ export const AvatarInfoSetWithLabel = {
|
|
|
174
180
|
subTitle: { props: { text: 'Short ADA with up to 4x Leverage' } }
|
|
175
181
|
}
|
|
176
182
|
]
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
props: {
|
|
180
|
-
avatar: { boxSize: 'B' },
|
|
181
|
-
infos: {
|
|
182
|
-
gap: 'X',
|
|
183
|
-
childProps: {
|
|
184
|
-
flow: 'row'
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
183
|
}
|
|
188
184
|
}
|
|
189
185
|
|
|
190
186
|
export const AvatarInfoSetWithButton = {
|
|
191
187
|
extend: AvatarWithInfoSet,
|
|
192
|
-
avatar: { extend: Avatar },
|
|
193
|
-
infos: {
|
|
194
|
-
...[
|
|
195
|
-
{
|
|
196
|
-
title: { props: { text: 'Wallet ID' } },
|
|
197
|
-
subTitle: { caption: { props: { text: '0xfb59...d862' } } }
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
extend: Button,
|
|
201
|
-
props: { icon: 'copyOutline' }
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
},
|
|
205
188
|
|
|
206
189
|
props: {
|
|
207
190
|
padding: 'Y A Y Y',
|
|
208
191
|
border: '1px solid #57575C',
|
|
209
192
|
round: 'Z',
|
|
210
|
-
gap: 'Z'
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
193
|
+
gap: 'Z'
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
AvatarWithIndicator: {
|
|
197
|
+
boxSize: 'A+B',
|
|
198
|
+
round: 'Y'
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
infos: {
|
|
202
|
+
props: {
|
|
216
203
|
flow: 'row',
|
|
217
204
|
align: 'center flex-start',
|
|
218
205
|
gap: 'A+X',
|
|
@@ -225,40 +212,40 @@ export const AvatarInfoSetWithButton = {
|
|
|
225
212
|
background: 'transparent'
|
|
226
213
|
}
|
|
227
214
|
}
|
|
228
|
-
}
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
...[{
|
|
218
|
+
title: { props: { text: 'Wallet ID' } },
|
|
219
|
+
subTitle: { caption: { props: { text: '0xfb59...d862' } } }
|
|
220
|
+
}, {
|
|
221
|
+
extend: Button,
|
|
222
|
+
props: { icon: 'copyOutline' }
|
|
223
|
+
}]
|
|
229
224
|
}
|
|
230
225
|
}
|
|
231
226
|
|
|
232
227
|
export const AvatarBundleInfoSet = {
|
|
233
228
|
extend: AvatarWithInfoSet,
|
|
234
|
-
avatar: { extend: AvatarBundle },
|
|
235
|
-
infos: {
|
|
236
|
-
...[
|
|
237
|
-
{
|
|
238
|
-
title: { props: { text: 'ETH/BNB' } },
|
|
239
|
-
CardLabel: {
|
|
240
|
-
text: '1 ETH = 240.7 BNB'
|
|
241
|
-
},
|
|
242
|
-
subTitle: null
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
229
|
|
|
247
230
|
props: {
|
|
248
231
|
gap: 'Z',
|
|
249
232
|
background: '#1C1C1F',
|
|
250
233
|
padding: 'A A',
|
|
251
|
-
round: 'Z'
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
234
|
+
round: 'Z'
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
AvatarBundle: {
|
|
238
|
+
childProps: {
|
|
239
|
+
boxSize: 'A+A',
|
|
240
|
+
':not(:first-child)': {
|
|
241
|
+
border: 'solid, black 0',
|
|
242
|
+
borderWidth: '1px'
|
|
259
243
|
}
|
|
260
|
-
}
|
|
261
|
-
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
infos: {
|
|
248
|
+
props: {
|
|
262
249
|
childProps: {
|
|
263
250
|
flow: 'row',
|
|
264
251
|
gap: 'Z',
|
|
@@ -269,6 +256,14 @@ export const AvatarBundleInfoSet = {
|
|
|
269
256
|
padding: 'Y Z'
|
|
270
257
|
}
|
|
271
258
|
}
|
|
272
|
-
}
|
|
259
|
+
},
|
|
260
|
+
|
|
261
|
+
...[{
|
|
262
|
+
title: { props: { text: 'ETH/BNB' } },
|
|
263
|
+
Label: {
|
|
264
|
+
text: '1 ETH = 240.7 BNB'
|
|
265
|
+
},
|
|
266
|
+
subTitle: null
|
|
267
|
+
}]
|
|
273
268
|
}
|
|
274
269
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/avatar",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.162",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "fe3359a1d6c14d38f45f5e5db10ef2056947a228",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@symbo.ls/atoms": "latest",
|
|
9
|
-
"@symbo.ls/button": "latest"
|
|
9
|
+
"@symbo.ls/button": "latest",
|
|
10
|
+
"@symbo.ls/indicator": "latest"
|
|
10
11
|
},
|
|
11
12
|
"source": "src/index.js"
|
|
12
13
|
}
|
package/symbols.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import PACKAGE from './package.json'
|
|
4
|
+
import { Avatar } from './'
|
|
5
|
+
|
|
6
|
+
const key = 'Avatar'
|
|
7
|
+
const title = 'Avatar'
|
|
8
|
+
const description = ''
|
|
9
|
+
const category = ['Atoms']
|
|
10
|
+
const extend = 'Avatar'
|
|
11
|
+
|
|
12
|
+
const state = {}
|
|
13
|
+
const props = {}
|
|
14
|
+
|
|
15
|
+
const component = {
|
|
16
|
+
extend: Avatar
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const code = ''
|
|
20
|
+
|
|
21
|
+
const settings = {
|
|
22
|
+
gridOptions: { colspan: 2, rowspan: 1 }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
key,
|
|
27
|
+
title,
|
|
28
|
+
description,
|
|
29
|
+
category,
|
|
30
|
+
extend,
|
|
31
|
+
|
|
32
|
+
component,
|
|
33
|
+
code,
|
|
34
|
+
state,
|
|
35
|
+
props,
|
|
36
|
+
|
|
37
|
+
settings,
|
|
38
|
+
package: PACKAGE.name,
|
|
39
|
+
version: PACKAGE.version,
|
|
40
|
+
interactivity: [],
|
|
41
|
+
dataTypes: []
|
|
42
|
+
}
|