@symbo.ls/button 2.11.265 → 2.11.269

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 +7 -15
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -37,6 +37,7 @@ export const Button = {
37
37
  fontFamily: 'inherit',
38
38
  round: 'C2'
39
39
  },
40
+
40
41
  attr: {
41
42
  type: ({ props }) => props.type
42
43
  }
@@ -49,6 +50,8 @@ export const SquareButton = {
49
50
  width: 'A',
50
51
  padding: 'Z',
51
52
  aspectRatio: '1 / 1',
53
+ icon: 'smile',
54
+ boxSize: 'fit-content fit-content',
52
55
  justifyContent: 'center',
53
56
  round: 'Z',
54
57
  boxSizing: 'content-box'
@@ -67,8 +70,8 @@ export const KangorooButton = {
67
70
 
68
71
  export const FlexButton = {
69
72
  extend: Button,
73
+
70
74
  props: {
71
- theme: 'primary',
72
75
  boxSize: 'fit-content',
73
76
  padding: 'Z2 A2',
74
77
  round: 'Z1',
@@ -83,21 +86,10 @@ export const FlexButton = {
83
86
  Text: { text: 'Button' }
84
87
  }
85
88
 
86
- export const IconFlexButton = {
87
- extend: FlexButton,
88
- props: {
89
- icon: 'smile',
90
- boxSize: 'fit-content fit-content',
91
- padding: 'Z2',
92
- theme: 'tertiary'
93
- },
94
- Text: null
95
- }
96
-
97
89
  export const ButtonSet = {
98
90
  tag: 'nav',
99
91
  extend: Flex,
100
- childExtend: IconFlexButton
92
+ childExtend: SquareButton
101
93
  }
102
94
 
103
95
  export const CancelConfirmButtons = {
@@ -175,12 +167,12 @@ export const PlusMinusButtons = {
175
167
  gap: 'A'
176
168
  },
177
169
  Minus: {
178
- extend: IconFlexButton,
170
+ extend: SquareButton,
179
171
  props: { icon: 'minus' }
180
172
  },
181
173
  Value: { props: { text: '1' } },
182
174
  Plus: {
183
- extend: IconFlexButton,
175
+ extend: SquareButton,
184
176
  props: { icon: 'plus' }
185
177
  }
186
178
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/button",
3
- "version": "2.11.265",
3
+ "version": "2.11.269",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "e96a45d1a191dbcd8ee2d02c969398821e1f446d",
6
+ "gitHead": "9539c62d29cc279dbe7e149aa96bb8ee019c7119",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/icon": "latest"