@splunk/react-ui 4.33.0 → 4.35.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.
Files changed (80) hide show
  1. package/Breadcrumbs.js +20 -29
  2. package/Button.js +20 -23
  3. package/ButtonGroup.js +20 -23
  4. package/ButtonSimple.js +33 -34
  5. package/CHANGELOG.md +56 -1
  6. package/Card.js +129 -113
  7. package/Chip.js +75 -82
  8. package/CollapsiblePanel.js +281 -264
  9. package/Color.js +103 -93
  10. package/ComboBox.js +3 -2
  11. package/Concertina.js +139 -138
  12. package/ControlGroup.js +43 -39
  13. package/DualListbox.js +8 -11
  14. package/File.js +25 -30
  15. package/FormRows.js +53 -53
  16. package/Image.js +13 -13
  17. package/JSONTree.js +87 -85
  18. package/List.js +9 -13
  19. package/MIGRATION.mdx +100 -0
  20. package/Markdown.js +12 -12
  21. package/Menu.js +492 -699
  22. package/Message.js +192 -194
  23. package/MessageBar.js +104 -104
  24. package/Modal.js +2 -2
  25. package/Monogram.js +140 -94
  26. package/Multiselect.js +45 -49
  27. package/Paginator.js +8 -8
  28. package/Popover.js +53 -54
  29. package/Progress.js +45 -46
  30. package/RadioBar.js +117 -115
  31. package/RadioList.js +8 -5
  32. package/ResultsMenu.js +272 -279
  33. package/Search.js +197 -199
  34. package/Select.js +86 -84
  35. package/Slider.js +9 -9
  36. package/SplitButton.js +1 -4
  37. package/StaticContent.js +1 -1
  38. package/StepBar.js +92 -88
  39. package/Switch.js +217 -211
  40. package/TabBar.js +13 -5
  41. package/Table.js +714 -717
  42. package/Text.js +94 -83
  43. package/TextArea.js +162 -163
  44. package/Tooltip.js +1 -1
  45. package/package.json +8 -8
  46. package/stubs-splunkui.d.ts +11 -0
  47. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  48. package/types/src/Breadcrumbs/Item.d.ts +0 -1
  49. package/types/src/Card/Card.d.ts +3 -1
  50. package/types/src/Card/Header.d.ts +22 -5
  51. package/types/src/Chip/Chip.d.ts +2 -4
  52. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
  53. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
  54. package/types/src/Color/Color.d.ts +5 -5
  55. package/types/src/ComboBox/Option.d.ts +0 -1
  56. package/types/src/List/List.d.ts +2 -4
  57. package/types/src/Menu/Heading.d.ts +1 -1
  58. package/types/src/Menu/Item.d.ts +10 -5
  59. package/types/src/Menu/Menu.d.ts +18 -26
  60. package/types/src/Menu/MenuContext.d.ts +3 -2
  61. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -0
  62. package/types/src/Monogram/Monogram.d.ts +5 -6
  63. package/types/src/Multiselect/Option.d.ts +0 -1
  64. package/types/src/Progress/Progress.d.ts +4 -1
  65. package/types/src/RadioBar/Option.d.ts +4 -1
  66. package/types/src/RadioBar/RadioBar.d.ts +6 -4
  67. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -0
  68. package/types/src/ResultsMenu/ResultsMenu.d.ts +13 -28
  69. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +3 -5
  70. package/types/src/Search/Option.d.ts +19 -6
  71. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -0
  72. package/types/src/Select/Option.d.ts +0 -1
  73. package/types/src/Select/OptionBase.d.ts +2 -3
  74. package/types/src/Select/Select.d.ts +2 -2
  75. package/types/src/Select/SelectBase.d.ts +2 -2
  76. package/types/src/Table/Body.d.ts +0 -4
  77. package/types/src/Table/DragHandle.d.ts +1 -2
  78. package/types/src/Text/Text.d.ts +2 -0
  79. package/useRovingFocus.js +26 -40
  80. package/types/src/Select/docs/examples/prisma/Appearance.d.ts +0 -14
package/Message.js CHANGED
@@ -24,11 +24,11 @@
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
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, {
27
+ /******/ for (var n in a) {
28
+ /******/ if (e.o(a, n) && !e.o(r, n)) {
29
+ /******/ Object.defineProperty(r, n, {
30
30
  enumerable: true,
31
- get: a[i]
31
+ get: a[n]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -66,13 +66,13 @@
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const a = require("react");
69
- var i = e.n(a);
69
+ var n = e.n(a);
70
70
  // CONCATENATED MODULE: external "prop-types"
71
- const n = require("prop-types");
72
- var s = e.n(n);
71
+ const i = require("prop-types");
72
+ var o = e.n(i);
73
73
  // CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
74
- const o = require("@splunk/react-icons/CheckCircle");
75
- var t = e.n(o);
74
+ const t = require("@splunk/react-icons/CheckCircle");
75
+ var s = e.n(t);
76
76
  // CONCATENATED MODULE: external "@splunk/react-icons/Cross"
77
77
  const c = require("@splunk/react-icons/Cross");
78
78
  var l = e.n(c);
@@ -84,10 +84,10 @@
84
84
  var d = e.n(v);
85
85
  // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
86
86
  const b = require("@splunk/react-icons/InformationCircle");
87
- var g = e.n(b);
87
+ var f = e.n(b);
88
88
  // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationTriangle"
89
- const f = require("@splunk/react-icons/ExclamationTriangle");
90
- var m = e.n(f);
89
+ const g = require("@splunk/react-icons/ExclamationTriangle");
90
+ var m = e.n(g);
91
91
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Error"
92
92
  const y = require("@splunk/react-icons/enterprise/Error");
93
93
  var k = e.n(y);
@@ -107,17 +107,17 @@
107
107
  const _ = require("@splunk/react-ui/ScreenReaderContent");
108
108
  var E = e.n(_);
109
109
  // CONCATENATED MODULE: external "@splunk/themes"
110
- const P = require("@splunk/themes");
110
+ const I = require("@splunk/themes");
111
111
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
112
- const I = require("@splunk/ui-utils/i18n");
112
+ const P = require("@splunk/ui-utils/i18n");
113
113
  // CONCATENATED MODULE: external "styled-components"
114
114
  const R = require("styled-components");
115
- var L = e.n(R);
115
+ var T = e.n(R);
116
116
  // CONCATENATED MODULE: external "@splunk/react-ui/Link"
117
- const T = require("@splunk/react-ui/Link");
118
- var $ = e.n(T);
117
+ const $ = require("@splunk/react-ui/Link");
118
+ var L = e.n($);
119
119
  // CONCATENATED MODULE: ./src/Message/LinkStyles.ts
120
- var M = L()($()).withConfig({
120
+ var M = T()(L()).withConfig({
121
121
  displayName: "LinkStyles__StyledLink",
122
122
  componentId: "w06zjv-0"
123
123
  })([ "" ]);
@@ -125,14 +125,14 @@
125
125
  function A(e, r) {
126
126
  if (e == null) return {};
127
127
  var a = N(e, r);
128
- var i, n;
128
+ var n, i;
129
129
  if (Object.getOwnPropertySymbols) {
130
- var s = Object.getOwnPropertySymbols(e);
131
- for (n = 0; n < s.length; n++) {
132
- i = s[n];
133
- if (r.indexOf(i) >= 0) continue;
134
- if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
135
- a[i] = e[i];
130
+ var o = Object.getOwnPropertySymbols(e);
131
+ for (i = 0; i < o.length; i++) {
132
+ n = o[i];
133
+ if (r.indexOf(n) >= 0) continue;
134
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
135
+ a[n] = e[n];
136
136
  }
137
137
  }
138
138
  return a;
@@ -140,20 +140,20 @@
140
140
  function N(e, r) {
141
141
  if (e == null) return {};
142
142
  var a = {};
143
- var i = Object.keys(e);
144
- var n, s;
145
- for (s = 0; s < i.length; s++) {
146
- n = i[s];
147
- if (r.indexOf(n) >= 0) continue;
148
- a[n] = e[n];
143
+ var n = Object.keys(e);
144
+ var i, o;
145
+ for (o = 0; o < n.length; o++) {
146
+ i = n[o];
147
+ if (r.indexOf(i) >= 0) continue;
148
+ a[i] = e[i];
149
149
  }
150
150
  return a;
151
151
  }
152
152
  var W = {
153
- children: s().node,
154
- elementRef: s().oneOfType([ s().func, s().object ]),
155
- openInNewContext: s().bool,
156
- to: s().string
153
+ children: o().node,
154
+ elementRef: o().oneOfType([ o().func, o().object ]),
155
+ openInNewContext: o().bool,
156
+ to: o().string
157
157
  };
158
158
  /**
159
159
  * @deprecated `Message.Link` is deprecated and will be removed in a future major version. Use `Link` instead.
@@ -164,7 +164,7 @@
164
164
  // @docs-props-type LinkPropsBase
165
165
  if (false) {}
166
166
 
167
- return i().createElement(M, a, r);
167
+ return n().createElement(M, a, r);
168
168
  }
169
169
  X.propTypes = W;
170
170
  /* harmony default export */ const z = X;
@@ -175,160 +175,158 @@
175
175
  const D = require("@splunk/react-ui/Clickable");
176
176
  var H = e.n(D);
177
177
  // CONCATENATED MODULE: ./src/Message/TitleStyles.ts
178
- var F = L().p.withConfig({
178
+ var F = T().p.withConfig({
179
179
  displayName: "TitleStyles__StyledTitle",
180
180
  componentId: "sc-6gbjha-0"
181
- })([ "", " ", "" ], P.mixins.reset("block"), (0, P.pick)({
181
+ })([ "", " ", "" ], I.mixins.reset("block"), (0, I.pick)({
182
182
  prisma: (0, R.css)([ "font-size:14px;line-height:20px;" ])
183
183
  }));
184
184
  // CONCATENATED MODULE: ./src/Message/MessageStyles.ts
185
- var G = L().div.withConfig({
185
+ var G = T().div.withConfig({
186
186
  displayName: "MessageStyles__StyledContent",
187
187
  componentId: "eg66af-0"
188
- })([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0, P.pick)({
189
- prisma: (0, R.css)([ "padding:", " 0;color:", ";" ], P.variables.spacingMedium, P.variables.contentColorActive),
188
+ })([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0, I.pick)({
189
+ prisma: (0, R.css)([ "padding:", " 0;color:", ";" ], I.variables.spacingMedium, I.variables.contentColorActive),
190
190
  enterprise: (0, R.css)([ "padding:12px 0;" ])
191
- }), (0, P.pick)({
192
- prisma: (0, R.css)([ "padding-left:", ";" ], P.variables.spacingXSmall),
191
+ }), (0, I.pick)({
192
+ prisma: (0, R.css)([ "padding-left:", ";" ], I.variables.spacingXSmall),
193
193
  enterprise: (0, R.css)([ "padding-left:15px;" ])
194
194
  }), (function(e) {
195
195
  var r = e.$fillStyle;
196
- return r && (0, P.pick)({
197
- prisma: (0, R.css)([ "padding-left:", ";" ], P.variables.spacingMedium)
196
+ return r && (0, I.pick)({
197
+ prisma: (0, R.css)([ "padding-left:", ";" ], I.variables.spacingMedium)
198
198
  });
199
199
  }));
200
- var J = L()(H()).withConfig({
200
+ var J = T()(H()).withConfig({
201
201
  displayName: "MessageStyles__StyledRemove",
202
202
  componentId: "eg66af-1"
203
- })([ "", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", "" ], P.mixins.reset("flex"), (0,
204
- P.pick)({
203
+ })([ "", ";border:1px solid transparent;border-radius:", ";color:", ";", ";cursor:pointer;position:absolute;", " padding:8px;&:hover,&:focus{background:", ";color:", ";}&:active{", ";}", "" ], I.mixins.reset("flex"), (0,
204
+ I.pick)({
205
205
  prisma: "50%",
206
- enterprise: P.variables.borderRadius
207
- }), (0, P.pick)({
208
- prisma: P.variables.contentColorMuted,
206
+ enterprise: I.variables.borderRadius
207
+ }), (0, I.pick)({
208
+ prisma: I.variables.contentColorMuted,
209
209
  enterprise: {
210
- dark: P.variables.gray96,
211
- light: P.variables.gray45
210
+ dark: I.variables.gray96,
211
+ light: I.variables.gray45
212
212
  }
213
213
  }), (function(e) {
214
214
  var r = e.$appearance;
215
- return r === "banner" && (0, P.pick)({
216
- prisma: (0, R.css)([ "color:", ";" ], P.variables.contentColorInverted)
215
+ return r === "banner" && (0, I.pick)({
216
+ prisma: (0, R.css)([ "color:", ";" ], I.variables.contentColorInverted)
217
217
  });
218
- }), (0, P.pick)({
218
+ }), (0, I.pick)({
219
219
  prisma: (0, R.css)([ "top:3px;right:2px;" ]),
220
220
  enterprise: (0, R.css)([ "top:8px;right:8px;" ])
221
- }), (0, P.pick)({
222
- prisma: P.variables.interactiveColorOverlayHover,
221
+ }), (0, I.pick)({
222
+ prisma: I.variables.interactiveColorOverlayHover,
223
223
  enterprise: {
224
- dark: P.variables.gray30,
225
- light: P.variables.gray92
224
+ dark: I.variables.gray30,
225
+ light: I.variables.gray92
226
226
  }
227
- }), (0, P.pick)({
228
- prisma: (0, R.css)([ "1px solid inherit" ]),
229
- enterprise: (0, R.css)([ "1px solid ", "" ], P.variables.gray80)
230
- }), (0, P.pick)({
227
+ }), (0, I.pick)({
231
228
  enterprise: {
232
- dark: P.variables.gray96,
233
- light: P.variables.linkColor
229
+ dark: I.variables.gray96,
230
+ light: I.variables.linkColor
234
231
  },
235
- prisma: P.variables.contentColorActive
236
- }), (0, P.pick)({
237
- prisma: (0, R.css)([ "background:", ";" ], P.variables.interactiveColorOverlayActive),
238
- enterprise: (0, R.css)([ "box-shadow:", ";" ], P.variables.focusShadow)
239
- }), (0, P.pick)({
240
- prisma: (0, R.css)([ "&:focus{box-shadow:0 0 0 3px ", ";}" ], P.variables.focusColor)
232
+ prisma: I.variables.contentColorActive
233
+ }), (0, I.pick)({
234
+ prisma: (0, R.css)([ "background:", ";" ], I.variables.interactiveColorOverlayActive),
235
+ enterprise: (0, R.css)([ "box-shadow:", ";" ], I.variables.focusShadow)
236
+ }), (0, I.pick)({
237
+ prisma: (0, R.css)([ "&:focus{box-shadow:0 0 0 3px ", ";}" ], I.variables.focusColor)
241
238
  }));
242
- var K = L().span.withConfig({
239
+ var K = T().span.withConfig({
243
240
  displayName: "MessageStyles__StyledIconWrapper",
244
241
  componentId: "eg66af-2"
245
242
  })([ "position:relative;min-width:", ";text-align:center;color:", ";", " ", "" ], (0,
246
- P.pick)({
247
- prisma: P.variables.spacingXLarge,
243
+ I.pick)({
244
+ prisma: I.variables.spacingXLarge,
248
245
  enterprise: "25px"
249
- }), P.variables.white, (0, P.pick)({
246
+ }), I.variables.white, (0, I.pick)({
250
247
  enterprise: (0, R.css)([ "top:-2px;" ]),
251
248
  prisma: (0, R.css)([ "top:-1.8px;" ])
252
- }), (0, P.pickVariant)("$type", {
253
- info: (0, R.css)([ "color:", ";" ], (0, P.pick)({
254
- prisma: P.variables.contentColorMuted,
255
- enterprise: P.variables.infoColor
249
+ }), (0, I.pickVariant)("$type", {
250
+ info: (0, R.css)([ "color:", ";" ], (0, I.pick)({
251
+ prisma: I.variables.contentColorMuted,
252
+ enterprise: I.variables.infoColor
256
253
  })),
257
- success: (0, R.css)([ "color:", ";" ], P.variables.accentColorPositive),
258
- warning: (0, R.css)([ "color:", ";" ], P.variables.accentColorWarning),
259
- error: (0, R.css)([ "color:", ";" ], P.variables.accentColorNegative)
254
+ success: (0, R.css)([ "color:", ";" ], I.variables.accentColorPositive),
255
+ warning: (0, R.css)([ "color:", ";" ], I.variables.accentColorWarning),
256
+ error: (0, R.css)([ "color:", ";" ], I.variables.accentColorNegative)
260
257
  }));
261
- var Q = L()(B()).withConfig({
258
+ var Q = T()(B()).withConfig({
262
259
  displayName: "MessageStyles__StyledBox",
263
260
  componentId: "eg66af-3"
264
- })([ "", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", "" ], P.mixins.reset("flex"), (0,
265
- P.pick)({
266
- prisma: P.variables.borderRadius,
261
+ })([ "", ";align-items:baseline;position:relative;border-radius:", ";margin-bottom:", ";", " word-wrap:break-word;", " ", "" ], I.mixins.reset("flex"), (0,
262
+ I.pick)({
263
+ prisma: I.variables.borderRadius,
267
264
  enterprise: "5px"
268
- }), P.variables.spacingSmall, (0, P.pickVariant)("$hasRemoveIcon", {
265
+ }), I.variables.spacingSmall, (0, I.pickVariant)("$hasRemoveIcon", {
269
266
  true: {
270
- prisma: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingXXXLarge),
271
- enterprise: (0, R.css)([ "padding-right:40px;" ])
267
+ prisma: (0, R.css)([ "padding-right:", ";" ], I.variables.spacingXXXLarge),
268
+ enterprise: (0, R.css)([ "padding-right:", ";" ], I.variables.spacingXXLarge)
272
269
  },
273
- false: {
274
- prisma: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingSmall),
275
- enterprise: (0, R.css)([ "padding-right:", ";" ], P.variables.spacingHalf)
276
- }
270
+ false: (0, R.css)([ "padding-right:", ";" ], I.variables.spacingSmall)
277
271
  }), (function(e) {
278
272
  var r = e.$fillStyle;
279
- return r && (0, P.pick)({
273
+ return r && (0, I.pick)({
280
274
  enterprise: (0, R.css)([ "& > ", "{left:", ";}", "" ],
281
275
  /* sc-sel */
282
- K, P.variables.spacingXSmall, (0, P.pickVariant)("$type", {
283
- info: (0, R.css)([ "", "" ], (0, P.pick)({
284
- light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.infoColorL50, P.variables.infoColor),
285
- dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.infoColor, .5))
276
+ K, I.variables.spacingXSmall, (0, I.pickVariant)("$type", {
277
+ info: (0, R.css)([ "", "" ], (0, I.pick)({
278
+ light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], I.variables.infoColorL50, I.variables.infoColor),
279
+ dark: (0, R.css)([ "background-color:", ";" ], I.mixins.colorWithAlpha(I.variables.infoColor, .5))
286
280
  })),
287
- success: (0, R.css)([ "", "" ], (0, P.pick)({
288
- light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.successColorL50, P.variables.successColor),
289
- dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.successColor, .5))
281
+ success: (0, R.css)([ "", "" ], (0, I.pick)({
282
+ light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], I.variables.successColorL50, I.variables.successColor),
283
+ dark: (0, R.css)([ "background-color:", ";" ], I.mixins.colorWithAlpha(I.variables.successColor, .5))
290
284
  })),
291
- warning: (0, R.css)([ "", "" ], (0, P.pick)({
292
- light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.warningColorL50, P.variables.warningColor),
293
- dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.warningColor, .5))
285
+ warning: (0, R.css)([ "", "" ], (0, I.pick)({
286
+ light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], I.variables.warningColorL50, I.variables.warningColor),
287
+ dark: (0, R.css)([ "background-color:", ";" ], I.mixins.colorWithAlpha(I.variables.warningColor, .5))
294
288
  })),
295
- error: (0, R.css)([ "", "" ], (0, P.pick)({
296
- light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], P.variables.errorColorL50, P.variables.errorColor),
297
- dark: (0, R.css)([ "background-color:", ";" ], P.mixins.colorWithAlpha(P.variables.errorColor, .5))
289
+ error: (0, R.css)([ "", "" ], (0, I.pick)({
290
+ light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ], I.variables.errorColorL50, I.variables.errorColor),
291
+ dark: (0, R.css)([ "background-color:", ";" ], I.mixins.colorWithAlpha(I.variables.errorColor, .5))
298
292
  }))
299
293
  })),
300
- prisma: (0, R.css)([ "background:linear-gradient( to right,", " ", " ", ",", " 100% );box-shadow:", ";& > ", "{color:", ";}" ], (0,
301
- P.pickVariant)("$type", {
302
- info: (0, R.css)([ "", " 0,", " ", "," ], P.variables.contentColorActive, P.variables.contentColorActive, P.variables.spacingXLarge),
303
- success: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorPositive, P.variables.accentColorPositive, P.variables.spacingXLarge),
304
- warning: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorWarning, P.variables.accentColorWarning, P.variables.spacingXLarge),
305
- error: (0, R.css)([ "", " 0,", " ", "," ], P.variables.accentColorNegative, P.variables.accentColorNegative, P.variables.spacingXLarge)
306
- }), P.variables.backgroundColorPopup, P.variables.spacingXLarge, P.variables.backgroundColorPopup, P.variables.embossShadow,
294
+ prisma: (0, R.css)([ "", ";box-shadow:", ";& > ", "{color:", ";}" ], (function(e) {
295
+ var r = e.$type;
296
+ var a = {
297
+ info: I.variables.contentColorActive,
298
+ success: I.variables.accentColorPositive,
299
+ warning: I.variables.accentColorWarning,
300
+ error: I.variables.accentColorNegative
301
+ };
302
+ var n = a[r];
303
+ return (0, R.css)([ "background:linear-gradient( to right,", " 0,", " ", ",", " ", ",", " 100% );" ], n, n, I.variables.spacingXLarge, I.variables.backgroundColorPopup, I.variables.spacingXLarge, I.variables.backgroundColorPopup);
304
+ }), I.variables.embossShadow,
307
305
  /* sc-sel */
308
- K, P.variables.backgroundColorPopup)
306
+ K, I.variables.backgroundColorPopup)
309
307
  });
310
- }), (0, P.pick)({
308
+ }), (0, I.pick)({
311
309
  prisma: (0, R.css)([ "& ", "{color:", ";}" ],
312
310
  /* sc-sel */
313
- F, (0, P.pickVariant)("$type", {
314
- info: P.variables.contentColorActive,
315
- warning: P.variables.accentColorWarning,
316
- error: P.variables.accentColorNegative,
317
- success: P.variables.accentColorPositive
311
+ F, (0, I.pickVariant)("$type", {
312
+ info: I.variables.contentColorActive,
313
+ warning: I.variables.accentColorWarning,
314
+ error: I.variables.accentColorNegative,
315
+ success: I.variables.accentColorPositive
318
316
  }))
319
317
  }));
320
318
  // CONCATENATED MODULE: ./src/Message/Title.tsx
321
319
  function U(e, r) {
322
320
  if (e == null) return {};
323
321
  var a = Y(e, r);
324
- var i, n;
322
+ var n, i;
325
323
  if (Object.getOwnPropertySymbols) {
326
- var s = Object.getOwnPropertySymbols(e);
327
- for (n = 0; n < s.length; n++) {
328
- i = s[n];
329
- if (r.indexOf(i) >= 0) continue;
330
- if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
331
- a[i] = e[i];
324
+ var o = Object.getOwnPropertySymbols(e);
325
+ for (i = 0; i < o.length; i++) {
326
+ n = o[i];
327
+ if (r.indexOf(n) >= 0) continue;
328
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
329
+ a[n] = e[n];
332
330
  }
333
331
  }
334
332
  return a;
@@ -336,17 +334,17 @@
336
334
  function Y(e, r) {
337
335
  if (e == null) return {};
338
336
  var a = {};
339
- var i = Object.keys(e);
340
- var n, s;
341
- for (s = 0; s < i.length; s++) {
342
- n = i[s];
343
- if (r.indexOf(n) >= 0) continue;
344
- a[n] = e[n];
337
+ var n = Object.keys(e);
338
+ var i, o;
339
+ for (o = 0; o < n.length; o++) {
340
+ i = n[o];
341
+ if (r.indexOf(i) >= 0) continue;
342
+ a[i] = e[i];
345
343
  }
346
344
  return a;
347
345
  }
348
346
  var Z = {
349
- children: s().node
347
+ children: o().node
350
348
  };
351
349
  /**
352
350
  * A title component for use in `Message`.
@@ -354,7 +352,7 @@
354
352
  var r = e.children, a = U(e, [ "children" ]);
355
353
  // @docs-props-type TitleProps
356
354
 
357
- return i().createElement(F, a, r);
355
+ return n().createElement(F, a, r);
358
356
  }
359
357
  ee.propTypes = Z;
360
358
  /* harmony default export */ const re = ee;
@@ -363,9 +361,9 @@
363
361
  ae = Object.assign || function(e) {
364
362
  for (var r = 1; r < arguments.length; r++) {
365
363
  var a = arguments[r];
366
- for (var i in a) {
367
- if (Object.prototype.hasOwnProperty.call(a, i)) {
368
- e[i] = a[i];
364
+ for (var n in a) {
365
+ if (Object.prototype.hasOwnProperty.call(a, n)) {
366
+ e[n] = a[n];
369
367
  }
370
368
  }
371
369
  }
@@ -373,115 +371,115 @@
373
371
  };
374
372
  return ae.apply(this, arguments);
375
373
  }
376
- function ie(e, r) {
374
+ function ne(e, r) {
377
375
  if (e == null) return {};
378
- var a = ne(e, r);
379
- var i, n;
376
+ var a = ie(e, r);
377
+ var n, i;
380
378
  if (Object.getOwnPropertySymbols) {
381
- var s = Object.getOwnPropertySymbols(e);
382
- for (n = 0; n < s.length; n++) {
383
- i = s[n];
384
- if (r.indexOf(i) >= 0) continue;
385
- if (!Object.prototype.propertyIsEnumerable.call(e, i)) continue;
386
- a[i] = e[i];
379
+ var o = Object.getOwnPropertySymbols(e);
380
+ for (i = 0; i < o.length; i++) {
381
+ n = o[i];
382
+ if (r.indexOf(n) >= 0) continue;
383
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
384
+ a[n] = e[n];
387
385
  }
388
386
  }
389
387
  return a;
390
388
  }
391
- function ne(e, r) {
389
+ function ie(e, r) {
392
390
  if (e == null) return {};
393
391
  var a = {};
394
- var i = Object.keys(e);
395
- var n, s;
396
- for (s = 0; s < i.length; s++) {
397
- n = i[s];
398
- if (r.indexOf(n) >= 0) continue;
399
- a[n] = e[n];
392
+ var n = Object.keys(e);
393
+ var i, o;
394
+ for (o = 0; o < n.length; o++) {
395
+ i = n[o];
396
+ if (r.indexOf(i) >= 0) continue;
397
+ a[i] = e[i];
400
398
  }
401
399
  return a;
402
400
  }
403
- var se = {
404
- appearance: s().oneOf([ "default", "fill", "banner" ]),
405
- children: s().node,
406
- elementRef: s().oneOfType([ s().func, s().object ]),
407
- onRequestRemove: s().func,
408
- type: s().oneOf([ "info", "success", "warning", "error" ])
401
+ var oe = {
402
+ appearance: o().oneOf([ "default", "fill", "banner" ]),
403
+ children: o().node,
404
+ elementRef: o().oneOfType([ o().func, o().object ]),
405
+ onRequestRemove: o().func,
406
+ type: o().oneOf([ "info", "success", "warning", "error" ])
409
407
  };
410
- var oe = Object.freeze({
411
- info: (0, I._)("Info"),
412
- warning: (0, I._)("Warning"),
413
- error: (0, I._)("Alert"),
414
- success: (0, I._)("Success")
415
- });
416
408
  var te = Object.freeze({
409
+ info: (0, P._)("Info"),
410
+ warning: (0, P._)("Warning"),
411
+ error: (0, P._)("Alert"),
412
+ success: (0, P._)("Success")
413
+ });
414
+ var se = Object.freeze({
417
415
  info: C(),
418
416
  warning: S(),
419
417
  error: k(),
420
418
  success: w()
421
419
  });
422
420
  var ce = Object.freeze({
423
- info: g(),
421
+ info: f(),
424
422
  warning: m(),
425
423
  error: d(),
426
- success: t()
424
+ success: s()
427
425
  });
428
426
  function le(e) {
429
- 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 = ie(e, [ "appearance", "children", "type", "onRequestRemove" ]);
427
+ var r = e.appearance, i = r === void 0 ? "default" : r, o = e.children, t = e.type, s = t === void 0 ? "warning" : t, c = e.onRequestRemove, p = ne(e, [ "appearance", "children", "type", "onRequestRemove" ]);
430
428
  // @docs-props-type MessagePropsBase
431
- var v = (0, P.useSplunkTheme)(), d = v.isEnterprise;
429
+ var v = (0, I.useSplunkTheme)(), d = v.isEnterprise;
432
430
  if (false) {}
433
431
  // double check this can only be button
434
432
  var b = (0, a.useCallback)((function(e) {
435
433
  c === null || c === void 0 ? void 0 : c(e);
436
434
  }), [ c ]);
437
- if (n === "banner") {
435
+ if (i === "banner") {
438
436
 
439
- return i().createElement(q(), ae({
440
- type: t,
437
+ return n().createElement(q(), ae({
438
+ type: s,
441
439
  "data-test": "banner",
442
440
  onRequestClose: b
443
- }, p), s);
441
+ }, p), o);
444
442
  }
445
- var g = d ? te : ce;
446
- var f = g[t];
447
- var m = n === "fill";
448
- var y = n === "default" || n === "fill";
443
+ var f = d ? se : ce;
444
+ var g = f[s];
445
+ var m = i === "fill";
446
+ var y = i === "default" || i === "fill";
449
447
 
450
- return i().createElement(Q, ae({
451
- $appearance: n,
448
+ return n().createElement(Q, ae({
449
+ $appearance: i,
452
450
  $fillStyle: m,
453
451
  $hasRemoveIcon: !!c,
454
- $type: t,
455
- "data-test-type": t,
452
+ $type: s,
453
+ "data-test-type": s,
456
454
  "data-test": "message"
457
- }, p), y && i().createElement(K, {
455
+ }, p), y && n().createElement(K, {
458
456
  $fillStyle: m,
459
- $type: t
460
- }, d ? i().createElement(f, {
457
+ $type: s
458
+ }, d ? n().createElement(g, {
461
459
  height: "24px",
462
460
  width: "24px",
463
461
  hideDefaultTooltip: true,
464
462
  screenReaderText: null
465
- }) : i().createElement(f, {
463
+ }) : n().createElement(g, {
466
464
  variant: "filled"
467
- }), i().createElement(E(), null, oe[t])), i().createElement(G, {
465
+ }), n().createElement(E(), null, te[s])), n().createElement(G, {
468
466
  "data-test": "content",
469
467
  $fillStyle: m
470
- }, s), c && i().createElement(J, {
468
+ }, o), c && n().createElement(J, {
471
469
  "data-test": "remove",
472
470
  onClick: b,
473
- $appearance: n
474
- }, d ? i().createElement(u(), {
471
+ $appearance: i
472
+ }, d ? n().createElement(u(), {
475
473
  height: "12px",
476
474
  hideDefaultTooltip: true,
477
475
  screenReaderText: null,
478
476
  width: "12px"
479
- }) : i().createElement(l(), {
477
+ }) : n().createElement(l(), {
480
478
  height: "20px",
481
479
  width: "20px"
482
480
  })));
483
481
  }
484
- le.propTypes = se;
482
+ le.propTypes = oe;
485
483
  le.Title = re;
486
484
  le.Link = z;
487
485
  /* harmony default export */ const pe = le;