@splunk/react-ui 4.28.1 → 4.29.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/Multiselect.js CHANGED
@@ -404,7 +404,7 @@
404
404
  if (n) T(e, n);
405
405
  return e;
406
406
  }
407
- function N(e, t) {
407
+ function B(e, t) {
408
408
  if (typeof t !== "function" && t !== null) {
409
409
  throw new TypeError("Super expression must either be null or a function");
410
410
  }
@@ -415,14 +415,14 @@
415
415
  configurable: true
416
416
  }
417
417
  });
418
- if (t) B(e, t);
418
+ if (t) N(e, t);
419
419
  }
420
- function B(e, t) {
421
- B = Object.setPrototypeOf || function e(t, n) {
420
+ function N(e, t) {
421
+ N = Object.setPrototypeOf || function e(t, n) {
422
422
  t.__proto__ = n;
423
423
  return t;
424
424
  };
425
- return B(e, t);
425
+ return N(e, t);
426
426
  }
427
427
  function L(e) {
428
428
  var t = $();
@@ -519,7 +519,7 @@
519
519
  * [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
520
520
  * so any elements passed to it must also be pure.
521
521
  */ var G = function(e) {
522
- N(n, e);
522
+ B(n, e);
523
523
  var t = L(n);
524
524
  function n() {
525
525
  var e;
@@ -638,7 +638,7 @@
638
638
  const Te = require("@splunk/react-icons/Magnifier");
639
639
  var qe = e.n(Te);
640
640
  // CONCATENATED MODULE: ./src/Select/icons/Search.tsx
641
- var Ne = function e() {
641
+ var Be = function e() {
642
642
  var t = (0, Ae.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
643
643
  var a = (0, u._)("Search");
644
644
  var i = o ? "20px" : "24px";
@@ -655,7 +655,7 @@
655
655
  });
656
656
  return l;
657
657
  };
658
- /* harmony default export */ const Be = Ne;
658
+ /* harmony default export */ const Ne = Be;
659
659
  // CONCATENATED MODULE: external "styled-components"
660
660
  const Le = require("styled-components");
661
661
  var Fe = e.n(Le);
@@ -1217,12 +1217,12 @@
1217
1217
  Object.defineProperty(e, r.key, r);
1218
1218
  }
1219
1219
  }
1220
- function Nt(e, t, n) {
1220
+ function Bt(e, t, n) {
1221
1221
  if (t) qt(e.prototype, t);
1222
1222
  if (n) qt(e, n);
1223
1223
  return e;
1224
1224
  }
1225
- function Bt(e, t) {
1225
+ function Nt(e, t) {
1226
1226
  if (typeof t !== "function" && t !== null) {
1227
1227
  throw new TypeError("Super expression must either be null or a function");
1228
1228
  }
@@ -1427,9 +1427,9 @@
1427
1427
  return "".concat(Wt(e), "-").concat(e, "-").concat(t);
1428
1428
  }
1429
1429
  var rn = function(e) {
1430
- Bt(o, e);
1430
+ Nt(o, e);
1431
1431
  var t = Ft(o);
1432
- Nt(o, null, [ {
1432
+ Bt(o, null, [ {
1433
1433
  key: "validateAppearance",
1434
1434
  // @docs-props-type CompactPropsBase
1435
1435
  value: function e(t) {
@@ -2056,7 +2056,7 @@
2056
2056
  a.activeItemId = (0, be.createDOMID)("active-item");
2057
2057
  return a;
2058
2058
  }
2059
- Nt(o, [ {
2059
+ Bt(o, [ {
2060
2060
  key: "componentDidUpdate",
2061
2061
  value: function e(t, n) {
2062
2062
  if (false) {}
@@ -2186,7 +2186,7 @@
2186
2186
  inputRef: s,
2187
2187
  inputId: l,
2188
2188
  canClear: true,
2189
- startAdornment: r().createElement(ht, null, r().createElement(Be, null))
2189
+ startAdornment: r().createElement(ht, null, r().createElement(Ne, null))
2190
2190
  })), c && n && p === "buttongroup" && v);
2191
2191
  }
2192
2192
  }, {
@@ -2537,10 +2537,10 @@
2537
2537
  var Tn = e.n(Dn);
2538
2538
  // CONCATENATED MODULE: external "@splunk/react-ui/Chip"
2539
2539
  const qn = require("@splunk/react-ui/Chip");
2540
- var Nn = e.n(qn);
2540
+ var Bn = e.n(qn);
2541
2541
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
2542
- const Bn = require("@splunk/react-ui/Popover");
2543
- var Ln = e.n(Bn);
2542
+ const Nn = require("@splunk/react-ui/Popover");
2543
+ var Ln = e.n(Nn);
2544
2544
  // CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
2545
2545
  const Fn = require("@splunk/react-ui/ScreenReaderContent");
2546
2546
  var Kn = e.n(Fn);
@@ -2599,14 +2599,14 @@
2599
2599
  enterprise: Ae.variables.spacingHalf,
2600
2600
  prisma: Ae.variables.spacingSmall
2601
2601
  }));
2602
- var Un = Fe().div.withConfig({
2603
- displayName: "NormalStyles__StyledInputWrapper",
2602
+ var Un = Fe().span.withConfig({
2603
+ displayName: "NormalStyles__StyledButtonsWrapper",
2604
2604
  componentId: "sc-1uwwpco-1"
2605
- })([ "flex:1 0 auto;max-width:100%;" ]);
2605
+ })([ "display:contents;" ]);
2606
2606
  var Gn = Fe().input.withConfig({
2607
2607
  displayName: "NormalStyles__StyledInput",
2608
2608
  componentId: "sc-1uwwpco-2"
2609
- })([ "", ";min-width:100%;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
2609
+ })([ "", ";flex:1 0 auto;max-width:100%;line-height:12px;", "" ], Ae.mixins.reset("block"), (0,
2610
2610
  Ae.pick)({
2611
2611
  enterprise: {
2612
2612
  comfortable: (0, Le.css)([ "padding:", ";" ], Ae.variables.spacingQuarter),
@@ -3238,7 +3238,7 @@
3238
3238
  if (o != null) {
3239
3239
  var a = o.children, i = o.icon, l = o.label, s = o.selectedAppearance, c = o.selectedBackgroundColor, u = o.selectedForegroundColor, p = o.value;
3240
3240
 
3241
- return r().createElement(Nn(), {
3241
+ return r().createElement(Bn(), {
3242
3242
  "aria-selected": true,
3243
3243
  disabled: n.props.disabled,
3244
3244
  icon: i,
@@ -3253,7 +3253,7 @@
3253
3253
  }, r().createElement(r().Fragment, null, a || l));
3254
3254
  }
3255
3255
 
3256
- return r().createElement(Nn(), {
3256
+ return r().createElement(Bn(), {
3257
3257
  "aria-selected": true,
3258
3258
  disabled: n.props.disabled,
3259
3259
  key: (0, be.createGUID)(),
@@ -3389,18 +3389,15 @@
3389
3389
  $popoverOpen: this.state.open,
3390
3390
  flex: true,
3391
3391
  elementRef: this.handleMount,
3392
- role: "listbox",
3392
+ role: "group",
3393
3393
  "aria-disabled": v || undefined,
3394
- "aria-labelledby": m,
3394
+ "aria-labelledby": m
3395
+ }, k), r().createElement(Un, {
3396
+ role: "listbox",
3395
3397
  "aria-invalid": h,
3396
3398
  "aria-multiselectable": "true"
3397
- }, k), this.renderButtons(_), !v && r().createElement(Un, {
3399
+ }, this.renderButtons(_)), !v && r().createElement(Gn, sr({
3398
3400
  role: "combobox",
3399
- "aria-owns": this.state.open ? this.popoverId : undefined,
3400
- "aria-haspopup": true,
3401
- "aria-expanded": this.state.open,
3402
- "aria-controls": this.state.open ? this.popoverId : undefined
3403
- }, r().createElement(Gn, sr({
3404
3401
  "data-test": "textbox",
3405
3402
  id: y,
3406
3403
  ref: this.handleInputMount,
@@ -3413,12 +3410,16 @@
3413
3410
  autoComplete: "off",
3414
3411
  autoCorrect: "off",
3415
3412
  spellCheck: false,
3416
- "aria-autocomplete": "list",
3417
3413
  style: A,
3418
3414
  placeholder: I.length ? "" : g,
3419
3415
  required: O,
3420
- "aria-activedescendant": this.state.open && this.availableOptionCount > 0 ? this.activeItemId : undefined
3421
- }, x))), !v && r().createElement(Ln(), {
3416
+ "aria-activedescendant": this.state.open && this.availableOptionCount > 0 ? this.activeItemId : undefined,
3417
+ "aria-autocomplete": "list",
3418
+ "aria-controls": this.state.open ? this.popoverId : undefined,
3419
+ "aria-owns": this.state.open ? this.popoverId : undefined,
3420
+ "aria-expanded": this.state.open,
3421
+ "aria-haspopup": true
3422
+ }, x)), r().createElement(Ln(), {
3422
3423
  open: this.state.open && !!this.state.el,
3423
3424
  autoCloseWhenOffScreen: true,
3424
3425
  anchor: this.state.el,
@@ -3557,7 +3558,7 @@
3557
3558
  };
3558
3559
  return qr(e);
3559
3560
  }
3560
- function Nr(e, t, n) {
3561
+ function Br(e, t, n) {
3561
3562
  if (t in e) {
3562
3563
  Object.defineProperty(e, t, {
3563
3564
  value: n,
@@ -3570,7 +3571,7 @@
3570
3571
  }
3571
3572
  return e;
3572
3573
  }
3573
- var Br = {
3574
+ var Nr = {
3574
3575
  allowNewValues: a().bool,
3575
3576
  animateLoading: a().bool,
3576
3577
  children: a().node,
@@ -3655,12 +3656,12 @@
3655
3656
  } ]);
3656
3657
  return n;
3657
3658
  }(n.Component);
3658
- Nr(Kr, "propTypes", Br);
3659
- Nr(Kr, "defaultProps", Lr);
3660
- Nr(Kr, "componentType", "Multiselect");
3661
- Nr(Kr, "Option", J);
3662
- Nr(Kr, "Heading", p.Heading);
3663
- Nr(Kr, "Divider", p.Divider);
3659
+ Br(Kr, "propTypes", Nr);
3660
+ Br(Kr, "defaultProps", Lr);
3661
+ Br(Kr, "componentType", "Multiselect");
3662
+ Br(Kr, "Option", J);
3663
+ Br(Kr, "Heading", p.Heading);
3664
+ Br(Kr, "Divider", p.Divider);
3664
3665
  /* harmony default export */ const $r = Kr;
3665
3666
  // CONCATENATED MODULE: ./src/Multiselect/index.ts
3666
3667
  module.exports = t;