@nibssplc/cams-sdk-react 1.0.0-rc.46 → 1.0.0-rc.47

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './styles.css';
1
2
  export * from './hooks/useCAMSAuth';
2
3
  export * from './hooks/useCAMSMSALAuth';
3
4
  export { useWebAuthn } from './hooks/useFIDOAuth';
package/dist/index.esm.js CHANGED
@@ -1823,36 +1823,6 @@ function DialogTitle(_a) {
1823
1823
 
1824
1824
  var a="container_f782f4",i="inner_37f4c9",c="bar_409d0f";const r=({size:r=35,color:l="black",speed:d=1,stroke:o=3.5})=>jsxRuntimeExports.jsx("div",{className:a,style:{"--uib-size":r+"px","--uib-color":l,"--uib-speed":d+"s","--uib-stroke":o+"px"},children:jsxRuntimeExports.jsxs("div",{className:i,children:[jsxRuntimeExports.jsx("div",{className:c}),jsxRuntimeExports.jsx("div",{className:c}),jsxRuntimeExports.jsx("div",{className:c}),jsxRuntimeExports.jsx("div",{className:c})]})});
1825
1825
 
1826
- function styleInject(css, ref) {
1827
- if ( ref === void 0 ) ref = {};
1828
- var insertAt = ref.insertAt;
1829
-
1830
- if (typeof document === 'undefined') { return; }
1831
-
1832
- var head = document.head || document.getElementsByTagName('head')[0];
1833
- var style = document.createElement('style');
1834
- style.type = 'text/css';
1835
-
1836
- if (insertAt === 'top') {
1837
- if (head.firstChild) {
1838
- head.insertBefore(style, head.firstChild);
1839
- } else {
1840
- head.appendChild(style);
1841
- }
1842
- } else {
1843
- head.appendChild(style);
1844
- }
1845
-
1846
- if (style.styleSheet) {
1847
- style.styleSheet.cssText = css;
1848
- } else {
1849
- style.appendChild(document.createTextNode(css));
1850
- }
1851
- }
1852
-
1853
- var css_248z = ".container_f782f4 {\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: calc(var(--uib-size) * 0.9);\n width: var(--uib-size);\n}\n\n.inner_37f4c9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: var(--uib-size);\n height: calc(var(--uib-size) * 0.9);\n}\n\n.bar_409d0f {\n width: var(--uib-stroke);\n height: 100%;\n background-color: var(--uib-color);\n transition: background-color 0.3s ease;\n}\n\n.bar_409d0f:nth-child(1) {\n animation: grow_ca6a4e var(--uib-speed) ease-in-out calc(var(--uib-speed) * -0.45) infinite;\n}\n\n.bar_409d0f:nth-child(2) {\n animation: grow_ca6a4e var(--uib-speed) ease-in-out calc(var(--uib-speed) * -0.3) infinite;\n}\n\n.bar_409d0f:nth-child(3) {\n animation: grow_ca6a4e var(--uib-speed) ease-in-out calc(var(--uib-speed) * -0.15) infinite;\n}\n\n.bar_409d0f:nth-child(4) {\n animation: grow_ca6a4e var(--uib-speed) ease-in-out infinite;\n}\n\n@keyframes grow_ca6a4e {\n 0%, 100% {\n transform: scaleY(0.3);\n }\n 50% {\n transform: scaleY(1);\n }\n}";
1854
- styleInject(css_248z);
1855
-
1856
1826
  var LoadingSpinner = function (_a) {
1857
1827
  var loadingText = _a.loadingText;
1858
1828
  return (jsxRuntimeExports.jsxs("div", { className: "flex flex-col justify-center items-center h-full w-full py-10", children: [jsxRuntimeExports.jsx("script", { type: "module", defer: true, src: "https://cdn.jsdelivr.net/npm/ldrs/dist/auto/waveform.js" }), jsxRuntimeExports.jsx(r, { size: "35", stroke: "3.5", speed: "1", color: "green" }), loadingText && (jsxRuntimeExports.jsx("p", { className: "text-center font-semibold mt-3", children: "Loading..." }))] }));