@nibssplc/cams-sdk-react 1.0.0-rc.113 → 1.0.0-rc.114

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/dist/index.cjs.js CHANGED
@@ -17,7 +17,6 @@ var reactSlot = require('@radix-ui/react-slot');
17
17
  var LabelPrimitive = require('@radix-ui/react-label');
18
18
  var classVarianceAuthority = require('class-variance-authority');
19
19
  var DialogPrimitive = require('@radix-ui/react-dialog');
20
- var ldrs = require('ldrs');
21
20
  var framerMotion = require('framer-motion');
22
21
 
23
22
  function _interopNamespaceDefault(e) {
@@ -1410,7 +1409,12 @@ function DialogTitle(_a) {
1410
1409
  var LoadingScreen = function (_a) {
1411
1410
  var loadingText = _a.loadingText;
1412
1411
  React.useEffect(function () {
1413
- ldrs.newtonsCradle.register();
1412
+ if (typeof window !== "undefined") {
1413
+ import('ldrs').then(function (_a) {
1414
+ var newtonsCradle = _a.newtonsCradle;
1415
+ newtonsCradle.register();
1416
+ });
1417
+ }
1414
1418
  }, []);
1415
1419
  return (jsxRuntime.jsxs("div", { className: "flex flex-col justify-center items-center h-full w-full py-10", children: [jsxRuntime.jsx("l-newtons-cradle", { size: 124, speed: 1.5, color: "green" }), loadingText ? (jsxRuntime.jsx("p", { className: "text-center font-semibold mt-3", children: loadingText })) : (jsxRuntime.jsx("p", { className: "text-center font-semibold mt-3", children: "Loading..." }))] }));
1416
1420
  };