@symbo.ls/avatar 2.11.138 → 2.11.143
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 +148 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { Img, Flex } from '@symbo.ls/atoms'
|
|
4
4
|
import { Button } from '@symbo.ls/button'
|
|
5
5
|
import { IndicatorDot } from '@symbo.ls/accessories'
|
|
6
|
+
import { InfoSet } from '@symbo.ls/infoset'
|
|
7
|
+
import { CardLabel } from '@symbo.ls/card'
|
|
6
8
|
|
|
7
9
|
export const Avatar = {
|
|
8
10
|
extend: Img,
|
|
@@ -45,7 +47,8 @@ export const AvatarBundle = {
|
|
|
45
47
|
margin: '0 -Y2 0 0'
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
}
|
|
50
|
+
},
|
|
51
|
+
...[{}, {}]
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export const AvatarChooser = {
|
|
@@ -93,3 +96,147 @@ export const AvatarChooser = {
|
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
}
|
|
99
|
+
|
|
100
|
+
export const AvatarWithInfoSet = {
|
|
101
|
+
extend: Flex,
|
|
102
|
+
avatar: { extend: AvatarWithIndicator },
|
|
103
|
+
infos: {
|
|
104
|
+
extend: InfoSet,
|
|
105
|
+
...[
|
|
106
|
+
{
|
|
107
|
+
title: { props: { text: 'Erin Schleifer' } },
|
|
108
|
+
subTitle: { caption: { props: { text: 'email@symbols.com' } } }
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
props: {
|
|
114
|
+
boxSize: 'fit-content',
|
|
115
|
+
align: 'center flex-start',
|
|
116
|
+
gap: 'A',
|
|
117
|
+
infos: {
|
|
118
|
+
childProps: {
|
|
119
|
+
flow: 'column',
|
|
120
|
+
subTitle: { caption: { whiteSpace: 'nowrap' } }
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export const AvatarInfoSetWithLabel = {
|
|
127
|
+
extend: AvatarWithInfoSet,
|
|
128
|
+
avatar: { extend: Avatar },
|
|
129
|
+
infos: {
|
|
130
|
+
...[
|
|
131
|
+
{
|
|
132
|
+
title: { props: { text: 'ETHDOWN' } },
|
|
133
|
+
label: { extend: CardLabel },
|
|
134
|
+
subTitle: null,
|
|
135
|
+
props: { gap: 'Z' }
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
subTitle: { props: { text: 'Short ADA with up to 4x Leverage' } }
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
props: {
|
|
144
|
+
avatar: { boxSize: 'B' },
|
|
145
|
+
infos: {
|
|
146
|
+
gap: 'X',
|
|
147
|
+
childProps: {
|
|
148
|
+
flow: 'row'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export const AvatarInfoSetWithButton = {
|
|
155
|
+
extend: AvatarWithInfoSet,
|
|
156
|
+
avatar: { extend: Avatar },
|
|
157
|
+
infos: {
|
|
158
|
+
...[
|
|
159
|
+
{
|
|
160
|
+
title: { props: { text: 'Wallet ID' } },
|
|
161
|
+
subTitle: { caption: { props: { text: '0xfb59...d862' } } }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
extend: Button,
|
|
165
|
+
props: { icon: 'copyOutline' }
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
props: {
|
|
171
|
+
padding: 'Y A Y Y',
|
|
172
|
+
border: '1px solid #57575C',
|
|
173
|
+
round: 'Z',
|
|
174
|
+
gap: 'Z',
|
|
175
|
+
avatar: {
|
|
176
|
+
boxSize: 'A+B',
|
|
177
|
+
round: 'Y'
|
|
178
|
+
},
|
|
179
|
+
infos: {
|
|
180
|
+
flow: 'row',
|
|
181
|
+
align: 'center flex-start',
|
|
182
|
+
gap: 'A+X',
|
|
183
|
+
childProps: {
|
|
184
|
+
title: { fontSize: 'Y' },
|
|
185
|
+
':nth-child(2)': {
|
|
186
|
+
padding: '0',
|
|
187
|
+
color: 'white',
|
|
188
|
+
fontSize: 'C',
|
|
189
|
+
background: 'transparent'
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export const AvatarBundleInfoSet = {
|
|
197
|
+
extend: AvatarWithInfoSet,
|
|
198
|
+
avatar: { extend: AvatarBundle },
|
|
199
|
+
infos: {
|
|
200
|
+
...[
|
|
201
|
+
{
|
|
202
|
+
title: { props: { text: 'ETH/BNB' } },
|
|
203
|
+
label: {
|
|
204
|
+
extend: CardLabel,
|
|
205
|
+
props: { text: '1 ETH = 240.7 BNB' }
|
|
206
|
+
},
|
|
207
|
+
subTitle: null
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
props: {
|
|
213
|
+
gap: 'Z',
|
|
214
|
+
background: '#1C1C1F',
|
|
215
|
+
padding: 'A A',
|
|
216
|
+
round: 'Z',
|
|
217
|
+
avatar: {
|
|
218
|
+
childProps: {
|
|
219
|
+
boxSize: 'A+A',
|
|
220
|
+
':not(:first-child)': {
|
|
221
|
+
border: 'solid, black 0',
|
|
222
|
+
borderWidth: '1px'
|
|
223
|
+
}
|
|
224
|
+
// style: {
|
|
225
|
+
// '&:not(:first-child)': { border: '1px solid rgba(0, 0, 0, 0)' }
|
|
226
|
+
// }
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
infos: {
|
|
230
|
+
childProps: {
|
|
231
|
+
flow: 'row',
|
|
232
|
+
gap: 'Z',
|
|
233
|
+
align: 'center flex-start',
|
|
234
|
+
title: { fontWeight: '700' },
|
|
235
|
+
label: {
|
|
236
|
+
background: 'black',
|
|
237
|
+
padding: 'Y Z'
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/avatar",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.143",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "3d7bcc81ae9ee0083a70e6b95f7ecac3b73359ba",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@symbo.ls/atoms": "latest",
|
|
9
9
|
"@symbo.ls/button": "latest"
|