@symbo.ls/button 2.11.523 → 3.0.1
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.
- package/index.js +32 -39
- 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
|
-
*
|
|
16
|
+
* extends: Button
|
|
17
17
|
* }
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
export const Button = {
|
|
21
|
-
|
|
21
|
+
extends: ['IconText', 'FocusableComponent'],
|
|
22
22
|
tag: 'button',
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
61
|
-
|
|
56
|
+
extends: 'SquareButton',
|
|
57
|
+
round: 'C'
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
export const KangorooButton = {
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
extends: 'Button',
|
|
62
|
+
childExtends: 'IconText'
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
export const ButtonSet = {
|
|
70
66
|
tag: 'nav',
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
extends: 'Flex',
|
|
68
|
+
childExtends: 'SquareButton'
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
export const IconButton = {
|
|
76
|
-
|
|
72
|
+
extends: [
|
|
77
73
|
'SquareButton',
|
|
78
74
|
'ClickableItem'
|
|
79
75
|
],
|
|
80
|
-
|
|
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": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "a4e7f586f7e4f60bd7b6a8388bdacc3ae1879433",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/atoms": "^
|
|
9
|
-
"@symbo.ls/icon": "^
|
|
8
|
+
"@symbo.ls/atoms": "^3.0.1",
|
|
9
|
+
"@symbo.ls/icon": "^3.0.1"
|
|
10
10
|
},
|
|
11
11
|
"source": "src/index.js"
|
|
12
12
|
}
|