@crystaldesign/diva-backoffice 24.7.0-beta.29 → 24.7.0-beta.30
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/build/esm/index.js
CHANGED
|
@@ -18753,7 +18753,9 @@ function AGHistogram (_ref) {
|
|
|
18753
18753
|
var SMChart = function SMChart(props) {
|
|
18754
18754
|
var _useDivaCore = useDivaCore(),
|
|
18755
18755
|
userHasPermission = _useDivaCore.actions.userHasPermission;
|
|
18756
|
+
var root = useStore();
|
|
18756
18757
|
var hasPermission = userHasPermission(props.permission);
|
|
18758
|
+
var darkmode = root.contentStore.theme === 'darkmode';
|
|
18757
18759
|
return hasPermission ? /*#__PURE__*/jsx(Histogram, {
|
|
18758
18760
|
field: props.field,
|
|
18759
18761
|
interval: props.interval,
|
|
@@ -18764,7 +18766,8 @@ var SMChart = function SMChart(props) {
|
|
|
18764
18766
|
description: props.description,
|
|
18765
18767
|
title: props.title,
|
|
18766
18768
|
apiTranslation: props.apiTranslation,
|
|
18767
|
-
component: props.component
|
|
18769
|
+
component: props.component,
|
|
18770
|
+
darkmode: darkmode
|
|
18768
18771
|
}) : /*#__PURE__*/jsx(Fragment, {});
|
|
18769
18772
|
};
|
|
18770
18773
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SMChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SMChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwBhD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.7.0-beta.
|
|
3
|
+
"version": "24.7.0-beta.30",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
},
|
|
53
53
|
"module": "build/esm/index.js",
|
|
54
54
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "68f3c85d0f58df9e2d9048743ce98591d2fb92e9"
|
|
56
56
|
}
|