carbon-addons-iot-react 2.146.1 → 2.146.3
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/CHANGELOG.md +22 -0
- package/es/components/Table/Table.js +9 -19
- package/es/components/Table/TableBody/RowActionsCell/RowActionsCell.js +30 -8
- package/lib/components/Table/Table.js +10 -19
- package/lib/components/Table/TableBody/RowActionsCell/RowActionsCell.js +30 -8
- package/package.json +2 -2
- package/umd/carbon-addons-iot-react.js +37 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.146.3](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.146.2...v2.146.3) (2021-10-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **table:** add old size values and add deprecation warning ([11e3bdb](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/11e3bdbaa3743f0e708e8718b75906f1db5779ec))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.146.2](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.146.1...v2.146.2) (2021-09-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **row-actions-cell:** set overflow menu to closed after overflow action ([346311c](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/346311ce53182959d3fa882c18f75a47eaaceb2e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.146.1](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.146.0...v2.146.1) (2021-09-24)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -8,8 +8,8 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
8
8
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
9
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
10
|
import 'core-js/modules/es.array.includes.js';
|
|
11
|
-
import 'core-js/modules/es.array.map.js';
|
|
12
11
|
import 'core-js/modules/es.array.concat.js';
|
|
12
|
+
import 'core-js/modules/es.array.map.js';
|
|
13
13
|
import 'core-js/modules/es.regexp.exec.js';
|
|
14
14
|
import 'core-js/modules/es.string.search.js';
|
|
15
15
|
import 'core-js/modules/es.array.slice.js';
|
|
@@ -32,6 +32,7 @@ import { TableContainer, Tag, Table as Table$1 } from 'carbon-components-react';
|
|
|
32
32
|
import uniqueId from 'lodash/uniqueId';
|
|
33
33
|
import classnames from 'classnames';
|
|
34
34
|
import { useLangDirection } from 'use-lang-direction';
|
|
35
|
+
import warning from 'warning';
|
|
35
36
|
import { defaultFunction } from '../../utils/componentUtilityFunctions.js';
|
|
36
37
|
import { settings } from '../../constants/Settings.js';
|
|
37
38
|
import FilterTags from '../FilterTags/FilterTags.js';
|
|
@@ -137,7 +138,11 @@ var propTypes = {
|
|
|
137
138
|
}),
|
|
138
139
|
|
|
139
140
|
/** Size prop from Carbon to shrink row height (and header height in some instances) */
|
|
140
|
-
size:
|
|
141
|
+
size: function checkProps(props, propName, componentName) {
|
|
142
|
+
if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {
|
|
143
|
+
warning(false, "The value `".concat(props[propName], "` has been deprecated for the ") + "`".concat(propName, "` prop on the ").concat(componentName, " component. It will be removed in the next major ") + "release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.") ;
|
|
144
|
+
}
|
|
145
|
+
},
|
|
141
146
|
|
|
142
147
|
/** Initial state of the table, should be updated via a local state wrapper component implementation or via a central store/redux see StatefulTable component for an example */
|
|
143
148
|
view: PropTypes.shape({
|
|
@@ -1148,23 +1153,8 @@ Table.__docgenInfo = {
|
|
|
1148
1153
|
},
|
|
1149
1154
|
"size": {
|
|
1150
1155
|
"type": {
|
|
1151
|
-
"name": "
|
|
1152
|
-
"
|
|
1153
|
-
"value": "'xs'",
|
|
1154
|
-
"computed": false
|
|
1155
|
-
}, {
|
|
1156
|
-
"value": "'sm'",
|
|
1157
|
-
"computed": false
|
|
1158
|
-
}, {
|
|
1159
|
-
"value": "'md'",
|
|
1160
|
-
"computed": false
|
|
1161
|
-
}, {
|
|
1162
|
-
"value": "'lg'",
|
|
1163
|
-
"computed": false
|
|
1164
|
-
}, {
|
|
1165
|
-
"value": "'xl'",
|
|
1166
|
-
"computed": false
|
|
1167
|
-
}]
|
|
1156
|
+
"name": "custom",
|
|
1157
|
+
"raw": "function checkProps(props, propName, componentName) {\n if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {\n warning(\n false,\n `The value \\`${props[propName]}\\` has been deprecated for the ` +\n `\\`${propName}\\` prop on the ${componentName} component. It will be removed in the next major ` +\n `release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.`\n );\n }\n}"
|
|
1168
1158
|
},
|
|
1169
1159
|
"required": false,
|
|
1170
1160
|
"description": "Size prop from Carbon to shrink row height (and header height in some instances)"
|
|
@@ -95,12 +95,6 @@ var defaultProps = {
|
|
|
95
95
|
langDir: 'ltr'
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
var _onClick = function onClick(e, id, action, onApplyRowAction) {
|
|
99
|
-
onApplyRowAction(action, id);
|
|
100
|
-
e.preventDefault();
|
|
101
|
-
e.stopPropagation();
|
|
102
|
-
};
|
|
103
|
-
|
|
104
98
|
var renderBundledIconUsingName = function renderBundledIconUsingName(iconName, label) {
|
|
105
99
|
var Icon = icons[iconName];
|
|
106
100
|
return /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -148,12 +142,22 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
148
142
|
}
|
|
149
143
|
});
|
|
150
144
|
|
|
145
|
+
_defineProperty(_assertThisInitialized(_this), "onClick", function (e, id, action, onApplyRowAction) {
|
|
146
|
+
onApplyRowAction(action, id);
|
|
147
|
+
e.preventDefault();
|
|
148
|
+
e.stopPropagation();
|
|
149
|
+
|
|
150
|
+
_this.handleClose();
|
|
151
|
+
});
|
|
152
|
+
|
|
151
153
|
return _this;
|
|
152
154
|
}
|
|
153
155
|
|
|
154
156
|
_createClass(RowActionsCell, [{
|
|
155
157
|
key: "render",
|
|
156
158
|
value: function render() {
|
|
159
|
+
var _this2 = this;
|
|
160
|
+
|
|
157
161
|
var _this$props = this.props,
|
|
158
162
|
id = _this$props.id,
|
|
159
163
|
tableId = _this$props.tableId,
|
|
@@ -216,7 +220,7 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
216
220
|
tooltipAlignment: "end",
|
|
217
221
|
size: "small",
|
|
218
222
|
onClick: function onClick(e) {
|
|
219
|
-
return
|
|
223
|
+
return _this2.onClick(e, id, actionId, onApplyRowAction);
|
|
220
224
|
}
|
|
221
225
|
}), labelText);
|
|
222
226
|
}), hasOverflow ? /*#__PURE__*/React__default.createElement(OverflowMenu, {
|
|
@@ -238,7 +242,7 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
238
242
|
"data-testid": "".concat(tableId, "-").concat(id, "-row-actions-cell-overflow-menu-item-").concat(action.id),
|
|
239
243
|
key: "".concat(id, "-row-actions-button-").concat(action.id),
|
|
240
244
|
onClick: function onClick(e) {
|
|
241
|
-
return
|
|
245
|
+
return _this2.onClick(e, id, action.id, onApplyRowAction);
|
|
242
246
|
},
|
|
243
247
|
requireTitle: !action.renderIcon,
|
|
244
248
|
hasDivider: action.hasDivider,
|
|
@@ -274,6 +278,24 @@ RowActionsCell.__docgenInfo = {
|
|
|
274
278
|
"modifiers": [],
|
|
275
279
|
"params": [],
|
|
276
280
|
"returns": null
|
|
281
|
+
}, {
|
|
282
|
+
"name": "onClick",
|
|
283
|
+
"docblock": null,
|
|
284
|
+
"modifiers": [],
|
|
285
|
+
"params": [{
|
|
286
|
+
"name": "e",
|
|
287
|
+
"type": null
|
|
288
|
+
}, {
|
|
289
|
+
"name": "id",
|
|
290
|
+
"type": null
|
|
291
|
+
}, {
|
|
292
|
+
"name": "action",
|
|
293
|
+
"type": null
|
|
294
|
+
}, {
|
|
295
|
+
"name": "onApplyRowAction",
|
|
296
|
+
"type": null
|
|
297
|
+
}],
|
|
298
|
+
"returns": null
|
|
277
299
|
}],
|
|
278
300
|
"displayName": "RowActionsCell",
|
|
279
301
|
"props": {
|
|
@@ -12,8 +12,8 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
12
12
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
13
13
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('core-js/modules/es.array.includes.js');
|
|
15
|
-
require('core-js/modules/es.array.map.js');
|
|
16
15
|
require('core-js/modules/es.array.concat.js');
|
|
16
|
+
require('core-js/modules/es.array.map.js');
|
|
17
17
|
require('core-js/modules/es.regexp.exec.js');
|
|
18
18
|
require('core-js/modules/es.string.search.js');
|
|
19
19
|
require('core-js/modules/es.array.slice.js');
|
|
@@ -36,6 +36,7 @@ var carbonComponentsReact = require('carbon-components-react');
|
|
|
36
36
|
var uniqueId = require('lodash/uniqueId');
|
|
37
37
|
var classnames = require('classnames');
|
|
38
38
|
var useLangDirection = require('use-lang-direction');
|
|
39
|
+
var warning = require('warning');
|
|
39
40
|
var componentUtilityFunctions = require('../../utils/componentUtilityFunctions.js');
|
|
40
41
|
var Settings = require('../../constants/Settings.js');
|
|
41
42
|
var FilterTags = require('../FilterTags/FilterTags.js');
|
|
@@ -66,6 +67,7 @@ var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
|
|
|
66
67
|
var useDeepCompareEffect__default = /*#__PURE__*/_interopDefaultLegacy(useDeepCompareEffect);
|
|
67
68
|
var uniqueId__default = /*#__PURE__*/_interopDefaultLegacy(uniqueId);
|
|
68
69
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
70
|
+
var warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);
|
|
69
71
|
|
|
70
72
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
71
73
|
|
|
@@ -155,7 +157,11 @@ var propTypes = {
|
|
|
155
157
|
}),
|
|
156
158
|
|
|
157
159
|
/** Size prop from Carbon to shrink row height (and header height in some instances) */
|
|
158
|
-
size:
|
|
160
|
+
size: function checkProps(props, propName, componentName) {
|
|
161
|
+
if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {
|
|
162
|
+
warning__default['default'](false, "The value `".concat(props[propName], "` has been deprecated for the ") + "`".concat(propName, "` prop on the ").concat(componentName, " component. It will be removed in the next major ") + "release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.") ;
|
|
163
|
+
}
|
|
164
|
+
},
|
|
159
165
|
|
|
160
166
|
/** Initial state of the table, should be updated via a local state wrapper component implementation or via a central store/redux see StatefulTable component for an example */
|
|
161
167
|
view: PropTypes__default['default'].shape({
|
|
@@ -1166,23 +1172,8 @@ Table.__docgenInfo = {
|
|
|
1166
1172
|
},
|
|
1167
1173
|
"size": {
|
|
1168
1174
|
"type": {
|
|
1169
|
-
"name": "
|
|
1170
|
-
"
|
|
1171
|
-
"value": "'xs'",
|
|
1172
|
-
"computed": false
|
|
1173
|
-
}, {
|
|
1174
|
-
"value": "'sm'",
|
|
1175
|
-
"computed": false
|
|
1176
|
-
}, {
|
|
1177
|
-
"value": "'md'",
|
|
1178
|
-
"computed": false
|
|
1179
|
-
}, {
|
|
1180
|
-
"value": "'lg'",
|
|
1181
|
-
"computed": false
|
|
1182
|
-
}, {
|
|
1183
|
-
"value": "'xl'",
|
|
1184
|
-
"computed": false
|
|
1185
|
-
}]
|
|
1175
|
+
"name": "custom",
|
|
1176
|
+
"raw": "function checkProps(props, propName, componentName) {\n if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {\n warning(\n false,\n `The value \\`${props[propName]}\\` has been deprecated for the ` +\n `\\`${propName}\\` prop on the ${componentName} component. It will be removed in the next major ` +\n `release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.`\n );\n }\n}"
|
|
1186
1177
|
},
|
|
1187
1178
|
"required": false,
|
|
1188
1179
|
"description": "Size prop from Carbon to shrink row height (and header height in some instances)"
|
|
@@ -113,12 +113,6 @@ var defaultProps = {
|
|
|
113
113
|
langDir: 'ltr'
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
var _onClick = function onClick(e, id, action, onApplyRowAction) {
|
|
117
|
-
onApplyRowAction(action, id);
|
|
118
|
-
e.preventDefault();
|
|
119
|
-
e.stopPropagation();
|
|
120
|
-
};
|
|
121
|
-
|
|
122
116
|
var renderBundledIconUsingName = function renderBundledIconUsingName(iconName, label) {
|
|
123
117
|
var Icon = bundledIcons['default'][iconName];
|
|
124
118
|
return /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
@@ -166,12 +160,22 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
166
160
|
}
|
|
167
161
|
});
|
|
168
162
|
|
|
163
|
+
_defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "onClick", function (e, id, action, onApplyRowAction) {
|
|
164
|
+
onApplyRowAction(action, id);
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
e.stopPropagation();
|
|
167
|
+
|
|
168
|
+
_this.handleClose();
|
|
169
|
+
});
|
|
170
|
+
|
|
169
171
|
return _this;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
_createClass__default['default'](RowActionsCell, [{
|
|
173
175
|
key: "render",
|
|
174
176
|
value: function render() {
|
|
177
|
+
var _this2 = this;
|
|
178
|
+
|
|
175
179
|
var _this$props = this.props,
|
|
176
180
|
id = _this$props.id,
|
|
177
181
|
tableId = _this$props.tableId,
|
|
@@ -234,7 +238,7 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
234
238
|
tooltipAlignment: "end",
|
|
235
239
|
size: "small",
|
|
236
240
|
onClick: function onClick(e) {
|
|
237
|
-
return
|
|
241
|
+
return _this2.onClick(e, id, actionId, onApplyRowAction);
|
|
238
242
|
}
|
|
239
243
|
}), labelText);
|
|
240
244
|
}), hasOverflow ? /*#__PURE__*/React__default['default'].createElement(carbonComponentsReact.OverflowMenu, {
|
|
@@ -256,7 +260,7 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
256
260
|
"data-testid": "".concat(tableId, "-").concat(id, "-row-actions-cell-overflow-menu-item-").concat(action.id),
|
|
257
261
|
key: "".concat(id, "-row-actions-button-").concat(action.id),
|
|
258
262
|
onClick: function onClick(e) {
|
|
259
|
-
return
|
|
263
|
+
return _this2.onClick(e, id, action.id, onApplyRowAction);
|
|
260
264
|
},
|
|
261
265
|
requireTitle: !action.renderIcon,
|
|
262
266
|
hasDivider: action.hasDivider,
|
|
@@ -292,6 +296,24 @@ RowActionsCell.__docgenInfo = {
|
|
|
292
296
|
"modifiers": [],
|
|
293
297
|
"params": [],
|
|
294
298
|
"returns": null
|
|
299
|
+
}, {
|
|
300
|
+
"name": "onClick",
|
|
301
|
+
"docblock": null,
|
|
302
|
+
"modifiers": [],
|
|
303
|
+
"params": [{
|
|
304
|
+
"name": "e",
|
|
305
|
+
"type": null
|
|
306
|
+
}, {
|
|
307
|
+
"name": "id",
|
|
308
|
+
"type": null
|
|
309
|
+
}, {
|
|
310
|
+
"name": "action",
|
|
311
|
+
"type": null
|
|
312
|
+
}, {
|
|
313
|
+
"name": "onApplyRowAction",
|
|
314
|
+
"type": null
|
|
315
|
+
}],
|
|
316
|
+
"returns": null
|
|
295
317
|
}],
|
|
296
318
|
"displayName": "RowActionsCell",
|
|
297
319
|
"props": {
|
package/package.json
CHANGED
|
@@ -339,10 +339,10 @@
|
|
|
339
339
|
"whatwg-fetch": "^3.0.0"
|
|
340
340
|
},
|
|
341
341
|
"sideEffects": false,
|
|
342
|
-
"version": "2.146.
|
|
342
|
+
"version": "2.146.3",
|
|
343
343
|
"resolutions": {
|
|
344
344
|
"chokidar": "3.3.1",
|
|
345
345
|
"react-grid-layout": "1.2.2"
|
|
346
346
|
},
|
|
347
|
-
"gitHead": "
|
|
347
|
+
"gitHead": "534189e6ed827323268c99caa2a0bce56da8d6b5"
|
|
348
348
|
}
|
|
@@ -32937,12 +32937,6 @@
|
|
|
32937
32937
|
langDir: 'ltr'
|
|
32938
32938
|
};
|
|
32939
32939
|
|
|
32940
|
-
var _onClick = function onClick(e, id, action, onApplyRowAction) {
|
|
32941
|
-
onApplyRowAction(action, id);
|
|
32942
|
-
e.preventDefault();
|
|
32943
|
-
e.stopPropagation();
|
|
32944
|
-
};
|
|
32945
|
-
|
|
32946
32940
|
var renderBundledIconUsingName = function renderBundledIconUsingName(iconName, label) {
|
|
32947
32941
|
var Icon = icons[iconName];
|
|
32948
32942
|
return /*#__PURE__*/React__default$1['default'].createElement(Icon, {
|
|
@@ -32990,12 +32984,22 @@
|
|
|
32990
32984
|
}
|
|
32991
32985
|
});
|
|
32992
32986
|
|
|
32987
|
+
defineProperty$c(assertThisInitialized(_this), "onClick", function (e, id, action, onApplyRowAction) {
|
|
32988
|
+
onApplyRowAction(action, id);
|
|
32989
|
+
e.preventDefault();
|
|
32990
|
+
e.stopPropagation();
|
|
32991
|
+
|
|
32992
|
+
_this.handleClose();
|
|
32993
|
+
});
|
|
32994
|
+
|
|
32993
32995
|
return _this;
|
|
32994
32996
|
}
|
|
32995
32997
|
|
|
32996
32998
|
createClass(RowActionsCell, [{
|
|
32997
32999
|
key: "render",
|
|
32998
33000
|
value: function render() {
|
|
33001
|
+
var _this2 = this;
|
|
33002
|
+
|
|
32999
33003
|
var _this$props = this.props,
|
|
33000
33004
|
id = _this$props.id,
|
|
33001
33005
|
tableId = _this$props.tableId,
|
|
@@ -33058,7 +33062,7 @@
|
|
|
33058
33062
|
tooltipAlignment: "end",
|
|
33059
33063
|
size: "small",
|
|
33060
33064
|
onClick: function onClick(e) {
|
|
33061
|
-
return
|
|
33065
|
+
return _this2.onClick(e, id, actionId, onApplyRowAction);
|
|
33062
33066
|
}
|
|
33063
33067
|
}), labelText);
|
|
33064
33068
|
}), hasOverflow ? /*#__PURE__*/React__default$1['default'].createElement(carbonComponentsReact.OverflowMenu, {
|
|
@@ -33080,7 +33084,7 @@
|
|
|
33080
33084
|
"data-testid": "".concat(tableId, "-").concat(id, "-row-actions-cell-overflow-menu-item-").concat(action.id),
|
|
33081
33085
|
key: "".concat(id, "-row-actions-button-").concat(action.id),
|
|
33082
33086
|
onClick: function onClick(e) {
|
|
33083
|
-
return
|
|
33087
|
+
return _this2.onClick(e, id, action.id, onApplyRowAction);
|
|
33084
33088
|
},
|
|
33085
33089
|
requireTitle: !action.renderIcon,
|
|
33086
33090
|
hasDivider: action.hasDivider,
|
|
@@ -33116,6 +33120,24 @@
|
|
|
33116
33120
|
"modifiers": [],
|
|
33117
33121
|
"params": [],
|
|
33118
33122
|
"returns": null
|
|
33123
|
+
}, {
|
|
33124
|
+
"name": "onClick",
|
|
33125
|
+
"docblock": null,
|
|
33126
|
+
"modifiers": [],
|
|
33127
|
+
"params": [{
|
|
33128
|
+
"name": "e",
|
|
33129
|
+
"type": null
|
|
33130
|
+
}, {
|
|
33131
|
+
"name": "id",
|
|
33132
|
+
"type": null
|
|
33133
|
+
}, {
|
|
33134
|
+
"name": "action",
|
|
33135
|
+
"type": null
|
|
33136
|
+
}, {
|
|
33137
|
+
"name": "onApplyRowAction",
|
|
33138
|
+
"type": null
|
|
33139
|
+
}],
|
|
33140
|
+
"returns": null
|
|
33119
33141
|
}],
|
|
33120
33142
|
"displayName": "RowActionsCell",
|
|
33121
33143
|
"props": {
|
|
@@ -36023,7 +36045,11 @@
|
|
|
36023
36045
|
}),
|
|
36024
36046
|
|
|
36025
36047
|
/** Size prop from Carbon to shrink row height (and header height in some instances) */
|
|
36026
|
-
size:
|
|
36048
|
+
size: function checkProps(props, propName, componentName) {
|
|
36049
|
+
if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {
|
|
36050
|
+
warning_1(false, "The value `".concat(props[propName], "` has been deprecated for the ") + "`".concat(propName, "` prop on the ").concat(componentName, " component. It will be removed in the next major ") + "release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.") ;
|
|
36051
|
+
}
|
|
36052
|
+
},
|
|
36027
36053
|
|
|
36028
36054
|
/** Initial state of the table, should be updated via a local state wrapper component implementation or via a central store/redux see StatefulTable component for an example */
|
|
36029
36055
|
view: PropTypes__default['default'].shape({
|
|
@@ -37034,23 +37060,8 @@
|
|
|
37034
37060
|
},
|
|
37035
37061
|
"size": {
|
|
37036
37062
|
"type": {
|
|
37037
|
-
"name": "
|
|
37038
|
-
"
|
|
37039
|
-
"value": "'xs'",
|
|
37040
|
-
"computed": false
|
|
37041
|
-
}, {
|
|
37042
|
-
"value": "'sm'",
|
|
37043
|
-
"computed": false
|
|
37044
|
-
}, {
|
|
37045
|
-
"value": "'md'",
|
|
37046
|
-
"computed": false
|
|
37047
|
-
}, {
|
|
37048
|
-
"value": "'lg'",
|
|
37049
|
-
"computed": false
|
|
37050
|
-
}, {
|
|
37051
|
-
"value": "'xl'",
|
|
37052
|
-
"computed": false
|
|
37053
|
-
}]
|
|
37063
|
+
"name": "custom",
|
|
37064
|
+
"raw": "function checkProps(props, propName, componentName) {\n if (['compact', 'short', 'normal', 'tall'].includes(props[propName])) {\n warning(\n false,\n `The value \\`${props[propName]}\\` has been deprecated for the ` +\n `\\`${propName}\\` prop on the ${componentName} component. It will be removed in the next major ` +\n `release. Please use 'xs', 'sm', 'md', 'lg', or 'xl' instead.`\n );\n }\n}"
|
|
37054
37065
|
},
|
|
37055
37066
|
"required": false,
|
|
37056
37067
|
"description": "Size prop from Carbon to shrink row height (and header height in some instances)"
|