@sb1/ffe-buttons-react 21.0.16 → 21.0.18
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/BaseButton.js +4 -6
- package/es/ExpandButton.js +4 -6
- package/es/InlineBaseButton.js +2 -4
- package/lib/BaseButton.js +4 -6
- package/lib/ExpandButton.js +4 -6
- package/lib/InlineBaseButton.js +2 -4
- package/package.json +4 -4
package/es/BaseButton.js
CHANGED
|
@@ -10,11 +10,13 @@ import classNames from 'classnames';
|
|
|
10
10
|
* Internal component
|
|
11
11
|
*/
|
|
12
12
|
var BaseButton = function BaseButton(props) {
|
|
13
|
-
var
|
|
13
|
+
var _props$ariaLoadingMes = props.ariaLoadingMessage,
|
|
14
|
+
ariaLoadingMessage = _props$ariaLoadingMes === void 0 ? 'Vennligst vent' : _props$ariaLoadingMes,
|
|
14
15
|
buttonType = props.buttonType,
|
|
15
16
|
children = props.children,
|
|
16
17
|
className = props.className,
|
|
17
|
-
|
|
18
|
+
_props$element = props.element,
|
|
19
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
18
20
|
innerRef = props.innerRef,
|
|
19
21
|
isLoading = props.isLoading,
|
|
20
22
|
leftIcon = props.leftIcon,
|
|
@@ -80,8 +82,4 @@ BaseButton.propTypes = {
|
|
|
80
82
|
/** Called when button is clicked if not loading or disabled */
|
|
81
83
|
onClick: func
|
|
82
84
|
};
|
|
83
|
-
BaseButton.defaultProps = {
|
|
84
|
-
ariaLoadingMessage: 'Vennligst vent',
|
|
85
|
-
element: 'button'
|
|
86
|
-
};
|
|
87
85
|
export default BaseButton;
|
package/es/ExpandButton.js
CHANGED
|
@@ -9,8 +9,10 @@ import { Icon } from '@sb1/ffe-icons-react';
|
|
|
9
9
|
var ExpandButton = function ExpandButton(props) {
|
|
10
10
|
var children = props.children,
|
|
11
11
|
className = props.className,
|
|
12
|
-
closeLabel = props.closeLabel,
|
|
13
|
-
|
|
12
|
+
_props$closeLabel = props.closeLabel,
|
|
13
|
+
closeLabel = _props$closeLabel === void 0 ? 'Lukk' : _props$closeLabel,
|
|
14
|
+
_props$element = props.element,
|
|
15
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
14
16
|
innerRef = props.innerRef,
|
|
15
17
|
isExpanded = props.isExpanded,
|
|
16
18
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -46,8 +48,4 @@ ExpandButton.propTypes = {
|
|
|
46
48
|
/** Use to listen for clicks and toggle the `isExpanded` property together with whatever it is you're expanding. */
|
|
47
49
|
onClick: func.isRequired
|
|
48
50
|
};
|
|
49
|
-
ExpandButton.defaultProps = {
|
|
50
|
-
closeLabel: 'Lukk',
|
|
51
|
-
element: 'button'
|
|
52
|
-
};
|
|
53
51
|
export default ExpandButton;
|
package/es/InlineBaseButton.js
CHANGED
|
@@ -14,7 +14,8 @@ var InlineBaseButton = function InlineBaseButton(props) {
|
|
|
14
14
|
var buttonType = props.buttonType,
|
|
15
15
|
children = props.children,
|
|
16
16
|
className = props.className,
|
|
17
|
-
|
|
17
|
+
_props$element = props.element,
|
|
18
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
18
19
|
innerRef = props.innerRef,
|
|
19
20
|
leftIcon = props.leftIcon,
|
|
20
21
|
rightIcon = props.rightIcon,
|
|
@@ -53,7 +54,4 @@ InlineBaseButton.propTypes = {
|
|
|
53
54
|
/** Icon shown to the right of the label */
|
|
54
55
|
rightIcon: node
|
|
55
56
|
};
|
|
56
|
-
InlineBaseButton.defaultProps = {
|
|
57
|
-
element: 'button'
|
|
58
|
-
};
|
|
59
57
|
export default InlineBaseButton;
|
package/lib/BaseButton.js
CHANGED
|
@@ -16,11 +16,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
* Internal component
|
|
17
17
|
*/
|
|
18
18
|
var BaseButton = function BaseButton(props) {
|
|
19
|
-
var
|
|
19
|
+
var _props$ariaLoadingMes = props.ariaLoadingMessage,
|
|
20
|
+
ariaLoadingMessage = _props$ariaLoadingMes === void 0 ? 'Vennligst vent' : _props$ariaLoadingMes,
|
|
20
21
|
buttonType = props.buttonType,
|
|
21
22
|
children = props.children,
|
|
22
23
|
className = props.className,
|
|
23
|
-
|
|
24
|
+
_props$element = props.element,
|
|
25
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
24
26
|
innerRef = props.innerRef,
|
|
25
27
|
isLoading = props.isLoading,
|
|
26
28
|
leftIcon = props.leftIcon,
|
|
@@ -86,8 +88,4 @@ BaseButton.propTypes = {
|
|
|
86
88
|
/** Called when button is clicked if not loading or disabled */
|
|
87
89
|
onClick: _propTypes.func
|
|
88
90
|
};
|
|
89
|
-
BaseButton.defaultProps = {
|
|
90
|
-
ariaLoadingMessage: 'Vennligst vent',
|
|
91
|
-
element: 'button'
|
|
92
|
-
};
|
|
93
91
|
var _default = exports.default = BaseButton;
|
package/lib/ExpandButton.js
CHANGED
|
@@ -16,8 +16,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
var ExpandButton = function ExpandButton(props) {
|
|
17
17
|
var children = props.children,
|
|
18
18
|
className = props.className,
|
|
19
|
-
closeLabel = props.closeLabel,
|
|
20
|
-
|
|
19
|
+
_props$closeLabel = props.closeLabel,
|
|
20
|
+
closeLabel = _props$closeLabel === void 0 ? 'Lukk' : _props$closeLabel,
|
|
21
|
+
_props$element = props.element,
|
|
22
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
21
23
|
innerRef = props.innerRef,
|
|
22
24
|
isExpanded = props.isExpanded,
|
|
23
25
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -53,8 +55,4 @@ ExpandButton.propTypes = {
|
|
|
53
55
|
/** Use to listen for clicks and toggle the `isExpanded` property together with whatever it is you're expanding. */
|
|
54
56
|
onClick: _propTypes.func.isRequired
|
|
55
57
|
};
|
|
56
|
-
ExpandButton.defaultProps = {
|
|
57
|
-
closeLabel: 'Lukk',
|
|
58
|
-
element: 'button'
|
|
59
|
-
};
|
|
60
58
|
var _default = exports.default = ExpandButton;
|
package/lib/InlineBaseButton.js
CHANGED
|
@@ -20,7 +20,8 @@ var InlineBaseButton = function InlineBaseButton(props) {
|
|
|
20
20
|
var buttonType = props.buttonType,
|
|
21
21
|
children = props.children,
|
|
22
22
|
className = props.className,
|
|
23
|
-
|
|
23
|
+
_props$element = props.element,
|
|
24
|
+
Element = _props$element === void 0 ? 'button' : _props$element,
|
|
24
25
|
innerRef = props.innerRef,
|
|
25
26
|
leftIcon = props.leftIcon,
|
|
26
27
|
rightIcon = props.rightIcon,
|
|
@@ -59,7 +60,4 @@ InlineBaseButton.propTypes = {
|
|
|
59
60
|
/** Icon shown to the right of the label */
|
|
60
61
|
rightIcon: _propTypes.node
|
|
61
62
|
};
|
|
62
|
-
InlineBaseButton.defaultProps = {
|
|
63
|
-
element: 'button'
|
|
64
|
-
};
|
|
65
63
|
var _default = exports.default = InlineBaseButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-buttons-react",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.18",
|
|
4
4
|
"description": "React implementation of ffe-buttons",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"test:watch": "ffe-buildtool jest --watch"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sb1/ffe-buttons": "^18.0.
|
|
32
|
-
"@sb1/ffe-icons-react": "^9.0.
|
|
31
|
+
"@sb1/ffe-buttons": "^18.0.18",
|
|
32
|
+
"@sb1/ffe-icons-react": "^9.0.8",
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
34
|
"prop-types": "^15.7.2"
|
|
35
35
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c291894cefef43c0607f844862e87031452a0d94"
|
|
50
50
|
}
|