opus-toolkit-components 1.3.1 → 1.3.2
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.
|
@@ -382,28 +382,6 @@ if (true) {
|
|
|
382
382
|
{}
|
|
383
383
|
|
|
384
384
|
|
|
385
|
-
/***/ }),
|
|
386
|
-
|
|
387
|
-
/***/ 494:
|
|
388
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
389
|
-
|
|
390
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
391
|
-
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
392
|
-
/* harmony export */ });
|
|
393
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
|
|
394
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
395
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
396
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
397
|
-
// Imports
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
401
|
-
// Module
|
|
402
|
-
___CSS_LOADER_EXPORT___.push([module.id, `table{width:100%}table thead th:first-of-type{border-top-left-radius:8px}table thead th:last-of-type{border-top-right-radius:8px}table tr:last-of-type td:first-of-type{border-bottom-left-radius:8px}table tr:last-of-type td:last-of-type{border-bottom-right-radius:8px}@media(max-width: 640px){.responsive-table-wrapper td::before{content:attr(data-label);display:block;font-weight:600;text-transform:uppercase;margin-bottom:.25rem;color:var(--color-text-strong)}button{width:100%}.responsive-table-wrapper tr{display:block}.responsive-table-wrapper td{display:block}.responsive-table-wrapper thead{display:none}}`, "",{"version":3,"sources":["webpack://./src/components/Tables/table.scss"],"names":[],"mappings":"AAAA,MAuBI,UAAA,CApBQ,6BACI,0BAAA,CAEJ,4BACI,2BAAA,CAOA,uCACI,6BAAA,CAEJ,sCACI,8BAAA,CAQpB,yBACI,qCACE,wBAAA,CACA,aAAA,CACA,eAAA,CACA,wBAAA,CACA,oBAAA,CACA,8BAAA,CAEF,OACI,UAAA,CAEJ,6BACE,aAAA,CAGF,6BACE,aAAA,CAGF,gCACE,YAAA,CAAA","sourcesContent":["table {\r\n thead {\r\n th {\r\n &:first-of-type {\r\n border-top-left-radius: 8px;\r\n }\r\n &:last-of-type {\r\n border-top-right-radius: 8px;\r\n }\r\n }\r\n }\r\n tr {\r\n &:last-of-type {\r\n td {\r\n &:first-of-type {\r\n border-bottom-left-radius: 8px;\r\n }\r\n &:last-of-type {\r\n border-bottom-right-radius: 8px;\r\n }\r\n }\r\n } \r\n }\r\n width: 100%; \r\n}\r\n\r\n@media (max-width: 640px) {\r\n .responsive-table-wrapper td::before {\r\n content: attr(data-label);\r\n display: block;\r\n font-weight: 600;\r\n text-transform: uppercase;\r\n margin-bottom: 0.25rem;\r\n color: var(--color-text-strong);\r\n }\r\n button {\r\n width:100%;\r\n }\r\n .responsive-table-wrapper tr {\r\n display: block;\r\n }\r\n \r\n .responsive-table-wrapper td {\r\n display: block;\r\n }\r\n \r\n .responsive-table-wrapper thead {\r\n display: none;\r\n }\r\n }"],"sourceRoot":""}]);
|
|
403
|
-
// Exports
|
|
404
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
405
|
-
|
|
406
|
-
|
|
407
385
|
/***/ }),
|
|
408
386
|
|
|
409
387
|
/***/ 514:
|
|
@@ -427,6 +405,30 @@ function insertStyleElement(options) {
|
|
|
427
405
|
}
|
|
428
406
|
module.exports = insertStyleElement;
|
|
429
407
|
|
|
408
|
+
/***/ }),
|
|
409
|
+
|
|
410
|
+
/***/ 601:
|
|
411
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
412
|
+
|
|
413
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
414
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
415
|
+
/* harmony export */ });
|
|
416
|
+
/* unused harmony export wrapper */
|
|
417
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
|
|
418
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
419
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
420
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
421
|
+
// Imports
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
425
|
+
// Module
|
|
426
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.ZEJeKqDMXwlCjQ6aN7ER{width:100%}.ZEJeKqDMXwlCjQ6aN7ER table{width:100%}.ZEJeKqDMXwlCjQ6aN7ER table thead th:first-of-type{border-top-left-radius:8px}.ZEJeKqDMXwlCjQ6aN7ER table thead th:last-of-type{border-top-right-radius:8px}.ZEJeKqDMXwlCjQ6aN7ER table tbody tr:last-of-type td:first-of-type{border-bottom-left-radius:8px}.ZEJeKqDMXwlCjQ6aN7ER table tbody tr:last-of-type td:last-of-type{border-bottom-right-radius:8px}@media(max-width: 640px){.ZEJeKqDMXwlCjQ6aN7ER td::before{content:attr(data-label);display:block;font-weight:600;text-transform:uppercase;margin-bottom:.25rem;color:var(--color-text-strong)}.ZEJeKqDMXwlCjQ6aN7ER tr{display:block}.ZEJeKqDMXwlCjQ6aN7ER td{display:block}.ZEJeKqDMXwlCjQ6aN7ER thead{display:none}.ZEJeKqDMXwlCjQ6aN7ER button{width:100%}}`, "",{"version":3,"sources":["webpack://./src/components/Tables/table.module.scss"],"names":[],"mappings":"AAAA,sBACE,UAAA,CAEA,4BACE,UAAA,CAII,mDACE,0BAAA,CAGF,kDACE,2BAAA,CASE,mEACE,6BAAA,CAGF,kEACE,8BAAA,CAQZ,yBACE,iCACE,wBAAA,CACA,aAAA,CACA,eAAA,CACA,wBAAA,CACA,oBAAA,CACA,8BAAA,CAGF,yBACE,aAAA,CAGF,yBACE,aAAA,CAGF,4BACE,YAAA,CAGF,6BACE,UAAA,CAAA","sourcesContent":[".wrapper {\r\n width: 100%;\r\n\r\n table {\r\n width: 100%;\r\n\r\n thead {\r\n th {\r\n &:first-of-type {\r\n border-top-left-radius: 8px;\r\n }\r\n\r\n &:last-of-type {\r\n border-top-right-radius: 8px;\r\n }\r\n }\r\n }\r\n\r\n tbody {\r\n tr {\r\n &:last-of-type {\r\n td {\r\n &:first-of-type {\r\n border-bottom-left-radius: 8px;\r\n }\r\n\r\n &:last-of-type {\r\n border-bottom-right-radius: 8px;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n @media (max-width: 640px) {\r\n td::before {\r\n content: attr(data-label);\r\n display: block;\r\n font-weight: 600;\r\n text-transform: uppercase;\r\n margin-bottom: 0.25rem;\r\n color: var(--color-text-strong);\r\n }\r\n\r\n tr {\r\n display: block;\r\n }\r\n\r\n td {\r\n display: block;\r\n }\r\n\r\n thead {\r\n display: none;\r\n }\r\n\r\n button {\r\n width: 100%;\r\n }\r\n }\r\n}"],"sourceRoot":""}]);
|
|
427
|
+
// Exports
|
|
428
|
+
var wrapper = (/* unused pure expression or super */ null && (`ZEJeKqDMXwlCjQ6aN7ER`));
|
|
429
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
430
|
+
|
|
431
|
+
|
|
430
432
|
/***/ }),
|
|
431
433
|
|
|
432
434
|
/***/ 659:
|
|
@@ -4245,9 +4247,9 @@ function Checkbox(_ref) {
|
|
|
4245
4247
|
className: "text-[--color-util-red] mt-1"
|
|
4246
4248
|
}, errorMessage));
|
|
4247
4249
|
}
|
|
4248
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Tables/table.scss
|
|
4249
|
-
var
|
|
4250
|
-
;// ./src/components/Tables/table.scss
|
|
4250
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/Tables/table.module.scss
|
|
4251
|
+
var table_module = __webpack_require__(601);
|
|
4252
|
+
;// ./src/components/Tables/table.module.scss
|
|
4251
4253
|
|
|
4252
4254
|
|
|
4253
4255
|
|
|
@@ -4259,20 +4261,20 @@ var table = __webpack_require__(494);
|
|
|
4259
4261
|
|
|
4260
4262
|
|
|
4261
4263
|
|
|
4262
|
-
var
|
|
4264
|
+
var table_module_options = {};
|
|
4263
4265
|
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4266
|
+
table_module_options.styleTagTransform = (styleTagTransform_default());
|
|
4267
|
+
table_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
4268
|
+
table_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
4269
|
+
table_module_options.domAPI = (styleDomAPI_default());
|
|
4270
|
+
table_module_options.insertStyleElement = (insertStyleElement_default());
|
|
4269
4271
|
|
|
4270
|
-
var
|
|
4272
|
+
var table_module_update = injectStylesIntoStyleTag_default()(table_module/* default */.A, table_module_options);
|
|
4271
4273
|
|
|
4272
4274
|
|
|
4273
4275
|
|
|
4274
4276
|
|
|
4275
|
-
/* harmony default export */ const
|
|
4277
|
+
/* harmony default export */ const Tables_table_module = (table_module/* default */.A && table_module/* default */.A.locals ? table_module/* default */.A.locals : undefined);
|
|
4276
4278
|
|
|
4277
4279
|
;// ./src/components/Tables/Table.js
|
|
4278
4280
|
|
|
@@ -4289,24 +4291,24 @@ function Table(_ref) {
|
|
|
4289
4291
|
rowKeyExtractor = (row, index) => index
|
|
4290
4292
|
} = _ref;
|
|
4291
4293
|
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
4292
|
-
className: "
|
|
4294
|
+
className: "".concat(Tables_table_module.wrapper, " w-full ").concat(className)
|
|
4293
4295
|
}, /*#__PURE__*/external_react_default().createElement("table", {
|
|
4294
|
-
className: "min-w-full table-auto text-left border-collapse"
|
|
4296
|
+
className: "\n min-w-full \n table-auto \n text-left \n border-collapse \n ".concat(Tables_table_module.table, "\n ")
|
|
4295
4297
|
}, /*#__PURE__*/external_react_default().createElement("thead", {
|
|
4296
4298
|
className: "hidden sm:table-header-group"
|
|
4297
4299
|
}, /*#__PURE__*/external_react_default().createElement("tr", {
|
|
4298
4300
|
className: "bg-[--color-table-head-bg] ".concat(headRowClassName)
|
|
4299
4301
|
}, data.map(column => /*#__PURE__*/external_react_default().createElement("th", {
|
|
4300
4302
|
key: column.key,
|
|
4301
|
-
className: "border-b border-[--color-stroke] py-2 px-4 text-sm font-normal text-[--color-table-head-txt] ".concat(headCellClassName)
|
|
4303
|
+
className: "\n border-b border-[--color-stroke] \n py-2 px-4 \n text-sm font-normal text-[--color-table-head-txt] ".concat(headCellClassName)
|
|
4302
4304
|
}, column.header)))), /*#__PURE__*/external_react_default().createElement("tbody", null, rows.map((row, index) => {
|
|
4303
4305
|
const backgroundClass = index % 2 === 0 ? 'bg-[--color-table-row-bg-even]' : 'bg-[--color-table-row-bg-odd]';
|
|
4304
4306
|
return /*#__PURE__*/external_react_default().createElement("tr", {
|
|
4305
4307
|
key: rowKeyExtractor(row, index),
|
|
4306
|
-
className: "block sm:table-row mb-4 sm:mb-0 rounded-lg sm:rounded-none border sm:border-0 border-[--color-stroke] p-4 sm:p-0 shadow-sm sm:shadow-none hover:bg-[--color-table-row-bg-hover] ".concat(backgroundClass, " ").concat(rowClassName)
|
|
4308
|
+
className: "block \n sm:table-row \n mb-4 sm:mb-0 \n rounded-lg sm:rounded-none \n border sm:border-0 border-[--color-stroke] \n p-4 sm:p-0 \n shadow-sm sm:shadow-none \n hover:bg-[--color-table-row-bg-hover] ".concat(backgroundClass, " ").concat(rowClassName)
|
|
4307
4309
|
}, data.map(column => /*#__PURE__*/external_react_default().createElement("td", {
|
|
4308
4310
|
key: column.key,
|
|
4309
|
-
className: "block sm:table-cell lg:px-4 lg:py-2 text-sm text-[--color-text-weak] ".concat(cellClassName),
|
|
4311
|
+
className: "\n block sm:table-cell \n lg:px-4 lg:py-2 \n text-sm text-[--color-text-weak] ".concat(cellClassName),
|
|
4310
4312
|
"data-label": column.header
|
|
4311
4313
|
}, column.render ? column.render(row) : row[column.key])));
|
|
4312
4314
|
}))));
|
|
@@ -12888,7 +12890,7 @@ function Dropdown(_ref) {
|
|
|
12888
12890
|
"aria-hidden": "true",
|
|
12889
12891
|
className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(open ? 'rotate-180' : 'rotate-0')
|
|
12890
12892
|
})), !disabled && /*#__PURE__*/external_react_default().createElement(Pt, {
|
|
12891
|
-
className: " absolute
|
|
12893
|
+
className: "\r absolute \r right-0 \r z-10 \r mt-2 \r w-56 \r origin-top-right \r rounded-md \r bg-[--color-primary-bg] \r shadow-lg \r ring-1 \r ring-[--color-stroke] \r ring-opacity-1 \r focus:outline-none \r max-h-48 \r overflow-y-auto\r "
|
|
12892
12894
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
12893
12895
|
className: "py-1"
|
|
12894
12896
|
}, items.map((item, index) => /*#__PURE__*/external_react_default().createElement(Et, {
|
|
@@ -12965,6 +12967,38 @@ const Navbar = _ref => {
|
|
|
12965
12967
|
}, children)));
|
|
12966
12968
|
};
|
|
12967
12969
|
/* harmony default export */ const Navbar_Navbar = (Navbar);
|
|
12970
|
+
;// external "opus-toolkit-styles/assets/logos/c247-loader.gif"
|
|
12971
|
+
const c247_loader_gif_namespaceObject = require("opus-toolkit-styles/assets/logos/c247-loader.gif");
|
|
12972
|
+
var c247_loader_gif_default = /*#__PURE__*/__webpack_require__.n(c247_loader_gif_namespaceObject);
|
|
12973
|
+
;// ./src/components/Loader/Loader.js
|
|
12974
|
+
|
|
12975
|
+
|
|
12976
|
+
|
|
12977
|
+
// TODO: Consider refactoring Loader to remove internal isLoading logic.
|
|
12978
|
+
// It's currently responsible for both rendering logic and presentation.
|
|
12979
|
+
// In production, it's better to let the parent control rendering to keep Loader focused on UI.
|
|
12980
|
+
// This change would improve testability, flexibility, and follow React best practices.
|
|
12981
|
+
|
|
12982
|
+
function Loader(_ref) {
|
|
12983
|
+
let {
|
|
12984
|
+
isLoading,
|
|
12985
|
+
loaderText = 'loading...',
|
|
12986
|
+
customLoader,
|
|
12987
|
+
className = ''
|
|
12988
|
+
} = _ref;
|
|
12989
|
+
return isLoading && /*#__PURE__*/external_react_default().createElement("div", {
|
|
12990
|
+
role: "status",
|
|
12991
|
+
"aria-live": "polite",
|
|
12992
|
+
className: "fixed inset-0 flex flex-col items-center justify-center bg-[--color-primary-bg] bg-opacity-50 z-50 ".concat(className)
|
|
12993
|
+
}, customLoader ? customLoader : /*#__PURE__*/external_react_default().createElement("img", {
|
|
12994
|
+
src: (c247_loader_gif_default()),
|
|
12995
|
+
alt: "Loading",
|
|
12996
|
+
className: "h-60"
|
|
12997
|
+
}), /*#__PURE__*/external_react_default().createElement(Text, {
|
|
12998
|
+
variant: "h4",
|
|
12999
|
+
className: "mt-4 animate-pulse text-center"
|
|
13000
|
+
}, loaderText));
|
|
13001
|
+
}
|
|
12968
13002
|
;// ./node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js
|
|
12969
13003
|
|
|
12970
13004
|
function XMarkIcon({
|
|
@@ -12994,10 +13028,13 @@ const XMarkIcon_ForwardRef = /*#__PURE__*/ external_react_.forwardRef(XMarkIcon)
|
|
|
12994
13028
|
|
|
12995
13029
|
|
|
12996
13030
|
|
|
13031
|
+
|
|
12997
13032
|
const Modal = _ref => {
|
|
12998
13033
|
let {
|
|
12999
13034
|
isOpen,
|
|
13000
13035
|
onClose,
|
|
13036
|
+
isLoading = false,
|
|
13037
|
+
loaderText = 'Loading...',
|
|
13001
13038
|
header,
|
|
13002
13039
|
body,
|
|
13003
13040
|
footer,
|
|
@@ -13025,9 +13062,15 @@ const Modal = _ref => {
|
|
|
13025
13062
|
"aria-modal": "true",
|
|
13026
13063
|
"aria-labelledby": "modal-title",
|
|
13027
13064
|
"aria-describedby": "modal-description",
|
|
13028
|
-
className: "bg-[--color-primary-bg] rounded-lg shadow-xl w-11/12 max-w-fit p-6 ".concat(className)
|
|
13029
|
-
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
13030
|
-
className: "flex justify-
|
|
13065
|
+
className: "relative bg-[--color-primary-bg] rounded-lg shadow-xl w-11/12 max-w-fit p-6 ".concat(className)
|
|
13066
|
+
}, isLoading && /*#__PURE__*/external_react_default().createElement("div", {
|
|
13067
|
+
className: "absolute inset-0 z-10 flex flex-col bg-[--color-primary-bg] items-center justify-center rounded-lg ".concat(isLoading ? 'opacity-1' : 'opacity-0 pointer-events-none')
|
|
13068
|
+
}, /*#__PURE__*/external_react_default().createElement(Loader, {
|
|
13069
|
+
isLoading: true,
|
|
13070
|
+
loaderText: loaderText,
|
|
13071
|
+
className: "relative z-20 w-[150px] h-[110px]"
|
|
13072
|
+
})), /*#__PURE__*/external_react_default().createElement("div", {
|
|
13073
|
+
className: "flex justify-end pb-3 relative z-0"
|
|
13031
13074
|
}, /*#__PURE__*/external_react_default().createElement("button", {
|
|
13032
13075
|
onClick: onClose,
|
|
13033
13076
|
className: "hover:cursor-pointer text-[--color-text-strong]",
|
|
@@ -13036,44 +13079,17 @@ const Modal = _ref => {
|
|
|
13036
13079
|
width: "24px",
|
|
13037
13080
|
className: "text-[--color-text-strong]"
|
|
13038
13081
|
}))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
13039
|
-
className: "border-b border-[--color-stroke] pb-4 text-[--color-text-strong] ".concat(headerClassName)
|
|
13082
|
+
className: "border-b border-[--color-stroke] pb-4 text-[--color-text-strong] relative z-0 ".concat(headerClassName)
|
|
13040
13083
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
13041
13084
|
id: "modal-title"
|
|
13042
13085
|
}, header)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
13043
13086
|
id: "modal-description",
|
|
13044
|
-
className: "my-4 text-[--color-text-weak]"
|
|
13087
|
+
className: "my-4 text-[--color-text-weak] relative z-0"
|
|
13045
13088
|
}, body), /*#__PURE__*/external_react_default().createElement("div", {
|
|
13046
|
-
className: "text-[--color-text-weak] ".concat(footerClassName)
|
|
13089
|
+
className: "text-[--color-text-weak] relative z-0 ".concat(footerClassName)
|
|
13047
13090
|
}, footer)));
|
|
13048
13091
|
};
|
|
13049
13092
|
/* harmony default export */ const Modals_Modal = (Modal);
|
|
13050
|
-
;// external "opus-toolkit-styles/assets/logos/c247-loader.gif"
|
|
13051
|
-
const c247_loader_gif_namespaceObject = require("opus-toolkit-styles/assets/logos/c247-loader.gif");
|
|
13052
|
-
var c247_loader_gif_default = /*#__PURE__*/__webpack_require__.n(c247_loader_gif_namespaceObject);
|
|
13053
|
-
;// ./src/components/Loader/Loader.js
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
function Loader(_ref) {
|
|
13058
|
-
let {
|
|
13059
|
-
isLoading,
|
|
13060
|
-
loaderText = 'loading...',
|
|
13061
|
-
customLoader,
|
|
13062
|
-
className = ''
|
|
13063
|
-
} = _ref;
|
|
13064
|
-
return isLoading && /*#__PURE__*/external_react_default().createElement("div", {
|
|
13065
|
-
role: "status",
|
|
13066
|
-
"aria-live": "polite",
|
|
13067
|
-
className: "fixed inset-0 flex flex-col items-center justify-center bg-greySunkenDark1000 bg-opacity-80 z-50 ".concat(className)
|
|
13068
|
-
}, customLoader ? customLoader : /*#__PURE__*/external_react_default().createElement("img", {
|
|
13069
|
-
src: (c247_loader_gif_default()),
|
|
13070
|
-
alt: "Loading",
|
|
13071
|
-
className: "h-60"
|
|
13072
|
-
}), /*#__PURE__*/external_react_default().createElement(Text, {
|
|
13073
|
-
variant: "h4",
|
|
13074
|
-
className: "mt-4 animate-pulse"
|
|
13075
|
-
}, loaderText));
|
|
13076
|
-
}
|
|
13077
13093
|
;// external "opus-toolkit-styles/assets/logos/footer-logos.svg"
|
|
13078
13094
|
const footer_logos_svg_namespaceObject = require("opus-toolkit-styles/assets/logos/footer-logos.svg");
|
|
13079
13095
|
var footer_logos_svg_default = /*#__PURE__*/__webpack_require__.n(footer_logos_svg_namespaceObject);
|