oa-componentbook 0.6.0 → 0.7.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/build/components/{Tabs.js → Accordians.js} +45 -35
- package/build/components/{Wallet Service Details/basicQuestions.js → CheckBoxes.js} +28 -22
- package/build/components/ColorUsage.js +35 -0
- package/build/components/CornerRadius.js +46 -0
- package/build/components/{Drawer.js → DrawerDesign.js} +28 -27
- package/build/components/KeyValueDataView.js +29 -18
- package/build/components/LeftPannelTab.js +34 -0
- package/build/components/Notification.js +84 -0
- package/build/components/RadioButton.js +46 -0
- package/build/components/{Button.js → SpacingScales.js} +15 -32
- package/build/components/{Table.js → TableDesign.js} +15 -14
- package/build/components/TabsDesign.js +65 -0
- package/build/components/{QuesAnsView.js → Toggle.js} +46 -21
- package/build/components/Typography.js +37 -0
- package/build/components/oa-button/OACustomButton.js +60 -0
- package/build/components/oa-button/styles.js +37 -0
- package/build/components/peclaim-components/CloseClaim.js +48 -163
- package/build/components/peclaim-components/ComplaintsTable.js +95 -70
- package/build/components/peclaim-components/MainComponent.js +192 -0
- package/build/components/peclaim-components/{compMain.js → SrComplaints.js} +1 -1
- package/build/components/peclaim-components/WorkflowSummaryNotesModal.js +24 -14
- package/build/components/peclaim-components/WorkflowSummaryTable.js +44 -37
- package/build/components/styles.js +72 -138
- package/build/components/wallet-service-details/ComplaintDetail.js +28 -0
- package/build/components/{Wallet Service Details/serviceDetailsTabView.js → wallet-service-details/ServiceDetailsTabView.js} +29 -28
- package/build/components/{Wallet Service Details/viewMoreDetailsDrawer.js → wallet-service-details/ViewMoreDetailsDrawer.js} +50 -38
- package/build/components/{Wallet Service Details/walletServiceDetails.js → wallet-service-details/WalletServiceDetails.js} +25 -29
- package/build/components/wallet-service-details/styles/styles.css +16 -0
- package/build/index.js +68 -42
- package/package.json +17 -6
- package/build/components/Login.js +0 -80
- package/build/components/Wallet Service Details/complaintDetail.js +0 -65
- package/build/components/Wallet Service Details/styles/styles.css +0 -99
- package/build/components/peclaim-components/wf Main.js +0 -192
- package/build/components/style/css/Button.module.css +0 -38
- package/build/components/style/css/login.css +0 -335
|
@@ -8,8 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
require("core-js/modules/es.symbol.description.js");
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _antd = require("antd");
|
|
12
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
var _Typography = _interopRequireWildcard(require("./Typography"));
|
|
14
|
+
var _styles = require("./styles");
|
|
13
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -18,41 +20,49 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
18
20
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
21
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
22
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
23
|
+
function Accordians(_ref) {
|
|
24
|
+
let {
|
|
25
|
+
disabled,
|
|
26
|
+
onChange,
|
|
27
|
+
text,
|
|
28
|
+
typography,
|
|
29
|
+
borderRadius
|
|
30
|
+
} = _ref;
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_antd.Collapse, {
|
|
32
|
+
style: _objectSpread({}, _styles.cornerRadiusStyle[borderRadius]),
|
|
33
|
+
className: "collapseHead",
|
|
34
|
+
expandIconPosition: "right"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Collapse.Panel, {
|
|
36
|
+
key: "1",
|
|
37
|
+
header: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
38
|
+
typography: typography
|
|
39
|
+
}, "Mandatory Documents", /*#__PURE__*/_react.default.createElement("small", null, "*")), /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
className: "mendatoryHead gridContainer"
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
+
className: "col-xl-6"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("h6", null, "Documents")), /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
className: "col-xl-6"
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement("h6", null, "Actions"))))
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
+
className: "gridContainer"
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
className: "gridContainer"
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, "test"), /*#__PURE__*/_react.default.createElement("div", null, "upload")), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: "col-xl-6"
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, "radio 1 radio 2"))))));
|
|
53
|
+
}
|
|
54
|
+
Accordians.propTypes = {
|
|
55
|
+
disabled: _propTypes.default.bool,
|
|
56
|
+
onChange: _propTypes.default.func.isRequired,
|
|
57
|
+
text: _propTypes.default.string,
|
|
58
|
+
typography: _propTypes.default.oneOf(_Typography.typographyOptions),
|
|
59
|
+
borderRadius: _propTypes.default.oneOf(['border-radius-xlarge', 'border-radius-large', 'border-radius-medium', 'border-radius-small', 'border-radius-xsmall', 'border-radius-none', 'border-radius-full'])
|
|
49
60
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type: 'line',
|
|
53
|
-
defaultActiveKey: '1',
|
|
61
|
+
Accordians.defaultProps = {
|
|
62
|
+
borderRadius: '.border-radius-xsmall',
|
|
54
63
|
disabled: false,
|
|
55
|
-
|
|
64
|
+
text: 'Accordian Body',
|
|
65
|
+
typography: '.type-button-500'
|
|
56
66
|
};
|
|
57
|
-
var _default =
|
|
67
|
+
var _default = Accordians;
|
|
58
68
|
exports.default = _default;
|
|
@@ -6,30 +6,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _react =
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
11
|
var _antd = require("antd");
|
|
11
|
-
require("./
|
|
12
|
-
var _QuesAnsView = _interopRequireDefault(require("../QuesAnsView"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
var _Typography = _interopRequireWildcard(require("./Typography"));
|
|
14
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function CheckBoxes(_ref) {
|
|
17
|
+
let {
|
|
18
|
+
disabled,
|
|
19
|
+
onChange,
|
|
20
|
+
text,
|
|
21
|
+
typography
|
|
22
|
+
} = _ref;
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Checkbox, {
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
onChange: disabled ? null : onChange
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
27
|
+
typography: typography
|
|
28
|
+
}, text));
|
|
29
|
+
}
|
|
30
|
+
CheckBoxes.propTypes = {
|
|
31
|
+
disabled: _propTypes.default.bool,
|
|
32
|
+
onChange: _propTypes.default.func.isRequired,
|
|
33
|
+
text: _propTypes.default.string.isRequired,
|
|
34
|
+
typography: _propTypes.default.oneOf(_Typography.typographyOptions)
|
|
35
|
+
};
|
|
36
|
+
CheckBoxes.defaultProps = {
|
|
37
|
+
disabled: false,
|
|
38
|
+
typography: 'type-b2-400'
|
|
33
39
|
};
|
|
34
|
-
var _default =
|
|
40
|
+
var _default = CheckBoxes;
|
|
35
41
|
exports.default = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.colorOptions = exports.ColorVariables = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
12
|
+
var _templateObject, _templateObject2;
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
+
const colorOptions = ['blue-CTA', 'darkblue-background', 'lightblue-background', 'blue-hover', 'green-success', 'lightgreen-success', 'yellow-warning', 'lightyellow-warning', 'red-error', 'red-hover', 'lightred-error', 'primarygrey-text', 'secondarygrey-text', 'grey1-placeholder', 'grey2-disabled', 'grey3-disabled_divider', 'grey4-background', 'white-background', 'grey5-overlay', 'sunyellow-tags'];
|
|
18
|
+
|
|
19
|
+
// TODO: Figure out a way to make this work with storybook.
|
|
20
|
+
// Can be used to wrap the entire application, to make these styles available to every component
|
|
21
|
+
exports.colorOptions = colorOptions;
|
|
22
|
+
const ColorVariables = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n --color-blue-CTA: #014FC5;\n --color-blue-hover: #82A9E2;\n --color-darkblue-background: #003264;\n --color-lightblue-background: #DEF1FB;\n --color-green-success: #00875A;\n --color-lightgreen-success: #CCE7DE;\n --color-yellow-warning: #FF991F;\n --color-lightyellow-warning: #FFEBD2;\n --color-red-error: #DE350B;\n --color-red-hover: #E87254;\n --color-lightred-error: #F8D7CE;\n --color-primarygrey-text: #212121;\n --color-secondarygrey-text: #717171;\n --color-grey1-placeholder: #959595;\n --color-grey2-disabled: #BFBFBF;\n --color-grey3-disabled_divider: #E0E0E0;\n --color-grey4-background: #F6F6F6;\n --color-white-background: #FFFFFF;\n --color-grey5-overlay: rgba(0, 0, 0, 0.7);\n --color-sunyellow-tags: #F5C82D;\n"])));
|
|
23
|
+
exports.ColorVariables = ColorVariables;
|
|
24
|
+
function ColorUsage(_ref) {
|
|
25
|
+
let {
|
|
26
|
+
color
|
|
27
|
+
} = _ref;
|
|
28
|
+
const ColorDisplay = _styledComponents.default.h1(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: var(--color-", ");\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100px;\n width: 450px;\n "])), color);
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(ColorDisplay, null, "--color-".concat(color));
|
|
30
|
+
}
|
|
31
|
+
ColorUsage.propTypes = {
|
|
32
|
+
color: _propTypes.default.oneOf(colorOptions).isRequired
|
|
33
|
+
};
|
|
34
|
+
var _default = ColorUsage;
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
+
require("core-js/modules/es.string.replace.js");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
|
+
var _templateObject;
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
+
function CornerRadius(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
type
|
|
18
|
+
} = _ref;
|
|
19
|
+
const getBorderSize = () => {
|
|
20
|
+
switch (type.replace('border-radius-', '')) {
|
|
21
|
+
case 'full':
|
|
22
|
+
return 9999;
|
|
23
|
+
case 'xlarge':
|
|
24
|
+
return 16;
|
|
25
|
+
case 'large':
|
|
26
|
+
return 12;
|
|
27
|
+
case 'medium':
|
|
28
|
+
return 8;
|
|
29
|
+
case 'small':
|
|
30
|
+
return 4;
|
|
31
|
+
case 'xsmall':
|
|
32
|
+
return 2;
|
|
33
|
+
case 'none':
|
|
34
|
+
return 0;
|
|
35
|
+
default:
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const RadiusDisplayComponent = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n width: 200px;\n background-color: blue;\n border-radius: ", "px\n "])), getBorderSize());
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(RadiusDisplayComponent, null, type);
|
|
41
|
+
}
|
|
42
|
+
CornerRadius.propTypes = {
|
|
43
|
+
type: _propTypes.default.oneOf(['border-radius-xlarge', 'border-radius-large', 'border-radius-medium', 'border-radius-small', 'border-radius-xsmall', 'border-radius-none', 'border-radius-full']).isRequired
|
|
44
|
+
};
|
|
45
|
+
var _default = CornerRadius;
|
|
46
|
+
exports.default = _default;
|
|
@@ -7,47 +7,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _antd = require("antd");
|
|
11
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _antd = require("antd");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title,
|
|
18
|
-
placement,
|
|
15
|
+
function DrawerDesign(_ref) {
|
|
16
|
+
let {
|
|
19
17
|
closable,
|
|
20
|
-
visible,
|
|
21
18
|
data,
|
|
19
|
+
height,
|
|
22
20
|
onClose,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
title: title,
|
|
30
|
-
placement: placement,
|
|
21
|
+
open,
|
|
22
|
+
placement,
|
|
23
|
+
title,
|
|
24
|
+
width
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_antd.Drawer, {
|
|
31
27
|
closable: closable,
|
|
32
28
|
onClose: onClose,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
open: open,
|
|
30
|
+
placement: placement,
|
|
31
|
+
title: title,
|
|
32
|
+
height: height,
|
|
33
|
+
width: width
|
|
36
34
|
}, data));
|
|
37
|
-
}
|
|
35
|
+
}
|
|
38
36
|
DrawerDesign.propTypes = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
closable: _propTypes.default.bool,
|
|
38
|
+
data: _propTypes.default.node.isRequired,
|
|
39
|
+
onClose: _propTypes.default.func,
|
|
40
|
+
open: _propTypes.default.bool,
|
|
41
|
+
placement: _propTypes.default.oneOf(['top', 'right', 'bottom', 'left']),
|
|
42
|
+
title: _propTypes.default.string,
|
|
43
|
+
height: _propTypes.default.number.isRequired,
|
|
44
|
+
width: _propTypes.default.number.isRequired
|
|
44
45
|
};
|
|
45
46
|
DrawerDesign.defaultProps = {
|
|
46
|
-
placement: 'right',
|
|
47
|
-
title: '',
|
|
48
47
|
closable: false,
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
onClose: null,
|
|
49
|
+
open: true,
|
|
50
|
+
placement: 'right',
|
|
51
|
+
title: ''
|
|
51
52
|
};
|
|
52
53
|
var _default = DrawerDesign;
|
|
53
54
|
exports.default = _default;
|
|
@@ -6,32 +6,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _templateObject, _templateObject2;
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
14
|
function KeyValueDataView(_ref) {
|
|
12
15
|
let {
|
|
13
16
|
data,
|
|
17
|
+
footerHeading,
|
|
14
18
|
heading,
|
|
15
|
-
value,
|
|
16
19
|
viewMore
|
|
17
20
|
} = _ref;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
style: _styles.keyValueDataViewStyles['.detailsSec h6']
|
|
22
|
-
}, heading), data && Object.entries(data).map(_ref2 => {
|
|
21
|
+
const DetailsSection = _styledComponents.default.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 72px 0 0;\n\n h6 {\n color: #6F7C87;\n text-transform: uppercase;\n padding: 0 0 8px;\n font-size: 10px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 10px;\n margin: 0; \n }\n\n h5 {\n color: #6F7C87;\n padding: 0 0 8px;\n font-size: 12px;\n font-weight: bold;\n letter-spacing: 1px;\n line-height: 10px;\n margin: 0;\n }\n "])));
|
|
22
|
+
const CustomerDetails = _styledComponents.default.section(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n \n display: flex;\n\n span {\n width: 100%;\n color: #717171;\n font-weight: 400;\n }\n\n b {\n margin: 0 8px 4px 0;\n min-width: 140px;\n color: #212121;\n font-weight: 400;\n }\n "])));
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(DetailsSection, null, heading && /*#__PURE__*/_react.default.createElement("h6", null, heading), data && Object.entries(data).map(_ref2 => {
|
|
23
24
|
let [key, value] = _ref2;
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), value && /*#__PURE__*/_react.default.createElement("h5", {
|
|
33
|
-
style: _styles.keyValueDataViewStyles['.detailsSec h5']
|
|
34
|
-
}, value), viewMore);
|
|
25
|
+
return (
|
|
26
|
+
/*#__PURE__*/
|
|
27
|
+
// Fragment with a unique allows mapping of the object to components.
|
|
28
|
+
_react.default.createElement(_react.default.Fragment, {
|
|
29
|
+
key: key
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement(CustomerDetails, null, /*#__PURE__*/_react.default.createElement("b", null, key, ":"), /*#__PURE__*/_react.default.createElement("span", null, value)))
|
|
31
|
+
);
|
|
32
|
+
}), footerHeading && /*#__PURE__*/_react.default.createElement("h5", null, footerHeading), viewMore);
|
|
35
33
|
}
|
|
34
|
+
KeyValueDataView.propTypes = {
|
|
35
|
+
data: _propTypes.default.objectOf(_propTypes.default.string),
|
|
36
|
+
heading: _propTypes.default.string,
|
|
37
|
+
footerHeading: _propTypes.default.string,
|
|
38
|
+
// This is so that we can pass a react element as a prop.
|
|
39
|
+
viewMore: _propTypes.default.node
|
|
40
|
+
};
|
|
41
|
+
KeyValueDataView.defaultProps = {
|
|
42
|
+
data: {},
|
|
43
|
+
heading: '',
|
|
44
|
+
footerHeading: '',
|
|
45
|
+
viewMore: null
|
|
46
|
+
};
|
|
36
47
|
var _default = KeyValueDataView;
|
|
37
48
|
exports.default = _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
+
const StageInfo = _styledComponents.default.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: #BFBFBF;\n font-size: 14px;\n font-weight: 400;\n display: flex;\n width: 220px;\n align-items: center;\n padding: 12px 0 12px 34px;\n text-decoration: none;\n /* Add additional styles for the \"inprogress\" class */\n &.inprogress {\n color: #014FC5;\n font-family: Roboto;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px; \n font-weight: 500;\n background: #DEF1FB;\n border-radius: 28px;\n display: flex;\n align-items: center;\n }\n &.success {\n background: #fff;\n color: #0282F0;\n }\n"])));
|
|
13
|
+
const StageIcon = _styledComponents.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n margin: 0 10px 0 0;\n display: flex;\n"])));
|
|
14
|
+
const StageInprocess = _styledComponents.default.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n background: #014FC5;\n border-radius: 50px;\n"])));
|
|
15
|
+
const StageDefault = _styledComponents.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n background: #BFBFBF;\n border-radius: 50px;\n"])));
|
|
16
|
+
const StageSuccess = _styledComponents.default.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n background: green;\n border-radius: 50px;\n"])));
|
|
17
|
+
function LeftPannelTab() {
|
|
18
|
+
const isActive = stage => {
|
|
19
|
+
if (stage === 'first') return true;
|
|
20
|
+
return false;
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement(StageInfo, {
|
|
23
|
+
href: "",
|
|
24
|
+
className: isActive('first') ? 'inprogress' : ''
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(StageIcon, null, /*#__PURE__*/_react.default.createElement(StageInprocess, null)), "Define Plan Parameters")), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement(StageInfo, {
|
|
26
|
+
href: "",
|
|
27
|
+
className: isActive('second') ? 'inprogress' : ''
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(StageIcon, null, /*#__PURE__*/_react.default.createElement(StageDefault, null)), "Select services & products")), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement(StageInfo, {
|
|
29
|
+
href: "",
|
|
30
|
+
className: isActive('third') ? 'inprogress' : ''
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(StageIcon, null, /*#__PURE__*/_react.default.createElement(StageSuccess, null)), "Select services & products")));
|
|
32
|
+
}
|
|
33
|
+
var _default = LeftPannelTab;
|
|
34
|
+
exports.default = _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
9
|
+
require("core-js/modules/es.symbol.description.js");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
14
|
+
var _icons = require("@ant-design/icons");
|
|
15
|
+
var _Typography = _interopRequireWildcard(require("./Typography"));
|
|
16
|
+
var _OACustomButton = _interopRequireDefault(require("./oa-button/OACustomButton"));
|
|
17
|
+
var _templateObject;
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
22
|
+
const StyledNotification = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n \n div {\n display: flex;\n flex-direction: column;\n } \n\n .anticon-close {\n cursor: pointer;\n }\n"])));
|
|
23
|
+
function Notification(_ref) {
|
|
24
|
+
let {
|
|
25
|
+
borderColor,
|
|
26
|
+
disabled,
|
|
27
|
+
onChange,
|
|
28
|
+
typographies
|
|
29
|
+
} = _ref;
|
|
30
|
+
const [api, contextHolder] = _antd.notification.useNotification();
|
|
31
|
+
const openNotification = () => {
|
|
32
|
+
const titleText = 'Notification Title';
|
|
33
|
+
const descriptionText = 'I will never close automatically. This is a purposely very very long description that has many many characters and words.';
|
|
34
|
+
const customNotification = /*#__PURE__*/_react.default.createElement(StyledNotification, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
35
|
+
color: "green-success",
|
|
36
|
+
typography: typographies.title
|
|
37
|
+
}, titleText), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
38
|
+
color: "grey2-disabled",
|
|
39
|
+
typography: typographies.description
|
|
40
|
+
}, descriptionText)), /*#__PURE__*/_react.default.createElement(_icons.CloseOutlined, {
|
|
41
|
+
onClick: api.destroy('string')
|
|
42
|
+
}));
|
|
43
|
+
api.open({
|
|
44
|
+
message: customNotification,
|
|
45
|
+
closeIcon: false,
|
|
46
|
+
// Overriding how the notification looks.
|
|
47
|
+
style: {
|
|
48
|
+
color: 'var(--color-white-background)',
|
|
49
|
+
padding: '8px 16px 8px 16px !important',
|
|
50
|
+
borderRadius: '4px !important',
|
|
51
|
+
borderLeft: '4px solid var(--color-green-success)',
|
|
52
|
+
boxShadow: '0px 2px 8px 0px rgba(0, 0, 0, 0.12)'
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, contextHolder, /*#__PURE__*/_react.default.createElement(_OACustomButton.default, {
|
|
57
|
+
typography: typographies.button,
|
|
58
|
+
text: "Add Notes",
|
|
59
|
+
onClick: openNotification,
|
|
60
|
+
size: "large",
|
|
61
|
+
type: "primary"
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
Notification.propTypes = {
|
|
65
|
+
borderColor: _propTypes.default.string,
|
|
66
|
+
disabled: _propTypes.default.bool,
|
|
67
|
+
onChange: _propTypes.default.func.isRequired,
|
|
68
|
+
typographies: _propTypes.default.shape({
|
|
69
|
+
button: _propTypes.default.oneOf(_Typography.typographyOptions),
|
|
70
|
+
description: _propTypes.default.oneOf(_Typography.typographyOptions),
|
|
71
|
+
title: _propTypes.default.oneOf(_Typography.typographyOptions)
|
|
72
|
+
})
|
|
73
|
+
};
|
|
74
|
+
Notification.defaultProps = {
|
|
75
|
+
borderColor: '#007bff',
|
|
76
|
+
disabled: false,
|
|
77
|
+
typographies: {
|
|
78
|
+
button: 'type-button-500',
|
|
79
|
+
description: 'type-b3-400',
|
|
80
|
+
title: 'type-b2-400'
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var _default = Notification;
|
|
84
|
+
exports.default = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _Typography = _interopRequireWildcard(require("./Typography"));
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function RadioButton(_ref) {
|
|
17
|
+
let {
|
|
18
|
+
disabled,
|
|
19
|
+
onChange,
|
|
20
|
+
size,
|
|
21
|
+
text,
|
|
22
|
+
typography
|
|
23
|
+
} = _ref;
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
25
|
+
disabled: disabled,
|
|
26
|
+
onChange: disabled ? null : onChange,
|
|
27
|
+
size: size,
|
|
28
|
+
type: "radio1"
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
30
|
+
typography: typography
|
|
31
|
+
}, text));
|
|
32
|
+
}
|
|
33
|
+
RadioButton.propTypes = {
|
|
34
|
+
disabled: _propTypes.default.bool,
|
|
35
|
+
onChange: _propTypes.default.func.isRequired,
|
|
36
|
+
size: _propTypes.default.oneOf(['small', 'middle', 'large']),
|
|
37
|
+
text: _propTypes.default.string.isRequired,
|
|
38
|
+
typography: _propTypes.default.oneOf(_Typography.typographyOptions)
|
|
39
|
+
};
|
|
40
|
+
RadioButton.defaultProps = {
|
|
41
|
+
disabled: false,
|
|
42
|
+
size: 'middle',
|
|
43
|
+
typography: 'type-b1-400'
|
|
44
|
+
};
|
|
45
|
+
var _default = RadioButton;
|
|
46
|
+
exports.default = _default;
|
|
@@ -7,45 +7,28 @@ exports.default = void 0;
|
|
|
7
7
|
require("core-js/modules/es.symbol.description.js");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var
|
|
10
|
+
var _styles = require("./styles");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16
16
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
-
|
|
17
|
+
function SpacingScales(_ref) {
|
|
18
18
|
let {
|
|
19
|
-
type
|
|
20
|
-
size,
|
|
21
|
-
text,
|
|
22
|
-
onClick,
|
|
23
|
-
disabled,
|
|
24
|
-
className,
|
|
25
|
-
style
|
|
19
|
+
type
|
|
26
20
|
} = _ref;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement("h1", {
|
|
22
|
+
style: _objectSpread({
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
backgroundColor: 'red'
|
|
27
|
+
}, _styles.spacingScalesStyle[".".concat(type)])
|
|
28
|
+
}, ' `', type, "` on all sides");
|
|
29
|
+
}
|
|
30
|
+
SpacingScales.propTypes = {
|
|
31
|
+
type: _propTypes.default.oneOf(['spacing-4', 'spacing-8', 'spacing-12', 'spacing-16', 'spacing-24', 'spacing-32', 'spacing-40', 'spacing-48', 'spacing-56', 'spacing-64', 'spacing-72', 'spacing-80', 'spacing-96', 'spacing-108']).isRequired
|
|
35
32
|
};
|
|
36
|
-
|
|
37
|
-
type: _propTypes.default.oneOf(['primary', 'secondary', 'default']),
|
|
38
|
-
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
39
|
-
text: _propTypes.default.string.isRequired,
|
|
40
|
-
onClick: _propTypes.default.func,
|
|
41
|
-
disabled: _propTypes.default.bool,
|
|
42
|
-
style: _propTypes.default.object
|
|
43
|
-
};
|
|
44
|
-
CustomButton.defaultProps = {
|
|
45
|
-
type: 'default',
|
|
46
|
-
size: 'medium',
|
|
47
|
-
disabled: false,
|
|
48
|
-
style: {}
|
|
49
|
-
};
|
|
50
|
-
var _default = CustomButton;
|
|
33
|
+
var _default = SpacingScales;
|
|
51
34
|
exports.default = _default;
|