@splunk/react-ui 4.21.1 → 4.22.1

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/Date.js CHANGED
@@ -385,8 +385,8 @@
385
385
  });
386
386
  }
387
387
  }));
388
- W(R(a), "handleFocus", (function(e) {
389
- var t, n;
388
+ W(R(a), "handleFocus", (function(e, t) {
389
+ var n, o;
390
390
  if (a.focusCalledInternally) {
391
391
  a.focusCalledInternally = false;
392
392
  } else if (!a.props.inputOnly) {
@@ -394,7 +394,7 @@
394
394
  calendarOpen: true
395
395
  });
396
396
  }
397
- (t = (n = a.props).onFocus) === null || t === void 0 ? void 0 : t.call(n, e);
397
+ (n = (o = a.props).onFocus) === null || n === void 0 ? void 0 : n.call(o, e, t);
398
398
  }));
399
399
  W(R(a), "handleClick", (function(e) {
400
400
  var t, n, o;
package/List.js CHANGED
@@ -62,7 +62,7 @@
62
62
  // EXPORTS
63
63
  e.d(t, {
64
64
  Item: () => /* reexport */ v,
65
- default: () => /* reexport */ S
65
+ default: () => /* reexport */ P
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const r = require("react");
@@ -76,11 +76,11 @@
76
76
  // CONCATENATED MODULE: external "@splunk/themes"
77
77
  const c = require("@splunk/themes");
78
78
  // CONCATENATED MODULE: ./src/List/ListStyles.ts
79
- var f = a().ol.withConfig({
80
- displayName: "ListStyles__StyledOl",
79
+ var f = a().ul.withConfig({
80
+ displayName: "ListStyles__StyledUl",
81
81
  componentId: "sc-1yyh8l9-0"
82
82
  })([ "", ";", ";list-style-type:", ";padding-left:40px;margin-bottom:1.3em;margin-top:1em;" ], c.mixins.reset("block"), c.mixins.typography("body"), (function(e) {
83
- var t = e.$type;
83
+ var t = e.$listStyleType;
84
84
  return t;
85
85
  }));
86
86
  var p = a().li.withConfig({
@@ -194,21 +194,26 @@
194
194
  ordered: i().bool,
195
195
  type: i().oneOf([ "disc", "decimal", "lower-alpha", "upper-alpha" ])
196
196
  };
197
- function j(e) {
198
- var t = e.children, r = e.elementRef, o = e.type, i = o === void 0 ? "disc" : o, l = e.ordered, a = O(e, [ "children", "elementRef", "type", "ordered" ]);
197
+ var j = {
198
+ type: "disc"
199
+ };
200
+ function S(e) {
201
+ var t = e.children, r = e.elementRef, o = e.type, i = e.ordered, l = O(e, [ "children", "elementRef", "type", "ordered" ]);
199
202
  // @docs-props-type ListPropsBase
203
+ // Default prop value is "disc", we cannot determine if user or defaultProps is setting the value
200
204
  if (false) {}
201
205
 
202
206
  return n().createElement(f, b({
203
- as: !l && i === "disc" ? "ul" : "ol",
207
+ as: i || o !== "disc" ? "ol" : "ul",
204
208
  "data-test": "list",
205
209
  ref: r,
206
- $type: l || i === "decimal" ? "decimal" || 0 || 0 : i
207
- }, a), t);
210
+ $listStyleType: i ? "decimal" : o
211
+ }, l), t);
208
212
  }
209
- j.propTypes = g;
210
- j.Item = v;
211
- /* harmony default export */ const S = j;
213
+ S.propTypes = g;
214
+ S.defaultProps = j;
215
+ S.Item = v;
216
+ /* harmony default export */ const P = S;
212
217
  // CONCATENATED MODULE: ./src/List/index.ts
213
218
  module.exports = t;
214
219
  /******/})();
package/Menu.js CHANGED
@@ -72,10 +72,10 @@
72
72
  var n = e.n(r);
73
73
  // CONCATENATED MODULE: external "prop-types"
74
74
  const i = require("prop-types");
75
- var a = e.n(i);
75
+ var o = e.n(i);
76
76
  // CONCATENATED MODULE: external "lodash/omit"
77
- const o = require("lodash/omit");
78
- var l = e.n(o);
77
+ const a = require("lodash/omit");
78
+ var l = e.n(a);
79
79
  // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
80
80
  const s = require("@splunk/react-ui/Popover");
81
81
  // CONCATENATED MODULE: external "@splunk/ui-utils/focus"
@@ -128,10 +128,10 @@
128
128
  */ function k(e) {
129
129
  var t = y({}, e);
130
130
  // @docs-props-type DividerPropsBase
131
- var i = (0, r.useContext)(h), a = i.role;
131
+ var i = (0, r.useContext)(h), o = i.role;
132
132
 
133
133
  return n().createElement(m, y({
134
- "aria-hidden": a === "listbox",
134
+ "aria-hidden": o === "listbox",
135
135
  "data-test": "divider",
136
136
  role: "separator"
137
137
  }, t));
@@ -231,9 +231,9 @@
231
231
  var r = R(e, t);
232
232
  var n, i;
233
233
  if (Object.getOwnPropertySymbols) {
234
- var a = Object.getOwnPropertySymbols(e);
235
- for (i = 0; i < a.length; i++) {
236
- n = a[i];
234
+ var o = Object.getOwnPropertySymbols(e);
235
+ for (i = 0; i < o.length; i++) {
236
+ n = o[i];
237
237
  if (t.indexOf(n) >= 0) continue;
238
238
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
239
239
  r[n] = e[n];
@@ -245,36 +245,36 @@
245
245
  if (e == null) return {};
246
246
  var r = {};
247
247
  var n = Object.keys(e);
248
- var i, a;
249
- for (a = 0; a < n.length; a++) {
250
- i = n[a];
248
+ var i, o;
249
+ for (o = 0; o < n.length; o++) {
250
+ i = n[o];
251
251
  if (t.indexOf(i) >= 0) continue;
252
252
  r[i] = e[i];
253
253
  }
254
254
  return r;
255
255
  }
256
256
  var q = {
257
- children: a().node,
258
- title: a().bool,
259
- outerStyle: a().object
257
+ children: o().node,
258
+ title: o().bool,
259
+ outerStyle: o().object
260
260
  };
261
261
  /**
262
262
  * A non-interactive `Menu` item used to separate and label groups of `Menu` items.
263
263
  */ function N(e) {
264
- var t = e.children, i = e.title, a = e.outerStyle, o = D(e, [ "children", "title", "outerStyle" ]);
264
+ var t = e.children, i = e.title, o = e.outerStyle, a = D(e, [ "children", "title", "outerStyle" ]);
265
265
  var l = (0, r.useContext)(h), s = l.role;
266
266
  var c = C()(), p = c.family;
267
267
  var u = p === "prisma" ? n().createElement(P, T({
268
268
  as: i ? "h4" : "h5",
269
- style: a,
269
+ style: o,
270
270
  "data-test": "heading"
271
- }, o), t) : n().createElement(S(), T({
272
- style: j(j({}, a), {}, {
271
+ }, a), t) : n().createElement(S(), T({
272
+ style: j(j({}, o), {}, {
273
273
  margin: 0
274
274
  }),
275
275
  level: i ? 4 : "ss",
276
276
  "data-test": "heading"
277
- }, o), t);
277
+ }, a), t);
278
278
  // headings are not supported in role="listbox"
279
279
  // this causes Firefox to incorrectly read the total number
280
280
  // of items in the list if it contains a heading or divider
@@ -292,8 +292,8 @@
292
292
  // CONCATENATED MODULE: external "lodash/isString"
293
293
  const F = require("lodash/isString");
294
294
  var $ = e.n(F);
295
- // CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallRight"
296
- const A = require("@splunk/react-icons/CaretSmallRight");
295
+ // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
296
+ const A = require("@splunk/react-icons/ChevronRight");
297
297
  var M = e.n(A);
298
298
  // CONCATENATED MODULE: external "@splunk/react-icons/Checkmark"
299
299
  const K = require("@splunk/react-icons/Checkmark");
@@ -449,14 +449,14 @@
449
449
  displayName: "ItemStyles__StyledInnerWrapper",
450
450
  componentId: "sc-4kc053-6"
451
451
  })([ "display:flex;align-items:flex-start;" ]);
452
- var ae = v().span.withConfig({
452
+ var oe = v().span.withConfig({
453
453
  displayName: "ItemStyles__StyledTitleAndDescriptionWrapper",
454
454
  componentId: "sc-4kc053-7"
455
455
  })([ "max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;", "" ], (function(e) {
456
456
  var t = e.$truncate;
457
457
  return t && (0, f.css)([ "white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" ]);
458
458
  }));
459
- var oe = v().div.withConfig({
459
+ var ae = v().div.withConfig({
460
460
  displayName: "ItemStyles__StyledLabel",
461
461
  componentId: "sc-4kc053-8"
462
462
  })([ "overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;", "" ], (function(e) {
@@ -476,10 +476,12 @@
476
476
  var se = v().span.withConfig({
477
477
  displayName: "ItemStyles__StyledSubmenu",
478
478
  componentId: "sc-4kc053-10"
479
- })([ "float:right;padding-left:", ";color:", ";" ], b.variables.spacingSmall, (0,
479
+ })([ "float:right;padding-left:", ";color:", ";", "" ], b.variables.spacingSmall, (0,
480
480
  b.pick)({
481
481
  prisma: "inherit",
482
482
  enterprise: b.variables.textGray
483
+ }), (0, b.pick)({
484
+ prisma: (0, f.css)([ "& > svg{width:20px;height:20px;}" ])
483
485
  }));
484
486
  // CONCATENATED MODULE: external "@splunk/react-icons/ArrowSquareTopRight"
485
487
  const ce = require("@splunk/react-icons/ArrowSquareTopRight");
@@ -582,9 +584,9 @@
582
584
  var r = Ce(e, t);
583
585
  var n, i;
584
586
  if (Object.getOwnPropertySymbols) {
585
- var a = Object.getOwnPropertySymbols(e);
586
- for (i = 0; i < a.length; i++) {
587
- n = a[i];
587
+ var o = Object.getOwnPropertySymbols(e);
588
+ for (i = 0; i < o.length; i++) {
589
+ n = o[i];
588
590
  if (t.indexOf(n) >= 0) continue;
589
591
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
590
592
  r[n] = e[n];
@@ -596,9 +598,9 @@
596
598
  if (e == null) return {};
597
599
  var r = {};
598
600
  var n = Object.keys(e);
599
- var i, a;
600
- for (a = 0; a < n.length; a++) {
601
- i = n[a];
601
+ var i, o;
602
+ for (o = 0; o < n.length; o++) {
603
+ i = n[o];
602
604
  if (t.indexOf(i) >= 0) continue;
603
605
  r[i] = e[i];
604
606
  }
@@ -648,8 +650,8 @@
648
650
  return function r() {
649
651
  var n = Ne(e), i;
650
652
  if (t) {
651
- var a = Ne(this).constructor;
652
- i = Reflect.construct(n, arguments, a);
653
+ var o = Ne(this).constructor;
654
+ i = Reflect.construct(n, arguments, o);
653
655
  } else {
654
656
  i = n.apply(this, arguments);
655
657
  }
@@ -699,34 +701,34 @@
699
701
  return e;
700
702
  }
701
703
  var Fe = {
702
- active: a().bool,
703
- children: a().node,
704
- description: a().string,
705
- descriptionPosition: a().oneOf([ "right", "bottom" ]),
706
- disabled: a().bool,
707
- elementRef: a().oneOfType([ a().func, a().object ]),
708
- hasSubmenu: a().bool,
709
- icon: a().node,
704
+ active: o().bool,
705
+ children: o().node,
706
+ description: o().string,
707
+ descriptionPosition: o().oneOf([ "right", "bottom" ]),
708
+ disabled: o().bool,
709
+ elementRef: o().oneOfType([ o().func, o().object ]),
710
+ hasSubmenu: o().bool,
711
+ icon: o().node,
710
712
  /** @private. The internal key of the tab */
711
- itemKey: a().number,
712
- matchRanges: a().arrayOf(a().shape({
713
- start: a().number.isRequired,
714
- end: a().number.isRequired
713
+ itemKey: o().number,
714
+ matchRanges: o().arrayOf(o().shape({
715
+ start: o().number.isRequired,
716
+ end: o().number.isRequired
715
717
  })),
716
- onClick: a().func,
718
+ onClick: o().func,
717
719
  /** @private */
718
- onFocus: a().func,
719
- openInNewContext: a().bool,
720
+ onFocus: o().func,
721
+ openInNewContext: o().bool,
720
722
  /** @private */
721
- preventFocus: a().bool,
722
- role: a().oneOf([ "menuitem", "menuitemradio", "menuitemcheckbox", "listboxitem", "option" ]),
723
- selectable: a().bool,
724
- selectableAppearance: a().oneOf([ "checkmark", "checkbox" ]),
725
- selected: a().bool,
723
+ preventFocus: o().bool,
724
+ role: o().oneOf([ "menuitem", "menuitemradio", "menuitemcheckbox", "listboxitem", "option" ]),
725
+ selectable: o().bool,
726
+ selectableAppearance: o().oneOf([ "checkmark", "checkbox" ]),
727
+ selected: o().bool,
726
728
  /** @private */
727
- splunkTheme: a().object,
728
- to: a().string,
729
- truncate: a().bool
729
+ splunkTheme: o().object,
730
+ to: o().string,
731
+ truncate: o().bool
730
732
  };
731
733
  var $e = {
732
734
  active: false,
@@ -791,11 +793,11 @@
791
793
  if (!i || !$()(r)) {
792
794
  return r;
793
795
  }
794
- var a = [];
796
+ var o = [];
795
797
  // before first match. May be empty string.
796
- a.push(r.substring(0, i[0].start));
798
+ o.push(r.substring(0, i[0].start));
797
799
  i.forEach((function(e, t) {
798
- a.push(
800
+ o.push(
799
801
 
800
802
  // eslint-disable-next-line react/no-array-index-key
801
803
  n().createElement(le, {
@@ -803,19 +805,19 @@
803
805
  "data-test": "match"
804
806
  }, r.substring(e.start, e.end)));
805
807
  if (t < i.length - 1) {
806
- a.push(r.substring(e.end, i[t + 1].start));
808
+ o.push(r.substring(e.end, i[t + 1].start));
807
809
  } else {
808
- a.push(r.substring(e.end, r.length));
810
+ o.push(r.substring(e.end, r.length));
809
811
  }
810
812
  }));
811
- return a;
813
+ return o;
812
814
  }
813
815
  }, {
814
816
  key: "render",
815
817
  value: function e() {
816
- var t = this.props, r = t.active, i = t.children, a = t.hasSubmenu, o = t.selectable, s = t.selectableAppearance, c = t.selected, p = t.icon, u = t.description, d = t.disabled, f = t.onClick, v = t.preventFocus, b = t.role, m = t.splunkTheme, h = t.to, y = t.truncate, g = t.descriptionPosition, k = t.openInNewContext, x = Oe(t, [ "active", "children", "hasSubmenu", "selectable", "selectableAppearance", "selected", "icon", "description", "disabled", "onClick", "preventFocus", "role", "splunkTheme", "to", "truncate", "descriptionPosition", "openInNewContext" ]);
818
+ var t = this.props, r = t.active, i = t.children, o = t.hasSubmenu, a = t.selectable, s = t.selectableAppearance, c = t.selected, p = t.icon, u = t.description, d = t.disabled, f = t.onClick, v = t.preventFocus, b = t.role, m = t.splunkTheme, h = t.to, y = t.truncate, g = t.descriptionPosition, k = t.openInNewContext, x = Oe(t, [ "active", "children", "hasSubmenu", "selectable", "selectableAppearance", "selected", "icon", "description", "disabled", "onClick", "preventFocus", "role", "splunkTheme", "to", "truncate", "descriptionPosition", "openInNewContext" ]);
817
819
  var w = m.isEnterprise, S = m.isPrisma;
818
- var O = o || c;
820
+ var O = a || c;
819
821
  var C = {
820
822
  nonselectable: "menuitem",
821
823
  checkmark: "menuitemradio",
@@ -823,7 +825,7 @@
823
825
  }[O ? s : "nonselectable"];
824
826
  // aria-checked updates only with checkmark appearance for now SUI-2578
825
827
  var I = {
826
- "aria-haspopup": a ? true : undefined,
828
+ "aria-haspopup": o ? true : undefined,
827
829
  "aria-checked": s === "checkmark" && c ? true : undefined
828
830
  };
829
831
  var P = S ? "right" : "left";
@@ -863,22 +865,19 @@
863
865
  openInNewContext: k
864
866
  }, I, l()(x, "onFocus"), {
865
867
  elementRef: this.handleMount
866
- }), P === "left" && E, o && s === "checkbox" && n().createElement(ne, {
868
+ }), P === "left" && E, a && s === "checkbox" && n().createElement(ne, {
867
869
  interactive: false,
868
870
  selected: c,
869
871
  selectedLabel: "Selected",
870
872
  value: "menu-item"
871
- }), a && n().createElement(se, null, w ? n().createElement(G(), {
873
+ }), o && n().createElement(se, null, w ? n().createElement(G(), {
872
874
  hideDefaultTooltip: true,
873
875
  screenReaderText: null
874
- }) : n().createElement(M(), {
875
- height: "24",
876
- width: "24"
877
- })), _ && n().createElement(Z, {
876
+ }) : n().createElement(M(), null)), _ && n().createElement(Z, {
878
877
  "data-test": "description"
879
- }, u), n().createElement(ie, null, p && n().createElement(te, null, p), n().createElement(ae, {
878
+ }, u), n().createElement(ie, null, p && n().createElement(te, null, p), n().createElement(oe, {
880
879
  $truncate: y
881
- }, n().createElement(oe, {
880
+ }, n().createElement(ae, {
882
881
  $truncate: y,
883
882
  "data-test": "label"
884
883
  }, this.renderLabel(), k && n().createElement(ge, null)), j && n().createElement(X, {
@@ -929,9 +928,9 @@
929
928
  function Ve(e, t, r) {
930
929
  for (var n = 0; n < e.length; n += 1) {
931
930
  var i;
932
- var a = (n + r) % e.length;
933
- if (((i = e[a].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
934
- return e[a];
931
+ var o = (n + r) % e.length;
932
+ if (((i = e[o].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
933
+ return e[o];
935
934
  }
936
935
  }
937
936
  return e[t];
@@ -939,9 +938,9 @@
939
938
  function Qe(e, t, r) {
940
939
  for (var n = e.length; n > 0; n -= 1) {
941
940
  var i;
942
- var a = (n + r) % e.length;
943
- if (((i = e[a].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
944
- return e[a];
941
+ var o = (n + r) % e.length;
942
+ if (((i = e[o].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
943
+ return e[o];
945
944
  }
946
945
  }
947
946
  return e[t];
@@ -966,9 +965,9 @@
966
965
  var r = Xe(e, t);
967
966
  var n, i;
968
967
  if (Object.getOwnPropertySymbols) {
969
- var a = Object.getOwnPropertySymbols(e);
970
- for (i = 0; i < a.length; i++) {
971
- n = a[i];
968
+ var o = Object.getOwnPropertySymbols(e);
969
+ for (i = 0; i < o.length; i++) {
970
+ n = o[i];
972
971
  if (t.indexOf(n) >= 0) continue;
973
972
  if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
974
973
  r[n] = e[n];
@@ -980,34 +979,34 @@
980
979
  if (e == null) return {};
981
980
  var r = {};
982
981
  var n = Object.keys(e);
983
- var i, a;
984
- for (a = 0; a < n.length; a++) {
985
- i = n[a];
982
+ var i, o;
983
+ for (o = 0; o < n.length; o++) {
984
+ i = n[o];
986
985
  if (t.indexOf(i) >= 0) continue;
987
986
  r[i] = e[i];
988
987
  }
989
988
  return r;
990
989
  }
991
990
  var Ze = {
992
- children: a().node,
991
+ children: o().node,
993
992
  /** @private */
994
- controlledExternally: a().bool,
995
- elementRef: a().oneOfType([ a().func, a().object ]),
996
- retainFocus: a().bool,
997
- stopScrollPropagation: a().bool
993
+ controlledExternally: o().bool,
994
+ elementRef: o().oneOfType([ o().func, o().object ]),
995
+ retainFocus: o().bool,
996
+ stopScrollPropagation: o().bool
998
997
  };
999
998
  var et = {
1000
999
  stopScrollPropagation: false
1001
1000
  };
1002
1001
  function tt(e) {
1003
- var t = e.children, i = e.controlledExternally, a = e.elementRef, o = e.retainFocus, u = e.stopScrollPropagation, f = Je(e, [ "children", "controlledExternally", "elementRef", "retainFocus", "stopScrollPropagation" ]);
1002
+ var t = e.children, i = e.controlledExternally, o = e.elementRef, a = e.retainFocus, u = e.stopScrollPropagation, f = Je(e, [ "children", "controlledExternally", "elementRef", "retainFocus", "stopScrollPropagation" ]);
1004
1003
  // @docs-props-type MenuPropsBase
1005
1004
  var v = (0, r.useContext)(h), b = v.role, m = b === void 0 ? "menu" : b;
1006
1005
  var y = (0, r.useContext)(s.PopoverContext), g = y.retainFocus;
1007
1006
  var k = d()();
1008
1007
  var x = true;
1009
- if (o != null) {
1010
- x = o;
1008
+ if (a != null) {
1009
+ x = a;
1011
1010
  } else if (g != null) {
1012
1011
  x = g;
1013
1012
  }
@@ -1037,8 +1036,8 @@
1037
1036
  i = Qe(S, n, S.length - 1);
1038
1037
  }
1039
1038
  if (i != null) {
1040
- var a, o;
1041
- (a = i.current) === null || a === void 0 ? void 0 : (o = a.focus) === null || o === void 0 ? void 0 : o.call(a);
1039
+ var o, a;
1040
+ (o = i.current) === null || o === void 0 ? void 0 : (a = o.focus) === null || a === void 0 ? void 0 : a.call(o);
1042
1041
  t.preventDefault();
1043
1042
  }
1044
1043
  };
@@ -1048,7 +1047,7 @@
1048
1047
  w.current = r;
1049
1048
  }
1050
1049
  }), []);
1051
- var T = r.Children.toArray(t).filter(r.isValidElement).reduce((function(e, t, r, a) {
1050
+ var T = r.Children.toArray(t).filter(r.isValidElement).reduce((function(e, t, r, o) {
1052
1051
  /* Filter out initial Dividers
1053
1052
  * Requires reduce() over filter() because a Heading may have been
1054
1053
  * before the Divider.
@@ -1058,14 +1057,14 @@
1058
1057
  }
1059
1058
  // Filter out consecutive Dividers and Headings
1060
1059
  // If Divider is next to Heading then it will remove both Heading and Divider unless Heading has title prop set to it
1061
- if ((t.type.as === "Heading" || t.type.as === "Divider") && !t.props.title && t.type.filterConsecutive && a.length > r + 1) {
1062
- var o = a[r + 1];
1063
- if (o.type.as === "Heading" || o.type.as === "Divider") {
1060
+ if ((t.type.as === "Heading" || t.type.as === "Divider") && !t.props.title && t.type.filterConsecutive && o.length > r + 1) {
1061
+ var a = o[r + 1];
1062
+ if (a.type.as === "Heading" || a.type.as === "Divider") {
1064
1063
  return e;
1065
1064
  }
1066
1065
  }
1067
1066
  // Filter out last Dividers and Headings
1068
- if ((t.type.as === "Divider" || t.type.as === "Heading") && r === a.length - 1) {
1067
+ if ((t.type.as === "Divider" || t.type.as === "Heading") && r === o.length - 1) {
1069
1068
  return e;
1070
1069
  }
1071
1070
  // the filterConsecutive check filters out Headings and Dividers whether styled or not
@@ -1114,10 +1113,10 @@
1114
1113
  tabIndex: C == null && !i ? 0 : undefined
1115
1114
  };
1116
1115
  return u ? n().createElement(Ue, Ye({}, D, {
1117
- elementRef: a,
1116
+ elementRef: o,
1118
1117
  stopScrollPropagation: true
1119
1118
  }, l()(f, "tagName")), T) : n().createElement(Ge, Ye({}, D, {
1120
- ref: a
1119
+ ref: o
1121
1120
  }, f), T);
1122
1121
  }
1123
1122
  tt.propTypes = Ze;
package/Message.js CHANGED
@@ -180,7 +180,7 @@
180
180
  var D = I().div.withConfig({
181
181
  displayName: "MessageStyles__StyledContent",
182
182
  componentId: "eg66af-0"
183
- })([ "display:flex;align-items:baseline;", ";", " ", ";" ], (0, E.pick)({
183
+ })([ "display:flex;align-items:baseline;flex:1;", ";", " ", ";" ], (0, E.pick)({
184
184
  prisma: (0, P.css)([ "padding:", " 0;color:", ";" ], E.variables.spacingMedium, E.variables.contentColorActive),
185
185
  enterprise: (0, P.css)([ "padding:12px 0;" ])
186
186
  }), (0, E.pick)({