@symbo.ls/avatar 2.11.143 → 2.11.147

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/index.js +38 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { Img, Flex } from '@symbo.ls/atoms'
4
4
  import { Button } from '@symbo.ls/button'
5
5
  import { IndicatorDot } from '@symbo.ls/accessories'
6
6
  import { InfoSet } from '@symbo.ls/infoset'
7
- import { CardLabel } from '@symbo.ls/card'
7
+ import { CardLabel } from '@symbo.ls/label'
8
8
 
9
9
  export const Avatar = {
10
10
  extend: Img,
@@ -20,6 +20,41 @@ export const Avatar = {
20
20
  }
21
21
  }
22
22
 
23
+ export const DropDownWithAvatar = {
24
+ extend: Flex,
25
+ avatar: { extend: Avatar },
26
+ list: {
27
+ childExtend: { tag: 'H6' },
28
+ ...[{ props: { text: 'eth' } }]
29
+ },
30
+ downArrow: {
31
+ extend: Button,
32
+ props: { icon: 'arrowDown' }
33
+ },
34
+
35
+ props: {
36
+ boxSize: 'fit-content fit-content',
37
+ align: 'center flex-start',
38
+ padding: 'Y Z',
39
+ gap: 'Z',
40
+ round: 'Z',
41
+ background: 'rgba(28, 28, 31, 1)',
42
+ avatar: { boxSize: 'A+Y' },
43
+ list: {
44
+ childProps: {
45
+ fontSize: 'Z',
46
+ textTransform: 'uppercase'
47
+ }
48
+ },
49
+ downArrow: {
50
+ padding: '0',
51
+ background: 'transparent',
52
+ color: 'white',
53
+ fontSize: 'Y'
54
+ }
55
+ }
56
+ }
57
+
23
58
  export const AvatarWithIndicator = {
24
59
  avatar: { extend: Avatar },
25
60
  indicator: { extend: IndicatorDot },
@@ -71,6 +106,7 @@ export const AvatarChooser = {
71
106
 
72
107
  select: {
73
108
  props: {
109
+ id: 'avatar-chooser',
74
110
  outline: 'none',
75
111
  pointerEvents: 'all',
76
112
  appearance: 'none',
@@ -85,7 +121,7 @@ export const AvatarChooser = {
85
121
  padding: '0 A 0 B1+X'
86
122
  },
87
123
 
88
- attr: { name: 'avatar-chooser', id: 'avatar-chooser' },
124
+ attr: { name: 'avatar-chooser' },
89
125
 
90
126
  childExtend: { tag: 'option' },
91
127
  $setPropsCollection: ({ parent }) => parent.props.options,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/avatar",
3
- "version": "2.11.143",
3
+ "version": "2.11.147",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "3d7bcc81ae9ee0083a70e6b95f7ecac3b73359ba",
6
+ "gitHead": "198d7b500aa7c238bf8594fb452dd3ea823ee4ba",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/button": "latest"