@sis-cc/dotstatsuite-visions 12.50.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © OECD 2019-2025
3
+ Copyright © OECD 2019-2026
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -34,7 +34,7 @@ var ApiQueries = function ApiQueries(_ref) {
34
34
  { item: true, xs: 12 },
35
35
  React.createElement(
36
36
  Typography,
37
- { className: classes.title, variant: 'h6' },
37
+ { className: classes.title },
38
38
  R.prop('title')(labels)
39
39
  ),
40
40
  R.map(function (description) {
@@ -77,7 +77,7 @@ var Query = function Query(_ref) {
77
77
  { item: true },
78
78
  React.createElement(
79
79
  Typography,
80
- { className: classes.title, variant: 'h6' },
80
+ { className: classes.title },
81
81
  title
82
82
  )
83
83
  ),
@@ -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
- { variant: 'h6', className: classes.title, inline: 'true' },
26
+ { className: classes.title, inline: 'true' },
29
27
  label
30
28
  )
31
29
  );
@@ -86,7 +86,7 @@ var TabPanel = function TabPanel(props) {
86
86
  id: 'vertical-tabpanel-' + R.prop('index', item),
87
87
  'aria-labelledby': 'vertical-tab-' + R.prop('index', item),
88
88
  className: isNarrow ? classes.tabPanelNarrow : classes.tabPanel,
89
- style: styles
89
+ style: { width: R.prop('width', styles) }
90
90
  }, other),
91
91
  open && React.createElement(
92
92
  Box,
@@ -273,8 +273,9 @@ var DynamicDrawer = function DynamicDrawer(props) {
273
273
 
274
274
  var isHidden = open && isNarrow;
275
275
  var isNotHiddenButton = (!R.isEmpty(allSelection) || !isApplyHiddenNarrow) && isNarrow;
276
+ var isApplyButtonShown = open && !isNarrow;
276
277
  useEffect(function () {
277
- if (open && !isNarrow) {
278
+ if (isApplyButtonShown) {
278
279
  document.body.style.overflow = 'hidden';
279
280
  } else {
280
281
  document.body.style.overflow = '';
@@ -287,7 +288,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
287
288
  return React.createElement(
288
289
  'div',
289
290
  { style: { display: 'flex', flexDirection: 'row' } },
290
- open && !isNarrow && React.createElement(Box, {
291
+ isApplyButtonShown && React.createElement(Box, {
291
292
  onClick: function onClick() {
292
293
  return handleClose();
293
294
  },
@@ -306,7 +307,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
306
307
  orientation: 'vertical',
307
308
  variant: 'scrollable',
308
309
  TabIndicatorProps: { style: { transition: 'none' } },
309
- scrollButtons: false,
310
+ scrollButtons: isApplyButtonShown,
310
311
  value: false,
311
312
  onChange: handleChange,
312
313
  'aria-label': 'filters',
@@ -314,11 +315,10 @@ var DynamicDrawer = function DynamicDrawer(props) {
314
315
  sx: {
315
316
  display: isHidden ? 'none' : 'flex',
316
317
  width: '100%',
317
- height: '100%',
318
+ height: isApplyButtonShown ? R.prop('height', styles) : '100%',
318
319
  borderRight: 1,
319
320
  borderColor: 'divider',
320
- zIndex: 1000,
321
- overflow: 'auto'
321
+ zIndex: 1000
322
322
  }
323
323
  },
324
324
  R.map(function (item) {
@@ -355,7 +355,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
355
355
  disableFocusRipple: true
356
356
  });
357
357
  })(list),
358
- open && !isNarrow && React.createElement(
358
+ isApplyButtonShown && React.createElement(
359
359
  Button,
360
360
  {
361
361
  style: { float: 'bottom', margin: '10px' },
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, variant: 'h6' },
68
+ { className: classes.title },
69
69
  R.prop('title')(labels)
70
70
  ),
71
71
  R.map(function (description) {
@@ -106,7 +106,7 @@ var Query = function Query(_ref) {
106
106
  { item: true },
107
107
  _react2.default.createElement(
108
108
  _Typography2.default,
109
- { className: classes.title, variant: 'h6' },
109
+ { className: classes.title },
110
110
  title
111
111
  )
112
112
  ),
@@ -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
- { variant: 'h6', className: classes.title, inline: 'true' },
52
+ { className: classes.title, inline: 'true' },
55
53
  label
56
54
  )
57
55
  );
@@ -133,7 +133,7 @@ var TabPanel = function TabPanel(props) {
133
133
  id: 'vertical-tabpanel-' + R.prop('index', item),
134
134
  'aria-labelledby': 'vertical-tab-' + R.prop('index', item),
135
135
  className: isNarrow ? classes.tabPanelNarrow : classes.tabPanel,
136
- style: styles
136
+ style: { width: R.prop('width', styles) }
137
137
  }, other),
138
138
  open && _react2.default.createElement(
139
139
  _Box2.default,
@@ -320,8 +320,9 @@ var DynamicDrawer = function DynamicDrawer(props) {
320
320
 
321
321
  var isHidden = open && isNarrow;
322
322
  var isNotHiddenButton = (!R.isEmpty(allSelection) || !isApplyHiddenNarrow) && isNarrow;
323
+ var isApplyButtonShown = open && !isNarrow;
323
324
  (0, _react.useEffect)(function () {
324
- if (open && !isNarrow) {
325
+ if (isApplyButtonShown) {
325
326
  document.body.style.overflow = 'hidden';
326
327
  } else {
327
328
  document.body.style.overflow = '';
@@ -334,7 +335,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
334
335
  return _react2.default.createElement(
335
336
  'div',
336
337
  { style: { display: 'flex', flexDirection: 'row' } },
337
- open && !isNarrow && _react2.default.createElement(_Box2.default, {
338
+ isApplyButtonShown && _react2.default.createElement(_Box2.default, {
338
339
  onClick: function onClick() {
339
340
  return handleClose();
340
341
  },
@@ -353,7 +354,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
353
354
  orientation: 'vertical',
354
355
  variant: 'scrollable',
355
356
  TabIndicatorProps: { style: { transition: 'none' } },
356
- scrollButtons: false,
357
+ scrollButtons: isApplyButtonShown,
357
358
  value: false,
358
359
  onChange: handleChange,
359
360
  'aria-label': 'filters',
@@ -361,11 +362,10 @@ var DynamicDrawer = function DynamicDrawer(props) {
361
362
  sx: {
362
363
  display: isHidden ? 'none' : 'flex',
363
364
  width: '100%',
364
- height: '100%',
365
+ height: isApplyButtonShown ? R.prop('height', styles) : '100%',
365
366
  borderRight: 1,
366
367
  borderColor: 'divider',
367
- zIndex: 1000,
368
- overflow: 'auto'
368
+ zIndex: 1000
369
369
  }
370
370
  },
371
371
  R.map(function (item) {
@@ -402,7 +402,7 @@ var DynamicDrawer = function DynamicDrawer(props) {
402
402
  disableFocusRipple: true
403
403
  });
404
404
  })(list),
405
- open && !isNarrow && _react2.default.createElement(
405
+ isApplyButtonShown && _react2.default.createElement(
406
406
  _.Button,
407
407
  {
408
408
  style: { float: 'bottom', margin: '10px' },
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "12.50.0",
3
+ "version": "12.52.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",