@symbo.ls/button 2.11.164 → 2.11.168

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 +25 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -61,10 +61,15 @@ export const CommonButton = {
61
61
  icon: {
62
62
  props: { fontSize: 'C' }
63
63
  },
64
- Caption: { props: { text: 'Button', line_height: '1em' } }
64
+ Caption: {
65
+ props: {
66
+ text: 'Button',
67
+ line_height: '1em'
68
+ }
69
+ }
65
70
  }
66
71
 
67
- export const IconButton = {
72
+ export const IconCommonButton = {
68
73
  extend: CommonButton,
69
74
  props: {
70
75
  icon: { name: 'smile' },
@@ -78,7 +83,7 @@ export const IconButton = {
78
83
  export const ButtonSet = {
79
84
  tag: 'nav',
80
85
  extend: Flex,
81
- childExtend: IconButton
86
+ childExtend: IconCommonButton
82
87
  }
83
88
 
84
89
  export const CancelConfirmButtons = {
@@ -152,3 +157,20 @@ export const DropDownButtonWithAvatar = {
152
157
  }
153
158
  }
154
159
  }
160
+
161
+ export const PlusMinusButtons = {
162
+ extend: Flex,
163
+ props: {
164
+ alignItems: 'center',
165
+ gap: 'A'
166
+ },
167
+ Minus: {
168
+ extend: IconCommonButton,
169
+ props: { icon: { name: 'minus' } }
170
+ },
171
+ Value: { props: { text: '1' } },
172
+ Plus: {
173
+ extend: IconCommonButton,
174
+ props: { icon: { name: 'plus' } }
175
+ }
176
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/button",
3
- "version": "2.11.164",
3
+ "version": "2.11.168",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "943a48800e5959b8c1f15d5d8d49224565038c23",
6
+ "gitHead": "e0bccabd2ea4ec76e23715506c535df0b25b0eaf",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/icon": "latest"