@splunk/react-ui 4.21.0 → 4.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/Accordion.js +425 -325
  2. package/Anchor.js +147 -117
  3. package/Animation.js +142 -94
  4. package/AnimationToggle.js +197 -193
  5. package/Box.js +145 -118
  6. package/Breadcrumbs.js +288 -206
  7. package/Button.js +488 -465
  8. package/ButtonGroup.js +160 -128
  9. package/ButtonSimple.js +543 -462
  10. package/CHANGELOG.md +7 -2
  11. package/Calendar.js +1111 -1001
  12. package/Card.js +771 -598
  13. package/CardLayout.js +205 -147
  14. package/Chip.js +509 -488
  15. package/Clickable.js +414 -352
  16. package/CloseButton.js +165 -142
  17. package/Code.js +1808 -2084
  18. package/Code.js.LICENSE.txt +8 -0
  19. package/CollapsiblePanel.js +586 -519
  20. package/Color.js +1066 -1069
  21. package/ColumnLayout.js +402 -363
  22. package/ComboBox.js +891 -794
  23. package/Concertina.js +997 -802
  24. package/ControlGroup.js +687 -594
  25. package/Date.js +567 -547
  26. package/DefinitionList.js +308 -234
  27. package/Divider.js +149 -118
  28. package/Dropdown.js +459 -416
  29. package/DualListbox.js +1479 -1541
  30. package/EventListener.js +94 -97
  31. package/File.js +1051 -969
  32. package/FormRows.js +883 -696
  33. package/Heading.js +216 -193
  34. package/Image.js +446 -402
  35. package/JSONTree.js +690 -551
  36. package/Layer.js +437 -410
  37. package/Link.js +336 -255
  38. package/List.js +213 -161
  39. package/Markdown.js +509 -487
  40. package/Menu.js +1105 -1056
  41. package/Message.js +475 -441
  42. package/MessageBar.js +387 -373
  43. package/Modal.js +810 -634
  44. package/ModalLayer.js +326 -243
  45. package/Monogram.js +308 -276
  46. package/Multiselect.js +3550 -3364
  47. package/Number.js +729 -687
  48. package/Paginator.js +510 -449
  49. package/Paragraph.js +145 -112
  50. package/Popover.js +1459 -1432
  51. package/Progress.js +301 -246
  52. package/RadioBar.js +610 -527
  53. package/RadioList.js +483 -444
  54. package/Resize.js +530 -489
  55. package/ResultsMenu.js +494 -455
  56. package/ScreenReaderContent.js +142 -111
  57. package/Scroll.js +595 -456
  58. package/ScrollContainerContext.js +197 -206
  59. package/Search.js +744 -650
  60. package/Select.js +2442 -2345
  61. package/SidePanel.js +390 -284
  62. package/Slider.js +669 -676
  63. package/SlidingPanels.js +639 -503
  64. package/SplitButton.js +464 -367
  65. package/StaticContent.js +161 -133
  66. package/StepBar.js +386 -358
  67. package/Switch.js +710 -640
  68. package/TabBar.js +726 -680
  69. package/TabLayout.js +406 -322
  70. package/Table.js +4842 -4616
  71. package/Text.js +1170 -1138
  72. package/TextArea.js +1102 -1090
  73. package/Tooltip.js +624 -581
  74. package/TransitionOpen.js +489 -422
  75. package/Typography.js +176 -153
  76. package/WaitSpinner.js +230 -206
  77. package/package.json +5 -5
  78. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  79. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  80. package/useForceUpdate.js +112 -82
  81. package/useKeyPress.js +74 -71
  82. package/usePrevious.js +65 -65
  83. package/useRovingFocus.js +122 -138
package/Message.js CHANGED
@@ -1,445 +1,479 @@
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 });
44
- /******/ };
45
- /******/ })();
46
- /******/
47
- /************************************************************************/
48
- var __webpack_exports__ = {};
49
- // ESM COMPAT FLAG
50
- __webpack_require__.r(__webpack_exports__);
51
-
52
- // EXPORTS
53
- __webpack_require__.d(__webpack_exports__, {
54
- Link: () => (/* reexport */ Message_Link),
55
- "default": () => (/* reexport */ Message_Message)
56
- });
57
-
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({
109
- displayName: "LinkStyles__StyledLink",
110
- componentId: "w06zjv-0"
111
- })([""]);
112
-
113
- ;// CONCATENATED MODULE: ./src/Message/Link.tsx
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; }
115
-
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; }
117
-
118
-
119
-
120
-
121
- var propTypes = {
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
126
- };
127
-
128
- /**
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = r => {
12
+ /******/ var a = r && r.__esModule ?
13
+ /******/ () => r["default"]
14
+ /******/ : () => r
15
+ /******/;
16
+ e.d(a, {
17
+ a
18
+ });
19
+ /******/ return a;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (r, a) => {
27
+ /******/ for (var i in a) {
28
+ /******/ if (e.o(a, i) && !e.o(r, i)) {
29
+ /******/ Object.defineProperty(r, i, {
30
+ enumerable: true,
31
+ get: a[i]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var r = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(r);
62
+ // EXPORTS
63
+ e.d(r, {
64
+ Link: () => /* reexport */ X,
65
+ default: () => /* reexport */ oe
66
+ });
67
+ // CONCATENATED MODULE: external "react"
68
+ const a = require("react");
69
+ var i = e.n(a);
70
+ // CONCATENATED MODULE: external "prop-types"
71
+ const n = require("prop-types");
72
+ var s = e.n(n);
73
+ // CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
74
+ const o = require("@splunk/react-icons/CheckCircle");
75
+ var t = e.n(o);
76
+ // CONCATENATED MODULE: external "@splunk/react-icons/Cross"
77
+ const c = require("@splunk/react-icons/Cross");
78
+ var l = e.n(c);
79
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
80
+ const p = require("@splunk/react-icons/enterprise/Close");
81
+ var v = e.n(p);
82
+ // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
83
+ const u = require("@splunk/react-icons/ExclamationCircle");
84
+ var d = e.n(u);
85
+ // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
86
+ const b = require("@splunk/react-icons/InformationCircle");
87
+ var g = e.n(b);
88
+ // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationTriangle"
89
+ const f = require("@splunk/react-icons/ExclamationTriangle");
90
+ var m = e.n(f);
91
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Error"
92
+ const y = require("@splunk/react-icons/enterprise/Error");
93
+ var k = e.n(y);
94
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/InfoCircle"
95
+ const h = require("@splunk/react-icons/enterprise/InfoCircle");
96
+ var C = e.n(h);
97
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Success"
98
+ const x = require("@splunk/react-icons/enterprise/Success");
99
+ var w = e.n(x);
100
+ // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Warning"
101
+ const O = require("@splunk/react-icons/enterprise/Warning");
102
+ var S = e.n(O);
103
+ // CONCATENATED MODULE: external "@splunk/react-ui/MessageBar"
104
+ const j = require("@splunk/react-ui/MessageBar");
105
+ var q = e.n(j);
106
+ // CONCATENATED MODULE: external "@splunk/themes"
107
+ const E = require("@splunk/themes");
108
+ // CONCATENATED MODULE: external "styled-components"
109
+ const P = require("styled-components");
110
+ var I = e.n(P);
111
+ // CONCATENATED MODULE: external "@splunk/react-ui/Link"
112
+ const L = require("@splunk/react-ui/Link");
113
+ var R = e.n(L);
114
+ // CONCATENATED MODULE: ./src/Message/LinkStyles.ts
115
+ var T = I()(R()).withConfig({
116
+ displayName: "LinkStyles__StyledLink",
117
+ componentId: "w06zjv-0"
118
+ })([ "" ]);
119
+ // CONCATENATED MODULE: ./src/Message/Link.tsx
120
+ function $(e, r) {
121
+ if (e == null) return {};
122
+ var a = _(e, r);
123
+ var i, n;
124
+ if (Object.getOwnPropertySymbols) {
125
+ var s = Object.getOwnPropertySymbols(e);
126
+ for (n = 0; n < s.length; n++) {
127
+ i = s[n];
128
+ if (r.indexOf(i) >= 0) continue;
129
+ if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
130
+ a[i] = e[i];
131
+ }
132
+ }
133
+ return a;
134
+ }
135
+ function _(e, r) {
136
+ if (e == null) return {};
137
+ var a = {};
138
+ var i = Object.keys(e);
139
+ var n, s;
140
+ for (s = 0; s < i.length; s++) {
141
+ n = i[s];
142
+ if (r.indexOf(n) >= 0) continue;
143
+ a[n] = e[n];
144
+ }
145
+ return a;
146
+ }
147
+ var M = {
148
+ children: s().node,
149
+ elementRef: s().oneOfType([ s().func, s().object ]),
150
+ openInNewContext: s().bool,
151
+ to: s().string
152
+ };
153
+ /**
129
154
  * @deprecated `Message.Link` is deprecated and will be removed in a future major version. Use `Link` instead.
130
155
  *
131
156
  * A `Link` styled to work with `Message`'s `banner` appearance.
132
- */
133
- function Link(_ref) {
134
- var children = _ref.children,
135
- otherProps = _objectWithoutProperties(_ref, ["children"]);
136
-
137
- // @docs-props-type LinkPropsBase
138
- if (false) {}
139
-
140
- return /*#__PURE__*/external_react_default().createElement(StyledLink, otherProps, children);
141
- }
142
-
143
- Link.propTypes = propTypes;
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
152
-
153
-
154
- var StyledTitle = external_styled_components_default().p.withConfig({
155
- displayName: "TitleStyles__StyledTitle",
156
- componentId: "sc-6gbjha-0"
157
- })(["", " ", ""], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pick)({
158
- prisma: (0,external_styled_components_namespaceObject.css)(["font-size:14px;line-height:20px;"])
159
- }));
160
-
161
- ;// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
162
-
163
-
164
-
165
-
166
-
167
- var StyledContent = external_styled_components_default().div.withConfig({
168
- displayName: "MessageStyles__StyledContent",
169
- componentId: "eg66af-0"
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({
183
- displayName: "MessageStyles__StyledRemove",
184
- componentId: "eg66af-1"
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)({
186
- prisma: '50%',
187
- enterprise: themes_namespaceObject.variables.borderRadius
188
- }), (0,themes_namespaceObject.pick)({
189
- prisma: themes_namespaceObject.variables.contentColorMuted,
190
- enterprise: {
191
- dark: themes_namespaceObject.variables.gray96,
192
- light: themes_namespaceObject.variables.gray45
193
- }
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)
198
- });
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,
204
- enterprise: {
205
- dark: themes_namespaceObject.variables.gray30,
206
- light: themes_namespaceObject.variables.gray92
207
- }
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)({
212
- enterprise: {
213
- dark: themes_namespaceObject.variables.gray96,
214
- light: themes_namespaceObject.variables.linkColor
215
- },
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)
222
- }));
223
- var StyledIconWrapper = external_styled_components_default().span.withConfig({
224
- displayName: "MessageStyles__StyledIconWrapper",
225
- componentId: "eg66af-2"
226
- })(["position:relative;min-width:", ";text-align:center;color:", ";", " ", ""], (0,themes_namespaceObject.pick)({
227
- prisma: themes_namespaceObject.variables.spacingXLarge,
228
- enterprise: '25px'
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
236
- })),
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({
242
- displayName: "MessageStyles__StyledBox",
243
- componentId: "eg66af-3"
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,
246
- enterprise: '5px'
247
- }), themes_namespaceObject.variables.spacingSmall, (0,themes_namespaceObject.pickVariant)('$hasRemoveIcon', {
248
- "true": {
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;"])
251
- },
252
- "false": {
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)
255
- }
256
- }), function (_ref3) {
257
- var $fillStyle = _ref3.$fillStyle;
258
- return $fillStyle && (0,themes_namespaceObject.pick)({
259
- enterprise: (0,external_styled_components_namespaceObject.css)(["& > ", "{left:", ";}", ""],
260
- /* sc-sel */
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))
265
- })),
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))
269
- })),
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))
273
- })),
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))
277
- }))
278
- })),
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,
285
- /* sc-sel */
286
- StyledIconWrapper, themes_namespaceObject.variables.backgroundColorPopup)
287
- });
288
- }, (0,themes_namespaceObject.pick)({
289
- prisma: (0,external_styled_components_namespaceObject.css)(["& ", "{color:", ";}"],
290
- /* sc-sel */
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
296
- }))
297
- }));
298
-
299
- ;// CONCATENATED MODULE: ./src/Message/Title.tsx
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; }
301
-
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; }
303
-
304
-
305
-
306
-
307
- var Title_propTypes = {
308
- children: (external_prop_types_default()).node
309
- };
310
- /**
157
+ */ function N(e) {
158
+ var r = e.children, a = $(e, [ "children" ]);
159
+ // @docs-props-type LinkPropsBase
160
+ if (false) {}
161
+
162
+ return i().createElement(T, a, r);
163
+ }
164
+ N.propTypes = M;
165
+ /* harmony default export */ const X = N;
166
+ // CONCATENATED MODULE: external "@splunk/react-ui/Box"
167
+ const A = require("@splunk/react-ui/Box");
168
+ var W = e.n(A);
169
+ // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
170
+ const V = require("@splunk/react-ui/Clickable");
171
+ var z = e.n(V);
172
+ // CONCATENATED MODULE: ./src/Message/TitleStyles.ts
173
+ var B = I().p.withConfig({
174
+ displayName: "TitleStyles__StyledTitle",
175
+ componentId: "sc-6gbjha-0"
176
+ })([ "", " ", "" ], E.mixins.reset("block"), (0, E.pick)({
177
+ prisma: (0, P.css)([ "font-size:14px;line-height:20px;" ])
178
+ }));
179
+ // CONCATENATED MODULE: ./src/Message/MessageStyles.ts
180
+ var D = I().div.withConfig({
181
+ displayName: "MessageStyles__StyledContent",
182
+ componentId: "eg66af-0"
183
+ })([ "display:flex;align-items:baseline;", ";", " ", ";" ], (0, E.pick)({
184
+ prisma: (0, P.css)([ "padding:", " 0;color:", ";" ], E.variables.spacingMedium, E.variables.contentColorActive),
185
+ enterprise: (0, P.css)([ "padding:12px 0;" ])
186
+ }), (0, E.pick)({
187
+ prisma: (0, P.css)([ "padding-left:", ";" ], E.variables.spacingXSmall),
188
+ enterprise: (0, P.css)([ "padding-left:15px;" ])
189
+ }), (function(e) {
190
+ var r = e.$fillStyle;
191
+ return r && (0, E.pick)({
192
+ prisma: (0, P.css)([ "padding-left:", ";" ], E.variables.spacingMedium)
193
+ });
194
+ }));
195
+ var H = I()(z()).withConfig({
196
+ displayName: "MessageStyles__StyledRemove",
197
+ componentId: "eg66af-1"
198
+ })([ "", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", "" ], E.mixins.reset("flex"), (0,
199
+ E.pick)({
200
+ prisma: "50%",
201
+ enterprise: E.variables.borderRadius
202
+ }), (0, E.pick)({
203
+ prisma: E.variables.contentColorMuted,
204
+ enterprise: {
205
+ dark: E.variables.gray96,
206
+ light: E.variables.gray45
207
+ }
208
+ }), (function(e) {
209
+ var r = e.$appearance;
210
+ return r === "banner" && (0, E.pick)({
211
+ prisma: (0, P.css)([ "color:", ";" ], E.variables.contentColorInverted)
212
+ });
213
+ }), (0, E.pick)({
214
+ prisma: (0, P.css)([ "top:3px;right:2px;" ]),
215
+ enterprise: (0, P.css)([ "top:8px;right:8px;" ])
216
+ }), (0, E.pick)({
217
+ prisma: E.variables.interactiveColorOverlayHover,
218
+ enterprise: {
219
+ dark: E.variables.gray30,
220
+ light: E.variables.gray92
221
+ }
222
+ }), (0, E.pick)({
223
+ prisma: (0, P.css)([ "1px solid inherit" ]),
224
+ enterprise: (0, P.css)([ "1px solid ", "" ], E.variables.gray80)
225
+ }), (0, E.pick)({
226
+ enterprise: {
227
+ dark: E.variables.gray96,
228
+ light: E.variables.linkColor
229
+ },
230
+ prisma: E.variables.contentColorActive
231
+ }), (0, E.pick)({
232
+ prisma: (0, P.css)([ "background:", ";" ], E.variables.interactiveColorOverlayActive),
233
+ enterprise: (0, P.css)([ "box-shadow:", ";" ], E.variables.focusShadow)
234
+ }), (0, E.pick)({
235
+ prisma: (0, P.css)([ "&:focus{box-shadow:0 0 0 3px ", ";}" ], E.variables.focusColor)
236
+ }));
237
+ var F = I().span.withConfig({
238
+ displayName: "MessageStyles__StyledIconWrapper",
239
+ componentId: "eg66af-2"
240
+ })([ "position:relative;min-width:", ";text-align:center;color:", ";", " ", "" ], (0,
241
+ E.pick)({
242
+ prisma: E.variables.spacingXLarge,
243
+ enterprise: "25px"
244
+ }), E.variables.white, (0, E.pick)({
245
+ enterprise: (0, P.css)([ "top:-2px;" ]),
246
+ prisma: (0, P.css)([ "top:-1.8px;" ])
247
+ }), (0, E.pickVariant)("$type", {
248
+ info: (0, P.css)([ "color:", ";" ], (0, E.pick)({
249
+ prisma: E.variables.contentColorMuted,
250
+ enterprise: E.variables.infoColor
251
+ })),
252
+ success: (0, P.css)([ "color:", ";" ], E.variables.accentColorPositive),
253
+ warning: (0, P.css)([ "color:", ";" ], E.variables.accentColorWarning),
254
+ error: (0, P.css)([ "color:", ";" ], E.variables.accentColorNegative)
255
+ }));
256
+ var G = I()(W()).withConfig({
257
+ displayName: "MessageStyles__StyledBox",
258
+ componentId: "eg66af-3"
259
+ })([ "", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", "" ], E.mixins.reset("flex"), (0,
260
+ E.pick)({
261
+ prisma: E.variables.borderRadius,
262
+ enterprise: "5px"
263
+ }), E.variables.spacingSmall, (0, E.pickVariant)("$hasRemoveIcon", {
264
+ true: {
265
+ prisma: (0, P.css)([ "padding-right:", ";" ], E.variables.spacingXXXLarge),
266
+ enterprise: (0, P.css)([ "padding-right:40px;" ])
267
+ },
268
+ false: {
269
+ prisma: (0, P.css)([ "padding-right:", ";" ], E.variables.spacingSmall),
270
+ enterprise: (0, P.css)([ "padding-right:", ";" ], E.variables.spacingHalf)
271
+ }
272
+ }), (function(e) {
273
+ var r = e.$fillStyle;
274
+ return r && (0, E.pick)({
275
+ enterprise: (0, P.css)([ "& > ", "{left:", ";}", "" ],
276
+ /* sc-sel */
277
+ F, E.variables.spacingXSmall, (0, E.pickVariant)("$type", {
278
+ info: (0, P.css)([ "", "" ], (0, E.pick)({
279
+ light: (0, P.css)([ "background-color:", ";border:1px solid ", ";" ], E.variables.infoColorL50, E.variables.infoColor),
280
+ dark: (0, P.css)([ "background-color:", ";" ], E.mixins.colorWithAlpha(E.variables.infoColor, .5))
281
+ })),
282
+ success: (0, P.css)([ "", "" ], (0, E.pick)({
283
+ light: (0, P.css)([ "background-color:", ";border:1px solid ", ";" ], E.variables.successColorL50, E.variables.successColor),
284
+ dark: (0, P.css)([ "background-color:", ";" ], E.mixins.colorWithAlpha(E.variables.successColor, .5))
285
+ })),
286
+ warning: (0, P.css)([ "", "" ], (0, E.pick)({
287
+ light: (0, P.css)([ "background-color:", ";border:1px solid ", ";" ], E.variables.warningColorL50, E.variables.warningColor),
288
+ dark: (0, P.css)([ "background-color:", ";" ], E.mixins.colorWithAlpha(E.variables.warningColor, .5))
289
+ })),
290
+ error: (0, P.css)([ "", "" ], (0, E.pick)({
291
+ light: (0, P.css)([ "background-color:", ";border:1px solid ", ";" ], E.variables.errorColorL50, E.variables.errorColor),
292
+ dark: (0, P.css)([ "background-color:", ";" ], E.mixins.colorWithAlpha(E.variables.errorColor, .5))
293
+ }))
294
+ })),
295
+ prisma: (0, P.css)([ "background:linear-gradient( to right,", " ", " ", ",", " 100% );box-shadow:", ";& > ", "{color:", ";}" ], (0,
296
+ E.pickVariant)("$type", {
297
+ info: (0, P.css)([ "", " 0,", " ", "," ], E.variables.contentColorActive, E.variables.contentColorActive, E.variables.spacingXLarge),
298
+ success: (0, P.css)([ "", " 0,", " ", "," ], E.variables.accentColorPositive, E.variables.accentColorPositive, E.variables.spacingXLarge),
299
+ warning: (0, P.css)([ "", " 0,", " ", "," ], E.variables.accentColorWarning, E.variables.accentColorWarning, E.variables.spacingXLarge),
300
+ error: (0, P.css)([ "", " 0,", " ", "," ], E.variables.accentColorNegative, E.variables.accentColorNegative, E.variables.spacingXLarge)
301
+ }), E.variables.backgroundColorPopup, E.variables.spacingXLarge, E.variables.backgroundColorPopup, E.variables.embossShadow,
302
+ /* sc-sel */
303
+ F, E.variables.backgroundColorPopup)
304
+ });
305
+ }), (0, E.pick)({
306
+ prisma: (0, P.css)([ "& ", "{color:", ";}" ],
307
+ /* sc-sel */
308
+ B, (0, E.pickVariant)("$type", {
309
+ info: E.variables.contentColorActive,
310
+ warning: E.variables.accentColorWarning,
311
+ error: E.variables.accentColorNegative,
312
+ success: E.variables.accentColorPositive
313
+ }))
314
+ }));
315
+ // CONCATENATED MODULE: ./src/Message/Title.tsx
316
+ function J(e, r) {
317
+ if (e == null) return {};
318
+ var a = K(e, r);
319
+ var i, n;
320
+ if (Object.getOwnPropertySymbols) {
321
+ var s = Object.getOwnPropertySymbols(e);
322
+ for (n = 0; n < s.length; n++) {
323
+ i = s[n];
324
+ if (r.indexOf(i) >= 0) continue;
325
+ if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
326
+ a[i] = e[i];
327
+ }
328
+ }
329
+ return a;
330
+ }
331
+ function K(e, r) {
332
+ if (e == null) return {};
333
+ var a = {};
334
+ var i = Object.keys(e);
335
+ var n, s;
336
+ for (s = 0; s < i.length; s++) {
337
+ n = i[s];
338
+ if (r.indexOf(n) >= 0) continue;
339
+ a[n] = e[n];
340
+ }
341
+ return a;
342
+ }
343
+ var Q = {
344
+ children: s().node
345
+ };
346
+ /**
311
347
  * A title component for use in `Message`.
312
- */
313
-
314
- function Title(_ref) {
315
- var children = _ref.children,
316
- otherProps = Title_objectWithoutProperties(_ref, ["children"]);
317
-
318
- // @docs-props-type TitleProps
319
- return /*#__PURE__*/external_react_default().createElement(StyledTitle, otherProps, children);
320
- }
321
-
322
- Title.propTypes = Title_propTypes;
323
- /* harmony default export */ const Message_Title = (Title);
324
- ;// CONCATENATED MODULE: ./src/Message/Message.tsx
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); }
326
-
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; }
328
-
329
- function Message_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; }
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
- var Message_propTypes = {
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'])
354
- };
355
- var enterpriseTypeToIconMap = Object.freeze({
356
- info: (InfoCircle_default()),
357
- warning: (Warning_default()),
358
- error: (Error_default()),
359
- success: (Success_default())
360
- });
361
- var prismaTypeToIconMap = Object.freeze({
362
- info: (InformationCircle_default()),
363
- warning: (ExclamationTriangle_default()),
364
- error: (ExclamationCircle_default()),
365
- success: (CheckCircle_default())
366
- });
367
-
368
- function Message(_ref) {
369
- var _ref$appearance = _ref.appearance,
370
- appearance = _ref$appearance === void 0 ? 'default' : _ref$appearance,
371
- children = _ref.children,
372
- _ref$type = _ref.type,
373
- type = _ref$type === void 0 ? 'warning' : _ref$type,
374
- onRequestRemove = _ref.onRequestRemove,
375
- otherProps = Message_objectWithoutProperties(_ref, ["appearance", "children", "type", "onRequestRemove"]);
376
-
377
- // @docs-props-type MessagePropsBase
378
- var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
379
- isEnterprise = _useSplunkTheme.isEnterprise;
380
-
381
- if (false) {} // double check this can only be button
382
-
383
-
384
- var handleRemoveClick = (0,external_react_namespaceObject.useCallback)(function (e) {
385
- onRequestRemove === null || onRequestRemove === void 0 ? void 0 : onRequestRemove(e);
386
- }, [onRequestRemove]);
387
-
388
- if (appearance === 'banner') {
389
- return /*#__PURE__*/external_react_default().createElement((MessageBar_default()), _extends({
390
- type: type,
391
- "data-test": "banner",
392
- onRequestClose: handleRemoveClick
393
- }, otherProps), children);
394
- }
395
-
396
- var typeToIconMap = isEnterprise ? enterpriseTypeToIconMap : prismaTypeToIconMap;
397
- var Icon = typeToIconMap[type];
398
- var fillStyle = appearance === 'fill';
399
- var hasIcon = appearance === 'default' || appearance === 'fill';
400
- return /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
401
- $appearance: appearance,
402
- $fillStyle: fillStyle,
403
- $hasRemoveIcon: !!onRequestRemove,
404
- $type: type,
405
- "data-test-type": type,
406
- "data-test": "message"
407
- }, otherProps), hasIcon && /*#__PURE__*/external_react_default().createElement(StyledIconWrapper, {
408
- $fillStyle: fillStyle,
409
- $type: type
410
- }, isEnterprise ? /*#__PURE__*/external_react_default().createElement(Icon, {
411
- height: "24px",
412
- width: "24px",
413
- hideDefaultTooltip: true,
414
- screenReaderText: null
415
- }) : /*#__PURE__*/external_react_default().createElement(Icon, {
416
- variant: "filled"
417
- })), /*#__PURE__*/external_react_default().createElement(StyledContent, {
418
- "data-test": "content",
419
- $fillStyle: fillStyle
420
- }, children), onRequestRemove && /*#__PURE__*/external_react_default().createElement(StyledRemove, {
421
- "data-test": "remove",
422
- onClick: handleRemoveClick,
423
- $appearance: appearance
424
- }, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Close_default()), {
425
- height: "12px",
426
- hideDefaultTooltip: true,
427
- screenReaderText: null,
428
- width: "12px"
429
- }) : /*#__PURE__*/external_react_default().createElement((Cross_default()), {
430
- height: "20px",
431
- width: "20px"
432
- })));
433
- }
434
-
435
- Message.propTypes = Message_propTypes;
436
- Message.Title = Message_Title;
437
- Message.Link = Message_Link;
438
- /* harmony default export */ const Message_Message = (Message);
439
-
440
- ;// CONCATENATED MODULE: ./src/Message/index.ts
441
-
442
-
443
- module.exports = __webpack_exports__;
444
- /******/ })()
445
- ;
348
+ */ function U(e) {
349
+ var r = e.children, a = J(e, [ "children" ]);
350
+ // @docs-props-type TitleProps
351
+
352
+ return i().createElement(B, a, r);
353
+ }
354
+ U.propTypes = Q;
355
+ /* harmony default export */ const Y = U;
356
+ // CONCATENATED MODULE: ./src/Message/Message.tsx
357
+ function Z() {
358
+ Z = Object.assign || function(e) {
359
+ for (var r = 1; r < arguments.length; r++) {
360
+ var a = arguments[r];
361
+ for (var i in a) {
362
+ if (Object.prototype.hasOwnProperty.call(a, i)) {
363
+ e[i] = a[i];
364
+ }
365
+ }
366
+ }
367
+ return e;
368
+ };
369
+ return Z.apply(this, arguments);
370
+ }
371
+ function ee(e, r) {
372
+ if (e == null) return {};
373
+ var a = re(e, r);
374
+ var i, n;
375
+ if (Object.getOwnPropertySymbols) {
376
+ var s = Object.getOwnPropertySymbols(e);
377
+ for (n = 0; n < s.length; n++) {
378
+ i = s[n];
379
+ if (r.indexOf(i) >= 0) continue;
380
+ if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
381
+ a[i] = e[i];
382
+ }
383
+ }
384
+ return a;
385
+ }
386
+ function re(e, r) {
387
+ if (e == null) return {};
388
+ var a = {};
389
+ var i = Object.keys(e);
390
+ var n, s;
391
+ for (s = 0; s < i.length; s++) {
392
+ n = i[s];
393
+ if (r.indexOf(n) >= 0) continue;
394
+ a[n] = e[n];
395
+ }
396
+ return a;
397
+ }
398
+ var ae = {
399
+ appearance: s().oneOf([ "default", "fill", "banner" ]),
400
+ children: s().node,
401
+ elementRef: s().oneOfType([ s().func, s().object ]),
402
+ onRequestRemove: s().func,
403
+ type: s().oneOf([ "info", "success", "warning", "error" ])
404
+ };
405
+ var ie = Object.freeze({
406
+ info: C(),
407
+ warning: S(),
408
+ error: k(),
409
+ success: w()
410
+ });
411
+ var ne = Object.freeze({
412
+ info: g(),
413
+ warning: m(),
414
+ error: d(),
415
+ success: t()
416
+ });
417
+ function se(e) {
418
+ var r = e.appearance, n = r === void 0 ? "default" : r, s = e.children, o = e.type, t = o === void 0 ? "warning" : o, c = e.onRequestRemove, p = ee(e, [ "appearance", "children", "type", "onRequestRemove" ]);
419
+ // @docs-props-type MessagePropsBase
420
+ var u = (0, E.useSplunkTheme)(), d = u.isEnterprise;
421
+ if (false) {}
422
+ // double check this can only be button
423
+ var b = (0, a.useCallback)((function(e) {
424
+ c === null || c === void 0 ? void 0 : c(e);
425
+ }), [ c ]);
426
+ if (n === "banner") {
427
+
428
+ return i().createElement(q(), Z({
429
+ type: t,
430
+ "data-test": "banner",
431
+ onRequestClose: b
432
+ }, p), s);
433
+ }
434
+ var g = d ? ie : ne;
435
+ var f = g[t];
436
+ var m = n === "fill";
437
+ var y = n === "default" || n === "fill";
438
+
439
+ return i().createElement(G, Z({
440
+ $appearance: n,
441
+ $fillStyle: m,
442
+ $hasRemoveIcon: !!c,
443
+ $type: t,
444
+ "data-test-type": t,
445
+ "data-test": "message"
446
+ }, p), y && i().createElement(F, {
447
+ $fillStyle: m,
448
+ $type: t
449
+ }, d ? i().createElement(f, {
450
+ height: "24px",
451
+ width: "24px",
452
+ hideDefaultTooltip: true,
453
+ screenReaderText: null
454
+ }) : i().createElement(f, {
455
+ variant: "filled"
456
+ })), i().createElement(D, {
457
+ "data-test": "content",
458
+ $fillStyle: m
459
+ }, s), c && i().createElement(H, {
460
+ "data-test": "remove",
461
+ onClick: b,
462
+ $appearance: n
463
+ }, d ? i().createElement(v(), {
464
+ height: "12px",
465
+ hideDefaultTooltip: true,
466
+ screenReaderText: null,
467
+ width: "12px"
468
+ }) : i().createElement(l(), {
469
+ height: "20px",
470
+ width: "20px"
471
+ })));
472
+ }
473
+ se.propTypes = ae;
474
+ se.Title = Y;
475
+ se.Link = X;
476
+ /* harmony default export */ const oe = se;
477
+ // CONCATENATED MODULE: ./src/Message/index.ts
478
+ module.exports = r;
479
+ /******/})();