@sis-cc/dotstatsuite-visions 12.51.0 → 12.52.0
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/LICENSE +1 -1
- package/es/ApiQueries/ApiQueries.js +1 -1
- package/es/ApiQueries/Query.js +1 -1
- package/es/ChartsConfig/Title.js +3 -5
- package/es/theme.js +7 -1
- package/lib/ApiQueries/ApiQueries.js +1 -1
- package/lib/ApiQueries/Query.js +1 -1
- package/lib/ChartsConfig/Title.js +3 -5
- package/lib/theme.js +7 -1
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +14 -10
- package/umd/@sis-cc/dotstatsuite-visions.min.js +4 -4
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -1
package/LICENSE
CHANGED
package/es/ApiQueries/Query.js
CHANGED
package/es/ChartsConfig/Title.js
CHANGED
|
@@ -5,11 +5,9 @@ import makeStyles from '@mui/styles/makeStyles';
|
|
|
5
5
|
import Grid from '@mui/material/Grid';
|
|
6
6
|
import Typography from '@mui/material/Typography';
|
|
7
7
|
|
|
8
|
-
export var useStyles = makeStyles(function () {
|
|
8
|
+
export var useStyles = makeStyles(function (theme) {
|
|
9
9
|
return {
|
|
10
|
-
title: {
|
|
11
|
-
fontFamily: 'inherit'
|
|
12
|
-
}
|
|
10
|
+
title: R.pathOr({}, ['mixins', 'chartsConfig', 'title'], theme)
|
|
13
11
|
};
|
|
14
12
|
});
|
|
15
13
|
|
|
@@ -25,7 +23,7 @@ var Title = function Title(_ref) {
|
|
|
25
23
|
!R.isNil(icon) && icon,
|
|
26
24
|
React.createElement(
|
|
27
25
|
Typography,
|
|
28
|
-
{
|
|
26
|
+
{ className: classes.title, inline: 'true' },
|
|
29
27
|
label
|
|
30
28
|
)
|
|
31
29
|
);
|
package/es/theme.js
CHANGED
|
@@ -249,7 +249,9 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
249
249
|
apiQueries: {
|
|
250
250
|
title: {
|
|
251
251
|
fontWeight: 400,
|
|
252
|
-
fontFamily: "'Roboto Slab', serif"
|
|
252
|
+
fontFamily: "'Roboto Slab', serif",
|
|
253
|
+
fontSize: '1.0625rem',
|
|
254
|
+
lineHeight: '1.6'
|
|
253
255
|
}
|
|
254
256
|
},
|
|
255
257
|
chart: {
|
|
@@ -271,6 +273,10 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
271
273
|
root: {
|
|
272
274
|
fontWeight: 400,
|
|
273
275
|
fontFamily: "'Roboto Slab', serif"
|
|
276
|
+
},
|
|
277
|
+
title: {
|
|
278
|
+
fontSize: '1.0625rem',
|
|
279
|
+
lineHeight: '1.6'
|
|
274
280
|
}
|
|
275
281
|
},
|
|
276
282
|
collapsibleTree: {
|
|
@@ -65,7 +65,7 @@ var ApiQueries = function ApiQueries(_ref) {
|
|
|
65
65
|
{ item: true, xs: 12 },
|
|
66
66
|
_react2.default.createElement(
|
|
67
67
|
_Typography2.default,
|
|
68
|
-
{ className: classes.title
|
|
68
|
+
{ className: classes.title },
|
|
69
69
|
R.prop('title')(labels)
|
|
70
70
|
),
|
|
71
71
|
R.map(function (description) {
|
package/lib/ApiQueries/Query.js
CHANGED
|
@@ -31,11 +31,9 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
|
|
34
|
-
var useStyles = exports.useStyles = (0, _makeStyles2.default)(function () {
|
|
34
|
+
var useStyles = exports.useStyles = (0, _makeStyles2.default)(function (theme) {
|
|
35
35
|
return {
|
|
36
|
-
title: {
|
|
37
|
-
fontFamily: 'inherit'
|
|
38
|
-
}
|
|
36
|
+
title: R.pathOr({}, ['mixins', 'chartsConfig', 'title'], theme)
|
|
39
37
|
};
|
|
40
38
|
});
|
|
41
39
|
|
|
@@ -51,7 +49,7 @@ var Title = function Title(_ref) {
|
|
|
51
49
|
!R.isNil(icon) && icon,
|
|
52
50
|
_react2.default.createElement(
|
|
53
51
|
_Typography2.default,
|
|
54
|
-
{
|
|
52
|
+
{ className: classes.title, inline: 'true' },
|
|
55
53
|
label
|
|
56
54
|
)
|
|
57
55
|
);
|
package/lib/theme.js
CHANGED
|
@@ -253,7 +253,9 @@ var sisccTheme = exports.sisccTheme = function sisccTheme(_ref) {
|
|
|
253
253
|
apiQueries: {
|
|
254
254
|
title: {
|
|
255
255
|
fontWeight: 400,
|
|
256
|
-
fontFamily: "'Roboto Slab', serif"
|
|
256
|
+
fontFamily: "'Roboto Slab', serif",
|
|
257
|
+
fontSize: '1.0625rem',
|
|
258
|
+
lineHeight: '1.6'
|
|
257
259
|
}
|
|
258
260
|
},
|
|
259
261
|
chart: {
|
|
@@ -275,6 +277,10 @@ var sisccTheme = exports.sisccTheme = function sisccTheme(_ref) {
|
|
|
275
277
|
root: {
|
|
276
278
|
fontWeight: 400,
|
|
277
279
|
fontFamily: "'Roboto Slab', serif"
|
|
280
|
+
},
|
|
281
|
+
title: {
|
|
282
|
+
fontSize: '1.0625rem',
|
|
283
|
+
lineHeight: '1.6'
|
|
278
284
|
}
|
|
279
285
|
},
|
|
280
286
|
collapsibleTree: {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @sis-cc/dotstatsuite-visions v12.
|
|
2
|
+
* @sis-cc/dotstatsuite-visions v12.52.0 - https://visions-qa.siscc.org/#o
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -7675,7 +7675,7 @@ if (true) {
|
|
|
7675
7675
|
/* 138 */
|
|
7676
7676
|
/***/ (function(module) {
|
|
7677
7677
|
|
|
7678
|
-
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"12.
|
|
7678
|
+
module.exports = {"name":"@sis-cc/dotstatsuite-visions","version":"12.52.0","description":"Library of visual components","author":"OECD","homepage":"https://visions-qa.siscc.org/#o","license":"MIT","repository":"https://gitlab.com/sis-cc/.stat-suite/dotstatsuite-visions","main":"lib/index.js","module":"es/index.js","engines":{"node":">=18"},"files":["css","es","lib","umd"],"scripts":{"peers":"install-peers --force-run","build":"cross-env NODE_OPTIONS=--openssl-legacy-provider nwb build-react-component --copy-files --no-demo && node scripts/doc && cross-env NODE_OPTIONS=--openssl-legacy-provider nwb build-demo","build:dev":"cross-env NODE_OPTIONS=--openssl-legacy-provider nwb build-react-component --copy-files --no-demo","clean":"nwb clean-module && nwb clean-demo","prepublishOnly":"npm run build","start":"cross-env NODE_OPTIONS=--openssl-legacy-provider nwb serve-react-demo","test":"jest","test:watch":"jest --watch --no-cache","lint":"eslint src/ --color","precommit":"lint-staged","transform":"npx jscodeshift -t scripts/transform-mui-imports.js demo/","upgrade-date-fns":"npx jscodeshift -t scripts/upgrade-date-fns.js src/"},"dependencies":{"@hello-pangea/dnd":"^16.6.0","@react-hook/size":"^2.1.1","classnames":"^2.2.6","diacritics":"^1.3.0","isemail":"^3.2.0","prop-types":"^15.7.2","ramda":"^0.27.0","react-draggable":"4.4.5","react-error-boundary":"^4.0.10","react-virtualized":"^9.21.2"},"peerDependencies":{"@emotion/react":"^11","@emotion/styled":"^11","@mui/icons-material":"^5","@mui/material":"^5","@mui/styles":"^5","date-fns":"^2.23.0","numeral":"^2.0.6","react":"^18","react-dom":"^18"},"devDependencies":{"@babel/eslint-parser":"^7.5.4","@babel/plugin-syntax-dynamic-import":"^7.2.0","@cfaester/enzyme-adapter-react-18":"^0.7.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","babel-jest":"^24.8.0","babel-preset-react-app":"^9.0.0","cross-env":"^7.0.3","dox":"^0.9.0","eslint":"^8.39.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","husky":"^2.7.0","identity-obj-proxy":"^3.0.0","install-peers-cli":"^2.2.0","jest":"^24.8.0","jss":"^10.10.0","jss-rtl":"^0.2.3","lint-staged":"^8.2.1","mutationobserver-shim":"^0.3.7","nwb":"0.23.0","prettier":"^2.8.8","pretty-quick":"^3.1.3","react-a11y":"^1.1.0","react-helmet":"^5.2.1","react-scrollable-anchor":"^0.6.1","react-syntax-highlighter":"^10.2.1","sanitize-html":"2.7.0","webpack":"^5.68.0","webpack-cli":"^4.9.2","webpack-dev-server":"^4.7.4"},"jest":{"verbose":true,"coverageDirectory":"coverage","collectCoverageFrom":["src/**/*.{js,jsx,ts,tsx}","!src/ScopeList/*.{js,jsx,ts,tsx}","!src/**/*.d.ts"],"setupFilesAfterEnv":["<rootDir>/tests/setup.js"],"testMatch":["**/tests/**/*.{spec,test}.{js,jsx,ts,tsx}","!**/tests/ScopeList.test.js"],"testEnvironment":"jsdom","transform":{"^.+\\.(js|jsx|ts|tsx)$":"<rootDir>/node_modules/babel-jest"},"transformIgnorePatterns":["[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$","^.+\\.module\\.(css|sass|scss)$"],"modulePaths":[],"moduleNameMapper":{"^react-native$":"react-native-web","^.+\\.module\\.(css|sass|scss)$":"identity-obj-proxy","\\.(jpg|jpeg|png)$":"identity-obj-proxy"},"moduleFileExtensions":["web.js","js","web.ts","ts","web.tsx","tsx","json","web.jsx","jsx","node"]},"babel":{"presets":["react-app"],"plugins":["@babel/plugin-syntax-dynamic-import"]},"eslintConfig":{"env":{"browser":true,"jest":true,"node":true,"es6":true},"extends":["eslint:recommended","plugin:react/recommended","plugin:jsx-a11y/recommended"],"parser":"@babel/eslint-parser","parserOptions":{"babelOptions":{"presets":[["babel-preset-react-app",false],"babel-preset-react-app/test"]},"ecmaFeatures":{"experimentalObjectRestSpread":true,"jsx":true},"sourceType":"module"},"plugins":["prettier","react","import","react-hooks","jsx-a11y"],"rules":{"no-console":"warn","no-unused-vars":"error","react/display-name":"off","react/prop-types":"off","react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"warn","no-use-before-define":"error"}},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,css}":["prettier --write","git add","yarn lint"]},"prettier":{"endOfLine":"lf","useTabs":false,"printWidth":100,"tabWidth":2,"singleQuote":true,"trailingComma":"all","bracketSameLine":false,"bracketSpacing":true,"parser":"babel","semi":true,"arrowParens":"avoid"}};
|
|
7679
7679
|
|
|
7680
7680
|
/***/ }),
|
|
7681
7681
|
/* 139 */
|
|
@@ -29348,7 +29348,7 @@ var Query_Query = function Query(_ref) {
|
|
|
29348
29348
|
{ item: true },
|
|
29349
29349
|
react_default.a.createElement(
|
|
29350
29350
|
material_Typography_Typography,
|
|
29351
|
-
{ className: classes.title
|
|
29351
|
+
{ className: classes.title },
|
|
29352
29352
|
title
|
|
29353
29353
|
)
|
|
29354
29354
|
),
|
|
@@ -29481,7 +29481,7 @@ var ApiQueries_ApiQueries = function ApiQueries(_ref) {
|
|
|
29481
29481
|
{ item: true, xs: 12 },
|
|
29482
29482
|
react_default.a.createElement(
|
|
29483
29483
|
material_Typography_Typography,
|
|
29484
|
-
{ className: classes.title
|
|
29484
|
+
{ className: classes.title },
|
|
29485
29485
|
es_prop('title')(labels)
|
|
29486
29486
|
),
|
|
29487
29487
|
es_map(function (description) {
|
|
@@ -31103,11 +31103,9 @@ var ArrowUpward_default = /*#__PURE__*/__webpack_require__.n(ArrowUpward);
|
|
|
31103
31103
|
|
|
31104
31104
|
|
|
31105
31105
|
|
|
31106
|
-
var Title_useStyles = makeStyles(function () {
|
|
31106
|
+
var Title_useStyles = makeStyles(function (theme) {
|
|
31107
31107
|
return {
|
|
31108
|
-
title: {
|
|
31109
|
-
fontFamily: 'inherit'
|
|
31110
|
-
}
|
|
31108
|
+
title: es_pathOr({}, ['mixins', 'chartsConfig', 'title'], theme)
|
|
31111
31109
|
};
|
|
31112
31110
|
});
|
|
31113
31111
|
|
|
@@ -31123,7 +31121,7 @@ var Title_Title = function Title(_ref) {
|
|
|
31123
31121
|
!es_isNil(icon) && icon,
|
|
31124
31122
|
react_default.a.createElement(
|
|
31125
31123
|
material_Typography_Typography,
|
|
31126
|
-
{
|
|
31124
|
+
{ className: classes.title, inline: 'true' },
|
|
31127
31125
|
label
|
|
31128
31126
|
)
|
|
31129
31127
|
);
|
|
@@ -51056,7 +51054,9 @@ var sisccTheme = function sisccTheme(_ref) {
|
|
|
51056
51054
|
apiQueries: {
|
|
51057
51055
|
title: {
|
|
51058
51056
|
fontWeight: 400,
|
|
51059
|
-
fontFamily: "'Roboto Slab', serif"
|
|
51057
|
+
fontFamily: "'Roboto Slab', serif",
|
|
51058
|
+
fontSize: '1.0625rem',
|
|
51059
|
+
lineHeight: '1.6'
|
|
51060
51060
|
}
|
|
51061
51061
|
},
|
|
51062
51062
|
chart: {
|
|
@@ -51078,6 +51078,10 @@ var sisccTheme = function sisccTheme(_ref) {
|
|
|
51078
51078
|
root: {
|
|
51079
51079
|
fontWeight: 400,
|
|
51080
51080
|
fontFamily: "'Roboto Slab', serif"
|
|
51081
|
+
},
|
|
51082
|
+
title: {
|
|
51083
|
+
fontSize: '1.0625rem',
|
|
51084
|
+
lineHeight: '1.6'
|
|
51081
51085
|
}
|
|
51082
51086
|
},
|
|
51083
51087
|
collapsibleTree: {
|