@splunk/react-ui 5.0.0-beta.4 → 5.0.0-beta.5

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 (74) hide show
  1. package/Button.js +3 -1
  2. package/CHANGELOG.md +4 -1
  3. package/CHANGELOG.v5.mdx +35 -0
  4. package/Card.js +163 -162
  5. package/Chip.js +171 -225
  6. package/Clickable.js +79 -76
  7. package/ComboBox.js +1 -1
  8. package/Date.js +160 -184
  9. package/DualListbox.js +439 -504
  10. package/File.js +449 -324
  11. package/FormRows.js +143 -142
  12. package/JSONTree.js +496 -521
  13. package/Layer.js +162 -97
  14. package/Link.js +20 -13
  15. package/MIGRATION.v5.mdx +47 -0
  16. package/Markdown.js +1 -1
  17. package/Message.js +119 -141
  18. package/MessageBar.js +109 -168
  19. package/Multiselect.js +595 -602
  20. package/Popover.js +194 -190
  21. package/Progress.js +68 -54
  22. package/RadioBar.js +4 -1
  23. package/RadioList.js +67 -65
  24. package/Resize.js +377 -265
  25. package/ResultsMenu.js +573 -661
  26. package/ScrollContainerContext.js +13 -9
  27. package/Search.js +1 -1
  28. package/Select.js +206 -199
  29. package/Slider.js +455 -329
  30. package/StepBar.js +2 -2
  31. package/Switch.js +88 -87
  32. package/TabBar.js +322 -317
  33. package/TabLayout.js +34 -34
  34. package/Table.js +548 -525
  35. package/Text.js +20 -19
  36. package/TextArea.js +278 -152
  37. package/Tooltip.js +173 -177
  38. package/Tree.js +2 -2
  39. package/Typography.js +30 -28
  40. package/WaitSpinner.js +6 -11
  41. package/cypress/support/commands.ts +14 -4
  42. package/cypress/support/index.d.ts +1 -1
  43. package/package.json +5 -5
  44. package/stubs-splunkui.d.ts +0 -4
  45. package/types/src/Card/Card.d.ts +3 -1
  46. package/types/src/Card/Header.d.ts +2 -0
  47. package/types/src/Card/docs/examples/HeadingTitle.d.ts +3 -0
  48. package/types/src/Clickable/Clickable.d.ts +11 -3
  49. package/types/src/Link/Link.d.ts +4 -0
  50. package/types/src/Message/Message.d.ts +1 -1
  51. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  52. package/types/src/Multiselect/Multiselect.d.ts +1 -8
  53. package/types/src/Multiselect/Normal.d.ts +1 -7
  54. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -9
  55. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -9
  56. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -9
  57. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -9
  58. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -9
  59. package/types/src/Multiselect/docs/examples/Fetching.d.ts +2 -22
  60. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  61. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -25
  62. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -9
  63. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -9
  64. package/types/src/ResultsMenu/ResultsMenu.d.ts +23 -34
  65. package/types/src/Select/SelectBase.d.ts +2 -2
  66. package/types/src/TabBar/TabBar.d.ts +8 -5
  67. package/types/src/TabBar/TabBarContext.d.ts +1 -1
  68. package/types/src/TabLayout/TabLayout.d.ts +8 -5
  69. package/types/src/Typography/Typography.d.ts +27 -22
  70. package/types/src/Date/Icon.d.ts +0 -3
  71. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +0 -3
  72. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +0 -3
  73. /package/types/src/TabBar/docs/examples/{IconsLeft.d.ts → Icons.d.ts} +0 -0
  74. /package/types/src/TabBar/docs/examples/{VerticalIconsLeft.d.ts → VerticalIcons.d.ts} +0 -0
package/Progress.js CHANGED
@@ -68,53 +68,67 @@
68
68
  var n = e.n(t);
69
69
  // CONCATENATED MODULE: external "prop-types"
70
70
  const o = require("prop-types");
71
- var a = e.n(o);
71
+ var i = e.n(o);
72
72
  // CONCATENATED MODULE: external "lodash/isNumber"
73
- const i = require("lodash/isNumber");
74
- var s = e.n(i);
73
+ const a = require("lodash/isNumber");
74
+ var s = e.n(a);
75
75
  // CONCATENATED MODULE: external "@splunk/react-ui/AnimationToggle"
76
76
  const l = require("@splunk/react-ui/AnimationToggle");
77
77
  // CONCATENATED MODULE: external "styled-components"
78
- const u = require("styled-components");
79
- var c = e.n(u);
78
+ const c = require("styled-components");
79
+ var u = e.n(c);
80
80
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
81
81
  const f = require("@splunk/react-ui/Tooltip");
82
82
  var p = e.n(f);
83
83
  // CONCATENATED MODULE: external "@splunk/themes"
84
84
  const d = require("@splunk/themes");
85
85
  // CONCATENATED MODULE: ./src/Progress/ProgressStyles.ts
86
- var b = "8px";
87
- var v = (0, u.keyframes)([ "from{background-position:130%;}to{background-position:-30%;}" ]);
88
- var y = c().div.withConfig({
86
+ var v = "8px";
87
+ var b = (0, c.keyframes)([ "from{background-position:130%;}to{background-position:-30%;}" ]);
88
+ var y = u().div.attrs((function(e) {
89
+ var r = e.$percent;
90
+ /**
91
+ * Prevents styled-components from generating new classes for each percent value (SUI-7625).
92
+ * Pseudo-elements can't have inline styles, so width can't be set directly.
93
+ */ return {
94
+ style: {
95
+ "--percent": "".concat(r, "%")
96
+ }
97
+ };
98
+ })).withConfig({
89
99
  displayName: "ProgressStyles__StyledProgressWrapper",
90
100
  componentId: "csowex-0"
91
- })([ "", " height:", ";position:relative;border:1px solid ", ";border-radius:", ";background:", ";&::before{display:block;position:absolute;top:-1px;left:-1px;content:'';border-radius:", ";height:100%;", " ", "}" ], d.mixins.reset("block"), b, d.variables.interactiveColorBorder, d.variables.borderRadius, d.variables.neutral100, d.variables.borderRadius, (function(e) {
101
+ })([ "", " height:", ";position:relative;border:1px solid ", ";border-radius:", ";background:", ";&::before{display:block;position:absolute;top:-1px;left:-1px;content:'';border-radius:", ";height:100%;", " width:var(--percent);", "}" ], d.mixins.reset("block"), v, d.variables.interactiveColorBorder, d.variables.borderRadius, d.variables.neutral100, d.variables.borderRadius, (function(e) {
92
102
  var r = e.$animated, t = e.$type;
93
103
  // Animated is only supported for the info type.
94
104
  // This is enforced in the component and duplicating here
95
- return r && t === "info" ? (0, u.css)([ "background:radial-gradient( circle at center,", ",", " 30% );background-size:200% 100%;animation:", " 2500ms infinite cubic-bezier(0.33,0,0.67,1);" ], d.variables.statusColorInfoWeak, d.variables.statusColorInfo, v) : (0,
96
- u.css)([ "background:", ";" ], (0, d.pickVariant)("$type", {
97
- info: d.variables.statusColorInfo,
98
- success: d.variables.statusColorNormal,
99
- error: d.variables.statusColorHigh
105
+ return r && t === "info" ? (0, c.css)([ "background:radial-gradient( circle at center,", ",", " 30% );background-size:200% 100%;animation:", " 2500ms infinite cubic-bezier(0.33,0,0.67,1);" ], d.variables.notificationColorInfoWeak, d.variables.notificationColorInfo, b) : (0,
106
+ c.css)([ "background:", ";" ], (0, d.pickVariant)("$type", {
107
+ info: d.variables.notificationColorInfo,
108
+ success: d.variables.notificationColorPositive,
109
+ error: d.variables.notificationColorNegative
100
110
  }));
101
111
  }), (function(e) {
102
112
  var r = e.$percent;
103
- return (0, u.css)([ "width:", "%;", " ", "" ], r, r > 0 && (0, u.css)([ "border:1px solid ", ";" ], (0,
113
+ return (0, c.css)([ "", " ", "" ], r > 0 && (0, c.css)([ "border:1px solid ", ";" ], (0,
104
114
  d.pickVariant)("$type", {
105
- info: d.variables.statusColorInfoStrong,
106
- success: d.variables.statusColorNormalStrong,
107
- error: d.variables.statusColorHighStrong
108
- })), r !== 100 && (0, u.css)([ "border-end-end-radius:0;border-start-end-radius:0;border-inline-end:none;" ]));
115
+ info: d.variables.notificationColorInfoStrong,
116
+ success: d.variables.notificationColorPositiveStrong,
117
+ error: d.variables.notificationColorNegativeStrong
118
+ })), r !== 100 && (0, c.css)([ "border-end-end-radius:0;border-start-end-radius:0;border-inline-end:none;" ]));
109
119
  }));
110
- var g = c()(p()).withConfig({
120
+ var g = u()(p()).attrs((function(e) {
121
+ var r = e.$percent;
122
+ /* Prevents styled-components from generating new classes for each percent value (SUI-7625). */ return {
123
+ style: {
124
+ width: "".concat(r, "%")
125
+ }
126
+ };
127
+ })).withConfig({
111
128
  displayName: "ProgressStyles__StyledTooltip",
112
129
  componentId: "csowex-1"
113
- })([ "width:", ";height:", ";" ], (function(e) {
114
- var r = e.$percent;
115
- return "".concat(r, "%");
116
- }), b);
117
- var m = c().progress.withConfig({
130
+ })([ "height:", ";" ], v);
131
+ var m = u().progress.withConfig({
118
132
  displayName: "ProgressStyles__StyledProgress",
119
133
  componentId: "csowex-2"
120
134
  })([ "opacity:0;position:absolute;inset:0;" ]);
@@ -131,7 +145,7 @@
131
145
  }, h.apply(null, arguments);
132
146
  }
133
147
  function S(e, r) {
134
- return j(e) || C(e, r) || k(e, r) || O();
148
+ return P(e) || C(e, r) || k(e, r) || O();
135
149
  }
136
150
  function O() {
137
151
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -153,35 +167,35 @@
153
167
  function C(e, r) {
154
168
  var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
155
169
  if (null != t) {
156
- var n, o, a, i, s = [], l = !0, u = !1;
170
+ var n, o, i, a, s = [], l = !0, c = !1;
157
171
  try {
158
- if (a = (t = t.call(e)).next, 0 === r) {
172
+ if (i = (t = t.call(e)).next, 0 === r) {
159
173
  if (Object(t) !== t) return;
160
174
  l = !1;
161
- } else for (;!(l = (n = a.call(t)).done) && (s.push(n.value), s.length !== r); l = !0) {
175
+ } else for (;!(l = (n = i.call(t)).done) && (s.push(n.value), s.length !== r); l = !0) {
162
176
  }
163
177
  } catch (e) {
164
- u = !0, o = e;
178
+ c = !0, o = e;
165
179
  } finally {
166
180
  try {
167
- if (!l && null != t["return"] && (i = t["return"](), Object(i) !== i)) return;
181
+ if (!l && null != t["return"] && (a = t["return"](), Object(a) !== a)) return;
168
182
  } finally {
169
- if (u) throw o;
183
+ if (c) throw o;
170
184
  }
171
185
  }
172
186
  return s;
173
187
  }
174
188
  }
175
- function j(e) {
189
+ function P(e) {
176
190
  if (Array.isArray(e)) return e;
177
191
  }
178
- function P(e, r) {
192
+ function j(e, r) {
179
193
  if (null == e) return {};
180
194
  var t, n, o = x(e, r);
181
195
  if (Object.getOwnPropertySymbols) {
182
- var a = Object.getOwnPropertySymbols(e);
183
- for (n = 0; n < a.length; n++) {
184
- t = a[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
196
+ var i = Object.getOwnPropertySymbols(e);
197
+ for (n = 0; n < i.length; n++) {
198
+ t = i[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
185
199
  }
186
200
  }
187
201
  return o;
@@ -197,26 +211,26 @@
197
211
  }
198
212
  return t;
199
213
  }
200
- var I = {
201
- elementRef: a().oneOfType([ a().func, a().object ]),
202
- percentage: a().number,
203
- tooltip: a().node,
204
- type: a().oneOf([ "info", "success", "error" ])
214
+ var $ = {
215
+ elementRef: i().oneOfType([ i().func, i().object ]),
216
+ percentage: i().number,
217
+ tooltip: i().node,
218
+ type: i().oneOf([ "info", "success", "error" ])
205
219
  };
206
- function $(e) {
207
- var r = e.elementRef, o = e.percentage, a = e.tooltip, i = e.type, u = i === void 0 ? "info" : i, c = P(e, [ "elementRef", "percentage", "tooltip", "type" ]);
220
+ function I(e) {
221
+ var r = e.elementRef, o = e.percentage, i = e.tooltip, a = e.type, c = a === void 0 ? "info" : a, u = j(e, [ "elementRef", "percentage", "tooltip", "type" ]);
208
222
  // @docs-props-type ProgressPropsBase
209
223
  if (false) {}
210
- var f = (0, t.useState)(false), p = S(f, 2), d = p[0], b = p[1];
211
- var v = (0, l.useAnimationToggle)() === "on" && u === "info";
224
+ var f = (0, t.useState)(false), p = S(f, 2), d = p[0], v = p[1];
225
+ var b = (0, l.useAnimationToggle)() === "on" && c === "info";
212
226
  var O = (0, t.useCallback)((function() {
213
- b(true);
227
+ v(true);
214
228
  }), []);
215
229
  var k = (0, t.useCallback)((function() {
216
- b(false);
230
+ v(false);
217
231
  }), []);
218
232
  var w = s()(o) ? o : 0;
219
- var C = a || "".concat(w, "%");
233
+ var C = i || "".concat(w, "%");
220
234
 
221
235
  return n().createElement(y, h({
222
236
  onMouseEnter: O,
@@ -224,9 +238,9 @@
224
238
  ref: r,
225
239
  "data-test": "progress",
226
240
  $percent: w,
227
- $type: u,
228
- $animated: v
229
- }, c), n().createElement(g, {
241
+ $type: c,
242
+ $animated: b
243
+ }, u), n().createElement(g, {
230
244
  content: C,
231
245
  inline: false,
232
246
  $percent: w,
@@ -236,8 +250,8 @@
236
250
  max: 100
237
251
  })));
238
252
  }
239
- $.propTypes = I;
240
- /* harmony default export */ const _ = $;
253
+ I.propTypes = $;
254
+ /* harmony default export */ const _ = I;
241
255
  // CONCATENATED MODULE: ./src/Progress/index.ts
242
256
  module.exports = r;
243
257
  /******/})();
package/RadioBar.js CHANGED
@@ -93,7 +93,10 @@
93
93
  componentId: "fyq77p-0"
94
94
  })([ "border:", " solid ", ";border-radius:0;height:", ";min-height:", ";min-width:0;padding:", " ", ";z-index:", ";&&{color:", ";}&:first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";}&:last-child{border-top-right-radius:", ";border-bottom-right-radius:", ";}&:not(:last-child){margin-right:-", ";}&&:focus{background-color:", ";box-shadow:", ";color:", ";z-index:", ";border:0;span{padding:0 ", ";}}&:not([disabled],[aria-disabled='true']){", "}&[disabled],&[aria-disabled='true']{background-color:", ";color:", ";z-index:0;}" ], b.variables.inputBorderWidth, b.variables.borderColor, b.variables.inputHeight, b.variables.inputHeight, b.variables.spacingXSmall, b.variables.spacingSmall, y, b.variables.contentColorDefault, b.variables.borderRadius, b.variables.borderRadius, b.variables.borderRadius, b.variables.borderRadius, b.variables.inputBorderWidth, b.variables.actionColorBackgroundSecondaryActive, b.variables.focusShadowInset, b.variables.contentColorActive, y * 5, b.variables.inputBorderWidth, (0,
95
95
  b.pickVariant)("$optionSelected", {
96
- true: (0, s.css)([ "background-color:", ";border-color:", ";border-width:", ";color:", ";z-index:", ";" ], b.variables.actionColorBackgroundSecondaryActive, b.variables.actionColorBorderSecondaryActive, b.variables.inputBorderWidth, b.variables.contentColorActive, y * 4),
96
+ true: (0, s.css)([ "", ";background-color:", ";border-color:", ";border-width:", ";z-index:", ";" ], b.mixins.typography({
97
+ weight: "bold",
98
+ color: "active"
99
+ }), b.variables.actionColorBackgroundSecondaryActive, b.variables.actionColorBorderSecondaryActive, b.variables.inputBorderWidth, y * 4),
97
100
  false: (0, s.css)([ "&:hover{background-color:", ";border-color:", ";color:", ";z-index:", ";}" ], b.variables.actionColorBackgroundSecondaryHover, b.variables.borderColor, b.variables.contentColorActive, y * 3)
98
101
  }), b.variables.actionColorBackgroundSecondaryDisabled, b.variables.contentColorDisabled);
99
102
  var g = v().div.withConfig({
package/RadioList.js CHANGED
@@ -24,11 +24,11 @@
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
26
  /******/ e.d = (r, a) => {
27
- /******/ for (var o in a) {
28
- /******/ if (e.o(a, o) && !e.o(r, o)) {
29
- /******/ Object.defineProperty(r, o, {
27
+ /******/ for (var n in a) {
28
+ /******/ if (e.o(a, n) && !e.o(r, n)) {
29
+ /******/ Object.defineProperty(r, n, {
30
30
  enumerable: true,
31
- get: a[o]
31
+ get: a[n]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -66,51 +66,51 @@
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const a = require("react");
69
- var o = e.n(a);
69
+ var n = e.n(a);
70
70
  // CONCATENATED MODULE: external "prop-types"
71
- const n = require("prop-types");
72
- var t = e.n(n);
71
+ const o = require("prop-types");
72
+ var t = e.n(o);
73
73
  // CONCATENATED MODULE: external "lodash/omit"
74
74
  const i = require("lodash/omit");
75
75
  var l = e.n(i);
76
76
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
77
- const c = require("@splunk/ui-utils/id");
77
+ const d = require("@splunk/ui-utils/id");
78
78
  // CONCATENATED MODULE: ./src/RadioList/RadioListContext.ts
79
- var d = (0, a.createContext)({});
80
- d.displayName = "RadioList";
81
- /* harmony default export */ const s = d;
79
+ var c = (0, a.createContext)({});
80
+ c.displayName = "RadioList";
81
+ /* harmony default export */ const s = c;
82
82
  // CONCATENATED MODULE: external "styled-components"
83
83
  const u = require("styled-components");
84
84
  var v = e.n(u);
85
85
  // CONCATENATED MODULE: external "@splunk/themes"
86
- const f = require("@splunk/themes");
86
+ const b = require("@splunk/themes");
87
87
  // CONCATENATED MODULE: ./src/RadioList/OptionStyles.ts
88
- var b = v().div.withConfig({
88
+ var f = v().div.withConfig({
89
89
  displayName: "OptionStyles__StyledWrapper",
90
90
  componentId: "imaqjt-0"
91
- })([ "display:grid;grid-column:1 / -1;grid-template-columns:subgrid;gap:", ";" ], f.variables.spacingSmall);
91
+ })([ "display:grid;grid-column:1 / -1;grid-template-columns:subgrid;gap:", ";" ], b.variables.spacingSmall);
92
92
  var p = v().label.withConfig({
93
93
  displayName: "OptionStyles__StyledLabel",
94
94
  componentId: "imaqjt-1"
95
95
  })([ "grid-column:label;color:", ";cursor:pointer;" ], (function(e) {
96
96
  var r = e.$disabled;
97
- return r ? f.variables.contentColorDisabled : f.variables.contentColorActive;
97
+ return r ? b.variables.contentColorDisabled : b.variables.contentColorActive;
98
98
  }));
99
99
  var y = "20px";
100
100
  var m = v().input.withConfig({
101
101
  displayName: "OptionStyles__StyledRadioInput",
102
102
  componentId: "imaqjt-2"
103
- })([ "", ";grid-column:input;appearance:none;align-items:center;justify-items:center;height:", ";width:", ";border-radius:50%;border:2px solid ", ";background-color:", ";&::after{display:block;content:'';border-radius:50%;height:0;width:0;opacity:0;border:5px solid transparent;}&:checked::after{opacity:1;}&:hover{border-color:", ";background-color:", ";}&:checked{&,&::after{border-color:", ";}&:hover{border-color:", ";}}&:disabled{cursor:not-allowed;&,&:hover,&:checked,&:checked:hover,&:checked::after{border-color:", ";}&,&:hover{background-color:transparent;}}&:focus{box-shadow:", ";}", "" ], f.mixins.reset("grid"), y, y, f.variables.interactiveColorBorder, f.variables.interactiveColorBackground, f.variables.interactiveColorBorderHover, f.mixins.overlayColors(f.variables.interactiveColorBackground, f.variables.interactiveColorOverlayHover), f.variables.interactiveColorAccent, f.mixins.overlayColors(f.variables.interactiveColorAccent, f.variables.interactiveColorBorderHover), f.variables.interactiveColorBorderDisabled, f.variables.focusShadow, (function(e) {
103
+ })([ "", ";grid-column:input;appearance:none;align-items:center;justify-items:center;height:", ";width:", ";border-radius:50%;border:2px solid ", ";background-color:", ";&::after{display:block;content:'';border-radius:50%;height:0;width:0;opacity:0;border:5px solid transparent;}&:checked::after{opacity:1;}&:hover{border-color:", ";background-color:", ";}&:checked{&,&::after{border-color:", ";}&:hover{border-color:", ";}}&:disabled{cursor:not-allowed;&,&:hover,&:checked,&:checked:hover,&:checked::after{border-color:", ";}&,&:hover{background-color:transparent;}}&:focus{box-shadow:", ";}", "" ], b.mixins.reset("grid"), y, y, b.variables.interactiveColorBorder, b.variables.interactiveColorBackground, b.variables.interactiveColorBorderHover, b.mixins.overlayColors(b.variables.interactiveColorBackground, b.variables.interactiveColorOverlayHover), b.variables.interactiveColorAccent, b.mixins.overlayColors(b.variables.interactiveColorAccent, b.variables.interactiveColorBorderHover), b.variables.interactiveColorBorderDisabled, b.variables.focusShadow, (function(e) {
104
104
  var r = e.$error;
105
- return r && (0, u.css)([ "&,&:checked,&:checked::after{border-color:", ";}&:checked:hover{border-color:", ";}&:hover{background-color:", ";border-color:", ";}" ], f.variables.interactiveColorAccentError, f.mixins.overlayColors(f.variables.interactiveColorAccentError, f.variables.interactiveColorBorderHover), f.variables.interactiveColorOverlayHover, f.mixins.overlayColors(f.variables.interactiveColorAccentError, f.variables.interactiveColorBorderHover));
105
+ return r && (0, u.css)([ "&,&:checked,&:checked::after{border-color:", ";}&:checked:hover{border-color:", ";}&:hover{background-color:", ";border-color:", ";}" ], b.variables.interactiveColorAccentError, b.mixins.overlayColors(b.variables.interactiveColorAccentError, b.variables.interactiveColorBorderHover), b.variables.interactiveColorOverlayHover, b.mixins.overlayColors(b.variables.interactiveColorAccentError, b.variables.interactiveColorBorderHover));
106
106
  }));
107
107
  // CONCATENATED MODULE: ./src/RadioList/Option.tsx
108
108
  function g() {
109
109
  return g = Object.assign ? Object.assign.bind() : function(e) {
110
110
  for (var r = 1; r < arguments.length; r++) {
111
111
  var a = arguments[r];
112
- for (var o in a) {
113
- ({}).hasOwnProperty.call(a, o) && (e[o] = a[o]);
112
+ for (var n in a) {
113
+ ({}).hasOwnProperty.call(a, n) && (e[n] = a[n]);
114
114
  }
115
115
  }
116
116
  return e;
@@ -118,22 +118,22 @@
118
118
  }
119
119
  function h(e, r) {
120
120
  if (null == e) return {};
121
- var a, o, n = C(e, r);
121
+ var a, n, o = C(e, r);
122
122
  if (Object.getOwnPropertySymbols) {
123
123
  var t = Object.getOwnPropertySymbols(e);
124
- for (o = 0; o < t.length; o++) {
125
- a = t[o], r.includes(a) || {}.propertyIsEnumerable.call(e, a) && (n[a] = e[a]);
124
+ for (n = 0; n < t.length; n++) {
125
+ a = t[n], r.includes(a) || {}.propertyIsEnumerable.call(e, a) && (o[a] = e[a]);
126
126
  }
127
127
  }
128
- return n;
128
+ return o;
129
129
  }
130
130
  function C(e, r) {
131
131
  if (null == e) return {};
132
132
  var a = {};
133
- for (var o in e) {
134
- if ({}.hasOwnProperty.call(e, o)) {
135
- if (r.includes(o)) continue;
136
- a[o] = e[o];
133
+ for (var n in e) {
134
+ if ({}.hasOwnProperty.call(e, n)) {
135
+ if (r.includes(n)) continue;
136
+ a[n] = e[n];
137
137
  }
138
138
  }
139
139
  return a;
@@ -147,9 +147,9 @@
147
147
  value: t().any.isRequired
148
148
  };
149
149
  function S(e) {
150
- var r = e.children, n = e.disabled, t = n === void 0 ? false : n, i = e.error, l = i === void 0 ? false : i, d = e.id, u = e.onChange, v = e.value, f = h(e, [ "children", "disabled", "error", "id", "onChange", "value" ]);
150
+ var r = e.children, o = e.disabled, t = o === void 0 ? false : o, i = e.error, l = i === void 0 ? false : i, c = e.id, u = e.onChange, v = e.value, b = h(e, [ "children", "disabled", "error", "id", "onChange", "value" ]);
151
151
  // @docs-props-type OptionPropsBase
152
- var y = (0, a.useRef)(d || (0, c.createDOMID)("radio-option")), C = y.current;
152
+ var y = (0, a.useRef)(c || (0, d.createDOMID)("radio-option")), C = y.current;
153
153
  var O = (0, a.useContext)(s);
154
154
  var S = function e(r) {
155
155
  var a;
@@ -176,12 +176,13 @@
176
176
  k = O.error;
177
177
  }
178
178
 
179
- return o().createElement(b, g({
179
+ return n().createElement(f, g({
180
180
  "data-test": "option",
181
- "data-test-value": v
182
- }, f, {
181
+ "data-test-value": v,
182
+ "data-test-disabled": j ? "disabled" : undefined
183
+ }, b, {
183
184
  "data-checked": w
184
- }), o().createElement(m, {
185
+ }), n().createElement(m, {
185
186
  id: C,
186
187
  type: "radio",
187
188
  name: O.name,
@@ -192,7 +193,7 @@
192
193
  onChange: S,
193
194
  "data-test": "input",
194
195
  required: O.required
195
- }), o().createElement(p, {
196
+ }), n().createElement(p, {
196
197
  htmlFor: C,
197
198
  "data-test": "label",
198
199
  $disabled: j
@@ -204,16 +205,16 @@
204
205
  var j = v().div.withConfig({
205
206
  displayName: "RadioListStyles__StyledRadioList",
206
207
  componentId: "sc-1qg10hx-0"
207
- })([ "", ";grid-template-columns:[input] min-content [label] auto;gap:", " ", ";", "" ], f.mixins.reset("grid"), f.variables.spacingMedium, f.variables.spacingSmall, (function(e) {
208
- return e.direction === "row" && (0, u.css)([ "", ";gap:", ";", "{grid-template-columns:[input] min-content [label] auto;gap:", ";}" ], f.mixins.reset("flex"), f.variables.spacingXLarge, /* sc-sel */ b, f.variables.spacingSmall);
208
+ })([ "", ";grid-template-columns:[input] min-content [label] auto;gap:", " ", ";", "" ], b.mixins.reset("grid"), b.variables.spacingMedium, b.variables.spacingSmall, (function(e) {
209
+ return e.direction === "row" && (0, u.css)([ "", ";gap:", ";", "{grid-template-columns:[input] min-content [label] auto;gap:", ";}" ], b.mixins.reset("flex"), b.variables.spacingXLarge, /* sc-sel */ f, b.variables.spacingSmall);
209
210
  }));
210
211
  // CONCATENATED MODULE: ./src/RadioList/RadioList.tsx
211
212
  function k() {
212
213
  return k = Object.assign ? Object.assign.bind() : function(e) {
213
214
  for (var r = 1; r < arguments.length; r++) {
214
215
  var a = arguments[r];
215
- for (var o in a) {
216
- ({}).hasOwnProperty.call(a, o) && (e[o] = a[o]);
216
+ for (var n in a) {
217
+ ({}).hasOwnProperty.call(a, n) && (e[n] = a[n]);
217
218
  }
218
219
  }
219
220
  return e;
@@ -234,28 +235,28 @@
234
235
  }
235
236
  function P(e, r) {
236
237
  (null == r || r > e.length) && (r = e.length);
237
- for (var a = 0, o = Array(r); a < r; a++) {
238
- o[a] = e[a];
238
+ for (var a = 0, n = Array(r); a < r; a++) {
239
+ n[a] = e[a];
239
240
  }
240
- return o;
241
+ return n;
241
242
  }
242
243
  function E(e, r) {
243
244
  var a = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
244
245
  if (null != a) {
245
- var o, n, t, i, l = [], c = !0, d = !1;
246
+ var n, o, t, i, l = [], d = !0, c = !1;
246
247
  try {
247
248
  if (t = (a = a.call(e)).next, 0 === r) {
248
249
  if (Object(a) !== a) return;
249
- c = !1;
250
- } else for (;!(c = (o = t.call(a)).done) && (l.push(o.value), l.length !== r); c = !0) {
250
+ d = !1;
251
+ } else for (;!(d = (n = t.call(a)).done) && (l.push(n.value), l.length !== r); d = !0) {
251
252
  }
252
253
  } catch (e) {
253
- d = !0, n = e;
254
+ c = !0, o = e;
254
255
  } finally {
255
256
  try {
256
- if (!c && null != a["return"] && (i = a["return"](), Object(i) !== i)) return;
257
+ if (!d && null != a["return"] && (i = a["return"](), Object(i) !== i)) return;
257
258
  } finally {
258
- if (d) throw n;
259
+ if (c) throw o;
259
260
  }
260
261
  }
261
262
  return l;
@@ -266,22 +267,22 @@
266
267
  }
267
268
  function I(e, r) {
268
269
  if (null == e) return {};
269
- var a, o, n = R(e, r);
270
+ var a, n, o = R(e, r);
270
271
  if (Object.getOwnPropertySymbols) {
271
272
  var t = Object.getOwnPropertySymbols(e);
272
- for (o = 0; o < t.length; o++) {
273
- a = t[o], r.includes(a) || {}.propertyIsEnumerable.call(e, a) && (n[a] = e[a]);
273
+ for (n = 0; n < t.length; n++) {
274
+ a = t[n], r.includes(a) || {}.propertyIsEnumerable.call(e, a) && (o[a] = e[a]);
274
275
  }
275
276
  }
276
- return n;
277
+ return o;
277
278
  }
278
279
  function R(e, r) {
279
280
  if (null == e) return {};
280
281
  var a = {};
281
- for (var o in e) {
282
- if ({}.hasOwnProperty.call(e, o)) {
283
- if (r.includes(o)) continue;
284
- a[o] = e[o];
282
+ for (var n in e) {
283
+ if ({}.hasOwnProperty.call(e, n)) {
284
+ if (r.includes(n)) continue;
285
+ a[n] = e[n];
285
286
  }
286
287
  }
287
288
  return a;
@@ -302,15 +303,15 @@
302
303
  value: t().any
303
304
  };
304
305
  function M(e) {
305
- var r = e.children, n = e.defaultValue, t = e.describedBy, i = e.direction, d = e.disabled, u = d === void 0 ? false : d, v = e.elementRef, f = e.error, b = f === void 0 ? false : f, p = e.labelledBy, y = e.name, m = e.onChange, g = e.required, h = e.value, C = I(e, [ "children", "defaultValue", "describedBy", "direction", "disabled", "elementRef", "error", "labelledBy", "name", "onChange", "required", "value" ]);
306
+ var r = e.children, o = e.defaultValue, t = e.describedBy, i = e.direction, c = e.disabled, u = c === void 0 ? false : c, v = e.elementRef, b = e.error, f = b === void 0 ? false : b, p = e.labelledBy, y = e.name, m = e.onChange, g = e.required, h = e.value, C = I(e, [ "children", "defaultValue", "describedBy", "direction", "disabled", "elementRef", "error", "labelledBy", "name", "onChange", "required", "value" ]);
306
307
  // @docs-props-type RadioListPropsBase
307
308
  // TODO: Implement shared isControlled hook (SUI-5283).
308
309
  // See material-ui for similar pattern to handle controlled/un-controlled in functional components w/ hooks
309
310
  // https://github.com/mui-org/material-ui/blob/60d99a39836fb82f4da1477a717f642c216fb0b9/packages/material-ui/src/utils/useControlled.js
310
311
  var O = (0, a.useRef)(h !== undefined), S = O.current;
311
- var w = (0, a.useState)(n), x = q(w, 2), B = x[0], P = x[1];
312
+ var w = (0, a.useState)(o), x = q(w, 2), B = x[0], P = x[1];
312
313
  var E = S ? h : B;
313
- var A = (0, a.useRef)(y || (0, c.createDOMID)("radio-name")), R = A.current;
314
+ var A = (0, a.useRef)(y || (0, d.createDOMID)("radio-name")), R = A.current;
314
315
  var _ = function e(r, a) {
315
316
  if (!S) {
316
317
  P(a.value);
@@ -325,35 +326,36 @@
325
326
  (0, a.useEffect)((function() {
326
327
  if (false) {}
327
328
  }), [ h, S ]);
328
- var M = (0, a.useRef)(n), D = M.current;
329
+ var M = (0, a.useRef)(o), D = M.current;
329
330
  (0, a.useEffect)((function() {
330
331
  if (false) {}
331
- }), [ D, n, S ]);
332
+ }), [ D, o, S ]);
332
333
  var H = (0, a.useMemo)((function() {
333
334
  return {
334
335
  disabled: u,
335
- error: b,
336
+ error: f,
336
337
  onChange: _,
337
338
  name: R,
338
339
  required: g,
339
340
  value: E
340
341
  };
341
- }), [ u, b, _, R, g, E ]);
342
+ }), [ u, f, _, R, g, E ]);
342
343
  var T = C["aria-labelledby"];
343
344
  var L = C["aria-describedby"];
344
345
 
345
- return o().createElement(s.Provider, {
346
+ return n().createElement(s.Provider, {
346
347
  value: H
347
- }, o().createElement(j, k({
348
+ }, n().createElement(j, k({
348
349
  direction: i || "column",
349
350
  role: "radiogroup",
350
351
  "data-test": "radio-list",
351
352
  "data-test-value": E,
353
+ "data-test-disabled": u ? "disabled" : undefined,
352
354
  ref: v
353
355
  }, l()(C, [ "aria-labelledby", "aria-describedby" ]), {
354
356
  "aria-labelledby": T ? "".concat(T, " ").concat(p) : p,
355
357
  "aria-describedby": L ? "".concat(L, " ").concat(t) : t,
356
- "aria-invalid": b
358
+ "aria-invalid": f
357
359
  }), r));
358
360
  }
359
361
  M.propTypes = _;