jclib-ui 1.0.167 → 1.0.169
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
CHANGED
|
@@ -3953,6 +3953,7 @@ const LibProvider = ({ apiConfig, children, versionApp, useTheme }) => {
|
|
|
3953
3953
|
},
|
|
3954
3954
|
[modalList]
|
|
3955
3955
|
);
|
|
3956
|
+
const toggleTheme = () => setTheme(theme == "dark" ? "light" : "dark");
|
|
3956
3957
|
useEffect(() => {
|
|
3957
3958
|
if (canChangeTheme) {
|
|
3958
3959
|
localStorage.setItem(cTheme, theme);
|
|
@@ -3976,6 +3977,7 @@ const LibProvider = ({ apiConfig, children, versionApp, useTheme }) => {
|
|
|
3976
3977
|
globalApiConfig: apiConfig,
|
|
3977
3978
|
theme,
|
|
3978
3979
|
setTheme,
|
|
3980
|
+
toggleTheme,
|
|
3979
3981
|
canChangeTheme,
|
|
3980
3982
|
reportType,
|
|
3981
3983
|
setReportType
|
|
@@ -4610,7 +4612,7 @@ function TableBody({ colunas, acoes, opcoes, dados, colorir }) {
|
|
|
4610
4612
|
},
|
|
4611
4613
|
children: [
|
|
4612
4614
|
col.titulo && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "titulo", children: [
|
|
4613
|
-
col.titulo,
|
|
4615
|
+
col.tituloCard || col.titulo,
|
|
4614
4616
|
": "
|
|
4615
4617
|
] }),
|
|
4616
4618
|
getDataCol(col, line)
|