@symbo.ls/button 2.11.261 → 2.11.265
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 +15 -14
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ export const KangorooButton = {
|
|
|
65
65
|
childExtend: IconText
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export const
|
|
68
|
+
export const FlexButton = {
|
|
69
69
|
extend: Button,
|
|
70
70
|
props: {
|
|
71
71
|
theme: 'primary',
|
|
@@ -75,28 +75,29 @@ export const CommonButton = {
|
|
|
75
75
|
gap: 'X1',
|
|
76
76
|
position: 'relative'
|
|
77
77
|
},
|
|
78
|
+
|
|
78
79
|
Icon: {
|
|
79
80
|
props: { fontSize: 'B1' }
|
|
80
81
|
},
|
|
81
82
|
|
|
82
|
-
text: 'Button'
|
|
83
|
+
Text: { text: 'Button' }
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
export const
|
|
86
|
-
extend:
|
|
86
|
+
export const IconFlexButton = {
|
|
87
|
+
extend: FlexButton,
|
|
87
88
|
props: {
|
|
88
89
|
icon: 'smile',
|
|
89
90
|
boxSize: 'fit-content fit-content',
|
|
90
91
|
padding: 'Z2',
|
|
91
92
|
theme: 'tertiary'
|
|
92
93
|
},
|
|
93
|
-
|
|
94
|
+
Text: null
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
export const ButtonSet = {
|
|
97
98
|
tag: 'nav',
|
|
98
99
|
extend: Flex,
|
|
99
|
-
childExtend:
|
|
100
|
+
childExtend: IconFlexButton
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export const CancelConfirmButtons = {
|
|
@@ -106,7 +107,7 @@ export const CancelConfirmButtons = {
|
|
|
106
107
|
maxWidth: 'fit-content'
|
|
107
108
|
},
|
|
108
109
|
childExtend: {
|
|
109
|
-
extend:
|
|
110
|
+
extend: FlexButton,
|
|
110
111
|
props: {
|
|
111
112
|
':first-child': {
|
|
112
113
|
theme: 'transparent',
|
|
@@ -115,13 +116,13 @@ export const CancelConfirmButtons = {
|
|
|
115
116
|
}
|
|
116
117
|
},
|
|
117
118
|
...[
|
|
118
|
-
{
|
|
119
|
-
{
|
|
119
|
+
{ Text: 'No' },
|
|
120
|
+
{ Text: 'Yes' }
|
|
120
121
|
]
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
export const IcontextButton = {
|
|
124
|
-
extend:
|
|
125
|
+
extend: FlexButton,
|
|
125
126
|
props: {
|
|
126
127
|
position: 'relative',
|
|
127
128
|
theme: 'tertiary',
|
|
@@ -131,7 +132,7 @@ export const IcontextButton = {
|
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
export const DropDownButton = {
|
|
134
|
-
extend:
|
|
135
|
+
extend: FlexButton,
|
|
135
136
|
props: {
|
|
136
137
|
gap: 'X2',
|
|
137
138
|
boxSize: 'fit-content fit-content',
|
|
@@ -141,7 +142,7 @@ export const DropDownButton = {
|
|
|
141
142
|
Icon: {
|
|
142
143
|
fontSize: 'D'
|
|
143
144
|
},
|
|
144
|
-
|
|
145
|
+
Text: { text: 'All' }
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
|
|
@@ -174,12 +175,12 @@ export const PlusMinusButtons = {
|
|
|
174
175
|
gap: 'A'
|
|
175
176
|
},
|
|
176
177
|
Minus: {
|
|
177
|
-
extend:
|
|
178
|
+
extend: IconFlexButton,
|
|
178
179
|
props: { icon: 'minus' }
|
|
179
180
|
},
|
|
180
181
|
Value: { props: { text: '1' } },
|
|
181
182
|
Plus: {
|
|
182
|
-
extend:
|
|
183
|
+
extend: IconFlexButton,
|
|
183
184
|
props: { icon: 'plus' }
|
|
184
185
|
}
|
|
185
186
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/button",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.265",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "e96a45d1a191dbcd8ee2d02c969398821e1f446d",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@symbo.ls/atoms": "latest",
|
|
9
9
|
"@symbo.ls/icon": "latest"
|