@splunk/react-ui 4.34.0 → 4.36.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.
Files changed (65) hide show
  1. package/Breadcrumbs.js +20 -29
  2. package/Button.js +1 -1
  3. package/CHANGELOG.md +42 -2
  4. package/Calendar.js +2 -2
  5. package/Card.js +86 -82
  6. package/Chip.js +73 -76
  7. package/CollapsiblePanel.js +2 -2
  8. package/Color.js +23 -15
  9. package/ComboBox.js +5 -4
  10. package/Concertina.js +136 -135
  11. package/ControlGroup.js +51 -48
  12. package/FormRows.js +2 -2
  13. package/JSONTree.js +295 -260
  14. package/List.js +9 -13
  15. package/MIGRATION.mdx +41 -0
  16. package/Menu.js +352 -345
  17. package/Message.js +16 -19
  18. package/Modal.js +1 -1
  19. package/Monogram.js +140 -94
  20. package/Multiselect.js +37 -20
  21. package/Paginator.js +1 -1
  22. package/RadioBar.js +157 -191
  23. package/Resize.js +133 -113
  24. package/ResultsMenu.js +124 -126
  25. package/Search.js +182 -181
  26. package/Select.js +55 -56
  27. package/Slider.js +9 -3
  28. package/StaticContent.js +48 -46
  29. package/StepBar.js +91 -87
  30. package/Switch.js +105 -97
  31. package/TabBar.js +125 -110
  32. package/Table.js +686 -687
  33. package/Text.js +78 -58
  34. package/package.json +7 -6
  35. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  36. package/types/src/Breadcrumbs/Item.d.ts +0 -1
  37. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -0
  38. package/types/src/Card/Header.d.ts +0 -2
  39. package/types/src/Chip/Chip.d.ts +2 -4
  40. package/types/src/Color/Color.d.ts +5 -5
  41. package/types/src/ComboBox/ComboBox.d.ts +8 -4
  42. package/types/src/ComboBox/Option.d.ts +0 -1
  43. package/types/src/ControlGroup/ControlGroup.d.ts +9 -5
  44. package/types/src/JSONTree/JSONTreeItem.d.ts +2 -2
  45. package/types/src/JSONTree/renderTreeItems.d.ts +2 -2
  46. package/types/src/List/List.d.ts +2 -4
  47. package/types/src/Menu/Heading.d.ts +1 -1
  48. package/types/src/Menu/Item.d.ts +7 -5
  49. package/types/src/Menu/Menu.d.ts +13 -16
  50. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -0
  51. package/types/src/Monogram/Monogram.d.ts +5 -6
  52. package/types/src/Multiselect/Normal.d.ts +1 -0
  53. package/types/src/Multiselect/Option.d.ts +0 -1
  54. package/types/src/Progress/Progress.d.ts +4 -1
  55. package/types/src/RadioBar/RadioBarContext.d.ts +1 -1
  56. package/types/src/Resize/Resize.d.ts +4 -2
  57. package/types/src/ResultsMenu/ResultsMenu.d.ts +11 -9
  58. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +3 -5
  59. package/types/src/Search/Option.d.ts +19 -6
  60. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -0
  61. package/types/src/Select/Option.d.ts +0 -1
  62. package/types/src/Select/OptionBase.d.ts +2 -3
  63. package/types/src/StaticContent/StaticContent.d.ts +4 -1
  64. package/types/src/Table/DragHandle.d.ts +1 -2
  65. package/types/src/Text/Text.d.ts +2 -0
package/Select.js CHANGED
@@ -64,7 +64,7 @@
64
64
  Divider: () => /* reexport */ T.Divider,
65
65
  Heading: () => /* reexport */ T.Heading,
66
66
  Option: () => /* reexport */ nn,
67
- default: () => /* reexport */ xn
67
+ default: () => /* reexport */ wn
68
68
  });
69
69
  // CONCATENATED MODULE: external "react"
70
70
  const n = require("react");
@@ -97,10 +97,10 @@
97
97
  var O = e.n(g);
98
98
  // CONCATENATED MODULE: external "lodash/memoize"
99
99
  const S = require("lodash/memoize");
100
- var x = e.n(S);
100
+ var w = e.n(S);
101
101
  // CONCATENATED MODULE: external "lodash/omit"
102
- const w = require("lodash/omit");
103
- var C = e.n(w);
102
+ const x = require("lodash/omit");
103
+ var C = e.n(x);
104
104
  // CONCATENATED MODULE: external "lodash/pick"
105
105
  const k = require("lodash/pick");
106
106
  var I = e.n(k);
@@ -424,10 +424,10 @@
424
424
  /* harmony default export */ const Oe = ge;
425
425
  // CONCATENATED MODULE: external "styled-components"
426
426
  const Se = require("styled-components");
427
- var xe = e.n(Se);
427
+ var we = e.n(Se);
428
428
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
429
- const we = require("@splunk/react-ui/Clickable");
430
- var Ce = e.n(we);
429
+ const xe = require("@splunk/react-ui/Clickable");
430
+ var Ce = e.n(xe);
431
431
  // CONCATENATED MODULE: external "@splunk/react-ui/Switch"
432
432
  const ke = require("@splunk/react-ui/Switch");
433
433
  var Ie = e.n(ke);
@@ -439,18 +439,18 @@
439
439
  }), U.variables.fontSizeSmall, (0, U.pick)({
440
440
  prisma: "16px"
441
441
  }));
442
- var Ae = xe().span.withConfig({
442
+ var Ae = we().span.withConfig({
443
443
  displayName: "ItemStyles__StyledItemDescriptionBottom",
444
444
  componentId: "sc-4kc053-0"
445
445
  })([ "", ";display:block;" ], _e);
446
- var je = xe().span.withConfig({
446
+ var je = we().span.withConfig({
447
447
  displayName: "ItemStyles__StyledItemDescriptionRight",
448
448
  componentId: "sc-4kc053-1"
449
449
  })([ "", ";float:right;", " max-width:50%;text-align:right;box-sizing:border-box;" ], _e, (0,
450
450
  U.pick)({
451
451
  enterprise: (0, Se.css)([ "padding-left:", ";" ], U.variables.spacingLarge)
452
452
  }));
453
- var Ee = xe().div.withConfig({
453
+ var Ee = we().div.withConfig({
454
454
  displayName: "ItemStyles__StyledItemSelectedIcon",
455
455
  componentId: "sc-4kc053-2"
456
456
  })([ "position:absolute;", " color:", ";" ], (0, U.pick)({
@@ -460,7 +460,7 @@
460
460
  prisma: U.variables.contentColorActive,
461
461
  enterprise: U.variables.accentColorL10
462
462
  }));
463
- var Me = xe().span.withConfig({
463
+ var Me = we().span.withConfig({
464
464
  displayName: "ItemStyles__StyledItemIcon",
465
465
  componentId: "sc-4kc053-3"
466
466
  })([ "flex:0 0 auto;padding-right:", ";min-width:10px;display:inline-block;text-align:center;vertical-align:", ";", "" ], (0,
@@ -474,10 +474,10 @@
474
474
  prisma: (0, Se.css)([ "color:", ";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}" ], U.variables.contentColorMuted),
475
475
  enterprise: (0, Se.css)([ "transform:translateY(-1px);" ])
476
476
  }));
477
- var Te = xe()(Ce()).withConfig({
477
+ var Te = we()(Ce()).withConfig({
478
478
  displayName: "ItemStyles__StyledClickable",
479
479
  componentId: "sc-4kc053-4"
480
- })([ "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,
480
+ })([ "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,
481
481
  U.pick)({
482
482
  prisma: U.variables.contentColorActive,
483
483
  enterprise: {
@@ -520,8 +520,6 @@
520
520
  return t && (0, U.pick)({
521
521
  prisma: (0, Se.css)([ "background:", ";" ], U.mixins.overlayColors(U.variables.interactiveColorOverlaySelected, U.variables.interactiveColorOverlayHover))
522
522
  });
523
- }), U.variables.focusShadowInset, (0, U.pick)({
524
- prisma: (0, Se.css)([ "background:", ";" ], U.variables.interactiveColorOverlayHover)
525
523
  }), (0, U.pick)({
526
524
  prisma: (0, Se.css)([ "&:active{background:", ";}" ], U.variables.interactiveColorOverlayActive)
527
525
  }), (function(e) {
@@ -529,6 +527,8 @@
529
527
  return t && (0, U.pick)({
530
528
  prisma: (0, Se.css)([ "background:", ";&:active{background:", ";}" ], U.variables.interactiveColorOverlaySelected, U.mixins.overlayColors(U.variables.interactiveColorOverlaySelected, U.variables.interactiveColorOverlayActive))
531
529
  });
530
+ }), U.variables.focusShadowInset, (0, U.pick)({
531
+ prisma: (0, Se.css)([ "background:", ";" ], U.variables.interactiveColorOverlayHover)
532
532
  }), (0, U.pick)({
533
533
  enterprise: {
534
534
  light: U.variables.gray45,
@@ -556,7 +556,7 @@
556
556
  Me, U.variables.contentColorActive)
557
557
  });
558
558
  }));
559
- var Pe = xe()(Ie()).withConfig({
559
+ var Pe = we()(Ie()).withConfig({
560
560
  displayName: "ItemStyles__StyledSwitch",
561
561
  componentId: "sc-4kc053-5"
562
562
  })([ "position:absolute;left:", ";top:", ";" ], (0, U.pick)({
@@ -569,25 +569,25 @@
569
569
  compact: "2px"
570
570
  }
571
571
  }));
572
- var Ve = xe().span.withConfig({
572
+ var Ve = we().span.withConfig({
573
573
  displayName: "ItemStyles__StyledInnerWrapper",
574
574
  componentId: "sc-4kc053-6"
575
575
  })([ "display:flex;align-items:flex-start;" ]);
576
- var Re = xe().span.withConfig({
576
+ var Re = we().span.withConfig({
577
577
  displayName: "ItemStyles__StyledTitleAndDescriptionWrapper",
578
578
  componentId: "sc-4kc053-7"
579
579
  })([ "display:flex;flex-wrap:wrap;flex-direction:column;max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;", "" ], (function(e) {
580
580
  var t = e.$truncate;
581
581
  return t && (0, Se.css)([ "white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" ]);
582
582
  }));
583
- var De = xe().div.withConfig({
583
+ var De = we().div.withConfig({
584
584
  displayName: "ItemStyles__StyledLabel",
585
585
  componentId: "sc-4kc053-8"
586
586
  })([ "overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;", "" ], (function(e) {
587
587
  var t = e.$truncate;
588
588
  return t && (0, Se.css)([ "display:block;clear:both;" ]);
589
589
  }));
590
- var Le = xe().span.withConfig({
590
+ var Le = we().span.withConfig({
591
591
  displayName: "ItemStyles__StyledMatch",
592
592
  componentId: "sc-4kc053-9"
593
593
  })([ "border-bottom:1px solid ", ";" ], (0, U.pick)({
@@ -597,7 +597,7 @@
597
597
  light: U.variables.gray45
598
598
  }
599
599
  }));
600
- var qe = xe().span.withConfig({
600
+ var qe = we().span.withConfig({
601
601
  displayName: "ItemStyles__StyledSubmenu",
602
602
  componentId: "sc-4kc053-10"
603
603
  })([ "float:right;padding-left:", ";color:", ";", "" ], U.variables.spacingSmall, (0,
@@ -608,11 +608,11 @@
608
608
  prisma: (0, Se.css)([ "& > svg{width:20px;height:20px;}" ])
609
609
  }));
610
610
  // CONCATENATED MODULE: ./src/Select/SelectAllOptionStyles.ts
611
- var Ne = xe()(De).withConfig({
611
+ var Ne = we()(De).withConfig({
612
612
  displayName: "SelectAllOptionStyles__StyledSelectAllLabel",
613
613
  componentId: "y6bn08-0"
614
614
  })([ "font-weight:", ";" ], U.variables.fontWeightBold);
615
- var Be = xe()(Oe).withConfig({
615
+ var Be = we()(Oe).withConfig({
616
616
  displayName: "SelectAllOptionStyles__StyledSelectAllOption",
617
617
  componentId: "y6bn08-1"
618
618
  })([ "padding-inline-start:", ";box-shadow:none;" ], (0, U.pick)({
@@ -672,7 +672,7 @@
672
672
  const $e = require("@splunk/react-ui/Button");
673
673
  var ze = e.n($e);
674
674
  // CONCATENATED MODULE: ./src/Select/SelectBaseStyles.ts
675
- var We = xe()(ze()).withConfig({
675
+ var We = we()(ze()).withConfig({
676
676
  displayName: "SelectBaseStyles__StyledButton",
677
677
  componentId: "sc-16cj7sk-0"
678
678
  })([ "&[data-inline]{width:", ";}", "" ], (function(e) {
@@ -682,22 +682,22 @@
682
682
  var t = e.$multiple;
683
683
  return !t && "flex-grow: 0;";
684
684
  }));
685
- var Ue = xe().span.withConfig({
685
+ var Ue = we().span.withConfig({
686
686
  displayName: "SelectBaseStyles__StyledLinkIcon",
687
687
  componentId: "sc-16cj7sk-1"
688
688
  })([ "padding-right:2px;" ]);
689
- var Ge = xe().span.withConfig({
689
+ var Ge = we().span.withConfig({
690
690
  displayName: "SelectBaseStyles__StyledLinkCaret",
691
691
  componentId: "sc-16cj7sk-2"
692
692
  })([ "padding-left:2px;" ]);
693
- var Je = xe().div.withConfig({
693
+ var Je = we().div.withConfig({
694
694
  displayName: "SelectBaseStyles__StyledFilter",
695
695
  componentId: "sc-16cj7sk-3"
696
696
  })([ "padding:", ";min-width:160px;" ], (0, U.pick)({
697
697
  enterprise: "8px",
698
698
  prisma: "10px 16px"
699
699
  }));
700
- var Xe = xe().span.withConfig({
700
+ var Xe = we().span.withConfig({
701
701
  displayName: "SelectBaseStyles__StyledSearchIconWrapper",
702
702
  componentId: "sc-16cj7sk-4"
703
703
  })([ "color:", ";pointer-events:none;padding:", ";" ], (0, U.pick)({
@@ -710,18 +710,18 @@
710
710
  comfortable: "0 8px",
711
711
  compact: "0 6px"
712
712
  }));
713
- var Ye = xe().span.withConfig({
713
+ var Ye = we().span.withConfig({
714
714
  displayName: "SelectBaseStyles__StyledCount",
715
715
  componentId: "sc-16cj7sk-5"
716
716
  })([ "padding-right:", ";" ], U.variables.spacingXSmall);
717
- var Qe = xe()(q()).withConfig({
717
+ var Qe = we()(q()).withConfig({
718
718
  displayName: "SelectBaseStyles__StyledControlsLink",
719
719
  componentId: "sc-16cj7sk-6"
720
720
  })([ "margin-right:20px;", ";" ], (function(e) {
721
721
  var t = e.$disabled;
722
722
  return t && (0, Se.css)([ "color:", ";" ], U.variables.contentColorDisabled);
723
723
  }));
724
- var Ze = xe().div.withConfig({
724
+ var Ze = we().div.withConfig({
725
725
  displayName: "SelectBaseStyles__StyledToggleAllControls",
726
726
  componentId: "sc-16cj7sk-7"
727
727
  })([ "padding:", ";", "" ], (0, U.pick)({
@@ -1008,7 +1008,7 @@
1008
1008
  };
1009
1009
  return St(e, t);
1010
1010
  }
1011
- function xt(e) {
1011
+ function wt(e) {
1012
1012
  var t = kt();
1013
1013
  return function n() {
1014
1014
  var r = It(e), o;
@@ -1018,10 +1018,10 @@
1018
1018
  } else {
1019
1019
  o = r.apply(this, arguments);
1020
1020
  }
1021
- return wt(this, o);
1021
+ return xt(this, o);
1022
1022
  };
1023
1023
  }
1024
- function wt(e, t) {
1024
+ function xt(e, t) {
1025
1025
  if (t && (_t(t) === "object" || typeof t === "function")) {
1026
1026
  return t;
1027
1027
  }
@@ -1172,11 +1172,11 @@
1172
1172
  tabConfirmsNewValue: false,
1173
1173
  toggleContent: "optionChildren"
1174
1174
  };
1175
- var Pt = x()((function(e) {
1175
+ var Pt = w()((function(e) {
1176
1176
  return [ e ];
1177
1177
  }));
1178
1178
  // preserve separate widths for single vs. multi mode
1179
- var Vt = x()((function(e) {
1179
+ var Vt = w()((function(e) {
1180
1180
  var t = e.anchorWidth, n = e.isMultiple, r = e.maxHeight, o = e.menuStyle;
1181
1181
  return n ? jt({
1182
1182
  width: Math.max(t !== null && t !== void 0 ? t : 0, 200),
@@ -1196,7 +1196,7 @@
1196
1196
  }
1197
1197
  var qt = function(e) {
1198
1198
  Ot(o, e);
1199
- var t = xt(o);
1199
+ var t = wt(o);
1200
1200
  gt(o, null, [ {
1201
1201
  key: "validateAppearance",
1202
1202
  // @docs-props-type CompactPropsBase
@@ -1477,7 +1477,7 @@
1477
1477
  }));
1478
1478
  Et(Ct(i), "createToggle", (function() {
1479
1479
  var e;
1480
- var t = i.props, a = t.toggle, l = t.appearance, c = t.children, u = t.describedBy, p = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, m = t.labelText, y = t.multiple, g = t.placeholder, S = t.prefixLabel, x = t.required, w = t.suffixLabel, k = t.toggleContent;
1480
+ var t = i.props, a = t.toggle, l = t.appearance, c = t.children, u = t.describedBy, p = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, m = t.labelText, y = t.multiple, g = t.placeholder, S = t.prefixLabel, w = t.required, x = t.suffixLabel, k = t.toggleContent;
1481
1481
  var _;
1482
1482
  var A;
1483
1483
  var j = [];
@@ -1513,7 +1513,7 @@
1513
1513
  A = i.wrapLabel({
1514
1514
  prefixLabel: S,
1515
1515
  label: A,
1516
- suffixLabel: w
1516
+ suffixLabel: x
1517
1517
  });
1518
1518
  }
1519
1519
  // single <Select> behaviour is to show the placeholder if all parts of the the label
@@ -1531,20 +1531,20 @@
1531
1531
  j = i.wrapLabel({
1532
1532
  prefixLabel: S,
1533
1533
  label: [ "".concat(E.length, " items selected") ],
1534
- suffixLabel: w
1534
+ suffixLabel: x
1535
1535
  });
1536
1536
  } else {
1537
1537
  j = i.wrapLabel({
1538
1538
  prefixLabel: S,
1539
1539
  label: j,
1540
- suffixLabel: w
1540
+ suffixLabel: x
1541
1541
  });
1542
1542
  }
1543
1543
  var P = jt({
1544
1544
  "aria-describedby": u,
1545
1545
  "aria-label": "".concat(m ? "".concat(m, ", ") : "").concat(j.join("")),
1546
1546
  "aria-labelledby": m ? undefined : b,
1547
- "aria-required": x,
1547
+ "aria-required": w,
1548
1548
  "data-select-appearance": l,
1549
1549
  "data-test": y ? "multiselect" : "select",
1550
1550
  disabled: p,
@@ -1594,9 +1594,9 @@
1594
1594
  i.availableMatchOptions = [];
1595
1595
  var O;
1596
1596
  var S = 0;
1597
- var x = false;
1597
+ var w = false;
1598
1598
  // used to avoid overwriting the selected item ref in multiple mode
1599
- var w;
1599
+ var x;
1600
1600
  var C = b === "immediately" ? i.getTopValues() : a;
1601
1601
  var k = n.Children.toArray(i.props.children).reduce((function(e, t, o) {
1602
1602
  // ignore Headings and Dividers
@@ -1609,7 +1609,7 @@
1609
1609
  O = true;
1610
1610
  }
1611
1611
  var a = g && g.indexOf(t.props.value) >= 0;
1612
- var l = !!a && !t.props.disabled && !w;
1612
+ var l = !!a && !t.props.disabled && !x;
1613
1613
  var s = c && !d && !p && !m && !y;
1614
1614
  var u = Lt(t.props.value, t.props.label);
1615
1615
  var f = -1;
@@ -1635,14 +1635,14 @@
1635
1635
  }
1636
1636
  });
1637
1637
  if (l) {
1638
- w = true;
1638
+ x = true;
1639
1639
  }
1640
1640
  if (C && C.indexOf(t.props.value) >= 0) {
1641
1641
  if (S === 0) {
1642
1642
  e.splice(S, 0, r().createElement(T.Divider, {
1643
1643
  key: "topDivider"
1644
1644
  }));
1645
- x = true;
1645
+ w = true;
1646
1646
  }
1647
1647
  e.splice(S, 0, v);
1648
1648
  S += 1;
@@ -1668,7 +1668,7 @@
1668
1668
  key: "topDivider"
1669
1669
  }));
1670
1670
  S += 1;
1671
- x = true;
1671
+ w = true;
1672
1672
  }
1673
1673
  k.splice(n ? 0 : o + 1, 0, r().createElement(Oe, {
1674
1674
  label: String(e),
@@ -1706,7 +1706,7 @@
1706
1706
  }));
1707
1707
  // Add the option to add the new value
1708
1708
  if (u && !O && t) {
1709
- var A = x ? S + 1 : S;
1709
+ var A = w ? S + 1 : S;
1710
1710
  k.splice(A, 0, r().createElement(Oe, {
1711
1711
  label: "".concat(t, " (new value)"),
1712
1712
  value: t,
@@ -2002,13 +2002,12 @@
2002
2002
  placement: a,
2003
2003
  hasChildren: !!m.length
2004
2004
  }),
2005
- controlledExternally: o.hasFilter(),
2006
- placement: a !== null && a !== void 0 ? a : undefined,
2007
- onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
2008
- "data-test": "results-menu",
2009
- isLoading: o.props.isLoadingOptions,
2005
+ focusMode: o.hasFilter() ? "never" : undefined,
2010
2006
  id: o.menuId,
2011
- menuId: o.menuListboxId
2007
+ isLoading: o.props.isLoadingOptions,
2008
+ menuId: o.menuListboxId,
2009
+ onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
2010
+ placement: a !== null && a !== void 0 ? a : undefined
2012
2011
  }, I()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), {}, {
2013
2012
  style: l,
2014
2013
  tabIndex: s
@@ -2524,7 +2523,7 @@
2524
2523
  yn(Sn, "Option", nn);
2525
2524
  yn(Sn, "Heading", T.Heading);
2526
2525
  yn(Sn, "Divider", T.Divider);
2527
- /* harmony default export */ const xn = Sn;
2526
+ /* harmony default export */ const wn = Sn;
2528
2527
  // CONCATENATED MODULE: ./src/Select/index.ts
2529
2528
  module.exports = t;
2530
2529
  /******/})();
package/Slider.js CHANGED
@@ -113,7 +113,10 @@
113
113
  var O = function e(t) {
114
114
  var r = t.$error;
115
115
  return (0, h.pick)({
116
- enterprise: h.variables.gray45,
116
+ enterprise: {
117
+ light: h.variables.gray22,
118
+ dark: h.variables.white
119
+ },
117
120
  prisma: r ? h.variables.accentColorNegative : h.variables.contentColorActive
118
121
  });
119
122
  };
@@ -125,7 +128,7 @@
125
128
  prisma: h.variables.neutral100
126
129
  });
127
130
  var $ = (0, h.pick)({
128
- enterprise: h.variables.gray80,
131
+ enterprise: h.variables.gray60,
129
132
  prisma: h.variables.interactiveColorBorder
130
133
  });
131
134
  var _ = function e(t) {
@@ -177,7 +180,10 @@
177
180
  enterprise: "9px",
178
181
  prisma: "10px"
179
182
  }), (0, h.pick)({
180
- enterprise: h.variables.gray45,
183
+ enterprise: {
184
+ light: h.variables.gray22,
185
+ dark: h.variables.white
186
+ },
181
187
  prisma: h.variables.contentColorActive
182
188
  }), (0, h.pick)({
183
189
  enterprise: "6px",
package/StaticContent.js CHANGED
@@ -8,27 +8,27 @@
8
8
  /******/ /* webpack/runtime/compat get default export */
9
9
  /******/ (() => {
10
10
  /******/ // getDefaultExport function for compatibility with non-harmony modules
11
- /******/ e.n = r => {
12
- /******/ var t = r && r.__esModule ?
13
- /******/ () => r["default"]
14
- /******/ : () => r
11
+ /******/ e.n = t => {
12
+ /******/ var r = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
15
  /******/;
16
- e.d(t, {
17
- a: t
16
+ e.d(r, {
17
+ a: r
18
18
  });
19
- /******/ return t;
19
+ /******/ return r;
20
20
  /******/ };
21
21
  /******/ })();
22
22
  /******/
23
23
  /******/ /* webpack/runtime/define property getters */
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
- /******/ e.d = (r, t) => {
27
- /******/ for (var n in t) {
28
- /******/ if (e.o(t, n) && !e.o(r, n)) {
29
- /******/ Object.defineProperty(r, n, {
26
+ /******/ e.d = (t, r) => {
27
+ /******/ for (var n in r) {
28
+ /******/ if (e.o(r, n) && !e.o(t, n)) {
29
+ /******/ Object.defineProperty(t, n, {
30
30
  enumerable: true,
31
- get: t[n]
31
+ get: r[n]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -37,7 +37,7 @@
37
37
  /******/
38
38
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
39
  /******/ (() => {
40
- /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
40
+ /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
41
  /******/;
42
42
  })();
43
43
  /******/
@@ -56,16 +56,16 @@
56
56
  /******/ };
57
57
  /******/ })();
58
58
  /******/
59
- /************************************************************************/ var r = {};
59
+ /************************************************************************/ var t = {};
60
60
  // ESM COMPAT FLAG
61
- e.r(r);
61
+ e.r(t);
62
62
  // EXPORTS
63
- e.d(r, {
63
+ e.d(t, {
64
64
  default: () => /* reexport */ b
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
- const t = require("react");
68
- var n = e.n(t);
67
+ const r = require("react");
68
+ var n = e.n(r);
69
69
  // CONCATENATED MODULE: external "prop-types"
70
70
  const i = require("prop-types");
71
71
  var o = e.n(i);
@@ -73,12 +73,12 @@
73
73
  const a = require("styled-components");
74
74
  var l = e.n(a);
75
75
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
76
- const p = require("@splunk/react-ui/Box");
77
- var c = e.n(p);
76
+ const c = require("@splunk/react-ui/Box");
77
+ var p = e.n(c);
78
78
  // CONCATENATED MODULE: external "@splunk/themes"
79
79
  const s = require("@splunk/themes");
80
80
  // CONCATENATED MODULE: ./src/StaticContent/StaticContentStyles.ts
81
- var u = l()(c()).withConfig({
81
+ var f = l()(p()).withConfig({
82
82
  displayName: "StaticContentStyles__StyledBox",
83
83
  componentId: "sxqyrp-0"
84
84
  })([ "", ";position:relative;margin:0;font-weight:", ";word-wrap:break-word;min-height:", ";padding:", ";[data-inline] + &[data-inline]{margin-left:", ";}" ], s.mixins.reset("flex"), s.variables.fontWeightSemiBold, s.variables.inputHeight, (0,
@@ -96,46 +96,46 @@
96
96
  prisma: s.variables.spacingLarge
97
97
  }));
98
98
  // CONCATENATED MODULE: ./src/StaticContent/StaticContent.tsx
99
- function f() {
100
- f = Object.assign || function(e) {
101
- for (var r = 1; r < arguments.length; r++) {
102
- var t = arguments[r];
103
- for (var n in t) {
104
- if (Object.prototype.hasOwnProperty.call(t, n)) {
105
- e[n] = t[n];
99
+ function u() {
100
+ u = Object.assign || function(e) {
101
+ for (var t = 1; t < arguments.length; t++) {
102
+ var r = arguments[t];
103
+ for (var n in r) {
104
+ if (Object.prototype.hasOwnProperty.call(r, n)) {
105
+ e[n] = r[n];
106
106
  }
107
107
  }
108
108
  }
109
109
  return e;
110
110
  };
111
- return f.apply(this, arguments);
111
+ return u.apply(this, arguments);
112
112
  }
113
- function d(e, r) {
113
+ function d(e, t) {
114
114
  if (e == null) return {};
115
- var t = m(e, r);
115
+ var r = m(e, t);
116
116
  var n, i;
117
117
  if (Object.getOwnPropertySymbols) {
118
118
  var o = Object.getOwnPropertySymbols(e);
119
119
  for (i = 0; i < o.length; i++) {
120
120
  n = o[i];
121
- if (r.indexOf(n) >= 0) continue;
121
+ if (t.indexOf(n) >= 0) continue;
122
122
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
123
- t[n] = e[n];
123
+ r[n] = e[n];
124
124
  }
125
125
  }
126
- return t;
126
+ return r;
127
127
  }
128
- function m(e, r) {
128
+ function m(e, t) {
129
129
  if (e == null) return {};
130
- var t = {};
130
+ var r = {};
131
131
  var n = Object.keys(e);
132
132
  var i, o;
133
133
  for (o = 0; o < n.length; o++) {
134
134
  i = n[o];
135
- if (r.indexOf(i) >= 0) continue;
136
- t[i] = e[i];
135
+ if (t.indexOf(i) >= 0) continue;
136
+ r[i] = e[i];
137
137
  }
138
- return t;
138
+ return r;
139
139
  }
140
140
  var v = {
141
141
  children: o().node,
@@ -147,17 +147,19 @@
147
147
  * This component is intended for use in a control group, either to display a static value or
148
148
  * between two controls.
149
149
  */ function y(e) {
150
- var r = e.children, t = e.inline, i = t === void 0 ? false : t, o = e.size, a = o === void 0 ? "medium" : o, l = d(e, [ "children", "inline", "size" ]);
150
+ var t = e.children, i = e.inline, o = i === void 0 ? false : i, a = e.size, l = d(e, [ "children", "inline", "size" ]);
151
151
  // @docs-props-type StaticContentPropsBase
152
-
153
- return n().createElement(u, f({
152
+ (0, r.useEffect)((function() {
153
+ if (false) {}
154
+ }), [ a ]);
155
+
156
+ return n().createElement(f, u({
154
157
  "data-test": "static-content",
155
- "data-size": a,
156
- inline: i
157
- }, l), r);
158
+ inline: o
159
+ }, l), t);
158
160
  }
159
161
  y.propTypes = v;
160
162
  /* harmony default export */ const b = y;
161
163
  // CONCATENATED MODULE: ./src/StaticContent/index.ts
162
- module.exports = r;
164
+ module.exports = t;
163
165
  /******/})();