@splunk/react-ui 4.19.0 → 4.21.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 +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.d.ts +2 -0
- package/Breadcrumbs.js +207 -0
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +35 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +132 -248
- package/CloseButton.js +92 -200
- package/Code.js +188 -251
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -355
- package/Menu.js +396 -647
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +2675 -2807
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +436 -623
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +183 -304
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1243 -1248
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +975 -1447
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +20 -21
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/types/src/Breadcrumbs/Item.d.ts +42 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
- package/types/src/Breadcrumbs/index.d.ts +2 -0
- package/types/src/Code/Code.d.ts +1 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +12 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +5 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/Select/SelectAllOption.d.ts +14 -0
- package/types/src/Select/SelectBase.d.ts +11 -3
- package/types/src/Table/Table.d.ts +4 -0
- package/types/src/Text/Text.d.ts +3 -3
- package/types/src/TextArea/TextArea.d.ts +3 -3
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- package/types/src/Typography/docs/examples/Variants.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/ModalLayer.js
CHANGED
|
@@ -1,159 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
44
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 223);
|
|
86
|
-
/******/ })
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 2:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("react");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 223:
|
|
112
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
|
-
|
|
114
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
115
49
|
// ESM COMPAT FLAG
|
|
116
50
|
__webpack_require__.r(__webpack_exports__);
|
|
117
51
|
|
|
118
52
|
// EXPORTS
|
|
119
|
-
__webpack_require__.d(__webpack_exports__,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var external_react_ = __webpack_require__(2);
|
|
123
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
124
|
-
|
|
125
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
126
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
127
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
|
-
|
|
129
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
130
|
-
var Animation_ = __webpack_require__(40);
|
|
131
|
-
|
|
132
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
133
|
-
var Layer_ = __webpack_require__(83);
|
|
134
|
-
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
135
|
-
|
|
136
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
137
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
138
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
139
|
-
|
|
140
|
-
// EXTERNAL MODULE: external "react-spring"
|
|
141
|
-
var external_react_spring_ = __webpack_require__(24);
|
|
142
|
-
|
|
143
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
144
|
-
var themes_ = __webpack_require__(0);
|
|
145
|
-
|
|
146
|
-
// CONCATENATED MODULE: ./src/ModalLayer/ModalLayerStyles.ts
|
|
147
|
-
|
|
148
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"default": () => (/* reexport */ ModalLayer_ModalLayer)
|
|
55
|
+
});
|
|
149
56
|
|
|
150
|
-
|
|
151
|
-
|
|
57
|
+
;// CONCATENATED MODULE: external "react"
|
|
58
|
+
const external_react_namespaceObject = require("react");
|
|
59
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
60
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
61
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
62
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
63
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
64
|
+
const Animation_namespaceObject = require("@splunk/react-ui/Animation");
|
|
65
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Layer"
|
|
66
|
+
const Layer_namespaceObject = require("@splunk/react-ui/Layer");
|
|
67
|
+
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_namespaceObject);
|
|
68
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
69
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
70
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
71
|
+
;// CONCATENATED MODULE: external "react-spring"
|
|
72
|
+
const external_react_spring_namespaceObject = require("react-spring");
|
|
73
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
74
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
75
|
+
;// CONCATENATED MODULE: ./src/ModalLayer/ModalLayerStyles.ts
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var overlay = (0,external_styled_components_namespaceObject.css)(["", ";position:fixed;top:0;right:0;bottom:0;left:0;"], themes_namespaceObject.mixins.reset('block'));
|
|
80
|
+
var StyledClickAwayOverlay = external_styled_components_default()(external_react_spring_namespaceObject.animated.div).withConfig({
|
|
152
81
|
displayName: "ModalLayerStyles__StyledClickAwayOverlay",
|
|
153
82
|
componentId: "sc-1sa3n1j-0"
|
|
154
|
-
})(["", ";background-color:", ";z-index:", ";"], overlay,
|
|
83
|
+
})(["", ";background-color:", ";z-index:", ";"], overlay, themes_namespaceObject.variables.backgroundColorScrim, themes_namespaceObject.variables.zindexModalBackdrop);
|
|
155
84
|
|
|
156
|
-
|
|
85
|
+
;// CONCATENATED MODULE: ./src/ModalLayer/ModalLayer.tsx
|
|
157
86
|
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); }
|
|
158
87
|
|
|
159
88
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -188,13 +117,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
188
117
|
|
|
189
118
|
|
|
190
119
|
var propTypes = {
|
|
191
|
-
childrenInAnimation: external_prop_types_default.
|
|
192
|
-
getDefaultMotionStyle: external_prop_types_default.
|
|
193
|
-
getMotionStyle: external_prop_types_default.
|
|
194
|
-
onRequestClose: external_prop_types_default.
|
|
195
|
-
open: external_prop_types_default.
|
|
196
|
-
renderModal: external_prop_types_default.
|
|
197
|
-
useLayerForClickAway: external_prop_types_default.
|
|
120
|
+
childrenInAnimation: (external_prop_types_default()).bool,
|
|
121
|
+
getDefaultMotionStyle: (external_prop_types_default()).func,
|
|
122
|
+
getMotionStyle: (external_prop_types_default()).func,
|
|
123
|
+
onRequestClose: (external_prop_types_default()).func,
|
|
124
|
+
open: (external_prop_types_default()).bool,
|
|
125
|
+
renderModal: (external_prop_types_default()).func.isRequired,
|
|
126
|
+
useLayerForClickAway: (external_prop_types_default()).bool
|
|
198
127
|
};
|
|
199
128
|
var defaultProps = {
|
|
200
129
|
childrenInAnimation: false,
|
|
@@ -202,7 +131,7 @@ var defaultProps = {
|
|
|
202
131
|
useLayerForClickAway: true
|
|
203
132
|
};
|
|
204
133
|
|
|
205
|
-
var
|
|
134
|
+
var ModalLayer = /*#__PURE__*/function (_Component) {
|
|
206
135
|
_inherits(ModalLayer, _Component);
|
|
207
136
|
|
|
208
137
|
var _super = _createSuper(ModalLayer);
|
|
@@ -240,7 +169,7 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
240
169
|
renderModal = _this$props2.renderModal,
|
|
241
170
|
useLayerForClickAway = _this$props2.useLayerForClickAway;
|
|
242
171
|
var open = _this.props.open || _this.state.animating;
|
|
243
|
-
return /*#__PURE__*/external_react_default.
|
|
172
|
+
return /*#__PURE__*/external_react_default().createElement(Animation_namespaceObject.Spring, {
|
|
244
173
|
from: _objectSpread(_objectSpread({}, getDefaultMotionStyle === null || getDefaultMotionStyle === void 0 ? void 0 : getDefaultMotionStyle()), {}, {
|
|
245
174
|
overlayOpacity: 0,
|
|
246
175
|
opacity: 0
|
|
@@ -251,9 +180,9 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
251
180
|
}),
|
|
252
181
|
onRest: _this.handleAnimationEnd
|
|
253
182
|
}, function (interpolatedStyle) {
|
|
254
|
-
return /*#__PURE__*/external_react_default.
|
|
183
|
+
return /*#__PURE__*/external_react_default().createElement("div", null,
|
|
255
184
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
256
|
-
renderModal(interpolatedStyle), open && useLayerForClickAway && /*#__PURE__*/external_react_default.
|
|
185
|
+
renderModal(interpolatedStyle), open && useLayerForClickAway && /*#__PURE__*/external_react_default().createElement(StyledClickAwayOverlay, {
|
|
257
186
|
"data-test": "modal-overlay",
|
|
258
187
|
onMouseDown: _this.handleClickAway,
|
|
259
188
|
key: "clickAway",
|
|
@@ -284,7 +213,7 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
284
213
|
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
|
285
214
|
value: function render() {
|
|
286
215
|
var open = this.props.open || this.state.animating || this.props.childrenInAnimation;
|
|
287
|
-
return /*#__PURE__*/external_react_default.
|
|
216
|
+
return /*#__PURE__*/external_react_default().createElement((Layer_default()), {
|
|
288
217
|
open: open,
|
|
289
218
|
closeReasons: ['escapeKey'],
|
|
290
219
|
onRequestClose: this.props.onRequestClose
|
|
@@ -293,13 +222,13 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
293
222
|
}]);
|
|
294
223
|
|
|
295
224
|
return ModalLayer;
|
|
296
|
-
}(
|
|
225
|
+
}(external_react_namespaceObject.Component);
|
|
297
226
|
|
|
298
|
-
_defineProperty(
|
|
227
|
+
_defineProperty(ModalLayer, "propTypes", propTypes);
|
|
299
228
|
|
|
300
|
-
_defineProperty(
|
|
229
|
+
_defineProperty(ModalLayer, "defaultProps", defaultProps);
|
|
301
230
|
|
|
302
|
-
_defineProperty(
|
|
231
|
+
_defineProperty(ModalLayer, "getDerivedStateFromProps", function (props, state) {
|
|
303
232
|
if (props.open !== state.prevOpen) {
|
|
304
233
|
return {
|
|
305
234
|
animating: true,
|
|
@@ -310,39 +239,10 @@ _defineProperty(ModalLayer_ModalLayer, "getDerivedStateFromProps", function (pro
|
|
|
310
239
|
return null;
|
|
311
240
|
});
|
|
312
241
|
|
|
313
|
-
/* harmony default export */
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/***/ }),
|
|
319
|
-
|
|
320
|
-
/***/ 24:
|
|
321
|
-
/***/ (function(module, exports) {
|
|
322
|
-
|
|
323
|
-
module.exports = require("react-spring");
|
|
324
|
-
|
|
325
|
-
/***/ }),
|
|
326
|
-
|
|
327
|
-
/***/ 3:
|
|
328
|
-
/***/ (function(module, exports) {
|
|
329
|
-
|
|
330
|
-
module.exports = require("styled-components");
|
|
331
|
-
|
|
332
|
-
/***/ }),
|
|
333
|
-
|
|
334
|
-
/***/ 40:
|
|
335
|
-
/***/ (function(module, exports) {
|
|
336
|
-
|
|
337
|
-
module.exports = require("@splunk/react-ui/Animation");
|
|
338
|
-
|
|
339
|
-
/***/ }),
|
|
340
|
-
|
|
341
|
-
/***/ 83:
|
|
342
|
-
/***/ (function(module, exports) {
|
|
343
|
-
|
|
344
|
-
module.exports = require("@splunk/react-ui/Layer");
|
|
242
|
+
/* harmony default export */ const ModalLayer_ModalLayer = (ModalLayer);
|
|
243
|
+
;// CONCATENATED MODULE: ./src/ModalLayer/index.ts
|
|
345
244
|
|
|
346
|
-
/***/ })
|
|
347
245
|
|
|
348
|
-
|
|
246
|
+
module.exports = __webpack_exports__;
|
|
247
|
+
/******/ })()
|
|
248
|
+
;
|