@splunk/react-ui 4.20.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.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- 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 -354
- package/Menu.js +489 -760
- 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 +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- 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 +943 -1448
- 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 +14 -15
- package/stubs-splunkui.d.ts +4 -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 +7 -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/Option.d.ts +1 -1
- 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/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/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/Message.js
CHANGED
|
@@ -1,231 +1,116 @@
|
|
|
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 = 183);
|
|
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
|
-
/***/ 100:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-icons/enterprise/Error");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 101:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("@splunk/react-icons/enterprise/InfoCircle");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 102:
|
|
119
|
-
/***/ (function(module, exports) {
|
|
120
|
-
|
|
121
|
-
module.exports = require("@splunk/react-icons/enterprise/Success");
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 103:
|
|
126
|
-
/***/ (function(module, exports) {
|
|
127
|
-
|
|
128
|
-
module.exports = require("@splunk/react-icons/enterprise/Warning");
|
|
129
|
-
|
|
130
|
-
/***/ }),
|
|
131
|
-
|
|
132
|
-
/***/ 12:
|
|
133
|
-
/***/ (function(module, exports) {
|
|
134
|
-
|
|
135
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
|
|
139
|
-
/***/ 146:
|
|
140
|
-
/***/ (function(module, exports) {
|
|
141
|
-
|
|
142
|
-
module.exports = require("@splunk/react-ui/MessageBar");
|
|
143
|
-
|
|
144
|
-
/***/ }),
|
|
145
|
-
|
|
146
|
-
/***/ 183:
|
|
147
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
148
|
-
|
|
149
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
150
49
|
// ESM COMPAT FLAG
|
|
151
50
|
__webpack_require__.r(__webpack_exports__);
|
|
152
51
|
|
|
153
52
|
// EXPORTS
|
|
154
|
-
__webpack_require__.d(__webpack_exports__,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
var external_react_ = __webpack_require__(2);
|
|
159
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
160
|
-
|
|
161
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
162
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
163
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
164
|
-
|
|
165
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/CheckCircle"
|
|
166
|
-
var CheckCircle_ = __webpack_require__(72);
|
|
167
|
-
var CheckCircle_default = /*#__PURE__*/__webpack_require__.n(CheckCircle_);
|
|
168
|
-
|
|
169
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
170
|
-
var Cross_ = __webpack_require__(26);
|
|
171
|
-
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_);
|
|
172
|
-
|
|
173
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
174
|
-
var Close_ = __webpack_require__(27);
|
|
175
|
-
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
|
|
176
|
-
|
|
177
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ExclamationCircle"
|
|
178
|
-
var ExclamationCircle_ = __webpack_require__(73);
|
|
179
|
-
var ExclamationCircle_default = /*#__PURE__*/__webpack_require__.n(ExclamationCircle_);
|
|
180
|
-
|
|
181
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/InformationCircle"
|
|
182
|
-
var InformationCircle_ = __webpack_require__(98);
|
|
183
|
-
var InformationCircle_default = /*#__PURE__*/__webpack_require__.n(InformationCircle_);
|
|
184
|
-
|
|
185
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ExclamationTriangle"
|
|
186
|
-
var ExclamationTriangle_ = __webpack_require__(99);
|
|
187
|
-
var ExclamationTriangle_default = /*#__PURE__*/__webpack_require__.n(ExclamationTriangle_);
|
|
188
|
-
|
|
189
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Error"
|
|
190
|
-
var Error_ = __webpack_require__(100);
|
|
191
|
-
var Error_default = /*#__PURE__*/__webpack_require__.n(Error_);
|
|
192
|
-
|
|
193
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/InfoCircle"
|
|
194
|
-
var InfoCircle_ = __webpack_require__(101);
|
|
195
|
-
var InfoCircle_default = /*#__PURE__*/__webpack_require__.n(InfoCircle_);
|
|
196
|
-
|
|
197
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Success"
|
|
198
|
-
var Success_ = __webpack_require__(102);
|
|
199
|
-
var Success_default = /*#__PURE__*/__webpack_require__.n(Success_);
|
|
200
|
-
|
|
201
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Warning"
|
|
202
|
-
var Warning_ = __webpack_require__(103);
|
|
203
|
-
var Warning_default = /*#__PURE__*/__webpack_require__.n(Warning_);
|
|
204
|
-
|
|
205
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/MessageBar"
|
|
206
|
-
var MessageBar_ = __webpack_require__(146);
|
|
207
|
-
var MessageBar_default = /*#__PURE__*/__webpack_require__.n(MessageBar_);
|
|
208
|
-
|
|
209
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
210
|
-
var themes_ = __webpack_require__(0);
|
|
211
|
-
|
|
212
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
213
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
214
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
215
|
-
|
|
216
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
217
|
-
var Link_ = __webpack_require__(37);
|
|
218
|
-
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
219
|
-
|
|
220
|
-
// CONCATENATED MODULE: ./src/Message/LinkStyles.ts
|
|
221
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
Link: () => (/* reexport */ Message_Link),
|
|
55
|
+
"default": () => (/* reexport */ Message_Message)
|
|
56
|
+
});
|
|
222
57
|
|
|
223
|
-
|
|
58
|
+
;// CONCATENATED MODULE: external "react"
|
|
59
|
+
const external_react_namespaceObject = require("react");
|
|
60
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
61
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
62
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
63
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
64
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
|
|
65
|
+
const CheckCircle_namespaceObject = require("@splunk/react-icons/CheckCircle");
|
|
66
|
+
var CheckCircle_default = /*#__PURE__*/__webpack_require__.n(CheckCircle_namespaceObject);
|
|
67
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/Cross"
|
|
68
|
+
const Cross_namespaceObject = require("@splunk/react-icons/Cross");
|
|
69
|
+
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_namespaceObject);
|
|
70
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
71
|
+
const Close_namespaceObject = require("@splunk/react-icons/enterprise/Close");
|
|
72
|
+
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_namespaceObject);
|
|
73
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
|
|
74
|
+
const ExclamationCircle_namespaceObject = require("@splunk/react-icons/ExclamationCircle");
|
|
75
|
+
var ExclamationCircle_default = /*#__PURE__*/__webpack_require__.n(ExclamationCircle_namespaceObject);
|
|
76
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
|
|
77
|
+
const InformationCircle_namespaceObject = require("@splunk/react-icons/InformationCircle");
|
|
78
|
+
var InformationCircle_default = /*#__PURE__*/__webpack_require__.n(InformationCircle_namespaceObject);
|
|
79
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationTriangle"
|
|
80
|
+
const ExclamationTriangle_namespaceObject = require("@splunk/react-icons/ExclamationTriangle");
|
|
81
|
+
var ExclamationTriangle_default = /*#__PURE__*/__webpack_require__.n(ExclamationTriangle_namespaceObject);
|
|
82
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Error"
|
|
83
|
+
const Error_namespaceObject = require("@splunk/react-icons/enterprise/Error");
|
|
84
|
+
var Error_default = /*#__PURE__*/__webpack_require__.n(Error_namespaceObject);
|
|
85
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/InfoCircle"
|
|
86
|
+
const InfoCircle_namespaceObject = require("@splunk/react-icons/enterprise/InfoCircle");
|
|
87
|
+
var InfoCircle_default = /*#__PURE__*/__webpack_require__.n(InfoCircle_namespaceObject);
|
|
88
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Success"
|
|
89
|
+
const Success_namespaceObject = require("@splunk/react-icons/enterprise/Success");
|
|
90
|
+
var Success_default = /*#__PURE__*/__webpack_require__.n(Success_namespaceObject);
|
|
91
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Warning"
|
|
92
|
+
const Warning_namespaceObject = require("@splunk/react-icons/enterprise/Warning");
|
|
93
|
+
var Warning_default = /*#__PURE__*/__webpack_require__.n(Warning_namespaceObject);
|
|
94
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/MessageBar"
|
|
95
|
+
const MessageBar_namespaceObject = require("@splunk/react-ui/MessageBar");
|
|
96
|
+
var MessageBar_default = /*#__PURE__*/__webpack_require__.n(MessageBar_namespaceObject);
|
|
97
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
98
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
99
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
100
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
101
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
102
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Link"
|
|
103
|
+
const Link_namespaceObject = require("@splunk/react-ui/Link");
|
|
104
|
+
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_namespaceObject);
|
|
105
|
+
;// CONCATENATED MODULE: ./src/Message/LinkStyles.ts
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var StyledLink = external_styled_components_default()((Link_default())).withConfig({
|
|
224
109
|
displayName: "LinkStyles__StyledLink",
|
|
225
110
|
componentId: "w06zjv-0"
|
|
226
111
|
})([""]);
|
|
227
112
|
|
|
228
|
-
|
|
113
|
+
;// CONCATENATED MODULE: ./src/Message/Link.tsx
|
|
229
114
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
230
115
|
|
|
231
116
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -234,10 +119,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
234
119
|
|
|
235
120
|
|
|
236
121
|
var propTypes = {
|
|
237
|
-
children: external_prop_types_default.
|
|
238
|
-
elementRef: external_prop_types_default.
|
|
239
|
-
openInNewContext: external_prop_types_default.
|
|
240
|
-
to: external_prop_types_default.
|
|
122
|
+
children: (external_prop_types_default()).node,
|
|
123
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
124
|
+
openInNewContext: (external_prop_types_default()).bool,
|
|
125
|
+
to: (external_prop_types_default()).string
|
|
241
126
|
};
|
|
242
127
|
|
|
243
128
|
/**
|
|
@@ -252,166 +137,166 @@ function Link(_ref) {
|
|
|
252
137
|
// @docs-props-type LinkPropsBase
|
|
253
138
|
if (false) {}
|
|
254
139
|
|
|
255
|
-
return /*#__PURE__*/external_react_default.
|
|
140
|
+
return /*#__PURE__*/external_react_default().createElement(StyledLink, otherProps, children);
|
|
256
141
|
}
|
|
257
142
|
|
|
258
143
|
Link.propTypes = propTypes;
|
|
259
|
-
/* harmony default export */
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
|
|
144
|
+
/* harmony default export */ const Message_Link = (Link);
|
|
145
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
146
|
+
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
147
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
148
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
149
|
+
const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
|
|
150
|
+
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
|
|
151
|
+
;// CONCATENATED MODULE: ./src/Message/TitleStyles.ts
|
|
267
152
|
|
|
268
|
-
// CONCATENATED MODULE: ./src/Message/TitleStyles.ts
|
|
269
153
|
|
|
270
|
-
|
|
271
|
-
var StyledTitle = external_styled_components_default.a.p.withConfig({
|
|
154
|
+
var StyledTitle = external_styled_components_default().p.withConfig({
|
|
272
155
|
displayName: "TitleStyles__StyledTitle",
|
|
273
156
|
componentId: "sc-6gbjha-0"
|
|
274
|
-
})(["", " ", ""],
|
|
275
|
-
prisma:
|
|
157
|
+
})(["", " ", ""], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pick)({
|
|
158
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["font-size:14px;line-height:20px;"])
|
|
276
159
|
}));
|
|
277
160
|
|
|
278
|
-
|
|
161
|
+
;// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
|
|
279
162
|
|
|
280
163
|
|
|
281
164
|
|
|
282
165
|
|
|
283
166
|
|
|
284
|
-
var StyledContent = external_styled_components_default.
|
|
167
|
+
var StyledContent = external_styled_components_default().div.withConfig({
|
|
285
168
|
displayName: "MessageStyles__StyledContent",
|
|
286
169
|
componentId: "eg66af-0"
|
|
287
|
-
})(["", ";", ""
|
|
288
|
-
prisma:
|
|
289
|
-
|
|
290
|
-
|
|
170
|
+
})(["display:flex;align-items:baseline;", ";", " ", ";"], (0,themes_namespaceObject.pick)({
|
|
171
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["padding:", " 0;color:", ";"], themes_namespaceObject.variables.spacingMedium, themes_namespaceObject.variables.contentColorActive),
|
|
172
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding:12px 0;"])
|
|
173
|
+
}), (0,themes_namespaceObject.pick)({
|
|
174
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["padding-left:", ";"], themes_namespaceObject.variables.spacingXSmall),
|
|
175
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-left:15px;"])
|
|
176
|
+
}), function (_ref) {
|
|
177
|
+
var $fillStyle = _ref.$fillStyle;
|
|
178
|
+
return $fillStyle && (0,themes_namespaceObject.pick)({
|
|
179
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["padding-left:", ";"], themes_namespaceObject.variables.spacingMedium)
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
var StyledRemove = external_styled_components_default()((Clickable_default())).withConfig({
|
|
291
183
|
displayName: "MessageStyles__StyledRemove",
|
|
292
184
|
componentId: "eg66af-1"
|
|
293
|
-
})(["", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", ""],
|
|
185
|
+
})(["", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", ""], themes_namespaceObject.mixins.reset('flex'), (0,themes_namespaceObject.pick)({
|
|
294
186
|
prisma: '50%',
|
|
295
|
-
enterprise:
|
|
296
|
-
}),
|
|
297
|
-
prisma:
|
|
187
|
+
enterprise: themes_namespaceObject.variables.borderRadius
|
|
188
|
+
}), (0,themes_namespaceObject.pick)({
|
|
189
|
+
prisma: themes_namespaceObject.variables.contentColorMuted,
|
|
298
190
|
enterprise: {
|
|
299
|
-
dark:
|
|
300
|
-
light:
|
|
191
|
+
dark: themes_namespaceObject.variables.gray96,
|
|
192
|
+
light: themes_namespaceObject.variables.gray45
|
|
301
193
|
}
|
|
302
|
-
}), function (
|
|
303
|
-
var $appearance =
|
|
304
|
-
return $appearance === 'banner' &&
|
|
305
|
-
prisma:
|
|
194
|
+
}), function (_ref2) {
|
|
195
|
+
var $appearance = _ref2.$appearance;
|
|
196
|
+
return $appearance === 'banner' && (0,themes_namespaceObject.pick)({
|
|
197
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorInverted)
|
|
306
198
|
});
|
|
307
|
-
},
|
|
308
|
-
prisma:
|
|
309
|
-
enterprise:
|
|
310
|
-
}),
|
|
311
|
-
prisma:
|
|
199
|
+
}, (0,themes_namespaceObject.pick)({
|
|
200
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["top:3px;right:2px;"]),
|
|
201
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["top:8px;right:8px;"])
|
|
202
|
+
}), (0,themes_namespaceObject.pick)({
|
|
203
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover,
|
|
312
204
|
enterprise: {
|
|
313
|
-
dark:
|
|
314
|
-
light:
|
|
205
|
+
dark: themes_namespaceObject.variables.gray30,
|
|
206
|
+
light: themes_namespaceObject.variables.gray92
|
|
315
207
|
}
|
|
316
|
-
}),
|
|
317
|
-
prisma:
|
|
318
|
-
enterprise:
|
|
319
|
-
}),
|
|
208
|
+
}), (0,themes_namespaceObject.pick)({
|
|
209
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["1px solid inherit"]),
|
|
210
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["1px solid ", ""], themes_namespaceObject.variables.gray80)
|
|
211
|
+
}), (0,themes_namespaceObject.pick)({
|
|
320
212
|
enterprise: {
|
|
321
|
-
dark:
|
|
322
|
-
light:
|
|
213
|
+
dark: themes_namespaceObject.variables.gray96,
|
|
214
|
+
light: themes_namespaceObject.variables.linkColor
|
|
323
215
|
},
|
|
324
|
-
prisma:
|
|
325
|
-
}),
|
|
326
|
-
prisma:
|
|
327
|
-
enterprise:
|
|
328
|
-
}),
|
|
329
|
-
prisma:
|
|
216
|
+
prisma: themes_namespaceObject.variables.contentColorActive
|
|
217
|
+
}), (0,themes_namespaceObject.pick)({
|
|
218
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["background:", ";"], themes_namespaceObject.variables.interactiveColorOverlayActive),
|
|
219
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["box-shadow:", ";"], themes_namespaceObject.variables.focusShadow)
|
|
220
|
+
}), (0,themes_namespaceObject.pick)({
|
|
221
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["&:focus{box-shadow:0 0 0 3px ", ";}"], themes_namespaceObject.variables.focusColor)
|
|
330
222
|
}));
|
|
331
|
-
var StyledIconWrapper = external_styled_components_default.
|
|
223
|
+
var StyledIconWrapper = external_styled_components_default().span.withConfig({
|
|
332
224
|
displayName: "MessageStyles__StyledIconWrapper",
|
|
333
225
|
componentId: "eg66af-2"
|
|
334
|
-
})(["position:
|
|
335
|
-
prisma:
|
|
336
|
-
enterprise: '7px'
|
|
337
|
-
}), Object(themes_["pick"])({
|
|
338
|
-
prisma: '24px',
|
|
226
|
+
})(["position:relative;min-width:", ";text-align:center;color:", ";", " ", ""], (0,themes_namespaceObject.pick)({
|
|
227
|
+
prisma: themes_namespaceObject.variables.spacingXLarge,
|
|
339
228
|
enterprise: '25px'
|
|
340
|
-
}),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
229
|
+
}), themes_namespaceObject.variables.white, (0,themes_namespaceObject.pick)({
|
|
230
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["top:-2px;"]),
|
|
231
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["top:-1.8px;"])
|
|
232
|
+
}), (0,themes_namespaceObject.pickVariant)('$type', {
|
|
233
|
+
info: (0,external_styled_components_namespaceObject.css)(["color:", ";"], (0,themes_namespaceObject.pick)({
|
|
234
|
+
prisma: themes_namespaceObject.variables.contentColorMuted,
|
|
235
|
+
enterprise: themes_namespaceObject.variables.infoColor
|
|
346
236
|
})),
|
|
347
|
-
success:
|
|
348
|
-
warning:
|
|
349
|
-
error:
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
return $fillStyle && Object(themes_["pick"])({
|
|
353
|
-
prisma: Object(external_styled_components_["css"])(["background-color:", ";"], Object(themes_["pickVariant"])('$type', {
|
|
354
|
-
info: themes_["variables"].contentColorActive,
|
|
355
|
-
success: themes_["variables"].accentColorPositive,
|
|
356
|
-
warning: themes_["variables"].accentColorWarning,
|
|
357
|
-
error: themes_["variables"].accentColorNegative
|
|
358
|
-
}))
|
|
359
|
-
});
|
|
360
|
-
});
|
|
361
|
-
var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
237
|
+
success: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.accentColorPositive),
|
|
238
|
+
warning: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.accentColorWarning),
|
|
239
|
+
error: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.accentColorNegative)
|
|
240
|
+
}));
|
|
241
|
+
var StyledBox = external_styled_components_default()((Box_default())).withConfig({
|
|
362
242
|
displayName: "MessageStyles__StyledBox",
|
|
363
243
|
componentId: "eg66af-3"
|
|
364
|
-
})(["", ";position:relative;border-radius:", ";margin-bottom:", ";
|
|
365
|
-
prisma:
|
|
244
|
+
})(["", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", ""], themes_namespaceObject.mixins.reset('flex'), (0,themes_namespaceObject.pick)({
|
|
245
|
+
prisma: themes_namespaceObject.variables.borderRadius,
|
|
366
246
|
enterprise: '5px'
|
|
367
|
-
}),
|
|
247
|
+
}), themes_namespaceObject.variables.spacingSmall, (0,themes_namespaceObject.pickVariant)('$hasRemoveIcon', {
|
|
368
248
|
"true": {
|
|
369
|
-
prisma:
|
|
370
|
-
enterprise:
|
|
249
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["padding-right:", ";"], themes_namespaceObject.variables.spacingXXXLarge),
|
|
250
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-right:40px;"])
|
|
371
251
|
},
|
|
372
252
|
"false": {
|
|
373
|
-
prisma:
|
|
374
|
-
enterprise:
|
|
253
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["padding-right:", ";"], themes_namespaceObject.variables.spacingSmall),
|
|
254
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-right:", ";"], themes_namespaceObject.variables.spacingHalf)
|
|
375
255
|
}
|
|
376
256
|
}), function (_ref3) {
|
|
377
257
|
var $fillStyle = _ref3.$fillStyle;
|
|
378
|
-
return $fillStyle &&
|
|
379
|
-
enterprise:
|
|
258
|
+
return $fillStyle && (0,themes_namespaceObject.pick)({
|
|
259
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["& > ", "{left:", ";}", ""],
|
|
380
260
|
/* sc-sel */
|
|
381
|
-
StyledIconWrapper,
|
|
382
|
-
info:
|
|
383
|
-
light:
|
|
384
|
-
dark:
|
|
261
|
+
StyledIconWrapper, themes_namespaceObject.variables.spacingXSmall, (0,themes_namespaceObject.pickVariant)('$type', {
|
|
262
|
+
info: (0,external_styled_components_namespaceObject.css)(["", ""], (0,themes_namespaceObject.pick)({
|
|
263
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border:1px solid ", ";"], themes_namespaceObject.variables.infoColorL50, themes_namespaceObject.variables.infoColor),
|
|
264
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.infoColor, 0.5))
|
|
385
265
|
})),
|
|
386
|
-
success:
|
|
387
|
-
light:
|
|
388
|
-
dark:
|
|
266
|
+
success: (0,external_styled_components_namespaceObject.css)(["", ""], (0,themes_namespaceObject.pick)({
|
|
267
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border:1px solid ", ";"], themes_namespaceObject.variables.successColorL50, themes_namespaceObject.variables.successColor),
|
|
268
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.successColor, 0.5))
|
|
389
269
|
})),
|
|
390
|
-
warning:
|
|
391
|
-
light:
|
|
392
|
-
dark:
|
|
270
|
+
warning: (0,external_styled_components_namespaceObject.css)(["", ""], (0,themes_namespaceObject.pick)({
|
|
271
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border:1px solid ", ";"], themes_namespaceObject.variables.warningColorL50, themes_namespaceObject.variables.warningColor),
|
|
272
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.warningColor, 0.5))
|
|
393
273
|
})),
|
|
394
|
-
error:
|
|
395
|
-
light:
|
|
396
|
-
dark:
|
|
274
|
+
error: (0,external_styled_components_namespaceObject.css)(["", ""], (0,themes_namespaceObject.pick)({
|
|
275
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border:1px solid ", ";"], themes_namespaceObject.variables.errorColorL50, themes_namespaceObject.variables.errorColor),
|
|
276
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], themes_namespaceObject.mixins.colorWithAlpha(themes_namespaceObject.variables.errorColor, 0.5))
|
|
397
277
|
}))
|
|
398
278
|
})),
|
|
399
|
-
prisma:
|
|
279
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["background:linear-gradient( to right,", " ", " ", ",", " 100% );box-shadow:", ";& > ", "{color:", ";}"], (0,themes_namespaceObject.pickVariant)('$type', {
|
|
280
|
+
info: (0,external_styled_components_namespaceObject.css)(["", " 0,", " ", ","], themes_namespaceObject.variables.contentColorActive, themes_namespaceObject.variables.contentColorActive, themes_namespaceObject.variables.spacingXLarge),
|
|
281
|
+
success: (0,external_styled_components_namespaceObject.css)(["", " 0,", " ", ","], themes_namespaceObject.variables.accentColorPositive, themes_namespaceObject.variables.accentColorPositive, themes_namespaceObject.variables.spacingXLarge),
|
|
282
|
+
warning: (0,external_styled_components_namespaceObject.css)(["", " 0,", " ", ","], themes_namespaceObject.variables.accentColorWarning, themes_namespaceObject.variables.accentColorWarning, themes_namespaceObject.variables.spacingXLarge),
|
|
283
|
+
error: (0,external_styled_components_namespaceObject.css)(["", " 0,", " ", ","], themes_namespaceObject.variables.accentColorNegative, themes_namespaceObject.variables.accentColorNegative, themes_namespaceObject.variables.spacingXLarge)
|
|
284
|
+
}), themes_namespaceObject.variables.backgroundColorPopup, themes_namespaceObject.variables.spacingXLarge, themes_namespaceObject.variables.backgroundColorPopup, themes_namespaceObject.variables.embossShadow,
|
|
400
285
|
/* sc-sel */
|
|
401
|
-
StyledIconWrapper,
|
|
286
|
+
StyledIconWrapper, themes_namespaceObject.variables.backgroundColorPopup)
|
|
402
287
|
});
|
|
403
|
-
},
|
|
404
|
-
prisma:
|
|
288
|
+
}, (0,themes_namespaceObject.pick)({
|
|
289
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["& ", "{color:", ";}"],
|
|
405
290
|
/* sc-sel */
|
|
406
|
-
StyledTitle,
|
|
407
|
-
info:
|
|
408
|
-
warning:
|
|
409
|
-
error:
|
|
410
|
-
success:
|
|
291
|
+
StyledTitle, (0,themes_namespaceObject.pickVariant)('$type', {
|
|
292
|
+
info: themes_namespaceObject.variables.contentColorActive,
|
|
293
|
+
warning: themes_namespaceObject.variables.accentColorWarning,
|
|
294
|
+
error: themes_namespaceObject.variables.accentColorNegative,
|
|
295
|
+
success: themes_namespaceObject.variables.accentColorPositive
|
|
411
296
|
}))
|
|
412
297
|
}));
|
|
413
298
|
|
|
414
|
-
|
|
299
|
+
;// CONCATENATED MODULE: ./src/Message/Title.tsx
|
|
415
300
|
function Title_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Title_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
416
301
|
|
|
417
302
|
function Title_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -420,7 +305,7 @@ function Title_objectWithoutPropertiesLoose(source, excluded) { if (source == nu
|
|
|
420
305
|
|
|
421
306
|
|
|
422
307
|
var Title_propTypes = {
|
|
423
|
-
children: external_prop_types_default.
|
|
308
|
+
children: (external_prop_types_default()).node
|
|
424
309
|
};
|
|
425
310
|
/**
|
|
426
311
|
* A title component for use in `Message`.
|
|
@@ -431,12 +316,12 @@ function Title(_ref) {
|
|
|
431
316
|
otherProps = Title_objectWithoutProperties(_ref, ["children"]);
|
|
432
317
|
|
|
433
318
|
// @docs-props-type TitleProps
|
|
434
|
-
return /*#__PURE__*/external_react_default.
|
|
319
|
+
return /*#__PURE__*/external_react_default().createElement(StyledTitle, otherProps, children);
|
|
435
320
|
}
|
|
436
321
|
|
|
437
322
|
Title.propTypes = Title_propTypes;
|
|
438
|
-
/* harmony default export */
|
|
439
|
-
|
|
323
|
+
/* harmony default export */ const Message_Title = (Title);
|
|
324
|
+
;// CONCATENATED MODULE: ./src/Message/Message.tsx
|
|
440
325
|
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); }
|
|
441
326
|
|
|
442
327
|
function Message_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Message_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -461,23 +346,23 @@ function Message_objectWithoutPropertiesLoose(source, excluded) { if (source ==
|
|
|
461
346
|
|
|
462
347
|
|
|
463
348
|
var Message_propTypes = {
|
|
464
|
-
appearance: external_prop_types_default.
|
|
465
|
-
children: external_prop_types_default.
|
|
466
|
-
elementRef: external_prop_types_default.
|
|
467
|
-
onRequestRemove: external_prop_types_default.
|
|
468
|
-
type: external_prop_types_default.
|
|
349
|
+
appearance: external_prop_types_default().oneOf(['default', 'fill', 'banner']),
|
|
350
|
+
children: (external_prop_types_default()).node,
|
|
351
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
352
|
+
onRequestRemove: (external_prop_types_default()).func,
|
|
353
|
+
type: external_prop_types_default().oneOf(['info', 'success', 'warning', 'error'])
|
|
469
354
|
};
|
|
470
355
|
var enterpriseTypeToIconMap = Object.freeze({
|
|
471
|
-
info: InfoCircle_default
|
|
472
|
-
warning: Warning_default
|
|
473
|
-
error: Error_default
|
|
474
|
-
success: Success_default
|
|
356
|
+
info: (InfoCircle_default()),
|
|
357
|
+
warning: (Warning_default()),
|
|
358
|
+
error: (Error_default()),
|
|
359
|
+
success: (Success_default())
|
|
475
360
|
});
|
|
476
361
|
var prismaTypeToIconMap = Object.freeze({
|
|
477
|
-
info: InformationCircle_default
|
|
478
|
-
warning: ExclamationTriangle_default
|
|
479
|
-
error: ExclamationCircle_default
|
|
480
|
-
success: CheckCircle_default
|
|
362
|
+
info: (InformationCircle_default()),
|
|
363
|
+
warning: (ExclamationTriangle_default()),
|
|
364
|
+
error: (ExclamationCircle_default()),
|
|
365
|
+
success: (CheckCircle_default())
|
|
481
366
|
});
|
|
482
367
|
|
|
483
368
|
function Message(_ref) {
|
|
@@ -490,18 +375,18 @@ function Message(_ref) {
|
|
|
490
375
|
otherProps = Message_objectWithoutProperties(_ref, ["appearance", "children", "type", "onRequestRemove"]);
|
|
491
376
|
|
|
492
377
|
// @docs-props-type MessagePropsBase
|
|
493
|
-
var _useSplunkTheme =
|
|
378
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
494
379
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
495
380
|
|
|
496
381
|
if (false) {} // double check this can only be button
|
|
497
382
|
|
|
498
383
|
|
|
499
|
-
var handleRemoveClick =
|
|
384
|
+
var handleRemoveClick = (0,external_react_namespaceObject.useCallback)(function (e) {
|
|
500
385
|
onRequestRemove === null || onRequestRemove === void 0 ? void 0 : onRequestRemove(e);
|
|
501
386
|
}, [onRequestRemove]);
|
|
502
387
|
|
|
503
388
|
if (appearance === 'banner') {
|
|
504
|
-
return /*#__PURE__*/external_react_default.
|
|
389
|
+
return /*#__PURE__*/external_react_default().createElement((MessageBar_default()), _extends({
|
|
505
390
|
type: type,
|
|
506
391
|
"data-test": "banner",
|
|
507
392
|
onRequestClose: handleRemoveClick
|
|
@@ -512,39 +397,36 @@ function Message(_ref) {
|
|
|
512
397
|
var Icon = typeToIconMap[type];
|
|
513
398
|
var fillStyle = appearance === 'fill';
|
|
514
399
|
var hasIcon = appearance === 'default' || appearance === 'fill';
|
|
515
|
-
return /*#__PURE__*/external_react_default.
|
|
400
|
+
return /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
|
|
516
401
|
$appearance: appearance,
|
|
517
402
|
$fillStyle: fillStyle,
|
|
518
403
|
$hasRemoveIcon: !!onRequestRemove,
|
|
519
404
|
$type: type,
|
|
520
405
|
"data-test-type": type,
|
|
521
406
|
"data-test": "message"
|
|
522
|
-
}, otherProps), hasIcon && /*#__PURE__*/external_react_default.
|
|
407
|
+
}, otherProps), hasIcon && /*#__PURE__*/external_react_default().createElement(StyledIconWrapper, {
|
|
523
408
|
$fillStyle: fillStyle,
|
|
524
409
|
$type: type
|
|
525
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
410
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
526
411
|
height: "24px",
|
|
527
412
|
width: "24px",
|
|
528
413
|
hideDefaultTooltip: true,
|
|
529
414
|
screenReaderText: null
|
|
530
|
-
}) : /*#__PURE__*/external_react_default.
|
|
531
|
-
variant: "filled"
|
|
532
|
-
|
|
533
|
-
verticalAlign: 'bottom'
|
|
534
|
-
}
|
|
535
|
-
})), /*#__PURE__*/external_react_default.a.createElement(StyledContent, {
|
|
415
|
+
}) : /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
416
|
+
variant: "filled"
|
|
417
|
+
})), /*#__PURE__*/external_react_default().createElement(StyledContent, {
|
|
536
418
|
"data-test": "content",
|
|
537
419
|
$fillStyle: fillStyle
|
|
538
|
-
}, children), onRequestRemove && /*#__PURE__*/external_react_default.
|
|
420
|
+
}, children), onRequestRemove && /*#__PURE__*/external_react_default().createElement(StyledRemove, {
|
|
539
421
|
"data-test": "remove",
|
|
540
422
|
onClick: handleRemoveClick,
|
|
541
423
|
$appearance: appearance
|
|
542
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
424
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Close_default()), {
|
|
543
425
|
height: "12px",
|
|
544
426
|
hideDefaultTooltip: true,
|
|
545
427
|
screenReaderText: null,
|
|
546
428
|
width: "12px"
|
|
547
|
-
}) : /*#__PURE__*/external_react_default.
|
|
429
|
+
}) : /*#__PURE__*/external_react_default().createElement((Cross_default()), {
|
|
548
430
|
height: "20px",
|
|
549
431
|
width: "20px"
|
|
550
432
|
})));
|
|
@@ -553,82 +435,11 @@ function Message(_ref) {
|
|
|
553
435
|
Message.propTypes = Message_propTypes;
|
|
554
436
|
Message.Title = Message_Title;
|
|
555
437
|
Message.Link = Message_Link;
|
|
556
|
-
/* harmony default export */
|
|
557
|
-
|
|
558
|
-
// CONCATENATED MODULE: ./src/Message/index.ts
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
/***/ }),
|
|
563
|
-
|
|
564
|
-
/***/ 2:
|
|
565
|
-
/***/ (function(module, exports) {
|
|
566
|
-
|
|
567
|
-
module.exports = require("react");
|
|
568
|
-
|
|
569
|
-
/***/ }),
|
|
570
|
-
|
|
571
|
-
/***/ 26:
|
|
572
|
-
/***/ (function(module, exports) {
|
|
573
|
-
|
|
574
|
-
module.exports = require("@splunk/react-icons/Cross");
|
|
575
|
-
|
|
576
|
-
/***/ }),
|
|
577
|
-
|
|
578
|
-
/***/ 27:
|
|
579
|
-
/***/ (function(module, exports) {
|
|
580
|
-
|
|
581
|
-
module.exports = require("@splunk/react-icons/enterprise/Close");
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
|
|
585
|
-
/***/ 3:
|
|
586
|
-
/***/ (function(module, exports) {
|
|
587
|
-
|
|
588
|
-
module.exports = require("styled-components");
|
|
589
|
-
|
|
590
|
-
/***/ }),
|
|
591
|
-
|
|
592
|
-
/***/ 37:
|
|
593
|
-
/***/ (function(module, exports) {
|
|
594
|
-
|
|
595
|
-
module.exports = require("@splunk/react-ui/Link");
|
|
596
|
-
|
|
597
|
-
/***/ }),
|
|
598
|
-
|
|
599
|
-
/***/ 6:
|
|
600
|
-
/***/ (function(module, exports) {
|
|
601
|
-
|
|
602
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
603
|
-
|
|
604
|
-
/***/ }),
|
|
605
|
-
|
|
606
|
-
/***/ 72:
|
|
607
|
-
/***/ (function(module, exports) {
|
|
608
|
-
|
|
609
|
-
module.exports = require("@splunk/react-icons/CheckCircle");
|
|
610
|
-
|
|
611
|
-
/***/ }),
|
|
612
|
-
|
|
613
|
-
/***/ 73:
|
|
614
|
-
/***/ (function(module, exports) {
|
|
615
|
-
|
|
616
|
-
module.exports = require("@splunk/react-icons/ExclamationCircle");
|
|
617
|
-
|
|
618
|
-
/***/ }),
|
|
619
|
-
|
|
620
|
-
/***/ 98:
|
|
621
|
-
/***/ (function(module, exports) {
|
|
622
|
-
|
|
623
|
-
module.exports = require("@splunk/react-icons/InformationCircle");
|
|
624
|
-
|
|
625
|
-
/***/ }),
|
|
626
|
-
|
|
627
|
-
/***/ 99:
|
|
628
|
-
/***/ (function(module, exports) {
|
|
438
|
+
/* harmony default export */ const Message_Message = (Message);
|
|
629
439
|
|
|
630
|
-
|
|
440
|
+
;// CONCATENATED MODULE: ./src/Message/index.ts
|
|
631
441
|
|
|
632
|
-
/***/ })
|
|
633
442
|
|
|
634
|
-
|
|
443
|
+
module.exports = __webpack_exports__;
|
|
444
|
+
/******/ })()
|
|
445
|
+
;
|