opus-toolkit-components 0.5.8 → 0.6.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.
@@ -591,6 +591,7 @@ __webpack_require__.d(__webpack_exports__, {
591
591
  DatePicker: () => (/* reexport */ DatePicker),
592
592
  Dropdown: () => (/* reexport */ Dropdown),
593
593
  Input: () => (/* reexport */ Inputs_Input),
594
+ Loader: () => (/* reexport */ Loader),
594
595
  Modal: () => (/* reexport */ Modals_Modal),
595
596
  Navbar: () => (/* reexport */ Navbar_Navbar),
596
597
  RadioButton: () => (/* reexport */ Radios_RadioButton),
@@ -12297,6 +12298,24 @@ const Modal = _ref => {
12297
12298
  }, footer)));
12298
12299
  };
12299
12300
  /* harmony default export */ const Modals_Modal = (Modal);
12301
+ ;// ./src/components/Loader/Loader.js
12302
+
12303
+
12304
+ function Loader(_ref) {
12305
+ let {
12306
+ isLoading,
12307
+ loaderText = "loading..."
12308
+ } = _ref;
12309
+ return isLoading && /*#__PURE__*/external_react_default().createElement("div", {
12310
+ className: "fixed inset-0 flex flex-col items-center justify-center bg-greySunkenDark1000 bg-opacity-80 z-50"
12311
+ }, /*#__PURE__*/external_react_default().createElement("img", {
12312
+ src: c247_icon_only,
12313
+ alt: "Loading",
12314
+ className: "w-30 h-30 animate-pulse"
12315
+ }), /*#__PURE__*/external_react_default().createElement("h4", {
12316
+ className: "mt-4 text-greyBaseLight text-lg font-medium animate-pulse"
12317
+ }, loaderText));
12318
+ }
12300
12319
  ;// ./src/index.js
12301
12320
 
12302
12321
 
@@ -12308,8 +12327,9 @@ const Modal = _ref => {
12308
12327
 
12309
12328
 
12310
12329
 
12330
+
12311
12331
  /******/ return __webpack_exports__;
12312
12332
  /******/ })()
12313
12333
  ;
12314
12334
  });
12315
- //# sourceMappingURL=main.8b9a0aadd5134af0a7c7.js.map
12335
+ //# sourceMappingURL=main.18daf43f1525a172b45f.js.map