@splunk/react-ui 5.6.0 → 5.7.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/ButtonSimple.js CHANGED
@@ -61,8 +61,8 @@
61
61
  r.r(e);
62
62
  // EXPORTS
63
63
  r.d(e, {
64
- buttonMixin: () => /* reexport */ f,
65
- default: () => /* reexport */ A
64
+ buttonMixin: () => /* reexport */ C,
65
+ default: () => /* reexport */ $
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const o = require("react");
@@ -75,23 +75,23 @@
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 d = r.n(l);
78
+ var s = r.n(l);
79
79
  // CONCATENATED MODULE: external "@splunk/themes"
80
- const s = require("@splunk/themes");
80
+ const d = require("@splunk/themes");
81
81
  // CONCATENATED MODULE: external "lodash/merge"
82
82
  const b = require("lodash/merge");
83
- var v = r.n(b);
83
+ var u = r.n(b);
84
84
  // CONCATENATED MODULE: ./src/ButtonSimple/mixin.ts
85
- function u(r) {
85
+ function v(r) {
86
86
  "@babel/helpers - typeof";
87
- return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(r) {
87
+ return v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(r) {
88
88
  return typeof r;
89
89
  } : function(r) {
90
90
  return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
91
- }, u(r);
91
+ }, v(r);
92
92
  }
93
- var p = [ "primary", "secondary", "destructive", "destructiveSecondary", "subtle", "standalone" ];
94
- function y(r) {
93
+ var y = [ "primary", "secondary", "destructive", "destructiveSecondary", "subtle", "standalone" ];
94
+ function p(r) {
95
95
  var e = "transparent";
96
96
  var o = "transparent";
97
97
  var a = "transparent";
@@ -100,78 +100,78 @@
100
100
  var i;
101
101
  var c;
102
102
  var l;
103
- var d = s.variables.actionColorContentSecondary;
103
+ var s = d.variables.actionColorContentSecondary;
104
104
  var b;
105
- var v = s.variables.actionColorContentSecondaryDisabled;
106
- var u;
105
+ var u = d.variables.actionColorContentSecondaryDisabled;
106
+ var v;
107
107
  switch (r) {
108
108
  case "primary":
109
109
  {
110
- e = s.variables.actionColorBackgroundPrimary;
111
- o = s.variables.actionColorBackgroundPrimaryActive;
112
- a = s.variables.actionColorBackgroundPrimaryDisabled;
113
- t = s.variables.actionColorBackgroundPrimaryHover;
114
- d = s.variables.actionColorContentPrimary;
115
- v = s.variables.actionColorContentPrimaryDisabled;
110
+ e = d.variables.actionColorBackgroundPrimary;
111
+ o = d.variables.actionColorBackgroundPrimaryActive;
112
+ a = d.variables.actionColorBackgroundPrimaryDisabled;
113
+ t = d.variables.actionColorBackgroundPrimaryHover;
114
+ s = d.variables.actionColorContentPrimary;
115
+ u = d.variables.actionColorContentPrimaryDisabled;
116
116
  break;
117
117
  }
118
118
 
119
119
  case "destructive":
120
120
  {
121
- e = s.variables.actionColorBackgroundDestructive;
122
- o = s.variables.actionColorBackgroundDestructiveActive;
123
- a = s.variables.actionColorBackgroundDestructiveDisabled;
124
- t = s.variables.actionColorBackgroundDestructiveHover;
125
- d = s.variables.actionColorContentDestructive;
126
- v = s.variables.actionColorContentDestructiveDisabled;
121
+ e = d.variables.actionColorBackgroundDestructive;
122
+ o = d.variables.actionColorBackgroundDestructiveActive;
123
+ a = d.variables.actionColorBackgroundDestructiveDisabled;
124
+ t = d.variables.actionColorBackgroundDestructiveHover;
125
+ s = d.variables.actionColorContentDestructive;
126
+ u = d.variables.actionColorContentDestructiveDisabled;
127
127
  break;
128
128
  }
129
129
 
130
130
  case "destructiveSecondary":
131
131
  {
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.actionColorContentDestructiveSecondary;
141
- v = s.variables.actionColorContentDestructiveSecondaryDisabled;
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.actionColorContentDestructiveSecondary;
141
+ u = d.variables.actionColorContentDestructiveSecondaryDisabled;
142
142
  break;
143
143
  }
144
144
 
145
145
  case "secondary":
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;
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;
153
153
  break;
154
154
 
155
155
  case "subtle":
156
- o = s.variables.actionColorBackgroundSubtleActive;
157
- t = s.variables.actionColorBackgroundSubtleHover;
158
- b = s.variables.actionColorContentSubtleActive;
159
- u = s.variables.actionColorContentSubtleHover;
156
+ o = d.variables.actionColorBackgroundSubtleActive;
157
+ t = d.variables.actionColorBackgroundSubtleHover;
158
+ b = d.variables.actionColorContentSubtleActive;
159
+ v = d.variables.actionColorContentSubtleHover;
160
160
  break;
161
161
 
162
162
  case "standalone":
163
- e = s.variables.actionColorBackgroundSubtle;
164
- o = s.variables.actionColorBackgroundSubtleActive;
165
- t = s.variables.actionColorBackgroundSubtleHover;
166
- d = s.variables.actionColorContentStandalone;
167
- b = s.variables.actionColorContentStandaloneActive;
168
- v = s.variables.actionColorContentStandaloneDisabled;
169
- u = s.variables.actionColorContentStandaloneHover;
163
+ e = d.variables.actionColorBackgroundSubtle;
164
+ o = d.variables.actionColorBackgroundSubtleActive;
165
+ t = d.variables.actionColorBackgroundSubtleHover;
166
+ s = d.variables.actionColorContentStandalone;
167
+ b = d.variables.actionColorContentStandaloneActive;
168
+ u = d.variables.actionColorContentStandaloneDisabled;
169
+ v = d.variables.actionColorContentStandaloneHover;
170
170
  break;
171
171
 
172
172
  default:
173
173
  }
174
- var p = {
174
+ var y = {
175
175
  background: e,
176
176
  backgroundActive: o,
177
177
  backgroundDisabled: a,
@@ -180,66 +180,130 @@
180
180
  borderColorActive: i,
181
181
  borderColorDisabled: c,
182
182
  borderColorHover: l,
183
- color: d,
183
+ color: s,
184
184
  colorActive: b,
185
- colorDisabled: v,
186
- colorHover: u
185
+ colorDisabled: u,
186
+ colorHover: v
187
187
  };
188
- return p;
188
+ return y;
189
189
  }
190
- function C(r, e) {
191
- var o = typeof r === "string" && p.includes(r) ? r : undefined;
190
+ function f(r, e) {
191
+ var o = typeof r === "string" && y.includes(r) ? r : undefined;
192
192
  var a = {};
193
193
  if (o && e !== undefined) {
194
194
  a = e;
195
- } else if (o === undefined && u(r) === "object" && e === undefined) {
195
+ } else if (o === undefined && v(r) === "object" && e === undefined) {
196
196
  a = r;
197
197
  }
198
- var t = y(o);
199
- var n = v()(t, a), c = n.background, l = n.backgroundActive, d = n.backgroundDisabled, b = n.backgroundDisabledSelected, C = n.backgroundHover, f = n.borderColor, g = n.borderColorActive, S = n.borderColorDisabled, k = n.borderColorHover, m = n.color, D = n.colorActive, B = n.colorDisabled, h = n.colorHover;
200
- var A = c != null && c !== "transparent";
198
+ var t = p(o);
199
+ var n = u()(t, a), c = n.background, l = n.backgroundActive, s = n.backgroundDisabled, b = n.backgroundDisabledSelected, f = n.backgroundHover, C = n.borderColor, g = n.borderColorActive, S = n.borderColorDisabled, m = n.borderColorHover, k = n.color, D = n.colorActive, O = n.colorDisabled, B = 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:", ";", "}" ], s.variables.inputBorderWidth, f, s.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:", ";", "}" ], d.variables.inputBorderWidth, C, d.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
- }), s.variables.fontWeightSemiBold, s.variables.focusShadow, c, m, C, k, h, l, g, D, S, B, (function(r) {
208
+ }), d.variables.fontWeightSemiBold, d.variables.focusShadow, c, k, f, m, B, l, g, D, S, O, (function(r) {
209
209
  var e = r.$selected;
210
- return A && (0, i.css)([ "background-color:", ";" ], e ? b : d);
210
+ return h && (0, i.css)([ "background-color:", ";" ], e ? b : s);
211
211
  }));
212
212
  };
213
213
  }
214
- /* harmony default export */ const f = C;
214
+ /* harmony default export */ const C = f;
215
215
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimpleStyles.ts
216
- var g = {
217
- borderColor: s.variables.interactiveColorAccentError,
218
- borderColorActive: s.variables.interactiveColorAccentError,
219
- borderColorHover: s.mixins.overlayColors(s.variables.interactiveColorAccentError, s.variables.interactiveColorBorderHover)
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 S(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 m(r) {
235
+ for (var e = 1; e < arguments.length; e++) {
236
+ var o = null != arguments[e] ? arguments[e] : {};
237
+ e % 2 ? S(Object(o), !0).forEach((function(e) {
238
+ k(r, e, o[e]);
239
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : S(Object(o)).forEach((function(e) {
240
+ Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e));
241
+ }));
242
+ }
243
+ return r;
244
+ }
245
+ function k(r, e, o) {
246
+ return (e = D(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 D(r) {
254
+ var e = O(r, "string");
255
+ return "symbol" == g(e) ? e : e + "";
256
+ }
257
+ function O(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 B = {
268
+ borderColor: d.variables.interactiveColorAccentError,
269
+ borderColorActive: d.variables.interactiveColorAccentError,
270
+ borderColorHover: d.mixins.overlayColors(d.variables.interactiveColorAccentError, d.variables.interactiveColorBorderHover)
220
271
  };
221
- var S = c()(d()).withConfig({
272
+ /**
273
+ * When `isMenu` is true, the button should use interactive tokens (e.g. Select) rather than action tokens (e.g. Button).
274
+ */ var h = {
275
+ color: d.variables.contentColorActive,
276
+ colorDisabled: d.variables.contentColorDisabled,
277
+ borderColor: d.variables.interactiveColorBorder,
278
+ borderColorActive: d.variables.interactiveColorBorderActive,
279
+ borderColorHover: d.variables.interactiveColorBorderHover,
280
+ borderColorDisabled: d.variables.interactiveColorBorderDisabled
281
+ };
282
+ var j = c()(s()).withConfig({
222
283
  displayName: "ButtonSimpleStyles__StyledClickable",
223
284
  componentId: "vlarwe-0"
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: f("secondary", g),
228
- secondary: f("secondary", g),
229
- subtle: f("subtle", g)
285
+ })([ "", " align-items:center;justify-content:center;&:not([disabled],[aria-disabled='true']){", "}", "" ], d.mixins.reset("flex"), (function(r) {
286
+ var e = r.$error, o = r.$isMenu;
287
+ return e && (0, i.css)([ "", "" ], (0, d.pickVariant)("$variant", {
288
+ default: o ? C("secondary", m(m({}, h), B)) : C("secondary", B),
289
+ secondary: o ? C("secondary", m(m({}, h), B)) : C("secondary", B),
290
+ subtle: C("subtle", B)
230
291
  }));
231
- }), (0, s.pickVariant)("$variant", {
232
- default: f("secondary"),
233
- primary: f("primary"),
234
- secondary: f("secondary"),
235
- subtle: f("subtle"),
236
- destructive: f("destructive"),
237
- destructiveSecondary: f("destructiveSecondary"),
238
- standalone: f("standalone")
292
+ }), (function(r) {
293
+ var e = r.$isMenu;
294
+ return (0, d.pickVariant)("$variant", {
295
+ default: e ? C("secondary", h) : C("secondary"),
296
+ primary: C("primary"),
297
+ secondary: e ? C("secondary", h) : C("secondary"),
298
+ subtle: C("subtle"),
299
+ destructive: C("destructive"),
300
+ destructiveSecondary: C("destructiveSecondary"),
301
+ standalone: C("standalone")
302
+ });
239
303
  }));
240
304
  // CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
241
- function k() {
242
- return k = Object.assign ? Object.assign.bind() : function(r) {
305
+ function P() {
306
+ return P = Object.assign ? Object.assign.bind() : function(r) {
243
307
  for (var e = 1; e < arguments.length; e++) {
244
308
  var o = arguments[e];
245
309
  for (var a in o) {
@@ -247,11 +311,11 @@
247
311
  }
248
312
  }
249
313
  return r;
250
- }, k.apply(null, arguments);
314
+ }, P.apply(null, arguments);
251
315
  }
252
- function m(r, e) {
316
+ function w(r, e) {
253
317
  if (null == r) return {};
254
- var o, a, t = D(r, e);
318
+ var o, a, t = A(r, e);
255
319
  if (Object.getOwnPropertySymbols) {
256
320
  var n = Object.getOwnPropertySymbols(r);
257
321
  for (a = 0; a < n.length; a++) {
@@ -260,7 +324,7 @@
260
324
  }
261
325
  return t;
262
326
  }
263
- function D(r, e) {
327
+ function A(r, e) {
264
328
  if (null == r) return {};
265
329
  var o = {};
266
330
  for (var a in r) {
@@ -271,7 +335,7 @@
271
335
  }
272
336
  return o;
273
337
  }
274
- var B = {
338
+ var H = {
275
339
  action: n().string,
276
340
  appearance: n().oneOf([ "default", "secondary", "primary", "destructive", "destructiveSecondary", "subtle", "standalone" ]),
277
341
  append: n().bool,
@@ -284,24 +348,24 @@
284
348
  prepend: n().bool,
285
349
  to: n().string
286
350
  };
287
- var h = 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, b = m(r, [ "appearance", "append", "children", "disabled", "error", "isMenu", "prepend" ]);
351
+ var x = a().forwardRef((function(r, e) {
352
+ 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" ]);
289
353
  // @docs-props-type ButtonSimplePropsBase
290
354
 
291
- return a().createElement(S, k({
355
+ return a().createElement(j, P({
292
356
  "aria-invalid": l,
293
357
  "data-test": "button-simple",
294
358
  disabled: c,
295
359
  $variant: t,
296
360
  $append: n,
297
- $prepend: s,
361
+ $prepend: d,
298
362
  $error: l,
299
- $isMenu: d,
363
+ $isMenu: s,
300
364
  ref: e
301
365
  }, b), i);
302
366
  }));
303
- h.propTypes = B;
304
- /* harmony default export */ const A = h;
367
+ x.propTypes = H;
368
+ /* harmony default export */ const $ = x;
305
369
  // only for styled-components that wrap ButtonSimple
306
370
  // CONCATENATED MODULE: ./src/ButtonSimple/index.ts
307
371
  module.exports = e;
package/CHANGELOG.md CHANGED
@@ -1,11 +1,32 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 5.7.1 - January 6, 2026
5
+ ----------
6
+ Bug Fixes:
7
+ * `TransitionOpen` now adjusts to change in content size (SUI-8518).
8
+
9
+ 5.7.0 - December 10, 2025
10
+ ----------
11
+ New Features:
12
+ * `Card.Header` now supports a new `icon` prop (SUI-8473).
13
+
14
+ Bug Fixes:
15
+ * `Card.Header`'s text is now aligned properly when it's positioned below `Card.Body`.
16
+ * `Button` uses interactive tokens for styling when `isMenu={true}` (SUI-8354).
17
+ * Fixes styling for `Select` in magnetic themes.
18
+ * `Menu.Item` no longer reports a `PropTypes` error for `role="link"` (SUI-8393).
19
+ * `AnchorMenu`'s `label` will no longer collapse when the number of items exceeds the page height.
20
+ * `Slider`'s thumb will no longer submit a `form` (SUI-8463).
21
+
22
+ Docs:
23
+ * `Multiselect.Option`'s unsupported `elementRef` prop was removed from documentation (SUI-8286).
24
+
4
25
  5.6.0 - December 3, 2025
5
26
  ----------
6
27
  New Features:
7
28
  * New `AnchorMenu` component (SUI-8367).
8
- * `Menu.Item` now supports `role="link" (SUI-8393).
29
+ * `Menu.Item` now supports `role="link"` (SUI-8393).
9
30
 
10
31
  Bug Fixes:
11
32
  * `Multiselect` now retains new values when select all is used (SUI-8402).