jclib-ui 1.0.271 → 1.0.273
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/jclib-ui.es.js +18 -5
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +2 -4
- package/dist/jclib-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/jclib-ui.es.js
CHANGED
|
@@ -3973,10 +3973,15 @@ const LibProvider = ({ apiConfig, children, versionApp, useTheme }) => {
|
|
|
3973
3973
|
);
|
|
3974
3974
|
const toggleTheme = () => setTheme(theme == "dark" ? "light" : "dark");
|
|
3975
3975
|
useEffect(() => {
|
|
3976
|
-
const MARCADOR = "
|
|
3976
|
+
const MARCADOR = " 🔴 ";
|
|
3977
3977
|
const inLocalhost = window.location.hostname == "localhost" || window.location.hostname == "127.0.0.1" || window.location.hostname == "[::1]" || window.location.hostname.startsWith("192.168.");
|
|
3978
3978
|
if (inLocalhost && !document.title.includes(MARCADOR)) {
|
|
3979
|
-
document.title = `${document.title}
|
|
3979
|
+
document.title = `${MARCADOR}${document.title}`;
|
|
3980
|
+
}
|
|
3981
|
+
const MARCADOR2 = " 🟢 ";
|
|
3982
|
+
const inServerTest = window.location.hostname.includes("test.") || window.location.hostname.includes("test-");
|
|
3983
|
+
if (inServerTest && !document.title.includes(MARCADOR2)) {
|
|
3984
|
+
document.title = `${document.title}${MARCADOR2}`;
|
|
3980
3985
|
}
|
|
3981
3986
|
}, []);
|
|
3982
3987
|
useEffect(() => {
|
|
@@ -16341,8 +16346,6 @@ const LoadingBarContainer = styled.div`
|
|
|
16341
16346
|
background-color: var(--loading-bar-color);
|
|
16342
16347
|
height: var(--loading-bar-size);
|
|
16343
16348
|
transform: ease all 0.4s;
|
|
16344
|
-
left: ${({ position }) => position[0]}%;
|
|
16345
|
-
width: ${({ position }) => position[1]}%;
|
|
16346
16349
|
animation: FadeIn 0.5s both;
|
|
16347
16350
|
}
|
|
16348
16351
|
`;
|
|
@@ -16366,7 +16369,17 @@ function LoadingBar({ visible }) {
|
|
|
16366
16369
|
}
|
|
16367
16370
|
setPosition([inicio, fim]);
|
|
16368
16371
|
}, 5);
|
|
16369
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingBarContainer, {
|
|
16372
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingBarContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16373
|
+
"div",
|
|
16374
|
+
{
|
|
16375
|
+
className: "floating-bar",
|
|
16376
|
+
style: {
|
|
16377
|
+
left: `${position[0]}%`,
|
|
16378
|
+
width: `${position[1]}%`
|
|
16379
|
+
},
|
|
16380
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "d-none", children: "Carregando..." })
|
|
16381
|
+
}
|
|
16382
|
+
) });
|
|
16370
16383
|
}
|
|
16371
16384
|
function Loading({ visible, message = "Aguarde...", isbar = false }) {
|
|
16372
16385
|
if (!visible) {
|