@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/Scroll.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 = 134);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 134:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -150,7 +150,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
150
150
|
var external_lodash_ = __webpack_require__(4);
|
|
151
151
|
|
|
152
152
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
153
|
-
var Animation_ = __webpack_require__(
|
|
153
|
+
var Animation_ = __webpack_require__(30);
|
|
154
154
|
|
|
155
155
|
// EXTERNAL MODULE: external "styled-components"
|
|
156
156
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -163,8 +163,11 @@ var themes_ = __webpack_require__(0);
|
|
|
163
163
|
var external_react_event_listener_ = __webpack_require__(15);
|
|
164
164
|
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
165
165
|
|
|
166
|
+
// EXTERNAL MODULE: external "react-spring"
|
|
167
|
+
var external_react_spring_ = __webpack_require__(18);
|
|
168
|
+
|
|
166
169
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
167
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
170
|
+
var ScrollContainerContext_ = __webpack_require__(35);
|
|
168
171
|
|
|
169
172
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
170
173
|
var updateReactRef = __webpack_require__(12);
|
|
@@ -202,16 +205,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
202
205
|
|
|
203
206
|
|
|
204
207
|
|
|
208
|
+
|
|
205
209
|
var propTypes = {
|
|
206
210
|
children: external_prop_types_default.a.node,
|
|
207
211
|
defaultLeft: external_prop_types_default.a.number,
|
|
208
212
|
defaultTop: external_prop_types_default.a.number,
|
|
209
213
|
elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
|
|
210
|
-
left: external_prop_types_default.a.
|
|
214
|
+
left: external_prop_types_default.a.object,
|
|
211
215
|
onScroll: external_prop_types_default.a.func,
|
|
212
216
|
stopScrollPropagation: external_prop_types_default.a.oneOf([true, false, 'window']),
|
|
213
217
|
tagName: external_prop_types_default.a.string,
|
|
214
|
-
top: external_prop_types_default.a.
|
|
218
|
+
top: external_prop_types_default.a.object
|
|
215
219
|
};
|
|
216
220
|
var defaultProps = {
|
|
217
221
|
defaultLeft: 0,
|
|
@@ -318,11 +322,15 @@ var Inner_Inner = /*#__PURE__*/function (_Component) {
|
|
|
318
322
|
}
|
|
319
323
|
|
|
320
324
|
if (Object(external_lodash_["isFinite"])(this.props.top)) {
|
|
321
|
-
|
|
325
|
+
var _this$props$top;
|
|
326
|
+
|
|
327
|
+
this.state.containerEl.scrollTop = ((_this$props$top = this.props.top) === null || _this$props$top === void 0 ? void 0 : _this$props$top.get()) || 0;
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
if (Object(external_lodash_["isFinite"])(this.props.left)) {
|
|
325
|
-
|
|
331
|
+
var _this$props$left;
|
|
332
|
+
|
|
333
|
+
this.state.containerEl.scrollLeft = ((_this$props$left = this.props.left) === null || _this$props$left === void 0 ? void 0 : _this$props$left.get()) || 0;
|
|
326
334
|
}
|
|
327
335
|
}
|
|
328
336
|
}
|
|
@@ -332,15 +340,18 @@ var Inner_Inner = /*#__PURE__*/function (_Component) {
|
|
|
332
340
|
var _this$props = this.props,
|
|
333
341
|
children = _this$props.children,
|
|
334
342
|
onScroll = _this$props.onScroll,
|
|
335
|
-
stopScrollPropagation = _this$props.stopScrollPropagation
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
var
|
|
339
|
-
|
|
343
|
+
stopScrollPropagation = _this$props.stopScrollPropagation,
|
|
344
|
+
top = _this$props.top,
|
|
345
|
+
left = _this$props.left;
|
|
346
|
+
var containerEl = this.state.containerEl;
|
|
347
|
+
var AnimatedTag = external_react_spring_["animated"][this.props.tagName];
|
|
348
|
+
return /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(AnimatedTag, _extends({}, Object(external_lodash_["omit"])(this.props, Object(external_lodash_["keys"])(Inner.propTypes)), {
|
|
340
349
|
ref: this.handleMount,
|
|
341
350
|
onMouseEnter: stopScrollPropagation === 'window' ? this.handleMouseEnter : undefined,
|
|
342
351
|
onMouseLeave: stopScrollPropagation === 'window' ? this.handleMouseLeave : undefined,
|
|
343
|
-
onScroll: onScroll
|
|
352
|
+
onScroll: onScroll,
|
|
353
|
+
scrollTop: top,
|
|
354
|
+
scrollLeft: left
|
|
344
355
|
}), /*#__PURE__*/external_react_default.a.createElement(ScrollContainerContext_["ScrollContainerProvider"], {
|
|
345
356
|
value: containerEl
|
|
346
357
|
}, children)), stopScrollPropagation === true && containerEl && /*#__PURE__*/external_react_default.a.createElement(external_react_event_listener_default.a, {
|
|
@@ -534,17 +545,17 @@ module.exports = require("react-event-listener");
|
|
|
534
545
|
|
|
535
546
|
/***/ }),
|
|
536
547
|
|
|
537
|
-
/***/
|
|
548
|
+
/***/ 18:
|
|
538
549
|
/***/ (function(module, exports) {
|
|
539
550
|
|
|
540
|
-
module.exports = require("react");
|
|
551
|
+
module.exports = require("react-spring");
|
|
541
552
|
|
|
542
553
|
/***/ }),
|
|
543
554
|
|
|
544
|
-
/***/
|
|
555
|
+
/***/ 2:
|
|
545
556
|
/***/ (function(module, exports) {
|
|
546
557
|
|
|
547
|
-
module.exports = require("
|
|
558
|
+
module.exports = require("react");
|
|
548
559
|
|
|
549
560
|
/***/ }),
|
|
550
561
|
|
|
@@ -555,7 +566,14 @@ module.exports = require("styled-components");
|
|
|
555
566
|
|
|
556
567
|
/***/ }),
|
|
557
568
|
|
|
558
|
-
/***/
|
|
569
|
+
/***/ 30:
|
|
570
|
+
/***/ (function(module, exports) {
|
|
571
|
+
|
|
572
|
+
module.exports = require("@splunk/react-ui/Animation");
|
|
573
|
+
|
|
574
|
+
/***/ }),
|
|
575
|
+
|
|
576
|
+
/***/ 35:
|
|
559
577
|
/***/ (function(module, exports) {
|
|
560
578
|
|
|
561
579
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
@@ -82,12 +82,12 @@ 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 = 169);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 169:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|