@symbo.ls/button 2.11.523 → 3.0.2

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 +32 -39
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -13,28 +13,26 @@
13
13
  * @example
14
14
  * // Example usage of the Button component:
15
15
  * const myButton = {
16
- * extend: Button
16
+ * extends: Button
17
17
  * }
18
18
  */
19
19
 
20
20
  export const Button = {
21
- extend: ['IconText', 'FocusableComponent'],
21
+ extends: ['IconText', 'FocusableComponent'],
22
22
  tag: 'button',
23
23
 
24
- props: {
25
- fontSize: 'A',
26
- type: 'button',
27
- borderStyle: 'none',
28
- display: 'inline-flex',
29
- align: 'center center',
30
- textDecoration: 'none',
31
- lineHeight: '1',
32
- whiteSpace: 'nowrap',
33
- padding: 'Z B2',
34
- fontWeight: '500',
35
- fontFamily: 'inherit',
36
- round: 'C2'
37
- },
24
+ fontSize: 'A',
25
+ type: 'button',
26
+ borderStyle: 'none',
27
+ display: 'inline-flex',
28
+ align: 'center center',
29
+ textDecoration: 'none',
30
+ lineHeight: '1',
31
+ whiteSpace: 'nowrap',
32
+ padding: 'Z B2',
33
+ fontWeight: '500',
34
+ fontFamily: 'inherit',
35
+ round: 'C2',
38
36
 
39
37
  attr: {
40
38
  type: ({ props }) => props.type
@@ -42,43 +40,38 @@ export const Button = {
42
40
  }
43
41
 
44
42
  export const SquareButton = {
45
- extend: 'Button',
46
- props: {
47
- fontSize: 'A',
48
- width: 'A',
49
- padding: 'Z',
50
- aspectRatio: '1 / 1',
51
- icon: 'smile',
52
- boxSize: 'fit-content fit-content',
53
- justifyContent: 'center',
54
- round: 'Z',
55
- boxSizing: 'content-box'
56
- }
43
+ extends: 'Button',
44
+ fontSize: 'A',
45
+ width: 'A',
46
+ padding: 'Z',
47
+ aspectRatio: '1 / 1',
48
+ icon: 'smile',
49
+ boxSize: 'fit-content fit-content',
50
+ justifyContent: 'center',
51
+ round: 'Z',
52
+ boxSizing: 'content-box'
57
53
  }
58
54
 
59
55
  export const CircleButton = {
60
- extend: 'SquareButton',
61
- props: { round: 'C' }
56
+ extends: 'SquareButton',
57
+ round: 'C'
62
58
  }
63
59
 
64
60
  export const KangorooButton = {
65
- extend: 'Button',
66
- childExtend: 'IconText'
61
+ extends: 'Button',
62
+ childExtends: 'IconText'
67
63
  }
68
64
 
69
65
  export const ButtonSet = {
70
66
  tag: 'nav',
71
- extend: 'Flex',
72
- childExtend: 'SquareButton'
67
+ extends: 'Flex',
68
+ childExtends: 'SquareButton'
73
69
  }
74
70
 
75
71
  export const IconButton = {
76
- extend: [
72
+ extends: [
77
73
  'SquareButton',
78
74
  'ClickableItem'
79
75
  ],
80
- props: {
81
- round: 'Z'
82
- },
83
- __hash: '3a7v57sk5rd'
76
+ round: 'Z'
84
77
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/button",
3
- "version": "2.11.523",
3
+ "version": "3.0.2",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "08e5b257605d1475f4628529f8e35373d87eb369",
6
+ "gitHead": "c4dacc88fa3a65574680d11e320307dd2a22e6e9",
7
7
  "dependencies": {
8
- "@symbo.ls/atoms": "^2.11.523",
9
- "@symbo.ls/icon": "^2.11.523"
8
+ "@symbo.ls/atoms": "^3.0.2",
9
+ "@symbo.ls/icon": "^3.0.2"
10
10
  },
11
11
  "source": "src/index.js"
12
12
  }