@splunk/react-ui 4.33.0 → 4.34.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/Button.js +19 -22
- package/ButtonGroup.js +20 -23
- package/ButtonSimple.js +33 -34
- package/CHANGELOG.md +31 -0
- package/Card.js +56 -44
- package/Chip.js +2 -6
- package/CollapsiblePanel.js +281 -264
- package/Color.js +88 -86
- package/Concertina.js +7 -7
- package/ControlGroup.js +18 -18
- package/DualListbox.js +8 -11
- package/File.js +25 -30
- package/FormRows.js +53 -53
- package/Image.js +13 -13
- package/JSONTree.js +22 -22
- package/MIGRATION.mdx +76 -0
- package/Markdown.js +12 -12
- package/Menu.js +505 -719
- package/Message.js +205 -204
- package/MessageBar.js +104 -104
- package/Modal.js +2 -2
- package/Multiselect.js +36 -39
- 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 +256 -261
- package/Search.js +21 -24
- package/Select.js +34 -31
- package/Slider.js +9 -9
- package/SplitButton.js +1 -4
- package/StaticContent.js +1 -1
- package/StepBar.js +1 -1
- package/Switch.js +169 -171
- package/TabBar.js +13 -5
- package/Table.js +65 -67
- package/Text.js +17 -26
- package/TextArea.js +162 -163
- package/Tooltip.js +1 -1
- package/package.json +5 -5
- package/stubs-splunkui.d.ts +11 -0
- package/types/src/Card/Card.d.ts +3 -1
- package/types/src/Card/Header.d.ts +22 -3
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +5 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -3
- package/types/src/Menu/Item.d.ts +3 -0
- package/types/src/Menu/Menu.d.ts +16 -21
- package/types/src/Menu/MenuContext.d.ts +3 -2
- 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 +5 -22
- 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/useRovingFocus.js +26 -40
- package/types/src/Select/docs/examples/prisma/Appearance.d.ts +0 -14
package/MessageBar.js
CHANGED
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
const s = require("prop-types");
|
|
71
71
|
var n = e.n(s);
|
|
72
72
|
// CONCATENATED MODULE: external "@splunk/react-icons/Cross"
|
|
73
|
-
const
|
|
74
|
-
var
|
|
73
|
+
const o = require("@splunk/react-icons/Cross");
|
|
74
|
+
var t = e.n(o);
|
|
75
75
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
76
76
|
const c = require("@splunk/react-icons/enterprise/Close");
|
|
77
77
|
var l = e.n(c);
|
|
78
78
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
79
79
|
const p = require("@splunk/react-ui/ScreenReaderContent");
|
|
80
|
-
var
|
|
80
|
+
var d = e.n(p);
|
|
81
81
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
82
|
-
const
|
|
82
|
+
const u = require("@splunk/themes");
|
|
83
83
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
84
84
|
const v = require("@splunk/ui-utils/i18n");
|
|
85
85
|
// CONCATENATED MODULE: external "styled-components"
|
|
86
|
-
const
|
|
87
|
-
var
|
|
86
|
+
const b = require("styled-components");
|
|
87
|
+
var g = e.n(b);
|
|
88
88
|
// CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
|
|
89
89
|
const h = require("@splunk/react-icons/CheckCircle");
|
|
90
90
|
var y = e.n(h);
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
const m = require("@splunk/react-icons/ExclamationCircle");
|
|
93
93
|
var f = e.n(m);
|
|
94
94
|
// CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
|
|
95
|
-
const
|
|
96
|
-
var
|
|
95
|
+
const x = require("@splunk/react-icons/InformationCircle");
|
|
96
|
+
var k = e.n(x);
|
|
97
97
|
// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationTriangle"
|
|
98
98
|
const C = require("@splunk/react-icons/ExclamationTriangle");
|
|
99
99
|
var w = e.n(C);
|
|
@@ -116,152 +116,152 @@
|
|
|
116
116
|
const N = require("@splunk/react-ui/Clickable");
|
|
117
117
|
var R = e.n(N);
|
|
118
118
|
// CONCATENATED MODULE: ./src/MessageBar/MessageBarStyles.ts
|
|
119
|
-
var T =
|
|
119
|
+
var T = g().div.withConfig({
|
|
120
120
|
displayName: "MessageBarStyles__MessageBarContent",
|
|
121
121
|
componentId: "sc-1uyhzza-0"
|
|
122
|
-
})([ "", ";color:inherit;padding:0 8px;text-align:center;margin-right:auto;& a{display:inline-block;color:inherit;text-decoration:underline;text-underline-position:under;padding:0 3px 2px 3px;&:not([disabled]):focus{border-radius:", ";outline:0;
|
|
123
|
-
|
|
122
|
+
})([ "", ";color:inherit;padding:0 8px;text-align:center;margin-right:auto;& a{display:inline-block;color:inherit;text-decoration:underline;text-underline-position:under;padding:0 3px 2px 3px;&:not([disabled]):focus{border-radius:", ";outline:0;", ";}}" ], u.mixins.reset("inline"), u.variables.borderRadius, (0,
|
|
123
|
+
u.pick)({
|
|
124
124
|
enterprise: {
|
|
125
|
-
dark: (0,
|
|
126
|
-
light: (0,
|
|
125
|
+
dark: (0, b.css)([ "box-shadow:0 0 0 2px ", ";" ], u.variables.gray80),
|
|
126
|
+
light: (0, b.css)([ "box-shadow:0 0 0 2px ", ";" ], u.variables.gray25)
|
|
127
127
|
},
|
|
128
128
|
prisma: {
|
|
129
|
-
light: (0,
|
|
130
|
-
info: (0,
|
|
131
|
-
warning: (0,
|
|
132
|
-
error: (0,
|
|
133
|
-
success: (0,
|
|
129
|
+
light: (0, u.pickVariant)("$type", {
|
|
130
|
+
info: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black),
|
|
131
|
+
warning: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black),
|
|
132
|
+
error: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.white),
|
|
133
|
+
success: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.white)
|
|
134
134
|
}),
|
|
135
|
-
dark: (0,
|
|
135
|
+
dark: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black)
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
138
|
-
var W =
|
|
138
|
+
var W = g()(R()).withConfig({
|
|
139
139
|
displayName: "MessageBarStyles__MessageBarCloseWrapper",
|
|
140
140
|
componentId: "sc-1uyhzza-1"
|
|
141
|
-
})([ "", ";border:1px solid transparent;border-radius:", ";color:inherit;cursor:pointer;padding:", ";", " &:hover,&:focus{background:", ";border:", ";color:", ";}&:active{", ";}", "" ],
|
|
142
|
-
|
|
143
|
-
enterprise:
|
|
141
|
+
})([ "", ";border:1px solid transparent;border-radius:", ";color:inherit;cursor:pointer;padding:", ";", " &:hover,&:focus{background:", ";border:1px solid;border-color:", ";color:", ";}&:active{", ";}", "" ], u.mixins.reset("flex"), u.variables.borderRadius, (0,
|
|
142
|
+
u.pick)({
|
|
143
|
+
enterprise: u.variables.spacingXSmall,
|
|
144
144
|
prisma: "3px"
|
|
145
|
-
}), (0,
|
|
146
|
-
enterprise: (0,
|
|
147
|
-
}), (0,
|
|
148
|
-
prisma:
|
|
145
|
+
}), (0, u.pick)({
|
|
146
|
+
enterprise: (0, b.css)([ "margin-top:1px;" ])
|
|
147
|
+
}), (0, u.pick)({
|
|
148
|
+
prisma: u.variables.interactiveColorOverlayHover,
|
|
149
149
|
enterprise: {
|
|
150
|
-
dark:
|
|
151
|
-
light:
|
|
150
|
+
dark: u.variables.gray30,
|
|
151
|
+
light: u.variables.gray92
|
|
152
152
|
}
|
|
153
|
-
}), (0,
|
|
154
|
-
prisma:
|
|
155
|
-
enterprise:
|
|
156
|
-
}), (0,
|
|
153
|
+
}), (0, u.pick)({
|
|
154
|
+
prisma: "inherit",
|
|
155
|
+
enterprise: u.variables.gray80
|
|
156
|
+
}), (0, u.pick)({
|
|
157
157
|
enterprise: {
|
|
158
|
-
dark:
|
|
159
|
-
light:
|
|
158
|
+
dark: u.variables.gray96,
|
|
159
|
+
light: u.variables.linkColor
|
|
160
160
|
}
|
|
161
|
-
}), (0,
|
|
162
|
-
prisma: (0,
|
|
163
|
-
enterprise: (0,
|
|
164
|
-
}), (0,
|
|
165
|
-
prisma: (0,
|
|
166
|
-
|
|
167
|
-
light: (0,
|
|
168
|
-
info: (0,
|
|
169
|
-
warning: (0,
|
|
170
|
-
error: (0,
|
|
171
|
-
success: (0,
|
|
161
|
+
}), (0, u.pick)({
|
|
162
|
+
prisma: (0, b.css)([ "background:", ";" ], u.variables.interactiveColorOverlayActive),
|
|
163
|
+
enterprise: (0, b.css)([ "box-shadow:", ";" ], u.variables.focusShadow)
|
|
164
|
+
}), (0, u.pick)({
|
|
165
|
+
prisma: (0, b.css)([ "&:focus{border-radius:", ";", ";}" ], u.variables.borderRadius, (0,
|
|
166
|
+
u.pick)({
|
|
167
|
+
light: (0, u.pickVariant)("$type", {
|
|
168
|
+
info: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black),
|
|
169
|
+
warning: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black),
|
|
170
|
+
error: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.white),
|
|
171
|
+
success: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.white)
|
|
172
172
|
}),
|
|
173
|
-
dark: (0,
|
|
173
|
+
dark: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black)
|
|
174
174
|
}))
|
|
175
175
|
}));
|
|
176
|
-
var $ = (0,
|
|
177
|
-
var P =
|
|
176
|
+
var $ = (0, b.css)([ "margin-left:auto;" ]);
|
|
177
|
+
var P = g()(y()).withConfig({
|
|
178
178
|
displayName: "MessageBarStyles__StyledCheckCircleIcon",
|
|
179
179
|
componentId: "sc-1uyhzza-2"
|
|
180
180
|
})([ "", "" ], $);
|
|
181
|
-
var A =
|
|
181
|
+
var A = g()(f()).withConfig({
|
|
182
182
|
displayName: "MessageBarStyles__StyledExclamationCircleIcon",
|
|
183
183
|
componentId: "sc-1uyhzza-3"
|
|
184
184
|
})([ "", "" ], $);
|
|
185
|
-
var L =
|
|
185
|
+
var L = g()(k()).withConfig({
|
|
186
186
|
displayName: "MessageBarStyles__StyledInformationCircleIcon",
|
|
187
187
|
componentId: "sc-1uyhzza-4"
|
|
188
188
|
})([ "", "" ], $);
|
|
189
|
-
var V =
|
|
189
|
+
var V = g()(w()).withConfig({
|
|
190
190
|
displayName: "MessageBarStyles__StyledExclamationTriangleIcon",
|
|
191
191
|
componentId: "sc-1uyhzza-5"
|
|
192
192
|
})([ "", "" ], $);
|
|
193
|
-
var D =
|
|
193
|
+
var D = g()(_()).withConfig({
|
|
194
194
|
displayName: "MessageBarStyles__StyledEnterpriseErrorIcon",
|
|
195
195
|
componentId: "sc-1uyhzza-6"
|
|
196
|
-
})([ "", " color:", ";" ], $,
|
|
197
|
-
var H =
|
|
196
|
+
})([ "", " color:", ";" ], $, u.variables.errorColor);
|
|
197
|
+
var H = g()(z()).withConfig({
|
|
198
198
|
displayName: "MessageBarStyles__StyledEnterpriseInfoCircleIcon",
|
|
199
199
|
componentId: "sc-1uyhzza-7"
|
|
200
|
-
})([ "", " color:", ";" ], $,
|
|
201
|
-
var X =
|
|
200
|
+
})([ "", " color:", ";" ], $, u.variables.infoColor);
|
|
201
|
+
var X = g()(O()).withConfig({
|
|
202
202
|
displayName: "MessageBarStyles__StyledEnterpriseSuccessIcon",
|
|
203
203
|
componentId: "sc-1uyhzza-8"
|
|
204
|
-
})([ "", " color:", ";" ], $,
|
|
205
|
-
var F =
|
|
204
|
+
})([ "", " color:", ";" ], $, u.variables.successColor);
|
|
205
|
+
var F = g()(B()).withConfig({
|
|
206
206
|
displayName: "MessageBarStyles__StyledEnterpriseWarningIcon",
|
|
207
207
|
componentId: "sc-1uyhzza-9"
|
|
208
|
-
})([ "", " color:", ";" ], $,
|
|
209
|
-
var G =
|
|
208
|
+
})([ "", " color:", ";" ], $, u.variables.warningColor);
|
|
209
|
+
var G = g()(j()).withConfig({
|
|
210
210
|
displayName: "MessageBarStyles__MessageBarWrapper",
|
|
211
211
|
componentId: "sc-1uyhzza-10"
|
|
212
|
-
})([ "", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";", ";word-wrap:break-word;color:", ";", ";" ],
|
|
212
|
+
})([ "", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";", ";word-wrap:break-word;color:", ";", ";" ], u.mixins.reset("block"), u.variables.spacingSmall, (function(e) {
|
|
213
213
|
var r = e.$hasCloseButton;
|
|
214
|
-
return r ? (0,
|
|
215
|
-
prisma: (0,
|
|
216
|
-
enterprise: (0,
|
|
217
|
-
})) : (0,
|
|
218
|
-
prisma: (0,
|
|
219
|
-
enterprise: (0,
|
|
214
|
+
return r ? (0, b.css)([ "", "" ], (0, u.pick)({
|
|
215
|
+
prisma: (0, b.css)([ "padding:0 8px 0 32px;" ]),
|
|
216
|
+
enterprise: (0, b.css)([ "padding:0 8px 0 38px;" ])
|
|
217
|
+
})) : (0, b.css)([ "", "" ], (0, u.pick)({
|
|
218
|
+
prisma: (0, b.css)([ "padding:0 33px 0 32px;" ]),
|
|
219
|
+
enterprise: (0, b.css)([ "padding:0 26px 0 32px;" ])
|
|
220
220
|
}));
|
|
221
|
-
}), (0,
|
|
222
|
-
prisma: (0,
|
|
221
|
+
}), (0, u.pick)({
|
|
222
|
+
prisma: (0, u.pickVariant)("$type", {
|
|
223
223
|
info: {
|
|
224
|
-
light:
|
|
225
|
-
dark:
|
|
224
|
+
light: u.variables.contentColorActive,
|
|
225
|
+
dark: u.variables.contentColorInverted
|
|
226
226
|
},
|
|
227
|
-
success:
|
|
228
|
-
warning:
|
|
229
|
-
error:
|
|
227
|
+
success: u.variables.contentColorInverted,
|
|
228
|
+
warning: u.variables.black,
|
|
229
|
+
error: u.variables.contentColorInverted
|
|
230
230
|
}),
|
|
231
231
|
enterprise: {
|
|
232
|
-
dark:
|
|
233
|
-
light:
|
|
232
|
+
dark: u.variables.gray96,
|
|
233
|
+
light: u.variables.gray25
|
|
234
234
|
}
|
|
235
|
-
}), (0,
|
|
236
|
-
info: (0,
|
|
235
|
+
}), (0, u.pickVariant)("$type", {
|
|
236
|
+
info: (0, b.css)([ "background-color:", ";" ], (0, u.pick)({
|
|
237
237
|
prisma: {
|
|
238
|
-
dark:
|
|
239
|
-
light:
|
|
238
|
+
dark: u.variables.white,
|
|
239
|
+
light: u.variables.neutral200
|
|
240
240
|
},
|
|
241
241
|
enterprise: {
|
|
242
|
-
dark:
|
|
243
|
-
light:
|
|
242
|
+
dark: u.mixins.colorWithAlpha(u.variables.infoColor, .5),
|
|
243
|
+
light: u.variables.infoColorL50
|
|
244
244
|
}
|
|
245
245
|
})),
|
|
246
|
-
success: (0,
|
|
247
|
-
prisma:
|
|
246
|
+
success: (0, b.css)([ "background-color:", ";" ], (0, u.pick)({
|
|
247
|
+
prisma: u.variables.accentColorPositive,
|
|
248
248
|
enterprise: {
|
|
249
|
-
dark:
|
|
250
|
-
light:
|
|
249
|
+
dark: u.mixins.colorWithAlpha(u.variables.successColor, .5),
|
|
250
|
+
light: u.variables.successColorL50
|
|
251
251
|
}
|
|
252
252
|
})),
|
|
253
|
-
warning: (0,
|
|
254
|
-
prisma:
|
|
253
|
+
warning: (0, b.css)([ "background-color:", ";" ], (0, u.pick)({
|
|
254
|
+
prisma: u.variables.accentColorWarning,
|
|
255
255
|
enterprise: {
|
|
256
|
-
dark:
|
|
257
|
-
light:
|
|
256
|
+
dark: u.mixins.colorWithAlpha(u.variables.warningColor, .5),
|
|
257
|
+
light: u.variables.warningColorL50
|
|
258
258
|
}
|
|
259
259
|
})),
|
|
260
|
-
error: (0,
|
|
261
|
-
prisma:
|
|
260
|
+
error: (0, b.css)([ "background-color:", ";" ], (0, u.pick)({
|
|
261
|
+
prisma: u.variables.accentColorNegative,
|
|
262
262
|
enterprise: {
|
|
263
|
-
dark:
|
|
264
|
-
light:
|
|
263
|
+
dark: u.mixins.colorWithAlpha(u.variables.errorColor, .5),
|
|
264
|
+
light: u.variables.errorColorL50
|
|
265
265
|
}
|
|
266
266
|
}))
|
|
267
267
|
}));
|
|
@@ -334,14 +334,14 @@
|
|
|
334
334
|
function ae(e) {
|
|
335
335
|
var r = e.children, a = e.type, s = e.onRequestClose, n = K(e, [ "children", "type", "onRequestClose" ]);
|
|
336
336
|
// @docs-props-type MessageBarPropsBase
|
|
337
|
-
var
|
|
337
|
+
var o = (0, u.useSplunkTheme)(), c = o.isEnterprise;
|
|
338
338
|
var p = c && a === "error" ? "22px" : re;
|
|
339
|
-
var
|
|
340
|
-
var
|
|
339
|
+
var b = c && a === "warning" ? "21px" : re;
|
|
340
|
+
var g;
|
|
341
341
|
if (c) {
|
|
342
342
|
var h = Z[a];
|
|
343
|
-
|
|
344
|
-
height:
|
|
343
|
+
g = i().createElement(h, {
|
|
344
|
+
height: b,
|
|
345
345
|
width: p,
|
|
346
346
|
hideDefaultTooltip: true,
|
|
347
347
|
screenReaderText: null,
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
});
|
|
351
351
|
} else {
|
|
352
352
|
var y = ee[a];
|
|
353
|
-
|
|
353
|
+
g = i().createElement(y, {
|
|
354
354
|
height: re,
|
|
355
355
|
width: re,
|
|
356
356
|
variant: "filled",
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
}, n, {
|
|
367
367
|
role: "region",
|
|
368
368
|
$hasCloseButton: Boolean(s)
|
|
369
|
-
}),
|
|
369
|
+
}), g, i().createElement(d(), null, Y[a]), i().createElement(T, {
|
|
370
370
|
$type: a,
|
|
371
371
|
"data-test": "content"
|
|
372
372
|
}, r), s && i().createElement(W, {
|
|
@@ -377,13 +377,13 @@
|
|
|
377
377
|
hideDefaultTooltip: true,
|
|
378
378
|
screenReaderText: null,
|
|
379
379
|
width: "12px"
|
|
380
|
-
}) : i().createElement(
|
|
380
|
+
}) : i().createElement(t(), {
|
|
381
381
|
height: "19px",
|
|
382
382
|
style: {
|
|
383
383
|
margin: -.5
|
|
384
384
|
},
|
|
385
385
|
width: "19px"
|
|
386
|
-
}), i().createElement(
|
|
386
|
+
}), i().createElement(d(), null, (0, v._)("Close"))));
|
|
387
387
|
}
|
|
388
388
|
ae.propTypes = U;
|
|
389
389
|
/* harmony default export */ const ie = ae;
|
package/Modal.js
CHANGED
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
componentId: "yszcmv-0"
|
|
240
240
|
})([ "flex:0 0 auto;text-align:right;padding:", ";background-color:", ";& > button{min-width:80px;}" ], (0,
|
|
241
241
|
w.pick)({
|
|
242
|
-
enterprise: w.variables.
|
|
242
|
+
enterprise: w.variables.spacingLarge,
|
|
243
243
|
prisma: {
|
|
244
244
|
comfortable: "24px",
|
|
245
245
|
compact: "18px 24px"
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
componentId: "sc-5fn8ds-0"
|
|
517
517
|
})([ "", ";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:", ";", "" ], w.mixins.reset("flex"), w.variables.zindexModal, (0,
|
|
518
518
|
w.pick)({
|
|
519
|
-
enterprise: (0, g.css)([ "box-shadow:0 1px 5px ", ";max-height:calc(100vh - ", " * 4);max-width:calc(100vw - ", " * 4);" ], w.variables.black, w.variables.
|
|
519
|
+
enterprise: (0, g.css)([ "box-shadow:0 1px 5px ", ";max-height:calc(100vh - ", " * 4);max-width:calc(100vw - ", " * 4);" ], w.variables.black, w.variables.spacingLarge, w.variables.spacingLarge),
|
|
520
520
|
prisma: (0, g.css)([ "box-shadow:", ";max-height:calc(100vh - ", " * 4);max-width:calc(100vw - ", " * 4);border-radius:", ";overflow:hidden;" ], w.variables.modalShadow, w.variables.spacingXLarge, w.variables.spacingXLarge, w.variables.borderRadius)
|
|
521
521
|
}));
|
|
522
522
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
package/Multiselect.js
CHANGED
|
@@ -565,11 +565,11 @@
|
|
|
565
565
|
z(G, "defaultProps", U);
|
|
566
566
|
/* harmony default export */ const J = G;
|
|
567
567
|
// CONCATENATED MODULE: external "lodash/castArray"
|
|
568
|
-
const
|
|
569
|
-
var
|
|
568
|
+
const X = require("lodash/castArray");
|
|
569
|
+
var Y = e.n(X);
|
|
570
570
|
// CONCATENATED MODULE: external "lodash/find"
|
|
571
|
-
const
|
|
572
|
-
var Z = e.n(
|
|
571
|
+
const Q = require("lodash/find");
|
|
572
|
+
var Z = e.n(Q);
|
|
573
573
|
// CONCATENATED MODULE: external "lodash/forEachRight"
|
|
574
574
|
const ee = require("lodash/forEachRight");
|
|
575
575
|
var te = e.n(ee);
|
|
@@ -680,7 +680,10 @@
|
|
|
680
680
|
var Ge = Fe().span.withConfig({
|
|
681
681
|
displayName: "ItemStyles__StyledItemDescriptionRight",
|
|
682
682
|
componentId: "sc-4kc053-1"
|
|
683
|
-
})([ "", ";float:right;
|
|
683
|
+
})([ "", ";float:right;", " max-width:50%;text-align:right;box-sizing:border-box;" ], We, (0,
|
|
684
|
+
Ae.pick)({
|
|
685
|
+
enterprise: (0, Le.css)([ "padding-left:", ";" ], Ae.variables.spacingLarge)
|
|
686
|
+
}));
|
|
684
687
|
var Je = Fe().div.withConfig({
|
|
685
688
|
displayName: "ItemStyles__StyledItemSelectedIcon",
|
|
686
689
|
componentId: "sc-4kc053-2"
|
|
@@ -691,7 +694,7 @@
|
|
|
691
694
|
prisma: Ae.variables.contentColorActive,
|
|
692
695
|
enterprise: Ae.variables.accentColorL10
|
|
693
696
|
}));
|
|
694
|
-
var
|
|
697
|
+
var Xe = Fe().span.withConfig({
|
|
695
698
|
displayName: "ItemStyles__StyledItemIcon",
|
|
696
699
|
componentId: "sc-4kc053-3"
|
|
697
700
|
})([ "flex:0 0 auto;padding-right:", ";min-width:10px;display:inline-block;text-align:center;vertical-align:", ";", "" ], (0,
|
|
@@ -705,7 +708,7 @@
|
|
|
705
708
|
prisma: (0, Le.css)([ "color:", ";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}" ], Ae.variables.contentColorMuted),
|
|
706
709
|
enterprise: (0, Le.css)([ "transform:translateY(-1px);" ])
|
|
707
710
|
}));
|
|
708
|
-
var
|
|
711
|
+
var Ye = Fe()($e()).withConfig({
|
|
709
712
|
displayName: "ItemStyles__StyledClickable",
|
|
710
713
|
componentId: "sc-4kc053-4"
|
|
711
714
|
})([ "display:block;position:relative;cursor:pointer;color:", ";word-wrap:break-word;max-width:100%;width:100%;padding:", ";", " ", " ", " &:not([disabled]){&:hover{background:", ";", "}&:focus{outline:0;box-shadow:", ";", "}", " ", "}&[disabled]{color:", ";cursor:not-allowed;", ",", "{color:inherit;}", "{cursor:not-allowed;color:", ";}", "}", "" ], (0,
|
|
@@ -778,16 +781,16 @@
|
|
|
778
781
|
}), (0, Ae.pick)({
|
|
779
782
|
prisma: (0, Le.css)([ "& > * > ", "{color:", ";}" ],
|
|
780
783
|
/* sc-sel */
|
|
781
|
-
|
|
784
|
+
Xe, Ae.variables.contentColorDisabled)
|
|
782
785
|
}), (function(e) {
|
|
783
786
|
var t = e.$selected;
|
|
784
787
|
return t && (0, Ae.pick)({
|
|
785
788
|
prisma: (0, Le.css)([ "", "{color:", ";}" ],
|
|
786
789
|
/* sc-sel */
|
|
787
|
-
|
|
790
|
+
Xe, Ae.variables.contentColorActive)
|
|
788
791
|
});
|
|
789
792
|
}));
|
|
790
|
-
var
|
|
793
|
+
var Qe = Fe()(ze()).withConfig({
|
|
791
794
|
displayName: "ItemStyles__StyledSwitch",
|
|
792
795
|
componentId: "sc-4kc053-5"
|
|
793
796
|
})([ "position:absolute;left:", ";top:", ";" ], (0, Ae.pick)({
|
|
@@ -877,7 +880,7 @@
|
|
|
877
880
|
active: n,
|
|
878
881
|
ref: t,
|
|
879
882
|
tabIndex: -1
|
|
880
|
-
}, r().createElement(
|
|
883
|
+
}, r().createElement(Qe, {
|
|
881
884
|
interactive: false,
|
|
882
885
|
selected: c === "some" && "some" || c,
|
|
883
886
|
key: "main-checkbox",
|
|
@@ -944,10 +947,7 @@
|
|
|
944
947
|
var bt = Fe().span.withConfig({
|
|
945
948
|
displayName: "SelectBaseStyles__StyledCount",
|
|
946
949
|
componentId: "sc-16cj7sk-5"
|
|
947
|
-
})([ "padding-right:", ";" ],
|
|
948
|
-
enterprise: Ae.variables.spacingQuarter,
|
|
949
|
-
prisma: Ae.variables.spacingXSmall
|
|
950
|
-
}));
|
|
950
|
+
})([ "padding-right:", ";" ], Ae.variables.spacingXSmall);
|
|
951
951
|
var yt = Fe()(Se()).withConfig({
|
|
952
952
|
displayName: "SelectBaseStyles__StyledControlsLink",
|
|
953
953
|
componentId: "sc-16cj7sk-6"
|
|
@@ -1338,11 +1338,11 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
return e;
|
|
1340
1340
|
}
|
|
1341
|
-
var
|
|
1341
|
+
var Xt = {
|
|
1342
1342
|
allowKeyMatching: a().bool,
|
|
1343
1343
|
allowNewValues: a().bool,
|
|
1344
1344
|
animateLoading: a().bool,
|
|
1345
|
-
appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
|
|
1345
|
+
appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat", "subtle" ]),
|
|
1346
1346
|
append: a().bool,
|
|
1347
1347
|
children: a().node,
|
|
1348
1348
|
defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
|
|
@@ -1385,7 +1385,7 @@
|
|
|
1385
1385
|
/** @private. */
|
|
1386
1386
|
virtualization: a().number
|
|
1387
1387
|
};
|
|
1388
|
-
var
|
|
1388
|
+
var Yt = {
|
|
1389
1389
|
allowKeyMatching: true,
|
|
1390
1390
|
allowNewValues: false,
|
|
1391
1391
|
animateLoading: false,
|
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
tabConfirmsNewValue: false,
|
|
1407
1407
|
toggleContent: "optionChildren"
|
|
1408
1408
|
};
|
|
1409
|
-
var
|
|
1409
|
+
var Qt = ce()((function(e) {
|
|
1410
1410
|
return [ e ];
|
|
1411
1411
|
}));
|
|
1412
1412
|
// preserve separate widths for single vs. multi mode
|
|
@@ -1755,9 +1755,9 @@
|
|
|
1755
1755
|
if (k.length === 0 || !m && k.every((function(e) {
|
|
1756
1756
|
return e === "";
|
|
1757
1757
|
}))) {
|
|
1758
|
-
k =
|
|
1758
|
+
k = Qt(g);
|
|
1759
1759
|
// placeholder has a default value so will not be undefined
|
|
1760
|
-
I =
|
|
1760
|
+
I = Qt(g);
|
|
1761
1761
|
}
|
|
1762
1762
|
// If there's more than one item selected, read out the selected total
|
|
1763
1763
|
// rather than reading out each selected item
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
o = [ "".concat(t, ": ") ].concat(o);
|
|
2038
2038
|
}
|
|
2039
2039
|
if (r) {
|
|
2040
|
-
o =
|
|
2040
|
+
o = Y()(o).concat(" ".concat(r));
|
|
2041
2041
|
}
|
|
2042
2042
|
return o;
|
|
2043
2043
|
}));
|
|
@@ -2276,8 +2276,8 @@
|
|
|
2276
2276
|
} ]);
|
|
2277
2277
|
return o;
|
|
2278
2278
|
}(n.Component);
|
|
2279
|
-
Jt(rn, "propTypes",
|
|
2280
|
-
Jt(rn, "defaultProps",
|
|
2279
|
+
Jt(rn, "propTypes", Xt);
|
|
2280
|
+
Jt(rn, "defaultProps", Yt);
|
|
2281
2281
|
Jt(rn, "Option", M);
|
|
2282
2282
|
Jt(rn, "Divider", p.Divider);
|
|
2283
2283
|
Jt(rn, "Heading", p.Heading);
|
|
@@ -2612,10 +2612,7 @@
|
|
|
2612
2612
|
}), (function(e) {
|
|
2613
2613
|
var t = e.$popoverOpen;
|
|
2614
2614
|
return t && (0, Le.css)([ "position:relative;z-index:calc(", " - 2);" ], Ae.variables.zindexFixedNavbar);
|
|
2615
|
-
}),
|
|
2616
|
-
enterprise: Ae.variables.spacingHalf,
|
|
2617
|
-
prisma: Ae.variables.spacingSmall
|
|
2618
|
-
}));
|
|
2615
|
+
}), Ae.variables.spacingSmall);
|
|
2619
2616
|
var Un = Fe().span.withConfig({
|
|
2620
2617
|
displayName: "NormalStyles__StyledButtonsWrapper",
|
|
2621
2618
|
componentId: "sc-1uwwpco-1"
|
|
@@ -2626,7 +2623,7 @@
|
|
|
2626
2623
|
})([ "", ";flex:1 0 auto;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
|
|
2627
2624
|
Ae.pick)({
|
|
2628
2625
|
enterprise: {
|
|
2629
|
-
comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.
|
|
2626
|
+
comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.spacingXSmall),
|
|
2630
2627
|
compact: (0, Le.css)([ "padding:3px;" ])
|
|
2631
2628
|
},
|
|
2632
2629
|
prisma: {
|
|
@@ -2648,7 +2645,7 @@
|
|
|
2648
2645
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
2649
2646
|
* @param current - The new value of the ref.
|
|
2650
2647
|
*/
|
|
2651
|
-
function
|
|
2648
|
+
function Xn(e, t) {
|
|
2652
2649
|
if (e) {
|
|
2653
2650
|
if (typeof e === "function") {
|
|
2654
2651
|
e(t);
|
|
@@ -2661,20 +2658,20 @@
|
|
|
2661
2658
|
}
|
|
2662
2659
|
}
|
|
2663
2660
|
// CONCATENATED MODULE: ./src/Multiselect/Normal.tsx
|
|
2664
|
-
function
|
|
2661
|
+
function Yn(e) {
|
|
2665
2662
|
"@babel/helpers - typeof";
|
|
2666
2663
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2667
|
-
|
|
2664
|
+
Yn = function e(t) {
|
|
2668
2665
|
return typeof t;
|
|
2669
2666
|
};
|
|
2670
2667
|
} else {
|
|
2671
|
-
|
|
2668
|
+
Yn = function e(t) {
|
|
2672
2669
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2673
2670
|
};
|
|
2674
2671
|
}
|
|
2675
|
-
return
|
|
2672
|
+
return Yn(e);
|
|
2676
2673
|
}
|
|
2677
|
-
function
|
|
2674
|
+
function Qn(e) {
|
|
2678
2675
|
return nr(e) || tr(e) || er(e) || Zn();
|
|
2679
2676
|
}
|
|
2680
2677
|
function Zn() {
|
|
@@ -2823,7 +2820,7 @@
|
|
|
2823
2820
|
};
|
|
2824
2821
|
}
|
|
2825
2822
|
function hr(e, t) {
|
|
2826
|
-
if (t && (
|
|
2823
|
+
if (t && (Yn(t) === "object" || typeof t === "function")) {
|
|
2827
2824
|
return t;
|
|
2828
2825
|
}
|
|
2829
2826
|
return br(e);
|
|
@@ -3111,11 +3108,11 @@
|
|
|
3111
3108
|
a.setState({
|
|
3112
3109
|
el: e
|
|
3113
3110
|
});
|
|
3114
|
-
|
|
3111
|
+
Xn(a.props.elementRef, e);
|
|
3115
3112
|
}));
|
|
3116
3113
|
gr(br(a), "handleInputMount", (function(e) {
|
|
3117
3114
|
a.input = e;
|
|
3118
|
-
|
|
3115
|
+
Xn(a.props.inputRef, e);
|
|
3119
3116
|
}));
|
|
3120
3117
|
gr(br(a), "handleActiveOptionMount", (function(e) {
|
|
3121
3118
|
if (a.previousActiveIndex !== a.state.activeIndex) {
|
|
@@ -3398,7 +3395,7 @@
|
|
|
3398
3395
|
"data-test-values": JSON.stringify(I),
|
|
3399
3396
|
inline: b,
|
|
3400
3397
|
$hasfocus: this.state.hasFocus
|
|
3401
|
-
}, c().apply(void 0, [ C, "animateLoading", "controlledFilter", "defaultValues", "footerMessage", "inputRef", "isLoadingOptions", "labelledBy", "menuStyle", "noOptionsMessage", "onChange", "onFilterChange", "onScroll", "onScrollBottom", "onClose", "onOpen", "values", "useClickawayOverlay" ].concat(
|
|
3398
|
+
}, c().apply(void 0, [ C, "animateLoading", "controlledFilter", "defaultValues", "footerMessage", "inputRef", "isLoadingOptions", "labelledBy", "menuStyle", "noOptionsMessage", "onChange", "onFilterChange", "onScroll", "onScrollBottom", "onClose", "onOpen", "values", "useClickawayOverlay" ].concat(Qn(le()(x)))), {
|
|
3402
3399
|
onClick: v ? undefined : this.handleClick,
|
|
3403
3400
|
$disabled: v,
|
|
3404
3401
|
$error: h,
|
package/Paginator.js
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
}));
|
|
156
156
|
}), (0, v.pick)({
|
|
157
157
|
enterprise: {
|
|
158
|
-
comfortable: (0, x.css)([ "padding:", ";" ], v.variables.
|
|
158
|
+
comfortable: (0, x.css)([ "padding:", ";" ], v.variables.spacingXSmall),
|
|
159
159
|
compact: (0, x.css)([ "padding:3px;" ])
|
|
160
160
|
},
|
|
161
161
|
prisma: (0, x.css)([ "padding:", ";& + &{margin-left:8px;}" ], (0, v.pick)({
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
const $ = require("@splunk/react-ui/Select");
|
|
361
361
|
var A = e.n($);
|
|
362
362
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
363
|
-
const
|
|
364
|
-
var
|
|
363
|
+
const V = require("@splunk/react-ui/ScreenReaderContent");
|
|
364
|
+
var X = e.n(V);
|
|
365
365
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
366
366
|
const F = require("@splunk/ui-utils/id");
|
|
367
367
|
// CONCATENATED MODULE: ./src/Paginator/PageSelectStyles.ts
|
|
@@ -373,12 +373,12 @@
|
|
|
373
373
|
displayName: "PageSelectStyles__StyledCount",
|
|
374
374
|
componentId: "haycz4-1"
|
|
375
375
|
})([ "align-items:center;display:flex;flex-wrap:wrap;margin:0 ", ";" ], v.variables.spacingSmall);
|
|
376
|
-
var
|
|
376
|
+
var Q = P()(A()).withConfig({
|
|
377
377
|
displayName: "PageSelectStyles__StyledSelect",
|
|
378
378
|
componentId: "haycz4-2"
|
|
379
379
|
})([ "flex:0 0 auto;" ]);
|
|
380
380
|
// CONCATENATED MODULE: ./src/Paginator/PageSelect.tsx
|
|
381
|
-
function
|
|
381
|
+
function U(e, t) {
|
|
382
382
|
if (e == null) return {};
|
|
383
383
|
var r = Y(e, t);
|
|
384
384
|
var n, a;
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
totalPages: l().number
|
|
412
412
|
};
|
|
413
413
|
function ee(e) {
|
|
414
|
-
var t = e.onChange, a = e.current, l = a === void 0 ? 1 : a, i = e.totalPages, o =
|
|
414
|
+
var t = e.onChange, a = e.current, l = a === void 0 ? 1 : a, i = e.totalPages, o = U(e, [ "onChange", "current", "totalPages" ]);
|
|
415
415
|
// @docs-props-type PaginatorPageSelectPropsBase
|
|
416
416
|
var u = (0, r.useRef)((0, F.createDOMID)("pages"));
|
|
417
417
|
var p = (0, r.useRef)((0, F.createDOMID)("totalPages"));
|
|
@@ -431,11 +431,11 @@
|
|
|
431
431
|
}
|
|
432
432
|
var g = (0, c.sprintf)((0, s._)("of %d pages"), i);
|
|
433
433
|
|
|
434
|
-
return n().createElement(J, o, n().createElement(
|
|
434
|
+
return n().createElement(J, o, n().createElement(Q, {
|
|
435
435
|
value: l,
|
|
436
436
|
onChange: f,
|
|
437
437
|
"aria-labelledby": "".concat(u.current, " ").concat(p.current)
|
|
438
|
-
}, d), n().createElement(
|
|
438
|
+
}, d), n().createElement(X(), {
|
|
439
439
|
id: u.current,
|
|
440
440
|
"aria-hidden": true
|
|
441
441
|
}, l), n().createElement(K, {
|