@sb1/ffe-buttons-react 21.0.19 → 22.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 +16 -40
- package/es/BackButton.js +18 -26
- package/es/BaseButton.js +51 -80
- package/es/ButtonGroup.js +25 -26
- package/es/ExpandButton.js +31 -48
- package/es/InlineBaseButton.js +39 -51
- package/es/InlineExpandButton.js +33 -38
- package/es/PrimaryButton.js +17 -39
- package/es/SecondaryButton.js +17 -39
- package/es/ShortcutButton.js +18 -28
- package/es/TaskButton.js +17 -33
- package/es/TertiaryButton.js +17 -33
- package/es/fixedForwardRef.js +2 -0
- package/es/index.js +10 -10
- package/es/types.js +1 -0
- package/lib/ActionButton.js +22 -47
- package/lib/BackButton.js +23 -32
- package/lib/BaseButton.js +58 -87
- package/lib/ButtonGroup.js +32 -33
- package/lib/ExpandButton.js +37 -55
- package/lib/InlineBaseButton.js +46 -58
- package/lib/InlineExpandButton.js +39 -45
- package/lib/PrimaryButton.js +21 -44
- package/lib/SecondaryButton.js +21 -44
- package/lib/ShortcutButton.js +23 -34
- package/lib/TaskButton.js +21 -38
- package/lib/TertiaryButton.js +21 -38
- package/lib/fixedForwardRef.js +5 -0
- package/lib/index.js +22 -75
- package/lib/types.js +2 -0
- package/package.json +8 -10
- package/types/ActionButton.d.ts +4 -0
- package/types/BackButton.d.ts +4 -0
- package/types/BaseButton.d.ts +22 -0
- package/types/ButtonGroup.d.ts +8 -0
- package/types/ExpandButton.d.ts +18 -0
- package/types/InlineBaseButton.d.ts +28 -0
- package/types/InlineExpandButton.d.ts +10 -0
- package/types/PrimaryButton.d.ts +4 -0
- package/types/SecondaryButton.d.ts +4 -0
- package/types/ShortcutButton.d.ts +4 -0
- package/types/TaskButton.d.ts +10 -0
- package/types/TertiaryButton.d.ts +4 -0
- package/types/fixedForwardRef.d.ts +4 -0
- package/types/index.d.ts +10 -107
- package/types/types.d.ts +8 -0
package/lib/ExpandButton.js
CHANGED
|
@@ -1,58 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
14
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
var ExpandButton = function ExpandButton(props) {
|
|
17
|
-
var children = props.children,
|
|
18
|
-
className = props.className,
|
|
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,
|
|
23
|
-
innerRef = props.innerRef,
|
|
24
|
-
isExpanded = props.isExpanded,
|
|
25
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
26
|
-
var closeIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00ODAtNDM3Ljg0NyAyNzcuMDc2LTIzNC45MjRxLTguMzA3IDguMzA4LTIwLjg4NCA4LjUtMTIuNTc2LjE5My0yMS4yNjgtOC41LTguNjkzLTguNjkyLTguNjkzLTIxLjA3NnQ4LjY5My0yMS4wNzZMNDM3Ljg0Ny00ODAgMjM0LjkyNC02ODIuOTI0cS04LjMwOC04LjMwNy04LjUtMjAuODg0LS4xOTMtMTIuNTc2IDguNS0yMS4yNjggOC42OTItOC42OTMgMjEuMDc2LTguNjkzdDIxLjA3NiA4LjY5M0w0ODAtNTIyLjE1M2wyMDIuOTI0LTIwMi45MjNxOC4zMDctOC4zMDggMjAuODg0LTguNSAxMi41NzYtLjE5MyAyMS4yNjggOC41IDguNjkzIDguNjkyIDguNjkzIDIxLjA3NnQtOC42OTMgMjEuMDc2TDUyMi4xNTMtNDgwbDIwMi45MjMgMjAyLjkyNHE4LjMwOCA4LjMwNyA4LjUgMjAuODg0LjE5MyAxMi41NzYtOC41IDIxLjI2OC04LjY5MiA4LjY5My0yMS4wNzYgOC42OTN0LTIxLjA3Ni04LjY5M0w0ODAtNDM3Ljg0N1oiLz48L3N2Zz4=';
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(Element, _extends({
|
|
28
|
-
"aria-expanded": isExpanded,
|
|
29
|
-
"aria-label": isExpanded ? closeLabel : undefined,
|
|
30
|
-
className: (0, _classnames.default)('ffe-button', 'ffe-button--expand', {
|
|
31
|
-
'ffe-button--expanded': isExpanded
|
|
32
|
-
}, className),
|
|
33
|
-
ref: innerRef
|
|
34
|
-
}, rest), isExpanded && /*#__PURE__*/_react.default.createElement(_ffeIconsReact.Icon, {
|
|
35
|
-
className: "ffe-button__icon",
|
|
36
|
-
fileUrl: closeIcon,
|
|
37
|
-
size: "md"
|
|
38
|
-
}), !isExpanded && /*#__PURE__*/_react.default.createElement("span", null, children));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
39
12
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
51
|
-
current: _propTypes.object
|
|
52
|
-
})]),
|
|
53
|
-
/** When true the component will render a circle with an X indicating whatever is controlled is in an expanded state. */
|
|
54
|
-
isExpanded: _propTypes.bool.isRequired,
|
|
55
|
-
/** Use to listen for clicks and toggle the `isExpanded` property together with whatever it is you're expanding. */
|
|
56
|
-
onClick: _propTypes.func.isRequired
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
57
23
|
};
|
|
58
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ExpandButton = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
31
|
+
var ffe_icons_react_1 = require("@sb1/ffe-icons-react");
|
|
32
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
33
|
+
function ExpandButtonWithForwardRef(props, ref) {
|
|
34
|
+
var children = props.children, className = props.className, _a = props.closeLabel, closeLabel = _a === void 0 ? 'Lukk' : _a, _b = props.as, Comp = _b === void 0 ? 'button' : _b, isExpanded = props.isExpanded, rest = __rest(props, ["children", "className", "closeLabel", "as", "isExpanded"]);
|
|
35
|
+
var closeIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00ODAtNDM3Ljg0NyAyNzcuMDc2LTIzNC45MjRxLTguMzA3IDguMzA4LTIwLjg4NCA4LjUtMTIuNTc2LjE5My0yMS4yNjgtOC41LTguNjkzLTguNjkyLTguNjkzLTIxLjA3NnQ4LjY5My0yMS4wNzZMNDM3Ljg0Ny00ODAgMjM0LjkyNC02ODIuOTI0cS04LjMwOC04LjMwNy04LjUtMjAuODg0LS4xOTMtMTIuNTc2IDguNS0yMS4yNjggOC42OTItOC42OTMgMjEuMDc2LTguNjkzdDIxLjA3NiA4LjY5M0w0ODAtNTIyLjE1M2wyMDIuOTI0LTIwMi45MjNxOC4zMDctOC4zMDggMjAuODg0LTguNSAxMi41NzYtLjE5MyAyMS4yNjggOC41IDguNjkzIDguNjkyIDguNjkzIDIxLjA3NnQtOC42OTMgMjEuMDc2TDUyMi4xNTMtNDgwbDIwMi45MjMgMjAyLjkyNHE4LjMwOCA4LjMwNyA4LjUgMjAuODg0LjE5MyAxMi41NzYtOC41IDIxLjI2OC04LjY5MiA4LjY5My0yMS4wNzYgOC42OTN0LTIxLjA3Ni04LjY5M0w0ODAtNDM3Ljg0N1oiLz48L3N2Zz4=';
|
|
36
|
+
return (react_1.default.createElement(Comp, __assign({ "aria-expanded": isExpanded, "aria-label": isExpanded ? closeLabel : undefined, className: (0, classnames_1.default)('ffe-button', 'ffe-button--expand', { 'ffe-button--expanded': isExpanded }, className) }, rest, { ref: ref }),
|
|
37
|
+
isExpanded && (react_1.default.createElement(ffe_icons_react_1.Icon, { className: "ffe-button__icon", fileUrl: closeIcon, size: "md" })),
|
|
38
|
+
!isExpanded && react_1.default.createElement("span", null, children)));
|
|
39
|
+
}
|
|
40
|
+
exports.ExpandButton = (0, fixedForwardRef_1.fixedForwardRef)(ExpandButtonWithForwardRef);
|
package/lib/InlineBaseButton.js
CHANGED
|
@@ -1,63 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.InlineBaseButton = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
15
32
|
/**
|
|
16
33
|
* Internal component
|
|
17
34
|
* @ignore
|
|
18
35
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
36
|
-
className: "ffe-inline-button__label"
|
|
37
|
-
}, children), rightIcon && /*#__PURE__*/_react.default.cloneElement(rightIcon, {
|
|
38
|
-
className: 'ffe-inline-button__icon ffe-inline-button__icon--right',
|
|
39
|
-
size: 'md'
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
InlineBaseButton.propTypes = {
|
|
43
|
-
/**
|
|
44
|
-
* Enum of supported prop types. Used internally only.
|
|
45
|
-
* @ignore
|
|
46
|
-
*/
|
|
47
|
-
buttonType: (0, _propTypes.oneOf)(['tertiary', 'back', 'expand']),
|
|
48
|
-
/** The button label */
|
|
49
|
-
children: _propTypes.node.isRequired,
|
|
50
|
-
/** Extra class names */
|
|
51
|
-
className: _propTypes.string,
|
|
52
|
-
/** The rendered element, like an `<a />` or `<Link />` */
|
|
53
|
-
element: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.func, _propTypes.elementType]),
|
|
54
|
-
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
55
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
56
|
-
current: _propTypes.object
|
|
57
|
-
})]),
|
|
58
|
-
/** Icon shown to the left of the label */
|
|
59
|
-
leftIcon: _propTypes.node,
|
|
60
|
-
/** Icon shown to the right of the label */
|
|
61
|
-
rightIcon: _propTypes.node
|
|
62
|
-
};
|
|
63
|
-
var _default = exports.default = InlineBaseButton;
|
|
36
|
+
function InlineBaseButtonWithForwardRef(props, ref) {
|
|
37
|
+
var _a = props.as, Comp = _a === void 0 ? 'button' : _a, buttonType = props.buttonType, className = props.className, leftIcon = props.leftIcon, rightIcon = props.rightIcon, children = props.children, rest = __rest(props, ["as", "buttonType", "className", "leftIcon", "rightIcon", "children"]);
|
|
38
|
+
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-inline-button', "ffe-inline-button--".concat(buttonType), className) }, rest, { ref: ref }),
|
|
39
|
+
leftIcon &&
|
|
40
|
+
react_1.default.cloneElement(leftIcon, {
|
|
41
|
+
className: 'ffe-inline-button__icon ffe-inline-button__icon--left',
|
|
42
|
+
size: 'md',
|
|
43
|
+
}),
|
|
44
|
+
react_1.default.createElement("span", { className: "ffe-inline-button__label" }, children),
|
|
45
|
+
rightIcon &&
|
|
46
|
+
react_1.default.cloneElement(rightIcon, {
|
|
47
|
+
className: 'ffe-inline-button__icon ffe-inline-button__icon--right',
|
|
48
|
+
size: 'md',
|
|
49
|
+
})));
|
|
50
|
+
}
|
|
51
|
+
exports.InlineBaseButton = (0, fixedForwardRef_1.fixedForwardRef)(InlineBaseButtonWithForwardRef);
|
|
@@ -1,48 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _excluded = ["isExpanded", "className"];
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
15
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
17
|
-
var InlineExpandButton = function InlineExpandButton(props) {
|
|
18
|
-
var isExpanded = props.isExpanded,
|
|
19
|
-
className = props.className,
|
|
20
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
21
|
-
var expandMoreIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00ODAtMzczLjUzOXEtNy4yMzEgMC0xMy40NjEtMi4zMDgtNi4yMzEtMi4zMDgtMTEuODQ2LTcuOTIzTDI3NC45MjQtNTYzLjUzOXEtOC4zMDgtOC4zMDctOC41LTIwLjg4NC0uMTkzLTEyLjU3NyA4LjUtMjEuMjY5IDguNjkyLTguNjkyIDIxLjA3Ni04LjY5MnQyMS4wNzYgOC42OTJMNDgwLTQ0Mi43NjhsMTYyLjkyNC0xNjIuOTI0cTguMzA3LTguMzA3IDIwLjg4NC04LjUgMTIuNTc2LS4xOTIgMjEuMjY4IDguNSA4LjY5MyA4LjY5MiA4LjY5MyAyMS4wNzcgMCAxMi4zODQtOC42OTMgMjEuMDc2TDUwNS4zMDctMzgzLjc3cS01LjYxNSA1LjYxNS0xMS44NDYgNy45MjMtNi4yMyAyLjMwOC0xMy40NjEgMi4zMDhaIi8+PC9zdmc+';
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_InlineBaseButton.default, _extends({
|
|
23
|
-
buttonType: "expand",
|
|
24
|
-
type: "button",
|
|
25
|
-
className: (0, _classnames.default)(className, {
|
|
26
|
-
'ffe-inline-button--expanded': isExpanded
|
|
27
|
-
}),
|
|
28
|
-
rightIcon: /*#__PURE__*/_react.default.createElement(_ffeIconsReact.Icon, {
|
|
29
|
-
size: "md",
|
|
30
|
-
fileUrl: expandMoreIcon
|
|
31
|
-
})
|
|
32
|
-
}, rest));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
33
12
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
onClick: _propTypes.func.isRequired,
|
|
45
|
-
/** Extra class names */
|
|
46
|
-
className: _propTypes.string
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
47
23
|
};
|
|
48
|
-
var
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.InlineExpandButton = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var ffe_icons_react_1 = require("@sb1/ffe-icons-react");
|
|
31
|
+
var InlineBaseButton_1 = require("./InlineBaseButton");
|
|
32
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
33
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
34
|
+
function InlineExpandButtonWithForwardRef(props, ref) {
|
|
35
|
+
var expandMoreIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00ODAtMzczLjUzOXEtNy4yMzEgMC0xMy40NjEtMi4zMDgtNi4yMzEtMi4zMDgtMTEuODQ2LTcuOTIzTDI3NC45MjQtNTYzLjUzOXEtOC4zMDgtOC4zMDctOC41LTIwLjg4NC0uMTkzLTEyLjU3NyA4LjUtMjEuMjY5IDguNjkyLTguNjkyIDIxLjA3Ni04LjY5MnQyMS4wNzYgOC42OTJMNDgwLTQ0Mi43NjhsMTYyLjkyNC0xNjIuOTI0cTguMzA3LTguMzA3IDIwLjg4NC04LjUgMTIuNTc2LS4xOTIgMjEuMjY4IDguNSA4LjY5MyA4LjY5MiA4LjY5MyAyMS4wNzcgMCAxMi4zODQtOC42OTMgMjEuMDc2TDUwNS4zMDctMzgzLjc3cS01LjYxNSA1LjYxNS0xMS44NDYgNy45MjMtNi4yMyAyLjMwOC0xMy40NjEgMi4zMDhaIi8+PC9zdmc+';
|
|
36
|
+
var propWithRef = __assign(__assign({}, props), { ref: ref });
|
|
37
|
+
var isExpanded = propWithRef.isExpanded, className = propWithRef.className, rest = __rest(propWithRef, ["isExpanded", "className"]);
|
|
38
|
+
return (react_1.default.createElement(InlineBaseButton_1.InlineBaseButton, __assign({ rightIcon: react_1.default.createElement(ffe_icons_react_1.Icon, { size: "md", fileUrl: expandMoreIcon }), buttonType: "expand", type: "button" }, rest, { className: (0, classnames_1.default)(className, {
|
|
39
|
+
'ffe-inline-button--expanded': isExpanded,
|
|
40
|
+
}), ref: propWithRef.ref })));
|
|
41
|
+
}
|
|
42
|
+
exports.InlineExpandButton = (0, fixedForwardRef_1.fixedForwardRef)(InlineExpandButtonWithForwardRef);
|
package/lib/PrimaryButton.js
CHANGED
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
13
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
var PrimaryButton = function PrimaryButton(props) {
|
|
16
|
-
var leftIcon = props.leftIcon,
|
|
17
|
-
rightIcon = props.rightIcon,
|
|
18
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_BaseButton.default, _extends({
|
|
20
|
-
buttonType: "primary",
|
|
21
|
-
leftIcon: leftIcon,
|
|
22
|
-
rightIcon: rightIcon
|
|
23
|
-
}, rest));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ariaLoadingMessage: _propTypes.string,
|
|
28
|
-
/** The button label */
|
|
29
|
-
children: _propTypes.node,
|
|
30
|
-
/** Extra class names */
|
|
31
|
-
className: _propTypes.string,
|
|
32
|
-
/** Disable a button in certain situations */
|
|
33
|
-
disabled: _propTypes.bool,
|
|
34
|
-
/** The rendered element, like an `<a />` or `<Link />` */
|
|
35
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
36
|
-
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
37
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
38
|
-
current: _propTypes.object
|
|
39
|
-
})]),
|
|
40
|
-
/** Shows a loader if true */
|
|
41
|
-
isLoading: _propTypes.bool,
|
|
42
|
-
/** Icon shown to the left of the label */
|
|
43
|
-
leftIcon: _propTypes.node,
|
|
44
|
-
/** Icon shown to the right of the label */
|
|
45
|
-
rightIcon: _propTypes.node
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
15
|
};
|
|
47
|
-
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PrimaryButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var BaseButton_1 = require("./BaseButton");
|
|
20
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
21
|
+
function PrimaryButtonWithForwardRef(props, ref) {
|
|
22
|
+
return react_1.default.createElement(BaseButton_1.BaseButton, __assign({}, props, { ref: ref, buttonType: "primary" }));
|
|
23
|
+
}
|
|
24
|
+
exports.PrimaryButton = (0, fixedForwardRef_1.fixedForwardRef)(PrimaryButtonWithForwardRef);
|
package/lib/SecondaryButton.js
CHANGED
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
13
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
var SecondaryButton = function SecondaryButton(props) {
|
|
16
|
-
var leftIcon = props.leftIcon,
|
|
17
|
-
rightIcon = props.rightIcon,
|
|
18
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_BaseButton.default, _extends({
|
|
20
|
-
buttonType: "secondary",
|
|
21
|
-
leftIcon: leftIcon,
|
|
22
|
-
rightIcon: rightIcon
|
|
23
|
-
}, rest));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ariaLoadingMessage: _propTypes.string,
|
|
28
|
-
/** The button label */
|
|
29
|
-
children: _propTypes.node,
|
|
30
|
-
/** Extra class names */
|
|
31
|
-
className: _propTypes.string,
|
|
32
|
-
/** Disable a button in certain situations */
|
|
33
|
-
disabled: _propTypes.bool,
|
|
34
|
-
/** The rendered element, like an `<a />` or `<Link />` */
|
|
35
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
36
|
-
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
37
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
38
|
-
current: _propTypes.object
|
|
39
|
-
})]),
|
|
40
|
-
/** Shows a loader if true */
|
|
41
|
-
isLoading: _propTypes.bool,
|
|
42
|
-
/** Icon shown to the left of the label */
|
|
43
|
-
leftIcon: _propTypes.node,
|
|
44
|
-
/** Icon shown to the right of the label */
|
|
45
|
-
rightIcon: _propTypes.node
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
15
|
};
|
|
47
|
-
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SecondaryButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var BaseButton_1 = require("./BaseButton");
|
|
20
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
21
|
+
function SecondaryButtonWithForwardRef(props, ref) {
|
|
22
|
+
return react_1.default.createElement(BaseButton_1.BaseButton, __assign({}, props, { ref: ref, buttonType: "secondary" }));
|
|
23
|
+
}
|
|
24
|
+
exports.SecondaryButton = (0, fixedForwardRef_1.fixedForwardRef)(SecondaryButtonWithForwardRef);
|
package/lib/ShortcutButton.js
CHANGED
|
@@ -1,37 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
13
|
-
var ShortcutButton = function ShortcutButton(props) {
|
|
14
|
-
var chevronRightIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik01MTcuODQ3LTQ4MCAzNTQuOTI0LTY0Mi45MjRxLTguMzA4LTguMzA3LTguNS0yMC44ODQtLjE5My0xMi41NzYgOC41LTIxLjI2OCA4LjY5Mi04LjY5MyAyMS4wNzYtOC42OTN0MjEuMDc2IDguNjkzbDE3OS43NjkgMTc5Ljc2OXE1LjYxNiA1LjYxNSA3LjkyMyAxMS44NDYgMi4zMDggNi4yMyAyLjMwOCAxMy40NjF0LTIuMzA4IDEzLjQ2MXEtMi4zMDcgNi4yMzEtNy45MjMgMTEuODQ2TDM5Ny4wNzYtMjc0LjkyNHEtOC4zMDcgOC4zMDgtMjAuODg0IDguNS0xMi41NzYuMTkzLTIxLjI2OC04LjUtOC42OTMtOC42OTItOC42OTMtMjEuMDc2dDguNjkzLTIxLjA3Nkw1MTcuODQ3LTQ4MFoiLz48L3N2Zz4=';
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(_BaseButton.default, _extends({
|
|
16
|
-
buttonType: "shortcut",
|
|
17
|
-
rightIcon: /*#__PURE__*/_react.default.createElement(_ffeIconsReact.Icon, {
|
|
18
|
-
fileUrl: chevronRightIcon,
|
|
19
|
-
size: "md"
|
|
20
|
-
})
|
|
21
|
-
}, props));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
22
12
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children: _propTypes.node,
|
|
26
|
-
/** Extra class names */
|
|
27
|
-
className: _propTypes.string,
|
|
28
|
-
/** Disable a button in certain situations */
|
|
29
|
-
disabled: _propTypes.bool,
|
|
30
|
-
/** The rendered element, like an `<a />` or `<Link />` */
|
|
31
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
32
|
-
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
33
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
34
|
-
current: _propTypes.object
|
|
35
|
-
})])
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
15
|
};
|
|
37
|
-
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ShortcutButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var BaseButton_1 = require("./BaseButton");
|
|
20
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
21
|
+
var ffe_icons_react_1 = require("@sb1/ffe-icons-react");
|
|
22
|
+
function ShortcutButtonWithForwardRef(props, ref) {
|
|
23
|
+
var chevronRightIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik01MTcuODQ3LTQ4MCAzNTQuOTI0LTY0Mi45MjRxLTguMzA4LTguMzA3LTguNS0yMC44ODQtLjE5My0xMi41NzYgOC41LTIxLjI2OCA4LjY5Mi04LjY5MyAyMS4wNzYtOC42OTN0MjEuMDc2IDguNjkzbDE3OS43NjkgMTc5Ljc2OXE1LjYxNiA1LjYxNSA3LjkyMyAxMS44NDYgMi4zMDggNi4yMyAyLjMwOCAxMy40NjF0LTIuMzA4IDEzLjQ2MXEtMi4zMDcgNi4yMzEtNy45MjMgMTEuODQ2TDM5Ny4wNzYtMjc0LjkyNHEtOC4zMDcgOC4zMDgtMjAuODg0IDguNS0xMi41NzYuMTkzLTIxLjI2OC04LjUtOC42OTMtOC42OTItOC42OTMtMjEuMDc2dDguNjkzLTIxLjA3Nkw1MTcuODQ3LTQ4MFoiLz48L3N2Zz4=';
|
|
24
|
+
return (react_1.default.createElement(BaseButton_1.BaseButton, __assign({ rightIcon: react_1.default.createElement(ffe_icons_react_1.Icon, { fileUrl: chevronRightIcon, size: "md" }) }, props, { ref: ref, buttonType: "shortcut" })));
|
|
25
|
+
}
|
|
26
|
+
exports.ShortcutButton = (0, fixedForwardRef_1.fixedForwardRef)(ShortcutButtonWithForwardRef);
|
package/lib/TaskButton.js
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
13
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
var TaskButton = function TaskButton(_ref) {
|
|
16
|
-
var icon = _ref.icon,
|
|
17
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_BaseButton.default, _extends({
|
|
19
|
-
buttonType: "task",
|
|
20
|
-
leftIcon: /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
"aria-hidden": "true"
|
|
22
|
-
}, icon)
|
|
23
|
-
}, rest));
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: _propTypes.node,
|
|
28
|
-
/** Extra class names */
|
|
29
|
-
className: _propTypes.string,
|
|
30
|
-
/** Disable a button in certain situations */
|
|
31
|
-
disabled: _propTypes.bool,
|
|
32
|
-
/** The rendered element, like an `<a />` or `<Link />` */
|
|
33
|
-
element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
|
|
34
|
-
/** icon element shown to the left of the label */
|
|
35
|
-
icon: _propTypes.node,
|
|
36
|
-
/** Ref-setting function, or ref created by useRef, passed to the button element */
|
|
37
|
-
innerRef: (0, _propTypes.oneOfType)([_propTypes.func, (0, _propTypes.shape)({
|
|
38
|
-
current: _propTypes.object
|
|
39
|
-
})])
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
15
|
};
|
|
41
|
-
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.TaskButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var BaseButton_1 = require("./BaseButton");
|
|
20
|
+
var fixedForwardRef_1 = require("./fixedForwardRef");
|
|
21
|
+
function TaskButtonWithForwardRef(props, ref) {
|
|
22
|
+
return (react_1.default.createElement(BaseButton_1.BaseButton, __assign({ leftIcon: props.icon }, props, { ref: ref, buttonType: "task" })));
|
|
23
|
+
}
|
|
24
|
+
exports.TaskButton = (0, fixedForwardRef_1.fixedForwardRef)(TaskButtonWithForwardRef);
|