@splunk/react-ui 4.8.0 → 4.11.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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +5 -29
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +42 -5
- package/Calendar.js +12 -12
- package/Card.js +48 -62
- package/CardLayout.js +14 -35
- package/Chip.js +4 -4
- package/Clickable.js +23 -8
- package/CloseButton.js +2 -2
- package/Code.js +8 -5
- package/CollapsiblePanel.js +4 -4
- package/Color.js +10 -10
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +9 -5
- package/Concertina.js +13 -13
- package/ControlGroup.js +26 -16
- package/Date.js +6 -6
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/File.js +15 -15
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +8 -8
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +62 -30
- package/Menu.js +42 -42
- package/Message.js +18 -18
- package/MessageBar.js +28 -21
- package/Modal.js +6 -6
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +12 -12
- package/Number.js +4 -4
- package/Paginator.js +21 -24
- package/Paragraph.js +2 -2
- package/Popover.js +16 -11
- package/Progress.js +2 -2
- package/RadioBar.js +143 -39
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +4 -4
- package/ScrollContainerContext.js +2 -2
- package/Search.js +6 -6
- package/Select.js +9 -9
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +4 -4
- package/TabBar.js +11 -11
- package/TabLayout.js +4 -4
- package/Table.js +26 -31
- package/Text.js +18 -10
- package/Tooltip.js +21 -6
- package/TransitionOpen.js +14 -5
- package/WaitSpinner.js +2 -2
- package/package.json +12 -9
- package/stubs-splunkui.d.ts +13 -0
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Button/Button.d.ts +0 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -6
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +2 -1
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/JSONTree/JSONTree.d.ts +2 -2
- package/types/src/JSONTree/TreeNode.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Markdown/Markdown.d.ts +9 -4
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/index.d.ts +2 -1
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +1 -0
- package/types/src/Popover/PopoverContext.d.ts +0 -1
- package/types/src/RadioBar/Option.d.ts +10 -2
- package/types/src/RadioBar/RadioBar.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/TabBar/TabBarContext.d.ts +0 -1
- package/types/src/Text/Text.d.ts +4 -3
- package/types/src/Tooltip/Tooltip.d.ts +15 -10
- package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -0
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
package/Menu.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 = 111);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -102,13 +102,33 @@ module.exports = require("prop-types");
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
104
|
/***/ 11:
|
|
105
|
-
/***/ (function(module,
|
|
105
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
|
+
|
|
107
|
+
"use strict";
|
|
108
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
109
|
+
/**
|
|
110
|
+
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
111
|
+
*
|
|
112
|
+
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
113
|
+
* @param current - The new value of the ref.
|
|
114
|
+
*/
|
|
115
|
+
function updateReactRef(ref, current) {
|
|
116
|
+
if (ref) {
|
|
117
|
+
if (typeof ref === 'function') {
|
|
118
|
+
ref(current);
|
|
119
|
+
} else {
|
|
120
|
+
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
121
|
+
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
122
|
+
ref.current = current; // eslint-disable-line no-param-reassign
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
106
127
|
|
|
107
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
128
|
|
|
109
129
|
/***/ }),
|
|
110
130
|
|
|
111
|
-
/***/
|
|
131
|
+
/***/ 111:
|
|
112
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
133
|
|
|
114
134
|
"use strict";
|
|
@@ -213,7 +233,7 @@ Divider.filterConsecutive = true;
|
|
|
213
233
|
Divider.filterLast = true;
|
|
214
234
|
/* harmony default export */ var Menu_Divider = (Divider);
|
|
215
235
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
216
|
-
var Heading_ = __webpack_require__(
|
|
236
|
+
var Heading_ = __webpack_require__(55);
|
|
217
237
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
218
238
|
|
|
219
239
|
// EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
|
|
@@ -320,7 +340,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
320
340
|
var Check = __webpack_require__(53);
|
|
321
341
|
|
|
322
342
|
// EXTERNAL MODULE: external "@splunk/react-icons/TriangleRightSmall"
|
|
323
|
-
var TriangleRightSmall_ = __webpack_require__(
|
|
343
|
+
var TriangleRightSmall_ = __webpack_require__(94);
|
|
324
344
|
var TriangleRightSmall_default = /*#__PURE__*/__webpack_require__.n(TriangleRightSmall_);
|
|
325
345
|
|
|
326
346
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -358,11 +378,11 @@ function CaretRight(props) {
|
|
|
358
378
|
var ChevronRight = __webpack_require__(27);
|
|
359
379
|
|
|
360
380
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
361
|
-
var Clickable_ = __webpack_require__(
|
|
381
|
+
var Clickable_ = __webpack_require__(12);
|
|
362
382
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
363
383
|
|
|
364
384
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
365
|
-
var Switch_ = __webpack_require__(
|
|
385
|
+
var Switch_ = __webpack_require__(69);
|
|
366
386
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
367
387
|
|
|
368
388
|
// CONCATENATED MODULE: ./src/Menu/ItemStyles.ts
|
|
@@ -540,7 +560,7 @@ var StyledSubmenu = external_styled_components_default.a.span.withConfig({
|
|
|
540
560
|
}));
|
|
541
561
|
|
|
542
562
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
543
|
-
var updateReactRef = __webpack_require__(
|
|
563
|
+
var updateReactRef = __webpack_require__(11);
|
|
544
564
|
|
|
545
565
|
// CONCATENATED MODULE: ./src/Menu/Item.tsx
|
|
546
566
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -835,7 +855,7 @@ var ItemWithTheme = Object(themes_["withSplunkTheme"])(Item_Item);
|
|
|
835
855
|
ItemWithTheme.propTypes = Item_Item.propTypes;
|
|
836
856
|
/* harmony default export */ var Menu_Item = (ItemWithTheme);
|
|
837
857
|
// EXTERNAL MODULE: external "@splunk/react-ui/Scroll"
|
|
838
|
-
var Scroll_ = __webpack_require__(
|
|
858
|
+
var Scroll_ = __webpack_require__(65);
|
|
839
859
|
var Scroll_default = /*#__PURE__*/__webpack_require__.n(Scroll_);
|
|
840
860
|
|
|
841
861
|
// CONCATENATED MODULE: ./src/Menu/MenuStyles.ts
|
|
@@ -1082,29 +1102,9 @@ Menu.Heading = Menu_Heading;
|
|
|
1082
1102
|
/***/ }),
|
|
1083
1103
|
|
|
1084
1104
|
/***/ 12:
|
|
1085
|
-
/***/ (function(module,
|
|
1086
|
-
|
|
1087
|
-
"use strict";
|
|
1088
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
1089
|
-
/**
|
|
1090
|
-
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
1091
|
-
*
|
|
1092
|
-
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
1093
|
-
* @param current - The new value of the ref.
|
|
1094
|
-
*/
|
|
1095
|
-
function updateReactRef(ref, current) {
|
|
1096
|
-
if (ref) {
|
|
1097
|
-
if (typeof ref === 'function') {
|
|
1098
|
-
ref(current);
|
|
1099
|
-
} else {
|
|
1100
|
-
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
1101
|
-
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
1102
|
-
ref.current = current; // eslint-disable-line no-param-reassign
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1105
|
+
/***/ (function(module, exports) {
|
|
1107
1106
|
|
|
1107
|
+
module.exports = require("@splunk/react-ui/Clickable");
|
|
1108
1108
|
|
|
1109
1109
|
/***/ }),
|
|
1110
1110
|
|
|
@@ -1310,6 +1310,13 @@ function Check(props) {
|
|
|
1310
1310
|
|
|
1311
1311
|
/***/ }),
|
|
1312
1312
|
|
|
1313
|
+
/***/ 55:
|
|
1314
|
+
/***/ (function(module, exports) {
|
|
1315
|
+
|
|
1316
|
+
module.exports = require("@splunk/react-ui/Heading");
|
|
1317
|
+
|
|
1318
|
+
/***/ }),
|
|
1319
|
+
|
|
1313
1320
|
/***/ 6:
|
|
1314
1321
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1315
1322
|
|
|
@@ -1335,7 +1342,7 @@ function SVG(props) {
|
|
|
1335
1342
|
|
|
1336
1343
|
/***/ }),
|
|
1337
1344
|
|
|
1338
|
-
/***/
|
|
1345
|
+
/***/ 65:
|
|
1339
1346
|
/***/ (function(module, exports) {
|
|
1340
1347
|
|
|
1341
1348
|
module.exports = require("@splunk/react-ui/Scroll");
|
|
@@ -1345,7 +1352,7 @@ module.exports = require("@splunk/react-ui/Scroll");
|
|
|
1345
1352
|
/***/ 69:
|
|
1346
1353
|
/***/ (function(module, exports) {
|
|
1347
1354
|
|
|
1348
|
-
module.exports = require("@splunk/react-ui/
|
|
1355
|
+
module.exports = require("@splunk/react-ui/Switch");
|
|
1349
1356
|
|
|
1350
1357
|
/***/ }),
|
|
1351
1358
|
|
|
@@ -1467,13 +1474,6 @@ Icon.defaultProps = defaultProps;
|
|
|
1467
1474
|
|
|
1468
1475
|
/***/ }),
|
|
1469
1476
|
|
|
1470
|
-
/***/ 70:
|
|
1471
|
-
/***/ (function(module, exports) {
|
|
1472
|
-
|
|
1473
|
-
module.exports = require("@splunk/react-ui/Switch");
|
|
1474
|
-
|
|
1475
|
-
/***/ }),
|
|
1476
|
-
|
|
1477
1477
|
/***/ 9:
|
|
1478
1478
|
/***/ (function(module, exports) {
|
|
1479
1479
|
|
|
@@ -1481,7 +1481,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
1481
1481
|
|
|
1482
1482
|
/***/ }),
|
|
1483
1483
|
|
|
1484
|
-
/***/
|
|
1484
|
+
/***/ 94:
|
|
1485
1485
|
/***/ (function(module, exports) {
|
|
1486
1486
|
|
|
1487
1487
|
module.exports = require("@splunk/react-icons/TriangleRightSmall");
|
package/Message.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 = 122);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 122:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -128,7 +128,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
128
128
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
129
129
|
|
|
130
130
|
// EXTERNAL MODULE: external "@splunk/react-ui/MessageBar"
|
|
131
|
-
var MessageBar_ = __webpack_require__(
|
|
131
|
+
var MessageBar_ = __webpack_require__(95);
|
|
132
132
|
var MessageBar_default = /*#__PURE__*/__webpack_require__.n(MessageBar_);
|
|
133
133
|
|
|
134
134
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -222,7 +222,7 @@ var Box_ = __webpack_require__(8);
|
|
|
222
222
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
223
223
|
|
|
224
224
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
225
|
-
var Clickable_ = __webpack_require__(
|
|
225
|
+
var Clickable_ = __webpack_require__(12);
|
|
226
226
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
227
227
|
|
|
228
228
|
// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
|
|
@@ -365,19 +365,19 @@ var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
|
365
365
|
}));
|
|
366
366
|
|
|
367
367
|
// EXTERNAL MODULE: ./src/icons/AlertFilled.tsx
|
|
368
|
-
var AlertFilled = __webpack_require__(
|
|
368
|
+
var AlertFilled = __webpack_require__(70);
|
|
369
369
|
|
|
370
370
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
371
371
|
var CrossMark = __webpack_require__(20);
|
|
372
372
|
|
|
373
373
|
// EXTERNAL MODULE: ./src/icons/InfoFilled.tsx
|
|
374
|
-
var InfoFilled = __webpack_require__(
|
|
374
|
+
var InfoFilled = __webpack_require__(71);
|
|
375
375
|
|
|
376
376
|
// EXTERNAL MODULE: ./src/icons/SuccessFilled.tsx
|
|
377
|
-
var SuccessFilled = __webpack_require__(
|
|
377
|
+
var SuccessFilled = __webpack_require__(73);
|
|
378
378
|
|
|
379
379
|
// EXTERNAL MODULE: ./src/icons/WarningFilled.tsx
|
|
380
|
-
var WarningFilled = __webpack_require__(
|
|
380
|
+
var WarningFilled = __webpack_require__(74);
|
|
381
381
|
|
|
382
382
|
// CONCATENATED MODULE: ./src/Message/Message.tsx
|
|
383
383
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -713,7 +713,7 @@ Icon.defaultProps = defaultProps;
|
|
|
713
713
|
|
|
714
714
|
/***/ }),
|
|
715
715
|
|
|
716
|
-
/***/
|
|
716
|
+
/***/ 70:
|
|
717
717
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
718
718
|
|
|
719
719
|
"use strict";
|
|
@@ -753,14 +753,14 @@ function AlertFilled(props) {
|
|
|
753
753
|
|
|
754
754
|
/***/ }),
|
|
755
755
|
|
|
756
|
-
/***/
|
|
756
|
+
/***/ 71:
|
|
757
757
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
758
758
|
|
|
759
759
|
"use strict";
|
|
760
760
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InfoFilled; });
|
|
761
761
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
762
762
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
763
|
-
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
763
|
+
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
|
|
764
764
|
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__);
|
|
765
765
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
766
766
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -793,14 +793,14 @@ function InfoFilled(props) {
|
|
|
793
793
|
|
|
794
794
|
/***/ }),
|
|
795
795
|
|
|
796
|
-
/***/
|
|
796
|
+
/***/ 72:
|
|
797
797
|
/***/ (function(module, exports) {
|
|
798
798
|
|
|
799
799
|
module.exports = require("@splunk/react-icons/InfoCircle");
|
|
800
800
|
|
|
801
801
|
/***/ }),
|
|
802
802
|
|
|
803
|
-
/***/
|
|
803
|
+
/***/ 73:
|
|
804
804
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
805
805
|
|
|
806
806
|
"use strict";
|
|
@@ -840,14 +840,14 @@ function SuccessFilled(props) {
|
|
|
840
840
|
|
|
841
841
|
/***/ }),
|
|
842
842
|
|
|
843
|
-
/***/
|
|
843
|
+
/***/ 74:
|
|
844
844
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
845
845
|
|
|
846
846
|
"use strict";
|
|
847
847
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WarningFilled; });
|
|
848
848
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
849
849
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
850
|
-
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
850
|
+
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75);
|
|
851
851
|
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__);
|
|
852
852
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
853
853
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -880,7 +880,7 @@ function WarningFilled(props) {
|
|
|
880
880
|
|
|
881
881
|
/***/ }),
|
|
882
882
|
|
|
883
|
-
/***/
|
|
883
|
+
/***/ 75:
|
|
884
884
|
/***/ (function(module, exports) {
|
|
885
885
|
|
|
886
886
|
module.exports = require("@splunk/react-icons/Warning");
|
|
@@ -894,7 +894,7 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
894
894
|
|
|
895
895
|
/***/ }),
|
|
896
896
|
|
|
897
|
-
/***/
|
|
897
|
+
/***/ 95:
|
|
898
898
|
/***/ (function(module, exports) {
|
|
899
899
|
|
|
900
900
|
module.exports = require("@splunk/react-ui/MessageBar");
|
package/MessageBar.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 = 158);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 158:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -141,19 +141,19 @@ var ScreenReaderContent_ = __webpack_require__(14);
|
|
|
141
141
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: ./src/icons/AlertFilled.tsx
|
|
144
|
-
var AlertFilled = __webpack_require__(
|
|
144
|
+
var AlertFilled = __webpack_require__(70);
|
|
145
145
|
|
|
146
146
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
147
147
|
var CrossMark = __webpack_require__(20);
|
|
148
148
|
|
|
149
149
|
// EXTERNAL MODULE: ./src/icons/InfoFilled.tsx
|
|
150
|
-
var InfoFilled = __webpack_require__(
|
|
150
|
+
var InfoFilled = __webpack_require__(71);
|
|
151
151
|
|
|
152
152
|
// EXTERNAL MODULE: ./src/icons/SuccessFilled.tsx
|
|
153
|
-
var SuccessFilled = __webpack_require__(
|
|
153
|
+
var SuccessFilled = __webpack_require__(73);
|
|
154
154
|
|
|
155
155
|
// EXTERNAL MODULE: ./src/icons/WarningFilled.tsx
|
|
156
|
-
var WarningFilled = __webpack_require__(
|
|
156
|
+
var WarningFilled = __webpack_require__(74);
|
|
157
157
|
|
|
158
158
|
// EXTERNAL MODULE: external "styled-components"
|
|
159
159
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -164,7 +164,7 @@ var Box_ = __webpack_require__(8);
|
|
|
164
164
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
165
165
|
|
|
166
166
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
167
|
-
var Clickable_ = __webpack_require__(
|
|
167
|
+
var Clickable_ = __webpack_require__(12);
|
|
168
168
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
169
169
|
|
|
170
170
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -240,10 +240,16 @@ var MessageBarIconWrapper = external_styled_components_default.a.div.withConfig(
|
|
|
240
240
|
var MessageBarWrapper = external_styled_components_default()(Box_default.a).withConfig({
|
|
241
241
|
displayName: "MessageBarStyles__MessageBarWrapper",
|
|
242
242
|
componentId: "sc-1uyhzza-3"
|
|
243
|
-
})(["", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
})(["", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";", ";word-wrap:break-word;color:", ";", ";"], themes_["mixins"].reset('block'), themes_["variables"].spacingSmall, function (_ref) {
|
|
244
|
+
var $hasCloseButton = _ref.$hasCloseButton;
|
|
245
|
+
return $hasCloseButton ? Object(external_styled_components_["css"])(["", ""], Object(themes_["pick"])({
|
|
246
|
+
prisma: Object(external_styled_components_["css"])(["padding:0 8px 0 32px;"]),
|
|
247
|
+
enterprise: Object(external_styled_components_["css"])(["padding:0 8px 0 38px;"])
|
|
248
|
+
})) : Object(external_styled_components_["css"])(["", ""], Object(themes_["pick"])({
|
|
249
|
+
prisma: Object(external_styled_components_["css"])(["padding:0 33px 0 32px;"]),
|
|
250
|
+
enterprise: Object(external_styled_components_["css"])(["padding:0 26px 0 32px;"])
|
|
251
|
+
}));
|
|
252
|
+
}, Object(themes_["pick"])({
|
|
247
253
|
prisma: Object(themes_["pickVariant"])('$type', {
|
|
248
254
|
info: {
|
|
249
255
|
light: themes_["variables"].contentColorActive,
|
|
@@ -342,7 +348,8 @@ function MessageBar(_ref) {
|
|
|
342
348
|
"data-test": "message-bar",
|
|
343
349
|
"data-test-type": type
|
|
344
350
|
}, otherProps, {
|
|
345
|
-
role: "region"
|
|
351
|
+
role: "region",
|
|
352
|
+
$hasCloseButton: Boolean(onRequestClose)
|
|
346
353
|
}), /*#__PURE__*/external_react_default.a.createElement(MessageBarIconWrapper, {
|
|
347
354
|
$type: type
|
|
348
355
|
}, /*#__PURE__*/external_react_default.a.createElement(Icon, {
|
|
@@ -605,7 +612,7 @@ Icon.defaultProps = defaultProps;
|
|
|
605
612
|
|
|
606
613
|
/***/ }),
|
|
607
614
|
|
|
608
|
-
/***/
|
|
615
|
+
/***/ 70:
|
|
609
616
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
610
617
|
|
|
611
618
|
"use strict";
|
|
@@ -645,14 +652,14 @@ function AlertFilled(props) {
|
|
|
645
652
|
|
|
646
653
|
/***/ }),
|
|
647
654
|
|
|
648
|
-
/***/
|
|
655
|
+
/***/ 71:
|
|
649
656
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
650
657
|
|
|
651
658
|
"use strict";
|
|
652
659
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InfoFilled; });
|
|
653
660
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
654
661
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
655
|
-
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
662
|
+
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72);
|
|
656
663
|
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__);
|
|
657
664
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
658
665
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -685,14 +692,14 @@ function InfoFilled(props) {
|
|
|
685
692
|
|
|
686
693
|
/***/ }),
|
|
687
694
|
|
|
688
|
-
/***/
|
|
695
|
+
/***/ 72:
|
|
689
696
|
/***/ (function(module, exports) {
|
|
690
697
|
|
|
691
698
|
module.exports = require("@splunk/react-icons/InfoCircle");
|
|
692
699
|
|
|
693
700
|
/***/ }),
|
|
694
701
|
|
|
695
|
-
/***/
|
|
702
|
+
/***/ 73:
|
|
696
703
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
697
704
|
|
|
698
705
|
"use strict";
|
|
@@ -732,14 +739,14 @@ function SuccessFilled(props) {
|
|
|
732
739
|
|
|
733
740
|
/***/ }),
|
|
734
741
|
|
|
735
|
-
/***/
|
|
742
|
+
/***/ 74:
|
|
736
743
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
737
744
|
|
|
738
745
|
"use strict";
|
|
739
746
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WarningFilled; });
|
|
740
747
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
741
748
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
742
|
-
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
749
|
+
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75);
|
|
743
750
|
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__);
|
|
744
751
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
745
752
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -772,7 +779,7 @@ function WarningFilled(props) {
|
|
|
772
779
|
|
|
773
780
|
/***/ }),
|
|
774
781
|
|
|
775
|
-
/***/
|
|
782
|
+
/***/ 75:
|
|
776
783
|
/***/ (function(module, exports) {
|
|
777
784
|
|
|
778
785
|
module.exports = require("@splunk/react-icons/Warning");
|
package/Modal.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 = 113);
|
|
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
|
+
/***/ 113:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -133,7 +133,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
133
133
|
var external_lodash_ = __webpack_require__(4);
|
|
134
134
|
|
|
135
135
|
// EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
|
|
136
|
-
var ModalLayer_ = __webpack_require__(
|
|
136
|
+
var ModalLayer_ = __webpack_require__(76);
|
|
137
137
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
@@ -279,7 +279,7 @@ function Footer(_ref) {
|
|
|
279
279
|
Footer.propTypes = Footer_propTypes;
|
|
280
280
|
/* harmony default export */ var Modal_Footer = (Footer);
|
|
281
281
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
282
|
-
var CloseButton_ = __webpack_require__(
|
|
282
|
+
var CloseButton_ = __webpack_require__(66);
|
|
283
283
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
284
284
|
|
|
285
285
|
// CONCATENATED MODULE: ./src/Modal/HeaderStyles.ts
|
|
@@ -730,14 +730,14 @@ module.exports = require("lodash");
|
|
|
730
730
|
|
|
731
731
|
/***/ }),
|
|
732
732
|
|
|
733
|
-
/***/
|
|
733
|
+
/***/ 66:
|
|
734
734
|
/***/ (function(module, exports) {
|
|
735
735
|
|
|
736
736
|
module.exports = require("@splunk/react-ui/CloseButton");
|
|
737
737
|
|
|
738
738
|
/***/ }),
|
|
739
739
|
|
|
740
|
-
/***/
|
|
740
|
+
/***/ 76:
|
|
741
741
|
/***/ (function(module, exports) {
|
|
742
742
|
|
|
743
743
|
module.exports = require("@splunk/react-ui/ModalLayer");
|
package/ModalLayer.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 = 159);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 159:
|
|
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 Animation_ = __webpack_require__(30);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
126
|
-
var Layer_ = __webpack_require__(
|
|
126
|
+
var Layer_ = __webpack_require__(56);
|
|
127
127
|
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -207,6 +207,8 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
207
207
|
|
|
208
208
|
_this = _super.call(this, props);
|
|
209
209
|
|
|
210
|
+
_defineProperty(_assertThisInitialized(_this), "allowAnimationUpdates", true);
|
|
211
|
+
|
|
210
212
|
_defineProperty(_assertThisInitialized(_this), "handleClickAway", function (event) {
|
|
211
213
|
var _this$props$onRequest, _this$props;
|
|
212
214
|
|
|
@@ -217,9 +219,11 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
217
219
|
});
|
|
218
220
|
|
|
219
221
|
_defineProperty(_assertThisInitialized(_this), "handleAnimationEnd", function () {
|
|
220
|
-
_this.
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
if (_this.allowAnimationUpdates) {
|
|
223
|
+
_this.setState({
|
|
224
|
+
animating: false
|
|
225
|
+
});
|
|
226
|
+
}
|
|
223
227
|
});
|
|
224
228
|
|
|
225
229
|
_defineProperty(_assertThisInitialized(_this), "renderLayer", function () {
|
|
@@ -263,6 +267,11 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
263
267
|
}
|
|
264
268
|
|
|
265
269
|
_createClass(ModalLayer, [{
|
|
270
|
+
key: "componentWillUnmount",
|
|
271
|
+
value: function componentWillUnmount() {
|
|
272
|
+
this.allowAnimationUpdates = false;
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
266
275
|
key: "render",
|
|
267
276
|
|
|
268
277
|
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
|
@@ -329,7 +338,7 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
329
338
|
|
|
330
339
|
/***/ }),
|
|
331
340
|
|
|
332
|
-
/***/
|
|
341
|
+
/***/ 56:
|
|
333
342
|
/***/ (function(module, exports) {
|
|
334
343
|
|
|
335
344
|
module.exports = require("@splunk/react-ui/Layer");
|