@sb1/ffe-buttons-react 14.1.0 → 15.0.0
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 -11
- package/lib/ActionButton.js +2 -11
- package/package.json +3 -3
- package/types/index.d.ts +1 -3
package/es/ActionButton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className"
|
|
1
|
+
var _excluded = ["className"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -12,14 +12,11 @@ import classNames from 'classnames';
|
|
|
12
12
|
import Button from './BaseButton';
|
|
13
13
|
export default function ActionButton(props) {
|
|
14
14
|
var className = props.className,
|
|
15
|
-
ghost = props.ghost,
|
|
16
15
|
rest = _objectWithoutProperties(props, _excluded);
|
|
17
16
|
|
|
18
17
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
19
18
|
buttonType: "action",
|
|
20
|
-
className: classNames(className
|
|
21
|
-
'ffe-button--ghost': ghost
|
|
22
|
-
})
|
|
19
|
+
className: classNames(className)
|
|
23
20
|
}, rest));
|
|
24
21
|
}
|
|
25
22
|
ActionButton.propTypes = {
|
|
@@ -41,9 +38,6 @@ ActionButton.propTypes = {
|
|
|
41
38
|
/** The rendered element, like an `<a />` or `<Link />` */
|
|
42
39
|
element: oneOfType([func, string, elementType]),
|
|
43
40
|
|
|
44
|
-
/** Applies the ghost modifier if true. */
|
|
45
|
-
ghost: bool,
|
|
46
|
-
|
|
47
41
|
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
48
42
|
innerRef: oneOfType([func, shape({
|
|
49
43
|
current: object
|
|
@@ -57,7 +51,4 @@ ActionButton.propTypes = {
|
|
|
57
51
|
|
|
58
52
|
/** Icon shown to the right of the label */
|
|
59
53
|
rightIcon: node
|
|
60
|
-
};
|
|
61
|
-
ActionButton.defaultProps = {
|
|
62
|
-
ghost: false
|
|
63
54
|
};
|
package/lib/ActionButton.js
CHANGED
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _BaseButton = _interopRequireDefault(require("./BaseButton"));
|
|
15
15
|
|
|
16
|
-
var _excluded = ["className"
|
|
16
|
+
var _excluded = ["className"];
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
@@ -25,14 +25,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
25
25
|
|
|
26
26
|
function ActionButton(props) {
|
|
27
27
|
var className = props.className,
|
|
28
|
-
ghost = props.ghost,
|
|
29
28
|
rest = _objectWithoutProperties(props, _excluded);
|
|
30
29
|
|
|
31
30
|
return /*#__PURE__*/_react.default.createElement(_BaseButton.default, _extends({
|
|
32
31
|
buttonType: "action",
|
|
33
|
-
className: (0, _classnames.default)(className
|
|
34
|
-
'ffe-button--ghost': ghost
|
|
35
|
-
})
|
|
32
|
+
className: (0, _classnames.default)(className)
|
|
36
33
|
}, rest));
|
|
37
34
|
}
|
|
38
35
|
|
|
@@ -55,9 +52,6 @@ ActionButton.propTypes = {
|
|
|
55
52
|
/** The rendered element, like an `<a />` or `<Link />` */
|
|
56
53
|
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
57
54
|
|
|
58
|
-
/** Applies the ghost modifier if true. */
|
|
59
|
-
ghost: _propTypes.bool,
|
|
60
|
-
|
|
61
55
|
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
62
56
|
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
63
57
|
current: _propTypes.object
|
|
@@ -71,7 +65,4 @@ ActionButton.propTypes = {
|
|
|
71
65
|
|
|
72
66
|
/** Icon shown to the right of the label */
|
|
73
67
|
rightIcon: _propTypes.node
|
|
74
|
-
};
|
|
75
|
-
ActionButton.defaultProps = {
|
|
76
|
-
ghost: false
|
|
77
68
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-buttons-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "React implementation of ffe-buttons",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test:watch": "ffe-buildtool jest --watch"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sb1/ffe-icons-react": "^7.3.
|
|
31
|
+
"@sb1/ffe-icons-react": "^7.3.2",
|
|
32
32
|
"classnames": "^2.3.1",
|
|
33
33
|
"prop-types": "^15.7.2"
|
|
34
34
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0ff2b9371adf4b9fda3acbe2ec821d43f2105877"
|
|
50
50
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -26,9 +26,7 @@ export interface BaseButtonProps extends MinimalBaseButtonProps {
|
|
|
26
26
|
rightIcon?: React.ReactNode;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export interface ActionButtonProps extends BaseButtonProps {
|
|
30
|
-
ghost?: boolean;
|
|
31
|
-
}
|
|
29
|
+
export interface ActionButtonProps extends BaseButtonProps {}
|
|
32
30
|
|
|
33
31
|
export interface BackButtonProps extends MinimalBaseButtonProps {
|
|
34
32
|
children?: React.ReactNode;
|