@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/Message.js
CHANGED
|
@@ -1,217 +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 = 182);
|
|
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/Success");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 101:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("@splunk/react-icons/enterprise/Warning");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 12:
|
|
119
|
-
/***/ (function(module, exports) {
|
|
120
|
-
|
|
121
|
-
module.exports = require("@splunk/react-ui/Clickable");
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 144:
|
|
126
|
-
/***/ (function(module, exports) {
|
|
127
|
-
|
|
128
|
-
module.exports = require("@splunk/react-ui/MessageBar");
|
|
129
|
-
|
|
130
|
-
/***/ }),
|
|
131
|
-
|
|
132
|
-
/***/ 182:
|
|
133
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
134
|
-
|
|
135
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
136
49
|
// ESM COMPAT FLAG
|
|
137
50
|
__webpack_require__.r(__webpack_exports__);
|
|
138
51
|
|
|
139
52
|
// EXPORTS
|
|
140
|
-
__webpack_require__.d(__webpack_exports__,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var external_react_ = __webpack_require__(2);
|
|
145
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
146
|
-
|
|
147
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
148
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
149
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
150
|
-
|
|
151
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/CheckCircle"
|
|
152
|
-
var CheckCircle_ = __webpack_require__(70);
|
|
153
|
-
var CheckCircle_default = /*#__PURE__*/__webpack_require__.n(CheckCircle_);
|
|
154
|
-
|
|
155
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
156
|
-
var Cross_ = __webpack_require__(25);
|
|
157
|
-
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_);
|
|
158
|
-
|
|
159
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
160
|
-
var Close_ = __webpack_require__(26);
|
|
161
|
-
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
|
|
162
|
-
|
|
163
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ExclamationCircle"
|
|
164
|
-
var ExclamationCircle_ = __webpack_require__(71);
|
|
165
|
-
var ExclamationCircle_default = /*#__PURE__*/__webpack_require__.n(ExclamationCircle_);
|
|
166
|
-
|
|
167
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/InformationCircle"
|
|
168
|
-
var InformationCircle_ = __webpack_require__(96);
|
|
169
|
-
var InformationCircle_default = /*#__PURE__*/__webpack_require__.n(InformationCircle_);
|
|
170
|
-
|
|
171
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/ExclamationTriangle"
|
|
172
|
-
var ExclamationTriangle_ = __webpack_require__(97);
|
|
173
|
-
var ExclamationTriangle_default = /*#__PURE__*/__webpack_require__.n(ExclamationTriangle_);
|
|
174
|
-
|
|
175
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Error"
|
|
176
|
-
var Error_ = __webpack_require__(98);
|
|
177
|
-
var Error_default = /*#__PURE__*/__webpack_require__.n(Error_);
|
|
178
|
-
|
|
179
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/InfoCircle"
|
|
180
|
-
var InfoCircle_ = __webpack_require__(99);
|
|
181
|
-
var InfoCircle_default = /*#__PURE__*/__webpack_require__.n(InfoCircle_);
|
|
182
|
-
|
|
183
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Success"
|
|
184
|
-
var Success_ = __webpack_require__(100);
|
|
185
|
-
var Success_default = /*#__PURE__*/__webpack_require__.n(Success_);
|
|
186
|
-
|
|
187
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Warning"
|
|
188
|
-
var Warning_ = __webpack_require__(101);
|
|
189
|
-
var Warning_default = /*#__PURE__*/__webpack_require__.n(Warning_);
|
|
190
|
-
|
|
191
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/MessageBar"
|
|
192
|
-
var MessageBar_ = __webpack_require__(144);
|
|
193
|
-
var MessageBar_default = /*#__PURE__*/__webpack_require__.n(MessageBar_);
|
|
194
|
-
|
|
195
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
196
|
-
var themes_ = __webpack_require__(0);
|
|
197
|
-
|
|
198
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
199
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
200
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
201
|
-
|
|
202
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
203
|
-
var Link_ = __webpack_require__(39);
|
|
204
|
-
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
205
|
-
|
|
206
|
-
// CONCATENATED MODULE: ./src/Message/LinkStyles.ts
|
|
207
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
Link: () => (/* reexport */ Message_Link),
|
|
55
|
+
"default": () => (/* reexport */ Message_Message)
|
|
56
|
+
});
|
|
208
57
|
|
|
209
|
-
|
|
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({
|
|
210
109
|
displayName: "LinkStyles__StyledLink",
|
|
211
110
|
componentId: "w06zjv-0"
|
|
212
111
|
})([""]);
|
|
213
112
|
|
|
214
|
-
|
|
113
|
+
;// CONCATENATED MODULE: ./src/Message/Link.tsx
|
|
215
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; }
|
|
216
115
|
|
|
217
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; }
|
|
@@ -220,10 +119,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
220
119
|
|
|
221
120
|
|
|
222
121
|
var propTypes = {
|
|
223
|
-
children: external_prop_types_default.
|
|
224
|
-
elementRef: external_prop_types_default.
|
|
225
|
-
openInNewContext: external_prop_types_default.
|
|
226
|
-
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
|
|
227
126
|
};
|
|
228
127
|
|
|
229
128
|
/**
|
|
@@ -238,166 +137,166 @@ function Link(_ref) {
|
|
|
238
137
|
// @docs-props-type LinkPropsBase
|
|
239
138
|
if (false) {}
|
|
240
139
|
|
|
241
|
-
return /*#__PURE__*/external_react_default.
|
|
140
|
+
return /*#__PURE__*/external_react_default().createElement(StyledLink, otherProps, children);
|
|
242
141
|
}
|
|
243
142
|
|
|
244
143
|
Link.propTypes = propTypes;
|
|
245
|
-
/* harmony default export */
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
// CONCATENATED MODULE: ./src/Message/TitleStyles.ts
|
|
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
|
|
255
152
|
|
|
256
153
|
|
|
257
|
-
var StyledTitle = external_styled_components_default.
|
|
154
|
+
var StyledTitle = external_styled_components_default().p.withConfig({
|
|
258
155
|
displayName: "TitleStyles__StyledTitle",
|
|
259
156
|
componentId: "sc-6gbjha-0"
|
|
260
|
-
})(["", " ", ""],
|
|
261
|
-
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;"])
|
|
262
159
|
}));
|
|
263
160
|
|
|
264
|
-
|
|
161
|
+
;// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
|
|
265
162
|
|
|
266
163
|
|
|
267
164
|
|
|
268
165
|
|
|
269
166
|
|
|
270
|
-
var StyledContent = external_styled_components_default.
|
|
167
|
+
var StyledContent = external_styled_components_default().div.withConfig({
|
|
271
168
|
displayName: "MessageStyles__StyledContent",
|
|
272
169
|
componentId: "eg66af-0"
|
|
273
|
-
})(["", ";", ""
|
|
274
|
-
prisma:
|
|
275
|
-
|
|
276
|
-
|
|
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({
|
|
277
183
|
displayName: "MessageStyles__StyledRemove",
|
|
278
184
|
componentId: "eg66af-1"
|
|
279
|
-
})(["", ";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)({
|
|
280
186
|
prisma: '50%',
|
|
281
|
-
enterprise:
|
|
282
|
-
}),
|
|
283
|
-
prisma:
|
|
187
|
+
enterprise: themes_namespaceObject.variables.borderRadius
|
|
188
|
+
}), (0,themes_namespaceObject.pick)({
|
|
189
|
+
prisma: themes_namespaceObject.variables.contentColorMuted,
|
|
284
190
|
enterprise: {
|
|
285
|
-
dark:
|
|
286
|
-
light:
|
|
191
|
+
dark: themes_namespaceObject.variables.gray96,
|
|
192
|
+
light: themes_namespaceObject.variables.gray45
|
|
287
193
|
}
|
|
288
|
-
}), function (
|
|
289
|
-
var $appearance =
|
|
290
|
-
return $appearance === 'banner' &&
|
|
291
|
-
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)
|
|
292
198
|
});
|
|
293
|
-
},
|
|
294
|
-
prisma:
|
|
295
|
-
enterprise:
|
|
296
|
-
}),
|
|
297
|
-
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,
|
|
298
204
|
enterprise: {
|
|
299
|
-
dark:
|
|
300
|
-
light:
|
|
205
|
+
dark: themes_namespaceObject.variables.gray30,
|
|
206
|
+
light: themes_namespaceObject.variables.gray92
|
|
301
207
|
}
|
|
302
|
-
}),
|
|
303
|
-
prisma:
|
|
304
|
-
enterprise:
|
|
305
|
-
}),
|
|
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)({
|
|
306
212
|
enterprise: {
|
|
307
|
-
dark:
|
|
308
|
-
light:
|
|
213
|
+
dark: themes_namespaceObject.variables.gray96,
|
|
214
|
+
light: themes_namespaceObject.variables.linkColor
|
|
309
215
|
},
|
|
310
|
-
prisma:
|
|
311
|
-
}),
|
|
312
|
-
prisma:
|
|
313
|
-
enterprise:
|
|
314
|
-
}),
|
|
315
|
-
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)
|
|
316
222
|
}));
|
|
317
|
-
var StyledIconWrapper = external_styled_components_default.
|
|
223
|
+
var StyledIconWrapper = external_styled_components_default().span.withConfig({
|
|
318
224
|
displayName: "MessageStyles__StyledIconWrapper",
|
|
319
225
|
componentId: "eg66af-2"
|
|
320
|
-
})(["position:
|
|
321
|
-
prisma:
|
|
322
|
-
enterprise: '7px'
|
|
323
|
-
}), Object(themes_["pick"])({
|
|
324
|
-
prisma: '24px',
|
|
226
|
+
})(["position:relative;min-width:", ";text-align:center;color:", ";", " ", ""], (0,themes_namespaceObject.pick)({
|
|
227
|
+
prisma: themes_namespaceObject.variables.spacingXLarge,
|
|
325
228
|
enterprise: '25px'
|
|
326
|
-
}),
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
|
332
236
|
})),
|
|
333
|
-
success:
|
|
334
|
-
warning:
|
|
335
|
-
error:
|
|
336
|
-
})
|
|
337
|
-
|
|
338
|
-
return $fillStyle && Object(themes_["pick"])({
|
|
339
|
-
prisma: Object(external_styled_components_["css"])(["background-color:", ";"], Object(themes_["pickVariant"])('$type', {
|
|
340
|
-
info: themes_["variables"].contentColorActive,
|
|
341
|
-
success: themes_["variables"].accentColorPositive,
|
|
342
|
-
warning: themes_["variables"].accentColorWarning,
|
|
343
|
-
error: themes_["variables"].accentColorNegative
|
|
344
|
-
}))
|
|
345
|
-
});
|
|
346
|
-
});
|
|
347
|
-
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({
|
|
348
242
|
displayName: "MessageStyles__StyledBox",
|
|
349
243
|
componentId: "eg66af-3"
|
|
350
|
-
})(["", ";position:relative;border-radius:", ";margin-bottom:", ";
|
|
351
|
-
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,
|
|
352
246
|
enterprise: '5px'
|
|
353
|
-
}),
|
|
247
|
+
}), themes_namespaceObject.variables.spacingSmall, (0,themes_namespaceObject.pickVariant)('$hasRemoveIcon', {
|
|
354
248
|
"true": {
|
|
355
|
-
prisma:
|
|
356
|
-
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;"])
|
|
357
251
|
},
|
|
358
252
|
"false": {
|
|
359
|
-
prisma:
|
|
360
|
-
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)
|
|
361
255
|
}
|
|
362
256
|
}), function (_ref3) {
|
|
363
257
|
var $fillStyle = _ref3.$fillStyle;
|
|
364
|
-
return $fillStyle &&
|
|
365
|
-
enterprise:
|
|
258
|
+
return $fillStyle && (0,themes_namespaceObject.pick)({
|
|
259
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["& > ", "{left:", ";}", ""],
|
|
366
260
|
/* sc-sel */
|
|
367
|
-
StyledIconWrapper,
|
|
368
|
-
info:
|
|
369
|
-
light:
|
|
370
|
-
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))
|
|
371
265
|
})),
|
|
372
|
-
success:
|
|
373
|
-
light:
|
|
374
|
-
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))
|
|
375
269
|
})),
|
|
376
|
-
warning:
|
|
377
|
-
light:
|
|
378
|
-
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))
|
|
379
273
|
})),
|
|
380
|
-
error:
|
|
381
|
-
light:
|
|
382
|
-
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))
|
|
383
277
|
}))
|
|
384
278
|
})),
|
|
385
|
-
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,
|
|
386
285
|
/* sc-sel */
|
|
387
|
-
StyledIconWrapper,
|
|
286
|
+
StyledIconWrapper, themes_namespaceObject.variables.backgroundColorPopup)
|
|
388
287
|
});
|
|
389
|
-
},
|
|
390
|
-
prisma:
|
|
288
|
+
}, (0,themes_namespaceObject.pick)({
|
|
289
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["& ", "{color:", ";}"],
|
|
391
290
|
/* sc-sel */
|
|
392
|
-
StyledTitle,
|
|
393
|
-
info:
|
|
394
|
-
warning:
|
|
395
|
-
error:
|
|
396
|
-
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
|
|
397
296
|
}))
|
|
398
297
|
}));
|
|
399
298
|
|
|
400
|
-
|
|
299
|
+
;// CONCATENATED MODULE: ./src/Message/Title.tsx
|
|
401
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; }
|
|
402
301
|
|
|
403
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; }
|
|
@@ -406,7 +305,7 @@ function Title_objectWithoutPropertiesLoose(source, excluded) { if (source == nu
|
|
|
406
305
|
|
|
407
306
|
|
|
408
307
|
var Title_propTypes = {
|
|
409
|
-
children: external_prop_types_default.
|
|
308
|
+
children: (external_prop_types_default()).node
|
|
410
309
|
};
|
|
411
310
|
/**
|
|
412
311
|
* A title component for use in `Message`.
|
|
@@ -417,12 +316,12 @@ function Title(_ref) {
|
|
|
417
316
|
otherProps = Title_objectWithoutProperties(_ref, ["children"]);
|
|
418
317
|
|
|
419
318
|
// @docs-props-type TitleProps
|
|
420
|
-
return /*#__PURE__*/external_react_default.
|
|
319
|
+
return /*#__PURE__*/external_react_default().createElement(StyledTitle, otherProps, children);
|
|
421
320
|
}
|
|
422
321
|
|
|
423
322
|
Title.propTypes = Title_propTypes;
|
|
424
|
-
/* harmony default export */
|
|
425
|
-
|
|
323
|
+
/* harmony default export */ const Message_Title = (Title);
|
|
324
|
+
;// CONCATENATED MODULE: ./src/Message/Message.tsx
|
|
426
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); }
|
|
427
326
|
|
|
428
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; }
|
|
@@ -447,23 +346,23 @@ function Message_objectWithoutPropertiesLoose(source, excluded) { if (source ==
|
|
|
447
346
|
|
|
448
347
|
|
|
449
348
|
var Message_propTypes = {
|
|
450
|
-
appearance: external_prop_types_default.
|
|
451
|
-
children: external_prop_types_default.
|
|
452
|
-
elementRef: external_prop_types_default.
|
|
453
|
-
onRequestRemove: external_prop_types_default.
|
|
454
|
-
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'])
|
|
455
354
|
};
|
|
456
355
|
var enterpriseTypeToIconMap = Object.freeze({
|
|
457
|
-
info: InfoCircle_default
|
|
458
|
-
warning: Warning_default
|
|
459
|
-
error: Error_default
|
|
460
|
-
success: Success_default
|
|
356
|
+
info: (InfoCircle_default()),
|
|
357
|
+
warning: (Warning_default()),
|
|
358
|
+
error: (Error_default()),
|
|
359
|
+
success: (Success_default())
|
|
461
360
|
});
|
|
462
361
|
var prismaTypeToIconMap = Object.freeze({
|
|
463
|
-
info: InformationCircle_default
|
|
464
|
-
warning: ExclamationTriangle_default
|
|
465
|
-
error: ExclamationCircle_default
|
|
466
|
-
success: CheckCircle_default
|
|
362
|
+
info: (InformationCircle_default()),
|
|
363
|
+
warning: (ExclamationTriangle_default()),
|
|
364
|
+
error: (ExclamationCircle_default()),
|
|
365
|
+
success: (CheckCircle_default())
|
|
467
366
|
});
|
|
468
367
|
|
|
469
368
|
function Message(_ref) {
|
|
@@ -476,18 +375,18 @@ function Message(_ref) {
|
|
|
476
375
|
otherProps = Message_objectWithoutProperties(_ref, ["appearance", "children", "type", "onRequestRemove"]);
|
|
477
376
|
|
|
478
377
|
// @docs-props-type MessagePropsBase
|
|
479
|
-
var _useSplunkTheme =
|
|
378
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
480
379
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
481
380
|
|
|
482
381
|
if (false) {} // double check this can only be button
|
|
483
382
|
|
|
484
383
|
|
|
485
|
-
var handleRemoveClick =
|
|
384
|
+
var handleRemoveClick = (0,external_react_namespaceObject.useCallback)(function (e) {
|
|
486
385
|
onRequestRemove === null || onRequestRemove === void 0 ? void 0 : onRequestRemove(e);
|
|
487
386
|
}, [onRequestRemove]);
|
|
488
387
|
|
|
489
388
|
if (appearance === 'banner') {
|
|
490
|
-
return /*#__PURE__*/external_react_default.
|
|
389
|
+
return /*#__PURE__*/external_react_default().createElement((MessageBar_default()), _extends({
|
|
491
390
|
type: type,
|
|
492
391
|
"data-test": "banner",
|
|
493
392
|
onRequestClose: handleRemoveClick
|
|
@@ -498,39 +397,36 @@ function Message(_ref) {
|
|
|
498
397
|
var Icon = typeToIconMap[type];
|
|
499
398
|
var fillStyle = appearance === 'fill';
|
|
500
399
|
var hasIcon = appearance === 'default' || appearance === 'fill';
|
|
501
|
-
return /*#__PURE__*/external_react_default.
|
|
400
|
+
return /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
|
|
502
401
|
$appearance: appearance,
|
|
503
402
|
$fillStyle: fillStyle,
|
|
504
403
|
$hasRemoveIcon: !!onRequestRemove,
|
|
505
404
|
$type: type,
|
|
506
405
|
"data-test-type": type,
|
|
507
406
|
"data-test": "message"
|
|
508
|
-
}, otherProps), hasIcon && /*#__PURE__*/external_react_default.
|
|
407
|
+
}, otherProps), hasIcon && /*#__PURE__*/external_react_default().createElement(StyledIconWrapper, {
|
|
509
408
|
$fillStyle: fillStyle,
|
|
510
409
|
$type: type
|
|
511
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
410
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
512
411
|
height: "24px",
|
|
513
412
|
width: "24px",
|
|
514
413
|
hideDefaultTooltip: true,
|
|
515
414
|
screenReaderText: null
|
|
516
|
-
}) : /*#__PURE__*/external_react_default.
|
|
517
|
-
variant: "filled"
|
|
518
|
-
|
|
519
|
-
verticalAlign: 'bottom'
|
|
520
|
-
}
|
|
521
|
-
})), /*#__PURE__*/external_react_default.a.createElement(StyledContent, {
|
|
415
|
+
}) : /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
416
|
+
variant: "filled"
|
|
417
|
+
})), /*#__PURE__*/external_react_default().createElement(StyledContent, {
|
|
522
418
|
"data-test": "content",
|
|
523
419
|
$fillStyle: fillStyle
|
|
524
|
-
}, children), onRequestRemove && /*#__PURE__*/external_react_default.
|
|
420
|
+
}, children), onRequestRemove && /*#__PURE__*/external_react_default().createElement(StyledRemove, {
|
|
525
421
|
"data-test": "remove",
|
|
526
422
|
onClick: handleRemoveClick,
|
|
527
423
|
$appearance: appearance
|
|
528
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
424
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Close_default()), {
|
|
529
425
|
height: "12px",
|
|
530
426
|
hideDefaultTooltip: true,
|
|
531
427
|
screenReaderText: null,
|
|
532
428
|
width: "12px"
|
|
533
|
-
}) : /*#__PURE__*/external_react_default.
|
|
429
|
+
}) : /*#__PURE__*/external_react_default().createElement((Cross_default()), {
|
|
534
430
|
height: "20px",
|
|
535
431
|
width: "20px"
|
|
536
432
|
})));
|
|
@@ -539,96 +435,11 @@ function Message(_ref) {
|
|
|
539
435
|
Message.propTypes = Message_propTypes;
|
|
540
436
|
Message.Title = Message_Title;
|
|
541
437
|
Message.Link = Message_Link;
|
|
542
|
-
/* harmony default export */
|
|
543
|
-
|
|
544
|
-
// CONCATENATED MODULE: ./src/Message/index.ts
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
/***/ }),
|
|
549
|
-
|
|
550
|
-
/***/ 2:
|
|
551
|
-
/***/ (function(module, exports) {
|
|
552
|
-
|
|
553
|
-
module.exports = require("react");
|
|
554
|
-
|
|
555
|
-
/***/ }),
|
|
556
|
-
|
|
557
|
-
/***/ 25:
|
|
558
|
-
/***/ (function(module, exports) {
|
|
559
|
-
|
|
560
|
-
module.exports = require("@splunk/react-icons/Cross");
|
|
561
|
-
|
|
562
|
-
/***/ }),
|
|
563
|
-
|
|
564
|
-
/***/ 26:
|
|
565
|
-
/***/ (function(module, exports) {
|
|
566
|
-
|
|
567
|
-
module.exports = require("@splunk/react-icons/enterprise/Close");
|
|
568
|
-
|
|
569
|
-
/***/ }),
|
|
570
|
-
|
|
571
|
-
/***/ 3:
|
|
572
|
-
/***/ (function(module, exports) {
|
|
573
|
-
|
|
574
|
-
module.exports = require("styled-components");
|
|
575
|
-
|
|
576
|
-
/***/ }),
|
|
577
|
-
|
|
578
|
-
/***/ 39:
|
|
579
|
-
/***/ (function(module, exports) {
|
|
580
|
-
|
|
581
|
-
module.exports = require("@splunk/react-ui/Link");
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
|
|
585
|
-
/***/ 6:
|
|
586
|
-
/***/ (function(module, exports) {
|
|
587
|
-
|
|
588
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
589
|
-
|
|
590
|
-
/***/ }),
|
|
591
|
-
|
|
592
|
-
/***/ 70:
|
|
593
|
-
/***/ (function(module, exports) {
|
|
594
|
-
|
|
595
|
-
module.exports = require("@splunk/react-icons/CheckCircle");
|
|
596
|
-
|
|
597
|
-
/***/ }),
|
|
598
|
-
|
|
599
|
-
/***/ 71:
|
|
600
|
-
/***/ (function(module, exports) {
|
|
601
|
-
|
|
602
|
-
module.exports = require("@splunk/react-icons/ExclamationCircle");
|
|
603
|
-
|
|
604
|
-
/***/ }),
|
|
605
|
-
|
|
606
|
-
/***/ 96:
|
|
607
|
-
/***/ (function(module, exports) {
|
|
608
|
-
|
|
609
|
-
module.exports = require("@splunk/react-icons/InformationCircle");
|
|
610
|
-
|
|
611
|
-
/***/ }),
|
|
612
|
-
|
|
613
|
-
/***/ 97:
|
|
614
|
-
/***/ (function(module, exports) {
|
|
615
|
-
|
|
616
|
-
module.exports = require("@splunk/react-icons/ExclamationTriangle");
|
|
617
|
-
|
|
618
|
-
/***/ }),
|
|
619
|
-
|
|
620
|
-
/***/ 98:
|
|
621
|
-
/***/ (function(module, exports) {
|
|
622
|
-
|
|
623
|
-
module.exports = require("@splunk/react-icons/enterprise/Error");
|
|
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
|
+
;
|