@splunk/react-ui 4.34.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 +1 -1
- package/CHANGELOG.md +26 -2
- package/Card.js +86 -82
- package/Chip.js +73 -76
- package/CollapsiblePanel.js +1 -1
- package/Color.js +23 -15
- package/ComboBox.js +3 -2
- package/Concertina.js +136 -135
- package/ControlGroup.js +27 -23
- package/JSONTree.js +66 -64
- package/List.js +9 -13
- package/MIGRATION.mdx +24 -0
- package/Menu.js +352 -345
- package/Message.js +16 -19
- package/Monogram.js +140 -94
- package/Multiselect.js +9 -10
- package/ResultsMenu.js +124 -126
- package/Search.js +182 -181
- package/Select.js +55 -56
- package/StepBar.js +91 -87
- package/Switch.js +105 -97
- package/Table.js +686 -687
- package/Text.js +78 -58
- package/package.json +6 -6
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/types/src/Breadcrumbs/Item.d.ts +0 -1
- package/types/src/Card/Header.d.ts +0 -2
- package/types/src/Chip/Chip.d.ts +2 -4
- 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 +7 -5
- package/types/src/Menu/Menu.d.ts +13 -16
- 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/ResultsMenu/ResultsMenu.d.ts +11 -9
- 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/Table/DragHandle.d.ts +1 -2
- package/types/src/Text/Text.d.ts +2 -0
package/Chip.js
CHANGED
|
@@ -96,10 +96,7 @@
|
|
|
96
96
|
const y = require("@splunk/react-ui/Clickable");
|
|
97
97
|
var x = e.n(y);
|
|
98
98
|
// CONCATENATED MODULE: ./src/Chip/ChipStyles.ts
|
|
99
|
-
var $ =
|
|
100
|
-
displayName: "ChipStyles__StyledBasic",
|
|
101
|
-
componentId: "sc-1sd3tsh-0"
|
|
102
|
-
})([ "", ";background-color:", ";border:1px solid transparent;flex:0 1 auto;max-width:calc(100% - 3px);border-radius:2px;", " ", " ", "" ], b.mixins.reset("inline-flex"), (0,
|
|
99
|
+
var $ = (0, h.css)([ "", ";background-color:", ";border:1px solid transparent;flex:0 1 auto;max-width:calc(100% - 3px);border-radius:2px;", " ", " ", "" ], b.mixins.reset("inline-flex"), (0,
|
|
103
100
|
b.pickVariant)("$appearance", {
|
|
104
101
|
default: {
|
|
105
102
|
enterprise: {
|
|
@@ -181,11 +178,15 @@
|
|
|
181
178
|
}
|
|
182
179
|
}));
|
|
183
180
|
}));
|
|
184
|
-
var k = C()
|
|
181
|
+
var k = C().div.withConfig({
|
|
182
|
+
displayName: "ChipStyles__StyledBasic",
|
|
183
|
+
componentId: "sc-1sd3tsh-0"
|
|
184
|
+
})([ "", "" ], $);
|
|
185
|
+
var S = C()(k).withConfig({
|
|
185
186
|
displayName: "ChipStyles__Styled",
|
|
186
187
|
componentId: "sc-1sd3tsh-1"
|
|
187
188
|
})([ "align-items:center;" ]);
|
|
188
|
-
var
|
|
189
|
+
var w = C().div.withConfig({
|
|
189
190
|
displayName: "ChipStyles__StyledInner",
|
|
190
191
|
componentId: "sc-1sd3tsh-2"
|
|
191
192
|
})([ "", ";" ], (0, b.pick)({
|
|
@@ -209,7 +210,7 @@
|
|
|
209
210
|
return o;
|
|
210
211
|
}))
|
|
211
212
|
}));
|
|
212
|
-
var
|
|
213
|
+
var O = C().div.withConfig({
|
|
213
214
|
displayName: "ChipStyles__StyledIcon",
|
|
214
215
|
componentId: "sc-1sd3tsh-3"
|
|
215
216
|
})([ "", ";margin-right:", ";color:", ";" ], (0, b.pick)({
|
|
@@ -233,7 +234,7 @@
|
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
}));
|
|
236
|
-
var
|
|
237
|
+
var R = C().div.withConfig({
|
|
237
238
|
displayName: "ChipStyles__StyledLabel",
|
|
238
239
|
componentId: "sc-1sd3tsh-4"
|
|
239
240
|
})([ "", " ", ";color:", ";" ], b.mixins.ellipsis(), (0, b.pick)({
|
|
@@ -251,7 +252,7 @@
|
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
}));
|
|
254
|
-
var
|
|
255
|
+
var _ = C().span.withConfig({
|
|
255
256
|
displayName: "ChipStyles__StyledRemove",
|
|
256
257
|
componentId: "sc-1sd3tsh-5"
|
|
257
258
|
})([ "", ";" ], (0, b.pick)({
|
|
@@ -273,15 +274,15 @@
|
|
|
273
274
|
return r ? b.variables.contentColorDisabled : a || "inherit";
|
|
274
275
|
}))
|
|
275
276
|
}));
|
|
276
|
-
var
|
|
277
|
+
var j = C()(x()).withConfig({
|
|
277
278
|
displayName: "ChipStyles__StyledClickable",
|
|
278
279
|
componentId: "sc-1sd3tsh-6"
|
|
279
|
-
})([ "flex:0 1 auto;line-height:16px;cursor:pointer;&:focus{", ";}&:not([disabled]):hover{", ";}", ";" ], (0,
|
|
280
|
+
})([ "", " flex:0 1 auto;line-height:16px;cursor:pointer;&:focus{", ";}&:not([disabled]):hover{", ";}", ";" ], $, (0,
|
|
280
281
|
b.pick)({
|
|
281
282
|
enterprise: (0, h.css)([ "box-shadow:", ";color:", ";" ], b.variables.focusShadow, b.variables.linkColor),
|
|
282
283
|
prisma: (0, h.css)([ "color:", ";", "{background-color:", ";box-shadow:0 0 0 3px ", ";}" ], b.variables.contentColorActive,
|
|
283
284
|
/* sc-sel */
|
|
284
|
-
|
|
285
|
+
_, b.variables.interactiveColorOverlayHover, b.variables.focusColor)
|
|
285
286
|
}), (0, b.pick)({
|
|
286
287
|
enterprise: (0, h.css)([ "background-color:", ";", "{color:", ";}" ], (0, b.pickVariant)("$appearance", {
|
|
287
288
|
default: {
|
|
@@ -298,24 +299,24 @@
|
|
|
298
299
|
}
|
|
299
300
|
}),
|
|
300
301
|
/* sc-sel */
|
|
301
|
-
|
|
302
|
+
_, (function(e) {
|
|
302
303
|
var r = e.$foregroundColor;
|
|
303
304
|
return r || b.variables.linkColor;
|
|
304
305
|
})),
|
|
305
306
|
prisma: (0, h.css)([ "color:", ";", "{background-color:", ";", ";}" ], b.variables.contentColorActive,
|
|
306
307
|
/* sc-sel */
|
|
307
|
-
|
|
308
|
+
_, b.variables.interactiveColorOverlayHover, (function(e) {
|
|
308
309
|
var r = e.$appearance;
|
|
309
310
|
return r === "error" && (0, h.css)([ "color:", ";" ], b.variables.contentColorInverted);
|
|
310
311
|
}))
|
|
311
312
|
}), (0, b.pick)({
|
|
312
313
|
prisma: (0, h.css)([ "&:not([disabled]):active ", "{background-color:", ";}" ],
|
|
313
314
|
/* sc-sel */
|
|
314
|
-
|
|
315
|
+
_, b.variables.interactiveColorOverlayActive)
|
|
315
316
|
}));
|
|
316
317
|
// CONCATENATED MODULE: ./src/Chip/Chip.tsx
|
|
317
|
-
function
|
|
318
|
-
|
|
318
|
+
function q() {
|
|
319
|
+
q = Object.assign || function(e) {
|
|
319
320
|
for (var r = 1; r < arguments.length; r++) {
|
|
320
321
|
var a = arguments[r];
|
|
321
322
|
for (var o in a) {
|
|
@@ -326,30 +327,30 @@
|
|
|
326
327
|
}
|
|
327
328
|
return e;
|
|
328
329
|
};
|
|
329
|
-
return
|
|
330
|
+
return q.apply(this, arguments);
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
332
|
+
function E(e, r) {
|
|
333
|
+
return z(e) || L(e, r) || A(e, r) || I();
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function I() {
|
|
335
336
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function A(e, r) {
|
|
338
339
|
if (!e) return;
|
|
339
|
-
if (typeof e === "string") return
|
|
340
|
+
if (typeof e === "string") return D(e, r);
|
|
340
341
|
var a = Object.prototype.toString.call(e).slice(8, -1);
|
|
341
342
|
if (a === "Object" && e.constructor) a = e.constructor.name;
|
|
342
343
|
if (a === "Map" || a === "Set") return Array.from(e);
|
|
343
|
-
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return
|
|
344
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return D(e, r);
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function D(e, r) {
|
|
346
347
|
if (r == null || r > e.length) r = e.length;
|
|
347
348
|
for (var a = 0, o = new Array(r); a < r; a++) {
|
|
348
349
|
o[a] = e[a];
|
|
349
350
|
}
|
|
350
351
|
return o;
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function L(e, r) {
|
|
353
354
|
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(e))) return;
|
|
354
355
|
var a = [];
|
|
355
356
|
var o = true;
|
|
@@ -372,12 +373,12 @@
|
|
|
372
373
|
}
|
|
373
374
|
return a;
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function z(e) {
|
|
376
377
|
if (Array.isArray(e)) return e;
|
|
377
378
|
}
|
|
378
|
-
function
|
|
379
|
+
function N(e, r) {
|
|
379
380
|
if (e == null) return {};
|
|
380
|
-
var a =
|
|
381
|
+
var a = T(e, r);
|
|
381
382
|
var o, n;
|
|
382
383
|
if (Object.getOwnPropertySymbols) {
|
|
383
384
|
var t = Object.getOwnPropertySymbols(e);
|
|
@@ -390,7 +391,7 @@
|
|
|
390
391
|
}
|
|
391
392
|
return a;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function T(e, r) {
|
|
394
395
|
if (e == null) return {};
|
|
395
396
|
var a = {};
|
|
396
397
|
var o = Object.keys(e);
|
|
@@ -402,7 +403,7 @@
|
|
|
402
403
|
}
|
|
403
404
|
return a;
|
|
404
405
|
}
|
|
405
|
-
var
|
|
406
|
+
var H = {
|
|
406
407
|
appearance: l().oneOf([ "info", "success", "warning", "error", "outline" ]),
|
|
407
408
|
backgroundColor: l().string,
|
|
408
409
|
children: l().node.isRequired,
|
|
@@ -414,14 +415,11 @@
|
|
|
414
415
|
/** Includes this value in `onRequestRemove` callbacks. */
|
|
415
416
|
value: l().any
|
|
416
417
|
};
|
|
417
|
-
|
|
418
|
-
disabled: false
|
|
419
|
-
};
|
|
420
|
-
function H(e) {
|
|
418
|
+
function P(e) {
|
|
421
419
|
return !!e.onRequestRemove;
|
|
422
420
|
}
|
|
423
421
|
function B(e) {
|
|
424
|
-
var r = e.appearance, a = e.backgroundColor, o = e.disabled, n = e.foregroundColor, t = e.icon, i =
|
|
422
|
+
var r = e.appearance, a = e.backgroundColor, o = e.disabled, n = e.foregroundColor, t = e.icon, i = N(e, [ "appearance", "backgroundColor", "disabled", "foregroundColor", "icon" ]);
|
|
425
423
|
// Validate that the color being rendered into the CSS is restricted to only values that are of CSS type <color>.
|
|
426
424
|
var l = n && (0, f.isCSSColor)(n) ? n : undefined;
|
|
427
425
|
var s = a && (0, f.isCSSColor)(a) ? a : undefined;
|
|
@@ -436,46 +434,46 @@
|
|
|
436
434
|
return [ c, i ];
|
|
437
435
|
}
|
|
438
436
|
function V(e) {
|
|
439
|
-
var r = B(e), n =
|
|
440
|
-
var s = i.$appearance, p = i.$foregroundColor, f = i.disabled, g = i.icon,
|
|
441
|
-
var
|
|
442
|
-
var
|
|
443
|
-
var
|
|
444
|
-
var
|
|
445
|
-
children:
|
|
437
|
+
var r = B(e), n = E(r, 2), i = n[0], l = n[1];
|
|
438
|
+
var s = i.$appearance, p = i.$foregroundColor, f = i.disabled, g = f === void 0 ? false : f, h = i.icon, C = N(i, [ "$appearance", "$foregroundColor", "disabled", "icon" ]);
|
|
439
|
+
var y = l.children, x = l.elementRef, $ = l.onRequestRemove, k = l.value, S = N(l, [ "children", "elementRef", "onRequestRemove", "value" ]);
|
|
440
|
+
var I = (0, b.useSplunkTheme)(), A = I.isEnterprise;
|
|
441
|
+
var D = typeof y === "string";
|
|
442
|
+
var L = D ? (0, v.sprintf)((0, d._)("Remove %(children)s"), {
|
|
443
|
+
children: y
|
|
446
444
|
}) : (0, d._)("Remove");
|
|
447
|
-
var
|
|
448
|
-
|
|
449
|
-
value:
|
|
445
|
+
var z = (0, a.useCallback)((function(e) {
|
|
446
|
+
$(e, {
|
|
447
|
+
value: k
|
|
450
448
|
});
|
|
451
|
-
}), [
|
|
449
|
+
}), [ $, k ]);
|
|
452
450
|
|
|
453
|
-
return o().createElement(
|
|
451
|
+
return o().createElement(j, q({
|
|
454
452
|
$appearance: s,
|
|
455
|
-
$disabled:
|
|
453
|
+
$disabled: g,
|
|
456
454
|
$foregroundColor: p,
|
|
457
|
-
"data-test-value":
|
|
458
|
-
disabled:
|
|
459
|
-
elementRef:
|
|
460
|
-
onClick:
|
|
461
|
-
},
|
|
462
|
-
$icon: !!
|
|
455
|
+
"data-test-value": k,
|
|
456
|
+
disabled: g,
|
|
457
|
+
elementRef: x,
|
|
458
|
+
onClick: z
|
|
459
|
+
}, C, t()(S, Object.keys(H))), o().createElement(w, {
|
|
460
|
+
$icon: !!h,
|
|
463
461
|
$removable: true
|
|
464
|
-
}, o().createElement(m(), null,
|
|
462
|
+
}, o().createElement(m(), null, L), h && o().createElement(O, {
|
|
465
463
|
$appearance: s,
|
|
466
|
-
$disabled:
|
|
464
|
+
$disabled: g,
|
|
467
465
|
$foregroundColor: p
|
|
468
|
-
},
|
|
466
|
+
}, h), o().createElement(R, {
|
|
469
467
|
"data-test": "label",
|
|
470
|
-
"aria-hidden":
|
|
468
|
+
"aria-hidden": D ? true : undefined,
|
|
471
469
|
$appearance: s,
|
|
472
|
-
$disabled:
|
|
470
|
+
$disabled: g,
|
|
473
471
|
$foregroundColor: p
|
|
474
|
-
},
|
|
472
|
+
}, y), o().createElement(_, {
|
|
475
473
|
$appearance: s,
|
|
476
|
-
$disabled:
|
|
474
|
+
$disabled: g,
|
|
477
475
|
$foregroundColor: p
|
|
478
|
-
},
|
|
476
|
+
}, A ? o().createElement(u(), {
|
|
479
477
|
"data-test": "cross",
|
|
480
478
|
hideDefaultTooltip: true,
|
|
481
479
|
screenReaderText: null,
|
|
@@ -487,34 +485,33 @@
|
|
|
487
485
|
}))));
|
|
488
486
|
}
|
|
489
487
|
function M(e) {
|
|
490
|
-
var r = B(e), a =
|
|
491
|
-
var l = n.$appearance, s = n.$foregroundColor, c = n.disabled, p = n.icon, u =
|
|
492
|
-
var d = i.children, f = i.elementRef, v =
|
|
488
|
+
var r = B(e), a = E(r, 2), n = a[0], i = a[1];
|
|
489
|
+
var l = n.$appearance, s = n.$foregroundColor, c = n.disabled, p = n.icon, u = N(n, [ "$appearance", "$foregroundColor", "disabled", "icon" ]);
|
|
490
|
+
var d = i.children, f = i.elementRef, v = N(i, [ "children", "elementRef" ]);
|
|
493
491
|
|
|
494
|
-
return o().createElement(
|
|
492
|
+
return o().createElement(S, q({
|
|
495
493
|
$appearance: l,
|
|
496
|
-
$disabled: c,
|
|
494
|
+
$disabled: c !== null && c !== void 0 ? c : false,
|
|
497
495
|
ref: f
|
|
498
|
-
}, u, t()(v, Object.keys(
|
|
496
|
+
}, u, t()(v, Object.keys(H))), o().createElement(w, {
|
|
499
497
|
$icon: !!p,
|
|
500
498
|
$removable: false
|
|
501
|
-
}, p && o().createElement(
|
|
499
|
+
}, p && o().createElement(O, {
|
|
502
500
|
$appearance: l,
|
|
503
|
-
$disabled: c,
|
|
501
|
+
$disabled: c !== null && c !== void 0 ? c : false,
|
|
504
502
|
$foregroundColor: s
|
|
505
|
-
}, p), o().createElement(
|
|
503
|
+
}, p), o().createElement(R, {
|
|
506
504
|
"data-test": "label",
|
|
507
505
|
$appearance: l,
|
|
508
|
-
$disabled: c,
|
|
506
|
+
$disabled: c !== null && c !== void 0 ? c : false,
|
|
509
507
|
$foregroundColor: s
|
|
510
508
|
}, d)));
|
|
511
509
|
}
|
|
512
510
|
function W(e) {
|
|
513
511
|
// @docs-props-type ChipPropsBase
|
|
514
|
-
return
|
|
512
|
+
return P(e) ? o().createElement(V, e) : o().createElement(M, e);
|
|
515
513
|
}
|
|
516
|
-
W.propTypes =
|
|
517
|
-
W.defaultProps = T;
|
|
514
|
+
W.propTypes = H;
|
|
518
515
|
/* harmony default export */ const G = W;
|
|
519
516
|
// CONCATENATED MODULE: ./src/Chip/index.ts
|
|
520
517
|
module.exports = r;
|
package/CollapsiblePanel.js
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
}), (0, P.pick)({
|
|
222
222
|
enterprise: P.variables.textColor,
|
|
223
223
|
prisma: P.variables.contentColorActive
|
|
224
|
-
}), P.variables.
|
|
224
|
+
}), P.variables.focusShadowInset, (0, P.pick)({
|
|
225
225
|
enterprise: P.variables.textColor,
|
|
226
226
|
prisma: P.variables.contentColorActive
|
|
227
227
|
}), (0, P.pick)({
|
package/Color.js
CHANGED
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
var F = I()($()).withConfig({
|
|
142
142
|
displayName: "SwatchStyles__StyledClickable",
|
|
143
143
|
componentId: "sc-1wxunhq-1"
|
|
144
|
-
})([ "display:block;flex:0 0 auto;border:1px solid;border-color:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", "" ], (0,
|
|
144
|
+
})([ "display:block;flex:0 0 auto;border:1px solid;border-color:", ";", ";", ";", ";", " &:focus{border-color:", ";box-shadow:", ";", "}", " ", " ", " &[disabled]{background-image:linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8));}", " ", "" ], (0,
|
|
145
145
|
P.pick)({
|
|
146
146
|
enterprise: {
|
|
147
147
|
light: P.variables.gray60,
|
|
@@ -166,6 +166,9 @@
|
|
|
166
166
|
var t = e.$noBorder;
|
|
167
167
|
return t && (0, j.css)([ "border:none;" ]);
|
|
168
168
|
}), P.variables.focusColor, P.variables.focusShadow, (0, P.pick)({
|
|
169
|
+
// Fixes focus shadow being cut off by input (SUI-6401)
|
|
170
|
+
enterprise: (0, j.css)([ "z-index:1;" ])
|
|
171
|
+
}), (0, P.pick)({
|
|
169
172
|
enterprise: {
|
|
170
173
|
comfortable: (0, j.css)([ "width:32px;height:32px;" ]),
|
|
171
174
|
compact: (0, j.css)([ "width:24px;height:24px;" ])
|
|
@@ -284,18 +287,21 @@
|
|
|
284
287
|
var Q = I()(G).withConfig({
|
|
285
288
|
displayName: "ColorStyles__StyledInputSwatch",
|
|
286
289
|
componentId: "jxrost-1"
|
|
287
|
-
})([ "", "
|
|
290
|
+
})([ "", ";" ], (0, P.pick)({
|
|
288
291
|
compact: (0, j.css)([ "width:28px;height:28px;" ])
|
|
289
292
|
}));
|
|
290
293
|
var Y = I().div.withConfig({
|
|
291
294
|
displayName: "ColorStyles__StyledInput",
|
|
292
295
|
componentId: "jxrost-2"
|
|
293
|
-
})([ "", ";" ], (0, P.pick)({
|
|
294
|
-
enterprise: (0, j.css)([ "display:flex;
|
|
295
|
-
prisma: (0, j.css)([ "position:relative;"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
})([ "", ";", "" ], (0, P.pick)({
|
|
297
|
+
enterprise: (0, j.css)([ "display:flex;" ]),
|
|
298
|
+
prisma: (0, j.css)([ "position:relative;" ])
|
|
299
|
+
}), (function(e) {
|
|
300
|
+
var t = e.$inDropdown;
|
|
301
|
+
return t ? (0, j.css)([ "width:", ";" ], (0, P.pick)({
|
|
302
|
+
enterprise: "100%",
|
|
303
|
+
prisma: "80px"
|
|
304
|
+
})) : (0, j.css)([ "flex:0 1 auto;min-width:0;" ]);
|
|
299
305
|
}));
|
|
300
306
|
var Z = I()(R()).withConfig({
|
|
301
307
|
displayName: "ColorStyles__StyledInputText",
|
|
@@ -682,7 +688,6 @@
|
|
|
682
688
|
append: false,
|
|
683
689
|
disabled: false,
|
|
684
690
|
error: false,
|
|
685
|
-
hideInput: false,
|
|
686
691
|
palette: De(Ae),
|
|
687
692
|
prepend: false
|
|
688
693
|
};
|
|
@@ -992,7 +997,7 @@
|
|
|
992
997
|
required: c,
|
|
993
998
|
spellCheck: false,
|
|
994
999
|
value: p
|
|
995
|
-
}), !d && n().createElement(Q, {
|
|
1000
|
+
}), !d && i && n().createElement(Q, {
|
|
996
1001
|
"data-test": "textbox-swatch",
|
|
997
1002
|
onClick: this.handleButtonClick,
|
|
998
1003
|
value: h,
|
|
@@ -1023,7 +1028,7 @@
|
|
|
1023
1028
|
textAppend: true,
|
|
1024
1029
|
textPrepend: true,
|
|
1025
1030
|
textInline: true,
|
|
1026
|
-
inDropdown:
|
|
1031
|
+
inDropdown: true
|
|
1027
1032
|
});
|
|
1028
1033
|
},
|
|
1029
1034
|
expandButtonRef: this.focusExpandButton,
|
|
@@ -1043,8 +1048,11 @@
|
|
|
1043
1048
|
var b = m.isPrisma;
|
|
1044
1049
|
var g = this.getValue();
|
|
1045
1050
|
var x = this.state.displayValue;
|
|
1046
|
-
|
|
1047
|
-
|
|
1051
|
+
// hideInput defaults to true in Enterprise if prop is not provided
|
|
1052
|
+
var S = c !== null && c !== void 0 ? c : true;
|
|
1053
|
+
var w = b ? c : S;
|
|
1054
|
+
var k = n().createElement(ee, me({
|
|
1055
|
+
append: !w ? true : o,
|
|
1048
1056
|
"data-test": "color",
|
|
1049
1057
|
"data-test-value": x,
|
|
1050
1058
|
"aria-describedby": i,
|
|
@@ -1069,8 +1077,8 @@
|
|
|
1069
1077
|
},
|
|
1070
1078
|
retainFocus: true,
|
|
1071
1079
|
takeFocus: false,
|
|
1072
|
-
toggle:
|
|
1073
|
-
}, this.renderPalette()),
|
|
1080
|
+
toggle: k
|
|
1081
|
+
}, this.renderPalette()), !w && this.renderInput({
|
|
1074
1082
|
textAppend: false,
|
|
1075
1083
|
textPrepend: true,
|
|
1076
1084
|
textInline: true,
|
package/ComboBox.js
CHANGED
|
@@ -698,7 +698,8 @@
|
|
|
698
698
|
}
|
|
699
699
|
r === null || r === void 0 ? void 0 : r(e);
|
|
700
700
|
}));
|
|
701
|
-
ce(ae(i), "handleInputClick", (function() {
|
|
701
|
+
ce(ae(i), "handleInputClick", (function(e) {
|
|
702
|
+
e.stopPropagation();
|
|
702
703
|
if (!i.state.open && !i.props.disabled) {
|
|
703
704
|
i.open();
|
|
704
705
|
}
|
|
@@ -906,7 +907,7 @@
|
|
|
906
907
|
"data-test-value": a,
|
|
907
908
|
"data-test-open": i && !!r,
|
|
908
909
|
onFocus: this.handleInputFocus,
|
|
909
|
-
|
|
910
|
+
onInputClick: this.handleInputClick,
|
|
910
911
|
onChange: this.handleChange,
|
|
911
912
|
onKeyDown: this.handleInputKeyDown,
|
|
912
913
|
inputRef: this.handleInputMount,
|