@splunk/react-ui 4.40.0 → 4.41.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 (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/Calendar.js +548 -744
  3. package/Date.js +158 -161
  4. package/FormRows.js +93 -97
  5. package/Link.js +21 -19
  6. package/MIGRATION.mdx +24 -3
  7. package/Menu.js +1 -1
  8. package/MessageBar.js +59 -57
  9. package/Multiselect.js +1161 -1278
  10. package/RadioBar.js +19 -15
  11. package/ResultsMenu.js +1208 -1028
  12. package/Select.js +857 -957
  13. package/Slider.js +346 -300
  14. package/SlidingPanels.js +166 -148
  15. package/TabBar.js +187 -172
  16. package/TabLayout.js +8 -8
  17. package/Table.js +7 -3
  18. package/TransitionOpen.js +44 -65
  19. package/package.json +2 -2
  20. package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -1
  21. package/types/src/Calendar/Calendar.d.ts +28 -30
  22. package/types/src/Calendar/MonthHeader.d.ts +12 -22
  23. package/types/src/Color/Color.d.ts +2 -2
  24. package/types/src/Date/Date.d.ts +18 -19
  25. package/types/src/File/File.d.ts +1 -1
  26. package/types/src/FormRows/FormRows.d.ts +5 -60
  27. package/types/src/FormRows/Row.d.ts +1 -1
  28. package/types/src/Link/Link.d.ts +7 -0
  29. package/types/src/Link/index.d.ts +1 -0
  30. package/types/src/Menu/Item.d.ts +1 -1
  31. package/types/src/Menu/Menu.d.ts +1 -1
  32. package/types/src/Multiselect/Option.d.ts +1 -1
  33. package/types/src/Number/Number.d.ts +2 -2
  34. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  35. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  36. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -0
  37. package/types/src/Search/Option.d.ts +1 -1
  38. package/types/src/Select/Option.d.ts +5 -1
  39. package/types/src/Select/OptionBase.d.ts +41 -23
  40. package/types/src/Select/SelectAllOption.d.ts +6 -2
  41. package/types/src/Select/SelectBase.d.ts +2 -30
  42. package/types/src/Slider/Slider.d.ts +7 -16
  43. package/types/src/SlidingPanels/SlidingPanels.d.ts +4 -3
  44. package/types/src/TabBar/TabBar.d.ts +10 -2
  45. package/types/src/TabBar/TabBarContext.d.ts +1 -0
  46. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -0
  47. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -0
  48. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -0
  49. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -0
  50. package/types/src/TabLayout/TabLayout.d.ts +4 -2
  51. package/types/src/Table/Row.d.ts +0 -2
  52. package/types/src/Table/Table.d.ts +0 -2
  53. package/types/src/Table/docs/examples/Complex.d.ts +14 -3
  54. package/types/src/Text/Text.d.ts +2 -2
  55. package/types/src/TextArea/TextArea.d.ts +2 -2
  56. package/types/src/Typography/Typography.d.ts +4 -2
  57. package/types/src/TabBar/docs/examples/IconsInline.d.ts +0 -2
  58. package/types/src/TabBar/docs/examples/IconsSmall.d.ts +0 -2
  59. package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +0 -2
  60. package/types/src/Table/docs/examples/prisma/Complex.d.ts +0 -48
  61. /package/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.d.ts} +0 -0
package/FormRows.js CHANGED
@@ -62,7 +62,7 @@
62
62
  // EXPORTS
63
63
  e.d(t, {
64
64
  Row: () => /* reexport */ Oe,
65
- default: () => /* reexport */ Ge
65
+ default: () => /* reexport */ Ue
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const r = require("react");
@@ -737,13 +737,90 @@
737
737
  disabled: false,
738
738
  header: null
739
739
  };
740
- var Ve = function(e) {
741
- De(o, e);
742
- var t = Be(o);
743
- function o() {
740
+ /**
741
+ * Static function for adding a row.
742
+ *
743
+ * Example Use:
744
+ *
745
+ * onRequestAdd() => {
746
+ * this.setState(state => ({
747
+ * items: FormRows.addRow(
748
+ * <FormRows.Row
749
+ * index={state.items.length}
750
+ * key={createDOMID()}
751
+ * onRequestRemove={this.handleRequestRemove}
752
+ * >
753
+ * <Text />
754
+ * </FormRows.Row>,
755
+ * state.items
756
+ * ),
757
+ * }));
758
+ * };
759
+ *
760
+ * @param element Row element to add.
761
+ * @param items Array of current FormRows to add to.
762
+ * @return New array of FormRows with new Row added.
763
+ */ var Ve = function e(t, r) {
764
+ return r.concat(t);
765
+ };
766
+ /**
767
+ * Static function for moving a row.
768
+ *
769
+ * Example Use:
770
+ *
771
+ * onRequestMove({ fromIndex, toIndex }) => {
772
+ * this.setState(state => ({
773
+ * items: FormRows.moveRow(fromIndex, toIndex, state.items),
774
+ * }));
775
+ * };
776
+ *
777
+ * @param fromIndex Current index of row to move.
778
+ * @param toIndex New index to move row to.
779
+ * @param items Array of current FormRows.
780
+ * @return New array of FormRows arranged in new order.
781
+ */ var Ge = function e(t, n, o) {
782
+ var i = o.filter((function(e, r) {
783
+ return r !== t;
784
+ }));
785
+ i.splice(n, 0, o[t]);
786
+ return i.map((function(e, t) {
787
+
788
+ return (0, r.cloneElement)(e, {
789
+ index: t
790
+ });
791
+ }));
792
+ };
793
+ /**
794
+ * Static function for removing a row.
795
+ *
796
+ * Example Use:
797
+ *
798
+ * onRequestRemove(e, { index }) => {
799
+ * this.setState(state => ({
800
+ * items: FormRows.removeRow(index, state.items),
801
+ * }));
802
+ * };
803
+ *
804
+ * @param index Index of Row to delete.
805
+ * @param items Array of current FormRows.
806
+ * @return New array of FormRows with Row of given index deleted.
807
+ */ var Je = function e(t, n) {
808
+ return n.filter((function(e, r) {
809
+ return r !== t;
810
+ })).map((function(e, t) {
811
+
812
+ return (0, r.cloneElement)(e, {
813
+ index: t
814
+ });
815
+ }));
816
+ };
817
+ var Qe = function(e) {
818
+ De(r, e);
819
+ var t = Be(r);
820
+ function r() {
744
821
  var e;
745
- qe(this, o);
746
- for (var r = arguments.length, i = new Array(r), a = 0; a < r; a++) {
822
+ qe(this, r);
823
+ for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++) {
747
824
  i[a] = arguments[a];
748
825
  }
749
826
  e = t.call.apply(t, [ this ].concat(i));
@@ -783,7 +860,7 @@
783
860
  return e;
784
861
  }
785
862
  // @docs-props-type FormRowsPropsBase
786
- Te(o, [ {
863
+ Te(r, [ {
787
864
  key: "render",
788
865
  value: function e() {
789
866
  var t = this.props, r = t.addLabel, o = t.children, i = t.disabled, a = t.header, l = t.menu, u = t.onRequestAdd, s = t.onRequestMove, p = ke(t, [ "addLabel", "children", "disabled", "header", "menu", "onRequestAdd", "onRequestMove" ]);
@@ -813,97 +890,16 @@
813
890
  $sortable: f
814
891
  })));
815
892
  }
816
- } ], [ {
817
- key: "addRow",
818
- /**
819
- * Static function for adding a row.
820
- *
821
- * Example Use:
822
- *
823
- * onRequestAdd() => {
824
- * this.setState(state => ({
825
- * items: FormRows.addRow(
826
- * <FormRows.Row
827
- * index={state.items.length}
828
- * key={createDOMID()}
829
- * onRequestRemove={this.handleRequestRemove}
830
- * >
831
- * <Text />
832
- * </FormRows.Row>,
833
- * state.items
834
- * ),
835
- * }));
836
- * };
837
- *
838
- * @param element Row element to add.
839
- * @param items Array of current FormRows to add to.
840
- * @return New array of FormRows with new Row added.
841
- */
842
- value: function e(t, r) {
843
- return r.concat(t);
844
- }
845
- /**
846
- * Static function for moving a row.
847
- *
848
- * Example Use:
849
- *
850
- * onRequestMove({ fromIndex, toIndex }) => {
851
- * this.setState(state => ({
852
- * items: FormRows.moveRow(fromIndex, toIndex, state.items),
853
- * }));
854
- * };
855
- *
856
- * @param fromIndex Current index of row to move.
857
- * @param toIndex New index to move row to.
858
- * @param items Array of current FormRows.
859
- * @return New array of FormRows arranged in new order.
860
- */ }, {
861
- key: "moveRow",
862
- value: function e(t, n, o) {
863
- var i = o.filter((function(e, r) {
864
- return r !== t;
865
- }));
866
- i.splice(n, 0, o[t]);
867
- return i.map((function(e, t) {
868
-
869
- return (0, r.cloneElement)(e, {
870
- index: t
871
- });
872
- }));
873
- }
874
- /**
875
- * Static function for removing a row.
876
- *
877
- * Example Use:
878
- *
879
- * onRequestRemove(e, { index }) => {
880
- * this.setState(state => ({
881
- * items: FormRows.removeRow(index, state.items),
882
- * }));
883
- * };
884
- *
885
- * @param index Index of Row to delete.
886
- * @param items Array of current FormRows.
887
- * @return New array of FormRows with Row of given index deleted.
888
- */ }, {
889
- key: "removeRow",
890
- value: function e(t, n) {
891
- return n.filter((function(e, r) {
892
- return r !== t;
893
- })).map((function(e, t) {
894
-
895
- return (0, r.cloneElement)(e, {
896
- index: t
897
- });
898
- }));
899
- }
900
893
  } ]);
901
- return o;
894
+ return r;
902
895
  }(r.Component);
903
- Fe(Ve, "propTypes", $e);
904
- Fe(Ve, "defaultProps", ze);
905
- Fe(Ve, "Row", Oe);
906
- /* harmony default export */ const Ge = Ve;
896
+ Fe(Qe, "propTypes", $e);
897
+ Fe(Qe, "defaultProps", ze);
898
+ Fe(Qe, "Row", Oe);
899
+ Fe(Qe, "addRow", Ve);
900
+ Fe(Qe, "moveRow", Ge);
901
+ Fe(Qe, "removeRow", Je);
902
+ /* harmony default export */ const Ue = Qe;
907
903
  // CONCATENATED MODULE: ./src/FormRows/index.ts
908
904
  module.exports = t;
909
905
  /******/})();
package/Link.js CHANGED
@@ -61,6 +61,7 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
+ StyledLink: () => /* reexport */ x,
64
65
  default: () => /* reexport */ Q
65
66
  });
66
67
  // CONCATENATED MODULE: external "react"
@@ -105,10 +106,10 @@
105
106
  }
106
107
  /* harmony default export */ const O = g;
107
108
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
108
- const j = require("@splunk/react-ui/Clickable");
109
- var x = e.n(j);
109
+ const S = require("@splunk/react-ui/Clickable");
110
+ var j = e.n(S);
110
111
  // CONCATENATED MODULE: ./src/Link/LinkStyles.ts
111
- var S = p()(x()).withConfig({
112
+ var x = p()(j()).withConfig({
112
113
  displayName: "LinkStyles__StyledClickable",
113
114
  componentId: "sc-1hhltcf-0"
114
115
  })([ "", ";color:", ";text-decoration:none;font-size:inherit;font-weight:inherit;line-height:inherit;border-radius:", ";&:not([disabled],[aria-disabled='true']){cursor:pointer;", ";&:focus{box-shadow:", ";outline:0;&:active{box-shadow:none;}}}&[disabled],&[aria-disabled='true']{color:", ";}" ], v.mixins.reset("inline"), (0,
@@ -197,11 +198,11 @@
197
198
  }, N(e, t);
198
199
  }
199
200
  function R(e) {
200
- var t = A();
201
+ var t = L();
201
202
  return function() {
202
- var r, n = B(e);
203
+ var r, n = A(e);
203
204
  if (t) {
204
- var o = B(this).constructor;
205
+ var o = A(this).constructor;
205
206
  r = Reflect.construct(n, arguments, o);
206
207
  } else r = n.apply(this, arguments);
207
208
  return M(this, r);
@@ -216,20 +217,20 @@
216
217
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
217
218
  return e;
218
219
  }
219
- function A() {
220
+ function L() {
220
221
  try {
221
222
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
222
223
  } catch (e) {}
223
- return (A = function t() {
224
+ return (L = function t() {
224
225
  return !!e;
225
226
  })();
226
227
  }
227
- function B(e) {
228
- return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
228
+ function A(e) {
229
+ return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
229
230
  return e.__proto__ || Object.getPrototypeOf(e);
230
- }, B(e);
231
+ }, A(e);
231
232
  }
232
- function L(e, t, r) {
233
+ function B(e, t, r) {
233
234
  return (t = z(t)) in e ? Object.defineProperty(e, t, {
234
235
  value: r,
235
236
  enumerable: !0,
@@ -278,8 +279,8 @@
278
279
  o[i] = arguments[i];
279
280
  }
280
281
  e = t.call.apply(t, [ this ].concat(o));
281
- L(D(e), "component", null);
282
- L(D(e), "handleMount", (function(t) {
282
+ B(D(e), "component", null);
283
+ B(D(e), "handleMount", (function(t) {
283
284
  e.component = t;
284
285
  }));
285
286
  return e;
@@ -306,7 +307,7 @@
306
307
  u = typeof o === "string" ? o : J;
307
308
  }
308
309
 
309
- return n().createElement(S, k({
310
+ return n().createElement(x, k({
310
311
  "data-test": "link",
311
312
  ref: this.handleMount,
312
313
  openInNewContext: a
@@ -315,10 +316,11 @@
315
316
  } ]);
316
317
  return r;
317
318
  }(r.Component);
318
- L(K, "propTypes", H);
319
- L(K, "defaultProps", G);
320
- L(K, u.legacyRefMode, true);
319
+ B(K, "propTypes", H);
320
+ B(K, "defaultProps", G);
321
+ B(K, u.legacyRefMode, true);
321
322
  /* harmony default export */ const Q = K;
322
- // CONCATENATED MODULE: ./src/Link/index.ts
323
+ // exported so that we can style both <a> and <button> tags in MessageBar
324
+ // CONCATENATED MODULE: ./src/Link/index.ts
323
325
  module.exports = t;
324
326
  /******/})();
package/MIGRATION.mdx CHANGED
@@ -15,7 +15,7 @@ This document lists migration guidance for new features and breaking changes.
15
15
 
16
16
  #### Context
17
17
 
18
- The `primary` appearance is no longer supported as primary actions are generally intended for tasks like submitting a form or page, whereas `Select` should be used to make a choice that then gets submitted with a primary `Button`.
18
+ The `primary` appearance is no longer supported as primary actions are generally intended for tasks like submitting a form or page, whereas `Select` should be used to make a choice that then gets submitted with a primary `Button`.
19
19
  Including both a primary `Select` and `Button` conflicts with the visual importance and hierarchy of the page.
20
20
 
21
21
  #### Migration steps
@@ -23,6 +23,27 @@ Including both a primary `Select` and `Button` conflicts with the visual importa
23
23
  * If `Select` was being used as a primary action but there are some variants for how that primary action works (e.g. Save vs. Save As), use `SplitButton`.
24
24
  * Otherwise use `Select` with the `default` appearance paired with a primary `Button` to submit.
25
25
 
26
+ ### Deprecated `TabBar` and `TabLayout`'s `iconSize` prop
27
+
28
+ #### Context
29
+
30
+ The `iconSize` prop has two major issues:
31
+
32
+ * Despite its name, it controls both size and position, which is both confusing to users and makes it difficult to control those independently.
33
+ * It does not correctly set the icon size for the new icons introduced in `@splunk/react-icons@4`.
34
+
35
+ To eliminate these issues, we have deprecated the `iconSize` prop.
36
+
37
+ #### Migration steps
38
+
39
+ Remove usages of the `iconSize` prop.
40
+
41
+ * Icon position can now be controlled with the new `iconPosition` prop.
42
+ * Icon size can be set using `@splunk/react-icons` APIs.
43
+ * If you are using the new icons in `react-icons@4`, you can set size with the `height` and `width` props.
44
+ * If you are using `react-icons@3` or using the `/enterprise` path in `react-icons@4`,
45
+ the `size` prop can be set to `"18px"` to match `iconSize="small"` or `"36px"` to match `iconSize="large"`.
46
+
26
47
  ## 4.39.0
27
48
 
28
49
  ### Deprecated `TabBar` and `TabLayout`'s `appearance` prop
@@ -49,8 +70,8 @@ To eliminate these issues, we have deprecated the `appearance` prop.
49
70
 
50
71
  Remove usages of the `appearance` prop:
51
72
 
52
- 1) If you were using `appearance="navigation"`, that is the default appearance and removing the prop will have no effect.
53
- 2) If you were using `appearance="context"`, the tabs will render with the default appearance.
73
+ * If you were using `appearance="navigation"`, that is the default appearance and removing the prop will have no effect.
74
+ * If you were using `appearance="context"`, the tabs will render with the default appearance.
54
75
 
55
76
  ### Deprecated `Button`'s `selected` prop
56
77
 
package/Menu.js CHANGED
@@ -282,7 +282,7 @@
282
282
  // so we set them to aria-hidden to prevent that
283
283
 
284
284
  return n().createElement(E, {
285
- "aria-hidden": s === "listbox"
285
+ "aria-hidden": s === "listbox" ? true : undefined
286
286
  }, d);
287
287
  }
288
288
  $.propTypes = H;
package/MessageBar.js CHANGED
@@ -61,7 +61,7 @@
61
61
  e.r(r);
62
62
  // EXPORTS
63
63
  e.d(r, {
64
- default: () => /* reexport */ se
64
+ default: () => /* reexport */ ie
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
67
  const a = require("react");
@@ -90,10 +90,10 @@
90
90
  var y = e.n(h);
91
91
  // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
92
92
  const m = require("@splunk/react-icons/ExclamationCircle");
93
- var f = e.n(m);
93
+ var k = e.n(m);
94
94
  // CONCATENATED MODULE: external "@splunk/react-icons/InformationCircle"
95
- const k = require("@splunk/react-icons/InformationCircle");
96
- var x = e.n(k);
95
+ const f = require("@splunk/react-icons/InformationCircle");
96
+ var x = e.n(f);
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);
@@ -115,11 +115,13 @@
115
115
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
116
116
  const N = require("@splunk/react-ui/Clickable");
117
117
  var R = e.n(N);
118
+ // CONCATENATED MODULE: external "@splunk/react-ui/Link"
119
+ const T = require("@splunk/react-ui/Link");
118
120
  // CONCATENATED MODULE: ./src/MessageBar/MessageBarStyles.ts
119
- var T = g().div.withConfig({
121
+ var W = g().div.withConfig({
120
122
  displayName: "MessageBarStyles__MessageBarContent",
121
123
  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;", ";}}" ], u.mixins.reset("inline"), u.variables.borderRadius, (0,
124
+ })([ "", ";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"), /* sc-sel */ T.StyledLink, u.variables.borderRadius, (0,
123
125
  u.pick)({
124
126
  enterprise: {
125
127
  dark: (0, b.css)([ "box-shadow:0 0 0 2px ", ";" ], u.variables.gray80),
@@ -135,7 +137,7 @@
135
137
  dark: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black)
136
138
  }
137
139
  }));
138
- var W = g()(R()).withConfig({
140
+ var P = g()(R()).withConfig({
139
141
  displayName: "MessageBarStyles__MessageBarCloseWrapper",
140
142
  componentId: "sc-1uyhzza-1"
141
143
  })([ "", ";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,
@@ -173,40 +175,40 @@
173
175
  dark: (0, b.css)([ "box-shadow:0 0 0 3px ", ";" ], u.variables.black)
174
176
  }))
175
177
  }));
176
- var P = (0, b.css)([ "margin-left:auto;" ]);
177
- var $ = g()(y()).withConfig({
178
+ var $ = (0, b.css)([ "margin-left:auto;" ]);
179
+ var A = g()(y()).withConfig({
178
180
  displayName: "MessageBarStyles__StyledCheckCircleIcon",
179
181
  componentId: "sc-1uyhzza-2"
180
- })([ "", "" ], P);
181
- var A = g()(f()).withConfig({
182
+ })([ "", "" ], $);
183
+ var L = g()(k()).withConfig({
182
184
  displayName: "MessageBarStyles__StyledExclamationCircleIcon",
183
185
  componentId: "sc-1uyhzza-3"
184
- })([ "", "" ], P);
185
- var L = g()(x()).withConfig({
186
+ })([ "", "" ], $);
187
+ var V = g()(x()).withConfig({
186
188
  displayName: "MessageBarStyles__StyledInformationCircleIcon",
187
189
  componentId: "sc-1uyhzza-4"
188
- })([ "", "" ], P);
189
- var V = g()(w()).withConfig({
190
+ })([ "", "" ], $);
191
+ var D = g()(w()).withConfig({
190
192
  displayName: "MessageBarStyles__StyledExclamationTriangleIcon",
191
193
  componentId: "sc-1uyhzza-5"
192
- })([ "", "" ], P);
193
- var D = g()(_()).withConfig({
194
+ })([ "", "" ], $);
195
+ var H = g()(_()).withConfig({
194
196
  displayName: "MessageBarStyles__StyledEnterpriseErrorIcon",
195
197
  componentId: "sc-1uyhzza-6"
196
- })([ "", " color:", ";" ], P, u.variables.errorColor);
197
- var H = g()(z()).withConfig({
198
+ })([ "", " color:", ";" ], $, u.variables.errorColor);
199
+ var X = g()(z()).withConfig({
198
200
  displayName: "MessageBarStyles__StyledEnterpriseInfoCircleIcon",
199
201
  componentId: "sc-1uyhzza-7"
200
- })([ "", " color:", ";" ], P, u.variables.infoColor);
201
- var X = g()(E()).withConfig({
202
+ })([ "", " color:", ";" ], $, u.variables.infoColor);
203
+ var F = g()(E()).withConfig({
202
204
  displayName: "MessageBarStyles__StyledEnterpriseSuccessIcon",
203
205
  componentId: "sc-1uyhzza-8"
204
- })([ "", " color:", ";" ], P, u.variables.successColor);
205
- var F = g()(B()).withConfig({
206
+ })([ "", " color:", ";" ], $, u.variables.successColor);
207
+ var G = g()(B()).withConfig({
206
208
  displayName: "MessageBarStyles__StyledEnterpriseWarningIcon",
207
209
  componentId: "sc-1uyhzza-9"
208
- })([ "", " color:", ";" ], P, u.variables.warningColor);
209
- var G = g()(j()).withConfig({
210
+ })([ "", " color:", ";" ], $, u.variables.warningColor);
211
+ var J = g()(j()).withConfig({
210
212
  displayName: "MessageBarStyles__MessageBarWrapper",
211
213
  componentId: "sc-1uyhzza-10"
212
214
  })([ "", ";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) {
@@ -266,8 +268,8 @@
266
268
  }))
267
269
  }));
268
270
  // CONCATENATED MODULE: ./src/MessageBar/MessageBar.tsx
269
- function J() {
270
- return J = Object.assign ? Object.assign.bind() : function(e) {
271
+ function K() {
272
+ return K = Object.assign ? Object.assign.bind() : function(e) {
271
273
  for (var r = 1; r < arguments.length; r++) {
272
274
  var a = arguments[r];
273
275
  for (var s in a) {
@@ -275,11 +277,11 @@
275
277
  }
276
278
  }
277
279
  return e;
278
- }, J.apply(null, arguments);
280
+ }, K.apply(null, arguments);
279
281
  }
280
- function K(e, r) {
282
+ function Q(e, r) {
281
283
  if (null == e) return {};
282
- var a, s, i = Q(e, r);
284
+ var a, s, i = U(e, r);
283
285
  if (Object.getOwnPropertySymbols) {
284
286
  var n = Object.getOwnPropertySymbols(e);
285
287
  for (s = 0; s < n.length; s++) {
@@ -288,7 +290,7 @@
288
290
  }
289
291
  return i;
290
292
  }
291
- function Q(e, r) {
293
+ function U(e, r) {
292
294
  if (null == e) return {};
293
295
  var a = {};
294
296
  for (var s in e) {
@@ -299,39 +301,39 @@
299
301
  }
300
302
  return a;
301
303
  }
302
- var U = {
304
+ var Y = {
303
305
  children: n().node.isRequired,
304
306
  onRequestClose: n().func,
305
307
  type: n().oneOf([ "info", "success", "warning", "error" ]).isRequired
306
308
  };
307
- var Y = Object.freeze({
309
+ var Z = Object.freeze({
308
310
  info: (0, v._)("Info"),
309
311
  warning: (0, v._)("Warning"),
310
312
  error: (0, v._)("Alert"),
311
313
  success: (0, v._)("Success")
312
314
  });
313
- var Z = Object.freeze({
314
- info: H,
315
- warning: F,
316
- error: D,
317
- success: X
318
- });
319
315
  var ee = Object.freeze({
320
- info: L,
321
- warning: V,
322
- error: A,
323
- success: $
316
+ info: X,
317
+ warning: G,
318
+ error: H,
319
+ success: F
320
+ });
321
+ var re = Object.freeze({
322
+ info: V,
323
+ warning: D,
324
+ error: L,
325
+ success: A
324
326
  });
325
- var re = "24px";
326
- function ae(e) {
327
- var r = e.children, a = e.type, i = e.onRequestClose, n = K(e, [ "children", "type", "onRequestClose" ]);
327
+ var ae = "24px";
328
+ function se(e) {
329
+ var r = e.children, a = e.type, i = e.onRequestClose, n = Q(e, [ "children", "type", "onRequestClose" ]);
328
330
  // @docs-props-type MessageBarPropsBase
329
331
  var o = (0, u.useSplunkTheme)(), l = o.isEnterprise;
330
- var p = l && a === "error" ? "22px" : re;
331
- var b = l && a === "warning" ? "21px" : re;
332
+ var p = l && a === "error" ? "22px" : ae;
333
+ var b = l && a === "warning" ? "21px" : ae;
332
334
  var g;
333
335
  if (l) {
334
- var h = Z[a];
336
+ var h = ee[a];
335
337
  g = s().createElement(h, {
336
338
  height: b,
337
339
  width: p,
@@ -341,27 +343,27 @@
341
343
  "data-test": "icon"
342
344
  });
343
345
  } else {
344
- var y = ee[a];
346
+ var y = re[a];
345
347
  g = s().createElement(y, {
346
- height: re,
347
- width: re,
348
+ height: ae,
349
+ width: ae,
348
350
  variant: "filled",
349
351
  "aria-hidden": true,
350
352
  "data-test": "icon"
351
353
  });
352
354
  }
353
355
 
354
- return s().createElement(G, J({
356
+ return s().createElement(J, K({
355
357
  $type: a,
356
358
  "data-test": "message-bar",
357
359
  "data-test-type": a
358
360
  }, n, {
359
361
  role: "region",
360
362
  $hasCloseButton: Boolean(i)
361
- }), g, s().createElement(d(), null, Y[a]), s().createElement(T, {
363
+ }), g, s().createElement(d(), null, Z[a]), s().createElement(W, {
362
364
  $type: a,
363
365
  "data-test": "content"
364
- }, r), i && s().createElement(W, {
366
+ }, r), i && s().createElement(P, {
365
367
  $type: a,
366
368
  onClick: i
367
369
  }, l ? s().createElement(c(), {
@@ -377,8 +379,8 @@
377
379
  width: "19px"
378
380
  }), s().createElement(d(), null, (0, v._)("Close"))));
379
381
  }
380
- ae.propTypes = U;
381
- /* harmony default export */ const se = ae;
382
+ se.propTypes = Y;
383
+ /* harmony default export */ const ie = se;
382
384
  // CONCATENATED MODULE: ./src/MessageBar/index.ts
383
385
  module.exports = r;
384
386
  /******/})();