@splunk/react-ui 4.26.0 → 4.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/Accordion.js +195 -212
  2. package/CHANGELOG.md +26 -3
  3. package/CollapsiblePanel.js +554 -325
  4. package/Color.js +3 -1
  5. package/ControlGroup.js +1 -0
  6. package/MIGRATION.mdx +30 -0
  7. package/Modal.js +15 -6
  8. package/Table.js +898 -866
  9. package/Text.js +30 -40
  10. package/TextArea.js +152 -236
  11. package/package.json +4 -2
  12. package/types/src/Accordion/Accordion.d.ts +2 -2
  13. package/types/src/Accordion/AccordionContext.d.ts +2 -3
  14. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +49 -15
  15. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +62 -0
  16. package/types/src/CollapsiblePanel/SingleOpenPanelGroupContext.d.ts +9 -0
  17. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -2
  18. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -0
  19. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -0
  20. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +7 -5
  21. package/types/src/Table/Cell.d.ts +3 -1
  22. package/types/src/Table/Head.d.ts +2 -2
  23. package/types/src/Table/HeadCell.d.ts +2 -0
  24. package/types/src/Table/Row.d.ts +4 -2
  25. package/types/src/Table/Table.d.ts +1 -1
  26. package/types/src/Table/Toggle.d.ts +4 -4
  27. package/types/src/fixtures/text.d.ts +1 -0
  28. package/types/src/CollapsiblePanel/docs/examples/prisma/BasicControlled.d.ts +0 -2
  29. package/types/src/CollapsiblePanel/docs/examples/prisma/BasicUncontrolled.d.ts +0 -2
  30. package/types/src/CollapsiblePanel/docs/examples/prisma/Content.d.ts +0 -1
  31. package/types/src/CollapsiblePanel/docs/examples/prisma/MultiControlled.d.ts +0 -2
  32. package/types/src/CollapsiblePanel/docs/examples/prisma/MultiUncontrolled.d.ts +0 -2
package/Accordion.js CHANGED
@@ -8,27 +8,27 @@
8
8
  /******/ /* webpack/runtime/compat get default export */
9
9
  /******/ (() => {
10
10
  /******/ // getDefaultExport function for compatibility with non-harmony modules
11
- /******/ e.n = t => {
12
- /******/ var n = t && t.__esModule ?
13
- /******/ () => t["default"]
14
- /******/ : () => t
11
+ /******/ e.n = n => {
12
+ /******/ var t = n && n.__esModule ?
13
+ /******/ () => n["default"]
14
+ /******/ : () => n
15
15
  /******/;
16
- e.d(n, {
17
- a: n
16
+ e.d(t, {
17
+ a: t
18
18
  });
19
- /******/ return n;
19
+ /******/ return t;
20
20
  /******/ };
21
21
  /******/ })();
22
22
  /******/
23
23
  /******/ /* webpack/runtime/define property getters */
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
- /******/ e.d = (t, n) => {
27
- /******/ for (var r in n) {
28
- /******/ if (e.o(n, r) && !e.o(t, r)) {
29
- /******/ Object.defineProperty(t, r, {
26
+ /******/ e.d = (n, t) => {
27
+ /******/ for (var r in t) {
28
+ /******/ if (e.o(t, r) && !e.o(n, r)) {
29
+ /******/ Object.defineProperty(n, r, {
30
30
  enumerable: true,
31
- get: n[r]
31
+ get: t[r]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -37,7 +37,7 @@
37
37
  /******/
38
38
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
39
  /******/ (() => {
40
- /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
40
+ /******/ e.o = (e, n) => Object.prototype.hasOwnProperty.call(e, n)
41
41
  /******/;
42
42
  })();
43
43
  /******/
@@ -56,46 +56,46 @@
56
56
  /******/ };
57
57
  /******/ })();
58
58
  /******/
59
- /************************************************************************/ var t = {};
59
+ /************************************************************************/ var n = {};
60
60
  // ESM COMPAT FLAG
61
- e.r(t);
61
+ e.r(n);
62
62
  // EXPORTS
63
- e.d(t, {
64
- Panel: () => /* reexport */ S,
65
- default: () => /* reexport */ L
63
+ e.d(n, {
64
+ Panel: () => /* reexport */ x,
65
+ default: () => /* reexport */ K
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
- const n = require("react");
69
- var r = e.n(n);
68
+ const t = require("react");
69
+ var r = e.n(t);
70
70
  // CONCATENATED MODULE: external "prop-types"
71
71
  const o = require("prop-types");
72
- var i = e.n(o);
72
+ var a = e.n(o);
73
73
  // CONCATENATED MODULE: external "lodash/has"
74
- const a = require("lodash/has");
75
- var l = e.n(a);
74
+ const i = require("lodash/has");
75
+ var l = e.n(i);
76
76
  // CONCATENATED MODULE: external "lodash/keys"
77
77
  const u = require("lodash/keys");
78
78
  var c = e.n(u);
79
79
  // CONCATENATED MODULE: external "lodash/omit"
80
- const s = require("lodash/omit");
81
- var f = e.n(s);
80
+ const f = require("lodash/omit");
81
+ var s = e.n(f);
82
82
  // CONCATENATED MODULE: external "@splunk/react-ui/CollapsiblePanel"
83
83
  const p = require("@splunk/react-ui/CollapsiblePanel");
84
84
  var d = e.n(p);
85
85
  // CONCATENATED MODULE: external "@splunk/themes"
86
86
  const y = require("@splunk/themes");
87
87
  // CONCATENATED MODULE: ./src/Accordion/AccordionContext.tsx
88
- var b = (0, n.createContext)({});
89
- b.displayName = "Accordion";
90
- /* harmony default export */ const v = b;
88
+ var v = (0, t.createContext)({});
89
+ v.displayName = "Accordion";
90
+ /* harmony default export */ const b = v;
91
91
  // CONCATENATED MODULE: ./src/Accordion/Panel.tsx
92
92
  function h() {
93
93
  h = Object.assign || function(e) {
94
- for (var t = 1; t < arguments.length; t++) {
95
- var n = arguments[t];
96
- for (var r in n) {
97
- if (Object.prototype.hasOwnProperty.call(n, r)) {
98
- e[r] = n[r];
94
+ for (var n = 1; n < arguments.length; n++) {
95
+ var t = arguments[n];
96
+ for (var r in t) {
97
+ if (Object.prototype.hasOwnProperty.call(t, r)) {
98
+ e[r] = t[r];
99
99
  }
100
100
  }
101
101
  }
@@ -103,41 +103,41 @@
103
103
  };
104
104
  return h.apply(this, arguments);
105
105
  }
106
- function O(e, t) {
106
+ function m(e, n) {
107
107
  if (e == null) return {};
108
- var n = m(e, t);
108
+ var t = g(e, n);
109
109
  var r, o;
110
110
  if (Object.getOwnPropertySymbols) {
111
- var i = Object.getOwnPropertySymbols(e);
112
- for (o = 0; o < i.length; o++) {
113
- r = i[o];
114
- if (t.indexOf(r) >= 0) continue;
111
+ var a = Object.getOwnPropertySymbols(e);
112
+ for (o = 0; o < a.length; o++) {
113
+ r = a[o];
114
+ if (n.indexOf(r) >= 0) continue;
115
115
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
116
- n[r] = e[r];
116
+ t[r] = e[r];
117
117
  }
118
118
  }
119
- return n;
119
+ return t;
120
120
  }
121
- function m(e, t) {
121
+ function g(e, n) {
122
122
  if (e == null) return {};
123
- var n = {};
123
+ var t = {};
124
124
  var r = Object.keys(e);
125
- var o, i;
126
- for (i = 0; i < r.length; i++) {
127
- o = r[i];
128
- if (t.indexOf(o) >= 0) continue;
129
- n[o] = e[o];
125
+ var o, a;
126
+ for (a = 0; a < r.length; a++) {
127
+ o = r[a];
128
+ if (n.indexOf(o) >= 0) continue;
129
+ t[o] = e[o];
130
130
  }
131
- return n;
131
+ return t;
132
132
  }
133
- var P = {
134
- description: i().string,
135
- elementRef: i().oneOfType([ i().func, i().object ]),
136
- inset: i().bool,
137
- panelId: i().any.isRequired,
138
- title: i().node.isRequired
133
+ var O = {
134
+ description: a().string,
135
+ elementRef: a().oneOfType([ a().func, a().object ]),
136
+ inset: a().bool,
137
+ panelId: a().any.isRequired,
138
+ title: a().node.isRequired
139
139
  };
140
- var g = function e(t, n) {
140
+ var P = function e(n, t) {
141
141
  var r = {
142
142
  enterprise: {
143
143
  compact: "8px",
@@ -148,171 +148,155 @@
148
148
  comfortable: "20px"
149
149
  }
150
150
  };
151
- return r[t][n];
151
+ return r[n][t];
152
+ };
153
+ var C = {
154
+ flexShrink: 1
152
155
  };
153
156
  /**
154
157
  * `Accordion.Panel` operates as a container component for content in an `Accordion`.
155
158
  */ function j(e) {
156
- var t = e.panelId, o = e.inset, i = O(e, [ "panelId", "inset" ]);
159
+ var n = e.panelId, o = e.inset, a = m(e, [ "panelId", "inset" ]);
157
160
  // @docs-props-type AccordionPanelPropsBase
158
- var a = (0, y.useSplunkTheme)(), l = a.family, u = a.density;
159
- var c = (0, n.useContext)(b), s = c.onRequestClose, f = c.onRequestOpen, p = c.openPanelId, v = c.inset;
160
- var m = p === t;
161
- var P = o !== undefined ? o : v;
161
+ var i = (0, y.useSplunkTheme)(), l = i.family, u = i.density;
162
+ var c = (0, t.useContext)(v), f = c.onChange, s = c.openPanelId, p = c.inset;
163
+ var b = s === n;
164
+ var g = o !== undefined ? o : p;
165
+ // Props are different based on controlled/uncontrolled
166
+ // For controlled, onChange required prop for controlled cases and must be defined.
167
+ var O = f ? {
168
+ onChange: f,
169
+ open: b
170
+ } : {
171
+ onChange: undefined
172
+ };
173
+ var j = function e() {
174
+ if (g) {
175
+ var n = P(l, u);
176
+ return {
177
+ padding: n
178
+ };
179
+ }
180
+ return undefined;
181
+ };
162
182
 
163
183
  return r().createElement(d(), h({
164
- panelId: t,
184
+ panelId: n,
165
185
  "data-test": "panel",
166
- innerBodyStyles: P ? {
167
- padding: g(l, u)
168
- } : undefined,
169
- "data-test-panel-id": t,
170
- style: {
171
- flexShrink: 1
172
- }
173
- }, i, {
174
- onRequestClose: s,
175
- onRequestOpen: f,
176
- open: m
177
- }));
186
+ innerBodyStyles: j(),
187
+ "data-test-panel-id": n,
188
+ style: C
189
+ }, a, O));
178
190
  }
179
- j.propTypes = P;
180
- /* harmony default export */ const S = j;
191
+ j.propTypes = O;
192
+ /* harmony default export */ const x = j;
181
193
  // CONCATENATED MODULE: external "styled-components"
182
- const R = require("styled-components");
183
- var q = e.n(R);
194
+ const I = require("styled-components");
195
+ var S = e.n(I);
184
196
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
185
197
  const w = require("@splunk/react-ui/Box");
186
- var x = e.n(w);
198
+ var k = e.n(w);
187
199
  // CONCATENATED MODULE: ./src/Accordion/AccordionStyles.ts
188
- var C = q()(x()).withConfig({
200
+ var _ = S()(k()).withConfig({
189
201
  displayName: "AccordionStyles__StyledBox",
190
202
  componentId: "m39hyh-0"
191
203
  })([ "", ";flex-direction:column;margin-bottom:0;", "" ], y.mixins.reset("flex"), (0,
192
204
  y.pick)({
193
- enterprise: (0, R.css)([ "background:", ";" ], y.variables.backgroundColor)
205
+ enterprise: (0, I.css)([ "background:", ";" ], y.variables.backgroundColor)
194
206
  }));
195
207
  // CONCATENATED MODULE: ./src/Accordion/Accordion.tsx
196
- function I(e) {
208
+ function R(e) {
197
209
  "@babel/helpers - typeof";
198
210
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
199
- I = function e(t) {
200
- return typeof t;
211
+ R = function e(n) {
212
+ return typeof n;
201
213
  };
202
214
  } else {
203
- I = function e(t) {
204
- return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
215
+ R = function e(n) {
216
+ return n && typeof Symbol === "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
205
217
  };
206
218
  }
207
- return I(e);
219
+ return R(e);
208
220
  }
209
- function k() {
210
- k = Object.assign || function(e) {
211
- for (var t = 1; t < arguments.length; t++) {
212
- var n = arguments[t];
213
- for (var r in n) {
214
- if (Object.prototype.hasOwnProperty.call(n, r)) {
215
- e[r] = n[r];
221
+ function q() {
222
+ q = Object.assign || function(e) {
223
+ for (var n = 1; n < arguments.length; n++) {
224
+ var t = arguments[n];
225
+ for (var r in t) {
226
+ if (Object.prototype.hasOwnProperty.call(t, r)) {
227
+ e[r] = t[r];
216
228
  }
217
229
  }
218
230
  }
219
231
  return e;
220
232
  };
221
- return k.apply(this, arguments);
222
- }
223
- function _(e, t) {
224
- var n = Object.keys(e);
225
- if (Object.getOwnPropertySymbols) {
226
- var r = Object.getOwnPropertySymbols(e);
227
- if (t) r = r.filter((function(t) {
228
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
229
- }));
230
- n.push.apply(n, r);
231
- }
232
- return n;
233
- }
234
- function E(e) {
235
- for (var t = 1; t < arguments.length; t++) {
236
- var n = arguments[t] != null ? arguments[t] : {};
237
- if (t % 2) {
238
- _(Object(n), true).forEach((function(t) {
239
- G(e, t, n[t]);
240
- }));
241
- } else if (Object.getOwnPropertyDescriptors) {
242
- Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
243
- } else {
244
- _(Object(n)).forEach((function(t) {
245
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
246
- }));
247
- }
248
- }
249
- return e;
233
+ return q.apply(this, arguments);
250
234
  }
251
- function T(e, t) {
252
- if (!(e instanceof t)) {
235
+ function E(e, n) {
236
+ if (!(e instanceof n)) {
253
237
  throw new TypeError("Cannot call a class as a function");
254
238
  }
255
239
  }
256
- function D(e, t) {
257
- for (var n = 0; n < t.length; n++) {
258
- var r = t[n];
240
+ function T(e, n) {
241
+ for (var t = 0; t < n.length; t++) {
242
+ var r = n[t];
259
243
  r.enumerable = r.enumerable || false;
260
244
  r.configurable = true;
261
245
  if ("value" in r) r.writable = true;
262
246
  Object.defineProperty(e, r.key, r);
263
247
  }
264
248
  }
265
- function A(e, t, n) {
266
- if (t) D(e.prototype, t);
267
- if (n) D(e, n);
249
+ function A(e, n, t) {
250
+ if (n) T(e.prototype, n);
251
+ if (t) T(e, t);
268
252
  return e;
269
253
  }
270
- function B(e, t) {
271
- if (typeof t !== "function" && t !== null) {
254
+ function B(e, n) {
255
+ if (typeof n !== "function" && n !== null) {
272
256
  throw new TypeError("Super expression must either be null or a function");
273
257
  }
274
- e.prototype = Object.create(t && t.prototype, {
258
+ e.prototype = Object.create(n && n.prototype, {
275
259
  constructor: {
276
260
  value: e,
277
261
  writable: true,
278
262
  configurable: true
279
263
  }
280
264
  });
281
- if (t) M(e, t);
265
+ if (n) D(e, n);
282
266
  }
283
- function M(e, t) {
284
- M = Object.setPrototypeOf || function e(t, n) {
285
- t.__proto__ = n;
286
- return t;
267
+ function D(e, n) {
268
+ D = Object.setPrototypeOf || function e(n, t) {
269
+ n.__proto__ = t;
270
+ return n;
287
271
  };
288
- return M(e, t);
272
+ return D(e, n);
289
273
  }
290
- function N(e) {
291
- var t = z();
292
- return function n() {
293
- var r = F(e), o;
294
- if (t) {
295
- var i = F(this).constructor;
296
- o = Reflect.construct(r, arguments, i);
274
+ function M(e) {
275
+ var n = V();
276
+ return function t() {
277
+ var r = z(e), o;
278
+ if (n) {
279
+ var a = z(this).constructor;
280
+ o = Reflect.construct(r, arguments, a);
297
281
  } else {
298
282
  o = r.apply(this, arguments);
299
283
  }
300
- return U(this, o);
284
+ return N(this, o);
301
285
  };
302
286
  }
303
- function U(e, t) {
304
- if (t && (I(t) === "object" || typeof t === "function")) {
305
- return t;
287
+ function N(e, n) {
288
+ if (n && (R(n) === "object" || typeof n === "function")) {
289
+ return n;
306
290
  }
307
- return V(e);
291
+ return U(e);
308
292
  }
309
- function V(e) {
293
+ function U(e) {
310
294
  if (e === void 0) {
311
295
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
312
296
  }
313
297
  return e;
314
298
  }
315
- function z() {
299
+ function V() {
316
300
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
317
301
  if (Reflect.construct.sham) return false;
318
302
  if (typeof Proxy === "function") return true;
@@ -323,76 +307,76 @@
323
307
  return false;
324
308
  }
325
309
  }
326
- function F(e) {
327
- F = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
328
- return t.__proto__ || Object.getPrototypeOf(t);
310
+ function z(e) {
311
+ z = Object.setPrototypeOf ? Object.getPrototypeOf : function e(n) {
312
+ return n.__proto__ || Object.getPrototypeOf(n);
329
313
  };
330
- return F(e);
314
+ return z(e);
331
315
  }
332
- function G(e, t, n) {
333
- if (t in e) {
334
- Object.defineProperty(e, t, {
335
- value: n,
316
+ function F(e, n, t) {
317
+ if (n in e) {
318
+ Object.defineProperty(e, n, {
319
+ value: t,
336
320
  enumerable: true,
337
321
  configurable: true,
338
322
  writable: true
339
323
  });
340
324
  } else {
341
- e[t] = n;
325
+ e[n] = t;
342
326
  }
343
327
  return e;
344
328
  }
345
- /** @public */ var H = {
346
- children: i().node,
347
- defaultOpenPanelId: i().any,
348
- elementRef: i().oneOfType([ i().func, i().object ]),
349
- onChange: i().func,
350
- openPanelId: i().any
329
+ /** @public */ var G = {
330
+ children: a().node,
331
+ defaultOpenPanelId: a().any,
332
+ elementRef: a().oneOfType([ a().func, a().object ]),
333
+ onChange: a().func,
334
+ openPanelId: a().any
351
335
  };
352
- var J = {
336
+ var H = {
353
337
  inset: false
354
338
  };
355
- var K = function(e) {
339
+ var J = function(e) {
356
340
  B(o, e);
357
- var t = N(o);
341
+ var n = M(o);
358
342
  // @docs-props-type AccordionPropsBase
359
343
  function o(e) {
360
- var n;
361
- T(this, o);
362
- n = t.call(this, e);
363
- G(V(n), "controlledExternally", void 0);
364
- G(V(n), "handleRequestOpen", (function(e) {
365
- var t, r;
366
- if (!n.isControlled()) {
367
- n.setState({
368
- openPanelId: e.panelId
369
- });
370
- }
371
- (t = (r = n.props).onChange) === null || t === void 0 ? void 0 : t.call(r, e.event, e);
344
+ var t;
345
+ E(this, o);
346
+ t = n.call(this, e);
347
+ F(U(t), "controlledExternally", void 0);
348
+ F(U(t), "getCurrentOpenPanel", (function() {
349
+ var e = t.isControlled() ? t.props.openPanelId : t.state.openPanelId;
350
+ return e;
372
351
  }));
373
- G(V(n), "handleRequestClose", (function(e) {
374
- var t, r;
375
- if (!n.isControlled()) {
376
- n.setState({
377
- openPanelId: undefined
352
+ F(U(t), "handleChange", (function(e, n) {
353
+ var r, o;
354
+ var a = n.panelId, i = n.reason;
355
+ var l = t.getCurrentOpenPanel();
356
+ var u = l === a ? undefined : a;
357
+ if (!t.isControlled()) {
358
+ t.setState({
359
+ openPanelId: u
378
360
  });
379
361
  }
380
- (t = (r = n.props).onChange) === null || t === void 0 ? void 0 : t.call(r, e.event, E(E({}, e), {}, {
381
- panelId: undefined
382
- }));
362
+ (r = (o = t.props).onChange) === null || r === void 0 ? void 0 : r.call(o, e, {
363
+ event: e,
364
+ panelId: u,
365
+ reason: i
366
+ });
383
367
  }));
384
- n.controlledExternally = l()(e, "openPanelId");
385
- if (!n.isControlled()) {
386
- n.state = {
368
+ t.controlledExternally = l()(e, "openPanelId");
369
+ if (!t.isControlled()) {
370
+ t.state = {
387
371
  openPanelId: e.defaultOpenPanelId
388
372
  };
389
373
  }
390
374
  if (false) {}
391
- return n;
375
+ return t;
392
376
  }
393
377
  A(o, [ {
394
378
  key: "componentDidUpdate",
395
- value: function e(t) {
379
+ value: function e(n) {
396
380
  if (false) {}
397
381
  if (false) {}
398
382
  }
@@ -404,31 +388,30 @@
404
388
  }, {
405
389
  key: "render",
406
390
  value: function e() {
407
- var t = this.props, i = t.children, a = t.elementRef, l = t.inset;
391
+ var n = this.props, a = n.children, i = n.elementRef, l = n.inset;
408
392
  var u = this.isControlled() ? this.props.openPanelId : this.state.openPanelId;
409
- var s = n.Children.toArray(i).filter(n.isValidElement);
393
+ var f = t.Children.toArray(a).filter(t.isValidElement);
410
394
  // remove false, null, 0, etc
411
395
 
412
- return r().createElement(C, k({
396
+ return r().createElement(_, q({
413
397
  "data-test": "accordion",
414
398
  "data-test-open-panel-id": u,
415
- elementRef: a
416
- }, f()(this.props, c()(o.propTypes))), r().createElement(v.Provider, {
399
+ elementRef: i
400
+ }, s()(this.props, c()(o.propTypes))), r().createElement(b.Provider, {
417
401
  value: {
418
- onRequestOpen: this.handleRequestOpen,
419
- onRequestClose: this.handleRequestClose,
402
+ onChange: this.handleChange,
420
403
  openPanelId: u,
421
404
  inset: l
422
405
  }
423
- }, s));
406
+ }, f));
424
407
  }
425
408
  } ]);
426
409
  return o;
427
- }(n.Component);
428
- G(K, "propTypes", H);
429
- G(K, "defaultProps", J);
430
- G(K, "Panel", S);
431
- /* harmony default export */ const L = K;
410
+ }(t.Component);
411
+ F(J, "propTypes", G);
412
+ F(J, "defaultProps", H);
413
+ F(J, "Panel", x);
414
+ /* harmony default export */ const K = J;
432
415
  // CONCATENATED MODULE: ./src/Accordion/index.ts
433
- module.exports = t;
416
+ module.exports = n;
434
417
  /******/})();
package/CHANGELOG.md CHANGED
@@ -1,9 +1,32 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 4.27.0 - TBD
5
+ ----------
6
+ New Features:
7
+ * `CollapsiblePanel` now supports functionalities of `Accordion` (SUI-5719):
8
+ * The new `SingleOpenPanelGroup` component can be used wrap multiple `CollapsiblePanel` to replicate the expand/collapse behavior of `Accordion`.
9
+ * `CollapsiblePanel` supports a new `inset` prop with similar functionality as the same prop in `Accordion`.
10
+ * A new `onChange` prop consolidates the callback behavior of the `onRequestClose` and `onRequestOpen` props.
11
+ * The separate `onRequestClose` and `onRequestOpen` props have been deprecated and will be removed in the next major version.
12
+ * `ControlGroup` now supports `data-test-required` test hook. (SUI-6067).
13
+
14
+ Bug Fixes:
15
+ * `Text`'s focus style has been replaced with `@splunk/theme`'s `focusShadow` in Prisma themes to have a visible focus indicator (WCAG SC 2.4.7) (SUI-5321).
16
+ * Error state is now visible when inputs are focused.
17
+ * This change also affects the following components: `Combobox`, `Date`, `TextArea`, `Number`, `Select`'s and `Mutltiselect`'s filters, and `Search`.
18
+ * `Table`'s column resize handle is now correctly announced by screen readers (SUI-5967).
19
+ * The element has been changed from a `button` to an `hr` to have the correct role of `separator`.
20
+ * `Table`'s selectable row checkboxes are now accessible with VoiceOver keys (SUI-5958).
21
+ * `Table`'s selectable row checkboxes will no longer receive focus when the row is `disabled` (SUI-5824).
22
+ * `CollapsiblePanel`'s toggle has consistent spacing and improved focus styling when `titleWithActions` is enabled(SUI-5433).
23
+
24
+ Typescript:
25
+ * The `event` type for `TableRequestResizeColumnHandler` in the `Table` has been changed from a `button` event type to an `hr` event type: `event: React.MouseEvent<HTMLHRElement> | React.KeyboardEvent<HTMLHRElement> | MouseEvent`.
26
+
4
27
  4.26.0 - Feb 21, 2024
5
28
  ----------
6
- New Features:
29
+ New Features:
7
30
  * `Modal` automatically returns focus to the invoking element after close when a ref is provided to the new prop `returnFocus` (SUI-2834).
8
31
  * `Breadcrumbs` and `Breadcrumbs.Item` now support `onClick` prop (SUI-5911).
9
32
 
@@ -13,14 +36,14 @@ Bug Fixes:
13
36
  * `TextArea` renders at the correct size when `minRows={1}` (SUI-6010).
14
37
  * `TextArea` has consistent height when rendering rows regardless if value is present.
15
38
  * Fixed spurious deprecation warnings for `canClear` and `placeholder` props in `TextArea`.
16
- * Fixed regression in `TextArea` where placeholder text could be cut off.
39
+ * Fixed regression in `TextArea` where placeholder text could be cut off.
17
40
 
18
41
  API Changes:
19
42
  * Corrected the type of `Modal`'s `initialFocus` prop to include `React.Component & { focus: () => void }` instead of `React.Component & { focus: () => {} }`.
20
43
 
21
44
  4.25.0 - Feb 6, 2024
22
45
  ----------
23
- New Features:
46
+ New Features:
24
47
  * `Modal` supports `subtitle` and `icon` props in Enterprise themes (SUI-5924).
25
48
  * `Button` now supports a new `"dimmed"` value for the `disabled` prop (SUI-5819).
26
49