@symbo.ls/button 2.11.324 → 2.11.360

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 +16 -19
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,8 +1,5 @@
1
1
  'use strict'
2
2
 
3
- import { Flex, FocusableComponent } from '@symbo.ls/atoms'
4
- import { IconText } from '@symbo.ls/icon'
5
-
6
3
  /**
7
4
  * A Button component
8
5
  * The `Button` component represents a clickable button element with customizable styles and properties.
@@ -21,7 +18,7 @@ import { IconText } from '@symbo.ls/icon'
21
18
  */
22
19
 
23
20
  export const Button = {
24
- extend: [IconText, FocusableComponent],
21
+ extend: ['IconText', 'FocusableComponent'],
25
22
  tag: 'button',
26
23
 
27
24
  props: {
@@ -45,7 +42,7 @@ export const Button = {
45
42
  }
46
43
 
47
44
  export const SquareButton = {
48
- extend: Button,
45
+ extend: 'Button',
49
46
  props: {
50
47
  fontSize: 'A',
51
48
  width: 'A',
@@ -60,17 +57,17 @@ export const SquareButton = {
60
57
  }
61
58
 
62
59
  export const CircleButton = {
63
- extend: SquareButton,
60
+ extend: 'SquareButton',
64
61
  props: { round: 'C' }
65
62
  }
66
63
 
67
64
  export const KangorooButton = {
68
- extend: Button,
69
- childExtend: IconText
65
+ extend: 'Button',
66
+ childExtend: 'IconText'
70
67
  }
71
68
 
72
69
  export const FlexButton = {
73
- extend: Button,
70
+ extend: 'Button',
74
71
 
75
72
  props: {
76
73
  boxSize: 'fit-content',
@@ -88,18 +85,18 @@ export const FlexButton = {
88
85
 
89
86
  export const ButtonSet = {
90
87
  tag: 'nav',
91
- extend: Flex,
92
- childExtend: SquareButton
88
+ extend: 'Flex',
89
+ childExtend: 'SquareButton'
93
90
  }
94
91
 
95
92
  export const CancelConfirmButtons = {
96
- extend: Flex,
93
+ extend: 'Flex',
97
94
  props: {
98
95
  gap: 'Z2',
99
96
  maxWidth: 'fit-content'
100
97
  },
101
98
  childExtend: {
102
- extend: FlexButton,
99
+ extend: 'FlexButton',
103
100
  props: {
104
101
  ':first-child': {
105
102
  theme: 'transparent',
@@ -114,7 +111,7 @@ export const CancelConfirmButtons = {
114
111
  }
115
112
 
116
113
  export const IcontextButton = {
117
- extend: FlexButton,
114
+ extend: 'FlexButton',
118
115
  props: {
119
116
  position: 'relative',
120
117
  theme: 'tertiary',
@@ -124,7 +121,7 @@ export const IcontextButton = {
124
121
  }
125
122
 
126
123
  export const DropDownButton = {
127
- extend: FlexButton,
124
+ extend: 'FlexButton',
128
125
  props: {
129
126
  gap: 'X2',
130
127
  boxSize: 'fit-content fit-content',
@@ -139,7 +136,7 @@ export const DropDownButton = {
139
136
  }
140
137
 
141
138
  export const DropDownButtonWithAvatar = {
142
- extend: DropDownButton,
139
+ extend: 'DropDownButton',
143
140
  props: {
144
141
  gap: 'Y',
145
142
  padding: 'Y',
@@ -161,18 +158,18 @@ export const DropDownButtonWithAvatar = {
161
158
  }
162
159
 
163
160
  export const PlusMinusButtons = {
164
- extend: Flex,
161
+ extend: 'Flex',
165
162
  props: {
166
163
  alignItems: 'center',
167
164
  gap: 'A'
168
165
  },
169
166
  Minus: {
170
- extend: SquareButton,
167
+ extend: 'SquareButton',
171
168
  props: { icon: 'minus' }
172
169
  },
173
170
  Value: { props: { text: '1' } },
174
171
  Plus: {
175
- extend: SquareButton,
172
+ extend: 'SquareButton',
176
173
  props: { icon: 'plus' }
177
174
  }
178
175
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/button",
3
- "version": "2.11.324",
3
+ "version": "2.11.360",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "8e6c04c045d2c2a99bdb33762cb68bcbe7a0512a",
6
+ "gitHead": "87c62e587157ba9c3ef135e31dbc79f165cdaa38",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/icon": "latest"