@sis-cc/dotstatsuite-visions 7.3.1 → 7.4.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.
@@ -10,6 +10,7 @@ import ListItemText from '@material-ui/core/ListItemText';
10
10
  import IconButton from '@material-ui/core/IconButton';
11
11
  import SvgIcon from '@material-ui/core/SvgIcon';
12
12
  import cx from 'classnames';
13
+ import { Tooltip } from '../';
13
14
 
14
15
  var checkBoxPath = 'M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z';
15
16
  var checkPath = 'M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z';
@@ -37,6 +38,7 @@ var Item = function Item(_ref) {
37
38
  isSelected = _ref.isSelected,
38
39
  isDisabled = _ref.isDisabled,
39
40
  changeList = _ref.changeList,
41
+ changeListDescription = _ref.changeListDescription,
40
42
  ariaLabel = _ref.ariaLabel,
41
43
  NavigateIcon = _ref.NavigateIcon,
42
44
  changeSelection = _ref.changeSelection,
@@ -148,17 +150,28 @@ var Item = function Item(_ref) {
148
150
  }
149
151
  },
150
152
  React.createElement(
151
- IconButton,
153
+ Tooltip,
152
154
  {
153
- disableRipple: true,
154
- disableFocusRipple: true,
155
- className: classes.arrow,
156
- 'aria-label': ariaLabel,
157
- tabIndex: -1,
158
- size: 'small',
159
- color: 'inherit'
155
+ title: changeListDescription || '',
156
+ tabIndex: 0,
157
+ 'aria-label': changeListDescription,
158
+ 'aria-hidden': false,
159
+ placement: 'top',
160
+ variant: 'light'
160
161
  },
161
- React.createElement(NavigateIcon, null)
162
+ React.createElement(
163
+ IconButton,
164
+ {
165
+ disableRipple: true,
166
+ disableFocusRipple: true,
167
+ className: classes.arrow,
168
+ 'aria-label': ariaLabel,
169
+ tabIndex: -1,
170
+ size: 'small',
171
+ color: 'inherit'
172
+ },
173
+ React.createElement(NavigateIcon, null)
174
+ )
162
175
  )
163
176
  )
164
177
  );
@@ -177,6 +190,7 @@ Item.propTypes = process.env.NODE_ENV !== "production" ? {
177
190
  hasChild: PropTypes.bool,
178
191
  isSection: PropTypes.bool,
179
192
  changeList: PropTypes.func,
193
+ changeListDescription: PropTypes.string,
180
194
  changeSelection: PropTypes.func,
181
195
  changeMouseSelection: PropTypes.func,
182
196
  count: PropTypes.number,
@@ -244,6 +244,7 @@ var ScopeList = function ScopeList(props) {
244
244
  classes: classes,
245
245
  isRtl: isRtl,
246
246
  changeList: changeList,
247
+ changeListDescription: labels.childrenNavigateDesc,
247
248
  changeSelection: changeSelection,
248
249
  changeMouseSelection: changeMouseSelection,
249
250
  ariaLabel: R.prop('navigateNext')(labels),
@@ -284,6 +285,7 @@ ScopeList.propTypes = process.env.NODE_ENV !== "production" ? {
284
285
  isBlank: PropTypes.bool,
285
286
  isCurrentListAllSelected: PropTypes.bool,
286
287
  labels: PropTypes.shape({
288
+ childrenNavigateDesc: PropTypes.string,
287
289
  navigateNext: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
288
290
  backHelper: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
289
291
  selection: PropTypes.shape({
@@ -47,6 +47,7 @@
47
47
  * hasPath: PropTypes.bool,
48
48
  * changeSelection: PropTypes.func,
49
49
  * labels: {
50
+ * childrenNavigateDesc: PropTypes.string,
50
51
  * navigateBefore: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
51
52
  * navigateNext: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
52
53
  * backHelper: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
@@ -44,6 +44,8 @@ var _classnames = require('classnames');
44
44
 
45
45
  var _classnames2 = _interopRequireDefault(_classnames);
46
46
 
47
+ var _ = require('../');
48
+
47
49
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
48
50
 
49
51
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -74,6 +76,7 @@ var Item = function Item(_ref) {
74
76
  isSelected = _ref.isSelected,
75
77
  isDisabled = _ref.isDisabled,
76
78
  changeList = _ref.changeList,
79
+ changeListDescription = _ref.changeListDescription,
77
80
  ariaLabel = _ref.ariaLabel,
78
81
  NavigateIcon = _ref.NavigateIcon,
79
82
  changeSelection = _ref.changeSelection,
@@ -185,17 +188,28 @@ var Item = function Item(_ref) {
185
188
  }
186
189
  },
187
190
  _react2.default.createElement(
188
- _IconButton2.default,
191
+ _.Tooltip,
189
192
  {
190
- disableRipple: true,
191
- disableFocusRipple: true,
192
- className: classes.arrow,
193
- 'aria-label': ariaLabel,
194
- tabIndex: -1,
195
- size: 'small',
196
- color: 'inherit'
193
+ title: changeListDescription || '',
194
+ tabIndex: 0,
195
+ 'aria-label': changeListDescription,
196
+ 'aria-hidden': false,
197
+ placement: 'top',
198
+ variant: 'light'
197
199
  },
198
- _react2.default.createElement(NavigateIcon, null)
200
+ _react2.default.createElement(
201
+ _IconButton2.default,
202
+ {
203
+ disableRipple: true,
204
+ disableFocusRipple: true,
205
+ className: classes.arrow,
206
+ 'aria-label': ariaLabel,
207
+ tabIndex: -1,
208
+ size: 'small',
209
+ color: 'inherit'
210
+ },
211
+ _react2.default.createElement(NavigateIcon, null)
212
+ )
199
213
  )
200
214
  )
201
215
  );
@@ -214,6 +228,7 @@ Item.propTypes = process.env.NODE_ENV !== "production" ? {
214
228
  hasChild: _propTypes2.default.bool,
215
229
  isSection: _propTypes2.default.bool,
216
230
  changeList: _propTypes2.default.func,
231
+ changeListDescription: _propTypes2.default.string,
217
232
  changeSelection: _propTypes2.default.func,
218
233
  changeMouseSelection: _propTypes2.default.func,
219
234
  count: _propTypes2.default.number,
@@ -297,6 +297,7 @@ var ScopeList = function ScopeList(props) {
297
297
  classes: classes,
298
298
  isRtl: isRtl,
299
299
  changeList: changeList,
300
+ changeListDescription: labels.childrenNavigateDesc,
300
301
  changeSelection: changeSelection,
301
302
  changeMouseSelection: changeMouseSelection,
302
303
  ariaLabel: R.prop('navigateNext')(labels),
@@ -337,6 +338,7 @@ ScopeList.propTypes = process.env.NODE_ENV !== "production" ? {
337
338
  isBlank: _propTypes2.default.bool,
338
339
  isCurrentListAllSelected: _propTypes2.default.bool,
339
340
  labels: _propTypes2.default.shape({
341
+ childrenNavigateDesc: _propTypes2.default.string,
340
342
  navigateNext: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
341
343
  backHelper: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),
342
344
  selection: _propTypes2.default.shape({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.3.1",
3
+ "version": "7.4.0",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",