@symbo.ls/button 2.11.221 → 2.11.247
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 +34 -36
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -70,18 +70,20 @@ export const CommonButton = {
|
|
|
70
70
|
props: {
|
|
71
71
|
theme: 'primary',
|
|
72
72
|
boxSize: 'fit-content',
|
|
73
|
-
padding: '
|
|
74
|
-
round: '
|
|
75
|
-
gap: '
|
|
73
|
+
padding: 'Z2 A2',
|
|
74
|
+
round: 'Z1',
|
|
75
|
+
gap: 'X1',
|
|
76
76
|
position: 'relative'
|
|
77
77
|
},
|
|
78
78
|
Icon: {
|
|
79
|
-
props: { fontSize: '
|
|
79
|
+
props: { fontSize: 'B1' }
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
caption: {
|
|
82
82
|
props: {
|
|
83
83
|
text: 'Button',
|
|
84
|
-
|
|
84
|
+
line_height: '1em',
|
|
85
|
+
fontSize: 'Z2',
|
|
86
|
+
letterSpacing: '.005em'
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
@@ -91,10 +93,10 @@ export const IconCommonButton = {
|
|
|
91
93
|
props: {
|
|
92
94
|
Icon: { name: 'smile' },
|
|
93
95
|
boxSize: 'fit-content fit-content',
|
|
94
|
-
padding: '
|
|
95
|
-
|
|
96
|
+
padding: 'Z2',
|
|
97
|
+
theme: 'tertiary'
|
|
96
98
|
},
|
|
97
|
-
|
|
99
|
+
caption: null
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
export const ButtonSet = {
|
|
@@ -105,35 +107,31 @@ export const ButtonSet = {
|
|
|
105
107
|
|
|
106
108
|
export const CancelConfirmButtons = {
|
|
107
109
|
extend: Flex,
|
|
110
|
+
props: {
|
|
111
|
+
gap: 'Z2',
|
|
112
|
+
maxWidth: 'fit-content'
|
|
113
|
+
},
|
|
108
114
|
childExtend: {
|
|
109
115
|
extend: CommonButton,
|
|
110
116
|
props: {
|
|
111
|
-
minWidth: 'D2',
|
|
112
117
|
':first-child': {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
':last-child': {
|
|
118
|
+
theme: 'transparent',
|
|
119
|
+
padding: '- Y1'
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
},
|
|
120
123
|
...[
|
|
121
|
-
{
|
|
122
|
-
{
|
|
123
|
-
]
|
|
124
|
-
|
|
125
|
-
props: {
|
|
126
|
-
gap: 'Z',
|
|
127
|
-
maxWidth: 'fit-content'
|
|
128
|
-
}
|
|
124
|
+
{ caption: { props: { text: 'No' } } },
|
|
125
|
+
{ caption: { props: { text: 'Yes' } } }
|
|
126
|
+
]
|
|
129
127
|
}
|
|
130
128
|
|
|
131
129
|
export const IcontextButton = {
|
|
132
130
|
extend: CommonButton,
|
|
133
131
|
props: {
|
|
134
|
-
padding: 'A A1',
|
|
135
132
|
position: 'relative',
|
|
136
|
-
|
|
133
|
+
theme: 'tertiary',
|
|
134
|
+
padding: 'Z2 A',
|
|
137
135
|
Icon: { name: 'smile' }
|
|
138
136
|
}
|
|
139
137
|
}
|
|
@@ -143,34 +141,34 @@ export const DropDownButton = {
|
|
|
143
141
|
props: {
|
|
144
142
|
gap: 'X2',
|
|
145
143
|
boxSize: 'fit-content fit-content',
|
|
146
|
-
padding: '
|
|
147
|
-
|
|
148
|
-
background: '#141416',
|
|
149
|
-
color: 'white',
|
|
144
|
+
padding: 'Z1 A1 Z Z1',
|
|
145
|
+
theme: 'dialog',
|
|
150
146
|
Icon: {
|
|
151
147
|
name: 'chevronDown',
|
|
152
148
|
fontSize: 'D'
|
|
153
149
|
},
|
|
154
|
-
|
|
150
|
+
caption: { text: 'All' }
|
|
155
151
|
}
|
|
156
152
|
}
|
|
157
153
|
|
|
158
154
|
export const DropDownButtonWithAvatar = {
|
|
159
155
|
extend: DropDownButton,
|
|
160
156
|
props: {
|
|
161
|
-
gap: '
|
|
162
|
-
padding: '
|
|
163
|
-
round: '
|
|
164
|
-
|
|
157
|
+
gap: 'Y',
|
|
158
|
+
padding: 'Y',
|
|
159
|
+
round: 'Z1',
|
|
160
|
+
theme: 'dialog',
|
|
161
|
+
Icon: { fontSize: 'B1' }
|
|
165
162
|
},
|
|
166
163
|
|
|
167
164
|
Avatar: {
|
|
168
|
-
boxSize: '
|
|
165
|
+
boxSize: 'A2+V1'
|
|
169
166
|
},
|
|
170
|
-
|
|
167
|
+
caption: {
|
|
171
168
|
text: 'ETH',
|
|
172
169
|
props: {
|
|
173
|
-
fontSize: '
|
|
170
|
+
fontSize: 'Y1',
|
|
171
|
+
fontWeight: '400'
|
|
174
172
|
}
|
|
175
173
|
}
|
|
176
174
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/button",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.247",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "8d02fd2978b0ae207eab84fcb3f5e2be11351e61",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@symbo.ls/atoms": "latest",
|
|
9
9
|
"@symbo.ls/icon": "latest"
|