@codebit-programando-solucoes/codebit-web-antd 1.1.21 → 1.1.23

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 CHANGED
@@ -943,10 +943,10 @@ var __webpack_exports__ = {};
943
943
  (0, external_react_.useEffect)(()=>{
944
944
  const rootElement = document.getElementById('root');
945
945
  if (isDarkMode) {
946
- document.body.classList.add('dark-theme');
946
+ document.documentElement.classList.add('dark-theme');
947
947
  rootElement.classList.add('dark-theme');
948
948
  } else {
949
- document.body.classList.remove('dark-theme');
949
+ document.documentElement.classList.remove('dark-theme');
950
950
  rootElement.classList.remove('dark-theme');
951
951
  }
952
952
  document.documentElement.style.setProperty('--color-primary', isDarkMode ? '#589C75' : '#29D266');
package/dist/index.css CHANGED
@@ -1,3 +1,18 @@
1
+ body, html {
2
+ height: 100%;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ html.dark-theme {
8
+ background-color: var(--antd-color-bg-container);
9
+ color: var(--antd-color-text);
10
+ }
11
+
12
+ .ant-app .ant-layout {
13
+ height: 100dvh !important;
14
+ }
15
+
1
16
  .listCard-ISftFd {
2
17
  width: 100%;
3
18
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebit-programando-solucoes/codebit-web-antd",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "main": "./dist/index.cjs",
5
5
  "type": "module",
6
6
  "types": "./src/index.d.ts",