@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 +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -17,7 +17,6 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
17
17
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
18
18
|
import { cva } from 'class-variance-authority';
|
|
19
19
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
20
|
-
import { newtonsCradle } from 'ldrs';
|
|
21
20
|
import { motion } from 'framer-motion';
|
|
22
21
|
|
|
23
22
|
/******************************************************************************
|
|
@@ -1389,7 +1388,12 @@ function DialogTitle(_a) {
|
|
|
1389
1388
|
var LoadingScreen = function (_a) {
|
|
1390
1389
|
var loadingText = _a.loadingText;
|
|
1391
1390
|
useEffect(function () {
|
|
1392
|
-
|
|
1391
|
+
if (typeof window !== "undefined") {
|
|
1392
|
+
import('ldrs').then(function (_a) {
|
|
1393
|
+
var newtonsCradle = _a.newtonsCradle;
|
|
1394
|
+
newtonsCradle.register();
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1393
1397
|
}, []);
|
|
1394
1398
|
return (jsxs("div", { className: "flex flex-col justify-center items-center h-full w-full py-10", children: [jsx("l-newtons-cradle", { size: 124, speed: 1.5, color: "green" }), loadingText ? (jsx("p", { className: "text-center font-semibold mt-3", children: loadingText })) : (jsx("p", { className: "text-center font-semibold mt-3", children: "Loading..." }))] }));
|
|
1395
1399
|
};
|