@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.
- package/Breadcrumbs.js +20 -29
- package/Button.js +20 -23
- package/ButtonGroup.js +20 -23
- package/ButtonSimple.js +33 -34
- package/CHANGELOG.md +56 -1
- package/Card.js +129 -113
- package/Chip.js +75 -82
- package/CollapsiblePanel.js +281 -264
- package/Color.js +103 -93
- package/ComboBox.js +3 -2
- package/Concertina.js +139 -138
- package/ControlGroup.js +43 -39
- package/DualListbox.js +8 -11
- package/File.js +25 -30
- package/FormRows.js +53 -53
- package/Image.js +13 -13
- package/JSONTree.js +87 -85
- package/List.js +9 -13
- package/MIGRATION.mdx +100 -0
- package/Markdown.js +12 -12
- package/Menu.js +492 -699
- package/Message.js +192 -194
- package/MessageBar.js +104 -104
- package/Modal.js +2 -2
- package/Monogram.js +140 -94
- package/Multiselect.js +45 -49
- package/Paginator.js +8 -8
- package/Popover.js +53 -54
- package/Progress.js +45 -46
- package/RadioBar.js +117 -115
- package/RadioList.js +8 -5
- package/ResultsMenu.js +272 -279
- package/Search.js +197 -199
- package/Select.js +86 -84
- package/Slider.js +9 -9
- package/SplitButton.js +1 -4
- package/StaticContent.js +1 -1
- package/StepBar.js +92 -88
- package/Switch.js +217 -211
- package/TabBar.js +13 -5
- package/Table.js +714 -717
- package/Text.js +94 -83
- package/TextArea.js +162 -163
- package/Tooltip.js +1 -1
- package/package.json +8 -8
- package/stubs-splunkui.d.ts +11 -0
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/types/src/Breadcrumbs/Item.d.ts +0 -1
- package/types/src/Card/Card.d.ts +3 -1
- package/types/src/Card/Header.d.ts +22 -5
- package/types/src/Chip/Chip.d.ts +2 -4
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
- package/types/src/Color/Color.d.ts +5 -5
- package/types/src/ComboBox/Option.d.ts +0 -1
- package/types/src/List/List.d.ts +2 -4
- package/types/src/Menu/Heading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +10 -5
- package/types/src/Menu/Menu.d.ts +18 -26
- package/types/src/Menu/MenuContext.d.ts +3 -2
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +5 -6
- package/types/src/Multiselect/Option.d.ts +0 -1
- package/types/src/Progress/Progress.d.ts +4 -1
- package/types/src/RadioBar/Option.d.ts +4 -1
- package/types/src/RadioBar/RadioBar.d.ts +6 -4
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +13 -28
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +3 -5
- package/types/src/Search/Option.d.ts +19 -6
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -0
- package/types/src/Select/Option.d.ts +0 -1
- package/types/src/Select/OptionBase.d.ts +2 -3
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +2 -2
- package/types/src/Table/Body.d.ts +0 -4
- package/types/src/Table/DragHandle.d.ts +1 -2
- package/types/src/Text/Text.d.ts +2 -0
- package/useRovingFocus.js +26 -40
- 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
|
|
28
|
-
/******/ if (e.o(a,
|
|
29
|
-
/******/ Object.defineProperty(r,
|
|
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[
|
|
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
|
|
69
|
+
var n = e.n(a);
|
|
70
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
|
-
const
|
|
72
|
-
var
|
|
71
|
+
const i = require("prop-types");
|
|
72
|
+
var o = e.n(i);
|
|
73
73
|
// CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
|
|
74
|
-
const
|
|
75
|
-
var
|
|
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
|
|
87
|
+
var f = e.n(b);
|
|
88
88
|
// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationTriangle"
|
|
89
|
-
const
|
|
90
|
-
var m = e.n(
|
|
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
|
|
110
|
+
const I = require("@splunk/themes");
|
|
111
111
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
112
|
-
const
|
|
112
|
+
const P = require("@splunk/ui-utils/i18n");
|
|
113
113
|
// CONCATENATED MODULE: external "styled-components"
|
|
114
114
|
const R = require("styled-components");
|
|
115
|
-
var
|
|
115
|
+
var T = e.n(R);
|
|
116
116
|
// CONCATENATED MODULE: external "@splunk/react-ui/Link"
|
|
117
|
-
const
|
|
118
|
-
var
|
|
117
|
+
const $ = require("@splunk/react-ui/Link");
|
|
118
|
+
var L = e.n($);
|
|
119
119
|
// CONCATENATED MODULE: ./src/Message/LinkStyles.ts
|
|
120
|
-
var M =
|
|
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
|
|
128
|
+
var n, i;
|
|
129
129
|
if (Object.getOwnPropertySymbols) {
|
|
130
|
-
var
|
|
131
|
-
for (
|
|
132
|
-
|
|
133
|
-
if (r.indexOf(
|
|
134
|
-
if (!Object.prototype.propertyIsEnumerable.call(e,
|
|
135
|
-
a[
|
|
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
|
|
144
|
-
var
|
|
145
|
-
for (
|
|
146
|
-
|
|
147
|
-
if (r.indexOf(
|
|
148
|
-
a[
|
|
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:
|
|
154
|
-
elementRef:
|
|
155
|
-
openInNewContext:
|
|
156
|
-
to:
|
|
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
|
|
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 =
|
|
178
|
+
var F = T().p.withConfig({
|
|
179
179
|
displayName: "TitleStyles__StyledTitle",
|
|
180
180
|
componentId: "sc-6gbjha-0"
|
|
181
|
-
})([ "", " ", "" ],
|
|
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 =
|
|
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,
|
|
189
|
-
prisma: (0, R.css)([ "padding:", " 0;color:", ";" ],
|
|
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,
|
|
192
|
-
prisma: (0, R.css)([ "padding-left:", ";" ],
|
|
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,
|
|
197
|
-
prisma: (0, R.css)([ "padding-left:", ";" ],
|
|
196
|
+
return r && (0, I.pick)({
|
|
197
|
+
prisma: (0, R.css)([ "padding-left:", ";" ], I.variables.spacingMedium)
|
|
198
198
|
});
|
|
199
199
|
}));
|
|
200
|
-
var J =
|
|
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:", ";
|
|
204
|
-
|
|
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:
|
|
207
|
-
}), (0,
|
|
208
|
-
prisma:
|
|
206
|
+
enterprise: I.variables.borderRadius
|
|
207
|
+
}), (0, I.pick)({
|
|
208
|
+
prisma: I.variables.contentColorMuted,
|
|
209
209
|
enterprise: {
|
|
210
|
-
dark:
|
|
211
|
-
light:
|
|
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,
|
|
216
|
-
prisma: (0, R.css)([ "color:", ";" ],
|
|
215
|
+
return r === "banner" && (0, I.pick)({
|
|
216
|
+
prisma: (0, R.css)([ "color:", ";" ], I.variables.contentColorInverted)
|
|
217
217
|
});
|
|
218
|
-
}), (0,
|
|
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,
|
|
222
|
-
prisma:
|
|
221
|
+
}), (0, I.pick)({
|
|
222
|
+
prisma: I.variables.interactiveColorOverlayHover,
|
|
223
223
|
enterprise: {
|
|
224
|
-
dark:
|
|
225
|
-
light:
|
|
224
|
+
dark: I.variables.gray30,
|
|
225
|
+
light: I.variables.gray92
|
|
226
226
|
}
|
|
227
|
-
}), (0,
|
|
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:
|
|
233
|
-
light:
|
|
229
|
+
dark: I.variables.gray96,
|
|
230
|
+
light: I.variables.linkColor
|
|
234
231
|
},
|
|
235
|
-
prisma:
|
|
236
|
-
}), (0,
|
|
237
|
-
prisma: (0, R.css)([ "background:", ";" ],
|
|
238
|
-
enterprise: (0, R.css)([ "box-shadow:", ";" ],
|
|
239
|
-
}), (0,
|
|
240
|
-
prisma: (0, R.css)([ "&:focus{box-shadow:0 0 0 3px ", ";}" ],
|
|
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 =
|
|
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
|
-
|
|
247
|
-
prisma:
|
|
243
|
+
I.pick)({
|
|
244
|
+
prisma: I.variables.spacingXLarge,
|
|
248
245
|
enterprise: "25px"
|
|
249
|
-
}),
|
|
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,
|
|
253
|
-
info: (0, R.css)([ "color:", ";" ], (0,
|
|
254
|
-
prisma:
|
|
255
|
-
enterprise:
|
|
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:", ";" ],
|
|
258
|
-
warning: (0, R.css)([ "color:", ";" ],
|
|
259
|
-
error: (0, R.css)([ "color:", ";" ],
|
|
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 =
|
|
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;", " ", "" ],
|
|
265
|
-
|
|
266
|
-
prisma:
|
|
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
|
-
}),
|
|
265
|
+
}), I.variables.spacingSmall, (0, I.pickVariant)("$hasRemoveIcon", {
|
|
269
266
|
true: {
|
|
270
|
-
prisma: (0, R.css)([ "padding-right:", ";" ],
|
|
271
|
-
enterprise: (0, R.css)([ "padding-right:
|
|
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,
|
|
273
|
+
return r && (0, I.pick)({
|
|
280
274
|
enterprise: (0, R.css)([ "& > ", "{left:", ";}", "" ],
|
|
281
275
|
/* sc-sel */
|
|
282
|
-
K,
|
|
283
|
-
info: (0, R.css)([ "", "" ], (0,
|
|
284
|
-
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ],
|
|
285
|
-
dark: (0, R.css)([ "background-color:", ";" ],
|
|
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,
|
|
288
|
-
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ],
|
|
289
|
-
dark: (0, R.css)([ "background-color:", ";" ],
|
|
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,
|
|
292
|
-
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ],
|
|
293
|
-
dark: (0, R.css)([ "background-color:", ";" ],
|
|
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,
|
|
296
|
-
light: (0, R.css)([ "background-color:", ";border:1px solid ", ";" ],
|
|
297
|
-
dark: (0, R.css)([ "background-color:", ";" ],
|
|
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)([ "
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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,
|
|
306
|
+
K, I.variables.backgroundColorPopup)
|
|
309
307
|
});
|
|
310
|
-
}), (0,
|
|
308
|
+
}), (0, I.pick)({
|
|
311
309
|
prisma: (0, R.css)([ "& ", "{color:", ";}" ],
|
|
312
310
|
/* sc-sel */
|
|
313
|
-
F, (0,
|
|
314
|
-
info:
|
|
315
|
-
warning:
|
|
316
|
-
error:
|
|
317
|
-
success:
|
|
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
|
|
322
|
+
var n, i;
|
|
325
323
|
if (Object.getOwnPropertySymbols) {
|
|
326
|
-
var
|
|
327
|
-
for (
|
|
328
|
-
|
|
329
|
-
if (r.indexOf(
|
|
330
|
-
if (!Object.prototype.propertyIsEnumerable.call(e,
|
|
331
|
-
a[
|
|
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
|
|
340
|
-
var
|
|
341
|
-
for (
|
|
342
|
-
|
|
343
|
-
if (r.indexOf(
|
|
344
|
-
a[
|
|
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:
|
|
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
|
|
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
|
|
367
|
-
if (Object.prototype.hasOwnProperty.call(a,
|
|
368
|
-
e[
|
|
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
|
|
374
|
+
function ne(e, r) {
|
|
377
375
|
if (e == null) return {};
|
|
378
|
-
var a =
|
|
379
|
-
var
|
|
376
|
+
var a = ie(e, r);
|
|
377
|
+
var n, i;
|
|
380
378
|
if (Object.getOwnPropertySymbols) {
|
|
381
|
-
var
|
|
382
|
-
for (
|
|
383
|
-
|
|
384
|
-
if (r.indexOf(
|
|
385
|
-
if (!Object.prototype.propertyIsEnumerable.call(e,
|
|
386
|
-
a[
|
|
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
|
|
389
|
+
function ie(e, r) {
|
|
392
390
|
if (e == null) return {};
|
|
393
391
|
var a = {};
|
|
394
|
-
var
|
|
395
|
-
var
|
|
396
|
-
for (
|
|
397
|
-
|
|
398
|
-
if (r.indexOf(
|
|
399
|
-
a[
|
|
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
|
|
404
|
-
appearance:
|
|
405
|
-
children:
|
|
406
|
-
elementRef:
|
|
407
|
-
onRequestRemove:
|
|
408
|
-
type:
|
|
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:
|
|
421
|
+
info: f(),
|
|
424
422
|
warning: m(),
|
|
425
423
|
error: d(),
|
|
426
|
-
success:
|
|
424
|
+
success: s()
|
|
427
425
|
});
|
|
428
426
|
function le(e) {
|
|
429
|
-
var r = e.appearance,
|
|
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,
|
|
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 (
|
|
435
|
+
if (i === "banner") {
|
|
438
436
|
|
|
439
|
-
return
|
|
440
|
-
type:
|
|
437
|
+
return n().createElement(q(), ae({
|
|
438
|
+
type: s,
|
|
441
439
|
"data-test": "banner",
|
|
442
440
|
onRequestClose: b
|
|
443
|
-
}, p),
|
|
441
|
+
}, p), o);
|
|
444
442
|
}
|
|
445
|
-
var
|
|
446
|
-
var
|
|
447
|
-
var m =
|
|
448
|
-
var y =
|
|
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
|
|
451
|
-
$appearance:
|
|
448
|
+
return n().createElement(Q, ae({
|
|
449
|
+
$appearance: i,
|
|
452
450
|
$fillStyle: m,
|
|
453
451
|
$hasRemoveIcon: !!c,
|
|
454
|
-
$type:
|
|
455
|
-
"data-test-type":
|
|
452
|
+
$type: s,
|
|
453
|
+
"data-test-type": s,
|
|
456
454
|
"data-test": "message"
|
|
457
|
-
}, p), y &&
|
|
455
|
+
}, p), y && n().createElement(K, {
|
|
458
456
|
$fillStyle: m,
|
|
459
|
-
$type:
|
|
460
|
-
}, d ?
|
|
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
|
-
}) :
|
|
463
|
+
}) : n().createElement(g, {
|
|
466
464
|
variant: "filled"
|
|
467
|
-
}),
|
|
465
|
+
}), n().createElement(E(), null, te[s])), n().createElement(G, {
|
|
468
466
|
"data-test": "content",
|
|
469
467
|
$fillStyle: m
|
|
470
|
-
},
|
|
468
|
+
}, o), c && n().createElement(J, {
|
|
471
469
|
"data-test": "remove",
|
|
472
470
|
onClick: b,
|
|
473
|
-
$appearance:
|
|
474
|
-
}, d ?
|
|
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
|
-
}) :
|
|
477
|
+
}) : n().createElement(l(), {
|
|
480
478
|
height: "20px",
|
|
481
479
|
width: "20px"
|
|
482
480
|
})));
|
|
483
481
|
}
|
|
484
|
-
le.propTypes =
|
|
482
|
+
le.propTypes = oe;
|
|
485
483
|
le.Title = re;
|
|
486
484
|
le.Link = z;
|
|
487
485
|
/* harmony default export */ const pe = le;
|