oa-componentbook 0.18.124 → 0.18.126
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/oa-component-header/CustomHeader.js +85 -1
- package/build/components/oa-component-header/styles.js +1 -1
- package/build/global-css/GridLayout.js +1 -1
- package/build/index.js +14 -0
- package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +7 -11
- package/build/widgets/oa-widget-document-upload/styles.js +1 -1
- package/build/widgets/oa-widget-form/CustomFormWidget.js +39 -0
- package/build/widgets/oa-widget-form/styles.js +12 -0
- package/build/widgets/oa-widget-header/CustomHeaderWidget.js +71 -0
- package/build/widgets/oa-widget-header/styles.js +12 -0
- package/package.json +1 -1
- package/build/components/oa-component-header/customClass.css +0 -9
- package/build/images/upload.svg +0 -8
|
@@ -5,8 +5,92 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = HeaderBar;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _ArrowBack = _interopRequireDefault(require("@material-ui/icons/ArrowBack"));
|
|
9
|
+
var _Add = _interopRequireDefault(require("@material-ui/icons/Add"));
|
|
10
|
+
var _VerticalAlignBottom = _interopRequireDefault(require("@material-ui/icons/VerticalAlignBottom"));
|
|
11
|
+
var _Search = _interopRequireDefault(require("@material-ui/icons/Search"));
|
|
8
12
|
var _styles = require("./styles");
|
|
13
|
+
var _MaterialIcon = _interopRequireDefault(require("../oa-component-icons/MaterialIcon"));
|
|
14
|
+
var _CustomButton = _interopRequireDefault(require("../oa-component-button/CustomButton"));
|
|
15
|
+
var _Typography = _interopRequireDefault(require("../oa-component-typography/Typography"));
|
|
16
|
+
var _CustomInput = _interopRequireDefault(require("../oa-component-input/CustomInput"));
|
|
9
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
const noRefCheck = () => {};
|
|
10
19
|
function HeaderBar() {
|
|
11
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_styles.StyleContainer, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
+
className: "customHeader"
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: "flexProp"
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
className: "flexSec"
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
27
|
+
icon: _ArrowBack.default,
|
|
28
|
+
size: 24,
|
|
29
|
+
className: "margin-right-12"
|
|
30
|
+
}), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
31
|
+
color: "primary-content",
|
|
32
|
+
typography: "type-t2-700"
|
|
33
|
+
}, "My Sub Outlets")), /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: "flexSec deskView"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
36
|
+
"data-test": "button",
|
|
37
|
+
iconConfig: {
|
|
38
|
+
icon: /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
39
|
+
icon: _Search.default
|
|
40
|
+
}),
|
|
41
|
+
position: 'left'
|
|
42
|
+
},
|
|
43
|
+
label: "Search",
|
|
44
|
+
onClick: noRefCheck,
|
|
45
|
+
type: "text-only",
|
|
46
|
+
className: "margin-right-24"
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
48
|
+
"data-test": "button",
|
|
49
|
+
iconConfig: {
|
|
50
|
+
icon: /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
51
|
+
icon: _VerticalAlignBottom.default
|
|
52
|
+
}),
|
|
53
|
+
position: 'left'
|
|
54
|
+
},
|
|
55
|
+
label: "Export",
|
|
56
|
+
onClick: noRefCheck,
|
|
57
|
+
type: "text-only",
|
|
58
|
+
className: "margin-right-24"
|
|
59
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
60
|
+
"data-test": "button",
|
|
61
|
+
iconConfig: {
|
|
62
|
+
icon: /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
63
|
+
icon: _Add.default
|
|
64
|
+
}),
|
|
65
|
+
position: 'left'
|
|
66
|
+
},
|
|
67
|
+
label: "Add Sub Outlet",
|
|
68
|
+
onClick: noRefCheck,
|
|
69
|
+
size: "Medium",
|
|
70
|
+
type: "secondary"
|
|
71
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
+
className: "flexSec mobView"
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
74
|
+
color: "primary",
|
|
75
|
+
size: 24,
|
|
76
|
+
className: "margin-right-16",
|
|
77
|
+
icon: _Search.default
|
|
78
|
+
}), /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
79
|
+
color: "primary",
|
|
80
|
+
size: 24,
|
|
81
|
+
className: "margin-right-16",
|
|
82
|
+
icon: _VerticalAlignBottom.default
|
|
83
|
+
}), /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
84
|
+
color: "primary",
|
|
85
|
+
size: 24,
|
|
86
|
+
icon: _Add.default
|
|
87
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
+
className: "headerSearch"
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
90
|
+
icon: _ArrowBack.default,
|
|
91
|
+
size: 24,
|
|
92
|
+
className: "margin-right-12"
|
|
93
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomInput.default, {
|
|
94
|
+
placeholder: "Search by option 1, option 2 ...."
|
|
95
|
+
}))));
|
|
12
96
|
}
|
|
@@ -9,4 +9,4 @@ var _templateObject;
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
11
|
var _default = exports.default = {};
|
|
12
|
-
const StyleContainer = exports.StyleContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.
|
|
12
|
+
const StyleContainer = exports.StyleContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.flexProp{display:flex; flex-direction: row; align-items: center; justify-content: space-between; width:100%;}\n.flexSec{display:flex; flex-direction: row; justify-content: flex-start;}\n.flexSec svg{cursor:pointer;}\n.mobView{display:none;}\n.deskView{display:flex;}\n.headerSearch {display: flex; width:100%; flex-direction: row; justify-content: flex-start; align-items: center; background-color: var(--color-primary-background); position: absolute; padding: 6px 0; left: 0; right: 0;}\n.customHeader{min-height: 60px; position: relative; display: flex; align-items: center; justify-content: space-between;}\n\n@media only screen and (max-width: 600px) {\n.mobView{display:flex;}\n.deskView{display:none;}\n.headerSearch {align-items: flex-start; flex-direction: column; justify-content: flex-start; padding: 18px 0; }\n.headerSearch input{margin:18px 0 0 0;} \n\n}\n\n\n"])));
|
|
@@ -21,5 +21,5 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
21
21
|
// TODO: Figure out a way to make this work with storybook.
|
|
22
22
|
// Can be used to wrap the entire application, to make these styles available to every component
|
|
23
23
|
|
|
24
|
-
const GridLayout = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.container {\n max-width: 1154px;\n margin: 0 auto;\n padding: 0 16px;\n}\n\n.container-fluid {\n width: 100%;\n padding: 0 16px;\n}\n\n.row {\n display: flex;\n flex-direction: column;\n}\n\n.gutter {\n padding: 0 24px 0 0;\n}\n\n.row::after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.col-xs-1 {\n width: 8.33333%;\n}\n\n.col-xs-2 {\n width: 16.66667%;\n}\n\n.col-xs-3 {\n width: 25%;\n}\n\n.col-xs-4 {\n width: 33.33333%;\n}\n\n.col-xs-5 {\n width: 41.66667%;\n}\n\n.col-xs-6 {\n width: 50%;\n}\n\n.col-xs-7 {\n width: 58.33333%;\n}\n\n.col-xs-8 {\n width: 66.66667%;\n}\n\n.col-xs-9 {\n width: 75%;\n}\n\n.col-xs-10 {\n width: 83.33333%;\n}\n\n.col-xs-11 {\n width: 91.66667%;\n}\n\n.col-xs-12 {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .row {\n flex-direction: row;\n }\n\n .col-sm-1 {\n width: 8.33333%;\n }\n\n .col-sm-2 {\n width: 16.66667%;\n }\n\n .col-sm-3 {\n width: 25%;\n }\n\n .col-sm-4 {\n width: 33.33333%;\n }\n\n .col-sm-5 {\n width: 41.66667%;\n }\n\n .col-sm-6 {\n width: 50%;\n }\n\n .col-sm-7 {\n width: 58.33333%;\n }\n\n .col-sm-8 {\n width: 66.66667%;\n }\n\n .col-sm-9 {\n width: 75%;\n }\n\n .col-sm-10 {\n width: 83.33333%;\n }\n\n .col-sm-11 {\n width: 91.66667%;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md-1 {\n width: 8.33333%;\n }\n\n .col-md-2 {\n width: 16.66667%;\n }\n\n .col-md-3 {\n width: 25%;\n }\n\n .col-md-4 {\n width: 33.33333%;\n float: left;\n }\n\n .col-md-5 {\n width: 41.66667%;\n }\n\n .col-md-6 {\n width: 50%;\n }\n\n .col-md-7 {\n width: 58.33333%;\n }\n\n .col-md-8 {\n width: 66.66667%;\n }\n\n .col-md-9 {\n width: 75%;\n }\n\n .col-md-10 {\n width: 83.33333%;\n }\n\n .col-md-11 {\n width: 91.66667%;\n }\n\n .col-md-12 {\n width: 100%;\n }\n}\n\n/* Large Devices (desktops) */\n@media (min-width: 992px) {\n .gutter {\n padding: 0 24px 0 0;\n }\n\n .col-lg-1 {\n width: 8.33333%;\n }\n\n .col-lg-2 {\n width: 16.66667%;\n }\n\n .col-lg-3 {\n width: 25%;\n }\n\n .col-lg-4 {\n width: 33.33333%;\n }\n\n .col-lg-5 {\n width: 41.66667%;\n }\n\n .col-lg-6 {\n width: 50%;\n }\n\n .col-lg-7 {\n width: 58.33333%;\n }\n\n .col-lg-8 {\n width: 66.66667%;\n }\n\n .col-lg-9 {\n width: 75%;\n }\n\n .col-lg-10 {\n width: 83.33333%;\n }\n\n .col-lg-11 {\n width: 91.66667%;\n }\n\n .col-lg-12 {\n width: 100%;\n }\n}\n.ant-modal .ant-modal-content {\n padding: 24px 24px 32px;\n border-radius: 12px;\n }\n @media (max-width: 372px) {\n .ant-picker-date-panel .ant-picker-body{\n padding: 8px
|
|
24
|
+
const GridLayout = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.container {\n max-width: 1154px;\n margin: 0 auto;\n padding: 0 16px;\n}\n\n.container-fluid {\n width: 100%;\n padding: 0 16px;\n}\n\n.row {\n display: flex;\n flex-direction: column;\n}\n\n.gutter {\n padding: 0 24px 0 0;\n}\n\n.row::after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.col-xs-1 {\n width: 8.33333%;\n}\n\n.col-xs-2 {\n width: 16.66667%;\n}\n\n.col-xs-3 {\n width: 25%;\n}\n\n.col-xs-4 {\n width: 33.33333%;\n}\n\n.col-xs-5 {\n width: 41.66667%;\n}\n\n.col-xs-6 {\n width: 50%;\n}\n\n.col-xs-7 {\n width: 58.33333%;\n}\n\n.col-xs-8 {\n width: 66.66667%;\n}\n\n.col-xs-9 {\n width: 75%;\n}\n\n.col-xs-10 {\n width: 83.33333%;\n}\n\n.col-xs-11 {\n width: 91.66667%;\n}\n\n.col-xs-12 {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .row {\n flex-direction: row;\n }\n\n .col-sm-1 {\n width: 8.33333%;\n }\n\n .col-sm-2 {\n width: 16.66667%;\n }\n\n .col-sm-3 {\n width: 25%;\n }\n\n .col-sm-4 {\n width: 33.33333%;\n }\n\n .col-sm-5 {\n width: 41.66667%;\n }\n\n .col-sm-6 {\n width: 50%;\n }\n\n .col-sm-7 {\n width: 58.33333%;\n }\n\n .col-sm-8 {\n width: 66.66667%;\n }\n\n .col-sm-9 {\n width: 75%;\n }\n\n .col-sm-10 {\n width: 83.33333%;\n }\n\n .col-sm-11 {\n width: 91.66667%;\n }\n\n .col-sm-12 {\n width: 100%;\n }\n}\n\n@media (min-width: 768px) {\n .col-md-1 {\n width: 8.33333%;\n }\n\n .col-md-2 {\n width: 16.66667%;\n }\n\n .col-md-3 {\n width: 25%;\n }\n\n .col-md-4 {\n width: 33.33333%;\n float: left;\n }\n\n .col-md-5 {\n width: 41.66667%;\n }\n\n .col-md-6 {\n width: 50%;\n }\n\n .col-md-7 {\n width: 58.33333%;\n }\n\n .col-md-8 {\n width: 66.66667%;\n }\n\n .col-md-9 {\n width: 75%;\n }\n\n .col-md-10 {\n width: 83.33333%;\n }\n\n .col-md-11 {\n width: 91.66667%;\n }\n\n .col-md-12 {\n width: 100%;\n }\n}\n\n/* Large Devices (desktops) */\n@media (min-width: 992px) {\n .gutter {\n padding: 0 24px 0 0;\n }\n\n .col-lg-1 {\n width: 8.33333%;\n }\n\n .col-lg-2 {\n width: 16.66667%;\n }\n\n .col-lg-3 {\n width: 25%;\n }\n\n .col-lg-4 {\n width: 33.33333%;\n }\n\n .col-lg-5 {\n width: 41.66667%;\n }\n\n .col-lg-6 {\n width: 50%;\n }\n\n .col-lg-7 {\n width: 58.33333%;\n }\n\n .col-lg-8 {\n width: 66.66667%;\n }\n\n .col-lg-9 {\n width: 75%;\n }\n\n .col-lg-10 {\n width: 83.33333%;\n }\n\n .col-lg-11 {\n width: 91.66667%;\n }\n\n .col-lg-12 {\n width: 100%;\n }\n}\n.ant-modal .ant-modal-content {\n padding: 24px 24px 32px;\n border-radius: 12px;\n }\n @media (max-width: 372px) {\n .ant-picker-date-panel .ant-picker-body{\n padding: 8px;\n }\n }\n@media (max-width: 600px) {\n .ant-picker-dropdown .ant-picker-date-panel{\n width: 100%;\n }\n .ant-picker-dropdown .ant-picker-time-panel-column {\n overflow-y: auto;\n}\n.ant-picker-dropdown .ant-picker-time-panel-column::-webkit-scrollbar {\n width: 2px;\n }\n\n .ant-modal-root .ant-modal-wrap {\n position: fixed;\n overflow: inherit;\n }\n .ant-modal-root .ant-modal-centered .ant-modal{\n vertical-align: middle;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100% !important;\n max-width: 100%!important;\n // transform-origin: bottom !important;\n //animation-duration: 0s !important;\n animation-name: slideUp;\n animation-duration: 0.2s;\n transition: .3s ease-in-out;\n animation-timing-function: ease-in;\n }\n @keyframes slideUp {\n 0%,\n 50% {\n transform: translateY(100%);\n opacity: 0;\n }\n \n 60%,\n 100% {\n transform: translateY(0);\n opacity: 1;\n \n }\n }\n .ant-modal .ant-modal-content {\n bottom: -8px;\n left: 0;\n position: absolute;\n right: 0;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n .ant-modal .ant-modal-body{\n max-height: calc(90vh - 126px);\n overflow: auto;\n }\n}\n@media (min-width: 1200px) {\n .gutter {\n padding: 0 32px 0 0;\n }\n\n .col-xl-1 {\n width: 8.33333%;\n }\n \n .col-xl-2 {\n width: 16.66667%;\n }\n\n .col-xl-3 {\n width: 25%;\n }\n\n .col-xl-4 {\n width: 33.33333%;\n }\n\n .col-xl-5 {\n width: 41.66667%;\n }\n\n .col-xl-6 {\n width: 50%;\n }\n\n .col-xl-7 {\n width: 58.33333%;\n }\n\n .col-xl-8 {\n width: 66.66667%;\n }\n\n .col-xl-9 {\n width: 75%;\n }\n\n .col-xl-10 {\n width: 83.33333%;\n }\n\n .col-xl-11 {\n width: 91.66667%;\n }\n\n .col-xl-12 {\n width: 100%;\n }\n \n}\n.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{\n padding: 12px 24px;\n}\n.ant-dropdown-menu{\n min-width: 256px;\n top: 4px;\n}\n.ant-space-item span{\n line-height: 0 !important;\n display: flex;\n}\n\n"])));
|
|
25
25
|
var _default = exports.default = GridLayout;
|
package/build/index.js
CHANGED
|
@@ -131,6 +131,18 @@ Object.defineProperty(exports, "CustomFormItem", {
|
|
|
131
131
|
return _CustomFormItem.default;
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
+
Object.defineProperty(exports, "CustomFormWidget", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function get() {
|
|
137
|
+
return _CustomFormWidget.default;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "CustomHeaderWidget", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function get() {
|
|
143
|
+
return _CustomHeaderWidget.default;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
134
146
|
Object.defineProperty(exports, "CustomInfo", {
|
|
135
147
|
enumerable: true,
|
|
136
148
|
get: function get() {
|
|
@@ -485,6 +497,8 @@ var _MembershipCard = _interopRequireDefault(require("./widgets/oa-widget-member
|
|
|
485
497
|
var _MembershipDetailCard = _interopRequireDefault(require("./widgets/oa-widget-detailcard/MembershipDetailCard"));
|
|
486
498
|
var _ServiceCard = _interopRequireDefault(require("./widgets/oa-widget-servicecard/ServiceCard"));
|
|
487
499
|
var _CustomProgressBar = _interopRequireDefault(require("./components/oa-component-progress-bar/CustomProgressBar"));
|
|
500
|
+
var _CustomHeaderWidget = _interopRequireDefault(require("./widgets/oa-widget-header/CustomHeaderWidget"));
|
|
501
|
+
var _CustomFormWidget = _interopRequireDefault(require("./widgets/oa-widget-form/CustomFormWidget"));
|
|
488
502
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
489
503
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
490
504
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -20,8 +20,6 @@ var _styles = require("./styles");
|
|
|
20
20
|
var _CustomModal = _interopRequireDefault(require("../../components/oa-component-modal/CustomModal"));
|
|
21
21
|
var _CustomLoader = _interopRequireDefault(require("../../components/oa-component-loader/CustomLoader"));
|
|
22
22
|
var _PdfSampleImage = _interopRequireDefault(require("../../images/PdfSampleImage.png"));
|
|
23
|
-
var _upload = _interopRequireDefault(require("../../images/upload.svg"));
|
|
24
|
-
var _CustomIcon = _interopRequireDefault(require("../../components/oa-component-icons/CustomIcon"));
|
|
25
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -125,11 +123,11 @@ function DocumentUpload(props) {
|
|
|
125
123
|
background: 'none'
|
|
126
124
|
},
|
|
127
125
|
type: "button"
|
|
128
|
-
}, loading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
126
|
+
}, loading ? /*#__PURE__*/_react.default.createElement(_icons.LoadingOutlined, null) : /*#__PURE__*/_react.default.createElement(_icons.UploadOutlined, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
+
style: {
|
|
128
|
+
marginTop: 8
|
|
129
|
+
}
|
|
130
|
+
}, "Upload"));
|
|
133
131
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.MainStyleSec, null, /*#__PURE__*/_react.default.createElement(_styles.StyledSection, null, (heading || subText) && /*#__PURE__*/_react.default.createElement("div", {
|
|
134
132
|
className: "uploadSecPad"
|
|
135
133
|
}, heading && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
@@ -137,15 +135,13 @@ function DocumentUpload(props) {
|
|
|
137
135
|
className: "type-t2-700"
|
|
138
136
|
}, heading, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
139
137
|
color: "negative"
|
|
140
|
-
}, "
|
|
138
|
+
}, "*"))), subText && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
141
139
|
color: "secondary-content",
|
|
142
140
|
className: "type-b2-400"
|
|
143
141
|
}, subText)), infoText && /*#__PURE__*/_react.default.createElement(_CustomInfo.default, {
|
|
144
142
|
color: "background-warning",
|
|
145
143
|
description: infoText
|
|
146
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
-
className: "uploadDiv"
|
|
148
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
|
|
144
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
|
|
149
145
|
theme: {
|
|
150
146
|
token: {
|
|
151
147
|
colorBorder: _ColorVariablesMap.default['--color-primary'],
|
|
@@ -9,5 +9,5 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _templateObject, _templateObject2;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
const MainStyleSec = exports.MainStyleSec = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.
|
|
12
|
+
const MainStyleSec = exports.MainStyleSec = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.uploadSecPad div{\n padding: 0 0 8px;\n}\n.anticon-upload{\n font-size: 24px;\n}\n.uploadSecPad{\n width: 100%;\n}\n.uploadSecPad div:last-child{\n padding: 0;\n}\n display: flex;\n flex-direction: column;\n gap: 24px;\n .ant-upload-list-item-done{\n border: 1px solid var(--color-divider) !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item:hover::before{\n opacity: 1 !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item:hover::before ant-upload-list-item-actions > a\n {\n background: red !important;\n }\n .ant-upload-list-item-actions{\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 16px;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item::before{\n background: transparent;\n opacity: 1;\n }\n.ant-upload-list-item-actions button{\n background: #212121;\n border-radius: 50px;\n height: 24px !important;\n display: flex;\n align-items: center;\n}\n.ant-btn-text:not(:disabled):not(.ant-btn-disabled):hover{\n background: #212121;\n}\n .ant-upload-list-item-actions a{\n background: #212121;\n border-radius: 50px;\n height: 24px;\n display: flex;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions,.ant-upload-wrapper .ant-upload-list .ant-upload-list-item .ant-upload-list-item-actions .ant-upload-list-item-action {\n opacity: 1;\n }\n .ant-upload-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item{\n opacity: 1 !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{\n color: #fff;\n }\n"])));
|
|
13
13
|
const StyledSection = exports.StyledSection = _styledComponents.default.section(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n gap: 16px;\n justify-content: space-between;\n h2{\n margin: 0;\n }\n .ant-upload-select, .ant-upload-wrapper, .ant-upload-wrapper, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{\n width: 96px;\n height: 96px;\n margin: 0;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select{\n width: 96px !important;\n height: 96px !important;\n margin: 0;\n }\n @media only screen and (max-width: 600px) {\n .ant-upload-select, .ant-upload-wrapper, .ant-upload-wrapper, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{\n width: 64px;\n height: 64px;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select{\n width: 64px !important;\n height: 64px !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{\n font-size:12px;\n margin: 0 !important;\n padding: 0 !important;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .ant-upload-list-item-actions button {\n height: 16px!important;\n width: 16px !important;\n justify-content: center;\n }\n .ant-upload-list-item-actions a {\n height: 16px;\n width: 16px !important;\n align-items: center;\n justify-content: center;\n}\n .ant-upload-list-item-actions {\n gap: 8px;\n }\n .ant-upload button span + div{\n display: none;\n }\n }\n"])));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = CustomFormWidget;
|
|
7
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
var _utils = require("../../utils");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function CustomFormWidget(_ref) {
|
|
14
|
+
var _Form$useForm, _Form$useForm2, _formItem$map;
|
|
15
|
+
let {
|
|
16
|
+
handleFormSubmit,
|
|
17
|
+
formItem
|
|
18
|
+
} = _ref;
|
|
19
|
+
const [form] = (_Form$useForm = _antd.Form === null || _antd.Form === void 0 || (_Form$useForm2 = _antd.Form.useForm) === null || _Form$useForm2 === void 0 ? void 0 : _Form$useForm2.call(_antd.Form)) !== null && _Form$useForm !== void 0 ? _Form$useForm : [];
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Form, {
|
|
21
|
+
form: form,
|
|
22
|
+
onFinish: handleFormSubmit
|
|
23
|
+
}, formItem === null || formItem === void 0 || (_formItem$map = formItem.map) === null || _formItem$map === void 0 ? void 0 : _formItem$map.call(formItem, item => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
24
|
+
key: (0, _utils.getUUID)()
|
|
25
|
+
}, item.label && /*#__PURE__*/_react.default.createElement(_antd.Typography, null, item.label), /*#__PURE__*/_react.default.createElement(_antd.Form.Item, item.formItem, item.child), item.secondaryChild)));
|
|
26
|
+
}
|
|
27
|
+
CustomFormWidget.propTypes = {
|
|
28
|
+
handleFormSubmit: _propTypes.default.func,
|
|
29
|
+
formItem: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
30
|
+
label: _propTypes.default.string,
|
|
31
|
+
formItem: _propTypes.default.object,
|
|
32
|
+
child: _propTypes.default.node,
|
|
33
|
+
secondaryChild: _propTypes.default.node
|
|
34
|
+
}))
|
|
35
|
+
};
|
|
36
|
+
CustomFormWidget.defaultProps = {
|
|
37
|
+
handleFormSubmit: () => {},
|
|
38
|
+
formItem: []
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.StyleContainer = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
+
var _default = exports.default = {};
|
|
12
|
+
const StyleContainer = exports.StyleContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\nheader{background: var(--color-primary-background); box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.14);}\n.flexProp{display:flex; flex-direction: row; align-items: center; justify-content: space-between; min-height:60px;}\n.flexSec{display:flex; flex-direction: row; justify-content: flex-start;}\n.flexSec svg{cursor:pointer;}\n.mobView{display:none;}\n.deskView{display:flex;}\n\n@media only screen and (max-width: 600px) {\n.mobView{display:flex;}\n.deskView{display:none;}\n}\n\n\n"])));
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = CustomHeaderWidget;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _ArrowBack = _interopRequireDefault(require("@material-ui/icons/ArrowBack"));
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
var _MaterialIcon = _interopRequireDefault(require("../../components/oa-component-icons/MaterialIcon"));
|
|
12
|
+
var _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
|
|
13
|
+
var _utils = require("../../utils");
|
|
14
|
+
var _CustomInput = _interopRequireDefault(require("../../components/oa-component-input/CustomInput"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function CustomHeaderWidget(_ref) {
|
|
17
|
+
let {
|
|
18
|
+
heading,
|
|
19
|
+
showHeading,
|
|
20
|
+
leftIconCmp,
|
|
21
|
+
rightIconCmp,
|
|
22
|
+
showSearch,
|
|
23
|
+
searchProps,
|
|
24
|
+
searchBackArrowHandler
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_styles.StyleContainer, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
className: "customHeader"
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
+
className: "flexProp"
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
+
className: "flexSec"
|
|
32
|
+
}, leftIconCmp.map(iconCmp => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
33
|
+
key: (0, _utils.getUUID)()
|
|
34
|
+
}, iconCmp)), showHeading && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
35
|
+
color: "primary-content",
|
|
36
|
+
typography: "type-t2-700"
|
|
37
|
+
}, heading)), /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: "flexSec deskView"
|
|
39
|
+
}, rightIconCmp.map(iconCmp => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
40
|
+
key: (0, _utils.getUUID)()
|
|
41
|
+
}, iconCmp))), /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
+
className: "flexSec mobView"
|
|
43
|
+
}, rightIconCmp.map(iconCmp => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
44
|
+
key: (0, _utils.getUUID)()
|
|
45
|
+
}, iconCmp)))), showSearch && /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
className: "headerSearch"
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
48
|
+
icon: _ArrowBack.default,
|
|
49
|
+
size: 24,
|
|
50
|
+
className: "margin-right-12",
|
|
51
|
+
onClick: searchBackArrowHandler
|
|
52
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomInput.default, searchProps))));
|
|
53
|
+
}
|
|
54
|
+
CustomHeaderWidget.propTypes = {
|
|
55
|
+
heading: _propTypes.default.string,
|
|
56
|
+
showHeading: _propTypes.default.bool,
|
|
57
|
+
leftIconCmp: _propTypes.default.arrayOf(_propTypes.default.node),
|
|
58
|
+
rightIconCmp: _propTypes.default.arrayOf(_propTypes.default.node),
|
|
59
|
+
showSearch: _propTypes.default.bool,
|
|
60
|
+
searchProps: _propTypes.default.any,
|
|
61
|
+
searchBackArrowHandler: _propTypes.default.func
|
|
62
|
+
};
|
|
63
|
+
CustomHeaderWidget.defaultProps = {
|
|
64
|
+
heading: 'My sub outlet',
|
|
65
|
+
showHeading: true,
|
|
66
|
+
leftIconCmp: [],
|
|
67
|
+
rightIconCmp: [],
|
|
68
|
+
showSearch: false,
|
|
69
|
+
searchProps: {},
|
|
70
|
+
searchBackArrowHandler: () => {}
|
|
71
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.StyleContainer = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
+
var _default = exports.default = {};
|
|
12
|
+
const StyleContainer = exports.StyleContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.flexProp{display:flex; flex-direction: row; align-items: center; justify-content: space-between; width:100%;}\n.flexSec{display:flex; flex-direction: row; justify-content: flex-start;}\n.flexSec svg{cursor:pointer;}\n.mobView{display:none;}\n.deskView{display:flex;}\n.headerSearch {display: flex; width:100%; flex-direction: row; justify-content: flex-start; align-items: center; background-color: var(--color-primary-background); position: absolute; padding: 6px 0; left: 0; right: 0;}\n.customHeader{min-height: 60px; position: relative; display: flex; align-items: center; justify-content: space-between;}\n\n@media only screen and (max-width: 600px) {\n.mobView{display:flex;}\n.deskView{display:none;}\n.headerSearch {align-items: flex-start; flex-direction: column; justify-content: flex-start; padding: 18px 0;top:0; }\n.headerSearch input{margin:18px 0 0 0;} \n\n}\n\n\n"])));
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.primaryDropdownClass .ant-dropdown-menu {
|
|
2
|
-
padding: 8px 0;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
min-width: 186px;
|
|
5
|
-
}
|
|
6
|
-
.primaryDropdownClass .ant-dropdown-menu .ant-dropdown-menu-item {
|
|
7
|
-
padding: 12px;
|
|
8
|
-
}
|
|
9
|
-
.primaryDropdownClass .ant-dropdown-menu .ant-dropdown-menu-item.ant-dropdown-menu-item-danger:not(.ant-dropdown-menu-item-disabled):hover{ background-color:#FBE5DF; color: #DE350B;}
|
package/build/images/upload.svg
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="mask0_1930_6853" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
3
|
-
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<g mask="url(#mask0_1930_6853)">
|
|
6
|
-
<path d="M5.94233 19.5C5.55017 19.5 5.21175 19.3576 4.92705 19.0729C4.64235 18.7882 4.5 18.4498 4.5 18.0577V15.4923C4.5 15.3313 4.55472 15.1965 4.66417 15.0879C4.77362 14.9793 4.90952 14.925 5.07185 14.925C5.2342 14.925 5.36858 14.9793 5.475 15.0879C5.5814 15.1965 5.6346 15.3313 5.6346 15.4923V18.0577C5.6346 18.1346 5.66665 18.2051 5.73075 18.2692C5.79487 18.3333 5.86539 18.3654 5.94233 18.3654H18.0576C18.1346 18.3654 18.2051 18.3333 18.2692 18.2692C18.3333 18.2051 18.3654 18.1346 18.3654 18.0577V15.4923C18.3654 15.3313 18.4201 15.1965 18.5295 15.0879C18.639 14.9793 18.7749 14.925 18.9372 14.925C19.0996 14.925 19.2339 14.9793 19.3403 15.0879C19.4467 15.1965 19.5 15.3313 19.5 15.4923V18.0577C19.5 18.4498 19.3576 18.7882 19.0729 19.0729C18.7882 19.3576 18.4498 19.5 18.0576 19.5H5.94233ZM11.4327 6.69807L9.07308 9.0577C8.96488 9.16923 8.83398 9.22243 8.6804 9.2173C8.5268 9.21218 8.38777 9.15385 8.2633 9.0423C8.15242 8.9232 8.09844 8.78541 8.10138 8.62895C8.10433 8.47248 8.16157 8.33848 8.2731 8.22695L11.4958 5.0043C11.5717 4.9284 11.6512 4.87217 11.7344 4.83562C11.8176 4.79909 11.9077 4.78082 12.0046 4.78082C12.1015 4.78082 12.19 4.79909 12.2702 4.83562C12.3503 4.87217 12.4282 4.92827 12.5038 5.0039L15.7423 8.24232C15.8538 8.35386 15.9112 8.48558 15.9144 8.6375C15.9176 8.78943 15.8634 8.92436 15.752 9.0423C15.6276 9.15385 15.4884 9.20962 15.3346 9.20962C15.1807 9.20962 15.0448 9.15065 14.9269 9.0327L12.5673 6.69807V15.3481C12.5673 15.5091 12.5126 15.644 12.4031 15.7525C12.2937 15.8611 12.1578 15.9154 11.9954 15.9154C11.8331 15.9154 11.6987 15.8611 11.5923 15.7525C11.4859 15.644 11.4327 15.5091 11.4327 15.3481V6.69807Z" fill="#014FC5"/>
|
|
7
|
-
</g>
|
|
8
|
-
</svg>
|