@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/Monogram.js
CHANGED
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
default: () => /* reexport */
|
|
65
|
-
getInitials: () => /* reexport */
|
|
64
|
+
default: () => /* reexport */ N,
|
|
65
|
+
getInitials: () => /* reexport */ $
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const t = require("react");
|
|
69
69
|
var n = e.n(t);
|
|
70
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
71
|
const i = require("prop-types");
|
|
72
|
-
var
|
|
72
|
+
var o = e.n(i);
|
|
73
73
|
// CONCATENATED MODULE: external "lodash/omit"
|
|
74
|
-
const
|
|
75
|
-
var
|
|
74
|
+
const a = require("lodash/omit");
|
|
75
|
+
var c = e.n(a);
|
|
76
76
|
// CONCATENATED MODULE: external "styled-components"
|
|
77
|
-
const
|
|
78
|
-
var l = e.n(
|
|
77
|
+
const s = require("styled-components");
|
|
78
|
+
var l = e.n(s);
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
80
80
|
const u = require("@splunk/react-ui/Clickable");
|
|
81
81
|
var f = e.n(u);
|
|
@@ -91,13 +91,10 @@
|
|
|
91
91
|
}
|
|
92
92
|
return t;
|
|
93
93
|
};
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
displayName: "MonogramStyles__Styled",
|
|
97
|
-
componentId: "r5ud6k-0"
|
|
98
|
-
})([ "", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", ";& + &{margin-left:4px;}" ], p.mixins.reset("inline-flex"), (0,
|
|
94
|
+
var b = [ "#006d9c", "#ec9960", "#af575a", "#62b3b2", "#4fa484", "#f8be34", "#5a4575", "#708794", "#294e70", "#b6c75a", "#5cc05c", "#007abd", "#dc4e41", "#f1813f", "#f8be34", "#53a051", "#006d9c", "#77d6d8", "#f589ad", "#6a2c5d" ];
|
|
95
|
+
var m = (0, s.css)([ "", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", ";& + &{margin-left:4px;}" ], p.mixins.reset("inline-flex"), (0,
|
|
99
96
|
p.pick)({
|
|
100
|
-
prisma: (0,
|
|
97
|
+
prisma: (0, s.css)([ "color:", ";" ], p.variables.contentColorActive)
|
|
101
98
|
}), (function(e) {
|
|
102
99
|
var r = e.$backgroundColor, t = e.$initials;
|
|
103
100
|
if (r === "theme") {
|
|
@@ -110,49 +107,97 @@
|
|
|
110
107
|
});
|
|
111
108
|
}
|
|
112
109
|
if (r === "auto") {
|
|
113
|
-
return
|
|
110
|
+
return b[d(t) % b.length];
|
|
114
111
|
}
|
|
115
112
|
return r;
|
|
116
113
|
}), (function(e) {
|
|
117
114
|
var r = e.$size;
|
|
118
115
|
if (typeof r === "number") {
|
|
119
|
-
return (0,
|
|
116
|
+
return (0, s.css)([ "height:", "px;width:", "px;" ], r, r);
|
|
120
117
|
}
|
|
121
118
|
if (typeof r === "string") {
|
|
122
119
|
return (0, p.pickVariant)("$size", {
|
|
123
|
-
small: (0,
|
|
124
|
-
enterprise: (0,
|
|
125
|
-
prisma: (0,
|
|
120
|
+
small: (0, s.css)([ "font-size:", ";", "" ], p.variables.fontSize, (0, p.pick)({
|
|
121
|
+
enterprise: (0, s.css)([ "height:32px;width:32px;" ]),
|
|
122
|
+
prisma: (0, s.css)([ "height:24px;width:24px;" ])
|
|
126
123
|
})),
|
|
127
|
-
medium: (0,
|
|
128
|
-
large: (0,
|
|
129
|
-
xlarge: (0,
|
|
124
|
+
medium: (0, s.css)([ "height:48px;width:48px;font-size:", ";" ], p.variables.fontSize),
|
|
125
|
+
large: (0, s.css)([ "height:80px;width:80px;font-size:", ";" ], p.variables.fontSizeXXLarge),
|
|
126
|
+
xlarge: (0, s.css)([ "width:144px;height:144px;font-size:36px;font-weight:700;" ])
|
|
130
127
|
});
|
|
131
128
|
}
|
|
132
|
-
return (0,
|
|
129
|
+
return (0, s.css)([ "height:48px;width:48px;font-size:", ";" ], p.variables.fontSize);
|
|
133
130
|
}));
|
|
134
|
-
var v =
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
var v = l().div.withConfig({
|
|
132
|
+
displayName: "MonogramStyles__Styled",
|
|
133
|
+
componentId: "r5ud6k-0"
|
|
134
|
+
})([ "", "" ], m);
|
|
135
|
+
var y = l()(f()).withConfig({
|
|
136
|
+
displayName: "MonogramStyles__StyledClickableComponent",
|
|
137
137
|
componentId: "r5ud6k-1"
|
|
138
|
+
})([ "", "" ], m);
|
|
139
|
+
var g = l()(y).withConfig({
|
|
140
|
+
displayName: "MonogramStyles__StyledClickable",
|
|
141
|
+
componentId: "r5ud6k-2"
|
|
138
142
|
})([ "cursor:pointer;position:relative;:focus,:hover{", "}:focus{box-shadow:", ";z-index:1;}:active{", "}" ], (0,
|
|
139
143
|
p.pick)({
|
|
140
|
-
enterprise: (0,
|
|
141
|
-
prisma: (0,
|
|
144
|
+
enterprise: (0, s.css)([ "box-shadow:", ";" ], p.variables.focusShadowInset),
|
|
145
|
+
prisma: (0, s.css)([ "border:1px solid transparent;background-color:", ";" ], p.variables.neutral200)
|
|
142
146
|
}), (0, p.pick)({
|
|
143
147
|
enterprise: p.variables.focusShadowInset,
|
|
144
148
|
prisma: p.variables.focusShadow
|
|
145
149
|
}), (0, p.pick)({
|
|
146
|
-
enterprise: (0,
|
|
147
|
-
prisma: (0,
|
|
150
|
+
enterprise: (0, s.css)([ "opacity:0.85;" ]),
|
|
151
|
+
prisma: (0, s.css)([ "border:1px solid transparent;background-color:", ";opacity:1;" ], p.variables.neutral200)
|
|
148
152
|
}));
|
|
149
|
-
var
|
|
153
|
+
var h = l().span.withConfig({
|
|
150
154
|
displayName: "MonogramStyles__Initials",
|
|
151
|
-
componentId: "r5ud6k-
|
|
155
|
+
componentId: "r5ud6k-3"
|
|
152
156
|
})([ "opacity:0.8;text-transform:capitalize;" ]);
|
|
153
157
|
// CONCATENATED MODULE: ./src/Monogram/Monogram.tsx
|
|
154
|
-
function
|
|
155
|
-
|
|
158
|
+
function O(e, r) {
|
|
159
|
+
var t = Object.keys(e);
|
|
160
|
+
if (Object.getOwnPropertySymbols) {
|
|
161
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
162
|
+
if (r) n = n.filter((function(r) {
|
|
163
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
164
|
+
}));
|
|
165
|
+
t.push.apply(t, n);
|
|
166
|
+
}
|
|
167
|
+
return t;
|
|
168
|
+
}
|
|
169
|
+
function k(e) {
|
|
170
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
171
|
+
var t = arguments[r] != null ? arguments[r] : {};
|
|
172
|
+
if (r % 2) {
|
|
173
|
+
O(Object(t), true).forEach((function(r) {
|
|
174
|
+
w(e, r, t[r]);
|
|
175
|
+
}));
|
|
176
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
177
|
+
Object.defineProperties(e, Object.getOwnPropertyDescriptors(t));
|
|
178
|
+
} else {
|
|
179
|
+
O(Object(t)).forEach((function(r) {
|
|
180
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return e;
|
|
185
|
+
}
|
|
186
|
+
function w(e, r, t) {
|
|
187
|
+
if (r in e) {
|
|
188
|
+
Object.defineProperty(e, r, {
|
|
189
|
+
value: t,
|
|
190
|
+
enumerable: true,
|
|
191
|
+
configurable: true,
|
|
192
|
+
writable: true
|
|
193
|
+
});
|
|
194
|
+
} else {
|
|
195
|
+
e[r] = t;
|
|
196
|
+
}
|
|
197
|
+
return e;
|
|
198
|
+
}
|
|
199
|
+
function j() {
|
|
200
|
+
j = Object.assign || function(e) {
|
|
156
201
|
for (var r = 1; r < arguments.length; r++) {
|
|
157
202
|
var t = arguments[r];
|
|
158
203
|
for (var n in t) {
|
|
@@ -163,63 +208,63 @@
|
|
|
163
208
|
}
|
|
164
209
|
return e;
|
|
165
210
|
};
|
|
166
|
-
return
|
|
211
|
+
return j.apply(this, arguments);
|
|
167
212
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
213
|
+
function x(e, r) {
|
|
214
|
+
return I(e) || P(e, r) || C(e, r) || S();
|
|
170
215
|
}
|
|
171
|
-
function
|
|
216
|
+
function S() {
|
|
172
217
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
173
218
|
}
|
|
174
|
-
function
|
|
219
|
+
function C(e, r) {
|
|
175
220
|
if (!e) return;
|
|
176
|
-
if (typeof e === "string") return
|
|
221
|
+
if (typeof e === "string") return z(e, r);
|
|
177
222
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
178
223
|
if (t === "Object" && e.constructor) t = e.constructor.name;
|
|
179
224
|
if (t === "Map" || t === "Set") return Array.from(e);
|
|
180
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
225
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return z(e, r);
|
|
181
226
|
}
|
|
182
|
-
function
|
|
227
|
+
function z(e, r) {
|
|
183
228
|
if (r == null || r > e.length) r = e.length;
|
|
184
229
|
for (var t = 0, n = new Array(r); t < r; t++) {
|
|
185
230
|
n[t] = e[t];
|
|
186
231
|
}
|
|
187
232
|
return n;
|
|
188
233
|
}
|
|
189
|
-
function
|
|
234
|
+
function P(e, r) {
|
|
190
235
|
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(e))) return;
|
|
191
236
|
var t = [];
|
|
192
237
|
var n = true;
|
|
193
238
|
var i = false;
|
|
194
|
-
var
|
|
239
|
+
var o = undefined;
|
|
195
240
|
try {
|
|
196
|
-
for (var
|
|
197
|
-
t.push(
|
|
241
|
+
for (var a = e[Symbol.iterator](), c; !(n = (c = a.next()).done); n = true) {
|
|
242
|
+
t.push(c.value);
|
|
198
243
|
if (r && t.length === r) break;
|
|
199
244
|
}
|
|
200
245
|
} catch (e) {
|
|
201
246
|
i = true;
|
|
202
|
-
|
|
247
|
+
o = e;
|
|
203
248
|
} finally {
|
|
204
249
|
try {
|
|
205
|
-
if (!n &&
|
|
250
|
+
if (!n && a["return"] != null) a["return"]();
|
|
206
251
|
} finally {
|
|
207
|
-
if (i) throw
|
|
252
|
+
if (i) throw o;
|
|
208
253
|
}
|
|
209
254
|
}
|
|
210
255
|
return t;
|
|
211
256
|
}
|
|
212
|
-
function
|
|
257
|
+
function I(e) {
|
|
213
258
|
if (Array.isArray(e)) return e;
|
|
214
259
|
}
|
|
215
|
-
function
|
|
260
|
+
function _(e, r) {
|
|
216
261
|
if (e == null) return {};
|
|
217
|
-
var t =
|
|
262
|
+
var t = E(e, r);
|
|
218
263
|
var n, i;
|
|
219
264
|
if (Object.getOwnPropertySymbols) {
|
|
220
|
-
var
|
|
221
|
-
for (i = 0; i <
|
|
222
|
-
n =
|
|
265
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
266
|
+
for (i = 0; i < o.length; i++) {
|
|
267
|
+
n = o[i];
|
|
223
268
|
if (r.indexOf(n) >= 0) continue;
|
|
224
269
|
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
225
270
|
t[n] = e[n];
|
|
@@ -227,31 +272,27 @@
|
|
|
227
272
|
}
|
|
228
273
|
return t;
|
|
229
274
|
}
|
|
230
|
-
function
|
|
275
|
+
function E(e, r) {
|
|
231
276
|
if (e == null) return {};
|
|
232
277
|
var t = {};
|
|
233
278
|
var n = Object.keys(e);
|
|
234
|
-
var i,
|
|
235
|
-
for (
|
|
236
|
-
i = n[
|
|
279
|
+
var i, o;
|
|
280
|
+
for (o = 0; o < n.length; o++) {
|
|
281
|
+
i = n[o];
|
|
237
282
|
if (r.indexOf(i) >= 0) continue;
|
|
238
283
|
t[i] = e[i];
|
|
239
284
|
}
|
|
240
285
|
return t;
|
|
241
286
|
}
|
|
242
|
-
var
|
|
243
|
-
backgroundColor:
|
|
244
|
-
elementRef:
|
|
245
|
-
initials:
|
|
246
|
-
name:
|
|
247
|
-
onClick:
|
|
248
|
-
size:
|
|
249
|
-
};
|
|
250
|
-
var _ = {
|
|
251
|
-
backgroundColor: "theme",
|
|
252
|
-
size: "medium"
|
|
287
|
+
var A = {
|
|
288
|
+
backgroundColor: o().string,
|
|
289
|
+
elementRef: o().oneOfType([ o().func, o().object ]),
|
|
290
|
+
initials: o().string.isRequired,
|
|
291
|
+
name: o().string,
|
|
292
|
+
onClick: o().func,
|
|
293
|
+
size: o().oneOfType([ o().oneOf([ "small", "medium", "large", "xlarge" ]), o().number ])
|
|
253
294
|
};
|
|
254
|
-
function
|
|
295
|
+
function M(e) {
|
|
255
296
|
return !!e.onClick;
|
|
256
297
|
}
|
|
257
298
|
/**
|
|
@@ -260,55 +301,60 @@
|
|
|
260
301
|
* @param {string} name - The full name.
|
|
261
302
|
* @returns {string} Limited to three characters. Empty if `name` is empty.
|
|
262
303
|
* @public
|
|
263
|
-
*/ function
|
|
304
|
+
*/ function $(e) {
|
|
264
305
|
var r = (e.match(/[^\s-]+/g) || []).map((function(e) {
|
|
265
306
|
return e[0];
|
|
266
307
|
})).join("");
|
|
267
308
|
return r.length > 3 ? "".concat(r[0]).concat(r[r.length - 1]) : r;
|
|
268
309
|
}
|
|
269
|
-
function
|
|
270
|
-
var r = e.backgroundColor, t = e.initials, n = e.size, i =
|
|
271
|
-
var
|
|
310
|
+
function q(e) {
|
|
311
|
+
var r = e.backgroundColor, t = e.initials, n = e.size, i = _(e, [ "backgroundColor", "initials", "size" ]);
|
|
312
|
+
var o = {
|
|
272
313
|
"data-test": "monogram",
|
|
273
314
|
$backgroundColor: r,
|
|
274
315
|
$initials: t,
|
|
275
316
|
$size: n
|
|
276
317
|
};
|
|
277
|
-
return [
|
|
318
|
+
return [ o, i ];
|
|
278
319
|
}
|
|
279
|
-
function
|
|
280
|
-
var r =
|
|
281
|
-
var
|
|
320
|
+
function R(e) {
|
|
321
|
+
var r = q(e), i = x(r, 2), o = i[0], a = i[1];
|
|
322
|
+
var s = a.children, l = a.elementRef, u = a.name, f = a.onClick, p = _(a, [ "children", "elementRef", "name", "onClick" ]);
|
|
282
323
|
var d = (0, t.useCallback)((function(e) {
|
|
283
324
|
f(e, {
|
|
284
325
|
name: u
|
|
285
326
|
});
|
|
286
327
|
}), [ f, u ]);
|
|
287
328
|
|
|
288
|
-
return n().createElement(
|
|
329
|
+
return n().createElement(g, j({
|
|
289
330
|
elementRef: l,
|
|
290
331
|
onClick: d
|
|
291
|
-
},
|
|
332
|
+
}, o, c()(p, Object.keys(A))), s);
|
|
292
333
|
}
|
|
293
|
-
function
|
|
294
|
-
var r =
|
|
295
|
-
var
|
|
334
|
+
function T(e) {
|
|
335
|
+
var r = q(e), t = x(r, 2), i = t[0], o = t[1];
|
|
336
|
+
var a = o.children, s = o.elementRef, l = _(o, [ "children", "elementRef" ]);
|
|
296
337
|
|
|
297
|
-
return n().createElement(
|
|
298
|
-
ref:
|
|
299
|
-
}, i,
|
|
338
|
+
return n().createElement(v, j({
|
|
339
|
+
ref: s
|
|
340
|
+
}, i, c()(l, Object.keys(A))), a);
|
|
300
341
|
}
|
|
301
|
-
function
|
|
342
|
+
function D(e) {
|
|
343
|
+
var r = e.backgroundColor, t = r === void 0 ? "theme" : r, i = e.initials, o = e.size, a = o === void 0 ? "medium" : o, c = _(e, [ "backgroundColor", "initials", "size" ]);
|
|
302
344
|
// @docs-props-type MonogramPropsBase
|
|
303
|
-
|
|
304
|
-
var
|
|
345
|
+
if (false) {}
|
|
346
|
+
var s = n().createElement(h, {
|
|
305
347
|
"data-test": "initials"
|
|
306
|
-
},
|
|
307
|
-
|
|
348
|
+
}, i);
|
|
349
|
+
var l = k({
|
|
350
|
+
backgroundColor: t,
|
|
351
|
+
size: a,
|
|
352
|
+
initials: i
|
|
353
|
+
}, c);
|
|
354
|
+
return M(l) ? n().createElement(R, l, s) : n().createElement(T, l, s);
|
|
308
355
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/* harmony default export */ const R = M;
|
|
356
|
+
D.propTypes = A;
|
|
357
|
+
/* harmony default export */ const N = D;
|
|
312
358
|
// CONCATENATED MODULE: ./src/Monogram/index.ts
|
|
313
359
|
module.exports = r;
|
|
314
360
|
/******/})();
|
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,10 +708,10 @@
|
|
|
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
|
-
})([ "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:", ";", "}
|
|
714
|
+
})([ "display:block;position:relative;cursor:pointer;color:", ";word-wrap:break-word;max-width:100%;width:100%;padding:", ";", " ", " ", " &:not([disabled],[aria-disabled='true']){&:hover{background:", ";", "}", " ", "}&:focus{outline:0;box-shadow:", ";", "}&[disabled],&[aria-disabled='true']{color:", ";cursor:not-allowed;", ",", "{color:inherit;}", "{cursor:not-allowed;color:", ";}", "}", "" ], (0,
|
|
712
715
|
Ae.pick)({
|
|
713
716
|
prisma: Ae.variables.contentColorActive,
|
|
714
717
|
enterprise: {
|
|
@@ -751,8 +754,6 @@
|
|
|
751
754
|
return t && (0, Ae.pick)({
|
|
752
755
|
prisma: (0, Le.css)([ "background:", ";" ], Ae.mixins.overlayColors(Ae.variables.interactiveColorOverlaySelected, Ae.variables.interactiveColorOverlayHover))
|
|
753
756
|
});
|
|
754
|
-
}), Ae.variables.focusShadowInset, (0, Ae.pick)({
|
|
755
|
-
prisma: (0, Le.css)([ "background:", ";" ], Ae.variables.interactiveColorOverlayHover)
|
|
756
757
|
}), (0, Ae.pick)({
|
|
757
758
|
prisma: (0, Le.css)([ "&:active{background:", ";}" ], Ae.variables.interactiveColorOverlayActive)
|
|
758
759
|
}), (function(e) {
|
|
@@ -760,6 +761,8 @@
|
|
|
760
761
|
return t && (0, Ae.pick)({
|
|
761
762
|
prisma: (0, Le.css)([ "background:", ";&:active{background:", ";}" ], Ae.variables.interactiveColorOverlaySelected, Ae.mixins.overlayColors(Ae.variables.interactiveColorOverlaySelected, Ae.variables.interactiveColorOverlayActive))
|
|
762
763
|
});
|
|
764
|
+
}), Ae.variables.focusShadowInset, (0, Ae.pick)({
|
|
765
|
+
prisma: (0, Le.css)([ "background:", ";" ], Ae.variables.interactiveColorOverlayHover)
|
|
763
766
|
}), (0, Ae.pick)({
|
|
764
767
|
enterprise: {
|
|
765
768
|
light: Ae.variables.gray45,
|
|
@@ -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
|
}));
|
|
@@ -2236,13 +2236,12 @@
|
|
|
2236
2236
|
placement: i,
|
|
2237
2237
|
hasChildren: !!b.length
|
|
2238
2238
|
}),
|
|
2239
|
-
|
|
2240
|
-
placement: i !== null && i !== void 0 ? i : undefined,
|
|
2241
|
-
onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
|
|
2242
|
-
"data-test": "results-menu",
|
|
2243
|
-
isLoading: o.props.isLoadingOptions,
|
|
2239
|
+
focusMode: o.hasFilter() ? "never" : undefined,
|
|
2244
2240
|
id: o.menuId,
|
|
2245
|
-
|
|
2241
|
+
isLoading: o.props.isLoadingOptions,
|
|
2242
|
+
menuId: o.menuListboxId,
|
|
2243
|
+
onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
|
|
2244
|
+
placement: i !== null && i !== void 0 ? i : undefined
|
|
2246
2245
|
}, pe()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), {}, {
|
|
2247
2246
|
style: l,
|
|
2248
2247
|
tabIndex: s
|
|
@@ -2276,8 +2275,8 @@
|
|
|
2276
2275
|
} ]);
|
|
2277
2276
|
return o;
|
|
2278
2277
|
}(n.Component);
|
|
2279
|
-
Jt(rn, "propTypes",
|
|
2280
|
-
Jt(rn, "defaultProps",
|
|
2278
|
+
Jt(rn, "propTypes", Xt);
|
|
2279
|
+
Jt(rn, "defaultProps", Yt);
|
|
2281
2280
|
Jt(rn, "Option", M);
|
|
2282
2281
|
Jt(rn, "Divider", p.Divider);
|
|
2283
2282
|
Jt(rn, "Heading", p.Heading);
|
|
@@ -2612,10 +2611,7 @@
|
|
|
2612
2611
|
}), (function(e) {
|
|
2613
2612
|
var t = e.$popoverOpen;
|
|
2614
2613
|
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
|
-
}));
|
|
2614
|
+
}), Ae.variables.spacingSmall);
|
|
2619
2615
|
var Un = Fe().span.withConfig({
|
|
2620
2616
|
displayName: "NormalStyles__StyledButtonsWrapper",
|
|
2621
2617
|
componentId: "sc-1uwwpco-1"
|
|
@@ -2626,7 +2622,7 @@
|
|
|
2626
2622
|
})([ "", ";flex:1 0 auto;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
|
|
2627
2623
|
Ae.pick)({
|
|
2628
2624
|
enterprise: {
|
|
2629
|
-
comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.
|
|
2625
|
+
comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.spacingXSmall),
|
|
2630
2626
|
compact: (0, Le.css)([ "padding:3px;" ])
|
|
2631
2627
|
},
|
|
2632
2628
|
prisma: {
|
|
@@ -2648,7 +2644,7 @@
|
|
|
2648
2644
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
2649
2645
|
* @param current - The new value of the ref.
|
|
2650
2646
|
*/
|
|
2651
|
-
function
|
|
2647
|
+
function Xn(e, t) {
|
|
2652
2648
|
if (e) {
|
|
2653
2649
|
if (typeof e === "function") {
|
|
2654
2650
|
e(t);
|
|
@@ -2661,20 +2657,20 @@
|
|
|
2661
2657
|
}
|
|
2662
2658
|
}
|
|
2663
2659
|
// CONCATENATED MODULE: ./src/Multiselect/Normal.tsx
|
|
2664
|
-
function
|
|
2660
|
+
function Yn(e) {
|
|
2665
2661
|
"@babel/helpers - typeof";
|
|
2666
2662
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2667
|
-
|
|
2663
|
+
Yn = function e(t) {
|
|
2668
2664
|
return typeof t;
|
|
2669
2665
|
};
|
|
2670
2666
|
} else {
|
|
2671
|
-
|
|
2667
|
+
Yn = function e(t) {
|
|
2672
2668
|
return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2673
2669
|
};
|
|
2674
2670
|
}
|
|
2675
|
-
return
|
|
2671
|
+
return Yn(e);
|
|
2676
2672
|
}
|
|
2677
|
-
function
|
|
2673
|
+
function Qn(e) {
|
|
2678
2674
|
return nr(e) || tr(e) || er(e) || Zn();
|
|
2679
2675
|
}
|
|
2680
2676
|
function Zn() {
|
|
@@ -2823,7 +2819,7 @@
|
|
|
2823
2819
|
};
|
|
2824
2820
|
}
|
|
2825
2821
|
function hr(e, t) {
|
|
2826
|
-
if (t && (
|
|
2822
|
+
if (t && (Yn(t) === "object" || typeof t === "function")) {
|
|
2827
2823
|
return t;
|
|
2828
2824
|
}
|
|
2829
2825
|
return br(e);
|
|
@@ -3111,11 +3107,11 @@
|
|
|
3111
3107
|
a.setState({
|
|
3112
3108
|
el: e
|
|
3113
3109
|
});
|
|
3114
|
-
|
|
3110
|
+
Xn(a.props.elementRef, e);
|
|
3115
3111
|
}));
|
|
3116
3112
|
gr(br(a), "handleInputMount", (function(e) {
|
|
3117
3113
|
a.input = e;
|
|
3118
|
-
|
|
3114
|
+
Xn(a.props.inputRef, e);
|
|
3119
3115
|
}));
|
|
3120
3116
|
gr(br(a), "handleActiveOptionMount", (function(e) {
|
|
3121
3117
|
if (a.previousActiveIndex !== a.state.activeIndex) {
|
|
@@ -3131,7 +3127,7 @@
|
|
|
3131
3127
|
});
|
|
3132
3128
|
|
|
3133
3129
|
return r().createElement(xe(), sr({
|
|
3134
|
-
|
|
3130
|
+
focusMode: "never",
|
|
3135
3131
|
placement: o !== null && o !== void 0 ? o : undefined,
|
|
3136
3132
|
isLoading: a.props.isLoadingOptions,
|
|
3137
3133
|
onScrollBottom: a.props.onScrollBottom ? a.handleScrollBottom : undefined
|
|
@@ -3398,7 +3394,7 @@
|
|
|
3398
3394
|
"data-test-values": JSON.stringify(I),
|
|
3399
3395
|
inline: b,
|
|
3400
3396
|
$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(
|
|
3397
|
+
}, 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
3398
|
onClick: v ? undefined : this.handleClick,
|
|
3403
3399
|
$disabled: v,
|
|
3404
3400
|
$error: h,
|