@splunk/react-ui 4.1.0 → 4.4.1
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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +26 -35
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +22 -22
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +12 -6
- package/CHANGELOG.md +69 -2
- package/Calendar.js +23 -23
- package/Card.js +15 -15
- package/CardLayout.js +2 -2
- package/Chip.js +13 -13
- package/Clickable.js +4 -4
- package/CloseButton.js +8 -8
- package/Code.js +1279 -1120
- package/CollapsiblePanel.js +11 -11
- package/Color.js +111 -172
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +63 -30
- package/Concertina.js +2 -2
- package/ControlGroup.js +61 -20
- package/Date.js +66 -29
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/FetchOptions.js +8 -8
- package/File.js +87 -72
- package/FormRows.js +219 -331
- package/Heading.js +2 -2
- package/Image.js +15 -15
- package/JSONTree.js +63 -20
- package/Layer.js +8 -8
- package/Link.js +13 -13
- package/List.js +2 -2
- package/Markdown.js +19 -19
- package/Menu.js +315 -230
- package/Message.js +19 -19
- package/Modal.js +22 -11
- package/ModalLayer.js +25 -11
- package/Monogram.js +7 -7
- package/Multiselect.js +1931 -1057
- package/Number.js +40 -27
- package/Paginator.js +67 -49
- package/Paragraph.js +2 -2
- package/Popover.js +62 -35
- package/Progress.js +9 -21
- package/RadioBar.js +6 -6
- package/RadioList.js +2 -2
- package/ResultsMenu.js +18 -10
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +37 -19
- package/ScrollContainerContext.js +2 -2
- package/Select.js +1309 -562
- package/SidePanel.js +22 -17
- package/Slider.js +8 -8
- package/SlidingPanels.js +63 -47
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +20 -11
- package/TabBar.js +54 -40
- package/TabLayout.js +4 -4
- package/Table.js +148 -85
- package/Text.js +474 -356
- package/Tooltip.js +6 -6
- package/TransitionOpen.js +26 -24
- package/WaitSpinner.js +4 -4
- package/package.json +8 -7
- package/stubs-splunkui.d.ts +1 -0
- package/types/src/Accordion/Accordion.d.ts +2 -2
- package/types/src/Animation/Animation.d.ts +6 -5
- package/types/src/Button/Button.d.ts +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Calendar/DateTable.d.ts +1 -0
- package/types/src/Calendar/MonthHeader.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -2
- package/types/src/Color/Color.d.ts +5 -4
- package/types/src/Color/Swatch.d.ts +4 -15
- package/types/src/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/ControlGroup/ControlGroup.d.ts +7 -2
- package/types/src/ControlGroup/ControlGroupContext.d.ts +15 -0
- package/types/src/Date/Date.d.ts +7 -5
- package/types/src/Date/Icon.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +1 -1
- package/types/src/File/File.d.ts +2 -2
- package/types/src/File/FileContext.d.ts +9 -0
- package/types/src/File/Icon.d.ts +1 -0
- package/types/src/File/IconCloud.d.ts +1 -0
- package/types/src/File/Item.d.ts +5 -10
- package/types/src/File/PaperClip.d.ts +1 -0
- package/types/src/File/Retry.d.ts +1 -0
- package/types/src/File/Trash.d.ts +1 -0
- package/types/src/FormRows/FormRows.d.ts +11 -69
- package/types/src/FormRows/FormRowsContext.d.ts +9 -0
- package/types/src/FormRows/Row.d.ts +7 -20
- package/types/src/JSONTree/JSONTree.d.ts +14 -2
- package/types/src/JSONTree/TreeNode.d.ts +4 -1
- package/types/src/Menu/Divider.d.ts +1 -0
- package/types/src/Menu/Heading.d.ts +3 -1
- package/types/src/Menu/Item.d.ts +22 -6
- package/types/src/Menu/Menu.d.ts +17 -18
- package/types/src/Menu/MenuContext.d.ts +6 -0
- package/types/src/Menu/index.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +7 -26
- package/types/src/Multiselect/Multiselect.d.ts +7 -2
- package/types/src/Multiselect/Normal.d.ts +8 -2
- package/types/src/Multiselect/Option.d.ts +4 -1
- package/types/src/Number/IncrementIcon.d.ts +1 -0
- package/types/src/Number/Number.d.ts +4 -4
- package/types/src/Paginator/PageSeparator.d.ts +3 -0
- package/types/src/Popover/Popover.d.ts +5 -5
- package/types/src/Popover/PopoverContext.d.ts +6 -0
- package/types/src/Popover/index.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -5
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +4 -0
- package/types/src/Scroll/Inner.d.ts +4 -3
- package/types/src/Scroll/Scroll.d.ts +1 -1
- package/types/src/Select/Option.d.ts +2 -5
- package/types/src/Select/OptionBase.d.ts +94 -0
- package/types/src/Select/Select.d.ts +12 -37
- package/types/src/Select/SelectBase.d.ts +221 -0
- package/types/src/SidePanel/SidePanel.d.ts +4 -0
- package/types/src/Slider/Slider.d.ts +4 -4
- package/types/src/SlidingPanels/SlidingPanels.d.ts +0 -1
- package/types/src/Switch/CheckIcon.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +3 -7
- package/types/src/TabBar/Tab.d.ts +4 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -2
- package/types/src/Table/DragHandle.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +2 -2
- package/types/src/Table/HeadDropdownCell.d.ts +1 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +1 -0
- package/types/src/Table/HeadInner.d.ts +3 -3
- package/types/src/Table/Table.d.ts +7 -3
- package/types/src/Table/Toggle.d.ts +1 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -0
- package/types/src/Text/IconOutlinedView.d.ts +1 -0
- package/types/src/Text/Text.d.ts +28 -12
- package/types/src/Tooltip/InfoIcon.d.ts +1 -0
- package/types/src/Tooltip/Tooltip.d.ts +3 -3
- package/types/src/icons/Alert.d.ts +1 -0
- package/types/src/icons/AlertFilled.d.ts +1 -0
- package/types/src/icons/CaretDown.d.ts +1 -0
- package/types/src/icons/CaretRight.d.ts +1 -0
- package/types/src/icons/Check.d.ts +1 -0
- package/types/src/icons/ChevronDown.d.ts +1 -0
- package/types/src/icons/ChevronLeft.d.ts +1 -0
- package/types/src/icons/ChevronRight.d.ts +1 -0
- package/types/src/icons/CrossMark.d.ts +1 -0
- package/types/src/icons/External.d.ts +1 -0
- package/types/src/icons/InfoFilled.d.ts +1 -0
- package/types/src/icons/More.d.ts +1 -0
- package/types/src/icons/MoreVertical.d.ts +1 -0
- package/types/src/icons/Plus.d.ts +1 -0
- package/types/src/icons/SVG.d.ts +1 -0
- package/types/src/icons/Search.d.ts +1 -0
- package/types/src/icons/SortedDown.d.ts +1 -0
- package/types/src/icons/SortedUp.d.ts +1 -0
- package/types/src/icons/Success.d.ts +1 -0
- package/types/src/icons/SuccessFilled.d.ts +1 -0
- package/types/src/icons/WarningFilled.d.ts +1 -0
- package/types/src/utils/types.d.ts +1 -0
package/Tooltip.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 133);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 133:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -137,7 +137,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
137
137
|
var external_lodash_ = __webpack_require__(4);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
140
|
-
var Popover_ = __webpack_require__(
|
|
140
|
+
var Popover_ = __webpack_require__(17);
|
|
141
141
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
@@ -154,7 +154,7 @@ var id_ = __webpack_require__(10);
|
|
|
154
154
|
var i18n_ = __webpack_require__(5);
|
|
155
155
|
|
|
156
156
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
157
|
-
var SVG_ = __webpack_require__(
|
|
157
|
+
var SVG_ = __webpack_require__(22);
|
|
158
158
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
159
159
|
|
|
160
160
|
// CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
|
|
@@ -595,7 +595,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
595
595
|
|
|
596
596
|
/***/ }),
|
|
597
597
|
|
|
598
|
-
/***/
|
|
598
|
+
/***/ 17:
|
|
599
599
|
/***/ (function(module, exports) {
|
|
600
600
|
|
|
601
601
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -609,7 +609,7 @@ module.exports = require("react");
|
|
|
609
609
|
|
|
610
610
|
/***/ }),
|
|
611
611
|
|
|
612
|
-
/***/
|
|
612
|
+
/***/ 22:
|
|
613
613
|
/***/ (function(module, exports) {
|
|
614
614
|
|
|
615
615
|
module.exports = require("@splunk/react-icons/SVG");
|
package/TransitionOpen.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 155);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 155:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -123,16 +123,16 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
123
123
|
var external_lodash_ = __webpack_require__(4);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
126
|
-
var Animation_ = __webpack_require__(
|
|
126
|
+
var Animation_ = __webpack_require__(30);
|
|
127
127
|
|
|
128
128
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
129
|
-
var focus_ = __webpack_require__(
|
|
129
|
+
var focus_ = __webpack_require__(24);
|
|
130
130
|
|
|
131
131
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
|
-
var style_ = __webpack_require__(
|
|
132
|
+
var style_ = __webpack_require__(40);
|
|
133
133
|
|
|
134
|
-
// EXTERNAL MODULE: external "react-spring
|
|
135
|
-
var
|
|
134
|
+
// EXTERNAL MODULE: external "react-spring"
|
|
135
|
+
var external_react_spring_ = __webpack_require__(18);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "styled-components"
|
|
138
138
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -145,14 +145,14 @@ var themes_ = __webpack_require__(0);
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var Styled = external_styled_components_default()(
|
|
148
|
+
var Styled = external_styled_components_default()(external_react_spring_["animated"].div).withConfig({
|
|
149
149
|
displayName: "TransitionOpenStyles__Styled",
|
|
150
150
|
componentId: "sc-1x58s0g-0"
|
|
151
151
|
})(["", ";", ";"], themes_["mixins"].reset('block'), function (_ref) {
|
|
152
152
|
var $hideOverflow = _ref.$hideOverflow;
|
|
153
153
|
return $hideOverflow && Object(external_styled_components_["css"])(["overflow:hidden;"]);
|
|
154
154
|
});
|
|
155
|
-
var StyledInner = external_styled_components_default.
|
|
155
|
+
var StyledInner = external_styled_components_default()(external_react_spring_["animated"].div).withConfig({
|
|
156
156
|
displayName: "TransitionOpenStyles__StyledInner",
|
|
157
157
|
componentId: "sc-1x58s0g-1"
|
|
158
158
|
})(["", ";", ";width:100%;"], themes_["mixins"].reset('table'), themes_["mixins"].clearfix());
|
|
@@ -304,7 +304,9 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
304
304
|
outerId = _this$props2.outerId,
|
|
305
305
|
outerStyle = _this$props2.outerStyle;
|
|
306
306
|
var animating = _this.state.animating;
|
|
307
|
-
var offset = (
|
|
307
|
+
var offset = value.to(function (v) {
|
|
308
|
+
return _this.state.value || 0 - v;
|
|
309
|
+
});
|
|
308
310
|
var transform;
|
|
309
311
|
var dimension;
|
|
310
312
|
|
|
@@ -392,7 +394,6 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
392
394
|
var value = this.state.value;
|
|
393
395
|
var animateTo = open ? value : 0;
|
|
394
396
|
return /*#__PURE__*/external_react_default.a.createElement(Animation_["Spring"], {
|
|
395
|
-
"native": true,
|
|
396
397
|
to: {
|
|
397
398
|
value: animateTo || 0
|
|
398
399
|
},
|
|
@@ -401,7 +402,8 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
401
402
|
config: {
|
|
402
403
|
precision: 1
|
|
403
404
|
}
|
|
404
|
-
},
|
|
405
|
+
}, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
406
|
+
this.internalRender);
|
|
405
407
|
}
|
|
406
408
|
}]);
|
|
407
409
|
|
|
@@ -429,24 +431,24 @@ _defineProperty(TransitionOpen_TransitionOpen, "getDerivedStateFromProps", funct
|
|
|
429
431
|
|
|
430
432
|
/***/ }),
|
|
431
433
|
|
|
432
|
-
/***/
|
|
434
|
+
/***/ 18:
|
|
433
435
|
/***/ (function(module, exports) {
|
|
434
436
|
|
|
435
|
-
module.exports = require("react");
|
|
437
|
+
module.exports = require("react-spring");
|
|
436
438
|
|
|
437
439
|
/***/ }),
|
|
438
440
|
|
|
439
|
-
/***/
|
|
441
|
+
/***/ 2:
|
|
440
442
|
/***/ (function(module, exports) {
|
|
441
443
|
|
|
442
|
-
module.exports = require("
|
|
444
|
+
module.exports = require("react");
|
|
443
445
|
|
|
444
446
|
/***/ }),
|
|
445
447
|
|
|
446
|
-
/***/
|
|
448
|
+
/***/ 24:
|
|
447
449
|
/***/ (function(module, exports) {
|
|
448
450
|
|
|
449
|
-
module.exports = require("@splunk/
|
|
451
|
+
module.exports = require("@splunk/ui-utils/focus");
|
|
450
452
|
|
|
451
453
|
/***/ }),
|
|
452
454
|
|
|
@@ -457,24 +459,24 @@ module.exports = require("styled-components");
|
|
|
457
459
|
|
|
458
460
|
/***/ }),
|
|
459
461
|
|
|
460
|
-
/***/
|
|
462
|
+
/***/ 30:
|
|
461
463
|
/***/ (function(module, exports) {
|
|
462
464
|
|
|
463
|
-
module.exports = require("@splunk/ui
|
|
465
|
+
module.exports = require("@splunk/react-ui/Animation");
|
|
464
466
|
|
|
465
467
|
/***/ }),
|
|
466
468
|
|
|
467
|
-
/***/
|
|
469
|
+
/***/ 4:
|
|
468
470
|
/***/ (function(module, exports) {
|
|
469
471
|
|
|
470
|
-
module.exports = require("
|
|
472
|
+
module.exports = require("lodash");
|
|
471
473
|
|
|
472
474
|
/***/ }),
|
|
473
475
|
|
|
474
|
-
/***/
|
|
476
|
+
/***/ 40:
|
|
475
477
|
/***/ (function(module, exports) {
|
|
476
478
|
|
|
477
|
-
module.exports = require("
|
|
479
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
478
480
|
|
|
479
481
|
/***/ })
|
|
480
482
|
|
package/WaitSpinner.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 140);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 140:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -120,7 +120,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
120
120
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
121
121
|
|
|
122
122
|
// EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
123
|
-
var AnimationToggle_ = __webpack_require__(
|
|
123
|
+
var AnimationToggle_ = __webpack_require__(34);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
126
126
|
var themes_ = __webpack_require__(0);
|
|
@@ -282,7 +282,7 @@ module.exports = require("styled-components");
|
|
|
282
282
|
|
|
283
283
|
/***/ }),
|
|
284
284
|
|
|
285
|
-
/***/
|
|
285
|
+
/***/ 34:
|
|
286
286
|
/***/ (function(module, exports) {
|
|
287
287
|
|
|
288
288
|
module.exports = require("@splunk/react-ui/AnimationToggle");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@splunk/react-icons": "^3.1.0",
|
|
36
|
-
"@splunk/themes": "^0.
|
|
37
|
-
"@splunk/ui-utils": "^1.
|
|
36
|
+
"@splunk/themes": "^0.9.0",
|
|
37
|
+
"@splunk/ui-utils": "^1.4.0",
|
|
38
38
|
"@types/commonmark": "^0.27.0",
|
|
39
39
|
"@types/lodash": "^4.14.156",
|
|
40
40
|
"@types/react": "^16.9.38",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react-event-listener": "^0.6.2",
|
|
53
53
|
"react-resize-detector": "^3.2.1",
|
|
54
54
|
"react-sortable-hoc": "^1.11.0",
|
|
55
|
-
"react-spring": "^
|
|
55
|
+
"react-spring": "^9.2.2",
|
|
56
56
|
"tinycolor2": "^1.4.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
"@splunk/test-runner-utils": "^0.4.0",
|
|
64
64
|
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
65
65
|
"@splunk/webpack-configs": "^5.0.0",
|
|
66
|
-
"@storybook/addon-
|
|
66
|
+
"@storybook/addon-a11y": "^6.3.0",
|
|
67
|
+
"@storybook/addon-essentials": "^6.3.0",
|
|
67
68
|
"@storybook/csf": "^0.0.1",
|
|
68
|
-
"@storybook/react": "^6.
|
|
69
|
+
"@storybook/react": "^6.3.0",
|
|
69
70
|
"@types/chai": "^3.5.2",
|
|
70
71
|
"@types/enzyme": "^3.10.5",
|
|
71
72
|
"@types/jest": "^25.2.1",
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
"jest": "^25.1.0",
|
|
101
102
|
"jest-junit": "^10.0.0",
|
|
102
103
|
"mkdirp": "^0.5.1",
|
|
103
|
-
"prismjs": "^1.
|
|
104
|
+
"prismjs": "^1.25.0",
|
|
104
105
|
"prompt": "^1.0.0",
|
|
105
106
|
"raw-loader": "^0.5.1",
|
|
106
107
|
"react": "^16.12.0",
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare module '@splunk/ui-utils/focus' {
|
|
|
32
32
|
// getSortedTabbableElements returns Elements
|
|
33
33
|
// handleTab / takeFocus both call focus() which exists only on HTMLElement/SVGElement (modern browsers), but not Element
|
|
34
34
|
function getSortedTabbableElements(container: Element): Element[];
|
|
35
|
+
function isTabKey(event: KeyboardEvent<Element>): boolean;
|
|
35
36
|
function handleTab(container: Element, event: KeyboardEvent): Element | null;
|
|
36
37
|
function takeFocus(container: Element, defaultElement?: 'first' | 'container'): Element | null;
|
|
37
38
|
}
|
|
@@ -58,9 +58,9 @@ declare class Accordion extends Component<AccordionProps, AccordionState> {
|
|
|
58
58
|
private controlledExternally;
|
|
59
59
|
static propTypes: React.WeakValidationMap<AccordionControlledProps & {
|
|
60
60
|
inset: boolean;
|
|
61
|
-
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "
|
|
61
|
+
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">> | React.WeakValidationMap<AccordionUncontrolledProps & {
|
|
62
62
|
inset: boolean;
|
|
63
|
-
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "
|
|
63
|
+
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">>;
|
|
64
64
|
static defaultProps: {
|
|
65
65
|
inset: boolean;
|
|
66
66
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SpringComponentProps as RSSpringComponentProps, TransitionComponentProps as RSTransitionComponentProps } from 'react-spring';
|
|
2
3
|
/**
|
|
3
|
-
* Wrappers to use in place of `
|
|
4
|
-
* `useAnimationToggle` to offer animation control.
|
|
4
|
+
* Wrappers to use in place of `Spring` and `Transition` from `react-spring`.
|
|
5
|
+
* Uses `useAnimationToggle` to offer animation control.
|
|
5
6
|
*/
|
|
6
|
-
declare function Spring
|
|
7
|
-
declare function Transition
|
|
7
|
+
declare function Spring({ children, immediate, ...otherProps }: RSSpringComponentProps): JSX.Element | null;
|
|
8
|
+
declare function Transition({ items, children, immediate, ...otherProps }: RSTransitionComponentProps<any>): JSX.Element;
|
|
8
9
|
export { Spring, Transition };
|
|
@@ -65,8 +65,8 @@ declare type ButtonLinkProps = ClassComponentProps<ButtonPropsBase, typeof defau
|
|
|
65
65
|
declare type ButtonProps = ButtonButtonProps | ButtonLinkProps;
|
|
66
66
|
declare class Button extends Component<ButtonProps> {
|
|
67
67
|
private component;
|
|
68
|
-
static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "
|
|
69
|
-
static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "
|
|
68
|
+
static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "openInNewContext" | "error" | "append" | "prepend" | "isMenu">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "openInNewContext" | "error" | "append" | "prepend" | "isMenu">>, "a", "href">>;
|
|
69
|
+
static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "openInNewContext" | "error" | "append" | "prepend" | "isMenu">>;
|
|
70
70
|
static [legacyRefMode]: boolean;
|
|
71
71
|
private handleClick;
|
|
72
72
|
private handleMount;
|