@splunk/react-ui 4.17.0 → 4.18.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/Accordion.js +2 -2
- package/AnimationToggle.js +5 -5
- package/Button.js +7 -7
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +40 -7
- package/Calendar.js +7 -5
- package/CloseButton.js +5 -5
- package/Code.js +7 -6
- package/Color.js +206 -179
- package/ColumnLayout.js +8 -8
- package/ComboBox.js +2 -0
- package/Concertina.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +7 -7
- package/DualListbox.js +11 -8
- package/File.js +9 -9
- package/FormRows.js +4 -4
- package/Heading.js +8 -4
- package/JSONTree.js +30 -28
- package/Layer.js +10 -10
- package/Link.js +4 -4
- package/List.js +7 -4
- package/MIGRATION.mdx +295 -0
- package/Markdown.js +12 -7
- package/Menu.js +19 -19
- package/Message.js +25 -25
- package/MessageBar.js +21 -21
- package/Modal.js +7 -7
- package/Multiselect.js +46 -36
- package/Number.js +3 -2
- package/Paginator.js +6 -6
- package/Popover.js +17 -13
- package/Progress.js +2 -2
- package/RadioBar.js +2 -2
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/Scroll.js +2 -2
- package/Select.js +14 -13
- package/SidePanel.js +2 -2
- package/Slider.js +7 -7
- package/StepBar.js +8 -8
- package/Switch.js +2 -2
- package/TabBar.js +85 -54
- package/Table.js +13 -13
- package/Text.js +7 -7
- package/TextArea.js +8 -6
- package/Typography.js +2 -2
- package/package.json +10 -15
- package/stubs-dependencies.d.ts +0 -9
- package/stubs-splunkui.d.ts +0 -24
- package/types/src/Button/Button.d.ts +5 -3
- package/types/src/Clickable/Clickable.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -0
- package/types/src/Color/Color.d.ts +6 -6
- package/types/src/Color/Palette.d.ts +46 -0
- package/types/src/Concertina/Panel.d.ts +1 -0
- package/types/src/FormRows/Row.d.ts +1 -0
- package/types/src/Heading/Heading.d.ts +7 -2
- package/types/src/JSONTree/JSONTree.d.ts +2 -1
- package/types/src/Layer/Layer.d.ts +2 -0
- package/types/src/List/List.d.ts +9 -1
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +2 -0
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Number/Number.d.ts +9 -4
- package/types/src/Popover/Popover.d.ts +2 -0
- package/types/src/TabBar/Tab.d.ts +5 -1
- package/types/src/Table/Head.d.ts +1 -0
- package/types/src/Table/HeadCell.d.ts +1 -0
- package/types/src/Table/HeadDropdownCell.d.ts +1 -0
- package/types/src/Table/Table.d.ts +3 -1
- package/types/src/Text/Text.d.ts +3 -1
- package/types/src/TextArea/TextArea.d.ts +13 -4
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +2 -0
- package/MIGRATION.md +0 -49
- package/types/src/List/docs/examples/Decimal.d.ts +0 -2
- package/types/src/List/docs/examples/Disc.d.ts +0 -2
- package/types/src/List/docs/examples/LowerAlpha.d.ts +0 -2
- package/types/src/List/docs/examples/UpperAlpha.d.ts +0 -2
package/Table.js
CHANGED
|
@@ -184,13 +184,13 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
184
184
|
/* 15 */
|
|
185
185
|
/***/ (function(module, exports) {
|
|
186
186
|
|
|
187
|
-
module.exports = require("
|
|
187
|
+
module.exports = require("lodash/includes");
|
|
188
188
|
|
|
189
189
|
/***/ }),
|
|
190
190
|
/* 16 */
|
|
191
191
|
/***/ (function(module, exports) {
|
|
192
192
|
|
|
193
|
-
module.exports = require("
|
|
193
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
194
194
|
|
|
195
195
|
/***/ }),
|
|
196
196
|
/* 17 */
|
|
@@ -467,13 +467,13 @@ module.exports = require("lodash/without");
|
|
|
467
467
|
/* 65 */,
|
|
468
468
|
/* 66 */,
|
|
469
469
|
/* 67 */,
|
|
470
|
-
/* 68
|
|
470
|
+
/* 68 */,
|
|
471
|
+
/* 69 */
|
|
471
472
|
/***/ (function(module, exports) {
|
|
472
473
|
|
|
473
474
|
module.exports = require("lodash/isFunction");
|
|
474
475
|
|
|
475
476
|
/***/ }),
|
|
476
|
-
/* 69 */,
|
|
477
477
|
/* 70 */,
|
|
478
478
|
/* 71 */,
|
|
479
479
|
/* 72 */,
|
|
@@ -484,7 +484,8 @@ module.exports = require("lodash/isFunction");
|
|
|
484
484
|
module.exports = require("lodash/isNumber");
|
|
485
485
|
|
|
486
486
|
/***/ }),
|
|
487
|
-
/* 75
|
|
487
|
+
/* 75 */,
|
|
488
|
+
/* 76 */
|
|
488
489
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
489
490
|
|
|
490
491
|
"use strict";
|
|
@@ -507,7 +508,6 @@ function assertDefined(val, msg) {
|
|
|
507
508
|
|
|
508
509
|
|
|
509
510
|
/***/ }),
|
|
510
|
-
/* 76 */,
|
|
511
511
|
/* 77 */,
|
|
512
512
|
/* 78 */,
|
|
513
513
|
/* 79 */,
|
|
@@ -548,13 +548,13 @@ module.exports = require("@splunk/react-icons/DotsThreeVertical");
|
|
|
548
548
|
/* 104 */,
|
|
549
549
|
/* 105 */,
|
|
550
550
|
/* 106 */,
|
|
551
|
-
/* 107
|
|
551
|
+
/* 107 */,
|
|
552
|
+
/* 108 */
|
|
552
553
|
/***/ (function(module, exports) {
|
|
553
554
|
|
|
554
555
|
module.exports = require("@splunk/react-icons/CaretsSmallUpDown");
|
|
555
556
|
|
|
556
557
|
/***/ }),
|
|
557
|
-
/* 108 */,
|
|
558
558
|
/* 109 */,
|
|
559
559
|
/* 110 */,
|
|
560
560
|
/* 111 */
|
|
@@ -716,7 +716,7 @@ var external_react_resize_detector_ = __webpack_require__(159);
|
|
|
716
716
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
717
717
|
|
|
718
718
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
719
|
-
var EventListener_ = __webpack_require__(
|
|
719
|
+
var EventListener_ = __webpack_require__(16);
|
|
720
720
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
721
721
|
|
|
722
722
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
@@ -730,7 +730,7 @@ var findIndex_ = __webpack_require__(111);
|
|
|
730
730
|
var findIndex_default = /*#__PURE__*/__webpack_require__.n(findIndex_);
|
|
731
731
|
|
|
732
732
|
// EXTERNAL MODULE: external "lodash/includes"
|
|
733
|
-
var includes_ = __webpack_require__(
|
|
733
|
+
var includes_ = __webpack_require__(15);
|
|
734
734
|
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
735
735
|
|
|
736
736
|
// EXTERNAL MODULE: external "lodash/without"
|
|
@@ -1468,7 +1468,7 @@ var CaretSmallDown_ = __webpack_require__(53);
|
|
|
1468
1468
|
var CaretSmallDown_default = /*#__PURE__*/__webpack_require__.n(CaretSmallDown_);
|
|
1469
1469
|
|
|
1470
1470
|
// EXTERNAL MODULE: external "@splunk/react-icons/CaretsSmallUpDown"
|
|
1471
|
-
var CaretsSmallUpDown_ = __webpack_require__(
|
|
1471
|
+
var CaretsSmallUpDown_ = __webpack_require__(108);
|
|
1472
1472
|
var CaretsSmallUpDown_default = /*#__PURE__*/__webpack_require__.n(CaretsSmallUpDown_);
|
|
1473
1473
|
|
|
1474
1474
|
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Caret"
|
|
@@ -3738,7 +3738,7 @@ var isFinite_ = __webpack_require__(19);
|
|
|
3738
3738
|
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_);
|
|
3739
3739
|
|
|
3740
3740
|
// EXTERNAL MODULE: external "lodash/isFunction"
|
|
3741
|
-
var isFunction_ = __webpack_require__(
|
|
3741
|
+
var isFunction_ = __webpack_require__(69);
|
|
3742
3742
|
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_);
|
|
3743
3743
|
|
|
3744
3744
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
@@ -4397,7 +4397,7 @@ HeadTable_defineProperty(HeadTable_HeadTable, "defaultProps", HeadTable_defaultP
|
|
|
4397
4397
|
|
|
4398
4398
|
/* harmony default export */ var Table_HeadTable = (HeadTable_HeadTable);
|
|
4399
4399
|
// EXTERNAL MODULE: ./src/utils/types.ts
|
|
4400
|
-
var types = __webpack_require__(
|
|
4400
|
+
var types = __webpack_require__(76);
|
|
4401
4401
|
|
|
4402
4402
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4403
4403
|
function Table_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Table_typeof = function _typeof(obj) { return typeof obj; }; } else { Table_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Table_typeof(obj); }
|
package/Text.js
CHANGED
|
@@ -108,7 +108,7 @@ module.exports = require("lodash/has");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 104:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
@@ -194,11 +194,11 @@ var omit_ = __webpack_require__(5);
|
|
|
194
194
|
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
195
195
|
|
|
196
196
|
// EXTERNAL MODULE: external "lodash/pickBy"
|
|
197
|
-
var pickBy_ = __webpack_require__(
|
|
197
|
+
var pickBy_ = __webpack_require__(61);
|
|
198
198
|
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_);
|
|
199
199
|
|
|
200
200
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
201
|
-
var ControlGroup_ = __webpack_require__(
|
|
201
|
+
var ControlGroup_ = __webpack_require__(104);
|
|
202
202
|
|
|
203
203
|
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
204
204
|
var Cross_ = __webpack_require__(25);
|
|
@@ -1107,10 +1107,10 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1107
1107
|
|
|
1108
1108
|
}, {
|
|
1109
1109
|
key: "focus",
|
|
1110
|
-
value: function focus() {
|
|
1110
|
+
value: function focus(options) {
|
|
1111
1111
|
var _this$input2;
|
|
1112
1112
|
|
|
1113
|
-
(_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.focus();
|
|
1113
|
+
(_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.focus(options);
|
|
1114
1114
|
}
|
|
1115
1115
|
}, {
|
|
1116
1116
|
key: "select",
|
|
@@ -1203,7 +1203,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1203
1203
|
$error: error
|
|
1204
1204
|
});
|
|
1205
1205
|
|
|
1206
|
-
var haveSyntheticPlaceholder = useSyntheticPlaceholder && placeholder && !displayValue; // Do not render value in DOM when type is password, or
|
|
1206
|
+
var haveSyntheticPlaceholder = useSyntheticPlaceholder && placeholder && !displayValue; // Do not render value in DOM when type is password, or passwordVisibilityToggle is enabled
|
|
1207
1207
|
|
|
1208
1208
|
var dataTestValue = type === 'password' || passwordVisibilityToggle ? undefined : displayValue; // Firefox hack (SUI-2716). Remove when fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1427173
|
|
1209
1209
|
|
|
@@ -1354,7 +1354,7 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
1354
1354
|
|
|
1355
1355
|
/***/ }),
|
|
1356
1356
|
|
|
1357
|
-
/***/
|
|
1357
|
+
/***/ 61:
|
|
1358
1358
|
/***/ (function(module, exports) {
|
|
1359
1359
|
|
|
1360
1360
|
module.exports = require("lodash/pickBy");
|
package/TextArea.js
CHANGED
|
@@ -108,7 +108,7 @@ module.exports = require("lodash/has");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 104:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
@@ -142,7 +142,7 @@ function updateReactRef(ref, current) {
|
|
|
142
142
|
|
|
143
143
|
/***/ }),
|
|
144
144
|
|
|
145
|
-
/***/
|
|
145
|
+
/***/ 16:
|
|
146
146
|
/***/ (function(module, exports) {
|
|
147
147
|
|
|
148
148
|
module.exports = require("@splunk/react-ui/EventListener");
|
|
@@ -209,7 +209,7 @@ var omit_ = __webpack_require__(5);
|
|
|
209
209
|
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
210
210
|
|
|
211
211
|
// EXTERNAL MODULE: external "lodash/pickBy"
|
|
212
|
-
var pickBy_ = __webpack_require__(
|
|
212
|
+
var pickBy_ = __webpack_require__(61);
|
|
213
213
|
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_);
|
|
214
214
|
|
|
215
215
|
// EXTERNAL MODULE: external "lodash/throttle"
|
|
@@ -217,7 +217,7 @@ var throttle_ = __webpack_require__(31);
|
|
|
217
217
|
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
218
218
|
|
|
219
219
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
220
|
-
var ControlGroup_ = __webpack_require__(
|
|
220
|
+
var ControlGroup_ = __webpack_require__(104);
|
|
221
221
|
|
|
222
222
|
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
223
223
|
var Cross_ = __webpack_require__(25);
|
|
@@ -232,7 +232,7 @@ var Search_ = __webpack_require__(51);
|
|
|
232
232
|
var Search_default = /*#__PURE__*/__webpack_require__.n(Search_);
|
|
233
233
|
|
|
234
234
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
235
|
-
var EventListener_ = __webpack_require__(
|
|
235
|
+
var EventListener_ = __webpack_require__(16);
|
|
236
236
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
237
237
|
|
|
238
238
|
// EXTERNAL MODULE: external "@splunk/react-icons/Magnifier"
|
|
@@ -1018,6 +1018,8 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
1018
1018
|
|
|
1019
1019
|
if (false) {}
|
|
1020
1020
|
|
|
1021
|
+
if (false) {}
|
|
1022
|
+
|
|
1021
1023
|
TextArea.validateRows(props);
|
|
1022
1024
|
_this.handleResize = throttle_default()(_this.handleResize, 100);
|
|
1023
1025
|
return _this;
|
|
@@ -1310,7 +1312,7 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
1310
1312
|
|
|
1311
1313
|
/***/ }),
|
|
1312
1314
|
|
|
1313
|
-
/***/
|
|
1315
|
+
/***/ 61:
|
|
1314
1316
|
/***/ (function(module, exports) {
|
|
1315
1317
|
|
|
1316
1318
|
module.exports = require("lodash/pickBy");
|
package/Typography.js
CHANGED
|
@@ -121,7 +121,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
121
121
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
122
122
|
|
|
123
123
|
// EXTERNAL MODULE: external "@splunk/themes/mixins"
|
|
124
|
-
var mixins_ = __webpack_require__(
|
|
124
|
+
var mixins_ = __webpack_require__(80);
|
|
125
125
|
var mixins_default = /*#__PURE__*/__webpack_require__.n(mixins_);
|
|
126
126
|
|
|
127
127
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -220,7 +220,7 @@ module.exports = require("styled-components");
|
|
|
220
220
|
|
|
221
221
|
/***/ }),
|
|
222
222
|
|
|
223
|
-
/***/
|
|
223
|
+
/***/ 80:
|
|
224
224
|
/***/ (function(module, exports) {
|
|
225
225
|
|
|
226
226
|
module.exports = require("@splunk/themes/mixins");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^16.8",
|
|
37
37
|
"react-dom": "^16.8",
|
|
38
|
-
"styled-components": "5.
|
|
38
|
+
"styled-components": "^5.3.10"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@splunk/react-icons": "^4.0.
|
|
42
|
-
"@splunk/themes": "^0.16.
|
|
41
|
+
"@splunk/react-icons": "^4.0.1",
|
|
42
|
+
"@splunk/themes": "^0.16.1",
|
|
43
43
|
"@splunk/ui-utils": "^1.6.0",
|
|
44
44
|
"@types/commonmark": "^0.27.0",
|
|
45
45
|
"@types/lodash": "^4.14.156",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
66
66
|
"@cypress/react": "^5.12.4",
|
|
67
67
|
"@cypress/webpack-dev-server": "^1.8.2",
|
|
68
|
-
"@splunk/babel-preset": "^
|
|
68
|
+
"@splunk/babel-preset": "^4.0.0",
|
|
69
69
|
"@splunk/cicd-tools": "^0.5.0",
|
|
70
|
-
"@splunk/docs-gen": "1.0.0-beta.
|
|
70
|
+
"@splunk/docs-gen": "1.0.0-beta.5",
|
|
71
71
|
"@splunk/eslint-config": "^4.0.0",
|
|
72
|
-
"@splunk/react-docs": "1.0.0-beta.
|
|
72
|
+
"@splunk/react-docs": "1.0.0-beta.5",
|
|
73
73
|
"@splunk/stylelint-config": "^4.0.0",
|
|
74
74
|
"@splunk/test-runner-utils": "^0.4.1",
|
|
75
75
|
"@splunk/webpack-configs": "^6.0.0",
|
|
@@ -84,9 +84,7 @@
|
|
|
84
84
|
"@testing-library/jest-dom": "^5.16.1",
|
|
85
85
|
"@testing-library/react": "^12.1.2",
|
|
86
86
|
"@testing-library/react-hooks": "^7.0.2",
|
|
87
|
-
"@types/
|
|
88
|
-
"@types/enzyme": "^3.10.5",
|
|
89
|
-
"@types/jest": "^25.2.1",
|
|
87
|
+
"@types/jest": "^26.0.0",
|
|
90
88
|
"@types/mocha": "^7.0.2",
|
|
91
89
|
"@types/node": "^10.17.26",
|
|
92
90
|
"@types/prismjs": "^1.16.1",
|
|
@@ -102,14 +100,11 @@
|
|
|
102
100
|
"babel-plugin-styled-components": "^1.10.7",
|
|
103
101
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
104
102
|
"babel-plugin-transform-require-context": "^0.1.1",
|
|
105
|
-
"chai": "^3.5.0",
|
|
106
103
|
"core-js": "^3.6.4",
|
|
107
104
|
"cross-env": "^6.0.3",
|
|
108
105
|
"cypress": "^9.5.1",
|
|
109
106
|
"cypress-real-events": "^1.7.0",
|
|
110
107
|
"docgen-loader": "^1.3.4",
|
|
111
|
-
"enzyme": "^3.11.0",
|
|
112
|
-
"enzyme-adapter-react-16": "^1.15.2",
|
|
113
108
|
"eslint": "^7.14.0",
|
|
114
109
|
"eslint-config-airbnb": "^18.2.1",
|
|
115
110
|
"eslint-config-prettier": "^6.15.0",
|
|
@@ -124,7 +119,7 @@
|
|
|
124
119
|
"glob": "^7.1.6",
|
|
125
120
|
"html-webpack-plugin": "^3.2.0",
|
|
126
121
|
"http-server": "^14.1.1",
|
|
127
|
-
"jest": "^
|
|
122
|
+
"jest": "^26.6.3",
|
|
128
123
|
"jest-image-snapshot": "^5.1.0",
|
|
129
124
|
"jest-junit": "^10.0.0",
|
|
130
125
|
"jest-stare": "^2.4.1",
|
|
@@ -138,7 +133,7 @@
|
|
|
138
133
|
"react-dom": "^16.12.0",
|
|
139
134
|
"react-test-renderer": "^16.13.1",
|
|
140
135
|
"sinon": "^2.1.0",
|
|
141
|
-
"styled-components": "5.
|
|
136
|
+
"styled-components": "^5.3.10",
|
|
142
137
|
"stylelint": "^13.0.0",
|
|
143
138
|
"ts-loader": "^6.2.1",
|
|
144
139
|
"typescript": "^4.0.5",
|
package/stubs-dependencies.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
declare namespace Chai {
|
|
2
|
-
interface Assert {
|
|
3
|
-
throwsSilent(fn: Function, message?: string): void;
|
|
4
|
-
throwsSilent(fn: Function, regExp: RegExp, message?: string): void;
|
|
5
|
-
throwsSilent(fn: Function, errType: Function, message?: string): void;
|
|
6
|
-
throwsSilent(fn: Function, errType: Function, regExp: RegExp): void;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
1
|
declare module 'commonmark-react-renderer' {
|
|
11
2
|
export default class Renderer {
|
|
12
3
|
constructor(options: {});
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -78,30 +78,6 @@ declare module '@splunk/ui-utils/userAgent' {
|
|
|
78
78
|
function isIE11(): boolean;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
declare module '@splunk/wdio-functional-test-runner/testUtils' {
|
|
82
|
-
function isEdge(): boolean;
|
|
83
|
-
function isFirefox(): boolean;
|
|
84
|
-
function isIE(): boolean;
|
|
85
|
-
function isSafari(): boolean;
|
|
86
|
-
|
|
87
|
-
function clickAndDragElement(options: {
|
|
88
|
-
selector: string | Function;
|
|
89
|
-
locationOffsetX?: number;
|
|
90
|
-
locationOffsetY?: number;
|
|
91
|
-
x?: number;
|
|
92
|
-
y?: number;
|
|
93
|
-
immediateRelease?: boolean;
|
|
94
|
-
}): (() => {}) | undefined;
|
|
95
|
-
|
|
96
|
-
function focusOnSelector(selector: string): void;
|
|
97
|
-
function resetFocus(): void;
|
|
98
|
-
function setTextValue(
|
|
99
|
-
selector: string | Function,
|
|
100
|
-
value: string,
|
|
101
|
-
options?: { click?: boolean }
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
81
|
declare module '@splunk/react-docs/DocExample' {
|
|
106
82
|
function getDependencyVersions(
|
|
107
83
|
packageJSON: Record<string, unknown>,
|
|
@@ -12,7 +12,7 @@ interface ButtonPropsBase {
|
|
|
12
12
|
/** Returns a value on click. Use when composing or testing. */
|
|
13
13
|
action?: string;
|
|
14
14
|
/** Changes the style of the button.
|
|
15
|
-
* @themeNotes Enterprise themes support the following appearances
|
|
15
|
+
* @themeNotes Enterprise themes support the following appearances: `default`, `primary`, `secondary`, `destructive` and `pill` (`pill` is deprecated). Prisma themes support the `default`, `primary`, `secondary`, `destructive`, `toggle` and `flat` appearances.
|
|
16
16
|
*/
|
|
17
17
|
appearance?: 'default' | 'secondary' | 'primary' | 'destructive' | 'pill' | 'toggle' | 'flat';
|
|
18
18
|
/** Removes the right border and border-radius of the button so you can
|
|
@@ -27,10 +27,12 @@ interface ButtonPropsBase {
|
|
|
27
27
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
28
28
|
*/
|
|
29
29
|
elementRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
* Turns the button red. If you use this prop, apply other error
|
|
31
33
|
* indicators, such as an error message, to meet accessibility
|
|
32
34
|
* requirements.
|
|
33
|
-
*
|
|
35
|
+
*
|
|
34
36
|
* */
|
|
35
37
|
error?: boolean;
|
|
36
38
|
/** Applies the text that displays on the button. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { legacyRefMode } from '@splunk/react-ui/Dropdown';
|
|
3
|
-
import { NavigationProviderClickHandler } from './NavigationProvider';
|
|
3
|
+
import { NavigationContext, NavigationProviderClickHandler } from './NavigationProvider';
|
|
4
4
|
import { ClassComponentProps } from '../utils/types';
|
|
5
5
|
export declare const isInternalLink: (to: string | undefined) => boolean;
|
|
6
6
|
interface ClickablePropsBase {
|
|
@@ -53,6 +53,7 @@ declare type ClickableProps = ClickableButtonProps | ClickableLinkProps;
|
|
|
53
53
|
*/
|
|
54
54
|
declare class Clickable extends Component<ClickableProps> {
|
|
55
55
|
private el;
|
|
56
|
+
context: React.ContextType<typeof NavigationContext>;
|
|
56
57
|
static contextType: React.Context<{
|
|
57
58
|
onClick?: NavigationProviderClickHandler | undefined;
|
|
58
59
|
prefix?: string | undefined;
|
|
@@ -67,6 +67,7 @@ interface CollapsiblePanelPropsBase {
|
|
|
67
67
|
overflow?: string;
|
|
68
68
|
/**
|
|
69
69
|
* When true, children are always rendered whether collapsed or not.
|
|
70
|
+
* Setting this to `true` can improve the performance of expanding panels at the cost of initial loading performance.
|
|
70
71
|
*/
|
|
71
72
|
renderChildrenWhenCollapsed?: boolean;
|
|
72
73
|
/**
|