@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.
Files changed (2) hide show
  1. package/index.js +15 -14
  2. 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 CommonButton = {
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 IconCommonButton = {
86
- extend: CommonButton,
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
- caption: null
94
+ Text: null
94
95
  }
95
96
 
96
97
  export const ButtonSet = {
97
98
  tag: 'nav',
98
99
  extend: Flex,
99
- childExtend: IconCommonButton
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: CommonButton,
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
- { caption: { props: { text: 'No' } } },
119
- { caption: { props: { text: 'Yes' } } }
119
+ { Text: 'No' },
120
+ { Text: 'Yes' }
120
121
  ]
121
122
  }
122
123
 
123
124
  export const IcontextButton = {
124
- extend: CommonButton,
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: CommonButton,
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
- caption: { text: 'All' }
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: IconCommonButton,
178
+ extend: IconFlexButton,
178
179
  props: { icon: 'minus' }
179
180
  },
180
181
  Value: { props: { text: '1' } },
181
182
  Plus: {
182
- extend: IconCommonButton,
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.261",
3
+ "version": "2.11.265",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "53e63702105d8c7baf0f136c5756383533bf3b30",
6
+ "gitHead": "e96a45d1a191dbcd8ee2d02c969398821e1f446d",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/icon": "latest"