@desynova-digital/components 9.0.15 → 9.0.17

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.
@@ -88,8 +88,11 @@ var justifyContent = {
88
88
  vertical: 'margin-bottom: 5px;'
89
89
  };
90
90
 
91
+ function getDisplayValue(props) {
92
+ return props.align === 'horizontal' ? 'inline-block' : props.className === 'display-flex' ? 'flex' : 'table';
93
+ }
91
94
  var StyledCheckbox = _styledComponents2.default.div(_templateObject3, StyledCheckboxOption, function (props) {
92
- return props.align === 'horizontal' ? 'inline-block' : 'table';
95
+ return getDisplayValue(props);
93
96
  }, function (props) {
94
97
  return justifyContent[props.align];
95
98
  });
@@ -20,6 +20,16 @@
20
20
  "width": 16,
21
21
  "height": 16
22
22
  },
23
+ "double-arrow-right": {
24
+ "paths": ["M4.78779 6.00001L0.251019 1.46324C-0.0836954 1.1285 -0.0836954 0.58579 0.251019 0.251049C0.585734 -0.083683 1.12848 -0.083683 1.46319 0.251049L6.60607 5.39391C6.9408 5.72866 6.9408 6.27137 6.60607 6.60611L1.46319 11.749C1.12848 12.0837 0.585734 12.0837 0.251019 11.749C-0.0836954 11.4142 -0.0836954 10.8715 0.251019 10.5368L4.78779 6.00001Z","M11.7878 6.00001L7.25102 1.46324C6.9163 1.1285 6.9163 0.58579 7.25102 0.251049C7.58573 -0.083683 8.12848 -0.083683 8.46319 0.251049L13.6061 5.39391C13.9408 5.72866 13.9408 6.27137 13.6061 6.60611L8.46319 11.749C8.12848 12.0837 7.58573 12.0837 7.25102 11.749C6.9163 11.4142 6.9163 10.8715 7.25102 10.5368L11.7878 6.00001Z"],
25
+ "width": 14,
26
+ "height": 12
27
+ },
28
+ "double-arrow-left": {
29
+ "paths": ["M2.07152 5.99999L6.60829 10.5368C6.94301 10.8715 6.94301 11.4142 6.60829 11.749C6.27358 12.0837 5.73084 12.0837 5.39612 11.749L0.253246 6.60609C-0.0814857 6.27134 -0.0814857 5.72863 0.253246 5.39389L5.39612 0.251037C5.73084 -0.0836782 6.27358 -0.0836782 6.60829 0.251037C6.94301 0.585752 6.94301 1.1285 6.60829 1.46321L2.07152 5.99999Z","M9.07152 5.99999L13.6083 10.5368C13.943 10.8715 13.943 11.4142 13.6083 11.749C13.2736 12.0837 12.7308 12.0837 12.3961 11.749L7.25325 6.60609C6.91851 6.27134 6.91851 5.72863 7.25325 5.39389L12.3961 0.251037C12.7308 -0.0836782 13.2736 -0.0836782 13.6083 0.251037C13.943 0.585752 13.943 1.1285 13.6083 1.46321L9.07152 5.99999Z"],
30
+ "width": 14,
31
+ "height": 12
32
+ },
23
33
  "arrow-right": {
24
34
  "paths": [
25
35
  "M558 37 556.76625 38.23375 561.64875 43.125 551 43.125 551 44.875 561.64875 44.875 556.76625 49.76625 558 51 565 44z"
@@ -356,7 +356,9 @@ var Table = function (_Component) {
356
356
  ));
357
357
  }
358
358
  }
359
-
359
+ /**
360
+ * In link text we expect actions array in our items array to perform click functionality and data
361
+ */
360
362
  case 'link_text':
361
363
  {
362
364
  if (tableLoading) {
@@ -380,6 +382,28 @@ var Table = function (_Component) {
380
382
  }
381
383
  }
382
384
  }
385
+ /**
386
+ * In link field we don't expect any actions in our items array it always have click functionality
387
+ */
388
+ case 'link_field':
389
+ {
390
+ if (tableLoading) {
391
+ return _react2.default.createElement(_Shimmer2.default, { height: '16px', width: '100%' });
392
+ } else {
393
+ var _isPlayable = true;
394
+ return _react2.default.createElement(
395
+ 'div',
396
+ {
397
+ className: 'text-box ' + (_isPlayable ? 'asset-play' : ''),
398
+ title: item[column.field],
399
+ onClick: function onClick(e) {
400
+ return _isPlayable ? _this.actionClickEvents(e, 'play', idx) : e.preventDefault();
401
+ }
402
+ },
403
+ item[column.field].toString()
404
+ );
405
+ }
406
+ }
383
407
 
384
408
  case 'action_icon':
385
409
  if (tableLoading) {
@@ -1177,7 +1201,9 @@ var Table = function (_Component) {
1177
1201
  downloadAvailable = _props2.downloadAvailable,
1178
1202
  tableLoading = _props2.tableLoading,
1179
1203
  tableLoadingAction = _props2.tableLoadingAction,
1180
- filtersStructure = _props2.filtersStructure;
1204
+ filtersStructure = _props2.filtersStructure,
1205
+ dropDownHandle = _props2.dropDownHandle,
1206
+ downloadHandle = _props2.downloadHandle;
1181
1207
  var _state2 = this.state,
1182
1208
  nestedTable = _state2.nestedTable,
1183
1209
  searchedText = _state2.searchedText,
@@ -1371,7 +1397,7 @@ var Table = function (_Component) {
1371
1397
  })
1372
1398
  )
1373
1399
  ) || _react2.default.createElement(_Shimmer2.default, { height: '24px', width: '322px' }),
1374
- !tableLoading && pageDropdown && pageDropdown || tableLoadingAction ? pageDropdown : _react2.default.createElement(_Shimmer2.default, { height: '24px', width: '100px' }),
1400
+ !tableLoading && pageDropdown && pageDropdown || tableLoadingAction ? pageDropdown : dropDownHandle ? null : _react2.default.createElement(_Shimmer2.default, { height: '24px', width: '100px' }),
1375
1401
  this.props.searchable ? _react2.default.createElement(
1376
1402
  'div',
1377
1403
  null,
@@ -1447,7 +1473,7 @@ var Table = function (_Component) {
1447
1473
  iconHeight: 12
1448
1474
  })
1449
1475
  )
1450
- ) || _react2.default.createElement(_Shimmer2.default, { height: '24px', width: '30px' }),
1476
+ ) || (downloadHandle ? null : _react2.default.createElement(_Shimmer2.default, { height: '24px', width: '30px' })),
1451
1477
  false && _react2.default.createElement(
1452
1478
  'div',
1453
1479
  { className: 'column-show-holder' },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.0.15",
3
+ "version": "9.0.17",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.0.15",
10
+ "@desynova-digital/tokens": "9.0.17",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },