@splunk/react-ui 5.0.0-beta.5 → 5.0.0-rc.2

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 (52) hide show
  1. package/ButtonSimple.js +92 -168
  2. package/{CHANGELOG.v5.mdx → CHANGELOG.v5.md} +43 -0
  3. package/Calendar.js +148 -151
  4. package/Card.js +139 -139
  5. package/Code.js +197 -167
  6. package/CollapsiblePanel.js +172 -164
  7. package/Color.js +584 -506
  8. package/ComboBox.js +51 -51
  9. package/ControlGroup.js +132 -127
  10. package/Date.js +137 -150
  11. package/Dropdown.js +97 -96
  12. package/DualListbox.js +468 -469
  13. package/FetchOptions.d.ts +2 -2
  14. package/FormRows.js +158 -157
  15. package/JSONTree.js +354 -360
  16. package/{MIGRATION.mdx → MIGRATION.md} +13 -43
  17. package/{MIGRATION.v5.mdx → MIGRATION.v5.md} +67 -1
  18. package/Markdown.js +3 -4
  19. package/Menu.js +194 -195
  20. package/Modal.js +18 -18
  21. package/ModalLayer.js +171 -217
  22. package/Multiselect.js +785 -778
  23. package/Number.js +103 -102
  24. package/Popover.js +48 -46
  25. package/RadioBar.js +144 -146
  26. package/Resize.js +149 -151
  27. package/ResultsMenu.js +112 -114
  28. package/Search.js +49 -49
  29. package/Select.js +455 -457
  30. package/Slider.js +328 -331
  31. package/Switch.js +251 -178
  32. package/TabBar.js +277 -280
  33. package/Table.js +1212 -1178
  34. package/Text.js +45 -46
  35. package/Tooltip.js +192 -189
  36. package/Tree.js +177 -188
  37. package/package.json +10 -9
  38. package/types/src/Code/Code.d.ts +1 -1
  39. package/types/src/Color/Color.d.ts +2 -2
  40. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  41. package/types/src/Dropdown/Dropdown.d.ts +5 -2
  42. package/types/src/Layer/Layer.d.ts +2 -1
  43. package/types/src/Layer/index.d.ts +1 -0
  44. package/types/src/ModalLayer/ModalLayer.d.ts +16 -21
  45. package/types/src/Number/Number.d.ts +1 -1
  46. package/types/src/Popover/Popover.d.ts +5 -2
  47. package/types/src/Table/HeadCell.d.ts +6 -1
  48. package/types/src/Table/HeadInner.d.ts +3 -1
  49. package/types/src/Tooltip/Tooltip.d.ts +7 -7
  50. package/types/src/fixtures/useFetchOptions.d.ts +33 -0
  51. package/useRovingFocus.js +20 -23
  52. package/types/src/fixtures/FetchOptions.d.ts +0 -76
package/ButtonSimple.js CHANGED
@@ -61,8 +61,8 @@
61
61
  r.r(e);
62
62
  // EXPORTS
63
63
  r.d(e, {
64
- buttonMixin: () => /* reexport */ C,
65
- default: () => /* reexport */ M
64
+ buttonMixin: () => /* reexport */ g,
65
+ default: () => /* reexport */ h
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const o = require("react");
@@ -75,12 +75,12 @@
75
75
  var c = r.n(i);
76
76
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
77
77
  const l = require("@splunk/react-ui/Clickable");
78
- var s = r.n(l);
78
+ var d = r.n(l);
79
79
  // CONCATENATED MODULE: external "@splunk/themes"
80
- const d = require("@splunk/themes");
80
+ const s = require("@splunk/themes");
81
81
  // CONCATENATED MODULE: external "lodash/merge"
82
- const b = require("lodash/merge");
83
- var v = r.n(b);
82
+ const v = require("lodash/merge");
83
+ var b = r.n(v);
84
84
  // CONCATENATED MODULE: ./src/ButtonSimple/mixin.ts
85
85
  function u(r) {
86
86
  "@babel/helpers - typeof";
@@ -100,73 +100,73 @@
100
100
  var i;
101
101
  var c;
102
102
  var l;
103
- var s = d.variables.contentColorActive;
104
- var b;
105
- var v = d.variables.contentColorDisabled;
103
+ var d = s.variables.contentColorActive;
104
+ var v;
105
+ var b = s.variables.contentColorDisabled;
106
106
  var u;
107
107
  switch (r) {
108
108
  case "primary":
109
109
  {
110
- e = d.variables.actionColorBackgroundPrimary;
111
- o = d.variables.actionColorBackgroundPrimaryActive;
112
- a = d.variables.actionColorBackgroundPrimaryDisabled;
113
- t = d.variables.actionColorBackgroundPrimaryHover;
114
- s = d.variables.contentColorInverted;
115
- v = d.variables.contentColorInverted;
110
+ e = s.variables.actionColorBackgroundPrimary;
111
+ o = s.variables.actionColorBackgroundPrimaryActive;
112
+ a = s.variables.actionColorBackgroundPrimaryDisabled;
113
+ t = s.variables.actionColorBackgroundPrimaryHover;
114
+ d = s.variables.contentColorInverted;
115
+ b = s.variables.contentColorInverted;
116
116
  break;
117
117
  }
118
118
 
119
119
  case "destructive":
120
120
  {
121
- e = d.variables.actionColorBackgroundDestructive;
122
- o = d.variables.actionColorBackgroundDestructiveActive;
123
- a = d.variables.actionColorBackgroundDestructiveDisabled;
124
- t = d.variables.actionColorBackgroundDestructiveHover;
125
- s = d.variables.contentColorInverted;
126
- v = d.variables.contentColorInverted;
121
+ e = s.variables.actionColorBackgroundDestructive;
122
+ o = s.variables.actionColorBackgroundDestructiveActive;
123
+ a = s.variables.actionColorBackgroundDestructiveDisabled;
124
+ t = s.variables.actionColorBackgroundDestructiveHover;
125
+ d = s.variables.contentColorInverted;
126
+ b = s.variables.contentColorInverted;
127
127
  break;
128
128
  }
129
129
 
130
130
  case "destructiveSecondary":
131
131
  {
132
- n = d.variables.actionColorBorderDestructiveSecondary;
133
- i = d.variables.actionColorBorderDestructiveSecondaryActive;
134
- c = d.variables.actionColorBorderDestructiveSecondaryDisabled;
135
- l = d.variables.actionColorBorderDestructiveSecondaryHover;
136
- e = d.variables.actionColorBackgroundDestructiveSecondary;
137
- o = d.variables.actionColorBackgroundDestructiveSecondaryActive;
138
- a = d.variables.actionColorBackgroundDestructiveSecondaryDisabled;
139
- t = d.variables.actionColorBackgroundDestructiveSecondaryHover;
140
- s = d.variables.contentColorNegative;
141
- v = d.variables.contentColorNegativeWeak;
132
+ n = s.variables.actionColorBorderDestructiveSecondary;
133
+ i = s.variables.actionColorBorderDestructiveSecondaryActive;
134
+ c = s.variables.actionColorBorderDestructiveSecondaryDisabled;
135
+ l = s.variables.actionColorBorderDestructiveSecondaryHover;
136
+ e = s.variables.actionColorBackgroundDestructiveSecondary;
137
+ o = s.variables.actionColorBackgroundDestructiveSecondaryActive;
138
+ a = s.variables.actionColorBackgroundDestructiveSecondaryDisabled;
139
+ t = s.variables.actionColorBackgroundDestructiveSecondaryHover;
140
+ d = s.variables.contentColorNegative;
141
+ b = s.variables.contentColorNegativeWeak;
142
142
  break;
143
143
  }
144
144
 
145
145
  case "secondary":
146
- n = d.variables.actionColorBorderSecondary;
147
- i = d.variables.actionColorBorderSecondaryActive;
148
- c = d.variables.actionColorBorderSecondaryDisabled;
149
- l = d.variables.actionColorBorderSecondaryHover;
150
- e = d.variables.actionColorBackgroundSecondary;
151
- o = d.variables.actionColorBackgroundSecondaryActive;
152
- t = d.variables.actionColorBackgroundSecondaryHover;
146
+ n = s.variables.actionColorBorderSecondary;
147
+ i = s.variables.actionColorBorderSecondaryActive;
148
+ c = s.variables.actionColorBorderSecondaryDisabled;
149
+ l = s.variables.actionColorBorderSecondaryHover;
150
+ e = s.variables.actionColorBackgroundSecondary;
151
+ o = s.variables.actionColorBackgroundSecondaryActive;
152
+ t = s.variables.actionColorBackgroundSecondaryHover;
153
153
  break;
154
154
 
155
155
  case "subtle":
156
- b = d.variables.contentColorAccentStrong;
157
- u = d.variables.contentColorAccentStrong;
158
- o = d.variables.actionColorBackgroundSubtleActive;
159
- t = d.variables.actionColorBackgroundSubtleHover;
156
+ v = s.variables.contentColorAccentStrong;
157
+ u = s.variables.contentColorAccentStrong;
158
+ o = s.variables.actionColorBackgroundSubtleActive;
159
+ t = s.variables.actionColorBackgroundSubtleHover;
160
160
  break;
161
161
 
162
162
  case "standalone":
163
- s = d.variables.contentColorAccent;
164
- b = d.variables.contentColorAccentStrong;
165
- v = d.variables.contentColorAccentWeak;
166
- u = d.variables.contentColorAccentStrong;
167
- e = d.variables.actionColorBackgroundSubtle;
168
- o = d.variables.actionColorBackgroundSubtleActive;
169
- t = d.variables.actionColorBackgroundSubtleHover;
163
+ d = s.variables.contentColorAccent;
164
+ v = s.variables.contentColorAccentStrong;
165
+ b = s.variables.contentColorAccentWeak;
166
+ u = s.variables.contentColorAccentStrong;
167
+ e = s.variables.actionColorBackgroundSubtle;
168
+ o = s.variables.actionColorBackgroundSubtleActive;
169
+ t = s.variables.actionColorBackgroundSubtleHover;
170
170
  break;
171
171
 
172
172
  default:
@@ -180,9 +180,9 @@
180
180
  borderColorActive: i,
181
181
  borderColorDisabled: c,
182
182
  borderColorHover: l,
183
- color: s,
184
- colorActive: b,
185
- colorDisabled: v,
183
+ color: d,
184
+ colorActive: v,
185
+ colorDisabled: b,
186
186
  colorHover: u
187
187
  };
188
188
  return p;
@@ -196,126 +196,50 @@
196
196
  a = r;
197
197
  }
198
198
  var t = y(o);
199
- var n = v()(t, a), c = n.background, l = n.backgroundActive, s = n.backgroundDisabled, b = n.backgroundDisabledSelected, f = n.backgroundHover, C = n.borderColor, g = n.borderColorActive, m = n.borderColorDisabled, k = n.borderColorHover, S = n.color, O = n.colorActive, B = n.colorDisabled, A = n.colorHover;
200
- var D = c != null && c !== "transparent";
199
+ var n = b()(t, a), c = n.background, l = n.backgroundActive, d = n.backgroundDisabled, v = n.backgroundDisabledSelected, f = n.backgroundHover, g = n.borderColor, C = n.borderColorActive, k = n.borderColorDisabled, S = n.borderColorHover, m = n.color, B = n.colorActive, A = n.colorDisabled, D = n.colorHover;
200
+ var h = c != null && c !== "transparent";
201
201
  return function() {
202
- return (0, i.css)([ "border:", " solid ", ";border-radius:", ";", " ", " cursor:pointer;position:relative;font-weight:", ";&:focus,&:hover{z-index:3;}&:focus{box-shadow:", ";}&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";color:", ";}&:active{background-color:", ";border-color:", ";color:", ";transition:none;}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";", "}" ], d.variables.inputBorderWidth, C, d.variables.borderRadius, (function(r) {
202
+ return (0, i.css)([ "border:", " solid ", ";border-radius:", ";", " ", " cursor:pointer;position:relative;font-weight:", ";&:focus,&:hover{z-index:3;}&:focus{box-shadow:", ";}&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";color:", ";}&:active{background-color:", ";border-color:", ";color:", ";transition:none;}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";", "}" ], s.variables.inputBorderWidth, g, s.variables.borderRadius, (function(r) {
203
203
  var e = r.$append;
204
204
  return e && (0, i.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
205
205
  }), (function(r) {
206
206
  var e = r.$prepend;
207
207
  return e && (0, i.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
208
- }), d.variables.fontWeightSemiBold, d.variables.focusShadow, c, S, f, k, A, l, g, O, m, B, (function(r) {
208
+ }), s.variables.fontWeightSemiBold, s.variables.focusShadow, c, m, f, S, D, l, C, B, k, A, (function(r) {
209
209
  var e = r.$selected;
210
- return D && (0, i.css)([ "background-color:", ";" ], e ? b : s);
210
+ return h && (0, i.css)([ "background-color:", ";" ], e ? v : d);
211
211
  }));
212
212
  };
213
213
  }
214
- /* harmony default export */ const C = f;
214
+ /* harmony default export */ const g = f;
215
215
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimpleStyles.ts
216
- function g(r) {
217
- "@babel/helpers - typeof";
218
- return g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(r) {
219
- return typeof r;
220
- } : function(r) {
221
- return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
222
- }, g(r);
223
- }
224
- function m(r, e) {
225
- var o = Object.keys(r);
226
- if (Object.getOwnPropertySymbols) {
227
- var a = Object.getOwnPropertySymbols(r);
228
- e && (a = a.filter((function(e) {
229
- return Object.getOwnPropertyDescriptor(r, e).enumerable;
230
- }))), o.push.apply(o, a);
231
- }
232
- return o;
233
- }
234
- function k(r) {
235
- for (var e = 1; e < arguments.length; e++) {
236
- var o = null != arguments[e] ? arguments[e] : {};
237
- e % 2 ? m(Object(o), !0).forEach((function(e) {
238
- S(r, e, o[e]);
239
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : m(Object(o)).forEach((function(e) {
240
- Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e));
241
- }));
242
- }
243
- return r;
244
- }
245
- function S(r, e, o) {
246
- return (e = O(e)) in r ? Object.defineProperty(r, e, {
247
- value: o,
248
- enumerable: !0,
249
- configurable: !0,
250
- writable: !0
251
- }) : r[e] = o, r;
252
- }
253
- function O(r) {
254
- var e = B(r, "string");
255
- return "symbol" == g(e) ? e : e + "";
256
- }
257
- function B(r, e) {
258
- if ("object" != g(r) || !r) return r;
259
- var o = r[Symbol.toPrimitive];
260
- if (void 0 !== o) {
261
- var a = o.call(r, e || "default");
262
- if ("object" != g(a)) return a;
263
- throw new TypeError("@@toPrimitive must return a primitive value.");
264
- }
265
- return ("string" === e ? String : Number)(r);
266
- }
267
- var A = {
268
- borderColor: d.variables.interactiveColorAccentError,
269
- borderColorActive: d.variables.interactiveColorAccentError,
270
- borderColorHover: d.mixins.overlayColors(d.variables.interactiveColorAccentError, d.variables.interactiveColorBorderHover)
271
- };
272
- var D = {
273
- background: d.variables.interactiveColorBackground,
274
- backgroundActive: d.variables.interactiveColorOverlayActive,
275
- backgroundHover: d.variables.interactiveColorOverlayHover,
276
- borderColor: d.variables.transparent,
277
- borderColorActive: d.variables.transparent,
278
- borderColorDisabled: d.variables.transparent,
279
- borderColorHover: d.variables.transparent,
280
- color: d.variables.contentColorActive,
281
- colorActive: d.variables.contentColorActive,
282
- colorDisable: d.variables.contentColorDisabled,
283
- colorHover: d.variables.contentColorActive
284
- };
285
- var h = {
286
- background: d.variables.interactiveColorBackground,
287
- backgroundActive: d.variables.interactiveColorOverlayActive,
288
- backgroundHover: d.variables.interactiveColorOverlayHover,
289
- borderColor: d.variables.interactiveColorBorder,
290
- borderColorActive: d.variables.interactiveColorBorderActive,
291
- borderColorDisabled: d.variables.interactiveColorBorderDisabled,
292
- borderColorHover: d.variables.interactiveColorBorderHover
216
+ var C = {
217
+ borderColor: s.variables.interactiveColorAccentError,
218
+ borderColorActive: s.variables.interactiveColorAccentError,
219
+ borderColorHover: s.mixins.overlayColors(s.variables.interactiveColorAccentError, s.variables.interactiveColorBorderHover)
293
220
  };
294
- var j = c()(s()).withConfig({
221
+ var k = c()(d()).withConfig({
295
222
  displayName: "ButtonSimpleStyles__StyledClickable",
296
223
  componentId: "vlarwe-0"
297
- })([ "", " align-items:center;justify-content:center;&:not([disabled],[aria-disabled='true']){", "}", "" ], d.mixins.reset("flex"), (function(r) {
298
- var e = r.$error, o = r.$isMenu;
299
- return e && (0, i.css)([ "", "" ], (0, d.pickVariant)("$variant", {
300
- default: o ? C("secondary", k(k({}, h), A)) : C("secondary", A),
301
- secondary: o ? C("secondary", k(k({}, h), A)) : C("secondary", A),
302
- subtle: o ? C("secondary", k(k({}, D), A)) : C("subtle", A)
224
+ })([ "", " align-items:center;justify-content:center;&:not([disabled],[aria-disabled='true']){", "}", "" ], s.mixins.reset("flex"), (function(r) {
225
+ var e = r.$error;
226
+ return e && (0, i.css)([ "", "" ], (0, s.pickVariant)("$variant", {
227
+ default: g("secondary", C),
228
+ secondary: g("secondary", C),
229
+ subtle: g("subtle", C)
303
230
  }));
304
- }), (function(r) {
305
- var e = r.$isMenu;
306
- return (0, d.pickVariant)("$variant", {
307
- default: e ? C("secondary", h) : C("secondary"),
308
- primary: C("primary"),
309
- secondary: e ? C("secondary", h) : C("secondary"),
310
- subtle: e ? C("secondary", D) : C("subtle"),
311
- destructive: C("destructive"),
312
- destructiveSecondary: C("destructiveSecondary"),
313
- standalone: C("standalone")
314
- });
231
+ }), (0, s.pickVariant)("$variant", {
232
+ default: g("secondary"),
233
+ primary: g("primary"),
234
+ secondary: g("secondary"),
235
+ subtle: g("subtle"),
236
+ destructive: g("destructive"),
237
+ destructiveSecondary: g("destructiveSecondary"),
238
+ standalone: g("standalone")
315
239
  }));
316
240
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
317
- function H() {
318
- return H = Object.assign ? Object.assign.bind() : function(r) {
241
+ function S() {
242
+ return S = Object.assign ? Object.assign.bind() : function(r) {
319
243
  for (var e = 1; e < arguments.length; e++) {
320
244
  var o = arguments[e];
321
245
  for (var a in o) {
@@ -323,11 +247,11 @@
323
247
  }
324
248
  }
325
249
  return r;
326
- }, H.apply(null, arguments);
250
+ }, S.apply(null, arguments);
327
251
  }
328
- function w(r, e) {
252
+ function m(r, e) {
329
253
  if (null == r) return {};
330
- var o, a, t = P(r, e);
254
+ var o, a, t = B(r, e);
331
255
  if (Object.getOwnPropertySymbols) {
332
256
  var n = Object.getOwnPropertySymbols(r);
333
257
  for (a = 0; a < n.length; a++) {
@@ -336,7 +260,7 @@
336
260
  }
337
261
  return t;
338
262
  }
339
- function P(r, e) {
263
+ function B(r, e) {
340
264
  if (null == r) return {};
341
265
  var o = {};
342
266
  for (var a in r) {
@@ -347,7 +271,7 @@
347
271
  }
348
272
  return o;
349
273
  }
350
- var x = {
274
+ var A = {
351
275
  action: n().string,
352
276
  appearance: n().oneOf([ "default", "secondary", "primary", "destructive", "destructiveSecondary", "subtle", "standalone" ]),
353
277
  append: n().bool,
@@ -360,24 +284,24 @@
360
284
  prepend: n().bool,
361
285
  to: n().string
362
286
  };
363
- var $ = a().forwardRef((function(r, e) {
364
- var o = r.appearance, t = o === void 0 ? "default" : o, n = r.append, i = r.children, c = r.disabled, l = r.error, s = r.isMenu, d = r.prepend, b = w(r, [ "appearance", "append", "children", "disabled", "error", "isMenu", "prepend" ]);
287
+ var D = a().forwardRef((function(r, e) {
288
+ var o = r.appearance, t = o === void 0 ? "default" : o, n = r.append, i = r.children, c = r.disabled, l = r.error, d = r.isMenu, s = r.prepend, v = m(r, [ "appearance", "append", "children", "disabled", "error", "isMenu", "prepend" ]);
365
289
  // @docs-props-type ButtonSimplePropsBase
366
290
 
367
- return a().createElement(j, H({
291
+ return a().createElement(k, S({
368
292
  "aria-invalid": l,
369
293
  "data-test": "button-simple",
370
294
  disabled: c,
371
295
  $variant: t,
372
296
  $append: n,
373
- $prepend: d,
297
+ $prepend: s,
374
298
  $error: l,
375
- $isMenu: s,
299
+ $isMenu: d,
376
300
  ref: e
377
- }, b), i);
301
+ }, v), i);
378
302
  }));
379
- $.propTypes = x;
380
- /* harmony default export */ const M = $;
303
+ D.propTypes = A;
304
+ /* harmony default export */ const h = D;
381
305
  // only for styled-components that wrap ButtonSimple
382
306
  // CONCATENATED MODULE: ./src/ButtonSimple/index.ts
383
307
  module.exports = e;
@@ -1,6 +1,48 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 5.0.0-rc.2 - May 28, 2025
5
+ ----------
6
+ New Features:
7
+ * `Code` now supports `language="sql"` (SUI-7614).
8
+ * `Table.HeadCell` now supports the `tooltip` prop (SUI-7734).
9
+
10
+ API Changes:
11
+ * All components now use `KeyboardEvent`'s `key` property instead of the deprecated `keyCode` property (SUI-7352).
12
+ * `Dropdown` now exports type `DropdownPossibleOpenReason` and provides an array of `Dropdown.possibleOpenReasons` (SUI-2422).
13
+ * `Popover` now provides an array of `Popover.possibleCloseReasons` (SUI-2422).
14
+ * `Tooltip` now exports types `TooltipPossibleOpenReason` and `TooltipPossibleCloseReason`, and provides an array `Tooltip.possibleOpenReasons` and `Tooltip.possibleCloseReasons` (SUI-2422).
15
+
16
+ Bug Fixes:
17
+ * `Modal` close button now has correct `subtle` appearance.
18
+ * `Multiselect` no longer incorrectly throws a "defaultValue prop change" error in some scenarios (SUI-7777).
19
+ * `Table.HeadCell` and `Table.HeadDropdownCell` now aligns the topline of icons with multiline content (SUI-7758).
20
+ * `Table`'s cell single and multiline content now are vertically aligned (SUI-7613).
21
+ * `Markdown` now correctly renders code blocks where the language name is hyphenated (SUI-7829).
22
+
23
+ 5.0.0-rc.1 - May 14, 2025
24
+ ----------
25
+ New Features:
26
+ * `Card` now defaults to a borderless appearance for non-clickable cards (SUI-7651).
27
+ * `Dropdown`, `Search`, and `TabBar` now uses `KeyboardEvent`'s `key` property instead of deprecated `keyCode` property (SUI-7352).
28
+ * `Table` now uses `KeyboardEvent`'s `key` property instead of deprecated `keyCode` property (SUI-7352).
29
+ * `FormRows`, `JSONTree`, `Number`, and `RadioBar` now use `KeyboardEvent`'s `key` property instead of deprecated `keyCode` property (SUI-7352).
30
+
31
+ Bug Fixes:
32
+ * `Table`'s `rowExpansion` button now correctly displays hover styles (SUI-7772).
33
+ * `Text` no longer has border hover effects incorrectly applied when `disabled` or `dimmed` (SUI-7639).
34
+ * `Switch`'s `toggle` appearance now has correct role of `switch` (SUI-7713).
35
+ * `Table.HeadCell`'s and `Table.HeadDropdownCell`'s borders now span the full cell height when content wraps to multiline (SUI-7760)
36
+ * `CollapsiblePanel` no longer flickers on open or close of panel (SUI-7620).
37
+ * `Color` now passes `className` and `elementRef` to the root element instead of an inner component, allowing proper styling with `styled-components` (SUI-6211).
38
+ * `Button`'s now have consistent styling when using `appearance="secondary"` and `isMenu` (SUI-7611).
39
+
40
+ Deprecations:
41
+ * `Popover`'s `"inverted"` value of the `appearance` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6154).
42
+
43
+ API Changes:
44
+ * `Color`'s test hook `[data-test="color"]` is now on the root component and `[data-test="toggle-swatch"]` is on the toggle swatch. See migration guide for details (SUI-7773).
45
+
4
46
  5.0.0-beta.5 - May 7, 2025
5
47
  ----------
6
48
  New Features:
@@ -181,6 +223,7 @@ API Changes:
181
223
  * `Button`'s `appearance` prop no longer supports the `"flat"`, `"pill"`, or `"toggle"` values (SUI-6561).
182
224
  * `Button`'s `selected` prop has been removed (SUI-6058).
183
225
  * `Button` no longer supports the `error` prop.
226
+ * `Button`'s `label` prop no longer sets HTML `label` attribute. See migration guide for details (SUI-6054).
184
227
 
185
228
  * `Card` and `Card.Footer`'s `showBorder` prop has been removed (SUI-6577).
186
229