@sb1/ffe-buttons-react 14.0.3 → 14.0.4
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/es/ActionButton.js +2 -6
- package/es/BackButton.js +2 -8
- package/es/PrimaryButton.js +1 -7
- package/es/SecondaryButton.js +1 -7
- package/es/TertiaryButton.js +2 -8
- package/lib/ActionButton.js +2 -6
- package/lib/BackButton.js +1 -7
- package/lib/PrimaryButton.js +1 -7
- package/lib/SecondaryButton.js +1 -7
- package/lib/TertiaryButton.js +1 -7
- package/package.json +2 -2
- package/types/index.d.ts +0 -3
package/es/ActionButton.js
CHANGED
|
@@ -56,12 +56,8 @@ ActionButton.propTypes = {
|
|
|
56
56
|
leftIcon: node,
|
|
57
57
|
|
|
58
58
|
/** Icon shown to the right of the label */
|
|
59
|
-
rightIcon: node
|
|
60
|
-
|
|
61
|
-
/** Dark variant */
|
|
62
|
-
dark: bool
|
|
59
|
+
rightIcon: node
|
|
63
60
|
};
|
|
64
61
|
ActionButton.defaultProps = {
|
|
65
|
-
ghost: false
|
|
66
|
-
dark: false
|
|
62
|
+
ghost: false
|
|
67
63
|
};
|
package/es/BackButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { oneOfType, func, node, string,
|
|
4
|
+
import { oneOfType, func, node, string, object, shape, elementType } from 'prop-types';
|
|
5
5
|
import InlineButton from './InlineBaseButton';
|
|
6
6
|
|
|
7
7
|
var BackButton = function BackButton(props) {
|
|
@@ -23,12 +23,6 @@ BackButton.propTypes = {
|
|
|
23
23
|
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
24
24
|
innerRef: oneOfType([func, shape({
|
|
25
25
|
current: object
|
|
26
|
-
})])
|
|
27
|
-
|
|
28
|
-
/** Dark variant */
|
|
29
|
-
dark: bool
|
|
30
|
-
};
|
|
31
|
-
BackButton.defaultProps = {
|
|
32
|
-
dark: false
|
|
26
|
+
})])
|
|
33
27
|
};
|
|
34
28
|
export default BackButton;
|
package/es/PrimaryButton.js
CHANGED
|
@@ -41,12 +41,6 @@ PrimaryButton.propTypes = {
|
|
|
41
41
|
leftIcon: node,
|
|
42
42
|
|
|
43
43
|
/** Icon shown to the right of the label */
|
|
44
|
-
rightIcon: node
|
|
45
|
-
|
|
46
|
-
/** Dark variant */
|
|
47
|
-
dark: bool
|
|
48
|
-
};
|
|
49
|
-
PrimaryButton.defaultProps = {
|
|
50
|
-
dark: false
|
|
44
|
+
rightIcon: node
|
|
51
45
|
};
|
|
52
46
|
export default PrimaryButton;
|
package/es/SecondaryButton.js
CHANGED
|
@@ -41,12 +41,6 @@ SecondaryButton.propTypes = {
|
|
|
41
41
|
leftIcon: node,
|
|
42
42
|
|
|
43
43
|
/** Icon shown to the right of the label */
|
|
44
|
-
rightIcon: node
|
|
45
|
-
|
|
46
|
-
/** Dark variant */
|
|
47
|
-
dark: bool
|
|
48
|
-
};
|
|
49
|
-
SecondaryButton.defaultProps = {
|
|
50
|
-
dark: false
|
|
44
|
+
rightIcon: node
|
|
51
45
|
};
|
|
52
46
|
export default SecondaryButton;
|
package/es/TertiaryButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { func, node, oneOfType, string,
|
|
4
|
+
import { func, node, oneOfType, string, object, shape, elementType } from 'prop-types';
|
|
5
5
|
import InlineButton from './InlineBaseButton';
|
|
6
6
|
|
|
7
7
|
var TertiaryButton = function TertiaryButton(props) {
|
|
@@ -29,12 +29,6 @@ TertiaryButton.propTypes = {
|
|
|
29
29
|
leftIcon: node,
|
|
30
30
|
|
|
31
31
|
/** Icon shown to the right of the label */
|
|
32
|
-
rightIcon: node
|
|
33
|
-
|
|
34
|
-
/** Dark variant */
|
|
35
|
-
dark: bool
|
|
36
|
-
};
|
|
37
|
-
TertiaryButton.defaultProps = {
|
|
38
|
-
dark: false
|
|
32
|
+
rightIcon: node
|
|
39
33
|
};
|
|
40
34
|
export default TertiaryButton;
|
package/lib/ActionButton.js
CHANGED
|
@@ -70,12 +70,8 @@ ActionButton.propTypes = {
|
|
|
70
70
|
leftIcon: _propTypes.node,
|
|
71
71
|
|
|
72
72
|
/** Icon shown to the right of the label */
|
|
73
|
-
rightIcon: _propTypes.node
|
|
74
|
-
|
|
75
|
-
/** Dark variant */
|
|
76
|
-
dark: _propTypes.bool
|
|
73
|
+
rightIcon: _propTypes.node
|
|
77
74
|
};
|
|
78
75
|
ActionButton.defaultProps = {
|
|
79
|
-
ghost: false
|
|
80
|
-
dark: false
|
|
76
|
+
ghost: false
|
|
81
77
|
};
|
package/lib/BackButton.js
CHANGED
|
@@ -34,13 +34,7 @@ BackButton.propTypes = {
|
|
|
34
34
|
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
35
35
|
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
36
36
|
current: _propTypes.object
|
|
37
|
-
})])
|
|
38
|
-
|
|
39
|
-
/** Dark variant */
|
|
40
|
-
dark: _propTypes.bool
|
|
41
|
-
};
|
|
42
|
-
BackButton.defaultProps = {
|
|
43
|
-
dark: false
|
|
37
|
+
})])
|
|
44
38
|
};
|
|
45
39
|
var _default = BackButton;
|
|
46
40
|
exports.default = _default;
|
package/lib/PrimaryButton.js
CHANGED
|
@@ -52,13 +52,7 @@ PrimaryButton.propTypes = {
|
|
|
52
52
|
leftIcon: _propTypes.node,
|
|
53
53
|
|
|
54
54
|
/** Icon shown to the right of the label */
|
|
55
|
-
rightIcon: _propTypes.node
|
|
56
|
-
|
|
57
|
-
/** Dark variant */
|
|
58
|
-
dark: _propTypes.bool
|
|
59
|
-
};
|
|
60
|
-
PrimaryButton.defaultProps = {
|
|
61
|
-
dark: false
|
|
55
|
+
rightIcon: _propTypes.node
|
|
62
56
|
};
|
|
63
57
|
var _default = PrimaryButton;
|
|
64
58
|
exports.default = _default;
|
package/lib/SecondaryButton.js
CHANGED
|
@@ -52,13 +52,7 @@ SecondaryButton.propTypes = {
|
|
|
52
52
|
leftIcon: _propTypes.node,
|
|
53
53
|
|
|
54
54
|
/** Icon shown to the right of the label */
|
|
55
|
-
rightIcon: _propTypes.node
|
|
56
|
-
|
|
57
|
-
/** Dark variant */
|
|
58
|
-
dark: _propTypes.bool
|
|
59
|
-
};
|
|
60
|
-
SecondaryButton.defaultProps = {
|
|
61
|
-
dark: false
|
|
55
|
+
rightIcon: _propTypes.node
|
|
62
56
|
};
|
|
63
57
|
var _default = SecondaryButton;
|
|
64
58
|
exports.default = _default;
|
package/lib/TertiaryButton.js
CHANGED
|
@@ -40,13 +40,7 @@ TertiaryButton.propTypes = {
|
|
|
40
40
|
leftIcon: _propTypes.node,
|
|
41
41
|
|
|
42
42
|
/** Icon shown to the right of the label */
|
|
43
|
-
rightIcon: _propTypes.node
|
|
44
|
-
|
|
45
|
-
/** Dark variant */
|
|
46
|
-
dark: _propTypes.bool
|
|
47
|
-
};
|
|
48
|
-
TertiaryButton.defaultProps = {
|
|
49
|
-
dark: false
|
|
43
|
+
rightIcon: _propTypes.node
|
|
50
44
|
};
|
|
51
45
|
var _default = TertiaryButton;
|
|
52
46
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-buttons-react",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "React implementation of ffe-buttons",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "10d5866ee997def57f017c3580bf5da32f1132c3"
|
|
57
57
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export interface BaseButtonProps extends MinimalBaseButtonProps {
|
|
|
24
24
|
isLoading?: boolean;
|
|
25
25
|
leftIcon?: React.ReactNode;
|
|
26
26
|
rightIcon?: React.ReactNode;
|
|
27
|
-
dark?: boolean;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export interface ActionButtonProps extends BaseButtonProps {
|
|
@@ -33,7 +32,6 @@ export interface ActionButtonProps extends BaseButtonProps {
|
|
|
33
32
|
|
|
34
33
|
export interface BackButtonProps extends MinimalBaseButtonProps {
|
|
35
34
|
children?: React.ReactNode;
|
|
36
|
-
dark?: boolean;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export interface ButtonGroupProps {
|
|
@@ -80,7 +78,6 @@ export interface TertiaryButtonProps extends MinimalBaseButtonProps {
|
|
|
80
78
|
children?: React.ReactNode;
|
|
81
79
|
leftIcon?: React.ReactNode;
|
|
82
80
|
rightIcon?: React.ReactNode;
|
|
83
|
-
dark?: boolean;
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
declare class ActionButton extends React.Component<ActionButtonProps, any> {}
|