@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/SidePanel.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 = 154);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 154:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -123,7 +123,7 @@ 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/ModalLayer"
|
|
126
|
-
var ModalLayer_ = __webpack_require__(
|
|
126
|
+
var ModalLayer_ = __webpack_require__(65);
|
|
127
127
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -131,7 +131,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
131
131
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: external "@splunk/react-ui/TransitionOpen"
|
|
134
|
-
var TransitionOpen_ = __webpack_require__(
|
|
134
|
+
var TransitionOpen_ = __webpack_require__(46);
|
|
135
135
|
var TransitionOpen_default = /*#__PURE__*/__webpack_require__.n(TransitionOpen_);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -215,6 +215,7 @@ var propTypes = {
|
|
|
215
215
|
dockPosition: external_prop_types_default.a.oneOf(['top', 'bottom', 'left', 'right']),
|
|
216
216
|
innerClassName: external_prop_types_default.a.string,
|
|
217
217
|
innerStyle: external_prop_types_default.a.object,
|
|
218
|
+
onAnimationEnd: external_prop_types_default.a.func,
|
|
218
219
|
onRequestClose: external_prop_types_default.a.func,
|
|
219
220
|
open: external_prop_types_default.a.bool,
|
|
220
221
|
outerClassName: external_prop_types_default.a.string,
|
|
@@ -247,19 +248,23 @@ var SidePanel_SidePanel = /*#__PURE__*/function (_Component) {
|
|
|
247
248
|
_this = _super.call(this, props);
|
|
248
249
|
|
|
249
250
|
_defineProperty(_assertThisInitialized(_this), "handlePanelAnimationEnd", function () {
|
|
251
|
+
var _this$props$onAnimati, _this$props;
|
|
252
|
+
|
|
250
253
|
_this.setState({
|
|
251
254
|
panelAnimating: false
|
|
252
255
|
});
|
|
256
|
+
|
|
257
|
+
(_this$props$onAnimati = (_this$props = _this.props).onAnimationEnd) === null || _this$props$onAnimati === void 0 ? void 0 : _this$props$onAnimati.call(_this$props);
|
|
253
258
|
});
|
|
254
259
|
|
|
255
260
|
_defineProperty(_assertThisInitialized(_this), "renderModal", function () {
|
|
256
|
-
var _this$
|
|
257
|
-
children = _this$
|
|
258
|
-
dockPosition = _this$
|
|
259
|
-
innerClassName = _this$
|
|
260
|
-
innerStyle = _this$
|
|
261
|
-
outerClassName = _this$
|
|
262
|
-
outerStyle = _this$
|
|
261
|
+
var _this$props2 = _this.props,
|
|
262
|
+
children = _this$props2.children,
|
|
263
|
+
dockPosition = _this$props2.dockPosition,
|
|
264
|
+
innerClassName = _this$props2.innerClassName,
|
|
265
|
+
innerStyle = _this$props2.innerStyle,
|
|
266
|
+
outerClassName = _this$props2.outerClassName,
|
|
267
|
+
outerStyle = _this$props2.outerStyle;
|
|
263
268
|
var StyledTransitionOpen = {
|
|
264
269
|
left: StyledLeftPanelTransitionOpen,
|
|
265
270
|
right: StyledRightPanelTransitionOpen,
|
|
@@ -299,10 +304,10 @@ var SidePanel_SidePanel = /*#__PURE__*/function (_Component) {
|
|
|
299
304
|
_createClass(SidePanel, [{
|
|
300
305
|
key: "render",
|
|
301
306
|
value: function render() {
|
|
302
|
-
var _this$
|
|
303
|
-
open = _this$
|
|
304
|
-
onRequestClose = _this$
|
|
305
|
-
useLayerForClickAway = _this$
|
|
307
|
+
var _this$props3 = this.props,
|
|
308
|
+
open = _this$props3.open,
|
|
309
|
+
onRequestClose = _this$props3.onRequestClose,
|
|
310
|
+
useLayerForClickAway = _this$props3.useLayerForClickAway;
|
|
306
311
|
var panelAnimating = this.state.panelAnimating;
|
|
307
312
|
return /*#__PURE__*/external_react_default.a.createElement(ModalLayer_default.a, {
|
|
308
313
|
childrenInAnimation: panelAnimating,
|
|
@@ -360,14 +365,14 @@ module.exports = require("lodash");
|
|
|
360
365
|
|
|
361
366
|
/***/ }),
|
|
362
367
|
|
|
363
|
-
/***/
|
|
368
|
+
/***/ 46:
|
|
364
369
|
/***/ (function(module, exports) {
|
|
365
370
|
|
|
366
371
|
module.exports = require("@splunk/react-ui/TransitionOpen");
|
|
367
372
|
|
|
368
373
|
/***/ }),
|
|
369
374
|
|
|
370
|
-
/***/
|
|
375
|
+
/***/ 65:
|
|
371
376
|
/***/ (function(module, exports) {
|
|
372
377
|
|
|
373
378
|
module.exports = require("@splunk/react-ui/ModalLayer");
|
package/Slider.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 = 156);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("react-event-listener");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 156:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -131,7 +131,7 @@ var external_react_event_listener_ = __webpack_require__(15);
|
|
|
131
131
|
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: external "decimal.js-light"
|
|
134
|
-
var external_decimal_js_light_ = __webpack_require__(
|
|
134
|
+
var external_decimal_js_light_ = __webpack_require__(94);
|
|
135
135
|
var external_decimal_js_light_default = /*#__PURE__*/__webpack_require__.n(external_decimal_js_light_);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "lodash"
|
|
@@ -144,7 +144,7 @@ var keyboard_ = __webpack_require__(9);
|
|
|
144
144
|
var themes_ = __webpack_require__(0);
|
|
145
145
|
|
|
146
146
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
147
|
-
var Popover_ = __webpack_require__(
|
|
147
|
+
var Popover_ = __webpack_require__(17);
|
|
148
148
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
149
149
|
|
|
150
150
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -152,7 +152,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
152
152
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
153
153
|
|
|
154
154
|
// EXTERNAL MODULE: external "tinycolor2"
|
|
155
|
-
var external_tinycolor2_ = __webpack_require__(
|
|
155
|
+
var external_tinycolor2_ = __webpack_require__(66);
|
|
156
156
|
var external_tinycolor2_default = /*#__PURE__*/__webpack_require__.n(external_tinycolor2_);
|
|
157
157
|
|
|
158
158
|
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
@@ -744,7 +744,7 @@ SliderWithTheme.propTypes = Slider_Slider.propTypes;
|
|
|
744
744
|
|
|
745
745
|
/***/ }),
|
|
746
746
|
|
|
747
|
-
/***/
|
|
747
|
+
/***/ 17:
|
|
748
748
|
/***/ (function(module, exports) {
|
|
749
749
|
|
|
750
750
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -772,7 +772,7 @@ module.exports = require("lodash");
|
|
|
772
772
|
|
|
773
773
|
/***/ }),
|
|
774
774
|
|
|
775
|
-
/***/
|
|
775
|
+
/***/ 66:
|
|
776
776
|
/***/ (function(module, exports) {
|
|
777
777
|
|
|
778
778
|
module.exports = require("tinycolor2");
|
|
@@ -793,7 +793,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
793
793
|
|
|
794
794
|
/***/ }),
|
|
795
795
|
|
|
796
|
-
/***/
|
|
796
|
+
/***/ 94:
|
|
797
797
|
/***/ (function(module, exports) {
|
|
798
798
|
|
|
799
799
|
module.exports = require("decimal.js-light");
|
package/SlidingPanels.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 = 137);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 137:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -150,8 +150,11 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
150
150
|
// EXTERNAL MODULE: external "lodash"
|
|
151
151
|
var external_lodash_ = __webpack_require__(4);
|
|
152
152
|
|
|
153
|
+
// EXTERNAL MODULE: external "react-spring"
|
|
154
|
+
var external_react_spring_ = __webpack_require__(18);
|
|
155
|
+
|
|
153
156
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
154
|
-
var Animation_ = __webpack_require__(
|
|
157
|
+
var Animation_ = __webpack_require__(30);
|
|
155
158
|
|
|
156
159
|
// EXTERNAL MODULE: external "styled-components"
|
|
157
160
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -168,11 +171,12 @@ var themes_ = __webpack_require__(0);
|
|
|
168
171
|
|
|
169
172
|
|
|
170
173
|
|
|
171
|
-
|
|
174
|
+
|
|
175
|
+
var StyledBox = external_styled_components_default()(Object(external_react_spring_["animated"])(Box_default.a)).withConfig({
|
|
172
176
|
displayName: "SlidingPanelsStyles__StyledBox",
|
|
173
177
|
componentId: "su6isq-0"
|
|
174
178
|
})(["overflow:hidden;position:relative;"]);
|
|
175
|
-
var Styled = external_styled_components_default.
|
|
179
|
+
var Styled = external_styled_components_default()(external_react_spring_["animated"].div).withConfig({
|
|
176
180
|
displayName: "SlidingPanelsStyles__Styled",
|
|
177
181
|
componentId: "su6isq-1"
|
|
178
182
|
})(["", ";", ";"], themes_["mixins"].reset('block'), themes_["mixins"].clearfix());
|
|
@@ -347,6 +351,7 @@ function SlidingPanels_defineProperty(obj, key, value) { if (key in obj) { Objec
|
|
|
347
351
|
|
|
348
352
|
|
|
349
353
|
|
|
354
|
+
|
|
350
355
|
var SlidingPanels_propTypes = {
|
|
351
356
|
activePanelId: external_prop_types_default.a.any.isRequired,
|
|
352
357
|
children: external_prop_types_default.a.node,
|
|
@@ -420,60 +425,45 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
|
|
|
420
425
|
});
|
|
421
426
|
|
|
422
427
|
SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderPanel", function (transitionStyle, activePanelId, maxWidth) {
|
|
428
|
+
var _transitionStyle$tran;
|
|
429
|
+
|
|
423
430
|
var _this$props2 = _this.props,
|
|
424
431
|
children = _this$props2.children,
|
|
425
432
|
transition = _this$props2.transition;
|
|
426
|
-
var translateX = transitionStyle.translateX;
|
|
427
|
-
var offset = translateX * maxWidth * (transition === 'forward' ? 1 : -1);
|
|
428
|
-
var panelStyle = {
|
|
429
|
-
transform: "translateX(".concat(offset, "px)")
|
|
430
|
-
};
|
|
431
433
|
var currentPanel = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).find(function (child) {
|
|
432
434
|
return child.props.panelId === activePanelId;
|
|
435
|
+
}); // TODO: Fix Interplation<string | number> can't be cast to string
|
|
436
|
+
|
|
437
|
+
var transform = (_transitionStyle$tran = transitionStyle.translateX) === null || _transitionStyle$tran === void 0 ? void 0 : _transitionStyle$tran.to(function (x) {
|
|
438
|
+
return "translateX(".concat(x * maxWidth * (transition === 'forward' ? 1 : -1), "px)");
|
|
433
439
|
});
|
|
434
|
-
var clonedPanel = currentPanel ? /*#__PURE__*/external_react_default.a.createElement("div
|
|
435
|
-
style:
|
|
440
|
+
var clonedPanel = currentPanel ? /*#__PURE__*/external_react_default.a.createElement(external_react_spring_["animated"].div, {
|
|
441
|
+
style: transitionStyle
|
|
436
442
|
}, /*#__PURE__*/Object(external_react_["cloneElement"])(currentPanel, {
|
|
437
|
-
style: _objectSpread(_objectSpread({}, currentPanel.props.style),
|
|
443
|
+
style: _objectSpread(_objectSpread({}, currentPanel.props.style), {}, {
|
|
444
|
+
transform: transform
|
|
445
|
+
}),
|
|
438
446
|
onMount: _this.handlePanelMount,
|
|
439
447
|
onUnmount: _this.handlePanelUnmount
|
|
440
448
|
})) : null;
|
|
441
449
|
return clonedPanel;
|
|
442
450
|
});
|
|
443
451
|
|
|
444
|
-
SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "
|
|
452
|
+
SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderOuterContainer", function (interpolatedOuterStyle) {
|
|
445
453
|
var _this$props3 = _this.props,
|
|
454
|
+
activePanelId = _this$props3.activePanelId,
|
|
455
|
+
children = _this$props3.children,
|
|
456
|
+
elementRef = _this$props3.elementRef,
|
|
457
|
+
outerClassName = _this$props3.outerClassName,
|
|
458
|
+
outerStyle = _this$props3.outerStyle,
|
|
446
459
|
innerClassName = _this$props3.innerClassName,
|
|
447
460
|
innerStyle = _this$props3.innerStyle;
|
|
448
|
-
var currentPanelsArr = Object(external_lodash_["filter"])(Object(external_lodash_["values"])(_this.panelInstances), function (panel) {
|
|
449
|
-
return !!panel;
|
|
450
|
-
});
|
|
451
|
-
var maxWidth = currentPanelsArr.map(function (panel) {
|
|
452
|
-
var _currentPanel$getWidt;
|
|
453
|
-
|
|
454
|
-
var currentPanel = _this.panelInstances[panel.props.panelId];
|
|
455
|
-
return currentPanel ? (_currentPanel$getWidt = currentPanel.getWidth()) !== null && _currentPanel$getWidt !== void 0 ? _currentPanel$getWidt : 0 : 0;
|
|
456
|
-
}).reduce(function (max, current) {
|
|
457
|
-
return Math.max(max, current);
|
|
458
|
-
}, 0);
|
|
459
|
-
return function (transitionStyle) {
|
|
460
|
-
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
461
|
-
style: innerStyle,
|
|
462
|
-
className: innerClassName
|
|
463
|
-
}, _this.renderPanel(transitionStyle, activePanelId, maxWidth));
|
|
464
|
-
};
|
|
465
|
-
});
|
|
466
|
-
|
|
467
|
-
SlidingPanels_defineProperty(SlidingPanels_assertThisInitialized(_this), "renderOuterContainer", function (interpolatedOuterStyle) {
|
|
468
|
-
var _this$props4 = _this.props,
|
|
469
|
-
activePanelId = _this$props4.activePanelId,
|
|
470
|
-
children = _this$props4.children,
|
|
471
|
-
elementRef = _this$props4.elementRef,
|
|
472
|
-
outerClassName = _this$props4.outerClassName,
|
|
473
|
-
outerStyle = _this$props4.outerStyle;
|
|
474
461
|
var animating = _this.state.animating;
|
|
475
462
|
|
|
476
|
-
var style = _objectSpread(_objectSpread({}, outerStyle), animating ?
|
|
463
|
+
var style = _objectSpread(_objectSpread({}, outerStyle), animating ? {
|
|
464
|
+
width: interpolatedOuterStyle.width,
|
|
465
|
+
height: interpolatedOuterStyle.height
|
|
466
|
+
} : {});
|
|
477
467
|
|
|
478
468
|
var currentPanel = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).find(function (child) {
|
|
479
469
|
return child.props.panelId === activePanelId;
|
|
@@ -484,6 +474,17 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
|
|
|
484
474
|
var transitionStyle = animating ? {
|
|
485
475
|
translateX: 1
|
|
486
476
|
} : {};
|
|
477
|
+
var currentPanelsArr = Object(external_lodash_["filter"])(Object(external_lodash_["values"])(_this.panelInstances), function (panel) {
|
|
478
|
+
return !!panel;
|
|
479
|
+
});
|
|
480
|
+
var maxWidth = currentPanelsArr.map(function (panel) {
|
|
481
|
+
var _p$getWidth;
|
|
482
|
+
|
|
483
|
+
var p = _this.panelInstances[panel.props.panelId];
|
|
484
|
+
return p ? (_p$getWidth = p.getWidth()) !== null && _p$getWidth !== void 0 ? _p$getWidth : 0 : 0;
|
|
485
|
+
}).reduce(function (max, current) {
|
|
486
|
+
return Math.max(max, current);
|
|
487
|
+
}, 0);
|
|
487
488
|
return /*#__PURE__*/external_react_default.a.createElement(StyledBox, SlidingPanels_extends({
|
|
488
489
|
className: outerClassName,
|
|
489
490
|
"data-test-active-panel-id": activePanelId,
|
|
@@ -495,7 +496,13 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
|
|
|
495
496
|
enter: _this.willEnter(),
|
|
496
497
|
leave: _this.willLeave(animating),
|
|
497
498
|
items: activePanelId
|
|
498
|
-
},
|
|
499
|
+
}, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
500
|
+
function (styles, item) {
|
|
501
|
+
return /*#__PURE__*/external_react_default.a.createElement(external_react_spring_["animated"].div, {
|
|
502
|
+
style: innerStyle,
|
|
503
|
+
className: innerClassName
|
|
504
|
+
}, _this.renderPanel(styles, item, maxWidth));
|
|
505
|
+
}));
|
|
499
506
|
});
|
|
500
507
|
|
|
501
508
|
_this.state = {
|
|
@@ -532,7 +539,9 @@ var SlidingPanels_SlidingPanels = /*#__PURE__*/function (_Component) {
|
|
|
532
539
|
config: {
|
|
533
540
|
precision: 1
|
|
534
541
|
}
|
|
535
|
-
},
|
|
542
|
+
},
|
|
543
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
544
|
+
this.renderOuterContainer);
|
|
536
545
|
}
|
|
537
546
|
}]);
|
|
538
547
|
|
|
@@ -570,17 +579,17 @@ SlidingPanels_defineProperty(SlidingPanels_SlidingPanels, "getDerivedStateFromPr
|
|
|
570
579
|
|
|
571
580
|
/***/ }),
|
|
572
581
|
|
|
573
|
-
/***/
|
|
582
|
+
/***/ 18:
|
|
574
583
|
/***/ (function(module, exports) {
|
|
575
584
|
|
|
576
|
-
module.exports = require("react");
|
|
585
|
+
module.exports = require("react-spring");
|
|
577
586
|
|
|
578
587
|
/***/ }),
|
|
579
588
|
|
|
580
|
-
/***/
|
|
589
|
+
/***/ 2:
|
|
581
590
|
/***/ (function(module, exports) {
|
|
582
591
|
|
|
583
|
-
module.exports = require("
|
|
592
|
+
module.exports = require("react");
|
|
584
593
|
|
|
585
594
|
/***/ }),
|
|
586
595
|
|
|
@@ -591,6 +600,13 @@ module.exports = require("styled-components");
|
|
|
591
600
|
|
|
592
601
|
/***/ }),
|
|
593
602
|
|
|
603
|
+
/***/ 30:
|
|
604
|
+
/***/ (function(module, exports) {
|
|
605
|
+
|
|
606
|
+
module.exports = require("@splunk/react-ui/Animation");
|
|
607
|
+
|
|
608
|
+
/***/ }),
|
|
609
|
+
|
|
594
610
|
/***/ 4:
|
|
595
611
|
/***/ (function(module, exports) {
|
|
596
612
|
|
package/StaticContent.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 = 163);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 163:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/StepBar.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 = 115);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 115:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -131,7 +131,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
131
131
|
var id_ = __webpack_require__(10);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
|
|
134
|
-
var useSplunkTheme_ = __webpack_require__(
|
|
134
|
+
var useSplunkTheme_ = __webpack_require__(38);
|
|
135
135
|
var useSplunkTheme_default = /*#__PURE__*/__webpack_require__.n(useSplunkTheme_);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -142,7 +142,7 @@ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(exte
|
|
|
142
142
|
var themes_ = __webpack_require__(0);
|
|
143
143
|
|
|
144
144
|
// EXTERNAL MODULE: external "@splunk/react-icons/Error"
|
|
145
|
-
var Error_ = __webpack_require__(
|
|
145
|
+
var Error_ = __webpack_require__(63);
|
|
146
146
|
var Error_default = /*#__PURE__*/__webpack_require__.n(Error_);
|
|
147
147
|
|
|
148
148
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -179,7 +179,7 @@ function AlertFilled(props) {
|
|
|
179
179
|
}, props));
|
|
180
180
|
}
|
|
181
181
|
// EXTERNAL MODULE: external "@splunk/react-icons/Success"
|
|
182
|
-
var Success_ = __webpack_require__(
|
|
182
|
+
var Success_ = __webpack_require__(64);
|
|
183
183
|
var Success_default = /*#__PURE__*/__webpack_require__.n(Success_);
|
|
184
184
|
|
|
185
185
|
// CONCATENATED MODULE: ./src/icons/Success.tsx
|
|
@@ -500,7 +500,7 @@ module.exports = require("styled-components");
|
|
|
500
500
|
|
|
501
501
|
/***/ }),
|
|
502
502
|
|
|
503
|
-
/***/
|
|
503
|
+
/***/ 38:
|
|
504
504
|
/***/ (function(module, exports) {
|
|
505
505
|
|
|
506
506
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
@@ -532,14 +532,14 @@ function SVG(props) {
|
|
|
532
532
|
|
|
533
533
|
/***/ }),
|
|
534
534
|
|
|
535
|
-
/***/
|
|
535
|
+
/***/ 63:
|
|
536
536
|
/***/ (function(module, exports) {
|
|
537
537
|
|
|
538
538
|
module.exports = require("@splunk/react-icons/Error");
|
|
539
539
|
|
|
540
540
|
/***/ }),
|
|
541
541
|
|
|
542
|
-
/***/
|
|
542
|
+
/***/ 64:
|
|
543
543
|
/***/ (function(module, exports) {
|
|
544
544
|
|
|
545
545
|
module.exports = require("@splunk/react-icons/Success");
|
package/Switch.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 = 129);
|
|
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
|
+
/***/ 129:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -134,7 +134,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
134
134
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
137
|
-
var AnimationToggle_ = __webpack_require__(
|
|
137
|
+
var AnimationToggle_ = __webpack_require__(34);
|
|
138
138
|
var AnimationToggle_default = /*#__PURE__*/__webpack_require__.n(AnimationToggle_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
@@ -148,7 +148,7 @@ var i18n_ = __webpack_require__(5);
|
|
|
148
148
|
var id_ = __webpack_require__(10);
|
|
149
149
|
|
|
150
150
|
// EXTERNAL MODULE: external "@splunk/react-icons/Check"
|
|
151
|
-
var Check_ = __webpack_require__(
|
|
151
|
+
var Check_ = __webpack_require__(44);
|
|
152
152
|
var Check_default = /*#__PURE__*/__webpack_require__.n(Check_);
|
|
153
153
|
|
|
154
154
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -209,7 +209,7 @@ var toggleDiameter = '20px';
|
|
|
209
209
|
var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
210
210
|
displayName: "SwitchStyles__StyledBox",
|
|
211
211
|
componentId: "sc-844ieu-0"
|
|
212
|
-
})(["display:inline;position:relative;color:", ";flex-shrink:0;padding:", ";"], Object(themes_["pickVariant"])('$switchState', {
|
|
212
|
+
})(["display:inline;position:relative;color:", ";flex-shrink:0;padding:", ";[data-inline] + &{margin-left:", ";}"], Object(themes_["pickVariant"])('$switchState', {
|
|
213
213
|
error: {
|
|
214
214
|
enterprise: themes_["variables"].errorColor,
|
|
215
215
|
prisma: themes_["variables"].accentColorNegative
|
|
@@ -224,6 +224,9 @@ var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
|
224
224
|
compact: '6px 0',
|
|
225
225
|
comfortable: '10px 0'
|
|
226
226
|
}
|
|
227
|
+
}), Object(themes_["pick"])({
|
|
228
|
+
enterprise: themes_["variables"].spacingHalf,
|
|
229
|
+
prisma: themes_["variables"].spacingSmall
|
|
227
230
|
}));
|
|
228
231
|
var StyledCheckboxClickable = external_styled_components_default()(Clickable_default.a).withConfig({
|
|
229
232
|
displayName: "SwitchStyles__StyledCheckboxClickable",
|
|
@@ -277,7 +280,7 @@ var StyledCheckboxClickable = external_styled_components_default()(Clickable_def
|
|
|
277
280
|
});
|
|
278
281
|
}, Object(themes_["pick"])({
|
|
279
282
|
enterprise: {
|
|
280
|
-
light: themes_["variables"].
|
|
283
|
+
light: themes_["variables"].borderColor,
|
|
281
284
|
dark: themes_["variables"].gray45
|
|
282
285
|
},
|
|
283
286
|
prisma: themes_["variables"].contentColorDisabled
|
|
@@ -311,7 +314,10 @@ var StyledIndicator = external_styled_components_default.a.div.withConfig({
|
|
|
311
314
|
},
|
|
312
315
|
prisma: themes_["variables"].white
|
|
313
316
|
}), Object(themes_["pick"])({
|
|
314
|
-
enterprise:
|
|
317
|
+
enterprise: {
|
|
318
|
+
light: themes_["variables"].gray60,
|
|
319
|
+
dark: themes_["variables"].borderColor
|
|
320
|
+
},
|
|
315
321
|
prisma: themes_["variables"].transparent
|
|
316
322
|
}), function (_ref8) {
|
|
317
323
|
var $delay = _ref8.$delay;
|
|
@@ -370,7 +376,10 @@ var StyledToggleClickable = external_styled_components_default()(Clickable_defau
|
|
|
370
376
|
}), diameter, function (props) {
|
|
371
377
|
return props.$delay;
|
|
372
378
|
}, Object(themes_["pick"])({
|
|
373
|
-
enterprise:
|
|
379
|
+
enterprise: {
|
|
380
|
+
light: themes_["variables"].gray60,
|
|
381
|
+
dark: themes_["variables"].borderColor
|
|
382
|
+
},
|
|
374
383
|
prisma: themes_["variables"].transparent
|
|
375
384
|
}), Object(themes_["pick"])({
|
|
376
385
|
enterprise: Object(external_styled_components_["css"])(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.1);"])
|
|
@@ -488,7 +497,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
488
497
|
|
|
489
498
|
|
|
490
499
|
var propTypes = {
|
|
491
|
-
appearance: external_prop_types_default.a.oneOf(['
|
|
500
|
+
appearance: external_prop_types_default.a.oneOf(['checkbox', 'toggle']),
|
|
492
501
|
children: external_prop_types_default.a.node,
|
|
493
502
|
disabled: external_prop_types_default.a.bool,
|
|
494
503
|
elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
|
|
@@ -738,14 +747,14 @@ module.exports = require("styled-components");
|
|
|
738
747
|
|
|
739
748
|
/***/ }),
|
|
740
749
|
|
|
741
|
-
/***/
|
|
750
|
+
/***/ 34:
|
|
742
751
|
/***/ (function(module, exports) {
|
|
743
752
|
|
|
744
753
|
module.exports = require("@splunk/react-ui/AnimationToggle");
|
|
745
754
|
|
|
746
755
|
/***/ }),
|
|
747
756
|
|
|
748
|
-
/***/
|
|
757
|
+
/***/ 44:
|
|
749
758
|
/***/ (function(module, exports) {
|
|
750
759
|
|
|
751
760
|
module.exports = require("@splunk/react-icons/Check");
|